/* Hoardless landing site.
   Palette and type follow DECISIONS.md (brand palette, Ledger mark, wordmark).
   Dark-first with one cool paper interlude for the safety section.
   Motion lives in main.js; everything here renders the final, complete state
   so reduced motion and no-JS visitors see the whole page. */

:root {
  color-scheme: dark;
  --page: #080808;
  --surface: #0D0D0D;
  --elevated: #141419;
  --card: #111114;
  --fill: #27272A;
  --hoard: #2E2E36;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --fg: #FAFAFA;
  --fg-2: #9F9FA9;
  --fg-3: #85858F; /* informational small text, >= 4.5:1 on every dark surface */
  --fg-dim: #63636E; /* decorative labels only (brand tagline, separators) */
  --brand: #AC4BFF;
  --brand-light: #C07EFF;
  --brand-deep: #9810FA;
  --accent: #3B7BFF;
  --accent-a: #2F5BFF;
  --accent-b: #3FA9FF;
  --accent-grad: linear-gradient(135deg, var(--accent-a) 0%, var(--accent-b) 100%);
  --accent-soft: rgba(59, 123, 255, 0.16);
  --t1: #A64DFF; --t2: #8656FF; --t3: #6A66FF; --t4: #4F7BFF; --t5: #3F93FF;
  --c-apps: #4A7DFF; --c-sys: #F5A524; --c-dev: #AC4BFF; --c-media: #F2557A; --c-docs: #2DD4BF; --c-other: #5B6172;
  --ok: #22C55E; --warn: #F5A524; --danger: #FF6568;

  --paper: #ECECEF;
  --paper-2: #F7F7F9;
  --ink: #09090B;
  --ink-2: #5E5E69;
  --ink-3: #6B6B76;
  --paper-line: rgba(9, 9, 11, 0.1);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Instrument Sans", system-ui, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Instrument Sans", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
body {
  margin: 0; background: var(--page); color: var(--fg);
  font-family: var(--font-text); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
::selection { background: rgba(63, 169, 255, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-b); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--fg); color: var(--page); font-weight: 600; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: var(--gutter); }
.c-brand { color: var(--brand-light); }
.c-ok { color: #5FDB8C; }

/* ---------- Type scale ---------- */
.display-1 {
  font-family: var(--font); font-weight: 700;
  font-size: clamp(46px, 8.4vw, 132px); line-height: .94; letter-spacing: -0.045em;
  text-wrap: balance;
  background: linear-gradient(180deg, #FFFFFF 30%, #B9B9C6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .06em;
}
.display-2 {
  font-family: var(--font); font-weight: 650;
  font-size: clamp(38px, 5.6vw, 84px); line-height: 1; letter-spacing: -0.038em;
  text-wrap: balance;
}
.display-3 { font-family: var(--font); font-weight: 650; font-size: clamp(26px, 2.8vw, 38px); line-height: 1.08; letter-spacing: -0.028em; text-wrap: balance; }
.lead { font-family: var(--font); font-size: clamp(18px, 1.55vw, 22px); line-height: 1.42; letter-spacing: -0.012em; color: var(--fg-2); max-width: 40em; text-wrap: pretty; }
.note { font-size: 13px; color: var(--fg-3); }

/* split text */
.split-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.split-word { display: inline-block; }
.display-1 .split-word { background: linear-gradient(180deg, #FFFFFF 30%, #B9B9C6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }

/* ---------- Buttons ---------- */
.btn {
  --h: 40px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: var(--h); padding: 0 18px; border-radius: 999px;
  font-family: var(--font); font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer; border: 0;
  transition: filter .2s, box-shadow .25s, background .2s, color .2s;
  position: relative;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-sm { --h: 32px; padding: 0 14px; font-size: 13.5px; }
.btn-lg { --h: 52px; padding: 0 24px; font-size: 16.5px; }
.btn-primary {
  color: #fff; background: var(--accent-grad);
  box-shadow: 0 10px 30px -12px rgba(63, 169, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.btn-primary:hover { filter: brightness(1.1); box-shadow: 0 14px 36px -10px rgba(63, 169, 255, 1), inset 0 1px 0 rgba(255, 255, 255, .34); }
.btn-primary:active { filter: brightness(.96); }
.btn-glass {
  color: var(--fg); background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px var(--line-strong), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.btn-glass:hover { background: rgba(255, 255, 255, .11); }
.price-now { font-family: var(--mono); font-weight: 600; }
.price-was { font-family: var(--mono); font-weight: 400; color: var(--fg-3); text-decoration-thickness: 1.5px; }
.launch-over .price-was, .launch-over .pc-was { display: none; }
/* Pre-launch (config.js prelaunch: true): buy and download buttons become one "Get notified" state. */
.prelaunch .pc-prelaunch { align-self: flex-start; }
.prelaunch .prelaunch-dup { display: none; }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font: 600 11.5px/1.3 var(--mono); font-style: normal; white-space: nowrap; }
.pill.blue { background: var(--accent-soft); color: #8DB4FF; }
.pill.purple { background: rgba(172, 75, 255, .16); color: var(--brand-light); }
.pill.ok { background: rgba(34, 197, 94, .14); color: #5FDB8C; }
.pill.warn { background: rgba(245, 165, 36, .14); color: #F8C062; }
.pill.grey { background: var(--fill); color: var(--fg-2); }

.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--fg-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.legend i.ok { background: var(--ok); } .legend i.warn { background: var(--warn); } .legend i.danger { background: var(--danger); }

/* Cursor reveal: a faint treemap grid (the Storage Map's own geometry) shows
   through under the pointer. main.js sets --mx / --my. */
.glow-card { position: relative; isolation: isolate; }
.glow-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='168' height='120'%3E%3Cg fill='none' stroke='%23A9BCFF' stroke-opacity='.55'%3E%3Crect x='2.5' y='2.5' width='58' height='71' rx='5'/%3E%3Crect x='2.5' y='78.5' width='58' height='39' rx='5'/%3E%3Crect x='64.5' y='2.5' width='43' height='44' rx='5'/%3E%3Crect x='111.5' y='2.5' width='54' height='29' rx='5'/%3E%3Crect x='111.5' y='35.5' width='54' height='38' rx='5'/%3E%3Crect x='64.5' y='50.5' width='43' height='67' rx='5'/%3E%3Crect x='111.5' y='77.5' width='25' height='40' rx='5'/%3E%3Crect x='140.5' y='77.5' width='25' height='40' rx='5'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 168px 120px;
  -webkit-mask: radial-gradient(220px circle at var(--mx, 50%) var(--my, -300px), #000 0%, rgba(0, 0, 0, .35) 45%, transparent 72%);
  mask: radial-gradient(220px circle at var(--mx, 50%) var(--my, -300px), #000 0%, rgba(0, 0, 0, .35) 45%, transparent 72%);
  opacity: 0; transition: opacity .4s;
}
.glow-card:hover::before { opacity: .32; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.nav.solid { background: rgba(8, 8, 8, .72); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); box-shadow: 0 1px 0 var(--line); }
.nav.on-paper { background: rgba(236, 236, 239, .78); box-shadow: 0 1px 0 var(--paper-line); }
.nav.on-paper .wordmark b, .nav.on-paper .nav-links a:hover { color: var(--ink); }
.nav.on-paper .wordmark span, .nav.on-paper .nav-links a, .nav.on-paper .nav-meter { color: var(--ink-2); }
.nav.on-paper .nav-links a:hover { background: rgba(9, 9, 11, .06); }
.nav.on-paper .nav-meter i { background: rgba(9, 9, 11, .1); }
.nav-in { height: 100%; max-width: 1240px; margin: 0 auto; padding-inline: var(--gutter); display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; border-radius: 8px; }
.brand .mark { width: 28px; height: 28px; }
.wordmark { font-family: var(--font); font-size: 19px; letter-spacing: -0.03em; line-height: 1; }
.wordmark b { font-weight: 750; color: var(--fg); }
.wordmark span { font-weight: 350; color: var(--fg-2); }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { padding: 6px 11px; border-radius: 999px; font-size: 13.5px; color: var(--fg-2); text-decoration: none; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--fg); background: rgba(255, 255, 255, .06); }
.nav-meter { margin-left: auto; display: grid; gap: 5px; justify-items: end; font: 500 11px/1 var(--mono); color: var(--fg-3); min-width: 128px; }
.nav-meter i { display: block; width: 128px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.nav-meter b { display: block; height: 100%; width: 100%; background: var(--accent-grad); transform-origin: left; transform: scaleX(0); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow-x: clip; padding: calc(var(--nav-h) + 28px) 0 64px; }
.hero-field { position: absolute; inset: -2px; pointer-events: none; transform-origin: 50% 100%;
  /* keep field labels out from under the nav */
  -webkit-mask: linear-gradient(180deg, transparent 0, transparent 44px, #000 104px); mask: linear-gradient(180deg, transparent 0, transparent 44px, #000 104px); }
.hero-field .ht.is-hoard { background: var(--hoard); box-shadow: inset 0 0 0 1px rgba(172, 75, 255, .75), 0 0 18px -6px rgba(172, 75, 255, .45); }
.hero-field .ht.is-hoard span { color: rgba(214, 178, 255, .55); }
.hero-field .ht {
  position: absolute; border-radius: 6px; background: #121216; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .045);
  overflow: hidden; will-change: transform, opacity; transition: background-color .35s, box-shadow .35s;
}
.hero-field .ht span { position: absolute; left: 9px; top: 7px; right: 8px; font: 500 10.5px/1.35 var(--mono); color: rgba(255, 255, 255, .22); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-field .ht span em { display: block; font-style: normal; color: rgba(255, 255, 255, .14); }
.hero-vignette { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(58% 50% at 50% 48%, rgba(8, 8, 8, .80) 0%, rgba(8, 8, 8, .55) 45%, rgba(8, 8, 8, .2) 80%, rgba(8, 8, 8, .05) 100%),
  linear-gradient(180deg, rgba(8, 8, 8, .7), transparent 14%, transparent 78%, var(--page) 100%); }
.hero-in { position: relative; z-index: 2; display: grid; justify-items: center; text-align: center; gap: 22px; padding-inline: var(--gutter); max-width: 1100px; }
.splash { display: grid; justify-items: center; gap: 10px; margin-bottom: 8px; position: relative; }
.splash::before { content: ""; position: absolute; width: 420px; height: 420px; left: 50%; top: 40%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(134, 86, 255, .26), rgba(47, 91, 255, .1) 40%, transparent 70%); filter: blur(12px); z-index: -1; pointer-events: none; }
.ledger { width: 104px; height: 104px; overflow: visible; }
.ledger rect { transform-box: fill-box; transform-origin: center; }
#heroMark .hoard { opacity: 0; }
.splash-word { font-family: var(--font); font-size: 30px; letter-spacing: -0.035em; line-height: 1; }
.splash-word b { font-weight: 750; } .splash-word span { font-weight: 350; color: var(--fg-2); }
.splash-tag { font: 500 12px/1 var(--mono); color: var(--fg-dim); letter-spacing: .02em; }
.hero h1 { max-width: 11.5em; }
.hero-lead { max-width: 34em; margin-inline: auto; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }
.fineprint { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; font-size: 13px; color: var(--fg-3); }
.fineprint li { padding-inline: 12px; }
.fineprint li + li { border-left: 1px solid var(--line-strong); }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 1px; height: 44px; background: rgba(255, 255, 255, .08); overflow: hidden; transform: translateX(-50%); }
.scroll-cue i { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: linear-gradient(transparent, var(--fg-2)); animation: cue 2.2s var(--ease-io) infinite; }
.scroll-cue.paused i, .caret.paused { animation-play-state: paused; }
@keyframes cue { to { top: 110%; } }

/* JS intro start states (hidden until main.js plays the intro) */
.js:not(.rm):not(.no-anim) .hero [data-intro],
.js:not(.rm):not(.no-anim) .hero [data-split] { opacity: 0; }
.js.ready .hero [data-intro], .js.ready .hero [data-split] { opacity: 1; }

/* ---------- Scenes ---------- */
.scene { position: relative; padding-block: clamp(72px, 11vh, 140px); }
/* alternate scenes sit on a faint surface so the gaps between them read as intentional */
.scene-range, .scene-dev { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .018) 16%, rgba(255, 255, 255, .018) 84%, transparent); }
.scene-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 72px); max-width: 980px; }
.scene-head.center { justify-items: center; text-align: center; margin-inline: auto; }
.scene-head.center .lead { margin-inline: auto; }

/* ---------- App window (shared product UI) ---------- */
.device-stage { perspective: 2000px; display: grid; justify-items: center; }
.device { width: 100%; max-width: 1180px; transform-origin: 50% 0; }
.app-win {
  display: grid; grid-template-columns: 216px minmax(0, 1fr);
  background: var(--page); border-radius: 16px; overflow: hidden;
  box-shadow: 0 0 0 1px var(--line-strong), 0 40px 120px -30px rgba(47, 91, 255, .35), 0 30px 60px -30px rgba(0, 0, 0, .9);
  font-family: var(--font-text); font-size: 13px; line-height: 1.4; color: var(--fg);
  text-align: left;
}
/* Line icons only. Charts inside the window draw their own fills and must not inherit a stroke. */
.app-nav svg, .app-search svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.app-win .trend text, .app-win .spark .sp-a, .app-win .trend .tr-a, .app-win .trend .tr-a2, .histo text, .cost-chart text { stroke: none; }
.app-side { background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.traffic { display: flex; gap: 8px; padding: 14px 16px 4px; }
.traffic i { width: 12px; height: 12px; border-radius: 50%; display: block; background: #FF5F57; }
.traffic i:nth-child(2) { background: #FEBC2E; } .traffic i:nth-child(3) { background: #28C840; }
.app-chip { margin: 10px 12px 8px; padding: 9px 11px; display: flex; gap: 10px; align-items: center; background: var(--elevated); border: 1px solid var(--line); border-radius: 12px; }
.app-chip svg { width: 26px; height: 26px; }
.app-chip b { display: block; font-size: 13px; letter-spacing: -0.01em; }
.app-chip small { display: block; color: var(--fg-3); font-size: 11px; }
.app-nav { flex: 1; padding: 0 10px; display: grid; align-content: start; gap: 1px; }
.app-nav h6 { margin: 12px 8px 4px; font-size: 10px; font-weight: 600; color: var(--fg-3); letter-spacing: .02em; }
.app-nav span { display: flex; align-items: center; gap: 9px; padding: 6px 9px; border-radius: 9px; color: var(--fg-2); font-size: 12.5px; }
.app-nav span svg { width: 15px; height: 15px; flex: none; }
.app-nav span em { margin-left: auto; font: 500 9.5px/1.4 var(--mono); padding: 1px 6px; border-radius: 6px; background: var(--fill); color: var(--fg-2); font-style: normal; }
.app-nav span.on { color: #fff; background: var(--accent-grad); box-shadow: 0 6px 18px -8px rgba(63, 169, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .22); }
.app-vol { margin: 10px 12px 14px; padding: 11px; background: var(--elevated); border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 7px; }
.app-vol-h { display: flex; justify-content: space-between; font-size: 11.5px; }
.app-vol-h em { font: 500 10px/1.5 var(--mono); padding: 0 6px; border-radius: 6px; background: var(--accent-soft); color: #8DB4FF; font-style: normal; }
.meter { height: 6px; border-radius: 6px; background: var(--fill); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent-grad); border-radius: inherit; }
.app-vol-f { display: flex; justify-content: space-between; font: 10px/1 var(--mono); color: var(--fg-3); }
.app-main { display: flex; flex-direction: column; min-width: 0; }
.app-toolbar { height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 18px; border-bottom: 1px solid var(--line); background: rgba(13, 13, 13, .7); }
.app-search { flex: 1; max-width: 320px; display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 10px; border-radius: 9px; background: var(--elevated); border: 1px solid var(--line); color: var(--fg-3); font-size: 12px; }
.app-search svg { width: 13px; height: 13px; }
.app-search kbd { margin-left: auto; font: 10px var(--mono); padding: 1px 5px; border: 1px solid var(--line-strong); border-radius: 5px; }
.app-scan { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 11px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--elevated); font-size: 12px; }
.app-scan i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(34, 197, 94, .15); }
.app-btn { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 9px; color: #fff; font-weight: 600; font-size: 12px; background: var(--accent-grad); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.app-content { padding: 20px 22px 22px; display: grid; gap: 14px; align-content: start; }
.ov-title h3 { font-family: var(--font); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.ov-title p { color: var(--fg-2); font-size: 12.5px; margin-top: 2px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { display: grid; gap: 7px; align-content: start; padding: 13px 15px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); min-width: 0; }
.kpi-l { font-size: 11.5px; color: var(--fg-2); }
.kpi-v { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.kpi-v b { font-family: ui-rounded, "SF Pro Rounded", var(--font); font-size: 25px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi-s { font-size: 11px; color: var(--fg-3); }
.kpi-hero { border-color: rgba(63, 169, 255, .3); background: radial-gradient(120% 140% at 100% 0%, rgba(63, 169, 255, .2), transparent 55%), radial-gradient(100% 120% at 0% 100%, rgba(172, 75, 255, .15), transparent 60%), var(--card); }
.kpi-hero .kpi-l { color: #8DB4FF; font-weight: 600; }
.spark { width: 100%; height: 24px; }
.ov-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; }
.app-card { padding: 15px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); min-width: 0; }
.app-card-h { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.app-card-h h4 { font-size: 13.5px; font-weight: 650; letter-spacing: -0.01em; }
.app-card-h p { font-size: 11.5px; color: var(--fg-2); margin-top: 2px; }
.seg { display: inline-flex; padding: 2px; border-radius: 9px; background: var(--elevated); border: 1px solid var(--line); }
.seg i, .seg button { font-style: normal; border: 0; background: none; padding: 3px 9px; border-radius: 7px; font-size: 11px; color: var(--fg-2); }
.seg i.on, .seg button[aria-pressed="true"] { background: var(--fill); color: var(--fg); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.trend-stats { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 4px; }
.trend-stats div { display: grid; gap: 1px; }
.trend-stats small { font-size: 11px; color: var(--fg-2); }
.trend-stats b { font: 600 16px var(--mono); }
.trend { width: 100%; height: auto; }
.app-card .legend { font-size: 11px; margin-top: 4px; }
.stackbar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; gap: 2px; background: var(--fill); }
.stackbar > span { display: block; height: 100%; transform-origin: left; }
.stackbar.thin { height: 8px; border-radius: 4px; }
.dist { display: grid; margin-top: 10px; }
.dist-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 74px; gap: 10px; align-items: center; padding: 8px 2px; border-top: 1px solid var(--line); font-size: 12px; }
.dist-row:first-child { border-top: 0; }
.dist-row > i { width: 10px; height: 10px; border-radius: 3px; }
.dist-row .nm { display: grid; gap: 5px; min-width: 0; }
.dist-row .nm b { font-weight: 550; }
.dist-row .nm small { color: var(--fg-3); font: 10.5px var(--mono); margin-left: 6px; }
.dist-row .mini { height: 4px; border-radius: 4px; background: var(--fill); overflow: hidden; }
.dist-row .mini i { display: block; height: 100%; border-radius: inherit; transform-origin: left; }
.dist-row .cnt { color: var(--fg-3); font: 10.5px var(--mono); }
.dist-row .by { text-align: right; font: 600 12px var(--mono); }

.captions { position: relative; display: grid; justify-items: center; margin-top: 28px; min-height: 3em; }
.captions p { grid-area: 1 / 1; text-align: center; max-width: 36em; color: var(--fg-2); font-size: 17px; line-height: 1.45; padding-inline: var(--gutter); opacity: 0; transform: translateY(-6px); transition: opacity .2s ease-in, transform .2s ease-in; }
.captions p.on { opacity: 1; transform: none; transition: opacity .38s var(--ease-out) .2s, transform .38s var(--ease-out) .2s; }

/* Desktop: fixed artboard scaled to fit (main.js sets --s) */
@media (min-width: 900px) {
  .device-stage { position: relative; display: block; width: calc(1180px * var(--s, .8)); height: calc(720px * var(--s, .8)); margin: 0 auto; }
  .device { position: absolute; left: 0; top: 0; width: 1180px; max-width: none; height: 720px; transform-origin: 0 0; transform: scale(var(--s, .8)); }
  .app-win { height: 720px; }
  .scene-overview.is-pinned { padding-block: 0; }
  .is-pinned .pin { height: 100vh; display: grid; grid-template-rows: minmax(0, 1fr) auto; align-items: center; justify-items: center; padding: calc(var(--nav-h) + 8px) 0 28px; perspective: 2200px; position: relative; }
  .is-pinned .ov-head-wrap { position: absolute; top: 19vh; left: 0; right: 0; z-index: 2; margin: 0 auto; padding-inline: var(--gutter); }
  .is-pinned .captions { margin-top: 14px; }
}
@media (max-width: 899px) {
  .captions { gap: 8px; }
  .captions p { grid-area: auto; opacity: 1; transform: none; font-size: 15.5px; }
}

/* ---------- Storage Map ---------- */
.scene-map .scene-head { margin-bottom: 0; padding-inline: var(--gutter); }
.map-pin { min-height: 100vh; display: grid; align-items: center; padding: calc(var(--nav-h) + 16px) 0 24px; }
.map-grid { position: relative; width: 100%; max-width: 1400px; margin: 0 auto; padding-inline: var(--gutter); display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: center; }
.map-steps { position: relative; display: grid; }
.map-step { grid-area: 1 / 1; display: grid; gap: 10px; align-content: start; opacity: 0; transform: translateY(-8px); transition: opacity .2s ease-in, transform .2s ease-in; }
.map-step.on { opacity: 1; transform: none; transition: opacity .4s var(--ease-out) .2s, transform .4s var(--ease-out) .2s; }
.map-step h3 { font-family: var(--font); font-size: clamp(26px, 2.6vw, 36px); font-weight: 650; letter-spacing: -0.03em; }
.map-step p { color: var(--fg-2); font-size: 17px; }
.map-step p b { color: var(--fg); font-weight: 600; }
.map-step .pill { justify-self: start; }
.map-panel { border-radius: 20px; background: var(--surface); box-shadow: 0 0 0 1px var(--line-strong), 0 40px 100px -40px rgba(47, 91, 255, .35); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: min(74vh, 700px); overflow: hidden; }
.map-bar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); min-width: 0; }
.crumbs { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; overflow: hidden; min-width: 0; font-size: 12.5px; }
.crumbs li { display: flex; align-items: center; gap: 4px; flex: none; color: var(--fg-3); }
.crumbs li + li::before { content: "/"; color: var(--fg-dim); opacity: .6; padding-inline: 2px; }
.crumbs li span { padding: 3px 8px; border-radius: 7px; border: 1px solid var(--line); background: var(--elevated); color: var(--fg-2); }
.crumbs li.cur span { color: var(--fg); background: var(--fill); border-color: var(--line-strong); }
.crumbs li.new span { animation: crumbIn .45s var(--ease-out); }
@keyframes crumbIn { from { opacity: 0; transform: translateX(-6px); } }
.map-size { margin-left: auto; font-size: 15px; font-weight: 600; flex: none; }
.map-canvas { position: relative; min-height: 0; overflow: hidden; }
.map-canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-labels { position: absolute; inset: 0; pointer-events: none; }
.ml { position: absolute; left: 0; top: 0; padding: 6px 9px; color: #fff; font-size: 12.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; opacity: 0; transition: opacity .25s; box-sizing: border-box; }
.ml.one span { display: none; }
.ml.on.dim { opacity: .3; }
.ml.on { opacity: 1; }
.ml b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.ml span { display: block; font: 500 11.5px/1.3 var(--mono); opacity: .78; }
.ml.g { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 9px; font-size: 12px; }
.ml.g b { min-width: 0; }
.ml.g span { flex: none; }
.map-foot { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 10px 14px; border-top: 1px solid var(--line); }
.map-foot .legend { font-size: 11.5px; }
.map-exact { font-size: 11.5px; color: var(--fg-3); }
.map-ring { fill: none; stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.map-ring-glow { fill: none; stroke: rgba(63, 169, 255, .55); stroke-width: 7; vector-effect: non-scaling-stroke; filter: blur(3px); }
.map-leader { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 3; }
.map-leader path { fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 1.25; }
.map-leader path.halo { stroke: rgba(8, 8, 8, .7); stroke-width: 4; }
.map-leader circle { fill: #fff; }
.map-leader circle.end { fill: var(--page); stroke: #fff; stroke-width: 1.5; }

/* Mobile: three fixed frames in a swipe strip instead of a pinned zoom */
.map-strip { display: none; }
.mf { margin: 0; display: grid; gap: 14px; align-content: start; }
.mf-panel { border-radius: 18px; background: var(--surface); box-shadow: 0 0 0 1px var(--line-strong); overflow: hidden; }
.mf-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); font: 500 12px var(--mono); color: var(--fg-2); }
.mf-bar b { color: var(--fg); font-weight: 600; }
.mf-canvas { position: relative; height: 340px; }
.mf-t { position: absolute; border-radius: 6px; overflow: hidden; color: #fff; }
.mf-t.grp { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); }
.mf-t .lb { position: absolute; left: 0; right: 0; top: 0; padding: 5px 7px; display: flex; justify-content: space-between; gap: 6px; font-size: 11.5px; line-height: 1.25; white-space: nowrap; }
.mf-t .lb b { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mf-t .lb span { font: 500 10.5px/1.25 var(--mono); opacity: .82; flex: none; }
.mf-t.leaf .lb { display: grid; justify-content: start; gap: 1px; }
.mf-t .lb.one { padding: 3px 5px; font-size: 10.5px; }
.mf-t .lb.one span { display: none; }
.mf-t.ring { box-shadow: 0 0 0 2px #fff, 0 0 18px 2px rgba(63, 169, 255, .6); z-index: 2; }
.mf figcaption { display: grid; gap: 6px; padding-inline: 2px; }
.mf figcaption h3 { font-family: var(--font); font-size: 24px; font-weight: 650; letter-spacing: -0.025em; }
.mf figcaption p { color: var(--fg-2); font-size: 15.5px; }
.mf figcaption p b { color: var(--fg); font-weight: 600; }
.mf figcaption .pill { justify-self: start; }
.strip-dots { display: none; }

/* ---------- Sprawl ---------- */
.sprawl-title { display: grid; gap: .06em; font-size: clamp(38px, 6.4vw, 96px); }
.sprawl-title .line { display: block; }
.sprawl-real { background: linear-gradient(90deg, #C07EFF, #6A8BFF 55%, #3FA9FF); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .05em; }
.sprawl-real b { font-weight: inherit; font-variant-numeric: tabular-nums; }
.sprawl-lead { margin-top: 24px; }
.sprawl-viz { margin-top: clamp(48px, 7vw, 88px); position: relative; }
.sv-settings { margin-bottom: 12px; border-radius: 14px; background: #1C1C21; box-shadow: 0 0 0 1px var(--line-strong), 0 24px 60px -30px rgba(0, 0, 0, .8); overflow: hidden; }
.sv-settings-h { display: flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: 12px; color: var(--fg-2); background: #232329; border-bottom: 1px solid var(--line); }
.sv-settings-h .traffic { padding: 0; gap: 6px; margin-right: 6px; }
.sv-settings-h .traffic i { width: 9px; height: 9px; }
.sv-settings-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 14px; }
.sv-app-ico.sv-app-ico-slack { background: #fff; }
.sv-app-ico.sv-app-ico-slack svg { width: 64%; height: 64%; display: block; }
.sv-app-ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font: 700 16px var(--font); color: #fff; background: linear-gradient(145deg, #7C4DFF, #3F93FF); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.sv-app b { display: block; font-size: 15px; font-weight: 600; }
.sv-app span { font-size: 12.5px; color: var(--fg-3); }
.sv-settings-size { font: 600 15px var(--mono); color: var(--fg); padding: 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, .06); }
.sv-track { position: relative; height: 56px; border-radius: 12px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); }
.sv-track-l { display: flex; justify-content: space-between; margin-top: 8px; font: 500 12px var(--mono); color: var(--fg-3); }
.sv-seg { position: absolute; top: 0; bottom: 0; border-radius: 10px; transform-origin: left center; }
.sv-seg[data-k="binary"] { background: #4A7DFF; }
.sv-seg[data-k="container"] { background: #7C9BFF; }
.sv-seg[data-k="support"] { background: #AC4BFF; }
.sv-seg[data-k="cache"] { background: #3FA9FF; }
.sv-rows { display: grid; gap: 10px; margin-top: 18px; }
.sv-row { display: grid; grid-template-columns: 200px minmax(0, 1fr) 96px; gap: 10px 16px; align-items: baseline; padding: 18px 0 6px; border-top: 1px solid var(--line); }
.sv-rbar { grid-column: 1 / -1; position: relative; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .04); }
.sv-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; background: var(--k); transform-origin: left center; }
.sv-name { font-weight: 600; display: flex; align-items: center; gap: 10px; }
.sv-name::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--k); flex: none; }
.sv-row[data-k="binary"] { --k: #4A7DFF; } .sv-row[data-k="container"] { --k: #7C9BFF; } .sv-row[data-k="support"] { --k: #AC4BFF; } .sv-row[data-k="cache"] { --k: #3FA9FF; }
.sv-path { font: 13px var(--mono); color: var(--fg-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-b { font: 600 15px var(--mono); text-align: right; }
.sprawl-more { margin-top: clamp(56px, 8vw, 96px); display: grid; gap: 18px; }
.sprawl-more h3 { font-family: var(--font); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--fg-2); }
.apps-gap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gap-card { padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 12px; }
.gap-card header { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; }
.gap-card header .app-logo { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex: none; font-size: 11px; font-weight: 700; color: #fff; font-style: normal; background: var(--fill); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 2px 8px rgba(0, 0, 0, .35); }
.gap-card header .app-logo svg { width: 62%; height: 62%; display: block; }
.gap-card header .app-logo.app-logo-full svg { width: 76%; height: 76%; }
.gap-bars { display: grid; gap: 7px; }
.gap-bar { display: grid; grid-template-columns: minmax(0, 1fr) 72px; gap: 8px; align-items: center; font: 12px var(--mono); color: var(--fg-3); }
.gap-bar span { height: 8px; border-radius: 4px; background: var(--fill); overflow: hidden; display: block; }
.gap-bar span i { display: block; height: 100%; border-radius: inherit; transform-origin: left; }
.gap-bar b { text-align: right; font-weight: 600; color: var(--fg); }
.gap-bar.small b { color: var(--fg-2); font-weight: 500; }
.gap-card small { font-size: 12px; color: var(--fg-3); }
.gap-mult { display: flex; align-items: baseline; gap: 8px; }
.gap-mult b { font: 600 34px/1 var(--mono); letter-spacing: -0.04em; background: linear-gradient(90deg, #C07EFF, #3FA9FF); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.gap-mult span { font-size: 13px; color: var(--fg-2); }

/* ---------- Time Range ---------- */
.range-card { padding: clamp(16px, 2.4vw, 28px); border-radius: 24px; background: var(--card); box-shadow: 0 0 0 1px var(--line); display: grid; gap: 18px; }
.range-top { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.seg-live button { cursor: pointer; font-size: 13px; padding: 5px 12px; font-family: var(--mono); transition: background .2s, color .2s; }
.seg-live button:hover { color: var(--fg); }
.range-label { font-size: 13px; color: var(--fg-2); }
.histo { position: relative; user-select: none; -webkit-user-select: none; touch-action: pan-y; cursor: crosshair; border-radius: 12px; }
.histo svg { width: 100%; height: auto; }
.histo-hint { position: absolute; left: 6.5%; top: -2px; font-size: 11px; color: var(--fg-3); pointer-events: none; transition: opacity .3s; }
.histo .bar-g rect { transition: opacity .2s; }
.histo .sel { fill: rgba(63, 169, 255, .07); stroke: rgba(63, 169, 255, .5); stroke-width: 1; }
.histo .handle { fill: #fff; }
.split-bar { display: flex; height: 12px; gap: 2px; border-radius: 6px; overflow: hidden; background: var(--fill); }
.split-bar i { display: block; height: 100%; transition: flex-grow .4s var(--ease-out); }
#splitIn { background: var(--accent-grad); }
#splitOut { background: #3A3A44; }
.vs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.side { padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 12px; align-content: start; min-width: 0; }
.side-in { border-color: rgba(63, 169, 255, .32); background: radial-gradient(120% 90% at 0% 0%, rgba(47, 91, 255, .14), transparent 60%), var(--surface); }
.side-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.side-when { font-size: 11.5px; color: var(--fg-3); }
.side-big { font-size: clamp(30px, 3.4vw, 44px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.side-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--fg-2); }
.side-meta b { color: var(--fg); font-weight: 600; }
.files { display: grid; }
.files li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.files li:first-child { border-top: 0; }
.files li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files li span small { display: block; font: 11px var(--mono); color: var(--fg-3); overflow: hidden; text-overflow: ellipsis; }
.files li b { font: 600 13px var(--mono); }

/* ---------- Unused ---------- */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.case { padding: 22px; border-radius: 22px; background: var(--card); box-shadow: 0 0 0 1px var(--line); display: grid; gap: 10px; align-content: start; }
.case-kind { font-size: 13px; color: var(--fg-3); }
.case h3 { font-family: var(--font); font-size: 22px; font-weight: 650; letter-spacing: -0.02em; }
.case-path { font-size: 12px; color: var(--fg-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-size { font-size: 32px; font-weight: 600; letter-spacing: -0.03em; margin: 6px 0 8px; }
.signals { display: grid; gap: 8px; }
.signals li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 2px 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(34, 197, 94, .07); border: 1px solid rgba(34, 197, 94, .2); font-size: 14px; }
.signals li em { grid-column: 2; font: 11px var(--mono); color: var(--fg-3); font-style: normal; }
.sig-dot { width: 18px; height: 18px; border-radius: 50%; background: rgba(34, 197, 94, .18); position: relative; grid-row: span 2; }
.sig-dot::after { content: ""; position: absolute; left: 6px; top: 4px; width: 4px; height: 8px; border: solid #5FDB8C; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.verdict { justify-self: start; display: inline-flex; align-items: center; gap: 7px; margin-top: 6px; padding: 6px 12px; border-radius: 999px; font: 600 12.5px var(--mono); color: #fff; background: var(--accent-grad); box-shadow: 0 8px 22px -10px rgba(63, 169, 255, .8); }
.verdict svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.kept { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr) auto; gap: 12px 20px; align-items: center; padding: 16px 22px; border-radius: 18px; border: 1px dashed var(--line-strong); }
.kept-main { display: grid; gap: 2px; min-width: 0; }
.kept-main span { font-size: 12px; color: var(--fg-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kept-sigs { display: flex; gap: 8px; flex-wrap: wrap; }
.kept-sigs li { font: 500 12px var(--mono); padding: 4px 10px; border-radius: 999px; }
.kept-sigs .yes { background: rgba(34, 197, 94, .1); color: #5FDB8C; }
.kept-sigs .no { background: var(--fill); color: var(--fg-3); text-decoration: line-through; }
.kept-v { color: var(--fg-2); font-size: 14px; }
.kept-size { color: var(--fg-2); }

/* ---------- Paper interlude: safety ---------- */
.paper {
  color-scheme: light; background: var(--paper); color: var(--ink);
  border-radius: 44px 44px 0 0; margin-top: 40px; z-index: 1;
}
.paper + .scene { border-radius: 44px 44px 0 0; margin-top: -44px; background: var(--page); z-index: 2; }
.paper .lead { color: var(--ink-2); }
.paper .display-2 { color: var(--ink); }
.paper :focus-visible { outline-color: var(--accent-a); }
.safety-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 96px); align-items: start; padding-bottom: 44px; }
.safety-copy { display: grid; gap: 24px; position: sticky; top: calc(var(--nav-h) + 40px); }
.tiers { display: grid; gap: 0; margin: 12px 0 0; border-top: 1px solid var(--paper-line); }
.tiers > div { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--paper-line); }
.tiers dt, .tiers dd { margin: 0; }
.tiers dd { color: var(--ink-2); font-size: 15.5px; }
.tier { display: inline-flex; padding: 3px 10px; border-radius: 999px; font: 600 12px/1.4 var(--mono); }
.t-auto { background: rgba(21, 128, 61, .12); color: #15803D; }
.t-confirm { background: rgba(180, 83, 9, .12); color: #B45309; }
.t-destructive { background: rgba(220, 38, 38, .1); color: #C42727; }
.promises { display: grid; gap: 10px; }
.promises li { font-size: 15.5px; color: var(--ink-2); padding-left: 26px; position: relative; }
.promises li::before { content: ""; position: absolute; left: 0; top: .35em; width: 14px; height: 14px; border-radius: 4px; background: var(--accent-grad); }
.promises b { color: var(--ink); font-weight: 600; }
.fda { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px 14px; border-radius: 14px; background: rgba(9, 9, 11, .045); box-shadow: inset 0 0 0 1px var(--paper-line); font-size: 14px; color: var(--ink-2); }
.fda svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.fda b { color: var(--ink); font-weight: 600; }
.receipt-wrap { position: relative; padding: 8px; }
.receipt {
  position: relative; background: #FFFFFF; border-radius: 18px; padding: 26px 26px 22px;
  box-shadow: 0 1px 0 rgba(9, 9, 11, .04), 0 30px 70px -30px rgba(20, 20, 40, .35), 0 0 0 1px rgba(9, 9, 11, .06);
  display: grid; gap: 18px; color: var(--ink);
}
.receipt::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: -9px; height: 10px; background: radial-gradient(circle at 6px 0, transparent 5px, #fff 5.5px) repeat-x; background-size: 12px 10px; filter: drop-shadow(0 4px 3px rgba(20, 20, 40, .06)); }
.rc-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1.5px dashed var(--paper-line); }
.rc-head b { display: block; font-family: var(--font); font-size: 22px; letter-spacing: -0.02em; }
.rc-head span { font-size: 13px; color: var(--ink-2); }
.rc-head .mono { font-size: 12px; color: var(--ink-3); }
.rc-group { display: grid; gap: 4px; }
.rc-gh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.rc-sub { font-size: 12px; color: var(--ink-3); }
.rc-line { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 5px 0; font-size: 12.5px; }
.rc-line.off { color: var(--ink-3); }
.rc-line.off .rc-b { text-decoration: line-through; }
.rc-p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-b { font-weight: 600; }
.rc-check { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid rgba(9, 9, 11, .25); position: relative; }
.rc-check.on { border: 0; background: var(--accent-grad); }
.rc-check.on::after { content: ""; position: absolute; left: 4.5px; top: 2px; width: 3.5px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.rc-why { font-size: 12.5px; color: var(--ink-2); padding-left: 26px; }
.rc-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 1.5px dashed var(--paper-line); font-size: 14px; color: var(--ink-2); }
.rc-total b { font-size: 30px; color: var(--ink); letter-spacing: -0.03em; }
.rc-actions { display: flex; justify-content: flex-end; }
.rc-btn { display: inline-flex; height: 40px; align-items: center; padding: 0 18px; border-radius: 999px; color: #fff; font-weight: 600; font-size: 14.5px; background: var(--accent-grad); box-shadow: 0 10px 24px -12px rgba(47, 91, 255, .9); }
.rc-stamp { position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: #0D0D10; color: #fff; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .55); opacity: 0; transform: translateY(14px) scale(.98); }
.rc-stamp svg { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: rgba(34, 197, 94, .2); fill: none; stroke: #5FDB8C; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.rc-stamp b { display: block; font-size: 14px; }
.rc-stamp span.mono { font-size: 11.5px; color: var(--fg-2); }
.rc-undo { margin-left: auto; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .1); }
.rm .rc-stamp, .no-anim .rc-stamp { position: relative; left: auto; right: auto; bottom: auto; opacity: 1; transform: none; }

/* ---------- AI ---------- */
.scene-ai { overflow: hidden; }
.scene-ai::before { content: ""; position: absolute; left: 50%; top: 32%; width: min(1100px, 120vw); height: 700px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(134, 86, 255, .16), rgba(47, 91, 255, .07) 55%, transparent); pointer-events: none; }
.soon { margin-bottom: -4px; }
.ai-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.ai-panel { padding: 20px; border-radius: 26px; background: rgba(20, 20, 25, .75); box-shadow: 0 0 0 1px var(--line-strong), 0 50px 120px -50px rgba(134, 86, 255, .5); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); display: grid; gap: 16px; }
.ai-q { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--page); border: 1px solid var(--line-strong); font-size: 18px; font-family: var(--font); letter-spacing: -0.01em; min-height: 56px; }
.ai-q svg { width: 18px; height: 18px; fill: none; stroke: var(--fg-3); stroke-width: 2; stroke-linecap: round; flex: none; }
.caret { width: 2px; height: 22px; background: var(--accent-b); border-radius: 1px; animation: blink 1s steps(2) infinite; margin-left: -8px; }
@keyframes blink { 50% { opacity: 0; } }
.ai-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: rgba(63, 169, 255, .08); border: 1px solid rgba(63, 169, 255, .25); font-size: 12px; }
.tool-chip code { font-size: 12px; color: #8DB4FF; }
.tool-chip small { font: 11px var(--mono); color: var(--fg-3); }
.tool-chip i { width: 14px; height: 14px; border-radius: 50%; background: rgba(34, 197, 94, .2); position: relative; }
.tool-chip i::after { content: ""; position: absolute; left: 4.5px; top: 2.5px; width: 3px; height: 6px; border: solid #5FDB8C; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.tool-chip.run i { background: transparent; border: 2px solid rgba(63, 169, 255, .3); border-top-color: var(--accent-b); animation: spin .7s linear infinite; }
.tool-chip.run i::after { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.ai-results { display: grid; gap: 2px; }
.ai-results li { display: grid; grid-template-columns: 150px minmax(0, 1fr) 92px; gap: 12px; align-items: center; padding: 7px 4px; font-size: 13px; }
.ai-results li > span:first-child { color: var(--fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-results .bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .04); overflow: hidden; }
.ai-results .bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #8656FF, #3F93FF); transform-origin: left; }
.ai-results b { text-align: right; font-size: 13px; }
.ai-answer { padding: 14px 16px; border-radius: 16px; background: rgba(172, 75, 255, .07); border: 1px solid rgba(172, 75, 255, .22); display: grid; gap: 8px; }
.ai-label { display: inline-flex; align-items: center; gap: 6px; font: 600 11.5px var(--mono); color: var(--brand-light); }
.ai-label svg { width: 13px; height: 13px; fill: var(--brand-light); }
.ai-answer p { font-size: 15px; line-height: 1.5; color: #E4E4EA; min-height: 4.5em; }
.ai-replay { justify-self: end; }
.ai-rules { display: grid; gap: 22px; }
.ai-rules li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
.ai-rules svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--elevated); box-shadow: inset 0 0 0 1px var(--line); fill: none; stroke: var(--fg); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ai-rules b { display: block; font-family: var(--font); font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.ai-rules span { color: var(--fg-2); font-size: 15px; }
.req { margin-top: 40px; text-align: center; font-size: 14px; color: var(--fg-3); max-width: 46em; margin-inline: auto; }

/* ---------- Developers ---------- */
.dev-stack { padding: clamp(18px, 2.4vw, 28px); border-radius: 24px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.ds-head { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: flex-end; margin-bottom: 22px; }
.ds-head small { display: block; font-size: 13px; color: var(--fg-2); margin-bottom: 4px; }
.ds-head b { font-size: clamp(28px, 3vw, 40px); font-weight: 600; letter-spacing: -0.03em; }
.ds-head .legend { margin-left: auto; }
.slabs { display: grid; gap: 6px; }
.slab { display: grid; grid-template-columns: 210px minmax(0, 1fr) 84px; gap: 14px; align-items: center; font-size: 13.5px; }
.slab-n { display: grid; min-width: 0; }
.slab-n b { font-weight: 600; }
.slab-n small { font: 11px var(--mono); color: var(--fg-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slab-t { height: 26px; border-radius: 7px; background: rgba(255, 255, 255, .025); overflow: hidden; }
.slab-t i { display: block; height: 100%; border-radius: 7px; transform-origin: left; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22); }
.slab-t i.auto { background: linear-gradient(90deg, rgba(34, 197, 94, .75), rgba(34, 197, 94, .95)); }
.slab-t i.confirm { background: linear-gradient(90deg, rgba(245, 165, 36, .75), rgba(245, 165, 36, .95)); }
.slab-t i.destructive { background: linear-gradient(90deg, rgba(255, 101, 104, .7), rgba(255, 101, 104, .92)); }
.slab-b { text-align: right; font: 600 13.5px var(--mono); }
.slab:hover .slab-t i { filter: brightness(1.15); }
.mcp { margin-top: clamp(64px, 9vw, 120px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.mcp-copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.case, .side, .ai-panel, .range-card, .price-card, .cost, .receipt, .safety-copy, .final-in, .hero-in, .scene-head { grid-template-columns: minmax(0, 1fr); }
.hero-in, .final-in, .scene-head.center { justify-items: center; }
.mcp-copy > p { color: var(--fg-2); font-size: 17px; }
.mcp-copy > p code { color: var(--fg); font-size: .92em; }
.snippet { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 14px; background: #0A0A0C; box-shadow: 0 0 0 1px var(--line-strong); }
.snippet code { flex: 1; min-width: 0; font-size: 12.5px; color: #D4D4DC; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.snippet code::-webkit-scrollbar { display: none; }
.copy.done { color: #5FDB8C; }
.tool-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tool-list li { font: 12px var(--mono); padding: 4px 9px; border-radius: 8px; background: var(--elevated); color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--line); transition: color .2s, box-shadow .2s; }
.tool-list li:hover { color: var(--fg); box-shadow: inset 0 0 0 1px rgba(63, 169, 255, .5); }
.term { border-radius: 18px; background: #0A0A0C; box-shadow: 0 0 0 1px var(--line-strong), 0 40px 100px -40px rgba(47, 91, 255, .4); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 12px; padding: 4px 14px 8px 0; border-bottom: 1px solid var(--line); }
.term-bar span { font: 12px var(--mono); color: var(--fg-3); }
.term-body { padding: 18px 20px 22px; display: grid; gap: 12px; font: 13px/1.6 var(--mono); color: #D4D4DC; min-height: 430px; align-content: start; }
.term-body p { margin: 0; }
.t-user { color: var(--fg); }
.t-prompt { color: var(--brand-light); }
.t-call { display: flex; align-items: center; gap: 8px; color: var(--fg-2); flex-wrap: wrap; }
.t-call i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.t-call b { color: #8DB4FF; font-weight: 500; }
.t-call span { color: var(--fg-3); }
.t-out { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); font: 11.5px/1.65 var(--mono); color: var(--fg-2); overflow-x: auto; white-space: pre; }
.t-answer { font-family: var(--font-text); font-size: 14.5px; line-height: 1.55; color: var(--fg); }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 20px; align-items: stretch; }
.price-card { padding: clamp(22px, 3vw, 36px); border-radius: 28px; display: grid; gap: 24px; align-content: start;
  background: radial-gradient(120% 80% at 100% 0%, rgba(63, 169, 255, .14), transparent 55%), radial-gradient(90% 70% at 0% 100%, rgba(172, 75, 255, .12), transparent 60%), var(--card);
  box-shadow: 0 0 0 1px rgba(63, 169, 255, .28), 0 50px 120px -60px rgba(47, 91, 255, .6); }
.pc-top { display: flex; align-items: center; gap: 14px; }
.pc-top img { width: 64px; height: 64px; }
.pc-top b { display: block; font-family: var(--font); font-size: 22px; letter-spacing: -0.02em; }
.pc-top span { color: var(--fg-2); font-size: 14px; }
.pc-price { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.pc-price > b { font-size: clamp(64px, 7vw, 96px); font-weight: 600; letter-spacing: -0.05em; line-height: .9; }
.pc-was { display: grid; gap: 4px; padding-bottom: 8px; }
.pc-was s { font: 500 22px var(--mono); color: var(--fg-3); text-decoration-thickness: 2px; }
.launch-note { font-size: 13.5px; color: #8DB4FF; }
.pc-list { display: grid; gap: 10px; }
.pc-list li { position: relative; padding-left: 28px; font-size: 15.5px; color: #DCDCE2; }
.pc-list li::before { content: ""; position: absolute; left: 2px; top: .3em; width: 16px; height: 16px; border-radius: 50%; background: rgba(34, 197, 94, .16); }
.pc-list li::after { content: ""; position: absolute; left: 8px; top: calc(.3em + 3px); width: 3.5px; height: 7.5px; border: solid #5FDB8C; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pc-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.pc-fine { font-size: 13.5px; color: var(--fg-3); }
.cost { padding: clamp(20px, 2.6vw, 30px); border-radius: 28px; background: var(--card); box-shadow: 0 0 0 1px var(--line); display: grid; gap: 14px; align-content: start; }
.cost h3 { font-family: var(--font); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.cost-chart { width: 100%; height: auto; overflow: visible; }
.compare { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 6px; }
.compare th, .compare td { padding: 10px 6px; border-top: 1px solid var(--line); text-align: left; font-weight: 400; }
.compare thead th { border-top: 0; font-size: 12.5px; color: var(--fg-3); font-weight: 500; }
.compare tbody th { color: var(--fg-2); }
.compare td { width: 92px; color: var(--fg-3); font-family: var(--mono); font-size: 13px; }
.compare td.y { color: #5FDB8C; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq-grid > h2 { position: sticky; top: calc(var(--nav-h) + 40px); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 2px; font-family: var(--font); font-size: clamp(17px, 1.5vw, 20px); font-weight: 550; letter-spacing: -0.015em; border-radius: 8px; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background:
  linear-gradient(var(--fg-2), var(--fg-2)) center / 10px 1.5px no-repeat,
  linear-gradient(var(--fg-2), var(--fg-2)) center / 1.5px 10px no-repeat, var(--elevated);
  transition: transform .35s var(--ease-out), background-color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: #fff; }
.faq summary:hover::after { background-color: var(--fill); }
.faq-a { overflow: hidden; }
.faq-a p { padding: 0 2px 22px; color: var(--fg-2); font-size: 16px; max-width: 40em; }
.faq-a a { color: #8DB4FF; text-underline-offset: 3px; }

/* ---------- Final + footer ---------- */
.final { position: relative; padding-block: clamp(120px, 20vh, 220px); overflow: hidden; text-align: center; }
.final-in { position: relative; display: grid; justify-items: center; gap: 28px; }
.final::before { content: ""; position: absolute; left: 50%; top: 50%; width: 900px; height: 600px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(134, 86, 255, .18), rgba(47, 91, 255, .06) 60%, transparent); pointer-events: none; }
.ledger-loop { width: 72px; height: 72px; }
.ledger-loop rect.h { fill: var(--hoard); animation: l-light 2.4s cubic-bezier(.4, 0, .2, 1) infinite; animation-delay: var(--d); }
.ledger-loop rect.x { fill: var(--hoard); animation: l-hoard 2.4s cubic-bezier(.4, 0, .2, 1) infinite; }
.ledger-loop.paused rect { animation-play-state: paused; }
@keyframes l-light { 0%, 8% { fill: var(--hoard); } 18%, 70% { fill: var(--c); } 86%, 100% { fill: var(--hoard); } }
@keyframes l-hoard { 0%, 44% { opacity: 1; transform: none; } 58%, 82% { opacity: 0; transform: translateY(var(--dy)) scale(.85); } 96%, 100% { opacity: 1; transform: none; } }
.final-title { max-width: 10em; }
.foot { border-top: 1px solid var(--line); padding: 40px 0 48px; }
.foot-in { display: grid; grid-template-columns: auto 1fr; gap: 24px 40px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand .mark { width: 34px; height: 34px; }
.foot-brand small { display: block; font-size: 11.5px; color: var(--fg-dim); margin-top: 4px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 22px; justify-content: flex-end; }
.foot-links a { color: var(--fg-2); text-decoration: none; font-size: 14px; border-radius: 6px; }
.foot-links a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }
.foot-fine { grid-column: 1 / -1; font-size: 12.5px; color: var(--fg-3); }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; padding: 10px 16px; border-radius: 12px; background: var(--elevated); box-shadow: 0 0 0 1px var(--line-strong), 0 16px 40px rgba(0, 0, 0, .5); font-size: 14px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease-out); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .apps-gap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-grid, .mcp, .price-grid { grid-template-columns: minmax(0, 1fr); }
  .kept { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (max-width: 899px) {
  .app-win { grid-template-columns: minmax(0, 1fr); border-radius: 18px; }
  .app-side, .app-toolbar { display: none; }
  .app-content { padding: 16px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-grid { grid-template-columns: minmax(0, 1fr); }
  .map-grid { grid-template-columns: minmax(0, 1fr); }
  .map-pin { min-height: 0; padding-top: 32px; }
  .map-steps { order: 2; }
  .map-step p { font-size: 15.5px; }
.map-pin { padding-bottom: 0; }
  .map-grid { display: none; }
  .map-strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 8px; scroll-padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; }
  .map-strip::-webkit-scrollbar { display: none; }
  .mf { flex: 0 0 86%; scroll-snap-align: start; }
  .strip-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
  .strip-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--fill); transition: width .3s var(--ease-out), background .3s; }
  .strip-dots i.on { width: 18px; background: var(--fg-2); }
  .cases { grid-template-columns: minmax(0, 1fr); }
  .safety-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .safety-copy, .faq-grid > h2 { position: static; }
  .vs { grid-template-columns: minmax(0, 1fr); }
  .sv-row { grid-template-columns: minmax(0, 1fr) auto; }
  .sv-path { grid-column: 1 / -1; grid-row: 2; }
  .sv-rbar { grid-row: 3; }
  .slab { grid-template-columns: minmax(0, 1fr) 72px; }
  .slab-n { grid-column: 1 / -1; }
  .slab-t { grid-column: 1; }
  .nav-meter { display: none; }
  .nav .btn { margin-left: auto; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .foot-links { justify-content: flex-start; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .kpis { gap: 8px; }
  .kpi { padding: 11px 12px; }
  .kpi-v b { font-size: 20px; }
  .dist-row { grid-template-columns: 10px minmax(0, 1fr) 74px; }
  .dist-row .cnt { display: none; }
  .map-size { font-size: 13px; }
  .apps-gap { grid-template-columns: minmax(0, 1fr); }
  .ai-results li { grid-template-columns: minmax(0, 1fr) 84px; }
  .ai-results .bar { grid-column: 1 / -1; grid-row: 2; }
  .tiers > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .rc-line { font-size: 11.5px; }
  .receipt { padding: 20px 16px 18px; }
  .paper { border-radius: 28px 28px 0 0; }
  .paper + .scene { border-radius: 28px 28px 0 0; }
  .fineprint li { padding-inline: 9px; }
  .cta-row .btn { width: 100%; }
  .pc-cta .btn { width: 100%; }
  .kept { grid-template-columns: minmax(0, 1fr); }
  .ds-head .legend { margin-left: 0; }
  .term-body { min-height: 0; padding: 14px; }
  .hero-field .ht span { display: none; }
}

/* ---------- Reduced motion / no animation fallback ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .ledger-loop rect.h { fill: var(--c); }
  .ledger-loop rect.x { opacity: 0; }
  .scroll-cue { display: none; }
  .caret { display: none; }
}
.rm .captions p, .no-anim .captions p { position: static; opacity: 1; transform: none; grid-area: auto; }
.rm .captions, .no-anim .captions { gap: 6px; }
.rm .map-steps, .no-anim .map-steps { gap: 28px; }
.rm .map-step, .no-anim .map-step { grid-area: auto; opacity: 1; transform: none; }
.rm .caret, .no-anim .caret { display: none; }

/* ---------- Legal pages and 404 ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: calc(var(--nav-h) + 64px) var(--gutter) 96px; }
.legal .draft { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 999px; background: rgba(245, 165, 36, .14); color: #F8C062; font: 600 12.5px var(--mono); margin-bottom: 24px; }
.legal h1 { font-family: var(--font); font-size: clamp(40px, 6vw, 64px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin-bottom: 14px; }
.legal .updated { color: var(--fg-3); font: 13px var(--mono); margin-bottom: 40px; }
.legal .summary { padding: 18px 20px; border-radius: 16px; background: var(--card); box-shadow: 0 0 0 1px var(--line); margin-bottom: 40px; }
.legal .summary p { color: var(--fg); }
.legal h2 { font-family: var(--font); font-size: 22px; font-weight: 650; letter-spacing: -0.02em; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--fg-2); font-size: 16.5px; line-height: 1.6; }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; margin: 12px 0; }
.legal a { color: #8DB4FF; text-underline-offset: 3px; }
.legal b { color: var(--fg); font-weight: 600; }
.legal .ph { font-family: var(--mono); font-size: .9em; color: #F8C062; background: rgba(245, 165, 36, .1); padding: 1px 6px; border-radius: 6px; }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 10px 8px; border-top: 1px solid var(--line); color: var(--fg-2); vertical-align: top; }
.legal th { color: var(--fg); font-weight: 600; }
.legal-nav { background: rgba(8, 8, 8, .72); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); box-shadow: 0 1px 0 var(--line); }
.legal-nav .back { margin-left: auto; color: var(--fg-2); font-size: 14px; text-decoration: none; border-radius: 6px; }
.legal-nav .back:hover { color: var(--fg); }
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: var(--gutter); }
.nf-in { display: grid; justify-items: center; gap: 22px; max-width: 34em; }
.nf .ledger-loop { width: 88px; height: 88px; }
.nf h1 { font-family: var(--font); font-size: clamp(40px, 7vw, 76px); font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
.nf p { color: var(--fg-2); font-size: 18px; }
.nf code { color: var(--fg); font-size: .92em; }

/* optional detail: MCP tool list behind a disclosure */
.tool-more summary { cursor: pointer; width: max-content; font: 13px var(--mono); color: var(--fg-3); padding: 4px 0 10px; list-style: none; }
.tool-more summary::-webkit-details-marker { display: none; }
.tool-more summary::before { content: "+ "; }
.tool-more[open] summary::before { content: "- "; }
.tool-more summary:hover { color: var(--fg); }

/* ---------- Reference pages (MCP, Compare): legal layout plus code and tables ---------- */
.doc .doc-kicker { margin-bottom: 18px; }
.doc h3 { font-family: var(--font); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--fg); margin: 26px 0 8px; }
.doc code { font-family: var(--mono); font-size: .88em; color: var(--fg); }
.doc pre { margin: 10px 0 14px; padding: 14px 16px; border-radius: 14px; background: #0A0A0C; box-shadow: 0 0 0 1px var(--line-strong); overflow-x: auto; }
.doc pre code { font-size: 12.5px; line-height: 1.6; color: #D4D4DC; white-space: pre; }
.doc td code { white-space: nowrap; }
.doc .table-wrap { overflow-x: auto; margin: 14px 0; }
.doc .table-wrap table { margin: 0; min-width: 560px; }
.doc .yes { color: #5FDB8C; }
.doc .no { color: var(--fg-3); }
.doc .doc-cta { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; }
.doc .src { font-size: 13.5px; color: var(--fg-3); }
.doc .src a { color: var(--fg-2); }
.doc tbody th { color: var(--fg); white-space: nowrap; padding-right: 16px; }
.legal.wide { max-width: 1080px; }
.wide .table-wrap table { min-width: 880px; font-size: 14.5px; }
.wide .table-wrap td { width: 18%; }
