/* Eregion site. Same tokens as the app (web_app/tokens.css): Night by default, Day is parchment.
   Layout: a single winding road carries the reader from the hero, through five stations,
   into the workspace and the download. */
:root {
  color-scheme: dark;
  --bg: #0c1311;
  --bg-2: #0f1815;
  --raised: #121b18;
  --soft: #16211d;
  --ink: #e4ece7;
  --ink-2: #bccac2;
  --muted: #83948b;
  --faint: #56665e;
  --line: rgba(214, 230, 220, .10);
  --line-strong: rgba(214, 230, 220, .18);
  --primary: #e4ece7;
  --on-primary: #0c1311;
  --holly: #7fb08e;
  --holly-soft: rgba(127, 176, 142, .14);
  --signal: #f0874f;
  --gold: #d9b86a;
  --glow: rgba(111, 159, 125, .16);
  --shot-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(214, 230, 220, .12);
  --show-night: block;
  --show-day: none;
  --serif: "EB Garamond", Garamond, Georgia, serif;
  --map: "IM Fell English SC", "EB Garamond", Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --radius: 4px;
  --wrap: 1180px;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f1ede3; --bg-2: #ece7db; --raised: #f8f5ee; --soft: #e9e3d6;
    --ink: #1b2420; --ink-2: #3b4842; --muted: #6c776f; --faint: #a3aaa2;
    --line: rgba(40, 52, 46, .11); --line-strong: rgba(40, 52, 46, .2);
    --primary: #1b2420; --on-primary: #f8f5ee;
    --holly: #3d6a4a; --holly-soft: rgba(61, 106, 74, .12);
    --signal: #c0532a; --gold: #9a7428; --glow: rgba(61, 106, 74, .10);
    --shot-shadow: 0 30px 70px rgba(60, 50, 30, .18), 0 0 0 1px rgba(40, 52, 46, .14);
    --show-night: none; --show-day: block;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f1ede3; --bg-2: #ece7db; --raised: #f8f5ee; --soft: #e9e3d6;
  --ink: #1b2420; --ink-2: #3b4842; --muted: #6c776f; --faint: #a3aaa2;
  --line: rgba(40, 52, 46, .11); --line-strong: rgba(40, 52, 46, .2);
  --primary: #1b2420; --on-primary: #f8f5ee;
  --holly: #3d6a4a; --holly-soft: rgba(61, 106, 74, .12);
  --signal: #c0532a; --gold: #9a7428; --glow: rgba(61, 106, 74, .10);
  --shot-shadow: 0 30px 70px rgba(60, 50, 30, .18), 0 0 0 1px rgba(40, 52, 46, .14);
  --show-night: none; --show-day: block;
}

*, *::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.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
code { font: 400 .88em/1.5 var(--mono); }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
.sprite { display: none; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mark { width: 28px; height: 28px; color: var(--holly); }
.mark .berries { fill: var(--signal); }
.mark.big { width: 56px; height: 56px; }
.for-night { display: var(--show-night); }
.for-day { display: var(--show-day); }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
:focus-visible { outline: 2px solid var(--holly); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--primary); color: var(--on-primary); padding: 8px 14px; z-index: 20; }
.skip:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 400 15px/1.2 var(--map); letter-spacing: .14em; text-transform: lowercase;
  color: var(--holly);
}
.eyebrow .i { width: 17px; height: 17px; }
.fine { font-size: 13.5px; color: var(--muted); }
.center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font: 500 15px/1 var(--sans); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--holly); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }

/* Nav */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand span { font: 400 21px/1 var(--map); letter-spacing: .2em; text-transform: uppercase; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; }
.nav-links a:hover { color: var(--ink); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.theme-toggle { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line-strong); border-radius: 999px; }
.theme-toggle button {
  width: 32px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted); cursor: pointer;
}
.theme-toggle button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle button[aria-pressed="true"] { background: var(--soft); color: var(--ink); box-shadow: 0 0 0 1px var(--line-strong); }

/* Hero */
.hero { position: relative; padding-block: 72px 56px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto 30%; height: 760px; pointer-events: none;
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 { font: 400 clamp(44px, 5.6vw, 76px)/1.02 var(--serif); letter-spacing: -.012em; }
.hero h1 em { color: var(--holly); font-style: italic; }
.lede { font-size: 18px; line-height: 1.65; color: var(--ink-2); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-shot { position: relative; margin: 0; padding-bottom: 40px; min-width: 0; }
.window { position: relative; border-radius: 10px; overflow: hidden; background: var(--raised); box-shadow: var(--shot-shadow); }
.window-bar { display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px; background: var(--soft); border-bottom: 1px solid var(--line); }
.window-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.window-bar span { margin-left: 12px; font: 400 11.5px/1 var(--mono); color: var(--muted); }
.phone {
  position: absolute; right: -18px; bottom: 0; width: 26%; max-width: 190px;
  border-radius: 26px; overflow: hidden; border: 6px solid var(--soft); background: var(--bg);
  box-shadow: var(--shot-shadow);
}
.phone img { aspect-ratio: 390 / 600; object-fit: cover; object-position: top; }

/* Asks */
.asks { border-block: 1px solid var(--line); background: var(--bg-2); }
.asks-row { display: flex; align-items: baseline; gap: 32px; padding-block: 22px; }
.asks-label { font: 400 15px/1.3 var(--map); letter-spacing: .12em; text-transform: lowercase; color: var(--muted); white-space: nowrap; }
.asks ul { list-style: none; display: flex; gap: 32px; min-width: 0; }
.asks li { font: italic 400 17px/1.45 var(--serif); color: var(--ink-2); }

/* Section heads */
section { scroll-margin-top: 80px; }
.sec-head { display: grid; gap: 14px; max-width: 640px; }
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.sec-head h2 { font: 400 clamp(34px, 4vw, 50px)/1.08 var(--serif); }
.sec-head p:not(.eyebrow) { color: var(--ink-2); font-size: 17px; }

/* The Road */
.road { padding-block: 112px 72px; }
.road-map { position: relative; height: 470px; margin-top: -24px; }
.road-line { position: absolute; left: 0; right: 0; top: 130px; width: 100%; height: 250px; overflow: visible; }
.road-line path { fill: none; vector-effect: non-scaling-stroke; }
.road-line .ahead { stroke: var(--line-strong); stroke-width: 2; stroke-dasharray: 3 6; }
.road-line .travelled { stroke: var(--holly); stroke-width: 2.4; }
.road-line circle { fill: var(--bg); stroke: var(--holly); stroke-width: 2.4; vector-effect: non-scaling-stroke; }
.road-line .star { stroke: var(--gold); stroke-width: 2; stroke-linecap: round; }
.stations { list-style: none; counter-reset: st; }
.stations li { position: absolute; left: var(--x); width: 210px; transform: translateX(-50%); text-align: center; display: grid; gap: 6px; }
.stations li.below { top: calc(var(--py) + 22px); }
.stations li.above { bottom: calc(100% - var(--py) + 22px); }
.stations li.offer { transform: translateX(-80%); }
.st-name { font: 400 22px/1.2 var(--map); letter-spacing: .04em; }
.stations li.offer .st-name { color: var(--gold); }
.stations p { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* Shared lists */
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--holly); box-shadow: 0 0 0 4px var(--holly-soft); }
.forge-steps { display: grid; gap: 0; border-left: 2px solid var(--holly); margin-left: 5px; }
.forge-steps div { position: relative; padding: 0 0 14px 22px; }
.forge-steps div:last-child { padding-bottom: 0; }
.forge-steps div::before { content: ""; position: absolute; left: -7px; top: .5em; width: 12px; height: 12px; border-radius: 50%; background: var(--holly); }
.forge-steps div:nth-child(2)::before { background: var(--signal); }
.forge-steps div:last-child::before { background: var(--gold); }
.forge-steps dt { font: 400 19px/1.3 var(--map); letter-spacing: .03em; }
.forge-steps dd { font-size: 14.5px; color: var(--muted); }

/* Jev speed */
.speed { padding-block: 104px; border-top: 1px solid var(--line); }
.speed-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center; }
.speed-copy { display: grid; gap: 18px; min-width: 0; }
.speed-copy h2 { font: 400 clamp(32px, 3.6vw, 46px)/1.1 var(--serif); }
.speed-copy > p:not(.eyebrow) { color: var(--ink-2); }
.speed-chart { margin: 0; padding: 26px 28px; display: grid; gap: 18px; min-width: 0; background: var(--raised); border: 1px solid var(--line); border-radius: 12px; }
.speed-chart figcaption { display: grid; gap: 2px; }
.speed-chart figcaption b { font: 400 22px/1.2 var(--serif); }
.speed-chart figcaption span { font-size: 13px; color: var(--muted); }
.bars { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px 14px; align-items: center; }
.bar-row { display: contents; }
.bar-label { font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.bar-track { display: flex; gap: 2px; height: 14px; border-left: 1px solid var(--line-strong); }
.bar { display: block; height: 100%; min-width: 3px; border-radius: 0 4px 4px 0; }
.bar.jev { background: var(--holly); }
.bar.main { background: var(--muted); border-radius: 0; }
.bar.main-range { background: repeating-linear-gradient(135deg, var(--muted) 0 2px, transparent 2px 6px); }
.bar-value { font: 400 13px/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.bar-value.strong { color: var(--ink); }
.bar-axis { display: contents; }
.ticks-row { display: flex; justify-content: space-between; font: 400 11px/1 var(--mono); color: var(--faint); margin-top: 2px; }
.ticks-row b { font-weight: 400; width: 0; white-space: nowrap; display: flex; justify-content: center; }
.ticks-row b:first-child { justify-content: flex-start; }
.speed-chart .fine a { color: var(--holly); }
.steps li > * { grid-column: 2; }
.steps .opt { font-size: 14.5px; color: var(--muted); margin-top: 6px; }

/* Local */
.local { padding-block: 112px; }
.results, .tested { border-top: 1px solid var(--line); }
.results .text-link, .tested .text-link { justify-self: start; }
.local-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 64px; align-items: start; }
.pledges { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 40px; }
.pledges li { display: flex; gap: 16px; }
.pledges .i { width: 24px; height: 24px; color: var(--holly); margin-top: 2px; }
.pledges h4 { font: 500 17px/1.3 var(--sans); margin-bottom: 6px; }
.pledges p { font-size: 14.5px; color: var(--muted); }

/* Install */
.install { padding-block: 112px; background: var(--bg-2); border-top: 1px solid var(--line); }
.install .wrap { display: grid; gap: 36px; max-width: 920px; }
.dl-card { border: 1px solid var(--line-strong); border-radius: 12px; background: var(--raised); overflow: hidden; }
.dl-main { display: flex; align-items: center; gap: 20px; padding: 26px 28px; flex-wrap: wrap; }
.dl-main > div { flex: 1 1 260px; min-width: 0; display: grid; gap: 4px; }
.dl-main h3 { font: 400 28px/1.15 var(--serif); }
.dl-main p { font-size: 14px; color: var(--muted); }
.dl-alt { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 28px; border-top: 1px solid var(--line); background: var(--soft); }
.dl-alt > span { font-size: 13.5px; color: var(--muted); }
.cmd { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 320px; }
.cmd code { overflow-x: auto; white-space: nowrap; min-width: 0; color: var(--ink-2); }
.cmd.block { display: block; }
.cmd pre { margin: 0; padding: 16px 52px 16px 18px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; }
.cmd pre code { white-space: pre; display: block; color: var(--ink); }
.copy {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none;
  border: 1px solid var(--line-strong); border-radius: 8px; background: var(--raised); color: var(--muted); cursor: pointer;
}
.copy:hover { color: var(--ink); }
.copy.done { color: var(--holly); border-color: var(--holly); }
.cmd.block .copy { position: absolute; top: 9px; right: 9px; }
.os-tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line-strong); border-radius: 999px; justify-self: start; }
.os-tabs button { border: 0; background: transparent; color: var(--muted); font: 500 14px/1 var(--sans); padding: 10px 18px; border-radius: 999px; cursor: pointer; }
.os-tabs button[aria-selected="true"] { background: var(--primary); color: var(--on-primary); }
.steps { list-style: none; counter-reset: step; display: grid; gap: 28px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px 18px; }
.steps li::before {
  content: counter(step); grid-row: span 2; width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--holly); border-radius: 50%; color: var(--holly); font: 400 20px/1 var(--serif);
}
.step-copy { display: grid; gap: 4px; align-self: center; }
.step-copy h4 { font: 500 17px/1.35 var(--sans); }
.step-copy p { font-size: 14.5px; color: var(--muted); }
.step-copy code, .dl-main code { padding: 1px 6px; border-radius: 4px; background: var(--soft); color: var(--ink-2); }
.steps a, .fine a { color: var(--holly); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 40px 56px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.footer-brand { display: grid; gap: 8px; }
.footer-brand p { font: italic 400 16px/1.4 var(--serif); color: var(--muted); }
.footer-brand .legal { font: 400 13px/1.5 var(--sans); }
.footer-brand .legal a { color: var(--holly); }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer-links a { color: var(--ink-2); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--holly); }

/* Navigation state and links */
.nav-links a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--holly); padding-bottom: 4px; }
.st-name { text-decoration: none; color: var(--ink); }
a.st-name:hover { color: var(--holly); }
.stations li.offer a.st-name { color: var(--gold); }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--holly); text-decoration: none; font-weight: 500; }
.text-link:hover { text-decoration: underline; }
.btn .i:last-child:not(:first-child) { margin-left: -2px; }

/* Home: screen tiles */
.screens { padding-block: 40px 104px; }
.tiles { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 40px; }
.tiles a { display: grid; gap: 10px; text-decoration: none; }
.tiles .window { margin-bottom: 8px; transition: transform .2s ease; }
.tiles a:hover .window { transform: translateY(-3px); }
.tiles h3 { display: flex; align-items: center; gap: 8px; font: 400 22px/1.2 var(--map); letter-spacing: .03em; }
.tiles h3 .i { color: var(--holly); }
.tiles p { font-size: 14.5px; color: var(--muted); }
.needs-row { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; font-size: 14.5px; color: var(--muted); }
.needs-row b { color: var(--ink); font-weight: 500; }

/* Guide and docs */
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-block: 40px 96px; align-items: start; }
.side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); max-height: calc(100vh - 110px); overflow-y: auto; display: grid; gap: 6px; padding-right: 8px; }
.side-group { font: 400 14px/1.2 var(--map); letter-spacing: .12em; text-transform: lowercase; color: var(--muted); margin: 14px 0 6px; }
.side-group:first-child { margin-top: 0; }
.side-group.here { color: var(--holly); }
.side ol { list-style: none; display: grid; gap: 1px; border-left: 1px solid var(--line); }
.side a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 14.5px; }
.side a:hover { color: var(--ink); }
.side a.on { color: var(--ink); border-left-color: var(--holly); font-weight: 500; }
.side-toggle { display: none; }
.pager-nav { display: none; }
.paged .pager-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager-nav a { display: grid; gap: 2px; padding: 14px 18px; border: 1px solid var(--line-strong); border-radius: 10px; text-decoration: none; transition: border-color .15s ease; }
.pager-nav a:hover { border-color: var(--holly); }
.pager-nav a.next { text-align: right; grid-column: 2; }
.pager-nav small { font-size: 12.5px; color: var(--muted); }
.pager-nav b { font: 400 19px/1.3 var(--serif); color: var(--ink); }
.pager-nav a.prev b::before { content: "\2190  "; color: var(--holly); }
.pager-nav a.next b::after { content: "  \2192"; color: var(--holly); }
.prose { display: grid; gap: 72px; min-width: 0; max-width: 780px; }
.prose.paged { gap: 0; }
.paged section { min-height: 60vh; align-content: start; }
.prose section { display: grid; gap: 18px; scroll-margin-top: 88px; min-width: 0; }
.prose h2 { display: flex; align-items: center; gap: 12px; font: 400 clamp(30px, 3.4vw, 42px)/1.12 var(--serif); }
.prose h2 .i { width: 24px; height: 24px; color: var(--holly); }
.prose p { color: var(--ink-2); }
.prose p a, .prose td a, .prose li a { color: var(--holly); }
.prose code { padding: 1px 6px; border-radius: 4px; background: var(--soft); color: var(--ink-2); }
.prose pre code { padding: 0; background: none; border-radius: 0; color: var(--ink); }
.mini-title { font: 400 15px/1.2 var(--map) !important; letter-spacing: .12em; text-transform: lowercase; color: var(--muted) !important; margin-top: 4px; }
.ask { margin: 0; display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); }
.ask .i { color: var(--muted); margin-top: 3px; }
.ask p { font: italic 400 18px/1.45 var(--serif); color: var(--ink) !important; }
.callout { padding: 14px 18px; border-left: 3px solid var(--holly); background: var(--holly-soft); border-radius: 0 8px 8px 0; color: var(--ink-2); font-size: 15px; }
.callout b { color: var(--ink); }
.callout.warn { border-left-color: var(--signal); background: color-mix(in srgb, var(--signal) 10%, transparent); }
.shot { margin: 4px 0; }
.num { padding-left: 22px; display: grid; gap: 6px; color: var(--ink-2); }
.code { margin: 0; padding: 16px 18px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; }
.code code { padding: 0; background: none; white-space: pre; color: var(--ink); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-wrap th { text-align: left; font-weight: 500; color: var(--muted); background: var(--soft); padding: 10px 14px; white-space: nowrap; }
.table-wrap td { padding: 10px 14px; border-top: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
.table-wrap td:first-child { color: var(--ink); white-space: nowrap; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; }
.facts dt { font-weight: 500; margin-bottom: 2px; }
.facts dd { font-size: 14.5px; color: var(--muted); }

/* Example reply */
.demo-chat { display: grid; gap: 12px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); }
.demo-who { display: flex; align-items: center; gap: 8px; font: 400 15px/1 var(--map) !important; letter-spacing: .14em; color: var(--holly) !important; }
.demo-who .i { width: 14px; height: 14px; }
.demo-card { display: flex; gap: 22px; padding: 18px; border: 1px solid var(--line-strong); border-radius: 8px; flex-wrap: wrap; }
.demo-score b { font: 400 54px/1 var(--serif); color: var(--ink); }
.demo-score small { font: 400 15px/1 var(--serif); color: var(--muted); vertical-align: super; margin-left: 2px; }
.demo-detail { flex: 1 1 240px; display: grid; gap: 10px; min-width: 0; }
.demo-title { font: 400 21px/1.2 var(--serif) !important; color: var(--ink) !important; }
.demo-title span { display: block; font: 400 14px/1.5 var(--sans); color: var(--muted); }
.demo-ev { list-style: none; display: grid; gap: 6px; font-size: 14.5px; }
.demo-ev li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; color: var(--ink); }
.demo-ev li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; transform: translateY(-1px); }
.demo-ev .ok::before { background: var(--holly); }
.demo-ev .gap::before { background: var(--signal); }
.demo-ev small { color: var(--muted); font-size: 13px; }

/* Flow: who does each step */
.flow { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; position: relative; }
.flow li { position: relative; display: grid; align-content: start; gap: 4px; padding: 30px 14px 0 0; }
.flow li::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 2px; background: var(--holly); }
.flow li::after { content: ""; position: absolute; top: 3px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--holly); }
.flow li.you::before { background: repeating-linear-gradient(90deg, var(--signal) 0 6px, transparent 6px 10px); }
.flow li.you::after { border-color: var(--signal); background: var(--signal); }
.flow li:last-child::before { right: auto; width: 14px; }
.flow .who { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.flow li.you .who { color: var(--signal); }
.flow b { font: 400 19px/1.2 var(--map); letter-spacing: .03em; }
.flow li > span:last-child { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.flow-legend { display: flex; gap: 20px; font-size: 13px; color: var(--muted) !important; }
.flow-legend .k { display: inline-flex; align-items: center; gap: 8px; }
.flow-legend .k::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--holly); }
.flow-legend .k.you::before { border-color: var(--signal); background: var(--signal); }

/* Architecture */
.arch { display: grid; justify-items: center; gap: 0; padding: 24px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); }
.arch-row { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.arch-down { width: 2px; height: 22px; background: var(--line-strong); }
.arch-arrow { width: 22px; height: 2px; background: var(--line-strong); }
.node { padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13.5px; color: var(--ink-2); background: var(--bg); white-space: nowrap; }
.node.core { border-color: var(--holly); color: var(--ink); }
.node.model { border-color: var(--gold); color: var(--gold); }
.node.in { border-style: dashed; }
.node.out { background: var(--soft); }

/* Site menu drawer */
.menu-btn { display: grid; width: 40px; height: 40px; place-items: center; margin-left: -8px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer; }
.menu-btn:hover { background: var(--soft); }
.drawer-scrim:not([hidden]) { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .45); }
.drawer {
  position: fixed; z-index: 41; top: 0; bottom: 0; left: 0; width: min(86vw, 330px); overflow-y: auto;
  display: grid; align-content: start; gap: 4px;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) 18px calc(env(safe-area-inset-bottom, 0px) + 28px);
  background: var(--bg); border-right: 1px solid var(--line-strong); box-shadow: 0 0 60px rgba(0, 0, 0, .35);
  transform: translateX(-105%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s;
}
.drawer.open { transform: none; visibility: visible; transition: transform .25s ease; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.drawer-close { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.drawer-close:hover { color: var(--ink); background: var(--soft); }
.drawer-page { display: flex; align-items: center; gap: 12px; padding: 10px 8px; margin-top: 8px; border-radius: 8px; text-decoration: none; color: var(--ink); font: 400 20px/1.2 var(--serif); }
.drawer-page .i { color: var(--holly); }
.drawer-page[aria-current="page"] { background: var(--soft); }
.drawer-sub { list-style: none; display: grid; gap: 1px; margin: 2px 0 4px 17px; border-left: 1px solid var(--line); }
.drawer-sub a { display: block; padding: 6px 0 6px 18px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 14.5px; }
.drawer-sub a:hover { color: var(--ink); }
.drawer-sub a.on { color: var(--ink); border-left-color: var(--holly); font-weight: 500; }
body.menu-open { overflow: hidden; }

/* Responsive */
@media (max-width: 1040px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 16px; }
  .side-toggle {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 16px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 76px); z-index: 6;
    border: 1px solid var(--line-strong); border-radius: 10px; background: var(--raised); color: var(--ink); font: 500 14.5px/1.2 var(--sans); cursor: pointer; text-align: left;
  }
  .side-toggle .i { color: var(--holly); }
  .side-toggle-label { color: var(--muted); font-weight: 400; }
  .side-current::before { content: "\00B7"; margin-right: 10px; color: var(--faint); }
  .side-current:empty { display: none; }
  .side { display: none; }
  .paged section { min-height: 0; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: minmax(0, 1fr); gap: 18px; border-left: 2px solid var(--holly); margin-left: 7px; }
  .flow li { padding: 0 0 0 22px; }
  .flow li::before { display: none; }
  .flow li::after { top: 2px; left: -8px; }
  .nav-links { display: none; }
  .hero-grid, .local-grid, .speed-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .asks ul { flex-direction: column; gap: 6px; }
  .phone { right: 8px; }
  /* The road turns vertical: one dashed trail with stations hanging off it. */
  .road-map { height: auto; margin-top: 36px; }
  .road-line { display: none; }
  .stations { display: grid; gap: 0; border-left: 2px dashed var(--line-strong); margin-left: 8px; }
  .stations li, .stations li.offer, .stations li.below, .stations li.above { position: relative; left: auto; top: auto; bottom: auto; width: auto; transform: none; text-align: left; padding: 0 0 26px 28px; }
  .stations li:last-child { padding-bottom: 0; }
  .stations li::before { content: ""; position: absolute; left: -9px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2.4px solid var(--holly); }
  .stations li.offer::before { border-color: var(--gold); background: var(--gold); }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  .hide-sm { display: none; }
  .hero { padding-block: 44px 32px; }
  .lede { font-size: 16.5px; }
  .asks-row { flex-direction: column; gap: 10px; }
  .road, .local, .install, .screens, .speed { padding-block: 72px; }
  .speed-chart { padding: 20px 16px; }
  .bars { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .bar-label { grid-column: 1 / -1; white-space: normal; margin-top: 6px; }
  .bar-axis > span:first-child, .bar-axis > span:last-child { display: none; }
  .pledges, .facts, .tiles { grid-template-columns: minmax(0, 1fr); }
    .dl-main, .dl-alt { padding-inline: 18px; }
  .phone { width: 32%; }
  .os-tabs { justify-self: stretch; }
  .os-tabs button { flex: 1; padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .drawer { transition: none !important; }
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
