/* Fullbars site. Tokens from docs/design/DESIGN-SPEC.md §1 (app dark). One theme: the app's default, and the Live
   screen is always dark. No gradients, glows or blur. Radii: 2px (rS), 6px (rM), full only for the health pill. */

@font-face { font-family: "Archivo"; src: url("/fonts/archivo_sc_400.woff2") format("woff2"); font-weight: 400; font-stretch: 87.5%; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/archivo_sc_500.woff2") format("woff2"); font-weight: 500; font-stretch: 87.5%; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/archivo_sc_600.woff2") format("woff2"); font-weight: 600; font-stretch: 87.5%; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/archivo_c_700.woff2") format("woff2"); font-weight: 700; font-stretch: 75%; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/archivo_c_800.woff2") format("woff2"); font-weight: 800; font-stretch: 75%; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/archivo_xc_800.woff2") format("woff2"); font-weight: 800; font-stretch: 62.5%; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrainsmono_400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrainsmono_500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  /* Ink ladder */
  --bg: #0D0D0C; --s1: #151412; --s2: #1C1B18; --s3: #24221F; --s4: #2D2B27;
  --rule: #2E2C28; --rule-strong: #4A4741; --tick: #8A867E;
  --text: #F4F1EA; --text2: #A7A196;
  /* Health: only where they mean health */
  --great: #34E07A; --weak: #FFC233; --cam-lost: #FF8A3D; --reconnecting: #FF6B6B;
  /* Twitch purple: Twitch-specific elements only */
  --twitch: #9146FF; --on-twitch: #FFFFFF;
  --rS: 2px; --rM: 6px;
  --gutter: 16px; --max: 1120px;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* Motion tokens (FbMotion) */
  --tick-ms: 120ms; --enter: 280ms cubic-bezier(0.2, 0, 0, 1); --exit: 180ms cubic-bezier(0.4, 0, 1, 1);
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-weight: 400; font-stretch: 87.5%;
  font-size: 17px; line-height: 1.5; font-feature-settings: "kern" 1, "tnum" 1;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: var(--rS); }
p { margin: 0 0 12px; }
h1, h2, h3 { margin: 0; font-weight: 800; font-stretch: 75%; line-height: 1.05; }
strong { font-weight: 600; }
code, kbd, .fig { font-family: var(--mono); font-weight: 500; font-size: 0.88em; }
.fig { font-size: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: var(--rM); z-index: 10; font-weight: 600; }
.skip:focus { top: 8px; }

/* Type roles (FbType, scaled for the web) */
.display { font-stretch: 62.5%; font-weight: 800; font-size: clamp(48px, 11vw, 104px); line-height: 0.94; letter-spacing: -0.01em; }
.display-s { font-stretch: 62.5%; font-weight: 800; font-size: clamp(32px, 5.6vw, 52px); line-height: 1; letter-spacing: -0.005em; }
.title { font-stretch: 75%; font-weight: 800; font-size: clamp(26px, 3.6vw, 34px); line-height: 1.08; }
.label { font-stretch: 75%; font-weight: 700; font-size: 12px; line-height: 16px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text2); }
.lede { font-size: clamp(18px, 2.1vw, 21px); line-height: 1.45; color: var(--text); max-width: 34em; }
.help { color: var(--text2); font-size: 15px; line-height: 1.45; }
.muted { color: var(--text2); }

/* Top bar */
.bar { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--rule); }
.bar .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-stretch: 75%; font-weight: 800; font-size: 24px; line-height: 1; min-height: 48px; }
.brand svg { width: 24px; height: 24px; flex: none; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-stretch: 75%; font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text2); padding: 0 10px; min-height: 48px; display: inline-flex; align-items: center; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a.key { color: var(--bg); background: var(--text); border-radius: var(--rM); min-height: 40px; padding: 0 14px; margin-left: 8px; }
@media (max-width: 559px) { .nav .opt { display: none; } }

/* Section header: caps label, a hairline, an optional stamp (SectionHeader in the app) */
.sh { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; }
.sh::after { content: ""; flex: 1; height: 1px; background: var(--rule); order: 1; }
.sh .stamp { order: 2; font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--text2); letter-spacing: 0.04em; }
section { padding: 72px 0; }
@media (max-width: 719px) { section { padding: 56px 0; } }

/* Buttons (FbButton) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 0 22px; border-radius: var(--rM);
  font-family: var(--sans); font-stretch: 75%; font-weight: 800; font-size: 22px; line-height: 1; text-decoration: none; cursor: pointer; border: 0; }
.btn.primary { background: var(--text); color: var(--bg); }
.btn.primary:active { background: #DEDAD1; }
.btn.secondary { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--tick); }
.btn.secondary:active { background: var(--s3); }
.btn .tag { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: 0.08em; border: 1px dashed currentColor; border-radius: var(--rS); padding: 3px 6px; }
.textlink { font-weight: 600; min-height: 48px; display: inline-flex; align-items: center; }

/* Hero */
.hero { padding: 56px 0 64px; }
.hero .wrap { display: grid; gap: 40px; }
.hero h1 { margin: 16px 0 24px; }
.hero .ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 28px 0 14px; }
.hero .fine { font-size: 14px; color: var(--text2); }
.shot { position: relative; justify-self: center; width: min(300px, 78vw); padding: 14px; }
.shot img { border-radius: var(--rM); }
.shot figcaption { margin-top: 10px; font-size: 13px; line-height: 1.4; color: var(--text2); }
/* Registration L-ticks at the corners (scene cards §4.1) */
.reg { position: relative; }
.reg::before, .reg::after, .reg > .reg-b::before, .reg > .reg-b::after { content: ""; position: absolute; width: 14px; height: 14px; border: 0 solid var(--tick); pointer-events: none; }
.reg::before { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.reg::after { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.reg > .reg-b { position: absolute; inset: 0; pointer-events: none; }
.reg > .reg-b::before { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.reg > .reg-b::after { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
@media (min-width: 880px) {
  .hero { padding: 72px 0 88px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr) 320px; align-items: center; gap: 56px; }
}

/* The ruler (scene cards): a baseline, minor ticks every 8px, major every 40px, a cursor stepping 4 positions */
.ruler { position: relative; height: 18px; margin-top: 8px; color: var(--tick); }
.ruler::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; }
.ruler::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='12'%3E%3Cpath fill='%238A867E' d='M0 0h1v12H0zM8 6h1v6H8zM16 6h1v6h-1zM24 6h1v6h-1zM32 6h1v6h-1z'/%3E%3C/svg%3E") repeat-x 0 100%; }
.ruler .cursor { position: absolute; bottom: 0; width: 6px; height: 18px; background: var(--text); left: 12.5%; transform: translateX(-50%); }
.ruler[data-step="1"] .cursor { left: 37.5%; }
.ruler[data-step="2"] .cursor { left: 62.5%; }
.ruler[data-step="3"] .cursor { left: 87.5%; }

/* Route: phone → links → BRB server → Twitch */
.route-intro { display: grid; gap: 16px; margin-bottom: 32px; }
@media (min-width: 880px) { .route-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; } }
.plate { background: var(--s1); border-radius: var(--rS); padding: 20px; }
@media (min-width: 720px) { .plate { padding: 28px; } }
.plate-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-bottom: 24px; }

/* Health pill (the one place green/amber/coral show up, because it means health) */
.pill { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 16px 8px 12px; border-radius: 999px; background: var(--bg);
  box-shadow: inset 0 0 0 1.5px var(--bg); font-stretch: 75%; font-weight: 700; font-size: 18px; line-height: 1.2; transition: none; }
.pill .meter { color: var(--great); }
.pill[data-state="down"] { box-shadow: none; outline: 2.5px dashed var(--reconnecting); outline-offset: -2.5px; color: var(--reconnecting); }
.pill[data-state="down"] .meter { display: none; }
.pill .arrows { display: none; width: 18px; height: 18px; }
.pill[data-state="down"] .arrows { display: block; }

.meter { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; flex: none; }
.meter i { display: block; width: 3px; background: currentColor; }
.meter i:nth-child(1) { height: 5px; } .meter i:nth-child(2) { height: 8px; } .meter i:nth-child(3) { height: 11px; } .meter i:nth-child(4) { height: 14px; }
.meter i.off { background: transparent; box-shadow: inset 0 0 0 1.2px currentColor; }
.meter.dashed i { background: transparent; box-shadow: none; border: 1.2px dashed currentColor; }

.btn-sim { min-height: 48px; font-size: 18px; padding: 0 16px; }
.btn-sim[aria-pressed="true"] { background: var(--text); color: var(--bg); box-shadow: none; }

.route { display: grid; gap: 0; }
.node { border: 1.5px solid var(--tick); border-radius: var(--rM); padding: 14px 16px; background: var(--bg); position: relative; z-index: 1; }
.node .label { display: block; margin-bottom: 4px; }
.node .name, .node .sub { display: block; }
.node .name { font-stretch: 75%; font-weight: 800; font-size: 22px; line-height: 1.1; }
.node .sub { font-size: 14px; line-height: 1.35; color: var(--text2); margin-top: 4px; }
.lane { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 0 10px 28px; min-height: 52px; }
.lane::before { content: ""; position: absolute; left: 12px; top: 0; bottom: 0; border-left: 1.5px solid var(--tick); }
.lane .lname { font-stretch: 75%; font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.lane .lname small { display: block; font-stretch: 87.5%; font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 13px; color: var(--text2); }
.lane .val { font-family: var(--mono); font-weight: 500; font-size: 15px; width: 5ch; text-align: right; }
.lane .meter { color: var(--text); }
.lane.down::before { border-left-style: dashed; border-left-color: var(--reconnecting); }
.lane.down .meter, .lane.down .val { color: var(--reconnecting); }
.lane.out .val { width: auto; }
.stub { position: relative; height: 20px; }
.stub::before { content: ""; position: absolute; left: 12px; top: 0; bottom: 0; border-left: 1.5px solid var(--tick); }
.node.twitch .viewers { margin-top: 10px; display: flex; align-items: center; gap: 12px; }
.card-thumb { width: 64px; height: 36px; flex: none; border-radius: var(--rS); background: var(--bg); box-shadow: inset 0 0 0 1px var(--rule); position: relative; overflow: hidden; }
.card-thumb .cam { position: absolute; inset: 0; background: var(--s4); }
.card-thumb .cam::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: var(--s3); }
.card-thumb .lost { display: none; position: absolute; left: 6px; bottom: 6px; font-stretch: 62.5%; font-weight: 800; font-size: 11px; line-height: 1; color: var(--text); }
.card-thumb .lostbars { display: none; position: absolute; left: 6px; top: 5px; }
.card-thumb .lostbars .meter { height: 10px; gap: 1.5px; color: var(--text2); }
.card-thumb .lostbars .meter i { width: 2.5px; }
.route[data-state="down"] .card-thumb .cam { display: none; }
.route[data-state="down"] .card-thumb .lost, .route[data-state="down"] .card-thumb .lostbars { display: block; }
.timer { font-family: var(--mono); font-weight: 500; }
.sim-note { margin-top: 20px; font-size: 13px; color: var(--text2); }

@media (min-width: 880px) {
  .route { grid-template-columns: 170px minmax(0, 1fr) 200px minmax(0, 0.7fr) 200px; grid-template-rows: repeat(3, auto); align-items: center; }
  .route .n-phone { grid-column: 1; grid-row: 1 / 4; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
  .route .l1 { grid-column: 2; grid-row: 1; } .route .l2 { grid-column: 2; grid-row: 2; } .route .l3 { grid-column: 2; grid-row: 3; }
  .route .n-server { grid-column: 3; grid-row: 1 / 4; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
  .route .l-out { grid-column: 4; grid-row: 2; }
  .route .n-twitch { grid-column: 5; grid-row: 1 / 4; align-self: center; }
  .route .stub { display: none; }
  .lane { padding: 14px 14px; grid-template-columns: minmax(0, 1fr) auto auto; }
  .lane::before { left: 0; right: 0; top: 50%; bottom: auto; border-left: 0; border-top: 1.5px solid var(--tick); }
  .lane > * { position: relative; background: var(--s1); padding: 0 6px; }
  .lane .lname { padding-left: 0; margin-left: 8px; padding-right: 8px; justify-self: start; }
  .lane.down::before { border-top-style: dashed; border-top-color: var(--reconnecting); }
  .lane.out { grid-template-columns: auto; justify-content: center; }
}

/* Numbered lines (no cards): hairlines and alignment do the work */
.steps3 { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 0; counter-reset: s; border-top: 1px solid var(--rule); }
.steps3 li { display: grid; align-content: start; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.steps3 li::before { counter-increment: s; content: counter(s); font-family: var(--mono); font-weight: 500; font-size: 15px; color: var(--text2); padding-top: 3px; }
.steps3 h3 { font-size: 22px; margin-bottom: 6px; }
.steps3 p { margin: 0; color: var(--text2); }
@media (min-width: 880px) {
  .steps3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; border-top: 0; }
  .steps3 li { border-bottom: 0; border-top: 1px solid var(--rule); grid-template-columns: 1fr; gap: 8px; }
}

/* Compare table: a table from 720px, stacked rows below */
table.cmp { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.4; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); }
.cmp thead th { font-stretch: 75%; font-weight: 700; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text2); border-bottom-color: var(--rule-strong); }
.cmp thead th.us { color: var(--text); }
.cmp tbody th { font-weight: 600; width: 22%; }
.cmp td { color: var(--text2); width: 26%; }
.cmp td.us { color: var(--text); font-weight: 500; }
@media (max-width: 719px) {
  .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: auto; }
  .cmp tr { border-bottom: 1px solid var(--rule); padding: 16px 0; }
  .cmp tbody th, .cmp td { border: 0; padding: 0; }
  .cmp tbody th { font-size: 18px; margin-bottom: 8px; width: auto; }
  .cmp td { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 12px; padding: 3px 0; font-size: 15px; }
  .cmp td::before { content: attr(data-col); color: var(--text2); font-weight: 400; }
  .cmp td.us { order: -1; }
  .cmp td.us::before { color: var(--text); font-weight: 600; }
  .cmp tr { display: flex; flex-direction: column; }
  .cmp tbody th { order: -2; }
}

/* Feature rows: label left, text right, a hairline between (ValueRow, no containers) */
.rows { border-top: 1px solid var(--rule); }
.row { display: grid; gap: 6px 32px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.row h3 { font-stretch: 87.5%; font-weight: 600; font-size: 19px; line-height: 1.3; }
.row p { margin: 0; color: var(--text2); }
.row .tagline { margin-top: 8px; }
@media (min-width: 720px) { .row { grid-template-columns: 260px minmax(0, 1fr); } }
.tag { display: inline-block; font-family: var(--mono); font-weight: 500; font-size: 11px; line-height: 1; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 7px; border-radius: var(--rS); border: 1px solid var(--tick); color: var(--text); vertical-align: 3px; margin-left: 8px; }
.tag.dashed { border-style: dashed; }
.tag.inv { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Screens */
.screens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; margin-top: 8px; }
.screens figure { margin: 0; }
.screens img { border-radius: var(--rM); }
.screens figcaption { margin-top: 10px; font-size: 14px; line-height: 1.4; color: var(--text2); }
.screens { max-width: 680px; }
@media (min-width: 720px) { .screens { gap: 32px; } }
.nw { white-space: nowrap; }

/* New in 0.6 */
.release { display: grid; gap: 40px; }
.release .shot { justify-self: start; padding: 14px; }
@media (min-width: 880px) { .release { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; } .release .shot { justify-self: end; } }
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 24px 0; }
.figures > div { padding: 14px 12px 14px 0; }
.figures > div + div { border-left: 1px solid var(--rule); padding-left: 12px; }
.figures .v { font-family: var(--mono); font-weight: 500; font-size: clamp(20px, 3vw, 28px); line-height: 1.2; display: block; margin-top: 4px; }

/* Get started summary */
table.plan { width: 100%; border-collapse: collapse; font-size: 16px; }
.plan th, .plan td { text-align: left; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.plan thead th { font-stretch: 75%; font-weight: 700; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text2); border-bottom-color: var(--rule-strong); }
.plan td.n { font-family: var(--mono); font-weight: 500; color: var(--text2); width: 2.5em; }
.plan td.what { font-weight: 600; }
.plan td.what small { display: block; font-weight: 400; color: var(--text2); font-size: 14px; }
.plan td.t, .plan td.c { color: var(--text2); white-space: nowrap; }
@media (max-width: 599px) {
  .plan thead { display: none; }
  .plan tr { display: grid; grid-template-columns: 2.5em minmax(0, 1fr); border-bottom: 1px solid var(--rule); padding: 12px 0; }
  .plan td { border: 0; padding: 0 0 2px; }
  .plan td.n { grid-row: 1 / 4; padding-top: 1px; }
  .plan td.t, .plan td.c { grid-column: 2; font-size: 14px; white-space: normal; }
  .plan td.t::before { content: "Time: "; } .plan td.c::before { content: "Cost: "; }
}

/* FAQ */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 0; font-weight: 600; font-size: 18px; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 1.5px solid var(--text2); border-bottom: 1.5px solid var(--text2); transform: rotate(45deg) translate(-2px, -2px); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq .a { padding: 0 0 20px; color: var(--text2); max-width: 44em; }
.faq .a p:last-child { margin: 0; }

/* Licences + footer */
.lic { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.lic div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.lic dt { font-weight: 600; }
.lic dd { margin: 0; color: var(--text2); }
@media (min-width: 720px) { .lic div { grid-template-columns: 320px minmax(0, 1fr); gap: 32px; } }
footer { border-top: 1px solid var(--rule); padding: 32px 0 48px; font-size: 14px; color: var(--text2); }
footer .wrap { display: grid; gap: 16px; }
footer .links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
footer .links a { color: var(--text); min-height: 44px; display: inline-flex; align-items: center; }

/* Setup page */
.page-head { padding: 56px 0 24px; }
.page-head h1 { margin: 12px 0 20px; }
.toc { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.toc li { border-bottom: 1px solid var(--rule); }
.toc a { display: grid; grid-template-columns: 2.5em minmax(0, 1fr) auto; gap: 2px 8px; align-items: center; min-height: 54px; padding: 8px 0; text-decoration: none; font-weight: 600; }
.toc a .n { font-family: var(--mono); font-weight: 500; color: var(--text2); }
.toc a .t { color: var(--text2); font-weight: 400; font-size: 14px; text-align: right; }
@media (max-width: 559px) { .toc a .t { grid-column: 2; text-align: left; } .toc a .n { grid-row: 1 / 3; } }
.step { padding: 56px 0; border-top: 1px solid var(--rule); }
.step-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 20px; align-items: baseline; margin-bottom: 20px; }
.step-head .num { font-family: var(--mono); font-weight: 400; font-size: clamp(44px, 6vw, 64px); line-height: 1; letter-spacing: -0.02em; grid-row: 1 / 3; }
.step-head .opt { grid-column: 2; }
.meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 0 0 28px; }
.meta > div { padding: 12px 12px 12px 0; }
.meta > div + div { border-left: 1px solid var(--rule); padding-left: 12px; }
.meta dd { margin: 4px 0 0; font-weight: 500; font-size: 15px; line-height: 1.35; }
.meta dt { margin: 0; }
@media (max-width: 559px) { .meta { grid-template-columns: 1fr 1fr; } .meta > div:nth-child(3) { grid-column: 1 / 3; border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); } }
.why { border-left: 2px solid var(--text); padding: 2px 0 2px 16px; margin: 0 0 24px; max-width: 44em; }
.why .label { display: block; margin-bottom: 4px; color: var(--text); }
.body { max-width: 44em; }
.body ol, .body ul { padding-left: 1.3em; margin: 0 0 16px; }
.body li { margin: 0 0 10px; }
.body li::marker { font-family: var(--mono); color: var(--text2); }
.body h3 { font-stretch: 87.5%; font-weight: 600; font-size: 20px; margin: 32px 0 10px; line-height: 1.3; }
.body h3 .fig { color: var(--text2); margin-right: 8px; }
.path { font-weight: 600; white-space: nowrap; }
.cmd { margin: 8px 0 16px; background: var(--s1); border-radius: var(--rS); box-shadow: inset 0 0 0 1px var(--rule); }
.cmd-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 4px 6px 4px 16px; border-bottom: 1px solid var(--rule); }
.cmd pre { margin: 0; padding: 14px 16px; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--mono); font-weight: 500; font-size: 14px; line-height: 1.55; color: var(--text); }
.cmd pre .ph { color: var(--bg); background: var(--text); border-radius: var(--rS); padding: 0 3px; }
.cmd .copy { min-height: 36px; min-width: 72px; padding: 0 10px; border-radius: var(--rM); border: 0; box-shadow: inset 0 0 0 1.5px var(--tick); background: var(--s1);
  color: var(--text); font-family: var(--sans); font-stretch: 75%; font-weight: 700; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; }
.cmd .copy:active { background: var(--s3); }
.cmd .copy[data-done] { background: var(--text); color: var(--bg); box-shadow: none; }
.note { font-size: 15px; color: var(--text2); }
.twitch-btn { display: inline-flex; align-items: center; min-height: 56px; padding: 0 22px; border-radius: var(--rM); background: var(--twitch); color: var(--on-twitch); font-stretch: 75%; font-weight: 800; font-size: 22px; }
.mock { margin: 8px 0 20px; }
.mock figcaption { font-size: 13px; color: var(--text2); margin-top: 8px; }
.ports { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 16px; }
.ports th, .ports td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }
.ports th { font-stretch: 75%; font-weight: 700; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text2); }
.ports td:first-child { font-family: var(--mono); font-weight: 500; white-space: nowrap; }

/* Motion: Tick swaps are instant two-step changes done in JS; only Enter is a transition, and reduce-motion cuts it */
.enter { transition: opacity var(--enter), transform var(--enter); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 559px) { .cmd pre { font-size: 13px; padding: 12px 14px; } }
