:root{
  --bg:#0f1115; --bg2:#171a21; --line:#2c313c;
  --text:#e4e6eb; --muted:#aab0bc; --head:#ffffff;
  --accent:#ffc233; --accent-ink:#1a1400; --ok:#7ee2a8;
  --stripe:repeating-linear-gradient(-45deg,#ffc233 0 14px,#1a1400 14px 28px);
  --mono:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;
}
*{box-sizing:border-box}
html{color-scheme:dark}
body{margin:0;background:var(--bg);color:var(--text);font:400 17px/1.65 system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;-webkit-font-smoothing:antialiased;overflow-x:hidden}
img,svg{max-width:100%;height:auto;display:block}
a{color:var(--accent);text-underline-offset:3px}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px;border-radius:4px}
code,pre{font-family:var(--mono);font-size:.92em}
code{background:var(--bg2);border:1px solid var(--line);border-radius:5px;padding:1px 6px}
h1,h2,h3{color:var(--head);line-height:1.2}
h2{font-size:clamp(1.4rem,3vw,1.8rem);margin:0 0 14px}
h3{font-size:1.08rem;margin:0 0 6px}

.skip{position:absolute;left:-9999px;top:8px;background:var(--accent);color:var(--accent-ink);padding:8px 14px;border-radius:6px;font-weight:600;z-index:10}
.skip:focus{left:16px}
.stripe{height:6px;background:var(--stripe)}

.top{border-bottom:1px solid var(--line)}
.top .in,.wrap{max-width:980px;margin:0 auto;padding:0 16px}
.top .in{display:flex;align-items:center;justify-content:space-between;min-height:64px;gap:12px;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:10px;color:var(--head);text-decoration:none;font-weight:700;font-size:1.1rem}
.brand svg{width:30px;height:30px}
.top nav a{color:var(--muted);text-decoration:none;margin-left:18px;font-size:.95rem}
.top nav a:hover,.top nav a[aria-current]{color:var(--head)}

.hero{padding:56px 0 36px}
.badge{display:inline-block;border:1px solid var(--accent);color:var(--accent);border-radius:999px;padding:2px 12px;font-size:.85rem;font-weight:600;letter-spacing:.02em}
.hero h1{font-size:clamp(2rem,5.5vw,3.3rem);margin:16px 0 0;letter-spacing:-.01em}
.hero .lede{font-size:clamp(1.05rem,2.2vw,1.25rem);max-width:720px;color:var(--text);margin:18px 0 0}
.cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.btn{display:inline-block;padding:11px 20px;border-radius:8px;font-weight:600;text-decoration:none;border:2px solid var(--accent)}
.btn.primary{background:var(--accent);color:var(--accent-ink)}
.btn.ghost{color:var(--accent)}
.btn[aria-disabled="true"]{opacity:.8;cursor:not-allowed}
.note{color:var(--muted);font-size:.92rem;margin-top:14px}

section{padding:36px 0;border-top:1px solid var(--line)}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.card{background:var(--bg2);border:1px solid var(--line);border-radius:12px;padding:18px 20px}
.card p{margin:0}
.card .k{color:var(--accent);font-weight:700;font-size:.85rem;letter-spacing:.06em;text-transform:uppercase;margin-bottom:6px;display:block}
ul.tight{padding-left:20px;margin:8px 0}
ul.tight li{margin:4px 0}

figure{margin:0}
.diagram{background:var(--bg2);border:1px solid var(--line);border-radius:12px;padding:16px}
figcaption{color:var(--muted);font-size:.92rem;margin-top:10px}

.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:12px}
table{width:100%;border-collapse:collapse;font-size:.95rem;min-width:620px}
caption{text-align:left;padding:12px 14px;color:var(--muted)}
th,td{padding:10px 14px;border-top:1px solid var(--line);text-align:left;vertical-align:top}
th{color:var(--head);background:var(--bg2);font-weight:600}
td.num{color:var(--accent);font-weight:700;white-space:nowrap}

.not{border:2px dashed var(--line);border-radius:12px;padding:16px 20px}
.not h3{margin-bottom:8px}

pre.cmd{background:var(--bg2);border:1px solid var(--line);border-radius:10px;padding:14px 16px;overflow-x:auto;margin:10px 0}

article{max-width:780px;margin:0 auto;padding:44px 16px 64px}
article h1{font-size:clamp(1.8rem,4vw,2.4rem);margin:0 0 6px}
article .updated{color:var(--muted);font-size:.92rem;margin:0 0 28px}
article h2{font-size:1.2rem;margin:30px 0 8px}

footer.foot{border-top:1px solid var(--line);padding:28px 16px 44px;color:var(--muted);font-size:.9rem}
footer.foot .in{max-width:980px;margin:0 auto}
footer.foot nav a{color:var(--muted);margin-right:16px}
footer.foot p{margin:10px 0 0;max-width:780px}

@media (prefers-reduced-motion: reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media (max-width:560px){.top nav a{margin:0 14px 0 0}.top nav{width:100%;padding-bottom:10px}}
.mt{margin-top:20px}
.flush{margin-top:0}
article.center{text-align:center;padding-top:96px}
article.center .mark{margin:0 auto 20px}
@media (max-width:640px){table{min-width:0}thead{display:none}tbody tr{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;padding:12px 14px;border-top:1px solid var(--line)}tbody td{border:0;padding:0}tbody td:first-child{grid-column:1/-1}}
/* Crew figures. Flows run ~4 s on load (WCAG 2.2.2: under 5 s), then replay
   while the chart is hovered or focused; off entirely for reduced motion. */
.af-scroll{overflow-x:auto}
.af-scroll svg{min-width:760px;width:100%}
.af-flow{animation:af-flow 1.4s linear 3}
.af-scroll:hover .af-flow,.af-scroll:focus .af-flow,.af-scroll:focus-within .af-flow{animation:af-flow-h 1.4s linear infinite}
@keyframes af-flow{to{stroke-dashoffset:-26}}
@keyframes af-flow-h{to{stroke-dashoffset:-26}}
@media (prefers-reduced-motion: reduce){.af-flow,.af-scroll:hover .af-flow,.af-scroll:focus .af-flow{animation:none}}
/* First screen, top to bottom: header text, the crew chart, then "What it is" in one row. */
.intro{max-width:1200px;margin:0 auto;padding:0 16px}
.intro .hero{padding:28px 0 14px}
.intro .hero h1{margin-top:10px}
.intro .hero .lede{margin-top:10px;max-width:none}
.intro .cta{margin-top:16px}
.intro .hero .note{margin-top:10px}
.intro-crew{padding:4px 0 8px}
.crew-fig{margin:0}
.intro .what{border-top:0;padding:18px 0 28px}
.intro .what h2{font-size:1.3rem;margin-bottom:10px}
@media (min-width:900px){
  .intro .hero{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);column-gap:36px;align-items:end}
  .intro .hero .badge,.intro .hero h1{grid-column:1}
  .intro .hero .lede{grid-column:2;grid-row:1 / span 2;margin:0;align-self:end}
  .intro .hero .cta{grid-column:1;margin-top:14px}
  .intro .hero .note{grid-column:2;margin-top:14px;align-self:center}
  .intro .what .grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
  .intro .what .card{padding:12px 14px;font-size:.92rem;line-height:1.5}
}
/* Phone versions of the diagrams: stacked vertically so text stays readable. */
.m-only{display:none}
@media (max-width:640px){
  .d-only{display:none}
  .m-only{display:block;width:100%;max-width:440px;margin:0 auto}
  .af-scroll svg.m-only{min-width:0}
}

/* Install call-out */
.install{border:2px solid var(--accent);border-radius:14px;padding:22px 24px;background:var(--bg2);margin-top:8px}
.install h2{margin-top:0}
.install-lead{font-size:1.35rem;font-weight:700;color:var(--head);margin:6px 0 14px}
.copy-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.copy-row code.url{flex:1 1 320px;min-width:0;overflow-wrap:anywhere;background:var(--bg);border:1px solid var(--line);border-radius:8px;padding:10px 12px;font-size:.88rem}
.copy-row .btn{cursor:pointer;font:inherit;font-weight:600}
.copy-status{min-height:1.3em;color:var(--ok);font-size:.92rem;margin:6px 0 10px}
@media (max-width:640px){.install{padding:18px 16px}.install-lead{font-size:1.15rem}}
.copy-buffer{position:fixed;top:0;left:0;width:1px;height:1px;opacity:0}

/* FAQ */
.faq{display:grid;gap:14px;grid-template-columns:1fr}
.faq h3{font-size:1.02rem;margin:0 0 6px;color:var(--head)}
.faq p{margin:0}
@media (min-width:900px){.faq{grid-template-columns:1fr 1fr}}
