/* ============================================================
   Omoi — site stylesheet
   Tokens are a verbatim port of the app's theme/tokens.ts.
   Every color/radius/duration below comes from that file or from
   docs/ICON-SPEC.md's brand gradient (#7580E8 / #5E6AD2 / #3A44A0).
   Never add an ad-hoc hex.
   ============================================================ */

/* ---------- tokens ---------- */
:root, [data-theme="dark"] {
  --bg-deep:#020203; --bg-base:#0a0a0f; --bg-elevated:#0a0a0c;
  --surface:rgba(255,255,255,0.05); --surface-strong:rgba(255,255,255,0.08);
  --fg:#EDEDEF; --fg-muted:#8A8F98; --fg-faint:#565b64;
  --accent:#5E6AD2; --accent-soft:rgba(94,106,210,0.14);
  --accent-border:rgba(94,106,210,0.35); --accent-glow:rgba(94,106,210,0.20);
  --border:rgba(255,255,255,0.08);
  --success:#4CC38A; --warning:#F5A623; --destructive:#E5484D; --on-accent:#FFFFFF;
  --blob:1;
  --shadow-mock:0 40px 120px rgba(0,0,0,0.5);
  --brand:linear-gradient(150deg,#7580E8,#5E6AD2 42%,#3A44A0);
  --ease:cubic-bezier(0.16,1,0.3,1);
  --fast:150ms; --base:220ms; --slow:300ms;
}
[data-theme="light"] {
  --bg-deep:#F1F1F4; --bg-base:#FAFAFB; --bg-elevated:#FFFFFF;
  --surface:#F1F1F4; --surface-strong:#E7E7EA;
  --fg:#17171C; --fg-muted:#6B6F76; --fg-faint:#B3B7BD;
  --accent:#5E6AD2; --accent-soft:rgba(94,106,210,0.10);
  --accent-border:rgba(94,106,210,0.30); --accent-glow:rgba(94,106,210,0.14);
  --border:#E7E7EA;
  --success:#2F9E6A; --warning:#D18A12; --destructive:#E5484D; --on-accent:#FFFFFF;
  --blob:0;
  --shadow-mock:0 30px 80px rgba(0,0,0,0.14);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg-deep:#F1F1F4; --bg-base:#FAFAFB; --bg-elevated:#FFFFFF;
    --surface:#F1F1F4; --surface-strong:#E7E7EA;
    --fg:#17171C; --fg-muted:#6B6F76; --fg-faint:#B3B7BD;
    --accent-soft:rgba(94,106,210,0.10); --accent-border:rgba(94,106,210,0.30);
    --accent-glow:rgba(94,106,210,0.14);
    --border:#E7E7EA; --success:#2F9E6A; --warning:#D18A12;
    --blob:0;
    --shadow-mock:0 30px 80px rgba(0,0,0,0.14);
  }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body {
  margin:0;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  background:linear-gradient(180deg,var(--bg-base),var(--bg-deep));
  background-attachment:fixed;
  color:var(--fg);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  font-variant-numeric:tabular-nums;
  overflow-x:hidden;
}
img, svg { max-width:100%; }
a { color:var(--accent); text-decoration:none; }
a:hover { color:var(--fg); }
button { font:inherit; }
::selection { background:var(--accent-soft); color:var(--fg); }
:focus-visible { outline:2px solid var(--accent); outline-offset:2px; border-radius:6px; }
summary::-webkit-details-marker { display:none; }
.sr-only {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}
.num { font-variant-numeric:tabular-nums; }

/* ---------- type scale (app ramp, clamped up for desktop) ---------- */
.eyebrow, .label {
  font-size:12px; font-weight:500; letter-spacing:1.2px; text-transform:uppercase;
}
.eyebrow { color:var(--accent); }
h1, h2, h3 { margin:0; }
.h-display {
  font-weight:700; font-size:clamp(34px,7vw,64px);
  line-height:1.03; letter-spacing:-0.03em;
}
.h-section {
  font-weight:700; font-size:clamp(28px,4.6vw,44px);
  line-height:1.06; letter-spacing:-0.03em;
}
.h-feature {
  font-weight:700; font-size:clamp(26px,3.6vw,40px);
  line-height:1.1; letter-spacing:-0.02em;
}
.h-title { font-size:17px; font-weight:600; letter-spacing:-0.2px; }
.body { font-size:16px; line-height:1.6; color:var(--fg-muted); }
.secondary { font-size:14px; line-height:1.55; color:var(--fg-muted); }
.lede { font-size:18px; line-height:1.55; color:var(--fg-muted); max-width:56ch; }

/* ---------- layout ---------- */
.wrap { max-width:1200px; margin:0 auto; padding-left:20px; padding-right:20px; }
.wrap-narrow { max-width:920px; margin:0 auto; padding-left:20px; padding-right:20px; }
.wrap-prose { max-width:760px; margin:0 auto; padding-left:20px; padding-right:20px; }
.section { padding-top:96px; scroll-margin-top:80px; }
.section-head { text-align:center; max-width:680px; margin:0 auto; }
.section-head .h-section { margin-top:12px; }
/* NOTE: `content-visibility:auto` was tried here (plan §8 perf) and removed.
   With the sticky scrub sections it made the browser mis-estimate section
   heights, so in-page anchors and scrollIntoView landed in the wrong place
   and below-fold sections rendered blank. The page is ~60KB of markup; there
   was nothing to win. */

/* ---------- nav ---------- */
.nav {
  position:sticky; top:0; z-index:50;
  border-bottom:1px solid transparent;
  transition:background var(--base) var(--ease), border-color var(--base) var(--ease);
}
.nav.stuck {
  background:color-mix(in srgb, var(--bg-base) 72%, transparent);
  backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
  border-bottom-color:var(--border);
}
.nav-inner { display:flex; align-items:center; gap:16px; padding-top:14px; padding-bottom:14px; }
.brand { display:flex; align-items:center; gap:10px; color:var(--fg); }
.brand:hover { color:var(--fg); }
.brand-tile {
  width:34px; height:34px; border-radius:8px; display:grid; place-items:center;
  background:var(--brand); box-shadow:0 4px 16px rgba(94,106,210,0.45);
  flex:none;
}
.brand-name { font-size:18px; font-weight:600; letter-spacing:-0.3px; }
.navlinks { display:flex; gap:20px; margin:0 auto; font-size:14px; }
/* padding, not font-size: gets the hit target to 24px+ (WCAG 2.5.8) */
.navlinks a { color:var(--fg-muted); padding:6px 8px; border-radius:8px; }
.navlinks a:hover { color:var(--fg); }
.nav-right { display:flex; align-items:center; gap:10px; margin-left:auto; }
.icon-btn {
  width:44px; height:44px; border-radius:10px; border:1px solid var(--border);
  background:var(--surface); color:var(--fg); display:grid; place-items:center;
  cursor:pointer; transition:background var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.icon-btn:hover { background:var(--surface-strong); border-color:var(--accent-border); }
.menu-btn { display:none; }
.mobile-menu {
  display:none; border-top:1px solid var(--border);
  background:color-mix(in srgb, var(--bg-base) 92%, transparent);
  backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
}
.mobile-menu.open { display:block; }
.mobile-menu a {
  display:block; padding:14px 20px; color:var(--fg); font-size:16px; font-weight:600;
  border-bottom:1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom:0; }

/* ---------- buttons ---------- */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  height:52px; padding:0 24px; border-radius:16px;
  font-size:16px; font-weight:600; cursor:pointer;
  border:1px solid var(--border); background:var(--surface); color:var(--fg);
  transition:transform var(--fast) var(--ease), background var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.btn:hover { color:var(--fg); border-color:var(--accent-border); background:var(--surface-strong); }
.btn:active { transform:scale(0.97); }
.btn-ghost { background:transparent; }
.btn-primary {
  color:var(--on-accent); background:var(--brand); border-color:transparent;
  box-shadow:0 10px 30px var(--accent-glow);
}
.btn-primary:hover { color:var(--on-accent); border-color:transparent; background:var(--brand); }
.btn-sm { height:44px; padding:0 18px; font-size:14px; border-radius:10px; }
.btn[disabled] { cursor:default; opacity:1; }
.btn[disabled]:active { transform:none; }
.soon {
  font-size:10px; font-weight:500; letter-spacing:1.2px; text-transform:uppercase;
  padding:3px 8px; border-radius:999px;
  background:rgba(255,255,255,0.16); color:var(--on-accent);
}
.btn:not(.btn-primary) .soon { background:var(--surface-strong); color:var(--fg-muted); }
.ctas { display:flex; flex-wrap:wrap; gap:12px; }

/* ---------- cards / chips / AI block ---------- */
.card {
  background:var(--bg-elevated); border:1px solid var(--border); border-radius:16px;
  padding:24px;
  transition:transform var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.card-hover:hover { transform:translateY(-2px); border-color:var(--accent-border); }
.icon-tile {
  display:grid; place-items:center; width:40px; height:40px; border-radius:10px;
  background:var(--accent-soft); color:var(--accent);
}
.chip {
  display:inline-flex; align-items:center; gap:6px;
  font-size:11px; color:var(--fg-muted);
  background:var(--surface); border:1px solid var(--border);
  border-radius:8px; padding:3px 8px;
}
.pill {
  display:inline-flex; align-items:center; gap:8px;
  font-size:12px; font-weight:500; letter-spacing:1.2px; text-transform:uppercase;
  color:var(--fg-muted); padding:6px 12px;
  border:1px solid var(--border); border-radius:999px; background:var(--surface);
}
.ai-block {
  background:var(--surface); border-left:2px solid var(--accent);
  border-radius:0 10px 10px 0; box-shadow:0 0 24px var(--accent-glow);
  padding:10px 12px;
}
.ai-label {
  display:flex; align-items:center; gap:6px;
  font-size:10px; font-weight:500; letter-spacing:1.2px; text-transform:uppercase;
  color:var(--accent);
}
.ai-block p { margin:5px 0 0; font-size:12px; color:var(--fg-muted); line-height:1.5; }

/* ---------- reveal / motion ---------- */
.reveal {
  opacity:0; transform:translateY(24px);
  transition:opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
}
.reveal.in { opacity:1; transform:none; }

@keyframes wave { 0%,100% { transform:scaleY(0.25); } 50% { transform:scaleY(1); } }
@keyframes shimmerband { 0% { background-position:-160% 0; } 100% { background-position:260% 0; } }
@keyframes glowpulse {
  0%,100% { box-shadow:0 0 0 0 var(--accent-glow), 0 8px 24px rgba(94,106,210,0.35); }
  50% { box-shadow:0 0 0 10px rgba(94,106,210,0), 0 8px 30px rgba(94,106,210,0.5); }
}
@keyframes nowpulse { 0%,100% { opacity:0.7; } 50% { opacity:1; } }
@keyframes caretblink { 0%,100% { opacity:1; } 50% { opacity:0; } }
@keyframes floatblob {
  0%,100% { transform:translate(0,0) scale(1); }
  50% { transform:translate(20px,-24px) scale(1.08); }
}
@keyframes sheetup {
  0% { transform:translateY(110%); }
  70% { transform:translateY(-8px); }
  100% { transform:translateY(0); }
}
@keyframes sheetdown {
  0% { transform:translateY(0); }
  100% { transform:translateY(110%); }
}

/* ---------- phone mock ---------- */
.phone {
  position:relative; width:300px; height:640px; flex:none;
  border-radius:52px; background:#08080b;
  border:1px solid var(--border);
  box-shadow:var(--shadow-mock), 0 0 80px var(--accent-glow);
  padding:10px;
}
.phone-sm { width:280px; height:580px; border-radius:48px; padding:9px; }
.phone::before {
  content:""; position:absolute; top:20px; left:50%; transform:translateX(-50%);
  width:96px; height:26px; background:#020203; border-radius:999px; z-index:6;
}
.phone-sm::before { top:18px; width:86px; height:22px; }
.phone-screen {
  position:relative; width:100%; height:100%; border-radius:44px;
  background:var(--bg-elevated); overflow:hidden;
  display:flex; flex-direction:column;
}
.phone-sm .phone-screen { border-radius:40px; }
.screen-pad { padding:44px 16px 16px; display:flex; flex-direction:column; gap:12px; height:100%; }
.screen-title { font-weight:700; font-size:20px; letter-spacing:-0.5px; }

/* Today mock */
.today-head { padding:44px 18px 10px; display:flex; align-items:center; gap:12px; }
.avatar {
  width:38px; height:38px; border-radius:999px; flex:none;
  background:linear-gradient(150deg,#7580E8,#3A44A0);
  display:grid; place-items:center; color:#fff; font-weight:600; font-size:14px;
}
.greeting { font-weight:700; font-size:22px; letter-spacing:-0.5px; }
.agenda { flex:1; padding:8px 14px 12px; overflow:hidden; display:flex; flex-direction:column; gap:8px; }
.overdue {
  display:inline-flex; align-self:flex-start; align-items:center; gap:6px;
  font-size:11px; color:var(--destructive); background:var(--surface);
  border:1px solid var(--border); border-radius:999px; padding:4px 10px;
}
.overdue span { width:6px; height:6px; border-radius:999px; background:var(--destructive); }
.event { display:flex; gap:10px; align-items:stretch; }
.event-rail { width:3px; border-radius:2px; background:var(--accent); }
.event-body {
  flex:1; background:var(--surface); border:1px solid var(--border);
  border-radius:12px; padding:10px 12px;
}
.event-body b { font-weight:600; font-size:13px; display:block; }
.event-body span { font-size:11px; color:var(--fg-muted); margin-top:2px; display:block; }
.task {
  display:flex; align-items:center; gap:10px; background:var(--surface);
  border:1px solid var(--border); border-radius:12px; padding:10px 12px; font-size:13px;
}
.box { width:18px; height:18px; border-radius:6px; border:1.5px solid var(--fg-faint); flex:none; }
.box-done {
  border-color:var(--accent); display:grid; place-items:center;
}
.task-done { color:var(--fg-muted); text-decoration:line-through; }
.nowline {
  position:relative; height:1px; background:var(--accent); margin:8px 0;
  animation:nowpulse 2s ease-in-out infinite;
}
.nowline i { position:absolute; left:0; top:-3px; width:7px; height:7px; border-radius:999px; background:var(--accent); }
.nowline b {
  position:absolute; left:12px; top:-8px; font-size:9px; font-weight:600;
  letter-spacing:1px; color:var(--accent);
  /* the rule runs behind the label — knock it out or it strikes the time through */
  background:var(--bg-elevated); padding:0 5px;
}
.tabbar {
  position:relative; height:64px; border-top:1px solid var(--border);
  background:color-mix(in srgb, var(--bg-elevated) 70%, transparent);
  backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
  display:flex; align-items:center; justify-content:space-around; z-index:5;
  color:var(--fg-faint);
}
.tabbar .on { color:var(--accent); }
.fab {
  position:relative; width:52px; height:52px; margin-top:-26px; border-radius:999px;
  background:var(--brand); display:grid; place-items:center; color:#fff;
  animation:glowpulse 3s ease-in-out infinite;
  transition:transform var(--fast) var(--ease);
}
.fab.press { transform:scale(0.97); }

/* ---------- hero ---------- */
.hero { position:relative; overflow:hidden; }
.blobs { position:absolute; inset:0; pointer-events:none; opacity:var(--blob); z-index:0; }
.blob { position:absolute; border-radius:999px; filter:blur(90px); }
.blob-1 { top:-80px; left:-60px; width:420px; height:420px; background:#5E6AD2; opacity:0.10; animation:floatblob 14s ease-in-out infinite; }
.blob-2 { top:120px; right:-80px; width:380px; height:380px; background:#7580E8; opacity:0.10; animation:floatblob 18s ease-in-out infinite reverse; }
.blob-3 { bottom:-120px; left:40%; width:360px; height:360px; background:#3A44A0; opacity:0.08; filter:blur(100px); animation:floatblob 16s ease-in-out infinite; }
.hero-grid {
  position:relative; z-index:1;
  padding-top:56px; padding-bottom:32px;
  display:grid; grid-template-columns:1.05fr 0.95fr; gap:48px; align-items:center;
}
.hero-copy .h-display { margin-top:20px; }
.hero-copy .lede { margin-top:20px; }
.hero-copy .ctas { margin-top:32px; }
/* fg-faint measures 2.9:1 dark / 1.9:1 light — below AA for text.
   It is kept for non-text only (checkbox border, inactive tab icons, ::marker). */
.trustline { margin-top:24px; color:var(--fg-muted); }
.hero-stagewrap { display:flex; justify-content:center; }

/* hero animation layers */
.hero-layer { position:absolute; inset:0; pointer-events:none; z-index:4; }
.hero-sheet {
  position:absolute; left:0; right:0; bottom:64px; padding:0 10px;
  transform:translateY(110%);
}
.hero-sheet.up { animation:sheetup var(--slow) var(--ease) forwards; }
/* exit ≈65% of enter (300ms → 195ms), as its own keyframe so it can't snap */
.hero-sheet.down { animation:sheetdown 195ms var(--ease) forwards; }
.sheet-body {
  background:var(--bg-elevated); border:1px solid var(--border);
  border-radius:24px 24px 16px 16px; box-shadow:0 -12px 40px rgba(0,0,0,0.4);
  padding:16px;
}
.sheet-grip { width:36px; height:4px; border-radius:999px; background:var(--surface-strong); margin:0 auto 14px; }
.sheet-text { font-size:13px; line-height:1.5; min-height:56px; color:var(--fg); }
.sheet-text.empty { color:var(--fg-muted); }
.caret {
  display:inline-block; width:2px; height:14px; vertical-align:-2px;
  background:var(--accent); border-radius:2px; margin-left:1px;
  animation:caretblink 1.1s steps(2) infinite;
}
.sheet-voice { display:none; min-height:56px; flex-direction:column; gap:10px; align-items:center; justify-content:center; }
.hero-sheet.voice .sheet-text { display:none; }
.hero-sheet.voice .sheet-voice { display:flex; }
.voice-timer { font-size:24px; font-weight:700; letter-spacing:-0.5px; color:var(--fg); }
.waveform { display:flex; align-items:center; gap:3px; height:28px; }
.waveform i {
  display:block; width:3px; height:100%; border-radius:999px; background:var(--accent);
  transform:scaleY(0.25); animation:wave 600ms steps(4, end) infinite;
}
.sheet-actions { display:flex; align-items:center; justify-content:space-between; margin-top:12px; }
.mode-btns { display:flex; gap:8px; }
.mode-btn {
  width:34px; height:34px; border-radius:10px; background:var(--surface);
  border:1px solid var(--border); display:grid; place-items:center; color:var(--fg-muted);
  transition:background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.mode-btn.active { background:var(--accent-soft); border-color:var(--accent-border); color:var(--accent); }
.sheet-save {
  height:34px; padding:0 16px; border-radius:10px; background:var(--brand);
  color:#fff; font-size:13px; font-weight:600; display:grid; place-items:center;
  transition:transform var(--fast) var(--ease);
}
.sheet-save.press { transform:scale(0.97); }

.hero-card {
  position:absolute; left:12px; right:12px; bottom:84px;
  opacity:0; transform:translateY(16px);
  transition:opacity var(--base) var(--ease), transform var(--slow) var(--ease);
}
.hero-card.show { opacity:1; transform:none; }
.proc-body { background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:14px; }
.shimmer {
  height:10px; border-radius:6px; margin-top:12px;
  background:linear-gradient(90deg,var(--surface) 0%, var(--surface-strong) 50%, var(--surface) 100%);
  background-size:220% 100%; animation:shimmerband 1.2s linear infinite;
}
.shimmer:nth-of-type(2) { width:70%; margin-top:8px; }
.shimmer:nth-of-type(3) { width:45%; margin-top:8px; }
.res-body {
  background:var(--bg-elevated); border:1px solid var(--border); border-radius:16px;
  padding:14px; box-shadow:0 12px 40px rgba(0,0,0,0.4);
}
.res-title { font-weight:600; font-size:14px; letter-spacing:-0.2px; }
.res-tags { display:flex; gap:6px; margin-top:8px; flex-wrap:wrap; }
.res-ai { margin-top:10px; }
.stagger { opacity:0; transform:translateY(6px); transition:opacity var(--base) var(--ease), transform var(--base) var(--ease); }
.hero-card.show .stagger { opacity:1; transform:none; }
.hero-card.show .res-tags { transition-delay:80ms; }
.hero-card.show .res-ai { transition-delay:160ms; }

/* ---------- narrative ---------- */
.narr { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:48px; }
.narr .card { display:flex; flex-direction:column; }
.step-n {
  width:36px; height:36px; border-radius:10px; background:var(--accent-soft);
  border:1px solid var(--accent-border); color:var(--accent); font-weight:600;
  display:grid; place-items:center; flex:none;
}
.mini {
  margin-top:auto; background:var(--surface); border:1px solid var(--border);
  border-radius:14px; padding:14px;
}
.mini .ai-block { background:var(--bg-elevated); }
.mini-search {
  display:flex; align-items:center; gap:8px; background:var(--bg-elevated);
  border:1px solid var(--border); border-radius:10px; padding:9px 12px;
  font-size:13px; color:var(--fg);
}

/* ---------- feature grid ---------- */
.featgrid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-top:48px; }
.featgrid .card { padding:22px; }
.featgrid h3 { margin:16px 0 6px; }
.featgrid p { margin:0; }

/* ---------- expanded features (sticky scrub) ---------- */
.feat2 { display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; }
.feat2-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:12px; }
.feat2-list li { display:flex; gap:10px; align-items:flex-start; font-size:14px; color:var(--fg); }
.feat2-list svg { flex:none; margin-top:1px; }
.feat2 .h-feature { margin:12px 0 16px; }
.feat2 p.body { margin:0 0 20px; max-width:48ch; }
.feat2-mockwrap { display:flex; justify-content:center; }
.mstates { position:relative; width:100%; height:100%; }
.mstate {
  position:absolute; inset:0; opacity:0; transition:opacity var(--slow) var(--ease);
  display:flex; flex-direction:column;
}
.mstate.on { opacity:1; }
.smslabel {
  display:inline-flex; align-items:center; gap:5px; align-self:flex-start;
  font-size:10px; font-weight:500; letter-spacing:0.4px; text-transform:uppercase;
  white-space:nowrap;
  color:var(--fg-muted); background:var(--surface); border:1px solid var(--border);
  border-radius:999px; padding:3px 8px;
}
.progressdots { display:flex; gap:8px; align-items:center; }
.progressdots i { width:22px; height:6px; border-radius:999px; background:var(--surface-strong); display:block; }
.progressdots i.on { background:var(--accent); }
.budget-row + .budget-row { margin-top:16px; }
.budget-top { display:flex; justify-content:space-between; font-size:13px; margin-bottom:7px; }
.bar { height:8px; border-radius:999px; background:var(--surface); overflow:hidden; }
.bar i { display:block; height:100%; border-radius:999px; }
.txn {
  display:flex; align-items:center; gap:10px; background:var(--surface);
  border:1px solid var(--accent-border); border-radius:12px; padding:12px;
  box-shadow:0 0 24px var(--accent-glow);
}
.heat { display:grid; grid-template-columns:repeat(7,1fr); gap:4px; }
.heat i { display:block; aspect-ratio:1; border-radius:4px; background:var(--surface); }
.heat i.l1 { background:var(--accent-soft); }
.heat i.l2 { background:var(--accent-border); }
.heat i.l3 { background:var(--accent); }
.dots { display:flex; gap:4px; }
.dots i { width:8px; height:8px; border-radius:999px; background:var(--surface-strong); display:block; }
.dots i.on { background:var(--accent); }
.flame { display:inline-flex; align-items:center; gap:4px; color:var(--warning); font-size:12px; font-weight:600; }

/* below 1024px there is no scrubbing, so the mock rests on its final,
   most-informative state (the cited answer / the streak / the SMS txn) */
@media (max-width:1023px) {
  .mstate, .mstate.on { opacity:0; }
  .mstate:last-child { opacity:1; }
}

/* desktop scroll-scrub: tall section, sticky mock */
@media (min-width:1024px) {
  .scrub { min-height:180vh; align-items:start; }
  .scrub .feat2-copy { position:sticky; top:22vh; }
  .scrub .feat2-mockwrap { position:sticky; top:15vh; }
}

/* ---------- trust band ---------- */
.trustgrid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:44px; }
.trust-fact { font-weight:700; font-size:clamp(22px,2.4vw,28px); letter-spacing:-0.5px; margin-top:14px; }

/* ---------- pricing ---------- */
.pricegrid { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:44px; align-items:stretch; }
.pricecard { padding:28px; display:flex; flex-direction:column; }
.pricecard.pro { position:relative; border-color:var(--accent-border); box-shadow:0 0 50px var(--accent-glow); }
.popular {
  position:absolute; top:-11px; left:28px;
  font-size:11px; font-weight:500; letter-spacing:1.2px; text-transform:uppercase;
  color:var(--on-accent); background:var(--brand); border-radius:999px; padding:4px 12px;
}
.price { display:flex; align-items:baseline; gap:6px; }
.price b { font-size:40px; font-weight:700; letter-spacing:-1px; }
.price span { font-size:15px; color:var(--fg-muted); }
.price-alt { font-size:14px; color:var(--fg-muted); margin-top:4px; }
.price-foot { font-size:12px; color:var(--fg-muted); margin-top:6px; line-height:1.5; }
.trial {
  display:inline-flex; align-self:flex-start; margin-top:14px;
  font-size:11px; font-weight:500; letter-spacing:1.2px; text-transform:uppercase;
  color:var(--accent); background:var(--accent-soft); border:1px solid var(--accent-border);
  border-radius:999px; padding:4px 10px;
}
.plan-list {
  list-style:none; padding:0; margin:22px 0;
  display:flex; flex-direction:column; gap:11px; font-size:14px; color:var(--fg);
}
.plan-list li { display:flex; gap:10px; }
.plan-list svg { flex:none; }
.pricecard .btn { margin-top:auto; width:100%; height:48px; font-size:15px; }
.legalese { font-size:12px; color:var(--fg-muted); margin:12px 0 0; line-height:1.55; text-align:center; }

/* ---------- FAQ ---------- */
.faqlist { margin-top:36px; display:flex; flex-direction:column; gap:10px; }
.faqlist details {
  background:var(--bg-elevated); border:1px solid var(--border);
  border-radius:16px; overflow:hidden;
}
.faqlist summary {
  list-style:none; cursor:pointer; padding:18px 20px;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  font-size:16px; font-weight:600; min-height:44px;
}
.faq-body {
  display:grid; grid-template-rows:0fr;
  transition:grid-template-rows var(--base) var(--ease);
}
details[open] .faq-body { grid-template-rows:1fr; }
.faq-body > div { overflow:hidden; }
.faq-body p { margin:0; padding:0 20px 20px; font-size:15px; color:var(--fg-muted); line-height:1.6; }
.faq-chev { transition:transform var(--base) var(--ease); flex:none; }
details[open] .faq-chev { transform:rotate(180deg); }

/* ---------- footer ---------- */
.footer { border-top:1px solid var(--border); margin-top:96px; }
.footer-cta { padding:96px 20px 64px; text-align:center; }
.footer-cta .ctas { justify-content:center; margin-top:24px; }
.footer-bar { border-top:1px solid var(--border); }
.footer-inner {
  display:flex; flex-wrap:wrap; align-items:center; gap:16px;
  padding-top:24px; padding-bottom:24px; color:var(--fg-muted); font-size:14px;
}
.footer-links { display:flex; flex-wrap:wrap; gap:20px; margin:0 auto; }
.footer-links a { color:var(--fg-muted); }
.footer-links a:hover { color:var(--fg); }
.footer-brand-tile { width:26px; height:26px; border-radius:7px; }

/* ---------- responsive ---------- */
@media (max-width:1023px) {
  .hero-grid { grid-template-columns:1fr; gap:40px; padding-top:32px; }
  .hero-copy { text-align:left; }
  .feat2 { grid-template-columns:1fr; gap:32px; }
  .feat2 .feat2-mockwrap { order:2; }
  .featgrid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:860px) {
  .navlinks { display:none; }
  .menu-btn { display:grid; }
  .narr { grid-template-columns:1fr; }
  .trustgrid { grid-template-columns:1fr; }
}
@media (max-width:640px) {
  .section { padding-top:72px; }
  .featgrid { grid-template-columns:1fr; }
  .pricegrid { grid-template-columns:1fr; }
  .footer-links { margin:0; justify-content:flex-start; }
  .footer-cta { padding:72px 20px 48px; }
  .btn { width:100%; }
  .ctas { flex-direction:column; align-items:stretch; }
  .phone { transform:scale(0.92); transform-origin:top center; margin-bottom:-48px; }
}

/* ---------- document layout (legal / support / utility pages) ---------- */
.doc { padding-top:56px; padding-bottom:24px; }
.doc-head { padding-bottom:8px; }
.doc-head h1 { font-weight:700; font-size:clamp(30px,4.4vw,44px); line-height:1.08; letter-spacing:-0.03em; }
.doc-head .label { display:block; margin-top:12px; color:var(--fg-muted); }
.doc-body { font-size:16px; line-height:1.6; color:var(--fg); max-width:72ch; }
.doc-body h2 {
  font-size:20px; font-weight:600; letter-spacing:-0.3px;
  margin:40px 0 12px; scroll-margin-top:88px;
}
.doc-body h3 { font-size:16px; font-weight:600; margin:24px 0 8px; }
.doc-body p { margin:0 0 14px; color:var(--fg-muted); }
.doc-body strong { color:var(--fg); font-weight:600; }
.doc-body ul { margin:0 0 14px; padding-left:20px; color:var(--fg-muted); }
.doc-body li { margin-bottom:8px; }
.doc-body li::marker { color:var(--fg-faint); }
.doc-body a { text-decoration:underline; text-underline-offset:2px; }
.doc-body hr { border:0; border-top:1px solid var(--border); margin:40px 0; }

/* the draft-for-review banner — removed only after legal review (see DEPLOY.md) */
.draft-banner {
  display:flex; gap:12px; align-items:flex-start;
  background:var(--surface); border:1px solid var(--warning);
  border-radius:16px; padding:16px; margin-bottom:32px;
}
.draft-banner svg { flex:none; color:var(--warning); margin-top:1px; }
.draft-banner p {
  margin:0; font-size:12px; font-weight:500; letter-spacing:1.2px; text-transform:uppercase;
  line-height:1.7; color:var(--fg);
}

/* [PLACEHOLDERS] must be impossible to miss before launch */
.ph {
  background:var(--accent-soft); border:1px dashed var(--accent-border); border-radius:6px;
  padding:0 5px; color:var(--accent); font-weight:600; font-size:0.92em; white-space:nowrap;
}

.toc {
  background:var(--bg-elevated); border:1px solid var(--border); border-radius:16px;
  padding:20px 24px; margin:24px 0 40px;
}
.toc .label { color:var(--fg-muted); }
/* the labels already carry their section numbers — no list markers */
.toc ol {
  list-style:none; margin:12px 0 0; padding-left:0; font-size:14px; line-height:1.5;
  color:var(--fg-muted); columns:2; column-gap:32px;
}
.toc li { margin-bottom:8px; break-inside:avoid; }
.toc a { color:var(--fg-muted); text-decoration:none; }
.toc a:hover { color:var(--accent); }

.table-wrap { overflow-x:auto; margin:0 0 16px; -webkit-overflow-scrolling:touch; }
.doc-body table { border-collapse:collapse; width:100%; min-width:560px; font-size:14px; }
.doc-body th, .doc-body td {
  border:1px solid var(--border); padding:10px 12px; text-align:left; vertical-align:top;
  color:var(--fg-muted);
}
.doc-body th { color:var(--fg); font-weight:600; background:var(--surface); }

.callout {
  background:var(--surface); border:1px solid var(--border); border-left:2px solid var(--accent);
  border-radius:0 16px 16px 0; padding:16px 18px; margin:0 0 20px;
}
.callout p:last-child { margin-bottom:0; }
.callout p { color:var(--fg); }

.doc-cta { display:flex; flex-wrap:wrap; gap:12px; margin:24px 0 8px; }
.copyrow {
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  background:var(--surface); border:1px solid var(--border); border-radius:16px;
  padding:12px 16px; margin:0 0 20px; font-size:15px; color:var(--fg);
}

/* centred utility pages (invite, 404) */
.centred {
  min-height:80vh; display:flex; flex-direction:column;
  align-items:center; justify-content:center; text-align:center; gap:20px;
  padding-top:56px; padding-bottom:56px;
}
.centred .ctas { justify-content:center; }

@media (max-width:640px) {
  .toc ol { columns:1; }
  .doc { padding-top:32px; }
}

@media print {
  .nav, .mobile-menu, .footer-cta, .icon-btn, .doc-cta { display:none !important; }
  body { background:#FFFFFF; color:#17171C; }
  .doc-body, .doc-body p, .doc-body ul, .doc-body td { color:#17171C; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after {
    animation:none !important;
    transition-duration:150ms !important;
  }
  .reveal { opacity:1 !important; transform:none !important; }
  .blob { display:none; }
  .hero-sheet { display:none; }
  .mstate { transition:none; }
}
