/* host-headroom docs. Ceiling palette (near-white, graphite, one blue) on the
   hero A layout. System fonts only. Light and dark follow the system setting,
   except the navy band at the top of every page, which is always dark (BRAND.md). */
:root {
  --bg: #fbfbfd; --surf: #ffffff; --ink: #1d1d1f; --mut: #6e6e73; --line: #d2d2d7;
  --acc: #0071e3; --on-acc: #ffffff; --codebg: #f2f2f5;
  --green: #1a7f37; --amber: #9a6700; --red: #cf222e;
  --shadow: 0 20px 50px rgba(29, 29, 31, .12);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "DejaVu Sans Mono", monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181c; --surf: #1d2025; --ink: #f5f5f7; --mut: #a1a1a6; --line: #33363d;
    --acc: #4ba3ff; --on-acc: #16181c; --codebg: #1f2227;
    --green: #56d364; --amber: #e3b341; --red: #ff7b72;
    --shadow: 0 20px 50px rgba(0, 0, 0, .5);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--acc); text-underline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
code, pre { font-family: var(--mono); }
:not(pre) > code { font-size: .88em; background: var(--codebg); border-radius: 6px; padding: .1em .35em; overflow-wrap: anywhere; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surf); padding: 8px 12px; z-index: 2; }
.ico { width: 20px; height: 20px; flex: none; }

/* nav */
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; font-size: 20px; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.brand svg { width: 30px; height: 30px; color: var(--ink); }
.brand .up { color: var(--acc); }
.links { display: flex; gap: 4px; }
.links a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; color: var(--mut); text-decoration: none; font-size: 17px; border-radius: 10px; }
.links a:hover { color: var(--ink); }
.links a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* the band: nav and page head on navy, always dark (also in light mode) */
.band {
  --ink: #ffffff; --mut: #c9d6ea; --acc: #4ba3ff; --line: rgba(255, 255, 255, .14);
  --codebg: rgba(255, 255, 255, .07);
  background: radial-gradient(110% 130% at 88% 0%, #1e3a66 0%, #152a4a 40%, #0f1d33 72%, #0b1526 100%);
  color: var(--ink); color-scheme: dark;
}
.band nav .wrap { border-bottom-color: rgba(255, 255, 255, .12); }
.band .links a { color: #c9d6ea; }
.band .links a:hover, .band .links a[aria-current="page"] { color: #ffffff; }
.band h1 { font-weight: 800; letter-spacing: -.035em; }
.band .cmd { border-color: rgba(75, 163, 255, .38); }
.band .cmd code { color: #e8eefb; }
.band .copy { background: #0071e3; color: #ffffff; }
.band .facts { color: #9fb0c8; }

/* hero (G1 pick A: question, then proof) */
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px 56px; align-items: start; padding-top: 64px; padding-bottom: 140px; }
.hero h1 { margin-bottom: 0; }
/* the animation overlaps the band's bottom edge */
.hero-fig .wrap { padding-bottom: 64px; }
.hero-fig .hero-video { margin-top: -100px; }
.hero-video video, .hero-video img { display: block; width: 100%; height: auto; }
.pinned { position: relative; }
.pin-note, .pin-room { position: absolute; z-index: 1; pointer-events: none; }
.pin-note { left: -14px; top: 38%; padding: 12px 16px 14px; border-radius: 14px; background: #0071e3; color: #ffffff; transform: rotate(-4deg); box-shadow: 0 12px 28px rgba(0, 0, 0, .28); }
.pin-note i { display: block; margin-bottom: 8px; font: 600 12px/1 var(--mono); font-style: normal; letter-spacing: .14em; opacity: .78; }
.pin-note b { display: block; font: 700 18px/1.15 var(--sans); }
.pin-room { right: 26px; top: -18px; padding: 10px 18px; border-radius: 999px; background: #1a7f37; color: #ffffff; font: 800 16px/1 var(--sans); letter-spacing: .04em; white-space: nowrap; box-shadow: 0 0 0 8px rgba(86, 211, 100, .22), 0 0 26px 8px rgba(86, 211, 100, .35); }
.hero .wrap > * { min-width: 0; }
h1 { margin: 0 0 18px; font: 700 60px/1.04 var(--sans); letter-spacing: -.03em; }
.eyebrow { margin: 0 0 14px; font: 600 15px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--acc); }
.lede { margin: 0 0 28px; color: var(--mut); font-size: 21px; max-width: 520px; }
.lede b { color: var(--ink); font-weight: 600; }
.cmd { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--codebg); border-radius: 14px; padding: 6px 6px 6px 18px; max-width: 560px; }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font: 15px/1.4 var(--mono); color: var(--ink); background: none; padding: 0; }
.copy { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 0; background: var(--acc); color: var(--on-acc); font: 600 16px var(--sans); cursor: pointer; }
.alt { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 10px; font-weight: 600; text-decoration: none; }
.facts { display: flex; flex-wrap: wrap; margin: 28px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; color: var(--mut); font-size: 16px; }
.facts li { white-space: nowrap; padding-right: 16px; margin: 0 16px 6px 0; border-right: 1px solid var(--line); }
.facts li:last-child { border: 0; margin: 0; padding: 0; }
.shot { margin: 0; }
.term { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.cap { margin: 14px 0 0; color: var(--mut); font-size: 16px; line-height: 1.45; }

/* page heads (checks, results) */
.page-head .wrap { padding-top: 64px; padding-bottom: 40px; }
.page-head h1 { font-size: 52px; }
.page-head .lede { max-width: 720px; }
.toc-wrap .wrap { padding-top: 40px; }

/* sections */
section { padding: 72px 0; border-top: 1px solid var(--line); }
h2 { margin: 0 0 14px; font: 700 38px/1.12 var(--sans); letter-spacing: -.02em; }
h3 { margin: 0 0 8px; font: 650 22px/1.3 var(--sans); letter-spacing: -.01em; }
.intro { margin: 0 0 36px; color: var(--mut); font-size: 20px; max-width: 720px; }
p { margin: 0 0 16px; }
.more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; text-decoration: none; }

/* three steps: columns split by rules, not cards */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 40px; padding: 0; list-style: none; }
.steps li { padding: 4px 28px 0; border-left: 1px solid var(--line); }
.steps li:first-child { padding-left: 0; border-left: 0; }
.steps .n { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-bottom: 14px; border: 1.5px solid var(--acc); border-radius: 50%; color: var(--acc); font-weight: 700; font-size: 17px; }
.steps p { color: var(--mut); }
.after { max-width: 760px; }

/* check summary: two ruled lists */
.groups { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.ruled { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ruled li { border-bottom: 1px solid var(--line); }
.ruled a, .ruled .row { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 52px; padding: 8px 0; color: var(--ink); text-decoration: none; }
.ruled a:hover { color: var(--acc); }
.ruled .tag { color: var(--mut); font-size: 16px; white-space: nowrap; }
.group-h { margin: 0 0 10px; font: 600 15px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--mut); }

/* diagram */
.diagram { margin: 0 0 28px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.diagram svg { display: block; width: 100%; min-width: 760px; height: auto; }
.swipe { display: none; color: var(--mut); font-size: 16px; margin: -16px 0 24px; }
.d-box { fill: var(--surf); stroke: var(--line); stroke-width: 1.5; }
.d-key { fill: var(--surf); stroke: var(--acc); stroke-width: 2; }
.d-stop { fill: none; stroke: var(--red); stroke-width: 1.5; stroke-dasharray: 6 5; }
.d-t { fill: var(--ink); font: 600 17px var(--sans); }
.d-s { fill: var(--mut); font: 15px var(--sans); }
.d-op { fill: var(--acc); font: 700 26px var(--sans); }
.d-lane { fill: var(--mut); font: 600 14px var(--sans); letter-spacing: .12em; }
.d-line { stroke: var(--mut); stroke-width: 1.5; fill: none; }
.d-red { fill: var(--red); font: 600 17px var(--sans); }
.defs { margin: 0; border-top: 1px solid var(--line); }
.defs > div { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.defs dt { font-weight: 650; }
.defs dd { margin: 0; color: var(--mut); }
.defs dd b { color: var(--ink); font-weight: 600; }

/* tables */
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 17px; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
thead th { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); font-weight: 600; border-bottom: 1.5px solid var(--ink); }
tbody th { font-weight: 650; white-space: nowrap; }
td { color: var(--mut); }

/* install */
.install { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 56px; }
.install > div { padding: 22px 0; border-top: 1px solid var(--line); min-width: 0; }
pre { margin: 10px 0 12px; padding: 14px 18px; background: var(--codebg); border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; font-size: 15px; line-height: 1.55; white-space: pre; }
.note { color: var(--mut); font-size: 17px; }

/* promise */
.promise { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.promise > div { padding-top: 22px; border-top: 2px solid var(--ink); }
.promise p { color: var(--mut); }

/* results */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 24px; padding: 0; list-style: none; }
.stats li { padding: 4px 28px 0; border-left: 1px solid var(--line); }
.stats li:first-child { padding-left: 0; border-left: 0; }
.stats b { display: block; font-size: 44px; line-height: 1.1; letter-spacing: -.02em; }
.stats span { color: var(--mut); }
.callout { margin: 0 0 24px; padding: 2px 0 2px 18px; border-left: 3px solid var(--amber); max-width: 760px; }
.matrix { font-size: 16px; }
.matrix th, .matrix td { padding: 10px 10px 10px 0; white-space: nowrap; }
.matrix thead th { text-transform: none; letter-spacing: 0; font-size: 16px; color: var(--ink); line-height: 1.45; }
.matrix thead .when { color: var(--mut); font-weight: 400; }
.matrix thead .st { font-size: 14px; letter-spacing: .08em; font-weight: 600; }
.matrix tbody th a { color: var(--ink); text-decoration-color: var(--line); }
.matrix tbody th a:hover { color: var(--acc); }
.matrix tbody th { white-space: normal; min-width: 140px; max-width: 170px; }
.matrix tbody th { position: sticky; left: 0; background: var(--bg); padding-right: 18px; }
.st { display: inline-flex; align-items: center; gap: 6px; }
.st svg { width: 16px; height: 16px; flex: none; }
.s-named { color: var(--green); }
.s-flagged_unnamed, .s-known_gap, .s-false_no_room { color: var(--amber); }
.s-missed, .s-false_room, .s-FAIL, .s-yes { color: var(--red); }
.s-PASS, .s-correct, .s-no { color: var(--green); }
.s-na { color: var(--mut); }
.machine { margin: 0 0 56px; }
.machine h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: 26px; }
.machine h3 .badge { font-size: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.misses { margin: 18px 0 0; padding-left: 22px; color: var(--mut); }
.misses li { margin: 0 0 6px; }

/* checks page */
.toc { columns: 2; column-gap: 56px; margin: 0 0 8px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.toc li { break-inside: avoid; border-bottom: 1px solid var(--line); }
.toc a { display: flex; align-items: center; min-height: 48px; color: var(--ink); text-decoration: none; }
.check { padding: 56px 0; border-top: 1px solid var(--line); }
.check h2 { font-size: 32px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.check h2 code { font-size: 17px; font-weight: 400; color: var(--mut); }
.check .where { margin: 0 0 18px; color: var(--mut); font-size: 17px; font-weight: 600; }
.sample { margin-top: 18px; }
.sample .label { margin: 0; color: var(--mut); font-size: 15px; }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--mut); font-size: 16px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
footer a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .groups, .install, .promise { grid-template-columns: 1fr; }
  .promise > div { margin-bottom: 28px; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  nav .wrap { height: 64px; }
  .links a { padding: 0 8px; }
  .links .wide { display: none; }
  .brand { font-size: 18px; }
  .hero .wrap { gap: 32px; padding-top: 32px; padding-bottom: 92px; }
  .hero-fig .hero-video { margin-top: -60px; }
  .hero-fig .wrap { padding-bottom: 40px; }
  h1, .page-head h1 { font-size: 40px; }
  .page-head .wrap { padding-top: 32px; padding-bottom: 32px; }
  .toc-wrap .wrap { padding-top: 24px; }
  .lede { font-size: 19px; }
  .cmd { display: block; padding: 14px; }
  .cmd code { display: block; white-space: normal; word-break: break-all; }
  .copy { width: 100%; justify-content: center; margin-top: 12px; }
  .facts li { border: 0; padding: 0; margin: 0 0 4px; width: 100%; }
  .term { border-radius: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .term img { width: 784px; max-width: none; }
  .hero-video .term { overflow: hidden; }
  .hero-video video, .hero-video img { width: 100%; max-width: 100%; }
  section { padding: 52px 0; }
  h2 { font-size: 30px; }
  .intro { font-size: 19px; }
  .steps, .stats { grid-template-columns: 1fr; }
  .steps li, .stats li { padding: 18px 0; border-left: 0; border-top: 1px solid var(--line); }
  .steps li:first-child, .stats li:first-child { padding-top: 18px; }
  .defs > div { grid-template-columns: 1fr; gap: 4px; }
  .env thead { display: none; }
  .env tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .env th, .env td { display: block; border: 0; padding: 2px 0; }
  .env td::before { content: attr(data-label) ": "; color: var(--ink); font-weight: 600; }
  .toc { columns: 1; }
  .diagram svg { min-width: 940px; }
  .swipe { display: block; }
  .check h2 { font-size: 27px; }
}
@media (max-width: 640px) {
  .pin-note { left: -6px; top: auto; bottom: -22px; padding: 7px 10px 8px; border-radius: 10px; }
  .pin-note i { margin-bottom: 4px; font-size: 9px; }
  .pin-note b { font-size: 12px; }
  .pin-room { right: 10px; top: -13px; padding: 6px 11px; font-size: 11px; box-shadow: 0 0 0 5px rgba(86, 211, 100, .22), 0 0 16px 5px rgba(86, 211, 100, .35); }
  .hero-video .cap { margin-top: 36px; }
}
