/* whabuzz.com. Colours, type and radii come from tokens.css (loaded first). White or near-black page, one deep WhatsApp-teal accent, one ink section, one code style.
   Type: Instrument Sans (text and display) + IBM Plex Mono (code, headers, figures). */
:root { --gutter: 16px; }
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); letter-spacing: -0.005em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
code, pre, kbd { font-family: var(--mono); font-size: 0.875em; letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--r-xs); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -48px; z-index: 50; padding: 8px 12px; background: var(--ink); color: var(--bg); border-radius: var(--r-sm); text-decoration: none; }
.skip:focus { top: 8px; }
.i { width: 20px; height: 20px; flex: none; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.5rem); line-height: 1.04; font-weight: 500; letter-spacing: -0.04em; text-wrap: balance; }
h3 { font-size: 17px; line-height: 1.35; font-weight: 600; letter-spacing: -0.012em; }
p code, li code, dd code { font-size: 0.86em; background: var(--tint); border: 1px solid var(--line); border-radius: var(--r-xs); padding: 1px 5px; overflow-wrap: anywhere; }

/* Buttons. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: var(--r-sm); border: 1px solid transparent; font: 500 15px/1 var(--sans); letter-spacing: -0.005em; text-decoration: none; cursor: pointer; transition: background-color .15s ease-out, border-color .15s ease-out, color .15s ease-out; white-space: nowrap; }
.btn .i { width: 16px; height: 16px; transition: transform .15s ease-out; }
.btn:hover .i { transform: translateX(2px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { background: var(--btn-bg-hover); }
.btn-primary:active { background: var(--btn-bg-active); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { background: var(--tint); border-color: var(--line-3); }
.btn-secondary:active { background: var(--line); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 500; font-size: 15px; text-decoration: underline; text-decoration-color: var(--brand-line); text-underline-offset: 4px; }
.link .i { width: 16px; height: 16px; transition: transform .15s ease-out; }
.link:hover { color: var(--brand-hover); text-decoration-color: currentColor; }
.link:hover .i { transform: translateX(2px); }
.prose a, .faq a, .legal a, .qa a, .nots a { color: var(--brand); text-underline-offset: 3px; }
.prose a:hover, .faq a:hover, .legal a:hover, .qa a:hover { color: var(--brand-hover); }

/* Header. */
.site-header { position: relative; z-index: 20; background: var(--bg); }
.head-row { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: -0.03em; }
.brand svg { width: 24px; height: 24px; }
.nav-links { display: none; gap: 2px; }
.nav-links a, .nav-login { padding: 8px 11px; border-radius: var(--r-sm); font-size: 14.5px; color: var(--ink-2); text-decoration: none; transition: background-color .15s, color .15s; }
.nav-links a:hover, .nav-login:hover { color: var(--ink); background: var(--tint); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-login { display: none; }
@media (min-width: 900px) { .nav-links, .nav-login { display: flex; } .menu { display: none; } .nav-links { position: absolute; left: 50%; transform: translateX(-50%); } .head-row { position: relative; } }
.menu { position: relative; }
.menu summary { list-style: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-sm); border: 1px solid var(--line-2); cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: var(--tint); }
.menu .i-close, .menu[open] .i-open { display: none; }
.menu[open] .i-close { display: block; }
.menu-panel { position: absolute; right: 0; top: 48px; width: min(280px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm); box-shadow: var(--shadow); padding: 6px; display: grid; }
.menu-panel a { padding: 12px; border-radius: var(--r-xs); text-decoration: none; font-size: 15px; }
.menu-panel a:hover { background: var(--tint); }

/* Hero: one screen, centred. Headline, one line, two buttons, one product visual. */
.hero { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.hero-main { flex: 1; min-height: 0; display: flex; }
.hero-inner { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-top: clamp(16px, 4vh, 48px); padding-bottom: clamp(16px, 4vh, 40px); }
h1 { font-size: clamp(2.5rem, 1.1rem + 5.2vw, 5.25rem); line-height: 1; font-weight: 500; letter-spacing: -0.05em; text-wrap: balance; max-width: 13ch; }
.lede { margin-top: 24px; font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
.lede strong { color: var(--ink); font-weight: 600; }
.hero-inner .btn-row { margin-top: 32px; justify-content: center; }
.note { margin-top: 14px; font-size: 14px; color: var(--ink-3); }
.term-frame { flex: 0 1 auto; min-height: 0; width: 100%; max-width: 880px; margin-top: clamp(28px, 6vh, 64px); padding: 6px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--tint); display: flex; text-align: left; }
.term { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--code-bg); border: 1px solid var(--code-border); border-radius: var(--r-lg); }
.term-bar { flex: none; display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--code-line); background: var(--code-bar); font: 500 12px/1 var(--mono); color: var(--code-dim); }
.term-body { margin: 0; padding: 16px 20px 18px; overflow: hidden; min-height: 0; color: var(--code-fg); font-size: 13px; line-height: 1.7; }
.term-body code { font-size: inherit; }
.tl { display: inline-block; width: max-content; vertical-align: top; }
.term .ok { color: var(--brand-mark); }
@media (max-width: 719px) { .lede { font-size: 17px; margin-top: 18px; } .hero-inner .btn-row { margin-top: 24px; } .term-body { font-size: 11px; padding: 12px 14px 14px; } .term-frame { padding: 4px; border-radius: 16px; } }
/* Short screens: the terminal still fits whole. */
@media (min-width: 720px) and (max-height: 960px) { .term-body { font-size: 12px; line-height: 1.6; padding-top: 14px; padding-bottom: 14px; } }
@media (min-width: 720px) and (max-height: 800px) { h1 { font-size: min(clamp(2.5rem, 1.1rem + 5.2vw, 5.25rem), 8.8vh); } .hero-inner { padding-top: 8px; padding-bottom: 16px; } .lede { margin-top: 14px; } .hero-inner .btn-row { margin-top: 24px; } .term-frame { margin-top: 24px; } .term-body { font-size: 11px; line-height: 1.45; padding-top: 10px; padding-bottom: 10px; } }
@media (max-width: 719px) and (max-height: 720px) { h1 { font-size: 2.125rem; } .lede { font-size: 15.5px; margin-top: 12px; } .hero-inner .btn-row { margin-top: 18px; } .term-frame { margin-top: 20px; } .term-body { font-size: 10px; line-height: 1.5; padding: 10px 12px; } }
/* Typed once on load (app.js adds .play unless reduced motion is set). Commands type, output prints. */
.term.play .tl { visibility: hidden; animation: tl-show 0s linear var(--d, 0s) forwards; }
.term.play .tl.ty { visibility: visible; clip-path: inset(0 100% 0 0); animation: tl-type calc(var(--n, 20) * 10ms) steps(var(--n, 20), end) var(--d, 0s) forwards; }
@keyframes tl-show { to { visibility: visible; } }
@keyframes tl-type { to { clip-path: inset(0 0 0 0); } }

/* Sections: flat page, generous rhythm, one visual each. */
.sec { padding: 120px 0 0; }
.sec-last { padding-bottom: 136px; }
@media (max-width: 719px) { .sec { padding-top: 88px; } .sec-last { padding-bottom: 96px; } }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto; }
.sec-head h2 { margin: 0 auto; max-width: 20ch; }
.sec-head > p { margin: 20px auto 0; font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 54ch; }
.sec-head-left { text-align: left; margin: 0; max-width: 720px; }
.sec-head-left h2 { margin: 0; }
.sec-head-left > p { margin: 20px 0 0; font-size: 17px; max-width: 62ch; }
.sec-head .link { margin-top: 24px; }
.h2-left { max-width: 14ch; }
.visual { margin-top: 56px; }
.sec-more { margin-top: 32px; text-align: center; }

/* Screenshots: the console's own pixels, a hairline and a caption. Never inverted. */
.shot img { width: 100%; height: auto; border: 1px solid var(--shot-border); border-radius: var(--r-sm); background: var(--shot-bg); }
.shot figcaption { margin-top: 12px; font-size: 13.5px; line-height: 1.5; color: var(--ink-3); max-width: 60ch; }
.shot figcaption b { color: var(--ink-2); font-weight: 500; }

/* API scenarios. */
.seg { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid var(--line); background: var(--tint); border-radius: var(--r-sm); margin-bottom: 14px; max-width: 100%; }
.seg [role="tab"] { appearance: none; border: 0; background: transparent; padding: 0 14px; height: 34px; border-radius: var(--r-xs); font: 500 14px/1 var(--sans); color: var(--ink-2); cursor: pointer; white-space: nowrap; transition: background-color .15s, color .15s; }
.seg [role="tab"]:hover { color: var(--ink); }
.seg [role="tab"][aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line-2); }
.sc-panel[hidden] { display: none; }
.scenarios { min-width: 0; }
.sc-after { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 20px; }
@media (min-width: 720px) { .sc-after { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; } }
.sc-after > p { font-size: 15px; color: var(--ink-2); }
.json { margin: 0; background: var(--tint); color: var(--tj-fg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; font-size: 12.5px; line-height: 1.6; overflow-x: auto; --t-k: var(--tj-k); --t-s: var(--tj-s); --t-n: var(--tj-n); --t-kw: var(--tj-kw); }
.headers { display: grid; font-size: 13px; border-top: 1px solid var(--line); }
.headers div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.headers dt { font-family: var(--mono); font-size: 12px; }
.headers dd { color: var(--ink-3); font-family: var(--mono); font-size: 12px; }
.small-label { font: 500 13px/1.3 var(--sans); color: var(--ink-3); margin-bottom: 8px; }

/* The one code style. */
.code { background: var(--code-bg); border: 1px solid var(--code-border); border-radius: var(--r-lg); overflow: hidden; min-width: 0; }
.code-bar { display: flex; align-items: center; gap: 8px; padding: 0 8px 0 4px; border-bottom: 1px solid var(--code-line); background: var(--code-bar); }
.code-tabs { display: flex; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.code-tabs::-webkit-scrollbar { display: none; }
.code-tabs [role="tab"] { appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--code-dim); font: 500 13px/1 var(--mono); padding: 14px 12px 12px; cursor: pointer; white-space: nowrap; transition: color .15s; }
.code-tabs [role="tab"]:hover { color: var(--code-fg); }
.code-tabs [role="tab"][aria-selected="true"] { color: var(--code-strong); border-bottom-color: var(--brand-mark); }
.code-tabs [role="tab"]:focus-visible, .copy:focus-visible, .code-panel:focus-visible { outline: 2px solid var(--brand-mark); outline-offset: -2px; }
.copy { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: var(--r-sm); border: 1px solid var(--code-line); background: transparent; color: var(--code-dim); font: 500 12px/1 var(--mono); cursor: pointer; transition: color .15s, border-color .15s, background-color .15s; flex: none; }
.copy .i { width: 14px; height: 14px; }
.copy:hover { color: var(--code-strong); border-color: var(--code-hover-line); background: var(--code-hover-bg); }
.copy[data-state="done"] { color: var(--t-s); border-color: var(--code-ok-line); }
.copy[data-state="error"] { color: var(--t-v); border-color: var(--code-err-line); }
.code-panel pre { margin: 0; padding: 16px 0; overflow-x: auto; max-height: 520px; color: var(--code-fg); font-size: 13px; line-height: 1.65; tab-size: 2; counter-reset: ln; }
.code-panel code { font-size: inherit; display: block; min-width: max-content; }
.ln { padding-right: 20px; }
.ln::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 40px; padding-right: 16px; text-align: right; color: var(--code-ln); user-select: none; -webkit-user-select: none; }
.t-s { color: var(--t-s); } .t-k { color: var(--t-k); } .t-kw { color: var(--t-kw); } .t-n { color: var(--t-n); } .t-c { color: var(--t-c); } .t-v { color: var(--t-v); }

/* Spec: the figures as a terminal readout. Dark in both schemes, like every code panel. */
.spec-term { max-width: 960px; margin-left: auto; margin-right: auto; background: var(--code-bg); border: 1px solid var(--code-border); border-radius: var(--r-lg); overflow: hidden; color: var(--code-fg); }
.spec-list { padding: 4px 24px 8px; }
.spec-list > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 18px 0; border-top: 1px solid var(--code-line); }
.spec-list > div:first-child { border-top: 0; }
@media (min-width: 720px) { .spec-list > div { grid-template-columns: 190px minmax(0, 1fr); gap: 24px; } }
@media (max-width: 719px) { .spec-list { padding: 0 16px 4px; } }
.spec-list dt { font: 500 13px/1.6 var(--mono); color: var(--t-k); }
.spec-list dd { font-size: 15px; line-height: 1.6; color: var(--code-dim); }
.spec-list dd b { color: var(--code-strong); font-weight: 500; }
.spec-list code, .spec-list pre { background: var(--code-hover-bg); border: 1px solid var(--code-line); color: var(--code-fg); border-radius: var(--r-xs); }
.spec-list code { padding: 1px 5px; font-size: 0.85em; }
.spec-list pre { margin: 8px 0 4px; padding: 10px 12px; font-size: 12.5px; line-height: 1.6; overflow-x: auto; }
.spec-list pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.shots { display: grid; gap: 40px; max-width: 960px; margin: 48px auto 0; }
@media (min-width: 1040px) { .shots { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; gap: 32px; } }

/* What it is not, beside one plan card. */
.limits-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; }
@media (min-width: 960px) { .limits-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 72px; align-items: start; } }
.nots { margin-top: 32px; }
.nots li { padding: 16px 0; border-top: 1px solid var(--line); font-size: 15.5px; color: var(--ink-2); }
.nots li:last-child { border-bottom: 1px solid var(--line); }
.nots b { color: var(--ink); font-weight: 600; }
.plan-card { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); padding: 32px; }
@media (max-width: 719px) { .plan-card { padding: 24px 20px; } }
.plan-lede { font-size: 15px; color: var(--ink-2); padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.plan-card .big { font-size: clamp(2.5rem, 2rem + 1.6vw, 3.5rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.plan-card .big span { color: var(--ink-3); font-weight: 400; font-size: 0.34em; letter-spacing: -0.01em; }
.plan-card .big + p { margin-top: 16px; color: var(--ink-2); font-size: 15.5px; }
.plan-card .btn-row { margin-top: 28px; }

/* FAQ. */
.faq-wrap .faq { max-width: 760px; margin: 48px auto 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; font-weight: 500; font-size: 17px; border-radius: var(--r-xs); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand-hover); }
.faq summary .i { width: 18px; height: 18px; color: var(--ink-3); transition: transform .2s ease-out; }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details p { padding: 0 32px 22px 0; color: var(--ink-2); font-size: 15.5px; max-width: 64ch; }

/* Inner pages: centred head, then blocks in the same rhythm. */
.page-head { padding: 88px 0 0; text-align: center; }
@media (min-width: 720px) { .page-head { padding: 128px 0 0; } }
.page-head h1 { font-size: clamp(2.5rem, 1.4rem + 3.6vw, 4rem); margin: 0 auto; max-width: 16ch; }
.page-head .lede { margin: 24px auto 0; max-width: 54ch; }
.block { padding: 72px 0 0; }
.block:last-child { padding-bottom: 128px; }
@media (min-width: 720px) { .block + .block { padding-top: 120px; } }
.block > .wrap > h2 { text-align: center; margin: 0 auto 48px; max-width: 20ch; }

/* Pricing page: one plan card, then the calculator. */
.price-grid { display: grid; gap: 24px; align-items: stretch; max-width: 1040px; margin: 0 auto; }
@media (min-width: 960px) { .price-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.price-card { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); padding: 32px; }
.price-card .big { font-size: clamp(2.5rem, 2rem + 1.6vw, 3.5rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.price-card .big span { color: var(--ink-3); font-weight: 400; font-size: 0.34em; letter-spacing: -0.01em; }
.price-card .btn { margin-top: 24px; width: 100%; }
@media (max-width: 719px) { .price-card, .calc { padding: 24px 20px; } }
.price-table { width: 100%; border-collapse: collapse; margin-top: 28px; }
.price-table caption { caption-side: bottom; text-align: left; font-size: 13.5px; color: var(--ink-3); padding-top: 14px; }
.price-table th, .price-table td { padding: 14px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 15px; }
.price-table th { font-weight: 400; color: var(--ink-2); padding-right: 16px; }
.price-table td { font: 500 15px/1.4 var(--mono); text-align: right; }
.price-table td small { display: block; margin-top: 4px; font: 400 13px/1.4 var(--sans); color: var(--ink-3); }
.calc { border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 32px; background: var(--tint); }
.calc h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 0; text-align: left; }
.calc .muted { margin-top: 6px; font-size: 14px; color: var(--ink-3); }
.calc label { display: block; margin-top: 24px; font: 500 14px/1 var(--sans); color: var(--ink-2); }
.calc-input { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.stepper { width: 44px; height: 44px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); font: 500 20px/1 var(--sans); color: var(--ink); cursor: pointer; transition: background-color .15s, border-color .15s; }
.stepper:hover:not(:disabled) { background: var(--bg); border-color: var(--line-3); }
.stepper:active:not(:disabled) { background: var(--line); }
.stepper:disabled { color: var(--disabled-fg); background: var(--tint); border-color: var(--line); cursor: not-allowed; }
.count { font-size: 48px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; margin: 16px 0 4px; accent-color: var(--brand-mark); height: 24px; cursor: pointer; }
.calc-out { margin-top: 16px; border-top: 1px solid var(--line-2); }
.calc-out div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.calc-out dt { color: var(--ink-2); }
.calc-out dd { font: 500 15px/1.4 var(--mono); font-variant-numeric: tabular-nums; }
.calc-out .total dt { color: var(--ink); font-weight: 600; }
.calc-out .total dd { font-size: 18px; color: var(--ink); }
.calc-note { margin-top: 12px; }
.inc { columns: 1; column-gap: 48px; max-width: 960px; margin: 0 auto; }
@media (min-width: 760px) { .inc { columns: 2; } }
.inc li { break-inside: avoid; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15.5px; color: var(--ink-2); }
.inc li b { color: var(--ink); font-weight: 600; }
.qa { display: grid; max-width: 960px; margin: 0 auto; }
.qa div { padding: 20px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.qa div:last-child { border-bottom: 1px solid var(--line); }
.qa dt { font-weight: 600; }
.qa dd { color: var(--ink-2); font-size: 15.5px; max-width: 64ch; }
@media (min-width: 900px) { .qa div { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 32px; } }
.after-qa { margin-top: 48px; justify-content: center; }
.footnote { margin: 20px auto 0; font-size: 14px; color: var(--ink-3); max-width: 70ch; text-align: center; }

/* Compare page. */
.swipe-hint { font-size: 13px; color: var(--ink-3); margin-bottom: 12px; text-align: center; }
@media (min-width: 900px) { .swipe-hint { display: none; } }
.table-scroll { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); max-width: 1040px; margin: 0 auto; }
.table-scroll:focus-visible { outline-offset: 4px; }
.compare { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 18px 22px; border-top: 1px solid var(--line); }
.compare thead th { border-top: 0; font: 500 13px/1.2 var(--mono); color: var(--ink-3); background: var(--tint); padding-top: 16px; padding-bottom: 16px; }
.compare thead th.us { color: var(--brand); background: var(--brand-tint); }
.compare tbody th { font-weight: 500; width: 26%; color: var(--ink); }
.compare td { color: var(--ink-2); }
.compare td.us { color: var(--ink); background: var(--us-cell); font-weight: 500; border-left: 1px solid var(--brand-line); border-right: 1px solid var(--brand-line); }

/* 404 and docs redirect: centred, quiet. */
.lost { padding: 128px 0 160px; max-width: 640px; margin: 0 auto; text-align: center; }
.lost h1 { font-size: clamp(2.5rem, 1.4rem + 3.6vw, 4rem); margin: 0 auto; }
.lost .lede { margin-left: auto; margin-right: auto; }
.lost .lede a { color: var(--brand); text-underline-offset: 3px; }
.lost .btn-row { margin-top: 32px; justify-content: center; }

/* Legal prose (content unchanged). */
.legal { max-width: 72ch; padding: 88px 0 120px; margin: 0 auto; }
.legal h1 { margin: 0 0 12px; font-size: clamp(2.25rem, 1.5rem + 2.4vw, 3.25rem); max-width: none; }
.legal h2 { font-size: 22px; font-weight: 600; margin: 48px 0 12px; letter-spacing: -0.02em; }
.legal h3 { margin: 28px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul, .legal ol { margin: 12px 0; padding-left: 20px; list-style: disc; display: grid; gap: 6px; }
.legal ol { list-style: decimal; }
.legal table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 15px; display: block; overflow-x: auto; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }

/* Footer: grouped, quiet. */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; padding: 64px 0 48px; }
.foot-brand { grid-column: 1 / -1; display: grid; gap: 12px; align-content: start; }
.foot-brand p { color: var(--ink-3); max-width: 36ch; }
.foot-status { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-3); text-decoration: none; justify-self: start; font-size: 13px; font-family: var(--mono); }
.foot-status:hover { color: var(--ink); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-mark); flex: none; }
.site-footer h2 { font: 500 13px/1 var(--sans); letter-spacing: 0; color: var(--ink-3); margin-bottom: 16px; text-align: left; max-width: none; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer li a { color: var(--ink-2); text-decoration: none; overflow-wrap: anywhere; }
.site-footer li a:hover { color: var(--ink); }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); } .foot-brand { grid-column: auto; } }
.foot-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 20px 0 28px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }

/* Theme toggle. Hidden without JS (it could not do anything). Icons swap via tokens. */
.theme-toggle { display: none; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.js .theme-toggle { display: grid; }
.theme-toggle:hover { background: var(--tint); color: var(--ink); border-color: var(--line-3); }
.theme-toggle .i { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: var(--icon-sun); }
.theme-toggle .i-moon { display: var(--icon-moon); }
@media (min-width: 900px) { .theme-toggle { width: 36px; height: 36px; } }
