/* Fancy Companion's site. Light first, dark by the system or the toggle (theme.js sets
   data-theme on <html>). Three faces: DotGothic16 for headings, the system sans for
   reading, IBM Plex Mono for labels and the terminal. Flat, thin rules, small radii.
   The places of the demo's clips (--w, --r, --stage-w) are appended by build.mjs from
   footage.json, so no element needs a style attribute. */

@font-face { font-family: "DotGothic16"; src: url("/assets/fonts/dotgothic16-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #faf9f5;
  --sheet: #ffffff;
  --desk: #efede6;
  --ink: #1a1c1e;
  --muted: #5a6067;
  --line: #d8d5cc;
  --line-soft: #e8e5dd;
  --accent: #0a6a60;
  --accent-soft: #dff1ec;
  --warn: #8a4b00;
  --warn-soft: #fbf0dc;
  --term-bg: #17191c;
  --term-line: #17191c;
  --term-ink: #dfe3e6;
  --term-dim: #8b939b;
  --term-ok: #7ddba9;
  --term-err: #ff9c94;
  --term-agent: #7fd9cd;
  --f-display: "DotGothic16", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --f-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #121416; --sheet: #181b1e; --desk: #1d2023; --ink: #ecebe6; --muted: #a2a8ae;
    --line: #30353a; --line-soft: #24282c; --accent: #66d6c7; --accent-soft: #15312d;
    --warn: #f0b667; --warn-soft: #33270f; --term-bg: #0b0c0e; --term-line: #30353a;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #121416; --sheet: #181b1e; --desk: #1d2023; --ink: #ecebe6; --muted: #a2a8ae;
  --line: #30353a; --line-soft: #24282c; --accent: #66d6c7; --accent-soft: #15312d;
  --warn: #f0b667; --warn-soft: #33270f; --term-bg: #0b0c0e; --term-line: #30353a;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img, video, svg { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
h1, h2 { font-family: var(--f-display); font-weight: 400; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.3vw, 2.85rem); line-height: 1.14; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.1rem); line-height: 1.2; }
h3 { font-size: 1.06rem; line-height: 1.35; font-weight: 650; }
code, kbd { font-family: var(--f-mono); font-size: 0.88em; }
code { background: var(--line-soft); padding: 1px 5px; border-radius: 3px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
@media (min-width: 720px) { .wrap { padding-left: 32px; padding-right: 32px; } }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 3px; }
.skip:focus { top: 12px; }
main:focus { outline: none; }

.label { font: 400 0.76rem/1.4 var(--f-mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.fine { font-size: 0.9rem; color: var(--muted); }

/* ---------- buttons ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.4em; min-height: 46px; padding: 0.6em 1.15em; border: 1px solid var(--ink); border-radius: 3px; background: var(--ink); color: var(--paper); font: 600 1rem/1.2 var(--f-body); text-decoration: none; cursor: pointer; }
.button:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.button.quiet { background: transparent; color: var(--ink); }
.button.quiet:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.button.small { min-height: 36px; padding: 0.35em 0.85em; font-size: 0.92rem; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 18px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 400 1.12rem/1 var(--f-display); white-space: nowrap; }
.mark { width: 26px; height: 26px; flex: none; }
.mark-ears { fill: var(--accent); }
.mark-screen { fill: var(--ink); }
.mark-prompt { fill: none; stroke: var(--paper); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 22px; list-style: none; padding: 0; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover { text-decoration: underline; }
.theme-toggle { width: 36px; height: 36px; display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 3px; background: transparent; color: var(--ink); cursor: pointer; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle circle { fill: none; stroke: currentColor; stroke-width: 1.5; }
.theme-toggle .half { fill: currentColor; }
@media (max-width: 860px) {
  .site-nav { display: none; }
  .theme-toggle { margin-left: auto; }
}
@media (max-width: 400px) { .head-row { gap: 10px; } .brand { font-size: 1rem; gap: 8px; } }

/* ---------- hero ---------- */
.hero { padding: 36px 0 52px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; } .hero { padding: 64px 0 72px; } }
.hero-text > * + * { margin-top: 18px; }
.lede { font-size: 1.16rem; line-height: 1.55; max-width: 34em; }
.not-list { list-style: none; padding: 0; display: grid; gap: 4px; font: 400 0.86rem/1.5 var(--f-mono); color: var(--muted); }
.not-list li::before { content: "– "; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }
.under-actions { margin-top: 12px; }

/* ---------- the demo ---------- */
.demo { min-width: 0; }
.scene { position: relative; height: 470px; border: 1px solid var(--line); border-radius: 4px; background: var(--desk); overflow: hidden; }
.term { position: absolute; left: 18px; top: 18px; right: 96px; bottom: 96px; display: flex; flex-direction: column; background: var(--term-bg); border: 1px solid var(--term-line); border-radius: 6px; color: var(--term-ink); font: 400 13px/1.55 var(--f-mono); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 12px; height: 30px; padding: 0 12px; border-bottom: 1px solid #2c3035; color: var(--term-dim); font-size: 11.5px; flex: none; }
.term-tab { color: var(--term-ink); }
.term-title { margin-left: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term-body { flex: 1; min-height: 0; padding: 10px 14px 12px; display: flex; flex-direction: column; justify-content: flex-start; overflow: hidden; }
.t-line { white-space: pre-wrap; word-break: break-all; min-height: 1.55em; }
.t-mark { color: var(--term-agent); }
.t-dim { color: var(--term-dim); }
.t-ok { color: var(--term-ok); }
.t-err { color: var(--term-err); }
.t-agent { color: var(--term-agent); }
.t-cursor { display: inline-block; width: 0.6em; height: 1.05em; vertical-align: -0.18em; background: var(--term-ink); }
/* build.mjs lowers each stage by the empty room its clips keep under the feet, so the characters stand on the edge. */
.stage { position: absolute; right: 10px; bottom: 30px; width: min(calc(var(--stage-w) * 1.25px), calc(100% - 20px)); pointer-events: none; }
.clip { position: absolute; bottom: 0; right: calc(var(--r) / var(--stage-w) * 100%); width: calc(var(--w) / var(--stage-w) * 100%); height: auto; display: block; }
.edge { position: absolute; left: 0; right: 0; bottom: 0; height: 30px; display: flex; align-items: center; padding: 0 14px; border-top: 1px solid var(--ink); background: var(--paper); font: 400 11px/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
/* the mouse pointer of a clip; site.js moves it (left, top) and presses it (.is-down) */
.pointer { position: absolute; left: 0; top: 0; width: 20px; height: 24px; max-width: none; margin: -2px 0 0 -3px; overflow: visible; z-index: 2; }
.pointer path { fill: #1a1c1e; stroke: #ffffff; stroke-width: 1.4; stroke-linejoin: round; }
.pointer-ring { fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.pointer.is-down path { transform: scale(0.9); transform-box: fill-box; transform-origin: 15% 8%; }
.pointer.is-down .pointer-ring { opacity: 0.9; }
/* The menu the right button opens: a plain system menu. It is sized in the stage's own points
   (--pt: one point of the clip, however wide the stage is drawn), so the rows stay where the
   clip's pointer goes; site.js puts it (right, top) and opens its sizes. */
.stage { container-type: inline-size; }
.ctx { position: absolute; inset: 0; z-index: 1; --pt: calc(100cqw / var(--stage-w)); font: 400 calc(12 * var(--pt)) / calc(var(--ctx-row) * var(--pt)) "Segoe UI", system-ui, -apple-system, sans-serif; color: #1b1b1b; }
.ctx-menu { position: absolute; width: calc(var(--ctx-width) * var(--pt)); padding: calc(var(--ctx-pad) * var(--pt)) 0; background: #f9f9f9; border-radius: calc(8 * var(--pt)); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.16), 0 calc(6 * var(--pt)) calc(16 * var(--pt)) rgba(0, 0, 0, 0.22); white-space: nowrap; }
.ctx-row { display: flex; align-items: center; height: calc(var(--ctx-row) * var(--pt)); padding: 0 calc(var(--ctx-inset) * var(--pt)); }
.ctx-title { color: #8a8a8a; }
/* The size slider as win/menu.rs draws it: the knob's centre goes from the inset plus a knob's
   radius to the percent's gap less one; --k is how far along it is (site.js). */
.ctx-slider { --knob: calc(var(--ctx-knob) * var(--pt)); --along: calc(var(--knob) + var(--k, 0.25) * (100% - 2 * var(--knob))); display: flex; align-items: center; height: calc(var(--ctx-slider) * var(--pt)); padding: 0 calc(var(--ctx-inset) * var(--pt)); }
.ctx-track { position: relative; flex: 1; align-self: stretch; margin-right: calc(var(--ctx-gap) * var(--pt)); }
.ctx-track::before, .ctx-fill { content: ""; position: absolute; top: 50%; left: calc(var(--knob) - var(--ctx-track) / 2 * var(--pt)); height: calc(var(--ctx-track) * var(--pt)); border-radius: calc(var(--ctx-track) / 2 * var(--pt)); transform: translateY(-50%); }
.ctx-track::before { right: calc(var(--knob) - var(--ctx-track) / 2 * var(--pt)); background: #8a8a8a; }
.ctx-fill { width: calc(var(--along) - var(--knob) + var(--ctx-track) / 2 * var(--pt)); background: #0078d4; }
.ctx-knob { position: absolute; top: 50%; left: var(--along); width: calc(2 * var(--knob)); height: calc(2 * var(--knob)); border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px #ccc; transform: translate(-50%, -50%); }
.ctx-knob::after { content: ""; position: absolute; inset: 0; margin: auto; width: 62.5%; height: 62.5%; border-radius: 50%; background: #0078d4; }
.ctx-percent { width: calc(var(--ctx-percent) * var(--pt)); text-align: right; }
.ctx-sep { height: 1px; margin: calc((var(--ctx-sep) - 1) / 2 * var(--pt)) calc(var(--ctx-pad) * var(--pt)); background: #e0e0e0; }
/* an ordinary window: a title bar, a list at the side, lines of text */
.win { position: absolute; left: 18px; top: 18px; right: 96px; bottom: 96px; display: flex; flex-direction: column; background: var(--sheet); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 12px; height: 30px; padding: 0 12px; border-bottom: 1px solid var(--line); color: var(--muted); font: 400 11.5px/1 var(--f-mono); flex: none; }
.win-dots { display: inline-flex; gap: 5px; }
.win-dots i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--line); }
.win-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 26% minmax(0, 1fr); }
.win-side { padding: 16px 12px; border-right: 1px solid var(--line-soft); display: grid; gap: 12px; align-content: start; }
.win-page { padding: 18px 20px; display: grid; gap: 11px; align-content: start; }
.bar { display: block; height: 8px; border-radius: 2px; background: var(--line-soft); }
.bar.head { height: 14px; width: 46%; background: var(--line); margin-bottom: 6px; }
.bar.gap { background: none; height: 4px; }
.bar.b0 { width: 92%; } .bar.b1 { width: 78%; } .bar.b2 { width: 86%; } .bar.b3 { width: 64%; } .bar.b4 { width: 81%; }
.demo-controls { display: flex; align-items: flex-end; gap: 12px; margin-top: 14px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 2px; flex-wrap: wrap; }
.tabs button { appearance: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: var(--muted); font: 400 0.84rem/1.2 var(--f-mono); padding: 10px 12px; min-height: 44px; cursor: pointer; }
.tabs button:first-child { padding-left: 0; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.pause { margin-left: auto; appearance: none; border: 0; background: none; color: var(--muted); font: 400 0.84rem/1.2 var(--f-mono); padding: 10px 0; min-height: 44px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pause:hover { color: var(--ink); }
.caption { margin-top: 12px; min-height: 3.1em; font-size: 0.98rem; color: var(--ink); }
@media (max-width: 560px) {
  .scene { height: 410px; }
  .term, .win { left: 10px; top: 10px; right: 10px; bottom: 170px; }
  .term { font-size: 12px; }
  .stage { right: 0; width: min(calc(var(--stage-w) * 0.9px), 100%); }
  .tabs button { padding: 10px 9px; }
}

/* a demo beside its explanation */
.beside { display: grid; gap: 28px; align-items: center; }
@media (min-width: 1000px) { .beside { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; } .beside .section-head { margin-bottom: 0; } }
.beside .demo-controls { min-height: 45px; }
.points { list-style: none; padding: 0; margin-top: 20px; border-top: 1px solid var(--ink); }
.points li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.98rem; }
.points strong { font-weight: 650; }

/* ---------- sections ---------- */
.section { padding: 64px 0; border-bottom: 1px solid var(--line); }
.section-head { max-width: 44em; margin-bottom: 30px; }
.section-head > * + * { margin-top: 12px; }
.section-head p { color: var(--muted); }
@media (max-width: 560px) { .section { padding: 48px 0; } }

/* ruled tables, like a statement */
.table-scroll { overflow-x: auto; }
.ruled { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.ruled th, .ruled td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); }
.ruled thead th { font: 400 0.74rem/1.4 var(--f-mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--ink); padding-bottom: 8px; }
.ruled tbody th { font-weight: 600; width: 34%; }
.ruled td:last-child, .ruled th:last-child { padding-right: 0; }
.ruled .group th { padding-top: 26px; font: 400 0.74rem/1.4 var(--f-mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent); border-bottom-color: var(--line); }
.ruled .no { color: var(--muted); }
@media (max-width: 620px) {
  .ruled.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ruled.stack tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .ruled.stack th, .ruled.stack td { display: block; width: auto; padding: 0; border: 0; }
  .ruled.stack td { margin-top: 4px; }
  .ruled.stack td[data-h]::before { content: attr(data-h) ": "; font: 400 0.72rem/1.4 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
  .ruled.stack .group { border-bottom: 0; padding-bottom: 0; }
  .ruled.stack .group th { padding-top: 14px; }
}

/* three plain statements */
.plain3 { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.plain3 > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.plain3 h3 { margin-bottom: 6px; }
.plain3 p { color: var(--muted); font-size: 0.98rem; }
@media (min-width: 800px) {
  .plain3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plain3 > div { padding: 20px 28px 22px 0; border-bottom: 0; }
  .plain3 > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
}

/* ---------- characters ---------- */
.characters { display: grid; gap: 20px; }
@media (min-width: 800px) { .characters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.character { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 20px; align-items: end; padding: 20px 20px 0; border: 1px solid var(--line); border-radius: 4px; background: var(--sheet); }
.portrait { align-self: end; height: 330px; display: flex; align-items: flex-end; justify-content: center; }
.portrait img { height: 100%; width: auto; max-width: none; display: block; }
.character-text { align-self: start; padding-bottom: 20px; }
.character-text > * + * { margin-top: 8px; }
.tag { font: 400 0.74rem/1.4 var(--f-mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent); }
.character h3 { font: 400 1.5rem/1.2 var(--f-display); }
.character-text > p:not(.tag) { font-size: 0.96rem; color: var(--muted); }
.outfits { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.outfits legend { padding: 0; margin-bottom: 6px; font: 400 0.74rem/1.4 var(--f-mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.outfits label { position: relative; cursor: pointer; }
.outfits input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.outfits span { display: block; padding: 7px 10px; border: 1px solid var(--line); border-radius: 3px; font-size: 0.86rem; line-height: 1.2; }
.outfits input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.outfits input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 420px) { .character { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; padding: 16px 14px 0; } .portrait { height: 270px; } }

.sub { margin-top: 44px; }
.sub > h3 { font: 400 1.25rem/1.25 var(--f-display); margin-bottom: 6px; }
.sub > p { color: var(--muted); max-width: 44em; }
.packs { list-style: none; padding: 0; margin: 16px 0 0; border-top: 1px solid var(--ink); }
.pack { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pack p { color: var(--muted); font-size: 0.96rem; }
.soon { flex: none; font: 400 0.76rem/1.4 var(--f-mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.buy { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.once { font: 400 0.76rem/1.4 var(--f-mono); color: var(--muted); }
@media (max-width: 520px) { .pack { flex-direction: column; align-items: flex-start; gap: 8px; } .buy { align-items: flex-start; } }
.looks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); border-top: 1px solid var(--ink); }
.looks li { padding: 10px 0; border-bottom: 1px solid var(--line); font: 400 0.9rem/1.4 var(--f-mono); }
.looks li::before { content: "⌨ "; color: var(--muted); font-family: var(--f-body); }

/* ---------- download ---------- */
.downloads { display: grid; gap: 20px; }
@media (min-width: 800px) { .downloads { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.download { padding: 22px; border: 1px solid var(--line); border-radius: 4px; background: var(--sheet); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.download h3 { font: 400 1.4rem/1.2 var(--f-display); }
.download p { color: var(--muted); font-size: 0.96rem; }
.download .button { margin-top: 6px; }
.download.later { background: transparent; border-style: dashed; }
.stays { margin-top: 20px; padding: 22px; border: 1px solid var(--accent); border-radius: 4px; background: var(--accent-soft); }
.stays h3 { font: 400 1.25rem/1.25 var(--f-display); margin-bottom: 10px; }
.stays ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.stays li { padding-left: 1.3em; position: relative; }
.stays li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.steps { margin-top: 36px; padding: 0; list-style: none; counter-reset: s; border-top: 1px solid var(--ink); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.4em minmax(0, 1fr); padding: 14px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); font: 400 1.2rem/1.3 var(--f-display); color: var(--accent); }
.steps strong { display: block; }
.steps span { color: var(--muted); font-size: 0.97rem; }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--ink); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 34px 16px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 13px; font: 400 1.3rem/1.2 var(--f-mono); color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 18px; max-width: 42em; color: var(--muted); }
.faq .answer > * + * { margin-top: 10px; }
.faq .answer ul { padding-left: 1.25em; display: grid; gap: 6px; }

/* ---------- notes ---------- */
.review-note { margin: 18px 0; padding: 12px 16px; border: 1px dashed var(--warn); border-radius: 3px; background: var(--warn-soft); color: var(--ink); font-size: 0.92rem; }
.draft-banner { background: var(--warn-soft); border-bottom: 1px solid var(--warn); color: var(--ink); font-size: 0.94rem; }
.draft-banner .wrap { padding-top: 10px; padding-bottom: 10px; }

/* ---------- prose pages ---------- */
.prose { max-width: 760px; padding-top: 48px; padding-bottom: 72px; }
.prose h1 { font-size: clamp(1.9rem, 4.4vw, 2.6rem); }
.prose h2 { font: 650 1.2rem/1.35 var(--f-body); letter-spacing: 0; margin-top: 36px; }
.prose h3 { margin-top: 24px; }
.prose p, .prose ul, .prose ol, .prose .table-scroll { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 6px; }
.prose .updated { color: var(--muted); font: 400 0.8rem/1.4 var(--f-mono); letter-spacing: 0.04em; }
.notice { margin: 12px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 3px; background: var(--sheet); font: 400 0.78rem/1.55 var(--f-mono); white-space: pre-wrap; overflow-x: auto; max-height: 300px; overflow-y: auto; }
.lost { padding-top: 96px; padding-bottom: 120px; }
.lost > * + * { margin-top: 16px; }

/* ---------- footer ---------- */
.site-foot { padding: 48px 0 40px; font-size: 0.94rem; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.foot-grid > div { grid-column: 1 / -1; max-width: 30em; }
.foot-grid > div > * + * { margin-top: 12px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.7fr 1fr 1fr 1.2fr; } .foot-grid > div { grid-column: auto; } }
.site-foot h2 { font: 400 0.74rem/1.4 var(--f-mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.site-foot ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.site-foot a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.site-foot a:hover { text-decoration: underline; }
.foot-base { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.84rem; }
.foot-base p + p { margin-top: 4px; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .t-cursor { animation: blink 1.1s steps(1) infinite; }
}
@keyframes blink { 50% { opacity: 0; } }

/* from footage.json */
.stage[data-stage="hero"] { --stage-w: 414; --stage-h: 278; aspect-ratio: 414 / 278; transform: translateY(8.45%); }
.stage[data-stage="desktop"] { --stage-w: 447; --stage-h: 318; aspect-ratio: 447 / 318; transform: translateY(7.39%); }
.stage[data-stage="desktop"] .ctx { --ctx-width: 240; --ctx-pad: 4; --ctx-row: 28; --ctx-slider: 34; --ctx-sep: 9; --ctx-inset: 14; --ctx-knob: 8; --ctx-track: 4; --ctx-percent: 40; --ctx-gap: 10; }
.clip[data-clip="keys"] { --w: 238; --r: 176; aspect-ratio: 238 / 258; }
.clip[data-clip="commands"] { --w: 236; --r: 176.5; aspect-ratio: 236 / 278; }
.clip[data-clip="agents"] { --w: 386; --r: 26.5; aspect-ratio: 386 / 278; }
.clip[data-clip="click"] { --w: 294; --r: 153; aspect-ratio: 294 / 318; }
.clip[data-clip="caps"] { --w: 418; --r: 0; aspect-ratio: 418 / 302; }
