/* Applied Efficiency — styles. Tokens are defined once in :root (see CLAUDE.md). */

/* ---------- fonts (self-hosted, OFL) ---------- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/assets/fonts/archivo-latin-wdth-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/assets/fonts/archivo-latin-ext-wdth-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/ibm-plex-mono-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/ibm-plex-mono-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/ibm-plex-mono-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/ibm-plex-mono-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- tokens ---------- */
:root {
  --bg: #05070E;
  --surface: #0A0E18;
  --card: #101626;
  --line: #1E2A44;
  --line-2: #2B3852;
  --ink: #EEF2F7;
  --ink-2: #A9B2BF;
  --ink-3: #6D7584;
  --grad-primary: linear-gradient(100deg, #4B47FF, #2A62FF, #1595E6);
  --grad-wordmark: linear-gradient(90deg, #4B47FF 0%, #2A62FF 30%, #18AEF2 65%, #3EF0C0 100%);
  --chrome: linear-gradient(180deg, #FFFFFF, #E4E8EE 50%, #A7B0BC);
  --mint: #3EF0C0;
  --accent-text: #4FB3FF;
  --rule: #2F6BFF;
  --amber: #F2B15C;

  /* supporting shades sampled from reference/dark-preview.html */
  --navy: #0B1226;          /* alternating section + panel background */
  --panel: #0D1220;         /* 2 AM section background */
  --ink-dim: #8C95A3;       /* small meta text; --ink-3 is below AA on --bg */
  --ink-soft: #C3CAD4;      /* unselected wish rows */
  --chip-bg: rgba(47, 107, 255, .18);
  --chip-ink: #CFE0FF;
  --glow: 0 6px 24px rgba(42, 98, 255, .35);
  --error: #FF9A9A;         /* form errors */

  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --gutter: clamp(20px, 5cqi, 64px);
  --header-h: 73px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
.page { container: page / inline-size; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent-text); }
a:hover { color: var(--ink); }
[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
.on-light :focus-visible, .contact :focus-visible { outline-color: #FFFFFF; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 14px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.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;
}

.mono { font-family: var(--mono); }
.grad-wordmark {
  background: var(--grad-wordmark);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.wrap {
  max-width: 1320px; margin: 0 auto;
  padding: clamp(56px, 8cqi, 104px) var(--gutter);
}
.wrap--tight { padding-left: clamp(16px, 5cqi, 64px); padding-right: clamp(16px, 5cqi, 64px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 22px;
  font: 700 16px/1 var(--font); white-space: nowrap; text-decoration: none;
  border: 0; border-radius: 0; color: #FFFFFF;
  transition: filter .2s, box-shadow .2s, background-color .2s;
}
.btn:hover { color: #FFFFFF; }
.btn--sm { height: 44px; padding: 0 18px; font-size: 15px; }
.btn--lg { height: 52px; }
.btn--primary { background: var(--grad-primary); box-shadow: var(--glow); }
.btn--primary:hover { filter: brightness(1.12); }
.btn--outline { border: 2px solid var(--line-2); color: var(--ink); background: transparent; padding: 0 20px; }
.btn--outline:hover { border-color: var(--ink-2); color: var(--ink); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  background: rgba(5, 7, 14, .78);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--ink); text-decoration: none; }
.brand img { width: 40px; height: 40px; flex: none; }
.brand__name {
  font-weight: 800; font-stretch: 112%; font-size: 17px; letter-spacing: -0.01em;
  text-transform: uppercase; white-space: nowrap;
}
.site-header__wide { display: flex; align-items: center; gap: 28px; }
.nav { display: flex; gap: 28px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.nav a { color: var(--ink); text-decoration: none; padding: 6px 0; }
.nav a:hover { color: var(--accent-text); }
.menu-btn {
  display: none;
  font: 700 14px var(--font); color: var(--ink);
  background: transparent; border: 2px solid var(--line-2); padding: 0 14px; height: 44px;
}
.menu-btn[aria-expanded="true"] { border-color: var(--ink); }
.mobile-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  display: flex; flex-direction: column;
  padding: 8px var(--gutter) 20px;
  background: var(--bg);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .5);
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:not(.btn) {
  display: flex; align-items: center; min-height: 52px;
  color: var(--ink); text-decoration: none; font-size: 18px; font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.mobile-nav .btn { margin-top: 16px; }

@container page (max-width: 999px) {
  .site-header__wide { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
}
@container page (min-width: 1000px) {
  .mobile-nav { display: none !important; }
}
@container page (max-width: 380px) {
  .brand__name { font-size: 15px; }
  .brand { gap: 10px; }
}

/* ---------- section headings ---------- */
.sec-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px;
  border-top: 3px solid var(--rule); padding-top: 16px;
  margin-bottom: clamp(28px, 4cqi, 48px);
}
.sec-head--split { justify-content: space-between; align-items: end; padding: 16px 4px 0; }
.sec-head__title-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; }
.sec-num { font: 600 13px var(--mono); color: var(--ink); }
.sec-title {
  font-weight: 800; font-stretch: 110%; font-size: clamp(30px, 4.6cqi, 56px);
  line-height: 1; letter-spacing: -0.025em; text-transform: uppercase;
}
.sec-lede { padding: 0 4px; font-size: 18px; color: var(--ink-2); }
.tag-chip { font: 600 12px var(--mono); letter-spacing: .04em; }

/* ---------- footer ---------- */
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding: 22px var(--gutter);
  background: var(--navy); color: var(--ink-dim);
  font: 500 12px var(--mono);
}

/* ---------- motion ---------- */
.motion [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
}
.motion [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- hero ---------- */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero__wrap { padding: clamp(40px, 7cqi, 96px) var(--gutter) clamp(40px, 6cqi, 72px); }
.hero__title {
  font-weight: 850; font-stretch: 115%; font-size: clamp(44px, 8.6cqi, 124px);
  line-height: .9; letter-spacing: -0.03em; text-transform: uppercase; text-wrap: balance;
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .04em; /* keep descender-free caps from clipping the gradient */
}
.hero__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(28px, 5cqi, 64px); margin-top: clamp(32px, 5cqi, 56px); align-items: stretch;
}
.hero__lead { display: flex; flex-direction: column; gap: 28px; justify-content: space-between; }
.hero__sub { font-size: clamp(19px, 2cqi, 24px); line-height: 1.4; font-weight: 500; max-width: 32ch; text-wrap: pretty; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* hero logo: lighten blend drops the image's near-black background into the hero surface */
.hero__logo { display: flex; align-items: center; justify-content: center; min-width: 0; }
.hero__logo picture { width: 100%; max-width: 640px; }
.hero__logo img { width: 100%; height: auto; mix-blend-mode: lighten; }

/* ---------- marquees ---------- */
.marquee { overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: ae-marq 45s linear infinite; }
.marquee__seq { display: flex; flex: none; align-items: center; }
.marquee span { white-space: nowrap; text-transform: uppercase; }
.marquee i { font-style: normal; flex: none; }
@keyframes ae-marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.marquee--top { background: var(--navy); padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee--top .marquee__seq { gap: 28px; padding-right: 28px; }
.marquee--top span, .marquee--top i { font: 800 clamp(18px, 2cqi, 24px)/1 var(--font); }
.marquee--top span { font-stretch: 112%; letter-spacing: -0.01em; color: var(--ink); }
.marquee--top i { color: var(--mint); }

.marquee--bottom { background: var(--bg); padding: clamp(20px, 3cqi, 36px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee--bottom .marquee__track { animation-duration: 32s; animation-direction: reverse; }
.marquee--bottom .marquee__seq { gap: 40px; padding-right: 40px; }
.marquee--bottom span, .marquee--bottom i { font: 850 clamp(56px, 9cqi, 128px)/1 var(--font); }
.marquee--bottom span { font-stretch: 118%; letter-spacing: -0.03em; color: #C9D1DC; }
.marquee--bottom span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 2px #C9D1DC; }
.marquee--bottom i { color: var(--rule); font-size: clamp(40px, 6cqi, 88px); }

/* ---------- 01 problem ---------- */
.problem__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(24px, 4cqi, 48px); }
.problem__item { display: flex; flex-direction: column; gap: 10px; }
.problem__item h3 { font-size: 21px; font-weight: 800; }
.problem__item p { color: var(--ink-2); font-size: 16px; }
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  margin-top: clamp(40px, 6cqi, 64px); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
}
.stat { display: flex; align-items: center; gap: 20px; padding: 24px 0; flex-wrap: wrap; }
.stat__num {
  font-weight: 850; font-stretch: 120%; font-size: clamp(72px, 10cqi, 128px);
  line-height: .9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums;
  padding-right: .04em; /* gradient text: avoid clipping the last glyph */
}
.stat__label { font-size: 18px; font-weight: 600; max-width: 16ch; }
.source-note { font: 400 12px var(--mono); color: var(--ink-dim); margin-top: 14px; }

/* ---------- 02 estimator ---------- */
.estimator { background: var(--navy); }
.est__chip { color: var(--ink); background: var(--bg); padding: 8px 12px; }
.est {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 2px; background: var(--line); border: 2px solid var(--line);
}
.est__input { padding: clamp(20px, 3.4cqi, 40px); display: flex; flex-direction: column; gap: 32px; background: var(--navy); }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--line-2); }
.seg button {
  min-height: 52px; border: 0; padding: 6px 8px;
  font: 700 15px var(--font); background: transparent; color: var(--ink-2);
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--grad-primary); color: #FFFFFF; }
.est__replace { display: flex; flex-direction: column; gap: 12px; }
.est__label { font: 600 12px var(--mono); letter-spacing: .04em; color: var(--ink-2); }
.est__label--accent { color: var(--mint); }
.est__spend { display: flex; align-items: baseline; gap: 8px; }
.est__spend-num {
  font-weight: 850; font-stretch: 115%; font-size: clamp(60px, 8cqi, 96px);
  line-height: .95; letter-spacing: -0.04em; font-variant-numeric: tabular-nums;
}
.est__per { font: 600 16px var(--mono); color: var(--ink-2); }
.est__ticks { display: flex; justify-content: space-between; font: 400 12px var(--mono); color: var(--ink-2); }
.est__hint { margin-top: 6px; font-size: 15px; color: var(--ink-2); max-width: 40ch; }
.est__wishnote { display: flex; flex-direction: column; gap: 14px; }
.est__wishnote .est__hint { margin-top: 0; }
.est__wishlead { font-size: 20px; line-height: 1.4; font-weight: 500; max-width: 34ch; }

/* range slider */
.range { width: 100%; height: 44px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; --p: 16%; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--rule) var(--p), var(--ink) var(--p)); }
.range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--ink); }
.range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--rule); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: var(--rule); border: 3px solid var(--ink); }
.range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--rule); border: 3px solid var(--ink); }
.range:focus-visible { outline-offset: 0; }

.est__out { padding: clamp(20px, 3.4cqi, 40px); background: var(--bg); display: flex; flex-direction: column; gap: 24px; }
.est__result, .est__wish { display: flex; flex-direction: column; gap: 24px; }
.est__big { display: flex; flex-direction: column; gap: 6px; }
.est__bignum {
  font-weight: 850; font-stretch: 112%; font-size: clamp(44px, 6cqi, 76px);
  line-height: .95; letter-spacing: -0.035em; color: var(--accent-text);
}
.est__note { font-size: 16px; color: var(--ink-2); }
.est__chart { display: flex; flex-direction: column; gap: 6px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font: 600 11px var(--mono); }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 18px; }
.legend__line { height: 3px; background: #C9D1DC; }
.legend__band { height: 10px; background: var(--rule); }
.legend__window { height: 10px; background: rgba(62, 240, 192, .22); }
.chart { width: 100%; height: auto; background: var(--surface); border: 2px solid var(--line-2); }
.chart__window { fill: rgba(62, 240, 192, .14); }
.chart__grid { stroke: var(--line); stroke-width: 1; fill: none; }
.chart__band { fill: var(--rule); opacity: .85; }
.chart__rent { stroke: #C9D1DC; stroke-width: 3; fill: none; }
.chart__axis { display: flex; justify-content: space-between; font: 500 11px var(--mono); color: var(--ink-dim); }
.ledger { display: flex; flex-direction: column; border-top: 2px solid var(--line-2); }
.ledger__row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.ledger__row b { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger__row--rule { border-bottom: 2px solid var(--line-2); }
.ledger__row--last { border-bottom: 0; }
.ledger__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; font-size: 17px; font-weight: 800; }
.ledger__total b { font-size: 24px; font-stretch: 110%; font-variant-numeric: tabular-nums; white-space: nowrap; }
.est__low { display: flex; flex-direction: column; gap: 20px; }
.est__lowtext { font-size: clamp(23px, 2.7cqi, 30px); line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; text-wrap: pretty; }
.btn--md { height: 48px; padding: 0 18px; font-size: 15px; }

/* ---------- 03 how it works ---------- */
.stages {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 2px; background: var(--line); border: 2px solid var(--line);
}
.stage { background: var(--surface); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.stage__n { font-weight: 850; font-stretch: 120%; font-size: 44px; line-height: 1; color: var(--ink); }
.stage__n--accent { color: var(--accent-text); }
.stage h3 { font-size: 21px; font-weight: 800; }
.stage p { color: var(--ink-2); font-size: 15px; text-wrap: pretty; flex: 1; }
.stage__tag { font: 600 12px var(--mono); border-top: 1px solid var(--line); padding-top: 12px; }

/* ---------- 04 the 2 AM simulation ---------- */
.demo { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.demo__head { margin-bottom: 12px; }
.demo__chip { border: 2px dashed var(--line-2); padding: 6px 10px; }
.demo__lede { margin-bottom: clamp(28px, 4cqi, 44px); max-width: 54ch; color: var(--ink-2); }
.sim {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  border: 2px solid var(--line-2); background: var(--surface);
}
.sim__board { padding: clamp(20px, 3.4cqi, 40px); display: flex; flex-direction: column; gap: 20px; background: var(--navy); --state: var(--ink); }
.sim__label { font: 600 12px var(--mono); color: var(--ink-2); }
.sim__clock {
  font-weight: 850; font-stretch: 120%; font-size: clamp(80px, 12cqi, 148px);
  line-height: .85; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--state);
  transition: color .3s;
}
.sim__status { display: flex; align-items: center; gap: 10px; font: 600 14px var(--mono); }
.sim__dot { width: 12px; height: 12px; background: var(--state); flex: none; transition: background-color .3s; }
.sim__board[data-state="incident"] { --state: var(--amber); }
.sim__board[data-state="ok"] { --state: var(--mint); }
.sim__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.sim__play { height: 56px; padding: 0 24px; }

.steps { list-style: none; margin: 0; padding: clamp(16px, 3cqi, 36px); display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 78px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.step__t { font: 600 13px/24px var(--mono); color: var(--ink); }
.step__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.step__h { font-size: 17px; font-weight: 800; line-height: 24px; color: var(--ink); }
.step__b { font-size: 15px; color: var(--ink-2); text-wrap: pretty; }
.step, .step * { transition: color .3s; }
.step.is-dim .step__t, .step.is-dim .step__b { color: #7D8696; }
.step.is-dim .step__h { color: var(--ink-dim); }
.step.is-hot .step__t { color: var(--amber); }
.step.is-ok .step__t, .step.is-ok .step__h { color: var(--mint); }
.step.is-held .step__t, .step.is-held .step__h { color: var(--amber); }

.approval {
  margin-top: 12px; padding: 16px; display: flex; flex-direction: column; gap: 12px;
  background: var(--card); border: 2px solid var(--line-2); position: relative;
}
.approval::before { content: ''; position: absolute; left: -2px; right: -2px; top: -2px; height: 6px; background: var(--grad-primary); }
.approval__meta { font: 500 12px/1.6 var(--mono); padding-top: 4px; overflow-wrap: anywhere; }
.approval__meta span { color: var(--ink-dim); }
.approval__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.approval__btns .btn { width: 100%; }
.demo__foot { margin-top: 20px; padding: 0 4px; font-size: 15px; color: var(--ink-2); max-width: 70ch; }

/* ---------- ★ wish board ---------- */
.wishboard { background: var(--navy); }
.wishboard__head { margin-bottom: 12px; }
.wishboard__star { color: var(--mint); }
.wishboard__count { color: var(--ink-2); }
.wishboard__lede { margin-bottom: clamp(28px, 4cqi, 44px); max-width: 56ch; color: var(--ink-2); }
.wishboard__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 2px; background: var(--line); border: 2px solid var(--line);
}
.wishform { background: var(--bg); padding: clamp(20px, 3.4cqi, 40px); display: flex; flex-direction: column; gap: 18px; margin: 0; }
.wishform__eyebrow { font: 600 12px var(--mono); letter-spacing: .04em; color: var(--accent-text); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font: 600 12px var(--mono); letter-spacing: .04em; }
.field__label--split { display: flex; justify-content: space-between; }
.field__count { color: var(--ink-dim); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 18px; }
.field input, .field textarea {
  width: 100%; border: 2px solid var(--line-2); border-radius: 0; background: var(--card); color: var(--ink);
  font: 500 16px var(--font);
}
.field input { height: 52px; padding: 0 14px; }
.field textarea { padding: 12px 14px; line-height: 1.45; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #7D8696; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 0; border-color: var(--rule); }
.field [aria-invalid="true"] { border-color: var(--error); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.wishform__msg { font: 600 13px var(--mono); }
.wishform__msg:empty { display: none; }
.wishform__msg.is-error { color: var(--error); }
.wishform__msg.is-ok { color: var(--mint); }
.wishform__submit { height: 56px; width: 100%; }
.wishform__submit[disabled] { filter: saturate(.6) brightness(.85); cursor: progress; }
.wishform__note { font-size: 13px; color: var(--ink-2); }

.board { background: var(--panel); padding: clamp(16px, 3cqi, 32px); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.board__cols {
  display: grid; gap: 10px; height: 560px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
}
.board.has-pending .board__cols { height: 440px; }
.board__col { min-width: 0; }
.board__track { display: flex; flex-direction: column; animation: ae-up var(--dur, 30s) linear infinite; }
.board__col:nth-child(even) .board__track { animation-direction: reverse; }
.board__col:hover .board__track, .board__col:focus-within .board__track { animation-play-state: paused; }
.board__track .wcard { margin-bottom: 10px; }
@keyframes ae-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
/* Static board (reduced motion): each column scrolls by hand instead. */
.board--static .board__cols { -webkit-mask-image: none; mask-image: none; }
.board--static .board__col { overflow-y: auto; padding-right: 4px; }
.board--static .board__track { animation: none; }

.wcard {
  background: var(--card); color: var(--ink); border: 2px solid var(--line-2);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 10px;
}
.wcard__idea { font-size: 18px; font-weight: 700; line-height: 1.3; text-wrap: pretty; overflow-wrap: anywhere; }
.wcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font: 600 11px var(--mono); color: var(--ink-2); }
.wcard__biz { background: var(--chip-bg); color: var(--chip-ink); padding: 3px 7px; }
.wcard__tag { color: var(--ink-dim); }
.wcard--pending { border-color: var(--rule); animation: ae-pin .6s cubic-bezier(.2, .7, .2, 1); }
.wcard--pending .wcard__tag { color: var(--mint); }
@keyframes ae-pin { from { opacity: 0; transform: translateY(-12px) scale(.98); } to { opacity: 1; transform: none; } }
.board__empty { color: var(--ink-2); font-size: 15px; }

/* ---------- 05 what we build ---------- */
.build__head { margin-bottom: clamp(20px, 3cqi, 32px); }
.build__list { display: flex; flex-direction: column; }
.build__row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 8px 32px; padding: 22px 0; border-bottom: 1px solid var(--line-2); align-items: baseline;
}
.build__row h3 { font-size: clamp(21px, 2.4cqi, 28px); font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; }
.build__row p { color: var(--ink-2); font-size: 16px; max-width: 52ch; }

/* ---------- 06 hosting ---------- */
.hosting { background: var(--surface); border-top: 1px solid var(--line); }
.host__opts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 2px; background: var(--line); border: 2px solid var(--line-2);
}
.host__opt {
  background: var(--surface); color: var(--ink); border: 0; text-align: left;
  font-family: var(--font); padding: 24px; display: flex; flex-direction: column; gap: 10px;
  transition: background-color .2s;
}
.host__opt:hover { background: var(--card); }
.host__opt[aria-pressed="true"] { background: var(--grad-primary); }
.host__top { display: flex; justify-content: space-between; gap: 8px; width: 100%; font: 600 12px var(--mono); color: var(--ink-2); }
.host__opt[aria-pressed="true"] .host__top { color: #FFFFFF; }
.host__mark { color: var(--mint); }
.host__title { font-size: 23px; font-weight: 800; }
.host__body { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.host__opt[aria-pressed="true"] .host__body { color: #FFFFFF; }
.host__below {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  border: 2px solid var(--line-2); border-top: 0;
}
.host__own { background: var(--grad-primary); color: #FFFFFF; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.host__eyebrow { font: 600 12px var(--mono); }
.host__claim { font-size: clamp(24px, 2.6cqi, 32px); font-weight: 850; font-stretch: 110%; line-height: 1.05; letter-spacing: -0.02em; }
.host__note { font-size: 16px; line-height: 1.45; max-width: 38ch; }
.tree { background: var(--navy); padding: 24px; display: flex; flex-direction: column; font: 500 13px/1.4 var(--mono); }
.tree__head { color: var(--ink-2); margin-bottom: 12px; }
.tree__row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; padding: 9px 0; border-top: 1px solid var(--line); color: var(--ink-soft); }
.tree__name { color: var(--mint); white-space: pre; }
.host__opt[aria-pressed="true"] .host__mark { color: #FFFFFF; }

/* ---------- 07 pricing ---------- */
.pricing { border-top: 1px solid var(--line); }
.price__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(28px, 4cqi, 48px); }
.price__col { display: flex; flex-direction: column; }
.price__head { font: 600 12px var(--mono); padding-bottom: 10px; border-bottom: 2px solid var(--line-2); }
.price__row { display: flex; justify-content: space-between; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.price__row b, .price__line b { font-weight: 800; white-space: nowrap; }
.price__foot { padding: 16px 0; color: var(--ink-2); font-size: 15px; }
.price__foot--sm { padding: 12px 0; font-size: 14px; }
.price__side { display: flex; flex-direction: column; gap: 2px; }
.price__agent { background: var(--navy); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.price__eyebrow { font: 600 12px var(--mono); color: var(--mint); }
.price__eyebrow--plain { color: var(--ink); }
.price__big { font-weight: 850; font-stretch: 112%; font-size: 34px; line-height: 1.05; letter-spacing: -0.02em; }
.price__sub { font-size: 15px; color: var(--ink-soft); }
.price__start { border: 2px solid var(--line-2); padding: 20px; display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.price__line { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; }

/* ---------- 08 the honest version ---------- */
.honest { background: var(--surface); border-top: 1px solid var(--line); }
.honest__wrap { display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: start; }
.honest__label { flex: 1 1 220px; display: flex; flex-direction: column; gap: 8px; border-top: 6px solid var(--mint); padding-top: 14px; }
.honest__label h2 { font-weight: 800; font-stretch: 110%; font-size: 22px; text-transform: uppercase; letter-spacing: -0.01em; }
.honest__text {
  flex: 3 1 480px; max-width: 100%;
  font-size: clamp(25px, 3.4cqi, 42px); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; text-wrap: pretty;
}

/* ---------- contact band ---------- */
.contact { background: var(--grad-primary); color: #FFFFFF; }
.contact__wrap { padding-top: clamp(64px, 10cqi, 128px); padding-bottom: clamp(64px, 10cqi, 128px); display: flex; flex-direction: column; gap: 32px; }
.contact__title {
  font-weight: 850; font-stretch: 115%; font-size: clamp(38px, 6.6cqi, 92px);
  line-height: .92; letter-spacing: -0.03em; text-transform: uppercase; max-width: 15ch; text-wrap: balance;
}
.contact__or { color: var(--bg); }
.contact__row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.contact__btn { background: var(--bg); height: 56px; padding: 0 24px; }
.contact__btn:hover { background: var(--navy); }
.contact__email { font: 600 16px var(--mono); color: #FFFFFF; text-underline-offset: 4px; overflow-wrap: anywhere; }
.contact__email:hover { color: #FFFFFF; text-decoration-thickness: 2px; }

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none !important; }
}
