/* =========================================================================
   VENOM — design system
   Black / red / white "symbiote" theme. Vanilla CSS, dark interface only
   (there is no light theme and no switch). Shared byte-for-byte by the app
   (venom/web/site) and the marketing site (Website/). No inline styles
   anywhere: every visual state is a class.
   Motion: route changes cross-fade (.app.leaving / .app.entering), sections
   fade up on scroll (.reveal.in); all of it is off under reduced-motion.

   TOKENS (documented here, defined in :root below)
   ---------------------------------------------------------------------
   Spacing scale, 4px base (use the scale, not ad-hoc pixel values):
     --s1 4px · --s2 8px · --s3 12px · --s4 16px · --s5 24px · --s6 32px
     --s7 48px · --s8 64px · --s9 96px
   Type ramp (rem; body is 1rem / 16px, line-height 1.55):
     --t-xs .72  (eyebrows, table headers, tags)
     --t-sm .82  (hints, trust lines, chips)
     --t-base .95 (nav links, card copy)
     --t-md 1.1  (panel titles, tier names)
     --t-lg 1.3  (plan title)
     --t-xl 1.6  (legal h2, brand wordmark)
     --t-2xl clamp(2rem, 4vw, 2.8rem)       (page heads)
     --t-display clamp(2.6rem, 6vw, 4.6rem) (hero line 1; line 2 is 1.08x)
   Families:
     --f-body Inter · --f-display Anton · --f-brand Bangers · --f-mono JetBrains Mono
   Radii: --radius 16px (cards) · --radius-sm 10px (rows, inputs) · pills 999px
   Colour: --bg / --bg-2 (page), --surface / --surface-2 (cards), --text /
     --muted / --faint (text, all AA on --bg), --red family (accent), --good /
     --warn (status), --focus (keyboard ring), --border-input (field boundary).
   Contrast numbers for every token live in venom/web/ACCESSIBILITY.md §2.
   ========================================================================= */

:root,
:root[data-theme="dark"] {
  /* spacing scale */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  /* type ramp */
  --t-xs: .72rem; --t-sm: .82rem; --t-base: .95rem; --t-md: 1.1rem; --t-lg: 1.3rem; --t-xl: 1.6rem;
  --t-2xl: clamp(2rem, 4vw, 2.8rem);
  --t-display: clamp(2.6rem, 6vw, 4.6rem);
  /* families */
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-display: "Anton", "Inter", system-ui, sans-serif;
  --f-brand: "Bangers", "Anton", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --bg: #07070a;
  --bg-2: #0c0c11;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-hover: rgba(255, 43, 43, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 43, 43, 0.38);
  --text: #f4f4f6;
  --muted: #9a9aa5;
  /* --faint was #6a6a75 (3.8:1 on --bg, fails 1.4.3); #85858f is 5.5:1 on --bg, 4.9:1 on --surface-2 */
  --faint: #85858f;
  --red: #ff2b2b;
  --red-bright: #ff4040;
  --red-deep: #8b0000;
  /* solid red for white-on-red controls (.btn-danger): #ff2b2b was 3.7:1, #d81212 is 5.2:1 */
  --red-solid: #d81212;
  --red-solid-hover: #e31a1a;
  --good: #35d07f;
  --warn: #ffb020;
  /* gradient start was #ff3b3b (white text 3.5:1); #e81b1b gives 4.6:1 while keeping the symbiote red */
  --grad: linear-gradient(135deg, #e81b1b 0%, #a40008 60%, #6e0008 100%);
  --grad-soft: linear-gradient(135deg, rgba(255,59,59,.18), rgba(139,0,0,.18));
  --glow: 0 0 44px rgba(255, 20, 20, 0.22);
  --ring: 0 0 0 3px rgba(255, 43, 43, 0.28);
  /* keyboard focus indicator: 7.3:1 against --bg (1.4.11 non-text contrast) */
  --focus: #ff6b6b;
  /* text-field boundary: 4.0:1 against --bg (1.4.11); --border alone was 1.2:1 */
  --border-input: rgba(255, 255, 255, 0.42);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1160px;
  /* keycaps and code blocks */
  --kbd-bg: #16161b; --kbd-fg: #eeeeee; --kbd-border: rgba(255,255,255,.14);
  --code-bg: #09090c; --code-fg: #e7e7ee;
  /* ambient glow strength */
  --fx-a: .11; --fx-b: .09;
  /* illustration palette (How it works) */
  --ill-frame: #121218; --ill-line: rgba(255,255,255,.14); --ill-fill: rgba(255,255,255,.06);
  /* motion: one ease for everything that moves (Apple-like ease-out) */
  --ease: cubic-bezier(.2, .8, .2, 1);
  /* notch / home-indicator safe areas (iOS, Android gesture nav) */
  --sat: env(safe-area-inset-top, 0px); --sar: env(safe-area-inset-right, 0px);
  --sab: env(safe-area-inset-bottom, 0px); --sal: env(safe-area-inset-left, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-tap-highlight-color: transparent;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--red-bright); }
/* body-copy links are underlined so colour is not the only cue (1.4.1) */
p a, li a, td a, .footer a, .legal-card a, .auth-foot a, .auth-foot-sm a, .check a, .note a:not(.btn), .empty a:not(.btn), .dl-help a, .install-card a:not(.btn) { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- keyboard focus (2.4.7 / 1.4.11): one ring for every control ----------
   outline-offset leaves a gap of page background, so the ring always sits on
   --bg (7.3:1 dark, 5.3:1 light) even on red buttons. */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }
@media (forced-colors: active) {
  :focus-visible { outline: 3px solid Highlight; }
  .btn, .tab, .copy-btn, .menu-item, .platform { border: 1px solid ButtonText; }
}

/* visually hidden but available to assistive tech */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
/* "Skip to content": off-screen until focused (2.4.1) */
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--bg-2); color: var(--text); border: 2px solid var(--focus);
  padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: underline;
}
.skip-link:focus { top: 12px; }
/* main receives focus after a route change; no ring needed on the region itself */
.app:focus { outline: none; }

/* ambient symbiote glow behind everything */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* Horizontally symmetric glows (top-centre + bottom-centre) so the tint
     blends evenly across the width — no off-centre corner "box" seam. */
  background:
    radial-gradient(120% 70% at 50% -8%, rgba(255, 20, 20, var(--fx-a)), transparent 70%),
    radial-gradient(120% 65% at 50% 108%, rgba(139, 0, 0, var(--fx-b)), transparent 70%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}

/* ---------- layout helpers ---------- */
.app { min-height: 60vh; }

/* ---------- page transitions ----------
   Leaving: the current view sinks 6px and fades (160 ms, matches LEAVE_MS in
   app.js). Entering: the new view rises 14px from 98.5% scale into place over
   420 ms. Only transform/opacity animate, so it stays on the compositor. */
.app.leaving { opacity: 0; transform: translateY(6px) scale(.995); transition: opacity .16s ease, transform .16s ease; }
.app.entering { animation: pageIn .42s var(--ease) both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
/* scroll-linked reveals: sections start 18px low and faint, settle when seen */
.reveal { opacity: 0; transform: translateY(18px) scale(.985); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; will-change: auto; }
.reveal.r1 { transition-delay: .06s; } .reveal.r2 { transition-delay: .12s; } .reveal.r3 { transition-delay: .18s; }
.reveal.r4 { transition-delay: .24s; } .reveal.r5 { transition-delay: .3s; }
/* hero children get a one-time staged entrance on load */
.hero-copy > * { animation: heroIn .8s var(--ease) both; }
.hero-copy > :nth-child(1) { animation-delay: .05s; } .hero-copy > :nth-child(2) { animation-delay: .12s; }
.hero-copy > :nth-child(3) { animation-delay: .2s; }  .hero-copy > :nth-child(4) { animation-delay: .27s; }
.hero-copy > :nth-child(5) { animation-delay: .34s; } .hero-copy > :nth-child(n+6) { animation-delay: .42s; }
.terminal { animation: heroIn .9s var(--ease) .25s both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.section { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s5); }
.muted { color: var(--muted); }
.dot { color: var(--faint); margin: 0 6px; }
.eyebrow { color: var(--red); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: var(--t-xs); margin: 0 0 var(--s4); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; cursor: pointer;
  border: 1px solid var(--border); border-radius: 999px;
  padding: 12px 22px; color: var(--text); background: var(--surface-2);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); border-color: var(--border-strong); color: var(--text); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .08s; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; transform: none; }
.btn-sm { padding: 8px 16px; font-size: .9rem; }
.btn-lg { padding: 14px 24px; font-size: 1.02rem; }
.btn-grad {
  background: var(--grad); border: none; color: #fff;
  box-shadow: 0 10px 26px -10px rgba(255, 20, 20, .6);
}
.btn-grad:hover { box-shadow: 0 14px 34px -10px rgba(255, 20, 20, .8), var(--glow); color: #fff; }
.btn-ghost { background: transparent; }
.btn-danger { background: var(--red-solid); border: none; color: #fff; }
.btn-danger:hover { background: var(--red-solid-hover); color: #fff; }
/* a button that looks like a text link (mode switches inside copy) */
.link-btn { background: none; border: none; padding: 0; font: inherit; color: var(--red-bright); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.btn-block { width: 100%; }
a.btn { text-decoration: none; }
.btn .ico { width: 18px; height: 18px; flex: 0 0 auto; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s4); padding: calc(14px + var(--sat)) calc(var(--s5) + var(--sar)) 14px calc(var(--s5) + var(--sal));
  max-width: 1320px; margin: 0 auto;
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  background: rgba(7, 7, 10, 0);
  transition: background .35s var(--ease);
}
/* once content scrolls underneath, the bar picks up a translucent tint + a soft lift */
.nav.scrolled { background: rgba(7, 7, 10, .72); box-shadow: 0 8px 30px -18px rgba(0, 0, 0, .9); }
.nav::after {
  content: ""; position: absolute; bottom: 0; height: 1px;
  /* break out of the 1320px centred nav so the divider is a true full-width
     line (edge to edge) instead of a boxed segment under the content. */
  left: calc(50% - 50vw); right: calc(50% - 50vw);
  background: linear-gradient(90deg, transparent, var(--border) 18%, var(--border) 82%, transparent);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { display: inline-grid; place-items: center; filter: drop-shadow(0 0 12px rgba(255,20,20,.28)); }
.brand-name {
  font-family: var(--f-brand);
  font-size: var(--t-xl); letter-spacing: 1.5px; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-link { color: var(--muted); font-weight: 500; font-size: var(--t-base); transition: color .2s ease; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--text); }
/* the single signed-out call to action */
.nav-cta { padding: 9px 18px; font-size: .9rem; white-space: nowrap; }

.account { position: relative; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); cursor: pointer;
}
.avatar:hover { color: var(--text); border-color: var(--border-strong); }
.menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 240px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow); padding: 6px; z-index: 50; overflow: hidden;
}
.menu-head { padding: 12px 14px; color: var(--muted); font-size: .85rem; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.menu-item {
  display: block; width: 100%; text-align: left; background: none; border: none;
  color: var(--text); font: inherit; padding: 11px 14px; border-radius: 9px; cursor: pointer;
}
.menu-item:hover, .menu-item:focus-visible { background: var(--surface-hover); outline-offset: -3px; }
.menu-item.danger { color: var(--red); }

.hamburger { display: none; flex-direction: column; gap: 4px; width: 40px; height: 36px; background: none; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; }
.hamburger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- HERO ----------
   Composition: two columns from 920px (copy 1.05fr / terminal 1fr), one column
   below. The headline uses the display ramp; the lede is capped at 42ch so the
   measure stays readable at 1920px; the terminal mock never grows past 560px. */
.hero { max-width: var(--maxw); margin: 0 auto; padding: var(--s8) var(--s5) var(--s6); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--s7); align-items: center; }
.hero h1 { margin: 0 0 var(--s4); line-height: .98; }
.hero h1 .l1 {
  display: block; font-family: var(--f-display); font-weight: 400;
  font-size: var(--t-display); letter-spacing: .5px; color: var(--text);
}
.hero h1 .l2 {
  display: block; font-family: var(--f-brand);
  font-size: calc(var(--t-display) * 1.08); letter-spacing: 1.5px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 24px rgba(255,20,20,.35));
}
.hero .lede { color: var(--muted); font-size: 1.05rem; max-width: 42ch; margin: 0 0 var(--s4); }
.hero .pitch { font-weight: 500; margin: 0 0 var(--s5); }
.hero .pitch b { color: var(--red); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: var(--s4); }
.trust { color: var(--faint); font-size: var(--t-sm); margin: 2px 0; }
.trust-block { margin-top: var(--s4); }

/* terminal mock */
.terminal {
  background: var(--code-bg); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow), var(--glow); overflow: hidden; min-height: 320px;
  max-width: 560px; width: 100%; justify-self: end;
}
.term-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.07); }
.lights { display: flex; gap: 7px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.lights .r { background: #ff5f56; } .lights .y { background: #ffbd2e; } .lights .g { background: #27c93f; }
.term-title { color: #c9c9d2; font-family: var(--f-mono); font-size: var(--t-sm); }
.badge-ready { margin-left: auto; font-size: var(--t-xs); font-family: var(--f-mono); color: #35d07f; background: rgba(53,208,127,.12); border: 1px solid rgba(53,208,127,.3); padding: 3px 10px; border-radius: 999px; }
.term-body { padding: 18px 18px 26px; font-family: var(--f-mono); font-size: .9rem; color: var(--code-fg); min-height: 230px; }
.term-body .line { opacity: 0; transform: translateY(4px); animation: lineIn .35s ease forwards; animation-delay: var(--delay, 0s); white-space: pre-wrap; }
/* staggered reveal without per-element style attributes */
.term-body .line:nth-child(1) { --delay: .15s; } .term-body .line:nth-child(2) { --delay: .43s; }
.term-body .line:nth-child(3) { --delay: .71s; } .term-body .line:nth-child(4) { --delay: .99s; }
.term-body .line:nth-child(5) { --delay: 1.27s; } .term-body .line:nth-child(6) { --delay: 1.55s; }
.term-body .line:nth-child(7) { --delay: 1.88s; } .term-body .line:nth-child(n+8) { --delay: 2.1s; }
.term-body .prompt { color: #fff; }
.term-body .cmd { color: #fff; font-weight: 700; }
.term-body .tag-v { color: var(--red-bright); }
.term-body .tag-ok { color: #35d07f; }
.term-body .code-chip { color: #fff; font-weight: 700; letter-spacing: 2px; }
.cursor { display: inline-block; width: 9px; height: 1.05em; background: var(--red); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes lineIn { to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- section headings (How it works, Plans, …) ---------- */
.sec-head { text-align: center; max-width: 60ch; margin: 0 auto var(--s6); }
.sec-head h2 { font-family: var(--f-display); font-weight: 400; font-size: var(--t-2xl); letter-spacing: .5px; margin: 0 0 var(--s2); }
.sec-head p { color: var(--muted); margin: 0; }

/* ---------- How it works: three steps with inline SVG illustrations ---------- */
.hiw { max-width: var(--maxw); margin: 0 auto; padding: var(--s7) var(--s5) var(--s6); }
.hiw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); counter-reset: step; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3);
  transition: border-color .2s, background .2s;
}
.step:hover { border-color: var(--border-strong); background: var(--surface-hover); }
.step-num {
  counter-increment: step; display: inline-grid; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; font-size: var(--t-sm);
  position: absolute; top: var(--s4); left: var(--s4);
}
.step-num::before { content: counter(step); }
.step-art { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); background: var(--ill-frame); border: 1px solid var(--border); }
.step h3 { margin: var(--s2) 0 0; font-size: var(--t-md); }
.step p { margin: 0; color: var(--muted); font-size: var(--t-base); }
.step code { font-family: var(--f-mono); color: var(--red-bright); font-size: .9em; }
/* illustration primitives (fill/stroke via tokens) */
.ill-line { stroke: var(--ill-line); fill: none; stroke-width: 1.5; }
.ill-fill { fill: var(--ill-fill); }
.ill-text { fill: var(--text); font-family: var(--f-mono); font-size: 11px; }
.ill-muted { fill: var(--muted); font-family: var(--f-body); font-size: 10px; }
.ill-red { fill: var(--red); }
.ill-red-line { stroke: var(--red); fill: none; stroke-width: 2; stroke-linecap: round; }
.ill-good { fill: var(--good); }
.ill-white { fill: #fff; }
.ill-big { fill: var(--text); font-family: var(--f-mono); font-size: 18px; font-weight: 700; }
.ill-btn { fill: #fff; font-family: var(--f-body); font-size: 11px; font-weight: 700; }
.ill-pulse { transform-origin: center; transform-box: fill-box; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(1.35); } }

/* ---------- transparency / feature strip ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
.feat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s4) var(--s4) var(--s4); display: flex; gap: var(--s3); align-items: flex-start; }
.feat .f-ico { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--grad-soft); color: var(--red); border: 1px solid var(--border-strong); }
.feat .f-ico svg { width: 20px; height: 20px; }
.feat h3 { margin: 0 0 2px; font-size: var(--t-base); }
.feat p { margin: 0; color: var(--muted); font-size: var(--t-sm); }

/* ---------- pricing ----------
   Cards are a column grid (title / price / features / CTA) so the CTA row lines
   up across tiers whatever the feature count; the recommended tier is lifted. */
.pricing { max-width: var(--maxw); margin: var(--s6) auto var(--s8); padding: 0 var(--s5); }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); align-items: stretch; }
.price-card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--s5); transition: border-color .2s, transform .2s, background .2s;
  display: flex; flex-direction: column;
}
.price-card:hover { border-color: var(--border-strong); transform: translateY(-3px); background: var(--surface-hover); }
.price-card.featured { border-color: var(--border-strong); box-shadow: var(--glow); background: var(--grad-soft); }
.price-tier { font-weight: 700; font-size: var(--t-md); display: flex; align-items: center; gap: 10px; margin: 0; flex-wrap: wrap; }
.tag { font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; padding: 3px 9px; border-radius: 999px; font-weight: 700; }
.tag-red { background: var(--grad); color: #fff; }
.price-amt { font-family: var(--f-display); font-size: 2.1rem; margin: 10px 0 2px; letter-spacing: .5px; }
.price-amt small { font-family: var(--f-body); font-size: .9rem; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.price-for { color: var(--muted); font-size: var(--t-sm); margin: 0 0 var(--s3); min-height: 2.6em; }
.price-feats { list-style: none; padding: 0; margin: 0 0 var(--s5); color: var(--muted); font-size: .92rem; flex: 1; }
.price-feats li { padding: 6px 0 6px 26px; position: relative; border-top: 1px solid var(--border); }
.price-feats li:first-child { border-top: 0; }
.price-feats li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 14px; height: 14px; border-radius: 50%; background: var(--grad-soft); border: 1px solid var(--border-strong); }
.price-feats li::after { content: ""; position: absolute; left: 8.5px; top: 14px; width: 4px; height: 7px; border: solid var(--red); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.price-feats li.incl { color: var(--text); font-weight: 600; }
.price-foot { text-align: center; color: var(--faint); font-size: var(--t-sm); margin: var(--s4) 0 0; }

/* ---------- page headers ---------- */
.page-head { text-align: center; padding: var(--s7) var(--s5) 10px; }
.page-head h1, .page-head h2 { font-family: var(--f-display); font-weight: 400; font-size: var(--t-2xl); margin: 0; letter-spacing: .5px; }
.page-head p { color: var(--muted); margin: 8px auto 0; max-width: 60ch; }

/* ---------- download ---------- */
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); margin: var(--s5) 0 var(--s3); }
.platform {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--s5) var(--s5) var(--s5); text-align: center; cursor: pointer; transition: border-color .2s, transform .2s, background .2s;
  font: inherit; color: inherit; width: 100%;
}
.platform[data-soon="1"] { cursor: default; opacity: .78; }
.platform[data-soon="1"]:hover { transform: none; background: var(--surface); }
.platform:hover { border-color: var(--border-strong); transform: translateY(-3px); background: var(--surface-hover); }
.platform.featured { border-color: var(--border-strong); box-shadow: var(--glow); background: var(--grad-soft); }
.platform .os-ico { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
.platform.featured .os-ico { color: #fff; background: var(--grad); border-color: transparent; box-shadow: 0 10px 26px -10px rgba(255,20,20,.6); }
.platform .os-ico svg { width: 34px; height: 34px; }
.platform .os-name { font-weight: 700; font-size: 1.2rem; }
.platform .os-sub { color: var(--muted); font-size: .88rem; margin-top: 4px; }
.platform .os-sub.soon { color: var(--red); }
.platform .os-badge {
  position: absolute; top: 12px; right: 12px; font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
  padding: 3px 9px; border-radius: 999px; background: var(--grad); color: #fff;
}
.platform .os-badge.soon { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.dl-help { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; margin: 0 0 var(--s5); color: var(--muted); font-size: var(--t-base); }
.dl-help svg { flex: 0 0 auto; width: 20px; height: 20px; color: var(--red); margin-top: 2px; }
.dl-help b { color: var(--text); }

.panel { background: var(--grad-soft); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: var(--s5); margin: 8px 0 var(--s5); }
.panel h2, .panel h3 { margin: 0 0 6px; font-size: 1.17rem; }
#tokenCard h3 { margin: 0 0 4px; font-size: 1rem; }
.cancel-note h3 { font-size: 1rem; }
.panel .hint { color: var(--muted); font-size: .9rem; margin: 0 0 16px; }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.key-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; }
.kbd-row { display: flex; gap: 6px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
kbd {
  font-family: var(--f-mono); font-size: .76rem; background: var(--kbd-bg); color: var(--kbd-fg);
  border: 1px solid var(--kbd-border); border-bottom-width: 2px; border-radius: 6px; padding: 4px 8px;
}
.key-card .what { font-size: .9rem; font-weight: 600; }
.keys-foot { margin-top: 14px; font-size: .86rem; color: var(--muted); }
.keys-foot b { color: var(--red); }

/* scoped to the grid: the hero terminal also uses a .cmd span for the typed command */
.cmd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 24px; }
.cmd-grid .cmd {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 13px 15px; transition: border-color .2s, background .2s;
}
.cmd-grid .cmd:hover { border-color: var(--border-strong); background: var(--surface-hover); }
.cmd-grid .cmd code { font-family: var(--f-mono); color: var(--red-bright); font-size: .92rem; font-weight: 600; }
.cmd-grid .cmd .desc { color: var(--muted); font-size: .82rem; margin-top: 3px; }
.copy-btn { flex: 0 0 auto; background: none; border: 1px solid var(--border); color: var(--muted); font: inherit; font-size: .78rem; padding: 5px 12px; border-radius: 999px; cursor: pointer; }
.copy-btn:hover { color: var(--text); border-color: var(--border-strong); }
.copy-btn.ok { color: var(--good); border-color: rgba(53,208,127,.4); }

.note { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; color: var(--muted); }
.note b { color: var(--text); }

/* ---------- install page ---------- */
.install { max-width: 880px; margin: 0 auto var(--s8); padding: 0 var(--s5); }
.install-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s5); margin-bottom: var(--s4); }
.install-card h2 { margin: 0 0 var(--s2); font-size: var(--t-md); display: flex; align-items: center; gap: 10px; }
.install-card h2 .f-ico { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--grad-soft); color: var(--red); border: 1px solid var(--border-strong); }
.install-card h2 .f-ico svg { width: 18px; height: 18px; }
.install-card p { color: var(--muted); margin: 0 0 var(--s3); }
.install-card ol, .install-card ul { color: var(--muted); margin: 0 0 var(--s3); padding-left: 22px; }
.install-card li { margin: 6px 0; }
.install-card li b { color: var(--text); }
.install-card code, .path { font-family: var(--f-mono); color: var(--red-bright); font-size: .9em; }
.codeblock {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--code-bg); color: var(--code-fg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; font-family: var(--f-mono); font-size: .9rem; margin: var(--s2) 0 var(--s3); overflow: auto;
}
.codeblock code { color: inherit; white-space: pre; font-size: inherit; }
.codeblock .copy-btn { color: #c9c9d2; border-color: rgba(255,255,255,.2); }
.codeblock .copy-btn:hover { color: #fff; }
.placeholder-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(255,176,32,.14); color: var(--warn); border: 1px solid rgba(255,176,32,.4); }
.install-steps { counter-reset: istep; list-style: none; padding: 0; }
.install-steps li { position: relative; padding-left: 40px; margin: 10px 0; }
.install-steps li::before { counter-increment: istep; content: counter(istep); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; font-size: .78rem; display: grid; place-items: center; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 var(--s3); font-size: var(--t-base); }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

/* ---------- dashboard ---------- */
.dash { max-width: 820px; margin: 0 auto; padding: var(--s6) var(--s5) var(--s8); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.plan-card { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.plan-title { display: flex; align-items: center; gap: 10px; font-size: var(--t-lg); font-weight: 700; }
.tag-warn { background: rgba(255,176,32,.14); color: var(--warn); border: 1px solid rgba(255,176,32,.35); }
.plan-sub { color: var(--muted); margin: 6px 0; }
.plan-meta { color: var(--faint); font-size: .85rem; max-width: 46ch; }
.plan-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; min-width: 160px; }

.login-bar { margin: 16px 0; color: var(--muted); font-size: .9rem; }
.login-bar .card { padding: 14px 18px; }

.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--border); margin: 24px 0 20px; flex-wrap: wrap; }
.tab { background: none; border: none; color: var(--muted); font: inherit; font-weight: 600; padding: 10px 14px; cursor: pointer; position: relative; border-radius: 8px 8px 0 0; }
.tab:hover { color: var(--text); }
.tab:focus-visible { outline-offset: -3px; }
.tab.active, .tab[aria-selected="true"] { color: var(--red); }
.tab.active::after, .tab[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--grad); border-radius: 2px; }

.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; font-size: .9rem; }
.pill b { color: var(--text); }
.tag-full { background: rgba(255,43,43,.14); color: var(--red); border: 1px solid var(--border-strong); }

.list-head { display: flex; justify-content: space-between; align-items: center; margin: 16px 0 10px; color: var(--muted); font-size: .9rem; }
.device {
  display: flex; align-items: center; gap: 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px;
}
.device .os { width: 34px; height: 34px; display: grid; place-items: center; background: var(--surface-2); border-radius: 9px; }
.device .info { flex: 1; }
.device .name { font-weight: 700; display: flex; align-items: center; gap: 10px; }
.status { font-size: .78rem; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 500; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.status.offline::before { background: var(--red); }
.status.online::before { background: var(--good); }
.device .hint { color: var(--faint); font-size: .82rem; margin-top: 2px; }
.device .hint code { color: var(--red-bright); font-family: var(--f-mono); }

/* empty states: icon, headline, one sentence, the next action */
.empty {
  text-align: center; padding: var(--s6) var(--s5); background: var(--surface); border: 1px dashed var(--border-strong);
  border-radius: var(--radius); margin-top: 8px;
}
.empty .e-ico { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border-strong); color: var(--red); }
.empty .e-ico svg { width: 28px; height: 28px; }
.empty h3 { margin: 0 0 6px; font-size: var(--t-md); }
.empty p { margin: 0 auto var(--s4); color: var(--muted); max-width: 48ch; font-size: var(--t-base); }
.empty code { font-family: var(--f-mono); color: var(--red-bright); }
.empty .row { justify-content: center; }
td .empty { margin: 0; border-style: dashed; }
.table td.cell-empty { padding: 8px; }

/* tables: on narrow screens the wrapper scrolls sideways instead of squashing cells */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-sm); }
.table { width: 100%; border-collapse: collapse; min-width: 520px; }
.table th { text-align: left; color: var(--faint); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.table td { padding: 14px; border-bottom: 1px solid var(--border); font-size: .92rem; }
.table tr:hover td { background: var(--surface-hover); }
.table .strong { font-weight: 700; }
.table .sub { color: var(--muted); font-size: .82rem; }
.chip { font-size: .76rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.chip.good { background: rgba(53,208,127,.14); color: var(--good); }
.chip.warn { background: rgba(255,176,32,.14); color: var(--warn); }
.chip.muted { background: var(--surface-2); color: var(--muted); }
.replay-btn { background: var(--grad); color: #fff; border: none; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }
.replay-btn:hover { box-shadow: 0 8px 20px -8px rgba(255,20,20,.7); }

.cancel-note { margin-top: 22px; background: rgba(255,176,32,.08); border: 1px solid rgba(255,176,32,.3); border-radius: var(--radius); padding: 20px; }
.cancel-note h3, .cancel-note h4 { color: var(--warn); margin: 0 0 6px; }
.cancel-note p { color: var(--muted); margin: 0 0 14px; font-size: .9rem; }
.cancel-note .row { display: flex; gap: 10px; }

/* ---------- 404 ---------- */
.nf { max-width: 560px; margin: 0 auto var(--s8); padding: 0 var(--s5); text-align: center; }
.nf-code { font-family: var(--f-brand); font-size: clamp(4rem, 14vw, 7rem); line-height: 1; letter-spacing: 3px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 24px rgba(255,20,20,.35)); }
.nf p { color: var(--muted); }
.nf .row { justify-content: center; margin-top: var(--s4); }

/* ---------- footer: wordmark · copyright · support ---------- */
.footer { border-top: 1px solid var(--border); margin-top: 40px; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 22px calc(24px + var(--sar)) calc(22px + var(--sab)) calc(24px + var(--sal));
  display: flex; align-items: center; justify-content: center; gap: 10px 22px; flex-wrap: wrap;
  color: var(--muted); font-size: .88rem;
}
.footer-brand { font-family: var(--f-brand); font-size: 1.15rem; letter-spacing: 1px; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-copy { color: var(--faint); }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--red-bright); }

/* ---------- toast ----------
   The toast is a live region, so it stays in the accessibility tree at all
   times (opacity, never `hidden`/visibility): text set while hidden would not
   be announced. It is emptied after it fades. */
.toast {
  position: fixed; bottom: calc(24px + var(--sab)); left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--bg-2); border: 1px solid var(--border-strong); color: var(--text);
  padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow), var(--glow);
  font-size: .9rem; z-index: 90; opacity: 0; transition: opacity .25s, transform .25s;
  pointer-events: none; max-width: calc(100vw - 32px);
}
.toast:empty { padding: 0; border: 0; box-shadow: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- responsive ----------
   1920: --maxw caps the measure, terminal caps at 560px.
   1280: the full two-column hero and 3/4-column grids.
   768 (<920): hero stacks, grids go single column, the terminal sits under the copy.
   360 (<760): nav collapses to the hamburger; type ramp bottoms out via clamp(). */
@media (max-width: 1100px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .hero { padding-top: var(--s7); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .terminal { justify-self: stretch; max-width: none; min-height: 0; }
  .term-body { min-height: 0; }
  .price-grid, .platforms, .keys, .hiw-grid { grid-template-columns: 1fr; }
  .cmd-grid { grid-template-columns: 1fr; }
  .price-card.featured { order: -1; }
  .price-for { min-height: 0; }
}
@media (max-width: 760px) {
  .nav { padding-top: calc(10px + var(--sat)); padding-bottom: 10px; padding-left: calc(var(--s4) + var(--sal)); padding-right: calc(var(--s4) + var(--sar)); gap: var(--s3); }
  .nav-actions { gap: 10px; }
  .nav-link { display: none; }
  .nav-cta { padding: 8px 14px; font-size: .85rem; }
  .hamburger { display: flex; }
  .hero { padding: var(--s6) var(--s4) var(--s5); }
  .section, .pricing, .hiw, .install, .dash { padding-left: var(--s4); padding-right: var(--s4); }
  .hero h1 .l2 { letter-spacing: 1px; }
  .hero .lede { font-size: 1rem; }
  .feat-grid { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dt { margin-top: 8px; }
  .codeblock { flex-wrap: wrap; }
  .page-head { padding-top: var(--s6); }
  .sec-head { margin-bottom: var(--s5); }
  .auth-wrap { margin: var(--s5) auto var(--s7); }
  .auth-card { padding: 22px 18px; }
  .legal-card { padding: 20px 18px; }
  .plan-card { flex-direction: column; }
  .plan-actions { min-width: 0; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-left: calc(-1 * var(--s4)); margin-right: calc(-1 * var(--s4)); padding: 0 var(--s4); }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { white-space: nowrap; flex: 0 0 auto; }
  .device { flex-wrap: wrap; }
  .device .info { flex: 1 1 160px; }
  .token-row, .token-new-head, .list-head { flex-wrap: wrap; }
  .verify-banner { flex-direction: column; align-items: flex-start; }
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal { border-radius: 14px 14px 0 0; max-height: 92vh; }
  .modal-video { max-height: 60vh; }
}
@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .price-card { padding: var(--s4); }
  .platform { padding: var(--s4); }
  .empty .row { flex-direction: column; align-items: stretch; }
  .nf .row { flex-direction: column; }
  .nf .row .btn { width: 100%; }
}
/* touch: every control at least 44px tall (2.5.8 + mobile guidance); inputs at
   16px so iOS does not zoom the page when a field is focused */
@media (pointer: coarse) {
  .btn-sm, .copy-btn, .replay-btn, .tab, .menu-item, .avatar, .hamburger, .nav-cta { min-height: 44px; }
  .footer a, .mobile-menu a, .mobile-menu .mm-btn { min-height: 44px; display: inline-flex; align-items: center; }
  .check input { width: 24px; height: 24px; }
  .input { font-size: 16px; }
  .btn:hover, .price-card:hover, .platform:hover, .step:hover { transform: none; }
}
/* touch tablets / wide phones in landscape still show the text links: give them
   the 44px target too (below 760px they are display:none and must stay so) */
@media (pointer: coarse) and (min-width: 761px) {
  .nav-link { min-height: 44px; display: inline-flex; align-items: center; }
}

/* mobile dropdown menu: slides down from under the bar */
.mobile-menu {
  display: none; position: sticky; top: calc(60px + var(--sat)); z-index: 39;
  background: rgba(12, 12, 17, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border); padding: 10px calc(24px + var(--sar)) 14px calc(24px + var(--sal));
  box-shadow: var(--shadow);
}
.mobile-menu.open { display: block; animation: menuIn .32s var(--ease) both; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mobile-menu a, .mobile-menu .mm-btn {
  display: block; width: 100%; text-align: left; background: none; border: none; font: inherit;
  padding: 14px 4px; color: var(--text); border-bottom: 1px solid var(--border); font-weight: 600; cursor: pointer;
}
.mobile-menu a[aria-current="page"] { color: var(--red-bright); }
.mobile-menu .mm-cta { color: var(--red-bright); }
.mobile-menu > :last-child { border-bottom: none; }


/* ---------- forms (auth / account pages) ---------- */
.auth-wrap { max-width: 440px; margin: 56px auto 80px; }
.auth-card { padding: 32px 30px; background: rgba(12, 12, 17, .72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--shadow); }
.auth-eyebrow { margin-bottom: 8px; }
.auth-title { margin: 0 0 6px; font-family: var(--f-display); font-weight: 400; font-size: 1.9rem; letter-spacing: .4px; line-height: 1.1; }
.auth-sub { margin: 0 0 22px; }
.auth-hint { margin: -8px 0 12px; }
.auth-foot { margin-top: 16px; font-size: 14px; }
.auth-foot-sm { margin-top: 4px; font-size: 13px; }
.auth-foot-sm a { color: var(--muted); }
.link-red { color: var(--red-bright); }
.field { display: block; font-size: 13px; color: var(--muted); }
.input {
  display: block; width: 100%; padding: 12px 14px; margin: 6px 0 14px;
  background: var(--surface-2); border: 1px solid var(--border-input); border-radius: 10px;
  color: var(--text); font: inherit;
}
.input { transition: border-color .2s ease, box-shadow .2s ease; }
.input:focus { border-color: var(--border-strong); box-shadow: var(--ring); }
.input[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--muted); margin: 0 0 14px; cursor: pointer; }
.check input { accent-color: var(--red); width: 18px; height: 18px; margin: 1px 0 0; flex: 0 0 auto; }
/* "Show password" toggle added under every password field (see app.js). Tucked
   up under the field so it reads as part of it. */
.pw-show { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: -8px 0 14px; cursor: pointer; width: max-content; }
.pw-show-cb { accent-color: var(--red); width: 18px; height: 18px; margin: 0; flex: 0 0 auto; cursor: pointer; }
.form-msg { min-height: 18px; font-size: 13px; margin-bottom: 6px; }
.form-msg:focus { outline: none; }
.form-msg.err { color: var(--red); font-weight: 600; }
.form-msg.err:not(:empty)::before { content: "\26A0  "; }
.form-msg.ok { color: var(--good); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---------- utilities (replace former inline styles) ---------- */
.mt8 { margin-top: 8px; }
.mt16 { margin-top: 16px; }
.mb12 { margin-bottom: 12px; }
.mb16 { margin-bottom: 16px; }
.ml8 { margin-left: 8px; }
.sub-head { margin: 6px 0 2px; }
h2.sub-head { font-size: 1.17rem; }
.spacer-48 { height: 48px; }
.pill-row { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.noscript-msg { text-align: center; padding: 2rem; color: var(--text); }

/* ---------- email verification banner ---------- */
.verify-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: rgba(255,176,32,.08); border: 1px solid rgba(255,176,32,.35); border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 16px; color: var(--muted); font-size: .92rem;
}
.verify-banner b { color: var(--text); }

/* ---------- upload tokens ---------- */
.token-actions { margin-top: 10px; }
.token-new { margin-top: 12px; background: rgba(53,208,127,.08); border: 1px solid rgba(53,208,127,.35); border-radius: var(--radius-sm); padding: 12px 14px; }
.token-new-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; font-size: .88rem; }
.token-out { display: block; word-break: break-all; font-size: 12px; font-family: var(--f-mono); color: var(--red-bright); }
.token-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; font-size: .9rem; }
.token-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; }
.token-row .strong { font-weight: 700; }
.token-row .sub { color: var(--muted); font-size: .82rem; }

/* ---------- replay modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.72);
  display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(3px);
}
.modal {
  position: relative; max-width: 960px; width: 100%; background: var(--bg-2);
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.modal-video { display: block; width: 100%; max-height: 70vh; background: #000; }

/* ---------- legal pages ---------- */
.legal { max-width: 820px; margin: 0 auto 72px; }
.legal-card { padding: 28px 30px; line-height: 1.7; }
.legal-card h2, .legal-card h3, .legal-card h4 { margin: 22px 0 8px; line-height: 1.25; }
.legal-card h2 { font-family: var(--f-display); font-weight: 400; font-size: var(--t-xl); letter-spacing: .3px; }
.legal-card h3 { font-size: 1.15rem; }
.legal-card h4 { font-size: 1rem; color: var(--muted); }
.legal-card p { margin: 0 0 12px; color: var(--muted); }
.legal-card p strong { color: var(--text); }
.legal-card ul, .legal-card ol { color: var(--muted); padding-left: 22px; margin: 0 0 12px; }
.legal-card li { margin: 4px 0; }
.legal-card a { color: var(--red-bright); }
.legal-card code { font-family: var(--f-mono); font-size: .88em; color: var(--red-bright); }

/* ---------- print (legal pages, install guide) ----------
   Chrome-less, black on white, links expanded, no decorative effects. */
@media print {
  :root { --bg: #fff; --bg-2: #fff; --text: #000; --muted: #222; --faint: #444; --red-bright: #000; --border: #bbb; }
  .nav, .mobile-menu, .footer, .bg-fx, .toast, .skip-link, .hamburger, .btn, .copy-btn, .noscript-msg { display: none !important; }
  body { background: #fff; color: #000; }
  .page-head { padding: 0 0 8px; text-align: left; }
  .page-head h1 { font-size: 20pt; }
  .legal, .install { max-width: none; margin: 0; padding: 0; }
  .legal-card, .install-card, .card { border: 0; box-shadow: none; padding: 0; background: none; break-inside: avoid; }
  .legal-card p, .legal-card li, .install-card p, .install-card li { color: #000; }
  .legal-card a, .install-card a { color: #000; }
  .legal-card a[href^="http"]::after, .install-card a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .9em; color: #444; }
  .codeblock { background: #f2f2f2; color: #000; border: 1px solid #bbb; }
  h2, h3 { break-after: avoid; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .term-body .line { animation: none; opacity: 1; transform: none; }
  .cursor { animation: none; }
  .ill-pulse { animation: none; }
  .btn:hover, .price-card:hover, .platform:hover,
  .card:hover, .step:hover, .legal-card:hover, .install-card:hover { transform: none; box-shadow: none; }
  .app.leaving, .app.entering { animation: none; opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-copy > *, .terminal, .mobile-menu.open { animation: none; }
  .spotlight { display: none !important; }
  .btn-grad::after { display: none; }
}

/* ========================================================================
   UI polish: cursor-follow spotlight, hover depth, button sheen.
   Decorative only; the reduced-motion block above fully neutralises it and
   the spotlight is additionally gated in JS (pointer:fine, no reduced-motion).
   ======================================================================== */

/* A soft symbiote-red glow that follows the pointer so the eye stays on the
   page. app.js sets --mx / --my (viewport px) and toggles .on. */
.spotlight {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  transition: opacity .6s var(--ease);
  background: radial-gradient(260px 260px at var(--mx, 50%) var(--my, -20%),
    rgba(255, 40, 40, .10), rgba(255, 20, 20, .05) 42%, transparent 72%);
}
.spotlight.on { opacity: 1; }

/* Smooth, consistent transitions on every surface that reacts to hover. */
.card, .step, .price-card, .platform, .legal-card, .install-card {
  transition: transform .25s var(--ease), border-color .25s var(--ease),
    box-shadow .25s var(--ease), background .25s var(--ease);
}
/* Lift + soft red glow on hover (pointer devices only; touch keeps it flat). */
@media (hover: hover) and (pointer: fine) {
  .card:hover, .legal-card:hover, .install-card:hover {
    transform: translateY(-3px); border-color: var(--border-strong);
    box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .8), 0 0 30px -8px rgba(255, 20, 20, .18);
  }
  .step:hover, .price-card:hover, .platform:hover { transform: translateY(-3px); }
}

/* Primary buttons: a quick light sheen sweeps across on hover. */
.btn-grad { position: relative; overflow: hidden; }
.btn-grad::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
  transform: skewX(-18deg); opacity: 0; pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .btn-grad:hover::after { animation: sheen .7s var(--ease); }
}
@keyframes sheen {
  from { left: -60%; opacity: 0; }
  30%  { opacity: 1; }
  to   { left: 130%; opacity: 0; }
}
