/* ─────────────────────────────────────────────────────────────────────
   MultiBrowse — website styles

   The palette, the radii and the type scale are lifted straight from the
   desktop app (src/index.css) so the site and the product look like one
   thing. Both themes are here for the same reason: the app ships a theme
   toggle, so the site has one too.
   ───────────────────────────────────────────────────────────────────── */

:root,
[data-theme="dark"] {
  --bg-primary: #0a0a0f;
  --bg-secondary: #101018;
  --bg-tertiary: #16161f;
  --bg-card: #1a1a25;
  --bg-hover: #22222f;
  --bg-input: #12121a;
  --border: #1e1e2a;
  --border-hover: #2a2a3a;
  --text-primary: #e8e8f0;
  --text-secondary: #8888a0;
  --text-tertiary: #666680;
  --text-muted: #555570;
  --text-dim: #444460;
  --scrim: rgba(4, 4, 8, 0.72);
  --card-grad: linear-gradient(160deg, #16161f 0%, #101018 100%);
  --glow-strong: rgba(232, 212, 77, 0.22);
  --glow-soft: rgba(232, 212, 77, 0.08);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
}

[data-theme="light"] {
  --bg-primary: #f7f7fa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #eef0f5;
  --bg-card: #ffffff;
  --bg-hover: #e9ebf2;
  --bg-input: #ffffff;
  --border: #e2e4ec;
  --border-hover: #cdd0dc;
  --text-primary: #16161f;
  --text-secondary: #5c5f70;
  --text-tertiary: #7a7d90;
  --text-muted: #8a8da0;
  --text-dim: #a0a3b5;
  --scrim: rgba(20, 20, 30, 0.42);
  --card-grad: linear-gradient(160deg, #ffffff 0%, #f4f5f9 100%);
  --glow-strong: rgba(184, 168, 62, 0.28);
  --glow-soft: rgba(184, 168, 62, 0.1);
  --shadow-lg: 0 20px 50px rgba(30, 34, 60, 0.14);
}

:root {
  --accent: #e8d44d;
  --accent-dim: #b8a83e;
  --accent-ink: #12120a;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --pad: clamp(18px, 4vw, 32px);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-tight: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

[data-theme="light"] { --accent: #b8a83e; --accent-ink: #14140c; }

/* ── Base ───────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.62;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}

h1, h2, h3, h4 { font-family: var(--font-tight); line-height: 1.12; margin: 0; letter-spacing: -0.022em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
code, pre { font-family: var(--mono); font-size: .86em; }

::selection { background: rgba(232, 212, 77, .3); color: var(--accent); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 6px; border: 3px solid var(--bg-primary); }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

.sr-only, .skip {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip:focus {
  width: auto; height: auto; clip: auto; margin: 0; z-index: 200;
  top: 10px; left: 10px; padding: 10px 16px; background: var(--accent);
  color: var(--accent-ink); border-radius: var(--r-sm);
}

.wrap { width: min(1200px, 100% - 2 * var(--pad)); margin-inline: auto; }
.wrap-narrow { width: min(820px, 100% - 2 * var(--pad)); }

/* Constellation layer. Above the page background, below every section —
   so it shows through the transparent bands and is quietly veiled by the
   tinted ones, which keeps it from ever competing with body copy. */
.bg-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.head, main, .foot, .modal, .toasts { position: relative; z-index: 1; }

/* ── Cursor ─────────────────────────────────────────────────────────────
   The desktop app hides the system cursor and draws its own accent dot
   with a glow (src/components/CustomCursor.tsx). Same two elements here —
   a dot and a glow, nothing orbiting them. Over a link the dot swells
   instead, which is the hover feedback a website needs and the app does
   not. Fine pointers only: a phone keeps its native everything.
   ─────────────────────────────────────────────────────────────────────── */

.cur { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; opacity: 0; }
.cur-dot {
  width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 6px rgba(232, 212, 77, .5);
  transition: width .08s, height .08s, margin .08s, box-shadow .12s, opacity .12s;
}
.cur-glow {
  width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 212, 77, .15) 0%, transparent 70%);
  transition: width .12s, height .12s, margin .12s, background .12s;
}
/* Pressed: the app shrinks the dot and lifts the glow. */
.cur-on .cur { opacity: 1; }
.cur-down .cur-dot { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; box-shadow: 0 0 12px rgba(232, 212, 77, .9), 0 0 24px rgba(232, 212, 77, .5); }
.cur-down .cur-glow { width: 24px; height: 24px; margin: -12px 0 0 -12px; background: radial-gradient(circle, rgba(232, 212, 77, .35) 0%, transparent 70%); }

/* Over something clickable: the dot swells and burns brighter. */
.cur-link .cur-dot { width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; box-shadow: 0 0 14px rgba(232, 212, 77, .8); }
.cur-link .cur-glow { width: 52px; height: 52px; margin: -26px 0 0 -26px; background: radial-gradient(circle, rgba(232, 212, 77, .22) 0%, transparent 70%); }

/* Over text: the dot becomes a caret so typing still makes sense. */
.cur-text .cur-dot { width: 2px; height: 20px; margin: -10px 0 0 -1px; border-radius: 1px; }

@media (hover: hover) and (pointer: fine) {
  .cur-on, .cur-on * { cursor: none !important; }
}

/* ── Buttons ────────────────────────────────────────────────────────── */

.btn {
  --btn-bg: var(--bg-tertiary);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 10px 18px; border-radius: var(--r);
  background: var(--btn-bg); color: var(--text-primary);
  border: 1px solid var(--border); cursor: pointer;
  font-size: 14px; font-weight: 550; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden;
  transition: transform .18s cubic-bezier(.2,.7,.3,1), background-color .18s ease, border-color .18s ease, box-shadow .25s ease, color .18s ease;
}
.btn:hover { border-color: var(--border-hover); background: var(--bg-hover); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn-lg { padding: 14px 24px; font-size: 15px; border-radius: var(--r-lg); }
.btn-block { width: 100%; }
.btn-i { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.btn-primary {
  background: linear-gradient(140deg, var(--accent) 0%, var(--accent-dim) 100%);
  color: var(--accent-ink); border-color: transparent;
  box-shadow: 0 6px 22px var(--glow-strong);
  font-weight: 650;
}
.btn-primary:hover { background: linear-gradient(140deg, #f2e068 0%, var(--accent) 100%); box-shadow: 0 12px 34px var(--glow-strong); }

/* Sweep — the app's .btn-shine, ported. */
.btn-primary::after {
  content: ''; position: absolute; inset: -50%;
  background: linear-gradient(to right, transparent 0%, rgba(255,255,255,.35) 50%, transparent 100%);
  transform: rotate(35deg) translateX(-120%); transition: transform .7s ease;
}
.btn-primary:hover::after { transform: rotate(35deg) translateX(120%); }

.btn-outline { background: transparent; border-color: var(--border-hover); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--glow-soft); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-secondary); }
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-tertiary); }

.icon-btn {
  display: grid; place-items: center; width: 38px; height: 38px; flex: none;
  border-radius: var(--r); border: 1px solid var(--border);
  background: var(--bg-tertiary); cursor: pointer; color: var(--text-secondary);
  transition: color .18s, border-color .18s, background .18s;
}
.icon-btn:hover { color: var(--accent); border-color: var(--border-hover); }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.i-sun { display: none; }
[data-theme="light"] .i-sun { display: block; }
[data-theme="light"] .i-moon { display: none; }

.link {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--accent); font-size: 13px; font-weight: 500;
  border-bottom: 1px solid transparent;
}
.link:hover { border-bottom-color: currentColor; }

/* ── Header ─────────────────────────────────────────────────────────── */

.head {
  position: fixed; inset: 0 0 auto; z-index: 60;
  transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.head.scrolled {
  background: color-mix(in srgb, var(--bg-primary) 82%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.head-in { display: flex; align-items: center; gap: 18px; height: 68px; }

.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; flex: none; filter: drop-shadow(0 4px 14px var(--glow-strong)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: -.02em; }
.brand-text i { font-style: normal; font-size: 9.5px; color: var(--text-dim); letter-spacing: .02em; }

.nav { display: flex; gap: 4px; margin-inline: auto; }
.nav-link {
  padding: 8px 13px; border-radius: var(--r-sm); font-size: 13.5px;
  color: var(--text-secondary); font-weight: 500; transition: color .18s, background .18s;
}
.nav-link:hover { color: var(--text-primary); background: var(--bg-tertiary); }

.head-actions { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.menu-btn { display: none; }

@media (max-width: 980px) {
  .nav {
    position: fixed; inset: 68px 0 auto; margin: 0; flex-direction: column; gap: 2px;
    padding: 12px var(--pad) 20px; background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-link { padding: 12px 14px; font-size: 15px; }
  .menu-btn { display: grid; }
  .head-actions .btn-ghost { display: none; }
}

/* ── Hero ───────────────────────────────────────────────────────────── */

.hero { position: relative; padding: 132px 0 0; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ''; position: absolute; z-index: -2; inset: -20% -10% auto;
  height: 780px;
  background:
    radial-gradient(60% 60% at 72% 24%, var(--glow-soft) 0%, transparent 70%),
    radial-gradient(50% 50% at 18% 8%, rgba(120, 130, 255, .07) 0%, transparent 70%);
}
/* ── The stage ──────────────────────────────────────────────────────────
   The 3D gets a frame of its own. Nothing overlaps it and it overlaps
   nothing — no text ever sits on top of moving particles.
   ─────────────────────────────────────────────────────────────────────── */

.stage-sec { padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 8vw, 108px); }
.stage-head { max-width: 640px; margin-bottom: clamp(24px, 3vw, 36px); }

/* No frame, no panel, no backdrop — the particles sit straight on the
   page. Only a soft accent bloom marks where the cloud is. */
.stage { position: relative; }
.stage::before {
  content: ''; position: absolute; inset: -6% -4% 12%; pointer-events: none;
  background: radial-gradient(52% 52% at 50% 46%, var(--glow-soft) 0%, transparent 70%);
}
.stage-canvas { position: relative; display: block; width: 100%; height: clamp(380px, 56vh, 600px); }

.stage-noscene {
  position: absolute; inset: 0 0 68px; display: grid; place-items: center; color: var(--accent); opacity: .4;
}
.stage-noscene svg { width: 120px; height: 120px; }

.stage-ui {
  position: relative; display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; margin-top: clamp(6px, 1.5vw, 14px);
}
.shape-btn {
  flex: 0 1 220px; text-align: left; cursor: pointer;
  padding: 11px 16px; border-radius: var(--r);
  background: transparent; border: 1px solid var(--border);
  transition: border-color .22s ease, background .22s ease, transform .22s ease;
}
.shape-btn:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.shape-btn b { display: block; font-family: var(--font-tight); font-size: 14px; font-weight: 600; }
.shape-btn i { font-style: normal; font-size: 11.5px; color: var(--text-tertiary); }
.shape-btn.is-on { border-color: var(--accent); background: var(--glow-soft); }
.shape-btn.is-on b { color: var(--accent); }
.hero-in {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px); align-items: center; padding-bottom: 64px;
}

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 10px; border-radius: 100px;
  border: 1px solid var(--border-hover); background: var(--bg-tertiary);
  font-size: 12px; color: var(--text-secondary); font-family: var(--mono);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--glow-strong); animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(232,212,77,.5); } 70%, 100% { box-shadow: 0 0 0 9px rgba(232,212,77,0); } }

.h1 {
  margin: 22px 0 20px;
  font-size: clamp(42px, 6.6vw, 76px); font-weight: 700; letter-spacing: -.035em;
}
.grad {
  background: linear-gradient(100deg, var(--accent) 0%, #fff3a6 42%, var(--accent-dim) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 220% auto; animation: shimmer 7s linear infinite;
}
[data-theme="light"] .grad { background: linear-gradient(100deg, #9c8c26 0%, #d4c25a 45%, #8d7f22 100%); -webkit-background-clip: text; background-clip: text; }
@keyframes shimmer { 0% { background-position: 0% center; } 100% { background-position: 200% center; } }

.lede { max-width: 54ch; font-size: clamp(15.5px, 1.5vw, 17.5px); color: var(--text-secondary); }
.lede b { color: var(--text-primary); font-weight: 600; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 22px; }

.plat-row { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.plat { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-muted); font-family: var(--mono); }
.plat svg { width: 14px; height: 14px; opacity: .7; }
.plat.is-on { color: var(--text-secondary); }
.plat.is-on svg { color: var(--accent); opacity: 1; }

.stat-row {
  display: flex; flex-wrap: wrap; gap: 10px 36px; margin-top: 34px;
  padding-top: 26px; border-top: 1px solid var(--border);
}
.stat b { display: block; font-family: var(--font-tight); font-size: 30px; font-weight: 700; color: var(--accent); line-height: 1; }
.stat span { font-size: 12px; color: var(--text-muted); }

/* ── Hero: the profile deck ─────────────────────────────────────────────
   The card is the app's grid card, measurement for measurement: 12px
   radius, 16px padding, --bg-tertiary body, --bg-secondary tiles at 8px,
   a 40px avatar tinted with the profile colour, and the green/red action
   button. What differs is the arrangement — a leaning deck rather than a
   list, because a tidy row of rectangles is a spreadsheet, not a product.
   ─────────────────────────────────────────────────────────────────────── */

.hero-cards { perspective: 1400px; }

.deck {
  position: relative;
  width: min(310px, 100%);
  height: 430px;
  margin-inline: auto;
  transform-style: preserve-3d;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
  outline: none;
}
.deck:focus-visible { outline: 2px solid var(--accent); outline-offset: 14px; border-radius: var(--r-lg); }

.pcard {
  position: absolute; inset: 0 auto auto 0;
  width: min(310px, 100%);
  padding: 16px; border-radius: 12px;
  background: var(--bg-tertiary); border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .42);
  transform-origin: 50% 60%;
  transition: transform .42s cubic-bezier(.2,.7,.3,1), opacity .42s ease, box-shadow .3s ease;
}
[data-theme="light"] .pcard { box-shadow: 0 16px 34px rgba(30, 34, 60, .16); }
.pcard.is-top { box-shadow: 0 26px 60px rgba(0, 0, 0, .5); border-color: var(--border-hover); }

/* Flying off to the left on its way to the back of the deck. */
.pcard.is-out {
  transform: translate3d(-130%, -18px, 0) rotate(-16deg) scale(.94) !important;
  opacity: 0 !important;
}
.pcard.no-anim { transition: none !important; }

/* ── Card header ────────────────────────────────────────────────────── */

.pc-head { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 12px; }
.pc-avatar {
  position: relative; display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 12px;
  background: color-mix(in srgb, var(--pc) 13%, transparent);
  color: var(--pc); font-size: 12px; font-weight: 700;
}
.pc-pip {
  position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--text-muted);
  border: 2px solid var(--bg-tertiary);
}
.pcard.is-live .pc-pip { background: #22c55e; animation: pipPulse 1.9s ease-in-out infinite; }
@keyframes pipPulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }

.pc-id { min-width: 0; flex: 1; }
.pc-id b { display: block; font-size: 14px; font-weight: 550; color: var(--text-primary); }
.pc-id i { font-style: normal; font-size: 10px; color: var(--text-muted); }
.pc-more { color: var(--text-muted); flex: none; }
.pc-more svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }

/* ── OS line ────────────────────────────────────────────────────────── */

.pc-os { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; margin-bottom: 10px; }
.pc-os-name { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--text-primary); }
.pc-os-name svg { width: 13px; height: 13px; color: var(--text-secondary); }
.pc-res { color: var(--text-muted); font-size: 10.5px; }

/* ── 2 × 2 tiles ────────────────────────────────────────────────────── */

.pc-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.tile {
  min-width: 0; padding: 8px 10px; border-radius: 8px;
  background: var(--bg-secondary); font-size: 10px;
}
.tile span { display: block; color: var(--text-muted); }
.tile b { display: block; margin-top: 2px; font-weight: 600; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile i { display: block; font-style: normal; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── CPU / RAM / proxy strip ────────────────────────────────────────── */

.pc-strip {
  display: flex; align-items: center; gap: 14px;
  padding: 8px 10px; border-radius: 8px; background: var(--bg-secondary);
  font-size: 10px; color: var(--text-secondary); margin-bottom: 12px;
}
.pc-strip i { font-style: normal; color: var(--text-muted); }
.pc-strip b { color: var(--text-primary); font-weight: 600; }
.pc-proxy {
  margin-left: auto; padding: 2px 6px; border-radius: 4px; font-size: 9px;
  font-weight: 600; text-transform: uppercase;
  background: rgba(34, 197, 94, .1); color: #22c55e;
}

/* The whole card flashes accent while a fingerprint is being rerolled. */
.pcard.flash .tile b, .pcard.flash .tile i, .pcard.flash .pc-res, .pcard.flash .pc-strip b { color: var(--accent); }

/* ── Actions ────────────────────────────────────────────────────────── */

.pc-acts { display: flex; align-items: center; gap: 8px; }
.pc-run {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 7px; border: 0; border-radius: 8px; cursor: pointer;
  font-size: 11px; font-weight: 550;
  background: rgba(34, 197, 94, .15); color: #22c55e;
  transition: filter .15s ease;
}
.pc-run:hover { filter: brightness(1.15); }
.pc-run svg { width: 12px; height: 12px; }
.pc-run .i-stop, .pcard.is-live .pc-run .i-play { display: none; }
.pcard.is-live .pc-run .i-stop { display: block; }
.pcard.is-live .pc-run { background: rgba(239, 68, 68, .15); color: #ef4444; }

.pc-roll {
  display: grid; place-items: center; width: 30px; height: 30px; flex: none;
  border: 0; border-radius: 8px; cursor: pointer;
  background: var(--border); color: var(--text-secondary);
  transition: color .15s ease, background .15s ease;
}
.pc-roll:hover { color: var(--accent); background: var(--bg-hover); }
.pc-roll svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .55s cubic-bezier(.2,.7,.3,1); }
.pc-roll.spin svg { transform: rotate(360deg); }

.mock-note { margin-top: 26px; font-size: 11.5px; color: var(--text-dim); text-align: center; }
.mock-note b { color: var(--text-tertiary); }

/* ── Ticker ─────────────────────────────────────────────────────────── */

.ticker {
  border-block: 1px solid var(--border); background: transparent;
  overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-in { display: flex; gap: 42px; padding: 13px 0; width: max-content; animation: slide 42s linear infinite; }
.ticker-in span { font-family: var(--mono); font-size: 11.5px; color: var(--text-muted); white-space: nowrap; }
.ticker-in span::before { content: '◆'; color: var(--accent); margin-right: 12px; font-size: 8px; vertical-align: middle; opacity: .65; }
@keyframes slide { to { transform: translateX(-50%); } }
.ticker:hover .ticker-in { animation-play-state: paused; }

/* ── Sections ───────────────────────────────────────────────────────── */

.sec { padding: clamp(72px, 10vw, 124px) 0; position: relative; }

/* No tinted bands. Every section sits on the page background and is
   marked off by a single hairline, which also lets the constellation run
   uninterrupted from the hero to the footer. */
main > section + section, .foot { border-top: 1px solid var(--border); }
/* Only the tint goes: the separator above is drawn by the rule before
   this one, and a `border-block: 0` here would outrank it on specificity
   and silently delete every other divider. */
.sec-alt { background: transparent; border-bottom: 0; }

.sec-head { max-width: 760px; margin-bottom: clamp(38px, 5vw, 62px); }
.eyebrow {
  display: inline-block; margin-bottom: 14px; font-family: var(--mono);
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.h2 { font-size: clamp(28px, 3.9vw, 46px); font-weight: 650; }
.sec-sub { margin-top: 16px; font-size: clamp(15px, 1.4vw, 17px); color: var(--text-secondary); max-width: 62ch; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }

/* ── Cards (3D tilt) ────────────────────────────────────────────────── */

.tilt { transform-style: preserve-3d; will-change: transform; transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease, border-color .35s ease; }

.card {
  position: relative; padding: 26px 24px 28px; border-radius: var(--r-lg);
  border: 1px solid var(--border); background: var(--card-grad); overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), var(--glow-soft), transparent 62%);
  transition: opacity .35s ease;
}
.card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-lg); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 18px; margin-bottom: 9px; transform: translateZ(24px); }
.card p { font-size: 14px; color: var(--text-secondary); transform: translateZ(14px); }
.card p b { color: var(--text-primary); font-weight: 600; }
.card-ico {
  display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 18px;
  border-radius: var(--r); background: var(--glow-soft); border: 1px solid var(--border);
  transform: translateZ(38px);
}
.card-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card-quiet { background: transparent; border-style: dashed; }
.card-quiet .card-ico { background: var(--bg-tertiary); }
.card-quiet .card-ico svg { stroke: var(--text-tertiary); }

/* ── Features split ─────────────────────────────────────────────────── */

.feat-split { display: grid; grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr); gap: 22px; }
@media (max-width: 900px) { .feat-split { grid-template-columns: 1fr; } }

.feat-list { display: flex; flex-direction: column; gap: 8px; }
.feat-item {
  display: flex; gap: 14px; align-items: flex-start; text-align: left; cursor: pointer;
  padding: 16px 18px; border-radius: var(--r-lg); border: 1px solid var(--border);
  background: var(--bg-primary); transition: all .22s ease;
}
[data-theme="light"] .feat-item { background: var(--bg-card); }
.feat-item:hover { border-color: var(--border-hover); transform: translateX(4px); }
.feat-item.is-on { border-color: var(--accent); background: var(--glow-soft); }
.feat-n { font-family: var(--mono); font-size: 11px; color: var(--accent); padding-top: 3px; }
.feat-item b { display: block; font-size: 15px; font-family: var(--font-tight); font-weight: 600; }
.feat-item i { font-style: normal; font-size: 12.5px; color: var(--text-tertiary); }

.feat-panels { position: relative; border-radius: var(--r-xl); border: 1px solid var(--border); background: var(--card-grad); padding: clamp(24px, 3.4vw, 40px); min-height: 340px; }
.feat-panel { display: none; animation: panelIn .4s cubic-bezier(.2,.7,.3,1); }
.feat-panel.is-on { display: block; }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px) rotateX(-4deg); } to { opacity: 1; transform: none; } }
.feat-panel h3 { font-size: clamp(20px, 2.3vw, 26px); margin-bottom: 12px; }
.feat-panel > p { color: var(--text-secondary); font-size: 15px; margin-bottom: 20px; }

.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; font-size: 14px; color: var(--text-secondary); }
.ticks li b { color: var(--text-primary); }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--glow-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8d44d' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E");
  background-size: 10px; background-position: center; background-repeat: no-repeat;
}
.ticks code { padding: 1px 5px; border-radius: 5px; background: var(--bg-tertiary); color: var(--accent); }

/* ── Use cases ──────────────────────────────────────────────────────── */

.uses .use {
  position: relative; padding: 24px; border-radius: var(--r-lg);
  border: 1px solid var(--border); background: var(--card-grad); overflow: hidden;
}
.use:hover { border-color: var(--border-hover); box-shadow: var(--shadow-lg); }
.use h3 { font-size: 17px; margin-bottom: 8px; transform: translateZ(22px); }
.use p { font-size: 13.5px; color: var(--text-secondary); transform: translateZ(12px); }
.use-3d { perspective: 500px; margin-bottom: 18px; }
.use-ico {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: linear-gradient(150deg, var(--bg-hover), var(--bg-tertiary));
  border: 1px solid var(--border-hover); transform: rotateX(14deg) rotateY(-16deg) translateZ(30px);
  box-shadow: -6px 8px 18px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.05);
  transition: transform .45s cubic-bezier(.2,.7,.3,1);
}
.use:hover .use-ico { transform: rotateX(0deg) rotateY(0deg) translateZ(48px); }
.use-ico svg { width: 21px; height: 21px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ── Cost model ─────────────────────────────────────────────────────── */

/* ── Cost comparison ────────────────────────────────────────────────────
   Compact horizontal bars. Five totals of wildly different magnitude read
   fastest as lengths on a shared left edge — and unlike columns, the rows
   need no room for rotated labels, so the whole thing fits in a band.
   ─────────────────────────────────────────────────────────────────────── */

.cost { max-width: 780px; margin: 0 auto 30px; }
.cost-title { font-size: clamp(17px, 2vw, 21px); }
.cost-sub { font-size: 13px; color: var(--text-tertiary); margin-top: 6px; }

.cost-months { display: flex; flex-direction: column; gap: 6px; max-width: 420px; margin: 20px auto 0; }
.cost-months output { font-family: var(--mono); font-size: 12px; color: var(--accent); text-align: center; }
.range-ends { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-dim); font-family: var(--mono); }

.chart { display: flex; flex-direction: column; gap: 7px; margin-top: 22px; }
.crow { display: grid; grid-template-columns: 128px minmax(0, 1fr) 74px; gap: 12px; align-items: center; }
.crow-name { font-size: 12.5px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crow-name i { font-style: normal; font-size: 9.5px; font-family: var(--mono); color: var(--text-dim); margin-left: 5px; }
.crow-track { height: 20px; border-radius: 5px; background: var(--bg-tertiary); overflow: hidden; }
.crow-fill {
  display: block; height: 100%; width: 0; border-radius: 5px;
  background: var(--bg-hover);
  transition: width .6s cubic-bezier(.2,.7,.3,1);
}
.crow-val { font-family: var(--mono); font-size: 12px; text-align: right; color: var(--text-secondary); }

.crow.is-us .crow-name { color: var(--accent); font-weight: 600; }
.crow.is-us .crow-name i { color: var(--accent-dim); }
.crow.is-us .crow-fill { background: linear-gradient(90deg, var(--accent-dim), var(--accent)); box-shadow: 0 0 18px var(--glow-strong); }
.crow.is-us .crow-val { color: var(--accent); }

@media (max-width: 560px) {
  .crow { grid-template-columns: 92px minmax(0, 1fr) 62px; gap: 8px; }
  .crow-name { font-size: 11px; }
  .crow-name i { display: none; }
  .crow-val { font-size: 10.5px; }
  .crow-track { height: 16px; }
}

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: var(--bg-hover); cursor: pointer; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg-primary); box-shadow: 0 0 0 1px var(--accent), 0 4px 14px var(--glow-strong);
}
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg-primary); }

.fineprint { font-size: 12px; color: var(--text-muted); margin-top: 16px; line-height: 1.6; }
.fineprint a { color: var(--accent); }

/* ── Comparison table ───────────────────────────────────────────────── */

.table-scroll { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--bg-primary); }
[data-theme="light"] .table-scroll { background: var(--bg-card); }
.cmp { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 13.5px; }
.cmp th, .cmp td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.cmp thead th { position: sticky; top: 0; background: var(--bg-tertiary); font-family: var(--font-tight); font-size: 14px; font-weight: 600; z-index: 1; }
.cmp tbody th { color: var(--text-secondary); font-weight: 500; width: 210px; }
.cmp td { color: var(--text-tertiary); }
.cmp tbody tr:hover td, .cmp tbody tr:hover th { background: var(--bg-secondary); }
[data-theme="light"] .cmp tbody tr:hover td, [data-theme="light"] .cmp tbody tr:hover th { background: var(--bg-tertiary); }
.cmp .is-us { background: var(--glow-soft); color: var(--text-primary); }
.cmp tbody .is-us b { color: var(--accent); font-weight: 600; }
.cmp thead .is-us { background: linear-gradient(180deg, var(--glow-strong), var(--glow-soft)); }
.us-tag { color: var(--accent); font-family: var(--mono); }
.cmp .yes { color: #22c55e; }
.cmp .no { color: var(--text-muted); }
.cmp tbody .is-us.no b { color: var(--text-tertiary); }

/* ── Download ───────────────────────────────────────────────────────── */

.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; align-items: start; }
.dl {
  position: relative; padding: 28px 24px; border-radius: var(--r-xl);
  border: 1px solid var(--border); background: var(--card-grad);
}
.dl:hover { border-color: var(--border-hover); box-shadow: var(--shadow-lg); }
.dl-on { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); box-shadow: 0 0 0 1px var(--glow-soft), var(--shadow-lg); }
.dl-badge {
  position: absolute; top: 16px; right: 16px; padding: 4px 10px; border-radius: 100px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase;
  background: var(--accent); color: var(--accent-ink);
}
.dl-badge.is-soon { background: var(--bg-hover); color: var(--text-tertiary); }
.dl-ico { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 16px; color: var(--accent); transform: translateZ(30px); }
.dl:not(.dl-on) .dl-ico { color: var(--text-tertiary); }
.dl-ico svg { width: 30px; height: 30px; }
.dl h3 { font-size: 21px; }
.dl-meta { font-family: var(--mono); font-size: 11.5px; color: var(--text-dim); margin: 6px 0 20px; }
.dl-btn { width: 100%; margin-bottom: 9px; }

.hashes { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 12px; }
.hashes summary { cursor: pointer; font-size: 12.5px; color: var(--text-tertiary); list-style: none; display: flex; align-items: center; gap: 7px; }
.hashes summary::before { content: '▸'; color: var(--accent); transition: transform .2s; }
.hashes[open] summary::before { transform: rotate(90deg); }
.hashes p { font-size: 12.5px; color: var(--text-tertiary); margin: 10px 0; }
.hash { margin: 8px 0; }
.hash span { display: block; font-size: 10.5px; color: var(--text-dim); font-family: var(--mono); }
.hash code { display: block; font-size: 10px; color: var(--text-secondary); word-break: break-all; }
.hashes pre { margin: 10px 0 0; padding: 10px; border-radius: var(--r-sm); background: var(--bg-input); border: 1px solid var(--border); overflow-x: auto; font-size: 10.5px; color: var(--text-secondary); }

.notify { display: flex; gap: 8px; margin-bottom: 10px; }
.notify input {
  flex: 1; min-width: 0; padding: 11px 13px; border-radius: var(--r);
  background: var(--bg-input); border: 1px solid var(--border); font-size: 13.5px;
  transition: border-color .18s, box-shadow .18s;
}
.notify input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow-soft); }

/* ── Pricing ────────────────────────────────────────────────────────── */

.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 18px; align-items: start; max-width: 880px; }
.price { position: relative; padding: 30px 26px; border-radius: var(--r-xl); border: 1px solid var(--border); background: var(--card-grad); }
.price-hot { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); box-shadow: 0 0 0 1px var(--glow-soft), var(--shadow-lg); }
.price-flag {
  position: absolute; top: -11px; left: 26px; padding: 4px 12px; border-radius: 100px;
  background: var(--accent); color: var(--accent-ink); font-size: 10px; font-weight: 650;
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .07em;
}
.price h3 { font-size: 17px; color: var(--text-secondary); font-weight: 550; }
.price-tag { display: flex; align-items: baseline; gap: 9px; margin: 10px 0 6px; }
.price-tag b { font-family: var(--font-tight); font-size: 46px; font-weight: 700; letter-spacing: -.04em; }
.price-hot .price-tag b { color: var(--accent); }
.price-tag span { font-size: 13px; color: var(--text-dim); }
.price-sub { font-size: 13.5px; color: var(--text-tertiary); margin-bottom: 22px; }
.price .ticks { margin-bottom: 24px; }
.price-btn { width: 100%; }

/* ── FAQ ────────────────────────────────────────────────────────────── */

.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details {
  border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--card-grad);
  padding: 16px 20px; transition: border-color .2s;
}
.faq details[open] { border-color: var(--border-hover); }
.faq summary {
  cursor: pointer; list-style: none; font-family: var(--font-tight); font-size: 16px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 20px; line-height: 1; transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin-top: 12px; font-size: 14px; color: var(--text-secondary); }

/* ── Contact ────────────────────────────────────────────────────────── */

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: clamp(26px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-ico {
  display: grid; place-items: center; width: 38px; height: 38px; flex: none;
  border-radius: var(--r); background: var(--glow-soft); border: 1px solid var(--border);
}
.contact-ico svg { width: 17px; height: 17px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-list b { display: block; font-family: var(--font-tight); font-size: 14.5px; font-weight: 600; }
.contact-list span, .contact-list a { font-size: 13.5px; color: var(--text-tertiary); }
.contact-list a { color: var(--accent); }
.contact-list a:hover { text-decoration: underline; }

.contact-form {
  display: flex; flex-direction: column; gap: 14px;
  /* No panel — the fields sit on the page, like the copy beside them. */
  padding: 0;
}
.contact-form label { display: flex; flex-direction: column; gap: 7px; font-size: 12px; color: var(--text-tertiary); }
.contact-form input, .contact-form textarea {
  padding: 12px 14px; border-radius: var(--r); background: var(--bg-input);
  border: 1px solid var(--border); color: var(--text-primary); font-size: 14px;
  transition: border-color .18s, box-shadow .18s;
}
.contact-form textarea { resize: vertical; min-height: 120px; font-family: inherit; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--text-dim); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow-soft); }
.contact-form .fineprint { margin-top: 2px; }

/* ── CTA band ───────────────────────────────────────────────────────── */

.cta-band { position: relative; padding: clamp(52px, 7vw, 82px) 0; overflow: hidden; }
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(60% 120% at 50% 120%, var(--glow-soft), transparent 70%);
}
.cta-in { position: relative; display: flex; flex-wrap: wrap; gap: 26px; align-items: center; justify-content: space-between; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Footer ─────────────────────────────────────────────────────────── */

.foot { background: transparent; padding: 52px 0 26px; }
.foot-in { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 1.3fr); gap: 34px; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr; } }
.foot-brand { display: flex; gap: 13px; align-items: flex-start; }
.foot-brand b { font-family: var(--mono); font-size: 14px; color: var(--accent); }
.foot-brand p { font-size: 13px; color: var(--text-tertiary); margin-top: 6px; max-width: 40ch; }
.foot-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 22px; }
.foot-links h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); margin-bottom: 12px; font-family: var(--mono); font-weight: 500; }
.foot-links a { display: block; font-size: 13.5px; color: var(--text-secondary); padding: 4px 0; transition: color .18s; }
.foot-links a:hover { color: var(--accent); }
.foot-bot {
  display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border);
  font-size: 11.5px; color: var(--text-dim);
}
.foot-bot a { color: var(--text-tertiary); }
.foot-bot a:hover { color: var(--accent); }

/* ── Auth modal ─────────────────────────────────────────────────────────
   A port of the desktop app's AuthModal. The measurements are the app's:
   360px card, 24px padding, 16px radius, inputs on --bg-primary with no
   visible border, and a solid accent button with the app's shine sweep.
   ─────────────────────────────────────────────────────────────────────── */

.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); backdrop-filter: blur(4px); animation: fade .25s ease; }
[data-theme="light"] .modal-scrim { background: rgba(20, 20, 30, .45); }
@keyframes fade { from { opacity: 0; } }

/* Rising accent motes — the app draws 25 of these behind its scrim. */
.auth-dust { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.auth-dust i {
  position: absolute; bottom: -10px; border-radius: 50%; background: var(--accent);
  animation: rise linear infinite;
}
@keyframes rise {
  from { transform: translate3d(0, 0, 0); opacity: var(--o, .15); }
  to { transform: translate3d(var(--dx, 0), calc(-1 * var(--dy, 320px)), 0); opacity: 0; }
}

.auth-card {
  position: relative; width: min(360px, 100%); max-height: min(92vh, 760px); overflow-y: auto;
  padding: 24px; border-radius: 16px; background: var(--bg-tertiary);
  box-shadow: var(--shadow-lg);
  animation: authIn .3s cubic-bezier(.23, 1, .32, 1);
}
@keyframes authIn { from { opacity: 0; transform: translateY(30px) scale(.95); } }

.view { display: none; flex-direction: column; gap: 12px; }
.view.is-on { display: flex; animation: viewIn .15s ease; }
@keyframes viewIn { from { opacity: 0; transform: translateX(-10px); } }
.view.busy { opacity: .6; pointer-events: none; }

.view-t { font-size: 12px; font-weight: 500; color: var(--text-secondary); }
.view-s { font-size: 11px; color: var(--text-muted); margin-top: -6px; }
.view-s b { color: var(--accent); font-weight: 500; }
.view-hint { text-align: center; font-size: 10px; color: var(--text-tertiary); }

.back {
  display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
  background: none; border: 0; padding: 0; cursor: pointer;
  font-size: 11px; color: var(--text-tertiary);
}
.back:hover { color: var(--text-secondary); }
.back svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Input with a leading icon, exactly as the app lays it out. */
.ifield { position: relative; }
.ifield-i {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; fill: none; stroke: var(--text-tertiary);
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none;
}
.ifield input {
  width: 100%; padding: 12px 16px 12px 40px; border-radius: 8px;
  background: var(--bg-primary); border: 1px solid transparent;
  color: var(--text-primary); font-size: 14px;
  transition: border-color .18s, box-shadow .18s;
}
.ifield input::placeholder { color: var(--text-tertiary); }
.ifield input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow-soft); }
.ifield-eye {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 26px; height: 26px;
  border: 0; background: none; cursor: pointer; color: var(--text-tertiary);
}
.ifield-eye:hover { color: var(--text-secondary); }
.ifield-eye svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ifield-eye.off svg { opacity: .55; }

.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.remember { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-tertiary); cursor: pointer; user-select: none; }
.remember input { width: 14px; height: 14px; accent-color: var(--accent); background: var(--bg-primary); cursor: pointer; }
.mini { background: none; border: 0; padding: 0; cursor: pointer; font-size: 11px; color: var(--text-tertiary); }
.mini:hover { color: var(--text-secondary); }
.accent { background: none; border: 0; padding: 0; cursor: pointer; color: var(--accent); font-size: inherit; }
.accent:hover { text-decoration: underline; }

.auth-btn {
  position: relative; overflow: hidden; display: block; width: 100%;
  padding: 12px; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--accent); color: var(--bg-primary);
  font-size: 14px; font-weight: 600; text-align: center;
  transition: filter .15s ease, transform .15s ease;
}
[data-theme="light"] .auth-btn { color: #fffdf2; }
.auth-btn:hover { filter: brightness(1.08); }
.auth-btn:active { transform: scale(.985); filter: brightness(.95); }
/* The app's .btn-shine sweep. */
.auth-btn::after {
  content: ''; position: absolute; inset: -50%;
  background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, .25) 50%, transparent 100%);
  transform: rotate(45deg) translateX(-100%); transition: transform .6s;
}
.auth-btn:hover::after { transform: rotate(45deg) translateX(100%); }
.auth-btn .spin { display: inline-block; width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }

.auth-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.auth-foot p { font-size: 11px; color: var(--text-muted); }

/* Four separate digit boxes, 52px, mono — same as the app. */
.code-boxes { display: flex; gap: 12px; justify-content: center; margin: 8px 0; }
.code-boxes input {
  width: 52px; height: 52px; text-align: center; font-family: var(--mono); font-size: 22px;
  border-radius: 12px; background: var(--bg-primary); border: 1px solid transparent;
  color: var(--text-primary); transition: border-color .18s, box-shadow .18s;
}
.code-boxes input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow-soft); }

.auth-msg { margin-top: 12px; padding: 8px 12px; border-radius: 8px; font-size: 12px; animation: viewIn .2s ease; }
.auth-msg.err { background: rgba(239, 68, 68, .1); color: #f87171; }
.auth-msg.ok { background: rgba(34, 197, 94, .1); color: #4ade80; }

/* ── Toasts ─────────────────────────────────────────────────────────── */

.toasts { position: fixed; z-index: 200; bottom: 22px; right: 22px; display: flex; flex-direction: column; gap: 9px; pointer-events: none; }
.toast {
  padding: 12px 16px; border-radius: var(--r); background: var(--bg-card);
  border: 1px solid var(--border-hover); box-shadow: var(--shadow-lg);
  font-size: 13px; max-width: 330px; animation: toastIn .3s cubic-bezier(.2,.8,.3,1);
}
.toast.ok { border-left: 3px solid #22c55e; }
.toast.err { border-left: 3px solid #ef4444; }
.toast.out { animation: toastOut .3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(24px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(24px); } }

/* ── Reveal on scroll ───────────────────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.grid-3 .reveal:nth-child(2), .dl-grid .reveal:nth-child(2), .price-grid .reveal:nth-child(2) { transition-delay: .07s; }
.grid-3 .reveal:nth-child(3), .dl-grid .reveal:nth-child(3) { transition-delay: .14s; }
.grid-3 .reveal:nth-child(5) { transition-delay: .07s; }
.grid-3 .reveal:nth-child(6) { transition-delay: .14s; }

/* ── Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-cards { max-width: 560px; }
  .stage-canvas { height: clamp(300px, 44vh, 420px); }
}
@media (max-width: 560px) {
  /* Touch has no hover, so the card actions must always be reachable. */
  /* Touch cannot sweep-to-riffle, so the deck sits tighter and a tap
     cycles it instead. */
  .deck { height: 400px; }
  .stat-row { gap: 18px 26px; }
  .stat b { font-size: 24px; }
  .toasts { left: 16px; right: 16px; bottom: 16px; }
  .toast { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
