/* voidwire.app prototype. Uses the Voidwire UI kit (assets/kit/, copied from brand/voidwire/ui, tokens 1.1.1).
   Dark by default; light only when the OS asks (prefers-color-scheme). No third-party anything. */
@import url("../kit/tokens.css");
@import url("../kit/fonts.css");
@import url("../kit/shapes.css");

/* ---- site tokens (derived from kit tokens only) ---- */
:root {
  --s-max: 1120px;
  --s-gutter: 32px;
  --s-text-strong: var(--vw-color-on-background);
  --s-text: color-mix(in srgb, var(--vw-color-on-background) 86%, var(--vw-color-on-surface-variant));
  --s-text-muted: var(--vw-color-on-surface-variant);
  --s-gold-text: var(--vw-color-primary);      /* gold as text: dark theme */
  --s-grid-line: color-mix(in srgb, var(--vw-color-outline-variant) 55%, transparent);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme=dark]) { --s-gold-text: var(--vw-color-inverse-primary); }
}
:root[data-theme=light] { --s-gold-text: var(--vw-color-inverse-primary); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--vw-color-background); color: var(--s-text);
  font: 400 17px/1.6 var(--vw-font-sans); font-feature-settings: "ss01";
}
img, svg { display: block; max-width: 100%; }
a { color: var(--vw-color-secondary); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: var(--vw-focus-ring-width) solid var(--vw-color-focus-ring); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { color: var(--s-text-strong); margin: 0; font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: 56px; line-height: 62px; letter-spacing: -0.025em; }
h2 { font-size: 36px; line-height: 44px; }
h3 { font-size: 20px; line-height: 28px; letter-spacing: 0; }
h4 { font-size: 16px; line-height: 24px; letter-spacing: 0; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 12px; }
code, kbd, samp, pre { font-family: var(--vw-font-mono); font-size: 0.88em; }
:not(pre) > code { background: var(--vw-color-surface-container-high); color: var(--s-text-strong);
  padding: 1px 6px; border-radius: 3px; overflow-wrap: anywhere; }
kbd { border: 1px solid var(--vw-color-outline); border-bottom-width: 2px; border-radius: 3px; padding: 0 5px; font-size: 0.82em; }
strong { color: var(--s-text-strong); font-weight: 600; }
.wrap { max-width: var(--s-max); margin: 0 auto; padding: 0 var(--s-gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- skip link ---- */
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 10px 16px;
  background: var(--vw-color-secondary); color: var(--vw-color-on-secondary); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---- eyebrow, lede ---- */
.eyebrow { font: 500 13px/20px var(--vw-font-mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--vw-color-secondary); margin: 0 0 14px; }
.lede { font-size: 20px; line-height: 32px; color: var(--s-text); max-width: 62ch; }
.muted { color: var(--s-text-muted); }
.small { font-size: 15px; line-height: 24px; }

/* ---- header ---- */
.band { height: 3px; background: var(--vw-color-outline-variant); position: relative; }
.band::before { content: ""; position: absolute; left: max(var(--s-gutter), calc((100% - var(--s-max)) / 2 + var(--s-gutter)));
  top: 0; width: 48px; height: 3px; background: var(--vw-color-relay); }
.site-header { border-bottom: 1px solid var(--vw-color-outline-variant); background: var(--vw-color-background); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--s-text-strong);
  font: 600 21px/1 var(--vw-font-sans); letter-spacing: 0.01em; margin-right: auto; padding: 6px 0; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand .mark-node { fill: var(--vw-color-node); } .brand .mark-wire { fill: var(--vw-color-wire); } .brand .mark-relay { fill: var(--vw-color-relay); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--s-text); text-decoration: none; font: 500 15px/20px var(--vw-font-sans); padding: 10px 12px; border-radius: 4px; }
.nav a:hover { color: var(--s-text-strong); background: var(--vw-color-surface-container); }
.nav a[aria-current=page] { color: var(--s-text-strong); box-shadow: inset 0 -2px 0 var(--vw-color-secondary); border-radius: 0; }
.nav .ext::after, a.ext::after { content: " ↗"; font-size: 0.85em; color: var(--s-text-muted); }
.nav .nav-dl { margin-left: 8px; }
.menu { display: none; }
.menu > summary { list-style: none; cursor: pointer; font: 500 13px/20px var(--vw-font-mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--s-text-strong); padding: 12px 14px; min-height: 48px; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--vw-color-outline); border-radius: 4px; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::before { content: "≡"; font-size: 18px; line-height: 1; }
.menu[open] > summary::before { content: "×"; }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; background: var(--vw-color-surface-container-low);
  border-bottom: 1px solid var(--vw-color-outline-variant); padding: 8px 20px 20px; }
.menu-panel a { display: flex; align-items: center; min-height: 48px; color: var(--s-text-strong); text-decoration: none;
  font-weight: 500; border-bottom: 1px solid var(--vw-color-outline-variant); }
.menu-panel a[aria-current=page] { color: var(--vw-color-secondary); }
.menu-panel a[aria-current=page]::before { content: "▸ "; white-space: pre; }

/* ---- buttons (chamfered, kit .vw-cut-frame) ---- */
.btn { --vw-cut: var(--vw-chamfer-md); display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; font: 600 16px/1 var(--vw-font-sans); text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn-primary { --vw-cut-fill: var(--vw-color-primary); --vw-cut-stroke: var(--vw-color-primary); color: var(--vw-color-on-primary); }
.btn-primary:hover { --vw-cut-fill: color-mix(in srgb, var(--vw-color-primary) 88%, white); }
.btn-secondary { --vw-cut-fill: var(--vw-color-background); --vw-cut-stroke: var(--vw-color-outline); color: var(--s-text-strong); }
.btn-secondary:hover { --vw-cut-fill: var(--vw-color-surface-container); --vw-cut-stroke: var(--vw-color-secondary); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; --vw-cut: var(--vw-chamfer-sm); }
.btn .arrow { font-family: var(--vw-font-mono); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---- sections ---- */
.section { padding: 96px 0; border-top: 1px solid var(--vw-color-outline-variant); }
.section:first-of-type { border-top: 0; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head p { margin-top: 16px; }
.page-head { padding: 80px 0 56px; border-bottom: 1px solid var(--vw-color-outline-variant);
  background:
    linear-gradient(var(--s-grid-line) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--s-grid-line) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: none; position: relative; }
.page-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 0%, var(--vw-color-background) 100%); pointer-events: none; }
.page-head > .wrap { position: relative; z-index: 1; }
.page-head h1 { max-width: 18ch; }
.page-head .lede { margin-top: 20px; }

/* ---- hero ---- */
.hero { padding: 88px 0 96px; position: relative; overflow: hidden;
  background:
    linear-gradient(var(--s-grid-line) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--s-grid-line) 1px, transparent 1px) 0 0 / 48px 48px; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 80% at 30% 40%, transparent 0%, var(--vw-color-background) 75%); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { max-width: 13ch; }
.hero .lede { margin-top: 24px; }
.hero .btn-row { margin-top: 36px; }
.hero-meta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 18px; font: 500 13px/20px var(--vw-font-mono); color: var(--s-text-muted); }
.hero-meta span::before { content: "■ "; color: var(--vw-color-outline); font-size: 9px; vertical-align: 2px; }
.hero-meta .ok::before { color: var(--vw-color-success); }

/* wire diagram */
.diagram { --vw-cut: var(--vw-chamfer-lg); --vw-cut-fill: color-mix(in srgb, var(--vw-color-surface-container-lowest) 92%, transparent);
  --vw-cut-stroke: var(--vw-color-outline-variant); padding: 28px 28px 22px; }
.diagram svg { width: 100%; height: auto; overflow: visible; }
.diagram .d-node { fill: var(--vw-color-surface-container-high); stroke: var(--vw-color-node); stroke-width: 1.5; }
.diagram .d-screen { fill: var(--vw-color-surface-container-lowest); stroke: var(--vw-color-outline); stroke-width: 1; }
.diagram .d-wire { stroke: var(--vw-color-wire); stroke-width: 3; fill: none; stroke-linecap: square; }
.diagram .d-wire-alt { stroke: var(--vw-color-outline); stroke-width: 2; fill: none; stroke-dasharray: 6 6; }
.diagram .d-relay { fill: var(--vw-color-surface-container); stroke: var(--vw-color-node); stroke-width: 1.5; }
.diagram .d-relay-core { fill: var(--vw-color-relay); }
.diagram .d-pkt { fill: var(--vw-color-wire); }
.diagram .d-lock { fill: none; stroke: var(--vw-color-success); stroke-width: 1.6; }
.diagram text { font-family: var(--vw-font-mono); font-size: 12px; fill: var(--s-text-muted); letter-spacing: .04em; }
.diagram .t-strong { fill: var(--s-text-strong); font-family: var(--vw-font-sans); font-size: 14px; font-weight: 600; letter-spacing: 0; }
.diagram .t-wire { fill: var(--vw-color-secondary); }
.diagram figcaption { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--vw-color-outline-variant);
  font: 400 13px/20px var(--vw-font-mono); color: var(--s-text-muted); }

/* ---- cards & grids ---- */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.card { --vw-cut: var(--vw-chamfer-lg); --vw-cut-fill: var(--vw-color-surface-container-low); --vw-cut-stroke: var(--vw-color-outline-variant);
  padding: 28px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card h3 { margin-bottom: 2px; }
.card p { color: var(--s-text); font-size: 16px; line-height: 26px; }
.card .card-foot { margin-top: auto; padding-top: 14px; }
.card-tight { padding: 22px; }
.icon-well { width: 40px; height: 40px; border-radius: var(--vw-component-icon-well-radius); display: grid; place-items: center;
  background: var(--vw-color-secondary-container); color: var(--vw-color-on-secondary-container); margin-bottom: 8px; flex: none; }
.icon-well svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 64px; }
.step-num { position: absolute; top: 22px; left: 28px; font: 500 13px/20px var(--vw-font-mono); color: var(--vw-color-secondary); letter-spacing: .08em; }
.step-num b { font-weight: 500; color: var(--s-text-strong); font-size: 28px; line-height: 28px; margin-right: 8px; vertical-align: -4px; }
.code-sample { font: 500 22px/1 var(--vw-font-mono); letter-spacing: .12em; color: var(--s-text-strong);
  --vw-cut: var(--vw-chamfer-sm); --vw-cut-fill: var(--vw-color-surface-container-lowest); --vw-cut-stroke: var(--vw-color-outline);
  padding: 12px 14px; display: inline-block; margin: 6px 0 2px; align-self: flex-start; }

/* promises list */
.promise { display: grid; grid-template-columns: 40px 1fr; gap: 4px 16px; padding: 24px 0; border-top: 1px solid var(--vw-color-outline-variant); }
.promise .icon-well { grid-row: span 2; margin: 2px 0 0; background: var(--vw-color-success-container); color: var(--vw-color-on-success-container); }
.promise h3 { font-size: 18px; line-height: 26px; }
.promise p { font-size: 16px; line-height: 26px; }
.promises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }

/* status panel */
.status { --vw-cut: var(--vw-chamfer-lg); --vw-cut-fill: var(--vw-color-surface-container-lowest); --vw-cut-stroke: var(--vw-color-outline);
  padding: 32px; display: grid; grid-template-columns: 220px 1fr; gap: 24px 40px; }
.status h2 { font-size: 24px; line-height: 32px; }
.status ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.status li { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: baseline; font-size: 16px; line-height: 26px; }

/* chips */
.chip { --vw-cut: var(--vw-chamfer-sm); display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px;
  font: 500 11px/1 var(--vw-font-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; align-self: flex-start;
  --vw-cut-fill: var(--vw-color-surface-container-high); --vw-cut-stroke: var(--vw-color-outline); color: var(--s-text-strong); }
.chip::after { content: ""; width: 6px; height: 6px; background: currentColor; flex: none; order: -1; }
.chip-ok { --vw-cut-fill: var(--vw-color-success-container); --vw-cut-stroke: color-mix(in srgb, var(--vw-color-success) 50%, transparent); color: var(--vw-color-on-success-container); }
.chip-test { --vw-cut-fill: var(--vw-color-warning-container); --vw-cut-stroke: color-mix(in srgb, var(--vw-color-warning) 45%, transparent); color: var(--vw-color-on-warning-container); }
.chip-soon { --vw-cut-fill: var(--vw-color-surface-container); --vw-cut-stroke: var(--vw-color-outline); color: var(--s-text-muted); }
.chip-soon::after { background: transparent; border: 1px solid currentColor; }
.chip-info { --vw-cut-fill: var(--vw-color-secondary-container); --vw-cut-stroke: color-mix(in srgb, var(--vw-color-secondary) 45%, transparent); color: var(--vw-color-on-secondary-container); }

/* VERIFY markers: review-only, visible on purpose; strip before publishing */
.verify { display: inline; font: 500 12px/18px var(--vw-font-mono); letter-spacing: 0; color: var(--vw-color-on-warning-container);
  background: color-mix(in srgb, var(--vw-color-warning-container) 70%, transparent);
  outline: 1px dashed var(--vw-color-warning); outline-offset: -1px; padding: 1px 6px; border-radius: 2px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone; text-transform: none; }

/* notice (callout) */
.notice { --vw-cut: var(--vw-chamfer-md); --vw-cut-fill: var(--vw-color-surface-container-low); --vw-cut-stroke: var(--vw-color-outline-variant);
  padding: 18px 20px 18px 56px; position: relative; font-size: 16px; line-height: 26px; }
.notice::after { content: "i"; position: absolute; left: 20px; top: 19px; width: 22px; height: 22px; border-radius: 2px;
  display: grid; place-items: center; font: 600 13px/1 var(--vw-font-mono); background: var(--vw-color-secondary-container); color: var(--vw-color-on-secondary-container); }
.notice-warn::after { content: "!"; background: var(--vw-color-warning-container); color: var(--vw-color-on-warning-container); }
.notice-warn { --vw-cut-stroke: color-mix(in srgb, var(--vw-color-warning) 40%, var(--vw-color-outline-variant)); }
.notice strong:first-child { display: block; margin-bottom: 2px; }

/* code block */
.code { --vw-cut: var(--vw-chamfer-md); --vw-cut-fill: var(--vw-color-surface-container-lowest); --vw-cut-stroke: var(--vw-color-outline-variant);
  margin: 0; min-width: 0; }
.code-label { display: flex; justify-content: space-between; gap: 12px; padding: 8px 16px; border-bottom: 1px solid var(--vw-color-outline-variant);
  font: 500 11px/16px var(--vw-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--s-text-muted); }
.code pre { margin: 0; padding: 16px; overflow-x: auto; font-size: 14px; line-height: 22px; color: var(--s-text-strong); white-space: pre-wrap; overflow-wrap: anywhere; }
.code pre .c { color: var(--s-text-muted); }
.code pre .p { color: var(--vw-color-secondary); user-select: none; }
.code pre .k { color: var(--vw-color-secondary); }
.cmd { user-select: all; }

/* hash */
.hash { font: 400 13px/20px var(--vw-font-mono); color: var(--s-text-strong); word-break: break-all; }
.file { font: 500 14px/20px var(--vw-font-mono); color: var(--s-text-strong); overflow-wrap: anywhere; }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 26px; }
caption { text-align: left; font: 500 13px/20px var(--vw-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--vw-color-secondary); padding-bottom: 12px; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--vw-color-outline-variant); }
thead th { font: 500 12px/18px var(--vw-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--s-text-muted);
  border-bottom: 1px solid var(--vw-color-outline); }
tbody th { color: var(--s-text-strong); font-weight: 600; }

/* can / can't see */
.seeing { display: grid; grid-template-columns: 1fr 1fr; gap: 0; --vw-cut: var(--vw-chamfer-lg);
  --vw-cut-fill: var(--vw-color-surface-container-low); --vw-cut-stroke: var(--vw-color-outline-variant); }
.seeing > div { padding: 28px 32px; }
.seeing > div + div { border-left: 1px solid var(--vw-color-outline-variant); }
.seeing h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 18px; }
.seeing h3 .mk { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 2px; font: 600 14px/1 var(--vw-font-mono); }
.seeing .can .mk { background: var(--vw-color-warning-container); color: var(--vw-color-on-warning-container); }
.seeing .cannot .mk { background: var(--vw-color-success-container); color: var(--vw-color-on-success-container); }
.seeing ul { margin: 0; padding: 0; list-style: none; }
.seeing li { padding: 12px 0 12px 22px; border-top: 1px solid var(--vw-color-outline-variant); position: relative; font-size: 16px; line-height: 25px; }
.seeing li::before { position: absolute; left: 0; top: 12px; font-family: var(--vw-font-mono); }
.seeing .can li::before { content: "+"; color: var(--vw-color-warning); }
.seeing .cannot li::before { content: "–"; color: var(--vw-color-success); }

/* lists */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 26px; position: relative; font-size: 16px; line-height: 26px; }
.ticks li::before { content: "▸"; position: absolute; left: 4px; top: 0; color: var(--vw-color-secondary); font-family: var(--vw-font-mono); }
.ticks.no li::before { content: "✕"; color: var(--vw-color-error); font-size: 13px; }
ol.num { margin: 0; padding: 0; list-style: none; counter-reset: n; display: grid; gap: 28px; }
ol.num > li { counter-increment: n; position: relative; padding-left: 60px; }
ol.num > li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 44px; font: 500 14px/28px var(--vw-font-mono); color: var(--vw-color-secondary);
  border-top: 2px solid var(--vw-color-wire); padding-top: 2px; height: fit-content; }
ol.num > li > * + * { margin-top: 8px; }
ol.num h3 { font-size: 18px; line-height: 28px; margin: 0; padding-top: 2px; }
ol.num .code { margin-top: 10px; }

/* platform cards (download) */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.jump a { --vw-cut: var(--vw-chamfer-sm); --vw-cut-fill: var(--vw-color-surface-container); --vw-cut-stroke: var(--vw-color-outline-variant);
  color: var(--s-text-strong); text-decoration: none; font: 500 14px/1 var(--vw-font-mono); padding: 0 14px; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.jump a:hover { --vw-cut-stroke: var(--vw-color-secondary); }
.jump a small { color: var(--s-text-muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.platform { scroll-margin-top: 24px; }
.platform:target { --vw-cut-stroke: var(--vw-color-secondary); --vw-cut-stroke-width: 2px; }
.platform.is-detected { order: -1; --vw-cut-stroke: var(--vw-color-secondary); }
.platform .detected { display: none; }
.platform.is-detected .detected { display: inline-flex; }
.platform-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.platform-head .req { font: 400 13px/20px var(--vw-font-mono); color: var(--s-text-muted); margin-top: 4px; }
.artifact { border-top: 1px solid var(--vw-color-outline-variant); padding-top: 16px; margin-top: 8px; display: grid; gap: 10px; }
.artifact .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.artifact dl { margin: 0; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 4px 12px; font-size: 14px; }
.artifact dt { font: 500 11px/20px var(--vw-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--s-text-muted); }
.artifact dd { margin: 0; }
.platform.is-soon { --vw-cut-fill: var(--vw-color-background); --vw-cut-stroke: var(--vw-color-outline-variant); }
.platform.is-soon .placeholder { border: 1px dashed var(--vw-color-outline); border-radius: 2px; padding: 14px 16px; color: var(--s-text-muted); font-size: 15px; line-height: 24px; }
.det-banner { display: none; }
.has-detect .det-banner { display: block; }

/* channels */
.channels { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.channel h3 { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* FAQ / details */
.faq-group + .faq-group { margin-top: 56px; }
.faq-group h2 { font-size: 24px; line-height: 32px; margin-bottom: 12px; }
details.qa { border-top: 1px solid var(--vw-color-outline-variant); }
details.qa:last-child { border-bottom: 1px solid var(--vw-color-outline-variant); }
details.qa > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 28px; gap: 16px; align-items: start;
  padding: 20px 4px; font: 600 18px/28px var(--vw-font-sans); color: var(--s-text-strong); }
details.qa > summary::-webkit-details-marker { display: none; }
details.qa > summary::after { content: "+"; font: 400 22px/28px var(--vw-font-mono); color: var(--vw-color-secondary); text-align: center; }
details.qa[open] > summary::after { content: "−"; }
details.qa > summary:hover { color: var(--vw-color-secondary); }
details.qa > div { padding: 0 48px 24px 4px; max-width: 78ch; }
details.qa > div p, details.qa > div li { font-size: 16px; line-height: 27px; }
details.tech { margin-top: 24px; --vw-cut: var(--vw-chamfer-md); --vw-cut-fill: var(--vw-color-surface-container-lowest); --vw-cut-stroke: var(--vw-color-outline-variant); }
details.tech > summary { cursor: pointer; padding: 16px 20px; font: 500 14px/20px var(--vw-font-mono); color: var(--vw-color-secondary); min-height: 48px; }
details.tech > div { padding: 0 20px 20px; }
.toc { position: sticky; top: 24px; align-self: start; font-size: 15px; }
.toc p { font: 500 12px/18px var(--vw-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--s-text-muted); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--vw-color-outline-variant); }
.toc a { display: block; padding: 7px 0 7px 16px; color: var(--s-text); text-decoration: none; margin-left: -1px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--s-text-strong); border-left-color: var(--vw-color-secondary); }
.with-toc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; }
.prose > * + * { margin-top: 20px; }
.prose h2 { margin-top: 72px; scroll-margin-top: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 36px; }
.prose > p, .prose > ul { max-width: 72ch; }

/* CTA band */
.cta-band { --vw-cut: var(--vw-chamfer-lg); --vw-cut-fill: var(--vw-color-surface-container-low); --vw-cut-stroke: var(--vw-color-outline-variant);
  padding: 48px; display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: center; }
.cta-band h2 { font-size: 32px; line-height: 40px; }
.cta-band p { margin-top: 10px; }

/* split (text + code) */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }

/* footer */
.site-footer { border-top: 1px solid var(--vw-color-outline-variant); margin-top: 0; padding: 56px 0 48px; background: var(--vw-color-surface-container-lowest); font-size: 15px; line-height: 24px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-footer h2 { font: 500 12px/18px var(--vw-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--s-text-muted); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer ul a { color: var(--s-text); text-decoration: none; display: inline-block; padding: 4px 0; }
.site-footer ul a:hover { color: var(--s-text-strong); text-decoration: underline; }
.no-track { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--vw-color-outline-variant); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  font: 400 13px/20px var(--vw-font-mono); color: var(--s-text-muted); }
.no-track b { color: var(--vw-color-success); font-weight: 500; }
.foot-brand p { margin-top: 12px; color: var(--s-text-muted); max-width: 34ch; }

/* ---- responsive ---- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu { display: block; }
  .site-header .wrap { position: relative; }
  .g5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  :root { --s-gutter: 20px; }
  body { font-size: 16px; }
  h1 { font-size: 40px; line-height: 46px; }
  h2 { font-size: 28px; line-height: 36px; }
  .lede { font-size: 18px; line-height: 28px; }
  .hero { padding: 48px 0 56px; }
  .hero .wrap, .split, .with-toc, .status, .cta-band { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap { gap: 40px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .page-head { padding: 48px 0 40px; }
  .g2, .g3, .g4, .platforms, .channels, .promises { grid-template-columns: minmax(0, 1fr); }
  .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seeing { grid-template-columns: minmax(0, 1fr); }
  .seeing > div { padding: 24px 22px; }
  .seeing > div + div { border-left: 0; border-top: 1px solid var(--vw-color-outline-variant); }
  .status { padding: 24px 22px; gap: 16px; }
  .status li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .status .chip { justify-self: start; }
  ol.num > li { padding-left: 0; }
  ol.num > li::before { position: static; display: block; margin-bottom: 10px; }
  .code-label { flex-wrap: wrap; row-gap: 2px; }
  .code-label > * { white-space: nowrap; }
  .code pre { font-size: 13px; line-height: 21px; padding: 14px; }
  .cta-band { padding: 32px 24px; }
  .cta-band h2 { font-size: 26px; line-height: 34px; }
  .toc { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .card { padding: 22px; }
  .step { padding-top: 58px; }
  .step-num { left: 22px; }
  .diagram { padding: 18px 16px 16px; }
  details.qa > div { padding-right: 4px; }
  .brand { font-size: 19px; }
  .brand svg { width: 30px; height: 30px; }
}
@media (max-width: 560px) {
  .g5 { grid-template-columns: minmax(0, 1fr); }
}
@media (forced-colors: active) {
  .btn, .chip, .card, .code, .notice, .status, .seeing, .cta-band, .jump a { border: 1px solid CanvasText; }
  .verify { outline-color: Highlight; }
}
@media print { .site-header, .menu, .skip, .site-footer { display: none; } body { background: #fff; color: #000; } }

/* ---- utilities (no inline styles: the CSP allows only same-origin stylesheets) ---- */
.reset-list { list-style: none; margin: 0; padding: 0; }
.inl { display: inline !important; margin: 0 4px !important; }
.ml-6 { margin-left: 6px; }
.mt-0 { margin-top: 0 !important; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }
.det-wrap { margin-top: 28px; max-width: 640px; }
.narrow-820 { max-width: 820px; } .narrow-900 { max-width: 900px; }
.section.sec-first { border-top: 0; padding-top: 64px; }
.section.sec-flush { border-top: 0; padding-top: 0; }
.section.sec-tight { border-top: 0; padding-top: 56px; padding-bottom: 56px; }
.hashbox > summary { list-style: none; cursor: pointer; display: inline-flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; word-break: normal; overflow-wrap: anywhere; min-height: 24px; color: var(--s-text-strong); }
.hashbox > summary::-webkit-details-marker { display: none; }
.hashbox > summary::after { content: "show full"; white-space: nowrap; font: 500 10px/1 var(--vw-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--vw-color-secondary); }
.hashbox[open] > summary::after { content: "hide"; }
.hashbox > code { display: block; margin-top: 6px; padding: 8px 10px; background: var(--vw-color-surface-container-lowest); border: 1px solid var(--vw-color-outline-variant); border-radius: 2px; }

/* Detected platform: its download becomes the one gold action on the page (JS only; without JS nothing is gold). */
.platform.is-detected .artifact .btn-secondary { --vw-cut-fill: var(--vw-color-primary); --vw-cut-stroke: var(--vw-color-primary); color: var(--vw-color-on-primary); }
/* Cards and panels inside long-form pages keep their own rhythm. */
.prose .card h3, .prose .seeing h3, .prose ol.num h3 { margin-top: 0; }

/* ======================================================================
   Revision 2 (launch framing, managed relays, pricing, request form)
   ====================================================================== */

/* Placeholders: values that don't exist yet ([VERSION], [SHA256]...). Blue dashed, unlike amber [VERIFY].
   Review only; a build step should fail if any .ph or .verify is left. */
.ph { display: inline; font: 500 0.82em/1.4 var(--vw-font-mono); letter-spacing: 0; color: var(--vw-color-on-secondary-container);
  background: color-mix(in srgb, var(--vw-color-secondary-container) 70%, transparent);
  outline: 1px dashed var(--vw-color-secondary); outline-offset: -1px; padding: 0 5px; border-radius: 2px; white-space: nowrap; text-transform: none; }
.file .ph, .hash .ph, pre .ph { font-size: 1em; }

/* footer security contact */
.foot-brand .foot-sec { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; color: var(--s-text); }
.foot-sec span { font: 500 12px/18px var(--vw-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--s-text-muted); }
.foot-sec a { overflow-wrap: anywhere; }

/* chips inside headings */
.relay-options h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card-feature { --vw-cut-stroke: var(--vw-color-secondary); }
.sep { margin: 0 10px; color: var(--s-text-muted); }

/* release strip (Download page head) */
.release-strip { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  font: 500 14px/22px var(--vw-font-mono); color: var(--s-text-muted); }
.release-strip .rs-ver { color: var(--s-text-strong); }

/* comparison table */
.cmp { --vw-cut: var(--vw-chamfer-lg); --vw-cut-fill: var(--vw-color-surface-container-low); --vw-cut-stroke: var(--vw-color-outline-variant); padding: 8px 8px 0; }
.cmp table { min-width: 680px; }
.cmp tr:last-child > * { border-bottom: 0; }
.cmp th[scope=row] { width: 24%; font-size: 15px; }
.cmp .hl { background: color-mix(in srgb, var(--vw-color-secondary-container) 35%, transparent); }
.cmp thead .hl { color: var(--vw-color-secondary); }
.cmp:focus-visible { outline-offset: 2px; }

/* pricing cards */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: stretch; }
.plan { gap: 6px; }
.plan-kind { font: 500 13px/20px var(--vw-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--vw-color-secondary); }
.plan .plan-price { font-size: 40px; line-height: 48px; letter-spacing: -0.02em; margin-top: 6px; }
.plan .plan-price .ph { font-size: 26px; line-height: 40px; padding: 0 8px; }
.plan .plan-sub { color: var(--s-text-muted); font-size: 15px; line-height: 22px; margin-bottom: 14px; }
.plan .ticks { margin-bottom: 24px; }
.plan .plan-cta { margin-top: auto; align-self: stretch; }
.plan-managed { --vw-cut-stroke: var(--vw-color-secondary); --vw-cut-stroke-width: 2px; }

/* request section + form */
.request { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.req-form { --vw-cut: var(--vw-chamfer-lg); --vw-cut-fill: var(--vw-color-surface-container-low); --vw-cut-stroke: var(--vw-color-outline-variant);
  padding: 32px; display: grid; gap: 22px; }
.form-title { font-size: 22px; line-height: 30px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; color: var(--s-text-strong); font-size: 16px; line-height: 24px; }
.field .opt { font-weight: 400; color: var(--s-text-muted); }
.field .hint { font-size: 14px; line-height: 20px; color: var(--s-text-muted); }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; font: 400 16px/24px var(--vw-font-sans); color: var(--s-text-strong);
  background: var(--vw-color-surface-container-lowest); border: 1px solid var(--vw-color-outline); border-radius: 4px; }
.field textarea { resize: vertical; min-height: 112px; }
.field input:hover, .field textarea:hover { border-color: var(--s-text-muted); }
.field input:focus-visible, .field textarea:focus-visible { outline: var(--vw-focus-ring-width) solid var(--vw-color-focus-ring); outline-offset: 1px; border-color: var(--vw-color-secondary); }
/* Invalid: after the user has interacted (no JS) or server-rendered (.is-invalid). Never colour alone: border + icon + text. */
.field input:user-invalid, .field textarea:user-invalid,
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--vw-color-error); border-width: 2px; padding: 11px 13px; }
.field-error { display: flex; gap: 8px; align-items: baseline; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--vw-color-error); }
.field-error span { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; border-radius: 2px; font: 600 12px/1 var(--vw-font-mono);
  background: var(--vw-color-error-container); color: var(--vw-color-on-error-container); }
.form-summary { border: 2px solid var(--vw-color-error); border-radius: 4px; padding: 16px 18px; background: color-mix(in srgb, var(--vw-color-error-container) 40%, transparent); }
.form-summary strong { display: block; color: var(--s-text-strong); }
.form-summary ul { margin: 8px 0 0; padding-left: 20px; }
.form-summary a { color: var(--s-text-strong); text-decoration-color: var(--vw-color-error); font-weight: 600; }
.form-actions { display: grid; gap: 12px; justify-items: start; }
button.btn { border: 0; background: none; }

/* pricing FAQ */
.faq-h { font-size: 24px; line-height: 32px; margin-bottom: 12px; }

/* result pages (request sent / not sent) */
.page-head.result { padding-bottom: 96px; }
.result-head { display: flex; align-items: center; gap: 14px; }
.result-head .eyebrow { margin: 0; }
.icon-well.is-ok { background: var(--vw-color-success-container); color: var(--vw-color-on-success-container); margin: 0; }
.icon-well.is-err { background: var(--vw-color-error-container); color: var(--vw-color-on-error-container); margin: 0; }
.result h1 { margin-top: 20px; }

/* nav has 6 links + Download now: tighten a little on narrower desktops */
@media (max-width: 1240px) { .nav a { padding: 10px 9px; } }

@media (max-width: 1080px) {
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
}
@media (max-width: 860px) {
  .request { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .req-form { padding: 24px 20px; }
  .plan .plan-price { font-size: 34px; line-height: 42px; }
  .page-head.result { padding-bottom: 64px; }
}
@media (forced-colors: active) {
  .ph { outline-color: Highlight; }
  .plan, .req-form, .cmp { border: 1px solid CanvasText; }
  .field input:user-invalid, .field.is-invalid input, .field.is-invalid textarea { border-color: Mark; }
}

/* ---------- Revision 3: real plans, mailto requests, terms ---------- */
.plans-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plan .plan-per { font-size: 18px; line-height: 24px; letter-spacing: 0; color: var(--s-text-muted); font-weight: 500; margin-left: 6px; }
.plan-note { max-width: 88ch; }
.req-mail { --vw-cut: var(--vw-chamfer-lg); display: grid; gap: 12px; justify-items: start; }
.req-mail .ticks { margin: 0 0 8px; }
.req-addr { font: 500 22px/30px var(--vw-font-mono); overflow-wrap: anywhere; }
.platform p.hash, .prose p.hash { font: 500 13px/20px var(--vw-font-mono); overflow-wrap: anywhere; color: var(--s-text-strong); }
.terms h2 { scroll-margin-top: 96px; }
@media (max-width: 860px) {
  .plans-2 { grid-template-columns: minmax(0, 1fr); }
  .req-addr { font-size: 18px; line-height: 26px; }
}
@media (max-width: 1080px) and (min-width: 861px) { .plans-2 { max-width: none; } }
@media (max-width: 860px) { .plans-2 { max-width: 560px; } }
