/* QuantumCat marketing site — "paper & signal".
   Warm paper, deep ink, one cobalt signal; the dark terminal windows are the
   only dark objects on the page, so the product is the art. Self-hosted type:
   Instrument Sans (UI), Instrument Serif (the italic display word),
   JetBrains Mono (every number and label). Tokens flip for [data-theme=dark]. */

@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/instrument-sans-normal.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: italic; font-weight: 400 700; font-display: swap; src: url(/fonts/instrument-sans-italic.woff2) format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif-normal.woff2) format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif-italic.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/jetbrains-mono-normal.woff2) format("woff2"); }

:root {
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --r: 14px;
  color-scheme: light;

  --paper: #f5f3ee;
  --paper-2: #fdfcf9;
  --paper-3: #ebe7de;
  --ink: #111318;
  --ink-2: #575b65;
  --ink-3: #8b8f99;
  --line: rgba(17, 19, 24, 0.10);
  --line-2: rgba(17, 19, 24, 0.20);
  --accent: #1f3fe6;
  --accent-2: #162fb9;
  --accent-soft: rgba(31, 63, 230, 0.10);
  --on-accent: #ffffff;
  --up: #0e9f6e;
  --down: #d7263d;
  --win: #0b0e14;
  --win-line: rgba(255, 255, 255, 0.10);
  --shadow-win: 0 40px 100px -30px rgba(17, 19, 24, 0.45), 0 12px 30px -16px rgba(17, 19, 24, 0.35);
  --grain-opacity: 0.045;
}

[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0c0d11;
  --paper-2: #14161c;
  --paper-3: #08090c;
  --ink: #eef0f4;
  --ink-2: #a3a7b2;
  --ink-3: #6d717c;
  --line: rgba(238, 240, 244, 0.10);
  --line-2: rgba(238, 240, 244, 0.20);
  --accent: #7d90ff;
  --accent-2: #9aa9ff;
  --accent-soft: rgba(125, 144, 255, 0.14);
  --on-accent: #0a0c1a;
  --up: #2fcf8f;
  --down: #ff5c6c;
  --win: #0b0e14;
  --win-line: rgba(255, 255, 255, 0.12);
  --shadow-win: 0 40px 100px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.04);
  --grain-opacity: 0.06;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  background: var(--paper);
  scroll-behavior: smooth;
  overflow-x: clip; /* never `hidden`: it kills position:sticky on the stage */
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  font-feature-settings: "ss01", "cv11";
}
/* paper grain — one fixed layer, a hair of noise */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  mix-blend-mode: multiply;
}
[data-theme="dark"] body::before { mix-blend-mode: screen; }
main, header, footer { position: relative; z-index: 1; }

a { color: inherit; }
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.up { color: var(--up); }
.down { color: var(--down); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

kbd {
  font-family: var(--mono);
  font-size: 0.8em;
  padding: 1px 7px 2px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--paper-2);
  color: var(--ink);
}
code {
  font-family: var(--mono);
  font-size: 0.86em;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--paper-3);
  color: var(--ink);
}

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow b, .eyebrow strong { color: var(--accent); font-weight: 500; }
.display {
  font-size: clamp(44px, 7.4vw, 108px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 600;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(32px, 4.6vw, 62px);
  line-height: 1.0;
  letter-spacing: -0.04em;
  font-weight: 600;
  text-wrap: balance;
}
.h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 600; text-wrap: balance; }
h1 em, h2 em, .display em, .h2 em, .h3 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
  letter-spacing: -0.02em;
  line-height: 0.9;
}
.lede { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: var(--ink-2); letter-spacing: -0.012em; text-wrap: pretty; }
.lede strong { color: var(--ink); font-weight: 600; }
.body { font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.body strong { color: var(--ink); font-weight: 600; }
.fine { font-size: 13px; color: var(--ink-3); line-height: 1.55; }
.fine a { color: var(--ink-2); }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) { .nav { background: var(--paper); } }
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand svg { color: var(--accent); }
.brand em { font-style: normal; color: var(--accent); }
.nav-links { display: flex; gap: 4px; margin-left: 6px; }
.nav-links a {
  text-decoration: none;
  font-size: 14px;
  color: var(--ink-2);
  padding: 7px 11px;
  border-radius: 8px;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--accent-soft); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 34px; height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  display: grid; place-items: center;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.theme-toggle:hover { border-color: var(--line-2); color: var(--ink); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }
.nav-burger { display: none; width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line); background: transparent; cursor: pointer; position: relative; }
.nav-burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform 0.25s var(--ease), top 0.25s var(--ease); }
.nav-burger span:nth-child(1) { top: 14px; }
.nav-burger span:nth-child(2) { top: 22px; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { top: 18px; transform: rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { top: 18px; transform: rotate(-45deg); }
.nav-sheet { display: none; }
.nav.open .nav-sheet {
  display: grid; gap: 2px;
  position: absolute; left: 0; right: 0; top: 100%;
  padding: 10px var(--gutter) 18px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(17, 19, 24, 0.35);
}
.nav-sheet a { text-decoration: none; color: var(--ink); font-size: 17px; font-weight: 500; padding: 12px 0; border-bottom: 1px solid var(--line); }
.nav-sheet a:last-child { border-bottom: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none;
  font-size: 14.5px; font-weight: 600;
  letter-spacing: -0.005em;
  padding: 10px 18px;
  border-radius: 11px;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--on-accent);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s var(--ease), transform 0.16s var(--ease), border-color 0.16s var(--ease);
}
.btn:hover { background: var(--accent-2); }
.btn:active { transform: translateY(1px); }
.btn.lg { font-size: 16px; padding: 14px 26px; border-radius: 13px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--paper-2); border-color: var(--ink); }
.btn.ink { background: var(--ink); color: var(--paper); }
.btn.ink:hover { background: var(--accent); color: var(--on-accent); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.btn .arrow { opacity: 0.7; }

/* ---------- hero + the sticky stage ---------- */
.stage-wrap { position: relative; height: 240vh; }
.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.stage-copy {
  position: absolute;
  top: clamp(88px, 12vh, 140px);
  left: 0; right: 0;
  z-index: 3;
  text-align: center;
  padding: 0 var(--gutter);
  will-change: opacity, transform;
}
.stage-copy .eyebrow { margin-bottom: 22px; }
.stage-copy .display { max-width: 13ch; margin: 0 auto; font-size: clamp(42px, 6.9vw, 100px); }
.stage-copy .lede { max-width: 560px; margin: 24px auto 0; }
.cta-row { display: flex; gap: 12px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.stage-window {
  position: absolute;
  left: 0; right: 0;
  top: 72px;
  bottom: 196px;
  display: grid;
  place-items: center;
  z-index: 2;
  will-change: transform;
}
.win {
  width: min(92vw, calc((100vh - 312px) * 1.7778));
  border-radius: 16px;
  overflow: hidden;
  background: var(--win);
  border: 1px solid var(--win-line);
  box-shadow: var(--shadow-win);
}
.win-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--win-line);
  background: rgba(255, 255, 255, 0.02);
}
.win-bar i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.win-bar i:nth-child(1) { background: #ff5f57; }
.win-bar i:nth-child(2) { background: #febc2e; }
.win-bar i:nth-child(3) { background: #28c840; }
.win-bar span { margin-left: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: rgba(232, 238, 248, 0.45); }
.win video, .win img { width: 100%; height: auto; }

.beats {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 196px;
  z-index: 4;
  padding: 26px var(--gutter) 30px;
  display: flex;
  align-items: flex-start;
  gap: 26px;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.beats.on { opacity: 1; }
.rail { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; }
.rail li { width: 2px; height: 24px; border-radius: 2px; background: var(--line-2); transition: background 0.35s var(--ease), height 0.35s var(--ease); }
.rail li.on { background: var(--accent); height: 34px; }
.beat-copy { max-width: 640px; }
.beat-n { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.12em; margin-bottom: 8px; }
.beat-copy h2 { font-size: clamp(22px, 2.9vw, 36px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 600; }
.beat-copy p { margin-top: 8px; color: var(--ink-2); font-size: clamp(14px, 1.3vw, 16px); line-height: 1.5; }
.scroll-hint {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 5;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-3);
  transition: opacity 0.4s var(--ease);
}

/* flat hero (phones + reduced motion): headline, then the window below it */
.flat .stage-wrap { height: auto; }
.flat .stage { position: relative; height: auto; overflow: visible; padding: 120px 0 40px; }
.flat .stage-copy { position: static; opacity: 1 !important; transform: none !important; }
.flat .stage-window { position: static; inset: auto; margin-top: 44px; transform: none !important; }
.flat .win { width: min(92vw, 1180px); margin: 0 auto; }
.flat .beats, .flat .scroll-hint { display: none; }

/* ---------- brokers strip ---------- */
.brokers {
  display: flex; align-items: center; justify-content: center; gap: 18px 28px; flex-wrap: wrap;
  padding: 10px var(--gutter) 0;
}
.brokers .eyebrow { margin-right: 6px; }
.brokers span:not(.eyebrow) { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.brokers .soon { color: var(--ink-3); font-weight: 500; }
.brokers .soon::after { content: "soon"; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; margin-left: 6px; color: var(--ink-3); }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 12vh, 150px) 0 0; }
.section-head { display: grid; grid-template-columns: 1fr; gap: 18px; max-width: 900px; }
.section-head .idx { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--accent); display: flex; align-items: center; gap: 12px; }
.section-head .idx::after { content: ""; width: 44px; height: 1px; background: var(--accent); opacity: 0.6; }
.section-head .lede { max-width: 640px; }

/* ---------- stats strip ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(64px, 9vh, 110px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { padding: 30px 26px 30px 0; }
.stat + .stat { padding-left: 26px; border-left: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(40px, 4.6vw, 64px); line-height: 1; letter-spacing: -0.045em; font-weight: 600; }
.stat b small { font-size: 0.5em; letter-spacing: -0.02em; color: var(--ink-3); font-weight: 500; margin-left: 2px; }
.stat span { display: block; margin-top: 10px; font-size: 14px; color: var(--ink-2); line-height: 1.45; max-width: 24ch; }

/* ---------- proof panels ---------- */
.proofs { display: grid; gap: clamp(72px, 10vh, 140px); margin-top: clamp(56px, 8vh, 96px); }
.proof { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.proof.flip .proof-copy { order: 2; }
.proof-copy .idx { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 18px; }
.proof-copy .h2 { font-size: clamp(30px, 3.6vw, 48px); }
.proof-copy .lede { margin-top: 18px; font-size: clamp(16px, 1.35vw, 18px); }
.proof-copy ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.proof-copy li { position: relative; padding: 13px 0 13px 30px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.proof-copy li::before { content: "—"; position: absolute; left: 0; top: 13px; color: var(--accent); font-family: var(--mono); }
.proof-copy li strong { color: var(--ink); font-weight: 600; }
.proof-copy .more { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 600; font-size: 14.5px; color: var(--accent); text-decoration: none; }
.proof-copy .more:hover { text-decoration: underline; text-underline-offset: 4px; }

.frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--win);
  border: 1px solid var(--win-line);
  box-shadow: var(--shadow-win);
}
.frame .win-bar { padding: 9px 13px; }
.frame .media { position: relative; aspect-ratio: 16 / 9; background: var(--win); }
.frame video, .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame video { opacity: 0; transition: opacity 0.5s var(--ease); }
.frame video.ready { opacity: 1; }
.frame .cap {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(232, 238, 248, 0.7);
  background: rgba(11, 14, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 9px; border-radius: 999px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.frame .cap i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #16c784; margin-right: 7px; vertical-align: 1px; animation: livePulse 1.6s ease-in-out infinite; }
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ---------- cells (three-up) ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(40px, 6vh, 64px); border-top: 1px solid var(--line); }
.grid3 + .grid3 { margin-top: 0; }
.cell { padding: 28px 28px 32px 0; border-bottom: 1px solid var(--line); }
.cell + .cell { padding-left: 28px; border-left: 1px solid var(--line); }
.cell .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.cell .k b { color: var(--accent); font-weight: 500; }
.cell h3 { font-size: 19px; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 10px; font-weight: 600; }
.cell p { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.cell p strong { color: var(--ink); font-weight: 600; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(40px, 6vh, 64px); border-top: 1px solid var(--line); }
.step { padding: 28px 28px 34px 0; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step i { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.12em; }
.step h3 { margin: 12px 0 10px; font-size: 19px; letter-spacing: -0.02em; line-height: 1.2; font-weight: 600; }
.step p { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }

/* ---------- split (text + frame), used on landing sub-pages ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: clamp(40px, 6vh, 64px); }

/* ---------- early access ---------- */
.ea { margin-top: clamp(80px, 12vh, 150px); }
.ea-card {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper-2);
  padding: clamp(28px, 4vw, 56px);
}
.ea-card .lede { margin-top: 18px; }
.ea-card .fine { margin-top: 22px; }
.ea form { display: grid; gap: 14px; }
.ea .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ea label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 7px; }
.ea input, .ea select {
  width: 100%; padding: 13px 14px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: var(--paper);
  color: var(--ink);
  font: inherit; font-size: 15px;
  -webkit-appearance: none; appearance: none;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.ea input::placeholder { color: var(--ink-3); }
.ea input:focus, .ea select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ea select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238b8f99' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.ea select option { background: var(--paper-2); color: var(--ink); }
.ea button[type="submit"] { width: 100%; margin-top: 4px; }
.ea-msg { min-height: 18px; font-size: 14px; text-align: center; color: var(--ink-2); }
.ea-msg.ea-err { color: var(--down); }
.ea-done { text-align: center; padding: 20px 0; }
.ea-done .tick { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 0 auto 14px; font-size: 20px; }
.ea-done h3 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 6px; }
.ea-done p { color: var(--ink-2); font-size: 15px; }

/* ---------- pricing ---------- */
.price-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: clamp(36px, 5vh, 56px); max-width: 860px; }
.price {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper-2);
  padding: 30px 30px 28px;
  display: flex; flex-direction: column;
}
.price.hot { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.price .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.price .amt { font-size: 40px; font-weight: 600; letter-spacing: -0.04em; margin: 12px 0 2px; line-height: 1; }
.price .amt small { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--ink-3); margin-left: 8px; }
.price ul { list-style: none; padding: 0; margin: 18px 0 26px; }
.price li { position: relative; padding: 9px 0 9px 26px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.price li::before { content: "✓"; position: absolute; left: 0; top: 10px; color: var(--accent); font-family: var(--mono); font-size: 13px; }
.price .btn { margin-top: auto; }

/* ---------- faq ---------- */
.faq { max-width: 820px; margin-top: clamp(28px, 4vh, 40px); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 20px 0;
  font-weight: 600; font-size: 17px; letter-spacing: -0.015em;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-weight: 400; font-size: 20px; color: var(--ink-3); transition: transform 0.25s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; max-width: 70ch; }
.faq details p a { color: var(--accent); text-decoration: none; }
.faq details p a:hover { text-decoration: underline; }

/* ---------- final cta ---------- */
.final { text-align: center; padding: clamp(100px, 16vh, 200px) var(--gutter) clamp(90px, 14vh, 170px); }
.final .display { font-size: clamp(40px, 6.4vw, 92px); }
.final .cta-row { margin-top: 36px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 56px 0 44px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.foot-brand p { margin-top: 14px; font-size: 14px; color: var(--ink-2); max-width: 30ch; line-height: 1.5; }
.foot-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin-bottom: 14px; }
.foot-col a { display: block; text-decoration: none; font-size: 14px; color: var(--ink-2); padding: 4px 0; }
.foot-col a:hover { color: var(--ink); }
.legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.7; color: var(--ink-3); max-width: 960px; }

/* ---------- page hero (sub-pages) ---------- */
.page-hero { padding: clamp(120px, 16vh, 170px) 0 0; }
.page-hero .eyebrow { margin-bottom: 20px; }
.page-hero .display { font-size: clamp(38px, 5.6vw, 76px); max-width: 16ch; }
.page-hero .lede { max-width: 640px; margin-top: 22px; }
.page-hero .cta-row { justify-content: flex-start; }
.page-hero .frame { margin-top: clamp(40px, 6vh, 64px); }
.crumbs { display: flex; gap: 8px; align-items: center; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ink-3); margin-bottom: 22px; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span { opacity: 0.6; }

/* ---------- doc pages (feature deep-dives) ---------- */
.doc { padding-top: clamp(48px, 7vh, 80px); }
.doc > h2, .doc > h3, .doc > p, .doc > ul, .doc > ol, .doc > table, .doc > .trail-card, .doc > .honest { max-width: 860px; }
.doc h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.03em; line-height: 1.12; margin: 56px 0 14px; padding-top: 22px; border-top: 1px solid var(--line); font-weight: 600; }
.doc h3 { font-size: 19px; letter-spacing: -0.02em; margin: 26px 0 8px; font-weight: 600; }
.doc p { color: var(--ink-2); margin: 10px 0; max-width: 72ch; line-height: 1.65; font-size: 16px; }
.doc p strong, .doc li strong { color: var(--ink); font-weight: 600; }
.doc ul, .doc ol { color: var(--ink-2); padding-left: 22px; margin: 12px 0; }
.doc li { margin: 8px 0; max-width: 70ch; line-height: 1.6; }
.doc a { color: var(--accent); text-decoration: none; }
.doc a:hover { text-decoration: underline; }
.doc .why { border-left: 2px solid var(--accent); padding: 4px 0 4px 14px; margin: 12px 0; }
.doc .why b { color: var(--ink); }
.trail-card { border: 1px solid var(--line); border-radius: 16px; background: var(--paper-2); padding: 20px 22px; margin: 16px 0; }
.trail-card h3 { margin: 0 0 8px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.trail-card h3 .tag { font-family: var(--mono); font-size: 11.5px; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 2px 8px; letter-spacing: 0.06em; }
.trail-card p:last-child { margin-bottom: 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 16px 0; }
.doc th { text-align: left; font-family: var(--mono); color: var(--ink-3); font-weight: 500; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; padding: 8px 10px; border-bottom: 1px solid var(--line-2); }
.doc td { padding: 11px 10px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; line-height: 1.55; }
.doc td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
.honest { border: 1px solid var(--line-2); border-left: 3px solid var(--accent); border-radius: 14px; padding: 18px 22px; margin: 28px 0; background: var(--paper-2); }
.honest h3 { margin: 0 0 6px; }
.honest p { margin: 6px 0; }
.doc-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 60px; padding-top: 22px; border-top: 1px solid var(--line); }
.doc-nav a { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; color: var(--ink-2); text-decoration: none; font-size: 13.5px; transition: border-color 0.15s var(--ease), color 0.15s var(--ease); }
.doc-nav a:hover, .doc-nav a[aria-current="page"] { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.pager a { text-decoration: none; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: grid; gap: 4px; transition: border-color 0.15s var(--ease); }
.pager a:hover { border-color: var(--accent); }
.pager a.next { text-align: right; }
.pager small { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.pager b { font-size: 16px; letter-spacing: -0.015em; color: var(--ink); }

/* ---------- features hub ---------- */
.hub { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(40px, 6vh, 64px); }
.hub a {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper-2);
  overflow: hidden;
  display: grid; grid-template-rows: auto 1fr;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.hub a:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 20px 50px -30px rgba(17, 19, 24, 0.4); }
.hub .thumb { aspect-ratio: 16 / 9; background: var(--win); overflow: hidden; border-bottom: 1px solid var(--line); }
.hub .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.hub a:hover .thumb img { transform: scale(1.03); }
.hub .t { padding: 18px 20px 20px; }
.hub .t small { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.hub .t b { display: block; font-size: 18px; letter-spacing: -0.02em; margin: 8px 0 6px; color: var(--ink); }
.hub .t span { font-size: 14px; color: var(--ink-2); line-height: 1.5; }

/* ---------- setup guide ---------- */
.pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(36px, 5vh, 56px); }
.pick a { text-decoration: none; border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; background: var(--paper-2); transition: border-color 0.15s var(--ease), transform 0.2s var(--ease); display: grid; gap: 6px; }
.pick a:hover { border-color: var(--accent); transform: translateY(-2px); }
.pick a small { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.pick a b { font-size: 20px; letter-spacing: -0.02em; color: var(--ink); }
.pick a p { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.pick a .go { color: var(--accent); font-size: 13.5px; font-weight: 600; margin-top: 8px; }
.vsteps { list-style: none; padding: 0; margin: clamp(30px, 4vh, 44px) 0 0; counter-reset: sv; max-width: 760px; }
.vsteps > li { position: relative; padding: 0 0 34px 40px; border-left: 1px solid var(--line-2); margin-left: 16px; }
.vsteps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.vsteps > li::before { counter-increment: sv; content: counter(sv, decimal-leading-zero); position: absolute; left: -17px; top: -2px; width: 34px; height: 24px; border-radius: 999px; display: grid; place-items: center; background: var(--paper); color: var(--accent); font-family: var(--mono); font-size: 11.5px; font-weight: 500; border: 1px solid var(--line-2); letter-spacing: 0.05em; }
.vsteps h3 { font-size: 19px; letter-spacing: -0.02em; margin: 0 0 8px; font-weight: 600; }
.vsteps p { font-size: 15px; color: var(--ink-2); margin: 0 0 10px; line-height: 1.6; max-width: 66ch; }
.vsteps p strong { color: var(--ink); font-weight: 600; }
.note { border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; background: var(--paper-2); padding: 12px 16px; margin: 10px 0 12px; font-size: 14px; color: var(--ink-2); line-height: 1.6; max-width: 66ch; }
.note b { color: var(--ink); }
.opt { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-right: 8px; }
.setup-sec { padding-top: clamp(64px, 10vh, 120px); }
.setup-sec .h2 { font-size: clamp(30px, 4vw, 52px); }
.setup-sec .lede { max-width: 640px; margin-top: 18px; }

/* ---------- small cards (download, account) ---------- */
.card { border: 1px solid var(--line); border-radius: 20px; background: var(--paper-2); padding: 28px 28px 26px; }
.card h2, .card h1 { font-size: 22px; letter-spacing: -0.02em; margin: 0 0 6px; font-weight: 600; }
.card .sub { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; margin-bottom: 18px; }
.dl-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(36px, 5vh, 56px); }
.dl-os { font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.dl-ver { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin: 6px 0 16px; }
.dl-steps { margin: 16px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; line-height: 1.65; }
.dl-note { margin-top: 26px; font-size: 14px; color: var(--ink-2); line-height: 1.65; max-width: 70ch; }
.dl-err { display: none; margin-top: 16px; color: var(--down); font-size: 14.5px; }
.dl-err a { color: inherit; }

.acct { max-width: 480px; margin: 0 auto; padding-top: clamp(110px, 16vh, 160px); }
.acct form { display: grid; gap: 14px; }
.acct label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 7px; }
.acct input { width: 100%; padding: 13px 14px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); font: inherit; font-size: 15px; -webkit-appearance: none; appearance: none; }
.acct input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.acct .btn { width: 100%; }
.acct-msg { min-height: 18px; font-size: 13.5px; text-align: center; color: var(--ink-2); }
.acct-msg.err { color: var(--down); }
.acct-links { display: flex; justify-content: center; gap: 18px; margin-top: 2px; flex-wrap: wrap; }
.acct-links button { background: none; border: none; color: var(--accent); font-size: 13.5px; cursor: pointer; padding: 2px; }
.acct-links button.dim2 { color: var(--ink-3); }
.plan-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.plan-row .k { color: var(--ink-2); }
.plan-row .v { font-weight: 600; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill.on { background: rgba(14, 159, 110, 0.14); color: var(--up); }
.pill.off { background: rgba(215, 38, 61, 0.12); color: var(--down); }
.acct-actions { display: grid; gap: 10px; margin-top: 18px; }
.divider { border: none; border-top: 1px solid var(--line); margin: 18px 0; }
.foot-note { font-size: 13px; color: var(--ink-3); text-align: center; margin-top: 16px; line-height: 1.6; }
.foot-note a { color: var(--ink-2); }
.hidden { display: none !important; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .hub { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav { height: 58px; }
  .nav-burger { display: block; }
  .nav .btn { padding: 8px 13px; font-size: 13.5px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 0; }
  .stat + .stat { padding-left: 0; border-left: none; }
  .stat:nth-child(2) { padding-left: 20px; border-left: 1px solid var(--line); }
  .stat:nth-child(4) { padding-left: 20px; border-left: 1px solid var(--line); }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .proof, .proof.flip { grid-template-columns: 1fr; }
  .proof.flip .proof-copy { order: 0; }
  .proof .frame { order: -1; }
  .grid3, .steps, .pick, .price-row, .dl-cards, .split { grid-template-columns: 1fr; }
  .cell, .step { padding: 22px 0; }
  .cell + .cell, .step + .step { padding-left: 0; border-left: none; }
  .ea-card { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .pager { grid-template-columns: 1fr; }
  .doc td:first-child { white-space: normal; }
  .ea .row2 { grid-template-columns: 1fr; }
  /* the hero goes flat: no scroll-jacking on a touch device */
  .stage-wrap { height: auto; }
  .stage { position: relative; height: auto; overflow: visible; padding: 108px 0 32px; }
  .stage-copy { position: static; opacity: 1 !important; transform: none !important; }
  .stage-window { position: static; inset: auto; margin-top: 40px; transform: none !important; }
  .win { width: 92vw; margin: 0 auto; }
  .beats, .scroll-hint { display: none; }
}
@media (max-width: 560px) {
  .hub { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .display { font-size: clamp(38px, 11vw, 52px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .rail li, .beats, .hub a, .hub .thumb img { transition: none; }
  .frame .cap i { animation: none; }
}
