@font-face { font-family: 'Barlow Semi Condensed'; font-weight: 400; font-display: swap; src: url(../fonts/barlow-semi-condensed-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Semi Condensed'; font-weight: 500; font-display: swap; src: url(../fonts/barlow-semi-condensed-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Semi Condensed'; font-weight: 600; font-display: swap; src: url(../fonts/barlow-semi-condensed-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Semi Condensed'; font-weight: 700; font-display: swap; src: url(../fonts/barlow-semi-condensed-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url(../fonts/jetbrains-mono-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-display: swap; src: url(../fonts/jetbrains-mono-latin-500-normal.woff2) format('woff2'); }

/* The desktop app's own tokens (app/src/app.css): enamel panels, brass fittings, signal lamps. */
:root {
  --panel: #18202b;
  --panel-raised: #1f2936;
  --panel-sunk: #121821;
  --lamp-rim: #0a0e14;
  --rule: #2c3846;
  --rule-strong: #3b4a5c;
  --ink: #dfe5ec;
  --ink-soft: #a3b0bf;
  --ink-faint: #7a8aa0;
  --brass: #c9a35b;
  --brass-hi: #d8b46d;
  --on-brass: #1a1408;
  --git-add: #5fcf94;
  --git-del: #f08080;
  --merged: #a483e8;
  --lamp-new: #e9eef5;
  --lamp-busy: #f0a13a;
  --lamp-permission: #ee4d4d;
  --lamp-input: #5c8ff0;
  --lamp-done: #3fbf7f;
  --lamp-off: #3a4554;
  --font-ui: 'Barlow Semi Condensed', system-ui, sans-serif;
  --font-term: 'JetBrains Mono', ui-monospace, monospace;
  --page: 1120px;
  --gutter: 24px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--panel);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 19px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration-color: var(--ink-faint); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--brass); }
:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
code, kbd, pre { font-family: var(--font-term); font-size: 0.78em; }
kbd {
  padding: 1px 6px; border: 1px solid var(--rule-strong); border-bottom-width: 2px;
  border-radius: 4px; background: var(--panel-raised); color: var(--ink); white-space: nowrap;
}
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }

/* Lamps, as the app draws them. */
.lamp {
  --c: var(--lamp-off); --size: 12px;
  display: inline-block; flex: none; width: var(--size); height: var(--size); border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 2px var(--panel-sunk), 0 0 0 3px var(--lamp-rim), 0 0 calc(var(--size) * 1.2) -2px var(--c);
}
.lamp.new { --c: var(--lamp-new); }
.lamp.busy { --c: var(--lamp-busy); }
.lamp.permission { --c: var(--lamp-permission); }
.lamp.input { --c: var(--lamp-input); }
.lamp.done { --c: var(--lamp-done); }
.lamp.off { box-shadow: 0 0 0 2px var(--panel-sunk), 0 0 0 3px var(--lamp-rim); }
.lamp.starting { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-faint), 0 0 0 2px var(--panel-sunk); }
.lamp.unseen { box-shadow: 0 0 0 2px var(--panel-sunk), 0 0 0 4px var(--c), 0 0 calc(var(--size) * 1.2) 0 var(--c); }
@media (prefers-reduced-motion: no-preference) {
  .lamp.busy { animation: working 1.6s ease-in-out infinite; }
  @keyframes working { 50% { opacity: 0.45; } }
}

/* Top bar */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 21px; letter-spacing: 0.01em; text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.top nav { display: flex; gap: 22px; margin-left: auto; font-size: 17px; }
.top nav a { color: var(--ink-soft); text-decoration: none; }
.top nav a:hover { color: var(--ink); }
.button {
  display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 5px;
  border: 1px solid var(--rule-strong); background: var(--panel-raised); color: var(--ink);
  font: inherit; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.button:hover { border-color: var(--ink-faint); }
.button.primary { background: var(--brass); border-color: var(--brass); color: var(--on-brass); }
.button.primary:hover { background: var(--brass-hi); border-color: var(--brass-hi); }
.top .button { height: 36px; padding: 0 14px; font-size: 17px; }
@media (max-width: 820px) { .top nav { display: none; } .top .button { margin-left: auto; } }

/* Hero */
.hero { padding: 72px 0 0; }
.hero h1 {
  font-size: clamp(44px, 7.4vw, 92px); line-height: 0.98; font-weight: 700; letter-spacing: -0.012em;
  max-width: 13ch; text-wrap: balance;
}
.hero .lede { margin-top: 24px; max-width: 58ch; font-size: clamp(19px, 2vw, 23px); color: var(--ink-soft); }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 32px; }
.hero .actions small { font-size: 17px; color: var(--ink-faint); }

/* The yard: one siding per session, all joining main. */
.yard-frame { margin-top: 56px; background: var(--panel-sunk); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.yard { --row: 68px; --plates: 330px; --pad: 28px; position: relative; padding: 20px var(--pad); }
.yard .plates li { display: flex; align-items: center; gap: 14px; height: var(--row); width: var(--plates); padding-right: 16px; }
.yard .who { min-width: 0; flex: 1; }
.yard .title { display: block; font-weight: 600; font-size: 18px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yard .meta { display: block; font-size: 15px; line-height: 1.3; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yard .meta i { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 2px; background: var(--proj); }
.yard .status-inline { display: none; }
.yard .main-plate { color: var(--ink-soft); font-family: var(--font-term); font-size: 15px; padding-left: 26px; }
.yard .tracks { position: absolute; top: 20px; bottom: 20px; left: calc(var(--plates) + var(--pad)); right: var(--pad); }
.yard svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.yard path { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.yard .rail { stroke: var(--rule-strong); }
.yard .lit { stroke: var(--c); transition: stroke-dasharray 1.2s ease, stroke 300ms ease; filter: drop-shadow(0 0 4px var(--c)); }
.yard .mainline { stroke: var(--ink-faint); }
.yard circle { fill: var(--panel-sunk); stroke: var(--ink-faint); stroke-width: 2; }
.yard .status {
  position: absolute; left: 4px; height: var(--row); display: flex; align-items: flex-start; gap: 10px;
  padding-top: 6px; font-size: 15px; color: var(--ink-soft); white-space: nowrap;
}
.yard .status code { color: var(--ink); }
.yard .add { color: var(--git-add); } .yard .del { color: var(--git-del); }
.yard button {
  height: 24px; padding: 0 10px; border-radius: 4px; border: 1px solid var(--c); background: transparent;
  color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; line-height: 1; cursor: pointer;
}
.yard button:hover { background: color-mix(in srgb, var(--c) 22%, transparent); }
[data-state="busy"] { --c: var(--lamp-busy); }
[data-state="permission"] { --c: var(--lamp-permission); }
[data-state="input"] { --c: var(--lamp-input); }
[data-state="done"] { --c: var(--lamp-done); }
[data-state="merged"] { --c: var(--merged); }
.yard-caption { padding: 14px 0 0; font-size: 16px; color: var(--ink-faint); }
@media (max-width: 1040px) {
  .yard { --plates: 100%; --row: auto; --pad: 16px; }
  .yard .tracks, .yard .plates .main-plate { display: none; }
  .yard .plates li { padding: 12px 0; border-bottom: 1px solid var(--rule); align-items: flex-start; }
  .yard .plates li:nth-last-child(2) { border-bottom: 0; }
  .yard .lamp { margin-top: 6px; }
  .yard .title, .yard .meta { white-space: normal; }
  .yard .status-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; font-size: 15px; color: var(--ink-soft); }
}

/* Sections */
section { padding: 96px 0 0; }
section h2 { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.04; font-weight: 700; letter-spacing: -0.008em; max-width: 20ch; text-wrap: balance; }
section h3 { font-size: 21px; font-weight: 600; line-height: 1.25; }
.intro { margin-top: 18px; max-width: 62ch; color: var(--ink-soft); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.split.flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
@media (max-width: 860px) { .split, .split.flip { grid-template-columns: minmax(0, 1fr); gap: 32px; } section { padding-top: 72px; } }
.points { margin-top: 28px; display: grid; gap: 20px; }
.points p { color: var(--ink-soft); max-width: 56ch; }
.points h3 + p { margin-top: 2px; }

/* Lamp legend */
.legend { margin-top: 36px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.legend li { padding: 22px 14px 20px 0; }
.legend li + li { padding-left: 14px; border-left: 1px solid var(--rule); }
.legend .lamp { --size: 18px; margin: 4px 0 14px 4px; }
.legend b { display: block; font-weight: 600; line-height: 1.2; }
.legend span.what { display: block; margin-top: 4px; font-size: 16px; line-height: 1.3; color: var(--ink-faint); }
.legend-note { margin-top: 16px; display: flex; align-items: center; gap: 14px; color: var(--ink-soft); font-size: 17px; }
.legend-note .lamp { margin-left: 4px; }
@media (max-width: 860px) {
  .legend { grid-template-columns: minmax(0, 1fr); }
  .legend li, .legend li + li { display: grid; grid-template-columns: 40px 1fr; padding: 12px 0; border-left: 0; }
  .legend li + li { border-top: 1px solid var(--rule); }
  .legend .lamp { grid-row: span 2; margin: 3px 0 0 4px; }
}

/* A drawing of the app window */
.window { border: 1px solid var(--rule-strong); border-radius: 8px; background: var(--panel); overflow: hidden; box-shadow: 0 24px 60px rgb(0 0 0 / 0.4); font-size: 14px; line-height: 1.35; }
.window .body { display: grid; grid-template-columns: 190px 1fr 1fr; }
.side { background: var(--panel-raised); border-right: 1px solid var(--rule); padding: 10px 0; }
.side .ws { padding: 8px 12px 2px; color: var(--ink-faint); font-size: 13px; }
.side .proj { display: flex; align-items: center; gap: 7px; padding: 5px 12px; font-weight: 600; }
.side .proj i { width: 8px; height: 8px; border-radius: 2px; background: var(--proj); }
.side .sess { display: flex; align-items: center; gap: 9px; padding: 4px 12px 4px 26px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; }
.side .sess .lamp { --size: 9px; }
.side .sess.on { background: var(--panel-sunk); color: var(--ink); box-shadow: inset 2px 0 0 var(--brass); }
.pane { display: flex; flex-direction: column; min-width: 0; border-left: 3px solid var(--proj); }
.pane + .pane { border-left-width: 3px; box-shadow: -1px 0 0 var(--rule); }
.pane header { display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 10px; border-bottom: 1px solid var(--rule); white-space: nowrap; overflow: hidden; }
.pane header .lamp { --size: 9px; }
.pane header .count { color: var(--ink-faint); margin-left: auto; font-size: 13px; }
.sub .add { color: var(--git-add); } .sub .del { color: var(--git-del); }
.pane .log { height: 300px; padding: 12px; background: var(--panel-sunk); color: var(--ink-soft); font-family: var(--font-term); font-size: 11.5px; line-height: 1.55; overflow: hidden; }

/* Replays: scripted and looping, and still where motion isn't wanted. */
.ln { white-space: pre-wrap; }
.ln.you { color: var(--ink); font-weight: 500; }
.ln.q { color: var(--lamp-input); } .ln.ok { color: var(--git-add); } .ln.dim { color: var(--ink-faint); }
.ln.bad { color: var(--lamp-permission); } .ln.merged { color: var(--merged); }
.ln .add { color: var(--git-add); } .ln .del { color: var(--git-del); }
.replay-bar { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 16px; color: var(--ink-faint); }
.replay-bar button { height: 28px; padding: 0 12px; border-radius: 5px; border: 1px solid var(--rule-strong); background: var(--panel-raised); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.replay-bar button:hover { border-color: var(--ink-faint); }
@media (prefers-reduced-motion: no-preference) {
  .lamp { transition: background-color 300ms ease, box-shadow 300ms ease; }
  .ln.in, .row-in { animation: line-in 260ms ease-out both; }
  .ln.in.you { animation: type-in 640ms steps(30, end) both; }
  @keyframes line-in { from { opacity: 0; transform: translateY(4px); } }
  @keyframes type-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

  /* The board lights up once, when the page opens. */
  .yard .rail, .yard .mainline { stroke-dasharray: 100; stroke-dashoffset: 100; }
  .yard.seen .rail, .yard.seen .mainline { animation: draw 900ms ease-out both; animation-delay: calc(var(--i, 0) * 110ms); }
  .yard .lit { transition: stroke-dasharray 500ms ease-out, stroke 300ms ease; }
  @keyframes draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
  .yard .status { transition: opacity 400ms ease; }

  /* Lamps and stops light in order as they come into view. */
  .js .legend:not(.in) .lamp { background: var(--lamp-off); box-shadow: 0 0 0 2px var(--panel-sunk), 0 0 0 3px var(--lamp-rim); animation: none; }
  .legend .lamp { transition-duration: 500ms; transition-delay: calc(var(--i, 0) * 150ms); }
  .route li::before { transition: background-color 500ms ease calc(var(--i, 0) * 320ms); }
  .route li::after { transition: border-color 400ms ease calc(var(--i, 0) * 320ms), color 400ms ease calc(var(--i, 0) * 320ms); }
}
.route.in li::before { background: var(--lamp-done); }
.route.in li:last-child::before { background: linear-gradient(to right, var(--lamp-done) 60%, transparent); }
.route.in li::after { border-color: var(--lamp-done); color: var(--ink); }
@media (max-width: 860px) { .route.in li:last-child::before { background: linear-gradient(to bottom, var(--lamp-done) 40%, transparent); } }

/* Workflows: steps on one side, a replay of them on the other. */
.tabs { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.tabs button { height: 40px; padding: 0 16px; border-radius: 5px; border: 1px solid var(--rule-strong); background: transparent; color: var(--ink-soft); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.tabs button:hover { color: var(--ink); border-color: var(--ink-faint); }
.tabs button[aria-selected="true"] { background: var(--panel-raised); border-color: var(--brass); color: var(--ink); }
.flow { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.flow .blurb { color: var(--ink-soft); max-width: 52ch; }
.guide { margin-top: 20px; counter-reset: g; }
.guide li { counter-increment: g; }
.guide button { position: relative; display: block; width: 100%; padding: 12px 14px 12px 54px; border: 0; border-left: 3px solid var(--rule); border-radius: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background-color 200ms ease, border-color 200ms ease; }
.guide button::before { content: counter(g); position: absolute; left: 16px; top: 13px; width: 25px; height: 25px; border-radius: 50%; border: 2px solid var(--ink-faint); font-size: 15px; font-weight: 600; line-height: 21px; text-align: center; color: var(--ink-soft); }
.guide b { display: block; font-size: 20px; font-weight: 600; line-height: 1.3; }
.guide span { display: block; margin-top: 2px; font-size: 17px; line-height: 1.42; color: var(--ink-soft); }
.guide button:hover { background: var(--panel-raised); }
.guide li.now button { border-left-color: var(--brass); background: var(--panel-raised); }
.guide li.now button::before { border-color: var(--brass); color: var(--brass-hi); }
.stage { border: 1px solid var(--rule-strong); border-radius: 8px; background: var(--panel); overflow: hidden; box-shadow: 0 24px 60px rgb(0 0 0 / 0.4); font-size: 15px; line-height: 1.35; }
.stage header { display: flex; align-items: center; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--rule); font-weight: 600; white-space: nowrap; overflow: hidden; }
.stage .rows { height: 178px; padding: 8px 0; background: var(--panel-raised); border-bottom: 1px solid var(--rule); overflow: hidden; }
.stage .rows li { display: flex; align-items: center; gap: 11px; height: 32px; padding: 0 14px; }
.stage .rows .lamp { --size: 10px; }
.stage .rows b { min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage .rows .sub { margin-left: auto; padding-left: 10px; font-size: 14px; color: var(--ink-faint); white-space: nowrap; }
.stage .log { height: 196px; padding: 12px 14px; background: var(--panel-sunk); color: var(--ink-soft); font-family: var(--font-term); font-size: 12px; line-height: 1.6; overflow: hidden; }
@media (max-width: 860px) { .flow { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

.slots .done .state { color: var(--lamp-done); }
.phone .answers span.pressed { background: var(--brass-hi); border-color: var(--brass-hi); transform: scale(0.94); }
.phone .answers span { transition: transform 120ms ease, background-color 120ms ease; }
.drawing-note { margin-top: 12px; font-size: 16px; color: var(--ink-faint); }
@media (max-width: 560px) { .window .body { grid-template-columns: minmax(0, 1fr); } .side, .pane + .pane { display: none; } }

/* Issue to pull request: a real sequence, so it's numbered. */
.route { margin-top: 40px; counter-reset: stop; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.route li { counter-increment: stop; position: relative; padding: 34px 20px 0 0; }
.route li::before { content: ''; position: absolute; top: 9px; left: 0; right: 0; height: 3px; background: var(--rule-strong); }
.route li:last-child::before { background: linear-gradient(to right, var(--rule-strong) 60%, transparent); }
.route li::after { content: counter(stop); position: absolute; top: -2px; left: 0; width: 25px; height: 25px; border-radius: 50%; background: var(--panel); border: 2px solid var(--ink-faint); font-size: 15px; font-weight: 600; line-height: 21px; text-align: center; color: var(--ink-soft); }
.route p { margin-top: 6px; font-size: 17px; line-height: 1.42; color: var(--ink-soft); }
@media (max-width: 860px) {
  .route { grid-template-columns: minmax(0, 1fr); }
  .route li { padding: 0 0 26px 44px; }
  .route li::before { top: 0; bottom: 0; left: 11px; right: auto; width: 3px; height: auto; }
  .route li:last-child::before { background: linear-gradient(to bottom, var(--rule-strong) 40%, transparent); }
  .route li::after { top: 0; }
}

/* Definitions */
.terms { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; border-top: 1px solid var(--rule); }
.terms > div { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.terms dt { font-size: 21px; font-weight: 600; }
.terms dd { margin-top: 4px; color: var(--ink-soft); max-width: 52ch; }
@media (max-width: 860px) { .terms { grid-template-columns: minmax(0, 1fr); } }

/* Slots */
.slots { border: 1px solid var(--rule); border-radius: 8px; background: var(--panel-sunk); padding: 18px 20px; font-size: 16px; }
.slots .head { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-faint); padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.slots li { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.slots li:last-child { border-bottom: 0; padding-bottom: 0; }
.slots code { font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }
.slots .from { display: block; margin-top: 2px; font-family: var(--font-ui); font-size: 15px; color: var(--ink-faint); }
.slots .state { font-weight: 600; }
.slots .running .state { color: var(--lamp-busy); }
.slots .waiting .state { color: var(--ink-faint); }
.slots .lent .state { color: var(--lamp-input); }

/* Phone */
.phone { width: min(280px, 100%); margin: 0 auto; border: 1px solid var(--rule-strong); border-radius: 30px; background: var(--panel-sunk); padding: 14px 12px 20px; box-shadow: 0 24px 60px rgb(0 0 0 / 0.4); font-size: 15px; line-height: 1.3; }
.phone .notch { width: 70px; height: 6px; margin: 0 auto 14px; border-radius: 3px; background: var(--rule); }
.phone h4 { margin: 14px 6px 6px; font-size: 14px; font-weight: 500; color: var(--ink-faint); }
.phone li { display: flex; gap: 11px; align-items: flex-start; padding: 10px; border-radius: 8px; background: var(--panel-raised); }
.phone li + li { margin-top: 6px; }
.phone .lamp { --size: 10px; margin-top: 5px; }
.phone b { display: block; font-weight: 600; }
.phone span.sub { color: var(--ink-faint); font-size: 14px; }
.phone .answers { display: flex; gap: 6px; margin-top: 8px; }
.phone .answers span { padding: 4px 12px; border-radius: 5px; border: 1px solid var(--rule-strong); font-weight: 600; font-size: 14px; }
.phone .answers span:first-child { background: var(--brass); border-color: var(--brass); color: var(--on-brass); }

/* Plain lists of guarantees */
.checks { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 56px; }
.checks p { margin-top: 4px; color: var(--ink-soft); max-width: 52ch; }
@media (max-width: 860px) { .checks { grid-template-columns: minmax(0, 1fr); } }

/* Questions */
.faq { margin-top: 28px; border-top: 1px solid var(--rule); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { padding: 18px 28px 18px 0; font-size: 21px; font-weight: 600; cursor: pointer; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font-size: 24px; font-weight: 400; color: var(--ink-faint); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 0 20px; color: var(--ink-soft); max-width: 66ch; }

/* Install */
.install { margin-top: 96px; padding: 80px 0 88px; background: var(--panel-sunk); border-top: 1px solid var(--rule); }
.install h2 { max-width: none; }
.oses { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.oses p { margin-top: 6px; font-size: 17px; color: var(--ink-soft); }
.oses pre { margin: 12px 0 0; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 5px; background: var(--panel); font-size: 12.5px; line-height: 1.6; color: var(--ink); overflow-x: auto; }
.install .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 36px; }
.needs { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rule); max-width: 70ch; font-size: 17px; color: var(--ink-soft); }
@media (max-width: 860px) { .oses { grid-template-columns: minmax(0, 1fr); gap: 28px; } }


/* ---------- The site around the home page: layout shared by every page ---------- */
:root { --page: 1240px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 60; padding: 8px 14px; background: var(--brass); color: var(--on-brass); border-radius: 5px; font-weight: 600; }
.skip:focus { left: 8px; }
.top .wrap { height: 64px; gap: 32px; }
.top nav { margin-left: 12px; margin-right: auto; gap: 26px; }
.top nav a { padding: 6px 0; border-bottom: 2px solid transparent; }
.top nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brass); }
.top .menu { display: none; height: 36px; padding: 0 14px; border: 1px solid var(--rule-strong); border-radius: 5px; background: var(--panel-raised); color: var(--ink); font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; }
.drawer { display: grid; padding: 8px var(--gutter) 20px; border-top: 1px solid var(--rule); background: var(--panel); }
.drawer[hidden] { display: none; }
.drawer a { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 21px; font-weight: 600; text-decoration: none; }
@media (max-width: 1020px) {
  .top nav:not(.drawer) { display: none; }
  .top .menu { display: block; }
  .top .button { margin-left: auto; }
}
@media (min-width: 1021px) { .drawer { display: none !important; } }

/* Heroes. The home page's is taller and its picture runs off the page's edge. */
.hero { padding: 88px 0 0; overflow: hidden; }
.hero h1, .page-hero h1 { font-size: clamp(48px, 7.6vw, 112px); line-height: 0.94; font-weight: 700; letter-spacing: -0.018em; max-width: 12ch; text-wrap: balance; }
.hero h1 { font-size: clamp(50px, 8.2vw, 124px); max-width: 19ch; }
.hero-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: end; margin-top: 36px; }
.hero .lede { max-width: 54ch; margin-top: 0; }
.hero-facts { display: grid; grid-template-columns: repeat(4, auto); gap: 14px 36px; justify-content: end; }
.hero-facts b { display: block; font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -0.01em; }
.hero-facts span { display: block; margin-top: 6px; max-width: 9ch; font-size: 16px; line-height: 1.25; color: var(--ink-faint); }
.hero-shot { margin-top: 64px; }
@media (max-width: 1020px) { .hero-row { grid-template-columns: minmax(0, 1fr); gap: 36px; } .hero-facts { justify-content: start; } .hero { padding-top: 56px; } }
@media (max-width: 560px) { .hero-facts { grid-template-columns: repeat(2, auto); } }

.page-hero { padding: 80px 0 0; }
.page-hero h1 { font-size: clamp(44px, 6.4vw, 92px); max-width: 15ch; }
.page-hero .lede { margin-top: 24px; max-width: 60ch; font-size: clamp(19px, 2vw, 23px); color: var(--ink-soft); }
.page-hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 30px; }
.page-hero .shot, .page-hero .tilt { margin-top: 56px; }
.page-hero .tilt .shot { margin-top: 0; }
.page-hero.with-side { display: block; }
.page-hero .side-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; }
@media (max-width: 860px) { .page-hero .side-grid { grid-template-columns: minmax(0, 1fr); } .page-hero { padding-top: 52px; } }

/* A capture of the real app, framed. */
.shot { margin: 0; }
.shot .frame { position: relative; border: 1px solid var(--rule-strong); border-radius: 10px; background: var(--panel-sunk); overflow: hidden; box-shadow: 0 40px 90px rgb(0 0 0 / 0.5), 0 0 0 1px rgb(0 0 0 / 0.4); }
.shot img, .shot video { display: block; width: 100%; height: auto; }
.shot figcaption { margin-top: 14px; font-size: 16px; color: var(--ink-faint); max-width: 70ch; }
.shot.phone-shot { width: min(320px, 100%); margin-inline: auto; }
.shot.phone-shot .frame { border-radius: 34px; border-width: 6px; border-color: #0a0e14; outline: 1px solid var(--rule-strong); }
.phones { display: flex; justify-content: center; gap: 28px; }
.phones .shot { width: min(300px, 47%); margin: 0; }
.phones .shot:nth-child(2) { margin-top: 48px; }
@media (max-width: 700px) { .phones { gap: 12px; } .phones .shot.phone-shot .frame { border-radius: 18px; border-width: 3px; } }
.crop { overflow: hidden; }
.crop img { width: 100%; height: 100%; object-fit: cover; object-position: var(--at, left top); }

/* Chapters: a claim, what backs it, and a picture, on alternating sides. */
.chapter { padding: 120px 0 0; }
.chapter .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.chapter.flip .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.chapter.flip .wrap > :first-child { order: 2; }
.chapter.stack .wrap { display: block; }
.chapter.stack .shot, .chapter.stack .stack-media { margin-top: 48px; }
.chapter h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1; font-weight: 700; letter-spacing: -0.012em; max-width: 16ch; text-wrap: balance; }
.chapter .intro { max-width: 52ch; }
.chapter .more { display: inline-block; margin-top: 26px; font-weight: 600; text-decoration-color: var(--brass); }
.ticks { margin-top: 26px; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink-soft); max-width: 52ch; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 0.52em; width: 9px; height: 9px; border-radius: 50%; background: var(--lamp-done); box-shadow: 0 0 0 2px var(--panel-sunk), 0 0 0 3px var(--lamp-rim); }
.ticks b { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .chapter { padding-top: 80px; } .chapter .wrap, .chapter.flip .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; } .chapter.flip .wrap > :first-child { order: 0; } }

/* Facts in columns, and tables of them. */
.facts { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 48px; border-top: 1px solid var(--rule); }
.facts > div { padding: 24px 0 26px; border-bottom: 1px solid var(--rule); }
.facts h3 { font-size: 21px; }
.facts p { margin-top: 6px; font-size: 18px; line-height: 1.45; color: var(--ink-soft); }
.facts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1020px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .facts, .facts.two { grid-template-columns: minmax(0, 1fr); } }
.grid-table { margin-top: 40px; width: 100%; border-collapse: collapse; font-size: 18px; }
.grid-table th, .grid-table td { padding: 14px 20px 14px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.grid-table thead th { font-weight: 500; color: var(--ink-faint); font-size: 16px; }
.grid-table tbody th { font-weight: 600; white-space: nowrap; }
.grid-table td { color: var(--ink-soft); }
.scroll-x { overflow-x: auto; }
.note { margin-top: 28px; padding: 16px 20px; border-left: 3px solid var(--lamp-busy); background: var(--panel-raised); max-width: 74ch; font-size: 18px; color: var(--ink-soft); }
.note b { color: var(--ink); font-weight: 600; }
.tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border: 1px solid var(--rule-strong); border-radius: 4px; font-size: 14px; font-weight: 500; color: var(--ink-soft); vertical-align: 2px; white-space: nowrap; }
section.plain { padding-top: 112px; }
section.plain h2 { max-width: 22ch; }

/* The band every page ends on. */
.band { margin-top: 128px; padding: 96px 0 104px; background: var(--panel-sunk); border-top: 1px solid var(--rule); }
.band h2 { font-size: clamp(40px, 6vw, 84px); line-height: 0.96; font-weight: 700; letter-spacing: -0.016em; max-width: 14ch; text-wrap: balance; }
.band p { margin-top: 20px; max-width: 54ch; color: var(--ink-soft); }
.band .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 32px; }
.band .next { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--rule); font-size: 18px; }
.band .next span { color: var(--ink-faint); }

/* Doors to the other pages. */
.doors { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.doors a { display: flex; flex-direction: column; min-height: 168px; padding: 22px 24px 24px; border: 1px solid var(--rule); border-radius: 8px; background: var(--panel-raised); text-decoration: none; transition: border-color 160ms ease, transform 160ms ease; }
.doors a:hover { border-color: var(--brass); transform: translateY(-2px); }
.doors b { font-size: 23px; font-weight: 600; }
.doors span { margin-top: 6px; font-size: 17px; line-height: 1.42; color: var(--ink-soft); }
@media (max-width: 860px) { .doors { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .doors a { transition: none; } .doors a:hover { transform: none; } }

/* Keyboard table, install blocks. */
.keys { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; border-top: 1px solid var(--rule); }
.keys div { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 18px; color: var(--ink-soft); }
.keys span.k { white-space: nowrap; }
@media (max-width: 860px) { .keys { grid-template-columns: minmax(0, 1fr); } }
.os { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.os > div { padding: 26px 26px 28px; border: 1px solid var(--rule); border-radius: 8px; background: var(--panel-raised); }
.os h2 { font-size: 30px; max-width: none; }
.os p { margin-top: 8px; font-size: 18px; color: var(--ink-soft); }
.os .button { margin-top: 20px; }
.os pre, pre.cmd { margin: 16px 0 0; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 5px; background: var(--panel-sunk); font-size: 12.5px; line-height: 1.6; color: var(--ink); overflow-x: auto; }
@media (max-width: 1020px) { .os { grid-template-columns: minmax(0, 1fr); } }
.steps { margin-top: 36px; counter-reset: s; display: grid; gap: 0; border-top: 1px solid var(--rule); max-width: 860px; }
.steps li { counter-increment: s; position: relative; padding: 20px 0 22px 56px; border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 20px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink-faint); font-weight: 600; font-size: 16px; line-height: 26px; text-align: center; color: var(--ink-soft); }
.steps h3 { font-size: 22px; }
.steps p { margin-top: 4px; color: var(--ink-soft); max-width: 62ch; }

/* Footer */
.foot { padding: 56px 0 64px; border-top: 1px solid var(--rule); font-size: 17px; }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot h2 { margin-bottom: 10px; font-size: 16px; font-weight: 500; color: var(--ink-faint); }
.foot a { display: block; padding: 4px 0; color: var(--ink-soft); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot .brand { display: flex; color: var(--ink); font-size: 21px; }
.foot-brand p { margin-top: 10px; max-width: 30ch; color: var(--ink-faint); }
@media (max-width: 860px) { .foot .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }

/* The sandbox, drawn. */
.fence { border: 1px solid var(--rule-strong); border-radius: 10px; background: var(--panel-sunk); box-shadow: 0 40px 90px rgb(0 0 0 / 0.45); overflow: hidden; }
.fence-list > div { display: grid; grid-template-columns: 14px 1fr auto; gap: 14px; align-items: center; padding: 14px 22px; border-bottom: 1px solid var(--rule); font-size: 18px; }
.fence-list i { width: 10px; height: 10px; border-radius: 50%; }
.fence-list .ok i { background: var(--lamp-done); box-shadow: 0 0 10px -1px var(--lamp-done); }
.fence-list .no i { background: transparent; box-shadow: inset 0 0 0 2px var(--lamp-permission); }
.fence-list b { font-size: 15px; font-weight: 500; color: var(--ink-faint); white-space: nowrap; }
.fence-list .no span { color: var(--ink-soft); }
.ask { margin: 20px; padding: 18px 20px; border: 1px solid var(--lamp-permission); border-radius: 8px; background: var(--panel-raised); font-size: 18px; }
.ask b { font-weight: 600; }
.ask .why { margin-top: 6px; color: var(--ink-soft); font-size: 17px; }
.ask div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ask div span { padding: 5px 14px; border: 1px solid var(--rule-strong); border-radius: 5px; font-size: 16px; font-weight: 600; white-space: nowrap; }
.ask div .primary { background: var(--brass); border-color: var(--brass); color: var(--on-brass); }
.hero-note { margin-top: 18px; font-size: 17px; color: var(--ink-faint); }
.shot.missing { padding: 60px 20px; border: 1px dashed var(--rule-strong); border-radius: 10px; color: var(--ink-faint); text-align: center; }

/* ---------- Motion that follows the scroll. None of it runs where motion isn't wanted. ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Blocks rise into place as they come into view, siblings one after another. */
  .js .rise { opacity: 0; transform: translateY(26px); transition: opacity 700ms ease, transform 800ms cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0ms); }
  .js .rise.media { transform: translateY(40px) scale(0.975); transition-duration: 900ms, 1000ms; }
  .js .rise.seen { opacity: 1; transform: none; }
  .js .rise.seen.settled { transition: border-color 160ms ease, transform 160ms ease; transition-delay: 0ms; }

  /* The picture under a page's headline lies back, and stands up as you scroll to it. */
  .tilt { perspective: 1800px; }
  .tilt > * { --t: min(1, calc(var(--p, 0) * 2.6)); transform-origin: 50% 0; transform: rotateX(calc((1 - var(--t)) * 18deg)) scale(calc(0.9 + var(--t) * 0.1)); will-change: transform; }

  /* Two phones drift past each other. */
  .phones .shot:nth-child(1) { translate: 0 calc((0.5 - var(--p, 0.5)) * -70px); }
  .phones .shot:nth-child(2) { translate: 0 calc((0.5 - var(--p, 0.5)) * 90px); }
}

/* One issue, followed down the page: the section stays put while its steps go by. */
.pin { --steps: 4; height: calc(var(--steps) * 90vh + 100vh); margin-top: 120px; }
.pin-inner { position: sticky; top: 64px; height: calc(100vh - 64px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center; }
.pin h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1; font-weight: 700; letter-spacing: -0.012em; max-width: 14ch; text-wrap: balance; }
.pin .intro { max-width: 46ch; }
.pin .stage .rows { height: 64px; }
.pin .stage .log { height: min(300px, 34vh); font-size: 13px; }
.pin-bar { margin-top: 18px; height: 3px; background: var(--rule); border-radius: 2px; overflow: hidden; }
.pin-bar i { display: block; height: 100%; width: calc(var(--q, 0) * 100%); background: var(--lamp-done); box-shadow: 0 0 10px var(--lamp-done); }
@media (max-width: 860px) {
  .pin-inner { grid-template-columns: minmax(0, 1fr); gap: 20px; align-content: center; }
  .pin .guide li:not(.now) { display: none; }
  .pin .stage .log { height: 26vh; }
  .pin .intro { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pin { height: auto; padding-top: 0; }
  .pin-inner { position: static; height: auto; }
}

/* The not-found page is its hero alone, so it needs the room a next section would give. */
.page-404 .page-hero { padding-bottom: 96px; }
