/* Redgold product-site design system. Shared verbatim by every hardware site;
   each site sets its accent tokens and page-specific layout in its own stylesheet.
   Dark is the default theme; theme.js applies a saved light preference before paint. */

:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07090b;
  --bg-raised: #0b0f12;
  --surface: #10161a;
  --surface-2: #151d22;
  --surface-3: #1c262c;
  --line: rgba(214, 232, 238, .085);
  --line-strong: rgba(214, 232, 238, .17);
  --text: #eef3f5;
  --text-2: #b9c5ca;
  --muted: #84939a;
  --faint: #5c6a70;
  --accent: #62d6ea;
  --accent-2: #8ef2cf;
  --accent-ink: #031418;
  --accent-soft: rgba(98, 214, 234, .12);
  --glow: rgba(98, 214, 234, .32);
  --warn: #f2b45c;
  --danger: #ff6b6b;
  --ok: #6fe3a5;
  --shadow: 0 40px 90px -40px rgba(0, 0, 0, .85);
  --hero-wash: radial-gradient(60% 55% at 50% 0%, rgba(98, 214, 234, .16), transparent 70%);
  --metal-a: #4a555b;
  --metal-b: #c7d0d4;
  --metal-c: #7d898f;
  --metal-d: #eef3f5;
  --header-bg: rgba(7, 9, 11, .72);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6f6;
  --bg-raised: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef2f3;
  --surface-3: #e2e8ea;
  --line: rgba(12, 32, 40, .1);
  --line-strong: rgba(12, 32, 40, .2);
  --text: #0a1316;
  --text-2: #2f4148;
  --muted: #5a6a70;
  --faint: #8b989d;
  --accent: #0b8ea3;
  --accent-2: #0f9f78;
  --accent-ink: #ffffff;
  --accent-soft: rgba(11, 142, 163, .1);
  --glow: rgba(11, 142, 163, .22);
  --warn: #b26b00;
  --danger: #c93434;
  --ok: #138a52;
  --shadow: 0 40px 80px -45px rgba(10, 30, 40, .35);
  --hero-wash: radial-gradient(60% 55% at 50% 0%, rgba(11, 142, 163, .12), transparent 70%);
  --metal-a: #7d888e;
  --metal-b: #e3e9ec;
  --metal-c: #a6b1b6;
  --metal-d: #ffffff;
  --header-bg: rgba(244, 246, 246, .78);
}

:root {
  --font-sans: "Inter", "SF Pro Display", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --page: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --band: clamp(88px, 12vw, 168px);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--r-sm); background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: calc(var(--page) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.band { padding: var(--band) 0; position: relative; }
.band + .band { border-top: 1px solid var(--line); }
.band.flush-top { padding-top: 0; }
.band-alt { background: var(--bg-raised); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; letter-spacing: -.02em; font-size: 19px; }
.brand svg { width: 22px; height: 22px; color: var(--accent); }
.brand small { font: 500 10px/1 var(--font-mono); letter-spacing: .16em; color: var(--muted); text-transform: uppercase; margin-left: 2px; }
.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a { color: var(--text-2); text-decoration: none; font-size: 14px; letter-spacing: -.005em; transition: color .2s; }
.site-nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-2);
  transition: color .2s, border-color .2s, transform .3s var(--ease);
}
.theme-toggle:hover { color: var(--text); border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
@media (max-width: 900px) { .site-nav { display: none; } .header-actions { margin-left: auto; } }
@media (max-width: 520px) { .header-actions .btn { display: none; } }

/* Type */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; font: 500 12px/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.eyebrow.plain::before { display: none; }
.display { margin: 0; font-size: clamp(46px, 8.2vw, 112px); line-height: .98; letter-spacing: -.045em; font-weight: 650; }
.headline { margin: 0; font-size: clamp(34px, 5.2vw, 68px); line-height: 1.03; letter-spacing: -.035em; font-weight: 640; }
.title { margin: 0; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; letter-spacing: -.02em; font-weight: 620; }
.grad { background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dim { color: var(--muted); }
.lede { margin: 26px 0 0; max-width: 640px; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.55; color: var(--text-2); letter-spacing: -.01em; }
.copy { color: var(--text-2); max-width: 620px; }
.copy p { margin: 0 0 16px; }
.mono { font-family: var(--font-mono); }
.fine { margin: 18px 0 0; font-size: 13px; line-height: 1.55; color: var(--muted); max-width: 760px; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; margin-bottom: clamp(44px, 6vw, 80px); }
.section-head .lede { margin: 0; max-width: 700px; }
.section-head.split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; }
.split-col .headline, .section-head.split .headline { font-size: clamp(32px, 4.2vw, 56px); }
.section-head.center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.section-head.center .eyebrow::before { display: none; }
@media (max-width: 860px) { .section-head.split { grid-template-columns: 1fr; } }

/* Buttons and controls */
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 999px;
  border: 1px solid transparent; background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: 15px; letter-spacing: -.01em; text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
  box-shadow: 0 10px 30px -12px var(--glow);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 16px 40px -14px var(--glow); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-strong); box-shadow: none; }
.btn.ghost:hover { border-color: var(--accent); }
.btn.small { height: 38px; padding: 0 16px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 36px; }
.link { color: var(--accent); text-decoration: none; font-weight: 560; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font-size: 14px; color: var(--text-2); transition: background .2s, color .2s; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font: 500 12px/1.2 var(--font-mono); letter-spacing: .04em; color: var(--text-2); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); flex: none; }

/* Surfaces */
.card { position: relative; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); padding: clamp(24px, 3vw, 36px); overflow: hidden; }
.panel { border-radius: var(--r-xl); background: linear-gradient(180deg, var(--surface), var(--bg-raised)); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Stat ribbon */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 30px 26px 30px 0; }
.stat + .stat { padding-left: 26px; border-left: 1px solid var(--line); }
.stat strong { display: block; font-size: clamp(32px, 3.6vw, 48px); line-height: 1; letter-spacing: -.04em; font-weight: 620; }
.stat strong small { font-size: .42em; letter-spacing: 0; color: var(--muted); font-weight: 500; margin-left: 4px; }
.stat span { display: block; margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--muted); }
@media (max-width: 760px) { .stat + .stat { padding-left: 0; border-left: 0; } .stat { border-bottom: 1px solid var(--line); padding: 22px 0; } .stats { border-bottom: 0; } }

/* Status disclosure */
.status-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 16px 20px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); font-size: 14px; color: var(--text-2); }
.status-strip strong { color: var(--text); font-weight: 600; }

/* Roadmap */
.roadmap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.roadmap li { list-style: none; position: relative; padding: 28px 22px 0 0; border-top: 2px solid var(--line-strong); }
.roadmap li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-strong); }
.roadmap li.done { border-top-color: var(--accent); }
.roadmap li.done::before { background: var(--accent); border-color: var(--accent); }
.roadmap li.now::before { border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.roadmap b { display: block; font-weight: 600; margin-bottom: 6px; }
.roadmap span { display: block; font-size: 14px; color: var(--muted); line-height: 1.5; }
.roadmap { padding: 0; margin: 0; }
@media (max-width: 760px) { .roadmap { grid-template-columns: 1fr; gap: 26px; } .roadmap li { border-top: 0; border-left: 2px solid var(--line-strong); padding: 0 0 0 22px; } .roadmap li.done { border-left-color: var(--accent); } .roadmap li::before { top: 0; left: -7px; } }

/* Cost explorer (shared markup across sites) */
.cost-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.cost-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; }
.cost-list { border-top: 1px solid var(--line); }
.cost-row { border-bottom: 1px solid var(--line); }
.cost-row summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 22px; gap: 18px; align-items: center; padding: 18px 4px; cursor: pointer; list-style: none; }
.cost-row summary::-webkit-details-marker { display: none; }
.cost-row summary small { display: block; margin-top: 4px; font: 400 12px/1.4 var(--font-mono); color: var(--muted); letter-spacing: .02em; }
.cost-row .price { font: 500 15px/1 var(--font-mono); white-space: nowrap; }
.cost-row .price.unpriced { color: var(--warn); }
.cost-row .plus { color: var(--muted); transition: transform .25s var(--ease); text-align: center; }
.cost-row[open] .plus { transform: rotate(45deg); color: var(--accent); }
.cost-body { padding: 0 4px 20px; color: var(--text-2); font-size: 15px; max-width: 720px; }
.cost-body p { margin: 0 0 10px; }
.cost-summary { position: sticky; top: 88px; }
.cost-summary .total { display: block; margin: 8px 0 4px; white-space: nowrap; font-size: clamp(26px, 2.4vw, 32px); letter-spacing: -.035em; font-weight: 620; }
.cost-summary p { font-size: 14px; color: var(--text-2); }
.text-button { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 560; font-size: 14px; }
.text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 900px) { .cost-layout { grid-template-columns: 1fr; } .cost-summary { position: static; } }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font-size: 18px; font-weight: 560; letter-spacing: -.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--muted); font-weight: 400; transition: transform .25s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq-list details p { margin: 0 0 16px; color: var(--text-2); max-width: 680px; }
.faq-list details > :last-child { margin-bottom: 24px; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* Family navigation and footer */
.family { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 28px 0; border-top: 1px solid var(--line); font-size: 14px; }
.family span { font: 500 11px/1 var(--font-mono); letter-spacing: .14em; color: var(--muted); margin-right: 8px; }
.family a { color: var(--text-2); text-decoration: none; }
.family a:hover, .family a[aria-current="page"] { color: var(--accent); }
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 13px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.site-footer a { color: var(--text-2); }

/* Diagram helpers shared by site illustrations */
.scroll-x { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.scroll-hint { display: none; font: 500 11px/1 var(--font-mono); letter-spacing: .12em; color: var(--muted); margin-top: 12px; }
@media (max-width: 760px) { .scroll-hint { display: block; } }
.flow-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 2 14; animation: flow-dash 1.2s linear infinite; filter: drop-shadow(0 0 4px var(--glow)); }
@keyframes flow-dash { to { stroke-dashoffset: -32; } }

/* Scroll reveal: content stays visible without JavaScript */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }
