/* whatleaks.me: one stylesheet for every page. White paper with hairline rails, light headlines, one blue for
   whatleaks and one red for what leaks; dark sections for contrast. Chart colours are a validated ordinal ramp
   (#1e3a8a, #2563eb, #6ea8f7 on white). */

@font-face { font-family: 'Geist'; font-weight: 300 800; font-display: swap; src: url(/fonts/geist.woff2) format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-weight: 400 600; font-display: swap; src: url(/fonts/geistmono.woff2) format('woff2'); }

:root {
  color-scheme: light;
  --bg: #ffffff;
  --soft: #f7f7f7;
  --line: #ececec;
  --line-2: #e2e2e2;
  --ink: #0a0a0a;
  --ink-2: #404040;
  --ink-3: #737373;
  --blue: #2563eb;
  --blue-ink: #1d4ed8;
  --blue-deep: #1e3a8a;
  --blue-chart: #6ea8f7;
  --blue-300: #93c5fd;
  --blue-200: #bfdbfe;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --red: #dc2626;
  --red-50: #fef2f2;
  --green: #16a34a;
  --green-ink: #15803d;
  --dark: #121212;
  --dark-2: #1a1a1a;
  --dark-line: #2a2a2a;
  --term: #0b0d12;
  --term-line: #20242f;
  --term-fg: #e7e9ef;
  --term-dim: #8a90a0;
  --term-red: #ff7b7b;
  --term-green: #6fd896;
  --term-amber: #f4bd63;
  --term-blue: #8ab8ff;
  --term-violet: #b9a6ff;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --max: 1200px;
  --pad: 48px;
  --nav-h: 68px;
  --dots: radial-gradient(circle, transparent 1.6px, var(--blue-200) 1.7px, var(--blue-200) 2.4px, transparent 2.5px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
code, kbd, pre { font-family: var(--mono); }
::selection { background: var(--blue-100); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--max), 100% - 48px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; text-decoration: none; border-radius: 8px; }
.skip:focus { top: 12px; }
.nowrap { white-space: nowrap; }

/* ---------- announcement + nav ---------- */
.announce { background: var(--soft); border-bottom: 1px solid var(--line); text-align: center; padding: 9px 16px; font-size: 13px; line-height: 1.4; color: var(--ink); }
.announce a { text-decoration: none; }
.announce a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.announce .short { display: none; }

.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: rgba(255, 255, 255, .88); backdrop-filter: saturate(170%) blur(14px); -webkit-backdrop-filter: saturate(170%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .inner { width: min(var(--max), 100% - 48px); margin-inline: auto; height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 500 19px/1 var(--sans); letter-spacing: -.035em; color: var(--ink); justify-self: start; }
.brand svg { width: 24px; height: 24px; flex: none; }
.nav .links { display: flex; gap: 4px; }
.nav .links a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; padding: 7px 13px; border-radius: 999px; transition: color .15s, background .15s; }
.nav .links a:hover { color: var(--ink); background: var(--soft); }
.nav .links a[aria-current='page'] { color: var(--ink); background: var(--soft); }
.nav .right { display: flex; align-items: center; gap: 8px; justify-self: end; }
.menu-btn { display: none; background: none; border: 0; color: var(--ink); padding: 8px; margin-right: -8px; cursor: pointer; }
.nav .links .m-only { display: none; }
.menu-btn svg { width: 24px; height: 24px; }
@media (max-width: 900px) {
  .nav .inner { grid-template-columns: 1fr auto; }
  .nav .links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 2px; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 18px; box-shadow: 0 20px 30px -24px rgba(0, 0, 0, .25); }
  .nav.open .links { display: flex; }
  .nav.open .links .m-only { display: block; }
  .nav .links a { padding: 13px 14px; font-size: 17px; border-radius: 10px; }
  .nav .right .btn { display: none; }
  .menu-btn { display: block; }
}

/* ---------- buttons, pills ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: 999px; font: 500 14.5px/1 var(--sans); text-decoration: none; border: 1px solid var(--line-2); color: var(--ink); background: #fff; cursor: pointer; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn:hover { background: var(--soft); border-color: #cfcfcf; }
.btn.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.dark:hover { background: #2a2a2a; }
.btn.blue { color: var(--blue-ink); border-color: var(--blue-300); }
.btn.blue:hover { background: var(--blue-50); border-color: var(--blue); }
.btn.lg { height: 50px; padding: 0 24px; font-size: 15.5px; }
.btn.sm { height: 36px; padding: 0 15px; font-size: 14px; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translate(2px, 0); }
.btn.cmdbtn { font: 450 14.5px/1 var(--mono); gap: 10px; }
.btn.cmdbtn .p { color: var(--blue); }
.btn.cmdbtn .arg { color: var(--ink-3); }
.btn.cmdbtn .ic { color: var(--ink-3); display: inline-grid; }
.btn.cmdbtn[data-done] .ic { color: var(--green-ink); }
.link { color: var(--blue-ink); text-decoration: none; font-weight: 500; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13.5px; color: var(--ink-2); background: #fff; white-space: nowrap; }
.pill.mono { font: 450 12.5px/1 var(--mono); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }

/* ---------- type ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
.h1 { font: 400 clamp(44px, 6.6vw, 80px)/1.0 var(--sans); letter-spacing: -.05em; }
.h2 { font: 400 clamp(34px, 4.3vw, 54px)/1.04 var(--sans); letter-spacing: -.045em; }
.h3 { font: 400 clamp(24px, 2.3vw, 30px)/1.15 var(--sans); letter-spacing: -.035em; }
.h1 em, .h2 em, .h3 em { font-style: normal; color: var(--blue); }
.lede { font-size: clamp(16.5px, 1.45vw, 18.5px); line-height: 1.6; color: var(--ink-2); max-width: 58ch; text-wrap: pretty; margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 450 12.5px/1 var(--mono); color: var(--ink-3); letter-spacing: .02em; text-transform: uppercase; }
.eyebrow .n { color: var(--blue); }
p code, li code, td code, dd code, h3 code, .lede code, .fine code { font-size: .86em; background: var(--soft); border: 1px solid var(--line); padding: .1em .38em; border-radius: 6px; color: var(--ink); }
.muted { color: var(--ink-3); }

/* ---------- bands and rails ---------- */
.band { border-top: 1px solid var(--line); }
.band > .wrap { position: relative; border-inline: 1px solid var(--line); padding: 96px var(--pad); }
.band > .wrap::before, .band > .wrap::after { content: ''; position: absolute; top: -3px; width: 5px; height: 5px; background: #cfcfcf; border-radius: 50%; }
.band > .wrap::before { left: -3px; }
.band > .wrap::after { right: -3px; }
.band.head > .wrap { padding-top: 88px; padding-bottom: 56px; }
.band.head .row { display: flex; justify-content: space-between; align-items: end; gap: 28px; flex-wrap: wrap; }
.band.head .lede { margin-top: 20px; }
.band.tight > .wrap { padding-top: 28px; padding-bottom: 28px; }
.band.flush > .wrap { padding-top: 0; padding-bottom: 0; }

/* dark band */
.band.dark { background: var(--dark); color: #fff; border-top-color: var(--dark); }
.band.dark > .wrap { border-inline-color: var(--dark-line); }
.band.dark > .wrap::before, .band.dark > .wrap::after { background: #3a3a3a; }
.band.dark .h2 em { color: var(--blue-300); }
.band.dark .lede { color: #a3a3a3; }
.band.dark .eyebrow { color: #8a8a8a; }
.band.dark .eyebrow .n { color: var(--blue-300); }
.band.dark + .band { border-top-color: var(--dark); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero canvas.field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero > .wrap { position: relative; z-index: 1; border-inline: 1px solid var(--line); padding: 112px var(--pad) 96px; text-align: center; }
.hero .kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); text-decoration: none; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .85); }
.hero .kicker b { color: var(--ink); font-weight: 600; }
.hero .kicker:hover { color: var(--ink); }
.hero .kicker .arrow { transition: transform .15s; }
.hero .kicker:hover .arrow { transform: translateX(2px); }
.show-sm { display: none; }
.hero h1 { margin: 22px auto 0; max-width: 13em; }
.hero .lede { margin: 22px auto 0; max-width: 40em; font-size: clamp(17px, 1.5vw, 19.5px); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.hero .fine { margin: 18px 0 0; font-size: 13.5px; color: var(--ink-3); }

/* the blue plate around the terminal, like a framed demo */
.stage { margin: 72px auto 0; max-width: 1000px; text-align: left; }
.plate { position: relative; border-radius: 26px; padding: 28px; background-color: var(--blue); background-image: radial-gradient(circle, transparent 1.7px, rgba(255, 255, 255, .32) 1.8px, rgba(255, 255, 255, .32) 2.6px, transparent 2.7px); background-size: 15px 15px; background-position: 4px 4px; box-shadow: 0 0 0 7px var(--blue-100); }
.term { background: var(--term); color: var(--term-fg); border-radius: 14px; overflow: hidden; font: 400 13px/1.75 var(--mono); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 24px 50px -24px rgba(9, 20, 60, .55); }
.term .bar { display: flex; align-items: center; gap: 14px; padding: 11px 12px 11px 16px; border-bottom: 1px solid var(--term-line); }
.term .lights { display: flex; gap: 7px; flex: none; }
.term .lights i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.term .lights i:nth-child(2) { background: #febc2e; }
.term .lights i:nth-child(3) { background: #28c840; }
.term .tabs { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--term-line); border-radius: 999px; overflow-x: auto; scrollbar-width: none; }
.term .tabs::-webkit-scrollbar { display: none; }
.term .tabs button { font: 500 12.5px/1 var(--sans); color: var(--term-dim); background: none; border: 0; padding: 7px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: color .15s, background .15s; }
.term .tabs button:hover { color: var(--term-fg); }
.term .tabs button[aria-selected='true'] { background: #fff; color: var(--ink); }
.term .chip { margin-left: auto; flex: none; font: 450 11.5px/1 var(--mono); color: var(--term-dim); white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.term .chip .on { width: 6px; height: 6px; border-radius: 50%; background: var(--term-green); box-shadow: 0 0 0 3px rgba(111, 216, 150, .15); }
.term pre { margin: 0; padding: 22px 24px 26px; overflow-x: auto; white-space: pre; tab-size: 2; scrollbar-width: thin; scrollbar-color: #2b3040 transparent; }
.term [role='tabpanel'][hidden] { display: none; }
.term .p { color: var(--term-blue); user-select: none; }
.term .c { color: #fff; }
.term .dim { color: var(--term-dim); }
.term .b { color: #fff; font-weight: 600; }
.term .r { color: var(--term-red); }
.term .g { color: var(--term-green); }
.term .a { color: var(--term-amber); }
.term .bl { color: var(--term-blue); }
.term .v { color: var(--term-violet); }
.stage .caption { display: flex; justify-content: center; gap: 6px 18px; flex-wrap: wrap; margin-top: 24px; font-size: 13.5px; color: var(--ink-3); text-align: center; }
.stage .caption a { color: var(--ink-2); white-space: nowrap; }
.stage .caption code { font-size: .92em; color: var(--ink-2); }

/* ---------- tested-with strip ---------- */
.strip { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); border: 1px solid var(--line-2); border-radius: 6px; background: #fff; }
.strip > div { padding: 22px 22px; display: flex; flex-direction: column; justify-content: center; min-height: 92px; }
.strip > div + div { border-left: 1px solid var(--line-2); align-items: center; text-align: center; }
.strip .lead { font-size: 15px; line-height: 1.4; color: var(--ink); }
.strip .lead span { color: var(--blue); }
.strip .tool b { font: 600 21px/1 var(--sans); letter-spacing: -.035em; color: #4d4d4d; }
.strip .tool small { margin-top: 7px; font: 450 11.5px/1 var(--mono); color: var(--ink-3); }

/* ---------- split rows ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 72px; align-items: center; }
.split .lede { margin-top: 20px; }
.split .pills { margin-top: 26px; }
.split .more { margin-top: 30px; }

/* dark code window (payloads) */
.window { background: var(--term); color: var(--term-fg); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(10, 10, 20, .5); }
.window-frame { padding: 7px; background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 20px; }
.window .bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--term-line); font: 450 12px/1.3 var(--mono); color: var(--term-dim); }
.window .bar .lights { display: flex; gap: 7px; }
.window .bar .lights i { width: 10px; height: 10px; border-radius: 50%; background: #3a3f4d; }
.window .bar b { color: var(--term-fg); font-weight: 500; overflow-wrap: anywhere; }
.window .bar .right { margin-left: auto; white-space: nowrap; }
.window pre { margin: 0; padding: 20px 22px 22px; font: 400 13px/1.75 var(--mono); overflow-x: auto; white-space: pre; }
.window pre .k { color: #c9cdd8; }
.window pre .s { color: #9fd3a8; }
.window pre .n { color: #f4bd63; }
.window pre .al { color: var(--term-violet); }
.window pre .cm { color: #6b7180; }
.window pre .leak { display: inline-block; background: rgba(255, 123, 123, .14); color: var(--term-red); border-radius: 4px; padding: 0 6px; margin-left: -6px; }
.window pre .leak .k, .window pre .leak .s { color: var(--term-red); }
.window .foot { border-top: 1px solid var(--term-line); padding: 13px 16px; font-size: 13px; line-height: 1.5; color: #b3b8c4; display: flex; gap: 10px; align-items: flex-start; }
.window .foot .mark { color: var(--term-red); font-family: var(--mono); }
.window .foot code { color: #fff; background: #1c2130; border: 0; padding: .05em .35em; border-radius: 4px; font-size: .9em; }

/* ---------- feature cards ---------- */
.grid { display: grid; gap: 10px; }
.grid > *, .split > *, .faqsplit > *, .cta > * { min-width: 0; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c12 { grid-template-columns: 5fr 7fr; }
.frame { background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 10px; padding: 6px; }
.frame > .card { background: #fff; border: 1px solid var(--blue-100); border-radius: 6px; padding: 30px 30px 32px; height: 100%; }
.fcard { display: flex; flex-direction: column; }
.fcard .top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.fcard .h3 { font-size: clamp(26px, 2.5vw, 32px); }
.fcard > p { margin: 14px 0 0; color: var(--ink-2); font-size: 16.5px; line-height: 1.55; max-width: 46ch; }
.fcard .pills { margin-top: 16px; }
.fcard .pill { height: 28px; font-size: 13px; }
.vis { margin-top: 28px; flex: 1; display: grid; place-items: center; border-radius: 6px; padding: 28px 22px; background-color: #fbfdff; background-image: var(--dots); background-size: 14px 14px; border: 1px solid var(--blue-100); min-height: 260px; }
.vis > * { width: 100%; max-width: 440px; }
.vis svg { width: 100%; height: auto; }
.vis.art-vis { padding: 0; background: #fff; place-items: stretch; overflow: hidden; min-height: 0; aspect-ratio: 16 / 9; flex: none; }
.vis.art-vis > svg { max-width: none; width: 100%; height: 100%; }

/* mini UI panels inside .vis */
.panel { background: #fff; border: 1px dashed var(--blue-300); border-radius: 8px; box-shadow: 0 0 0 4px #fff; overflow: hidden; }
.panel .ph { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); font: 450 12px/1.3 var(--mono); color: var(--ink-3); }
.panel .ph b { color: var(--ink); font-weight: 500; }
.panel .ph .ok { color: var(--blue-ink); background: var(--blue-50); border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.dest { padding: 6px 14px 10px; }
.dest .r { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dest .r:last-child { border-bottom: 0; }
.dest .host { font: 500 13px/1.3 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.dest .meta { font: 450 12px/1.3 var(--mono); color: var(--ink-3); text-align: right; white-space: nowrap; }
.dest .cat { font-size: 12.5px; color: var(--ink-3); }
.dest .cat.t { color: #b45309; }
.dest .barline { grid-column: 1 / -1; height: 6px; border-radius: 0 3px 3px 0; background: var(--blue); }
.dest .barline.small { background: var(--blue-chart); }
.tl { list-style: none; margin: 0; padding: 4px 14px 6px; }
.tl li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 11px 0; border-bottom: 1px solid var(--line); }
.tl li:last-child { border-bottom: 0; }
.tl .mk { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; background: var(--blue); }
.tl .mk.red { background: var(--red); }
.tl .mk.green { background: var(--green); }
.tl .what { font-size: 14px; color: var(--ink); line-height: 1.4; }
.tl .what code { font: 450 12.5px/1.4 var(--mono); background: none; border: 0; padding: 0; overflow-wrap: anywhere; }
.tl .what small { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.tl .st { font: 500 12.5px/1.5 var(--mono); white-space: nowrap; color: var(--ink-2); }
.tl .st.red { color: var(--red); }
.tl .st.green { color: var(--green-ink); }
.redx { padding: 6px 14px 10px; }
.redx .r { display: grid; grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr); gap: 8px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font: 450 12px/1.4 var(--mono); }
.redx .r:last-child { border-bottom: 0; }
.redx .from { color: var(--ink-3); overflow-wrap: anywhere; }
.redx .from s { color: var(--red); text-decoration-color: rgba(220, 38, 38, .5); }
.redx .to { color: var(--ink); overflow-wrap: anywhere; }
.redx .to i { font-style: normal; color: var(--blue-ink); background: var(--blue-50); border-radius: 4px; padding: 0 3px; }
.redx .arr { color: var(--blue-300); text-align: center; }

/* ---------- measured ---------- */
.stat { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-height: 100%; }
.stat .num { font: 400 clamp(84px, 10vw, 136px)/.9 var(--sans); letter-spacing: -.06em; color: var(--blue); }
.stat .cap { margin-top: 18px; color: var(--ink-2); font-size: 16px; max-width: 32ch; }
.stat .vs { margin-top: 22px; display: grid; gap: 8px; width: 100%; }
.stat .vs div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-3); padding-top: 8px; border-top: 1px solid var(--line); }
.stat .vs b { color: var(--ink); font-weight: 500; }
.facts3 .card .h3 { font-size: 22px; }
.facts3 .card .big { font: 400 44px/1 var(--sans); letter-spacing: -.045em; color: var(--ink); }
.facts3 .card p { margin: 12px 0 0; color: var(--ink-2); font-size: 15px; }

.viz { position: relative; }
.viz .vhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.viz .vhead .h3 { font-size: 22px; }
.viz .vhead .sub { margin: 6px 0 0; font-size: 14px; color: var(--ink-3); }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--soft); }
.seg button { font: 500 13px/1 var(--sans); color: var(--ink-3); background: none; border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.seg button[aria-pressed='true'] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 0 0 1px var(--line-2); }
.bars { position: relative; margin-top: 26px; }
.bars .grid-lines { position: absolute; inset: 0 56px 22px 132px; pointer-events: none; }
.bars .grid-lines i { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.bars .grid-lines i:first-child { background: var(--line-2); }
.bars .row { position: relative; display: grid; grid-template-columns: 132px minmax(0, 1fr) 56px; align-items: center; min-height: 56px; outline: none; border-radius: 6px; }
.bars .row .name { font-size: 14.5px; color: var(--ink-2); padding-right: 14px; }
.bars .row.hl .name { color: var(--ink); font-weight: 600; }
.bars .row .track { position: relative; height: 20px; }
.bars .row .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 0 4px 4px 0; background: #a3a3a3; transition: width 1s cubic-bezier(.2, .7, .2, 1); }
.bars .row.hl .fill { background: var(--blue); }
.bars .row .val { position: absolute; top: 50%; left: 0; transform: translateY(-50%); padding-left: 10px; font: 500 14.5px/1 var(--sans); color: var(--ink); white-space: nowrap; transition: left 1s cubic-bezier(.2, .7, .2, 1); }
.bars .row:hover .fill, .bars .row:focus-visible .fill { filter: brightness(1.08); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line-2); }
.bars .row:focus-visible { background: var(--soft); }
.bars .axis { display: grid; grid-template-columns: 132px minmax(0, 1fr) 56px; height: 22px; }
.bars .axis .ticks { position: relative; font: 450 11.5px/22px var(--mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.bars .axis .ticks span { position: absolute; transform: translateX(-50%); }
.bars .axis .ticks span:first-child { transform: none; }
.viz .note { margin: 16px 0 0; font-size: 13.5px; color: var(--ink-3); }
.tip { position: absolute; z-index: 5; pointer-events: none; opacity: 0; transition: opacity .12s; background: #fff; color: var(--ink); border: 1px solid var(--line-2); box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .3); border-radius: 10px; padding: 10px 12px; min-width: 180px; max-width: 260px; font-size: 13px; }
.tip .v { font: 600 16px/1.2 var(--sans); letter-spacing: -.01em; }
.tip .k { display: flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--ink-2); }
.tip .k i { width: 12px; height: 2px; border-radius: 1px; background: #a3a3a3; flex: none; }
.tip .k i.blue { background: var(--blue); }
.tip .s { margin-top: 4px; color: var(--ink-3); }
details.table-view { margin-top: 14px; font-size: 13.5px; }
details.table-view summary { cursor: pointer; color: var(--ink-3); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
details.table-view summary::-webkit-details-marker { display: none; }
details.table-view summary::before { content: '+'; font: 500 14px/1 var(--mono); }
details.table-view[open] summary::before { content: '−'; }
details.table-view summary:hover { color: var(--ink); }

/* stacked outcome bars (benchmark): ordinal one-hue ramp; the last segment is "silently missed" */
.stack-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; font-size: 13px; color: var(--ink-2); }
.stack-legend span { display: inline-flex; align-items: center; gap: 7px; }
.stack-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.o-payload { background: #1e3a8a; }
.o-request { background: #2563eb; }
.o-host { background: #6ea8f7; }
.o-missed { background: #f0f0f0; box-shadow: inset 0 0 0 1px var(--line-2); }
.stacks { margin-top: 18px; display: grid; gap: 6px; }
.stacks .row { display: grid; grid-template-columns: 132px minmax(0, 1fr) 92px; align-items: center; min-height: 46px; }
.stacks .row .name { font-size: 14px; color: var(--ink-2); padding-right: 14px; }
.stacks .row.hl .name { color: var(--ink); font-weight: 600; }
.stacks .bar { display: flex; gap: 2px; height: 20px; }
.stacks .seg-o { height: 100%; outline: none; cursor: default; transition: filter .15s; min-width: 0; }
.stacks .seg-o:last-child { border-radius: 0 4px 4px 0; }
.stacks .seg-o.missed { background: #f0f0f0; box-shadow: inset 0 0 0 1px var(--line-2); }
.stacks .seg-o:hover, .stacks .seg-o:focus-visible { filter: brightness(1.12); }
.stacks .row .val { text-align: right; font: 500 13.5px/1.2 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.stacks .row .val small { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 400; }

/* ---------- dark cards (how it works) ---------- */
.dcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.dcard { background: #fff; color: var(--ink); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; }
.dcard .art { aspect-ratio: 16 / 9; overflow: hidden; }
.dcard .art svg { width: 100%; height: 100%; }
.dcard .txt { padding: 22px 26px 28px; }
.dcard .lbl { font: 450 12px/1 var(--mono); color: var(--ink-3); letter-spacing: .02em; }
.dcard h3 { margin-top: 12px; font: 400 23px/1.2 var(--sans); letter-spacing: -.03em; }
.dcard p { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.dcard p code { background: var(--soft); }
.dcard.blue { background: var(--blue); color: #fff; }
.dcard.blue .lbl { color: rgba(255, 255, 255, .72); }
.dcard.blue p { color: rgba(255, 255, 255, .88); }
.dcard.blue p code { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .2); color: #fff; }
/* dot-matrix art: classes set per card colour */
svg .g { fill: none; stroke: var(--blue-100); stroke-width: 1.1; }
svg .f { fill: var(--blue); }
svg .l { fill: var(--blue-300); }
svg .o { fill: none; stroke: var(--blue); stroke-width: 1.3; }
svg .x { fill: var(--red); }
.dcard.blue svg .g { stroke: rgba(255, 255, 255, .2); }
.dcard.blue svg .f { fill: #fff; }
.dcard.blue svg .l { fill: rgba(255, 255, 255, .55); }
.dcard.blue svg .o { stroke: #fff; }
.dcard.blue svg .x { fill: #ffb4b4; }

/* ---------- FAQ accordion ---------- */
.faqsplit { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.faqsplit .side .lede { margin-top: 20px; }
.faqsplit .side .btn { margin-top: 28px; }
.faqsplit .side .art { margin-top: 56px; border: 1px solid var(--blue-100); border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 9; max-width: 440px; }
.faqsplit .side .art svg { width: 100%; height: 100%; }
.acc { display: grid; gap: 10px; }
.acc details { background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 10px; padding: 5px; }
.acc summary { list-style: none; cursor: pointer; background: #fff; border: 1px solid var(--blue-100); border-radius: 6px; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 16px; line-height: 1.4; color: var(--ink); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font: 400 18px/1 var(--sans); color: var(--ink-2); transition: transform .2s; }
.acc details[open] summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc .a { background: #fff; border: 1px solid var(--blue-100); border-top: 0; border-radius: 0 0 6px 6px; padding: 2px 20px 20px; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.acc .a p { margin: 0; }
.acc .a p + p { margin-top: 10px; }

/* ---------- CTA card ---------- */
.cta { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: center; border-radius: 10px; padding: 44px; background-color: #fbfdff; background-image: var(--dots); background-size: 15px 15px; border: 1px solid var(--blue-100); box-shadow: 0 0 0 6px var(--blue-50); }
.cta .h2 { font-size: clamp(32px, 3.8vw, 48px); }
.cta .lede { margin-top: 18px; background: rgba(251, 253, 255, .85); }
.cta .box { background: #fff; border: 1px solid var(--blue-100); border-radius: 10px; padding: 26px; box-shadow: 0 0 0 6px var(--blue-50); text-align: center; }
.cta .box .big { font: 400 15px/1.4 var(--sans); color: var(--ink-2); }
.cta .box .cmdline { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 8px 12px 16px; font: 450 14px/1.3 var(--mono); text-align: left; }
.cta .box .cmdline .p { color: var(--blue); }
.cta .box .cmdline .arg { color: var(--ink-3); }
.cta .box .cmdline button { flex: none; display: grid; place-items: center; width: 34px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-3); cursor: pointer; }
.cta .box .cmdline button:hover { background: var(--soft); color: var(--ink); }
.cta .box .cmdline button svg { width: 16px; height: 16px; }
.cta .box .cmdline button[data-done] { color: var(--green-ink); }
.cta .box .btn { width: 100%; margin-top: 12px; }
.cta .box .alt { margin-top: 14px; font-size: 13.5px; color: var(--ink-3); }

/* ---------- footer (dark) ---------- */
footer { background: var(--dark); color: #d4d4d4; font-size: 14.5px; }
footer > .wrap { border-inline: 1px solid var(--dark-line); padding: 64px var(--pad) 0; position: relative; }
footer .top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid var(--dark-line); }
footer .brand { color: #fff; }
footer .blurb { margin: 16px 0 0; max-width: 40ch; color: #d4d4d4; line-height: 1.6; }
footer .clean { display: inline-flex; align-items: center; gap: 9px; color: #d4d4d4; font-size: 13.5px; align-self: flex-end; }
footer .clean .dot { color: #22c55e; }
footer .cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding: 40px 0 48px; }
footer h4 { font: 500 14.5px/1 var(--sans); color: #fff; margin: 0 0 18px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
footer a { text-decoration: none; color: #bdbdbd; }
footer a:hover { color: #fff; }
footer .legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 0; border-top: 1px solid var(--dark-line); font-size: 13px; color: #9a9a9a; }
footer .mark { padding: 28px 0 36px; }
footer canvas.wordmark { width: 100%; height: auto; display: block; }

/* ---------- long-form pages (docs, benchmark, faq) ---------- */
.page-head > .wrap { padding: 88px var(--pad) 64px; }
.page-head .h1 { font-size: clamp(42px, 5.6vw, 68px); max-width: 14em; }
.page-head .lede { margin-top: 22px; }
.page-head .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 32px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.facts .card .num { font: 400 56px/1 var(--sans); letter-spacing: -.05em; color: var(--ink); }
.facts .card .num.acc { color: var(--blue); }
.facts .card p { margin: 12px 0 0; color: var(--ink-2); font-size: 15px; }
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; }
.toc { position: sticky; top: calc(var(--nav-h) + 28px); align-self: start; font-size: 14px; }
.toc h4 { font: 450 12px/1 var(--mono); color: var(--ink-3); margin: 0 0 14px; text-transform: uppercase; letter-spacing: .02em; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 6px 0 6px 14px; color: var(--ink-3); text-decoration: none; border-left: 1px solid var(--line-2); transition: color .15s, border-color .15s; }
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--ink); border-left-color: var(--blue); }
.prose { max-width: 780px; min-width: 0; }
.prose > section { margin-bottom: 76px; }
.prose > section:last-child { margin-bottom: 0; }
.prose > section.qa { margin-bottom: 12px; }
.prose .viz h3, .viz .vhead .h3 { margin: 0; }
.prose h2 { font: 400 38px/1.08 var(--sans); letter-spacing: -.04em; margin: 0 0 20px; }
.prose h3 { font: 500 18px/1.35 var(--sans); letter-spacing: -.015em; margin: 34px 0 10px; }
.prose p, .prose li, .prose dd { color: var(--ink-2); font-size: 16.5px; line-height: 1.65; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--blue); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--blue-ink); text-decoration: none; font-weight: 500; }
.prose a:hover { text-decoration: underline; text-underline-offset: 3px; }
.table-wrap { overflow-x: auto; margin: 20px 0 24px; border: 1px solid var(--line-2); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font: 500 12px/1.3 var(--mono); color: var(--ink-3); background: var(--soft); white-space: nowrap; }
td { color: var(--ink-2); }
td:first-child { color: var(--ink); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.hl td { color: var(--ink); background: var(--blue-50); }
tr.hl td:first-child { box-shadow: inset 2px 0 var(--blue); font-weight: 600; }
td.w { color: var(--blue-ink); font-weight: 600; }
.code { position: relative; margin: 16px 0 22px; border-radius: 12px; background: var(--term); }
.code pre { margin: 0; padding: 16px 20px; font: 400 13.5px/1.7 var(--mono); color: var(--term-fg); overflow-x: auto; }
.code pre .c { color: var(--term-dim); }
.code pre .p { color: var(--term-blue); user-select: none; }
.code .copy { position: absolute; top: 8px; right: 8px; background: #1f2433; border: 0; border-radius: 7px; color: #cfd3de; font: 500 12px/1 var(--sans); padding: 7px 10px; cursor: pointer; opacity: 0; transition: opacity .15s; }
.code:hover .copy, .code .copy:focus-visible { opacity: 1; }
.code .copy[data-done] { color: var(--term-green); }
.callout { border: 1px solid var(--blue-100); background: var(--blue-50); padding: 14px 18px; margin: 20px 0 24px; border-radius: 10px; }
.callout p:last-child { margin-bottom: 0; }
.callout.warn { border-color: #fecaca; background: var(--red-50); }
dl.opts { margin: 16px 0 24px; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
dl.opts > div { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 16px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
dl.opts > div:last-child { border-bottom: 0; }
dl.opts dt { font: 450 13px/1.6 var(--mono); color: var(--ink); }
dl.opts dd { margin: 0; font-size: 15px; }

/* faq page: each answer in a card */
.qa { background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 10px; padding: 5px; margin-bottom: 12px; }
.qa > h2, .qa > .a { background: #fff; border: 1px solid var(--blue-100); }
.qa > h2 { font: 400 21px/1.35 var(--sans) !important; letter-spacing: -.02em !important; margin: 0 !important; padding: 18px 22px 0; border-bottom: 0; border-radius: 6px 6px 0 0; }
.qa > .a { border-top: 0; border-radius: 0 0 6px 6px; padding: 10px 22px 20px; }
.qa .a p { margin: 0 0 10px; }
.qa .a p:last-child { margin-bottom: 0; }

/* 404 */
.lost > .wrap { min-height: calc(100vh - var(--nav-h) - 260px); display: grid; align-content: center; justify-items: center; text-align: center; }
.lost .row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 32px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .bars .row .fill, .bars .row .val { transition: none; } }

/* ---------- tablets ---------- */
@media (max-width: 1080px) {
  .dcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .strip > .lead { grid-column: 1 / -1; border-bottom: 1px solid var(--line-2); align-items: center; text-align: center; min-height: 0; padding: 16px; }
  .strip > div:nth-child(2) { border-left: 0; }
}
@media (max-width: 960px) {
  .split, .faqsplit { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .grid.c12 { grid-template-columns: minmax(0, 1fr); }
  .grid.c3, .facts { grid-template-columns: minmax(0, 1fr); }
  .doc { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .toc { position: static; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 6px; }
  .toc a { border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; }
  .faqsplit .side .art { display: none; }
  .cta { grid-template-columns: minmax(0, 1fr); padding: 32px; }
  footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .grid.c2, .dcards { grid-template-columns: minmax(0, 1fr); }
  .dcards { gap: 16px; }
}

/* ---------- phones ---------- */
@media (max-width: 640px) {
  :root { --pad: 20px; --nav-h: 62px; }
  .wrap, .nav .inner { width: min(var(--max), 100% - 32px); }
  .announce { font-size: 12.5px; padding: 8px 12px; }
  .announce .long { display: none; }
  .announce .short { display: inline; }
  .band > .wrap { padding-top: 64px; padding-bottom: 64px; }
  .band.head > .wrap { padding-top: 60px; padding-bottom: 36px; }
  .band.tight > .wrap { padding-top: 20px; padding-bottom: 20px; }
  .hero > .wrap { padding: 56px 18px 56px; }
  .hero .kicker { font-size: 13px; padding: 5px 10px; }
  .hide-sm { display: none; }
  .show-sm { display: inline; }
  .hero h1 { font-size: clamp(40px, 11.4vw, 52px); line-height: 1.02; }
  .hero .lede { font-size: 16.5px; margin-top: 18px; }
  .hero .actions { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 28px; }
  .hero .actions .btn { width: 100%; }
  .btn.cmdbtn { font-size: 13px; }
  .stage { margin-top: 44px; }
  .plate { padding: 10px; border-radius: 18px; box-shadow: 0 0 0 5px var(--blue-100); background-size: 12px 12px; }
  .term { font-size: 11.5px; line-height: 1.7; border-radius: 10px; }
  .term .bar { padding: 9px 10px; gap: 10px; }
  .term .lights { display: none; }
  .term .tabs button { padding: 7px 10px; font-size: 12px; }
  .term .chip { display: none; }
  .term pre { padding: 16px 14px 18px; white-space: pre-wrap; overflow-wrap: anywhere; }
  .stage .caption { font-size: 12.5px; margin-top: 18px; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip > div { min-height: 76px; padding: 16px 12px; }
  .strip > div:nth-child(2), .strip > div:nth-child(4) { border-left: 0; }
  .strip > div:nth-child(4), .strip > div:nth-child(5) { border-top: 1px solid var(--line-2); }
  .strip .tool b { font-size: 18px; }
  .frame > .card { padding: 22px 20px 24px; }
  .fcard .top { align-items: flex-start; }
  .fcard > p { font-size: 15.5px; }
  .vis { padding: 14px 10px; min-height: 0; }
  .dest .r { grid-template-columns: minmax(0, 1fr); }
  .dest .meta { text-align: left; }
  .dest .r > span:empty:not(.barline) { display: none; }
  .tl li { grid-template-columns: 14px minmax(0, 1fr); }
  .tl .st { grid-column: 2; }
  .tl .what code { font-size: 11.5px; }
  .panel .ph { flex-wrap: wrap; }
  .window pre { font-size: 10.5px; padding: 14px 12px 16px; }
  .window .bar { font-size: 11px; padding: 11px 14px; }
  .window .bar .lights, .window .bar .right { display: none; }
  .stat .num { font-size: 92px; }
  .bars .row, .bars .axis { grid-template-columns: 96px minmax(0, 1fr) 44px; }
  .bars .grid-lines { left: 96px; right: 44px; }
  .bars .axis .ticks span:nth-child(2), .bars .axis .ticks span:nth-child(4) { display: none; }
  .stacks .row { grid-template-columns: minmax(0, 1fr) 80px; }
  .stacks .row .name { grid-column: 1 / -1; padding: 0 0 4px; }
  .dcard .txt { padding: 18px 20px 22px; }
  .acc summary { padding: 15px 16px; font-size: 15.5px; }
  .acc .a { padding: 2px 16px 16px; font-size: 15px; }
  .cta { padding: 22px 14px; }
  .cta .box { padding: 16px 14px; }
  .cta .box .cmdline { font-size: 12px; padding: 10px 6px 10px 12px; gap: 6px; }
  footer > .wrap { padding-top: 48px; }
  footer .clean { align-self: flex-start; }
  footer .cols { gap: 28px 20px; padding: 32px 0 36px; }
  .page-head > .wrap { padding-top: 56px; padding-bottom: 44px; }
  .toc ol { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; }
  .toc ol::-webkit-scrollbar { display: none; }
  .toc a { white-space: nowrap; }
  .prose h2 { font-size: 31px; }
  dl.opts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .qa > h2 { font-size: 19px !important; padding: 16px 16px 0; }
  .qa > .a { padding: 8px 16px 16px; }
  p code, li code, td code { white-space: normal; overflow-wrap: anywhere; }
}
@media (forced-colors: active) { .bars .row .fill, .stacks .seg-o { forced-color-adjust: none; } }
