/*
 * VibeCorral website. Hand-written, no build step.
 *
 * Rules (vibe/design/README.md, the brand book):
 *   - colours, spacing, radii and type ONLY through the tokens below (generated, do not edit)
 *   - one violet: brand for links and the primary button; `live` (lime) ONLY for Running
 *   - agent status is always shape + word (.badge), never colour alone
 *   - no gradients, no glow, no glass: flat var(--bg) everywhere (owner 2026-11-03, "no AI slop";
 *     _podklady/design-smer.md). No uppercase labels, no eyebrows, no "A · B · C" meta strings;
 *     mono only for commands, paths and agent output
 *   - screenshots sit in a radius-xl frame with shadow-pop
 *   - content runs the full container width: no 60-75ch reading measure on standalone
 *     text or tables (owner rule); a narrower column only next to something else
 *   - touch targets >= 44px; the sticky header never changes height (shadow only)
 * No inline style or script anywhere (CSP style-src/script-src 'self').
 */

/* tokens:start */
/* Generated by _build/tokens-sync.py from vibe/design/tokens.json (version 1). Do not edit by hand. */
:root {
  --bg: #0b0a10;
  --surface: #141220;
  --surface-raised: #1c1930;
  --surface-sunken: #08070c;
  --input-bg: #08070c;
  --chrome: #141220;
  --border: #2a2640;
  --border-control: #6a6390;
  --text: #f4f2fa;
  --text-muted: #a39fb8;
  --corral-violet: #9b6bff;
  --brand: #a985ff;
  --brand-fill: #7c4dff;
  --brand-fill-hover: #6a3aef;
  --on-brand: #ffffff;
  --brand-tint: #2a1f4d;
  --live: #b8f35a;
  --on-live: #10140a;
  --warn: #ffb547;
  --danger: #ff7a7a;
  --focus: #c4a8ff;
  --neutral: #9792ad;
  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 8px 24px rgba(0,0,0,0.45);
  --shadow-pop: 0 16px 48px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 0 1px rgba(155,107,255,0.45), 0 0 32px rgba(124,77,255,0.35);
  color-scheme: dark;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --font-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --type-display-xl: 600 72px/72px var(--font-sans);
  --ls-display-xl: -0.035em;
  --type-display: 600 48px/52px var(--font-sans);
  --ls-display: -0.03em;
  --type-h1: 600 32px/38px var(--font-sans);
  --ls-h1: -0.02em;
  --type-h2: 600 24px/30px var(--font-sans);
  --ls-h2: -0.015em;
  --type-h3: 600 17px/24px var(--font-sans);
  --ls-h3: -0.01em;
  --type-body-lg: 400 17px/28px var(--font-sans);
  --ls-body-lg: normal;
  --type-body: 400 15px/24px var(--font-sans);
  --ls-body: normal;
  --type-body-sm: 400 13px/20px var(--font-sans);
  --ls-body-sm: normal;
  --type-ui-strong: 500 13px/20px var(--font-sans);
  --ls-ui-strong: normal;
  --type-label: 500 11px/16px var(--font-mono);
  --ls-label: 0.08em;
  --type-code: 400 13px/20px var(--font-mono);
  --ls-code: normal;
  --type-mono-sm: 400 12px/18px var(--font-mono);
  --ls-mono-sm: normal;
  --type-stat: 500 20px/24px var(--font-mono);
  --ls-stat: -0.01em;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #faf9fd;
    --surface: #ffffff;
    --surface-raised: #f3f1fa;
    --surface-sunken: #efedf6;
    --input-bg: #ffffff;
    --chrome: #ffffff;
    --border: #e3e0ee;
    --border-control: #8a84a0;
    --text: #15121f;
    --text-muted: #5f5a72;
    --corral-violet: #9b6bff;
    --brand: #6d3df0;
    --brand-fill: #6d3df0;
    --brand-fill-hover: #5a2ad6;
    --on-brand: #ffffff;
    --brand-tint: #ece5ff;
    --live: #3a7310;
    --on-live: #ffffff;
    --warn: #965700;
    --danger: #bb2a33;
    --focus: #6d3df0;
    --neutral: #6c6782;
    --shadow-card: 0 1px 2px rgba(21,18,31,0.06), 0 8px 24px rgba(21,18,31,0.06);
    --shadow-pop: 0 16px 48px rgba(21,18,31,0.14);
    --shadow-glow: 0 0 0 1px rgba(109,61,240,0.35), 0 8px 28px rgba(109,61,240,0.18);
    color-scheme: light;
  }
}
/* tokens:end */

/* ---- fonts (self-hosted, SIL OFL: fonts/OFL-Atkinson*.txt). Preloaded URLs in _main.php match.
 * The website's own face is Atkinson Hyperlegible Next + Mono (owner 2026-11-03); the app keeps Geist, so the
 * generated tokens above still name Geist and the derived block below points --font-sans/--font-mono here. ---- */
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("../fonts/AtkinsonHyperlegibleNext-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("../fonts/AtkinsonHyperlegibleNext-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("../fonts/AtkinsonHyperlegibleNext-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Mono"; src: url("../fonts/AtkinsonHyperlegibleMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Mono"; src: url("../fonts/AtkinsonHyperlegibleMono-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* ---- derived values (only mixes of tokens, no new colours) ---- */
:root {
  --font-sans: "Atkinson Hyperlegible Next", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --line: color-mix(in srgb, var(--border) 70%, transparent);
  --brand-soft: color-mix(in srgb, var(--brand) 14%, transparent);
  --warn-soft: color-mix(in srgb, var(--warn) 14%, transparent);
  --live-soft: color-mix(in srgb, var(--live) 16%, transparent);
  --header-h: 64px;
  --section: var(--space-9);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---- base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--space-5)); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: var(--type-body-lg);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  overflow-x: clip;
}
img, svg, video, iframe { max-width: 100%; }
button, input, select, textarea { font-family: inherit; }
img, video { height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }
h1, h2, h3, h4 { margin: 0 0 var(--space-4); text-wrap: balance; color: var(--text); }
h1 { font: var(--type-display); letter-spacing: var(--ls-display); }
h2 { font: var(--type-h1); letter-spacing: var(--ls-h1); }
h3 { font: var(--type-h3); letter-spacing: var(--ls-h3); }
p, ul, ol, dl, table, figure { margin: 0 0 var(--space-4); }
p:last-child, ul:last-child, ol:last-child, dl:last-child { margin-bottom: 0; }
p { text-wrap: pretty; }
code, kbd, samp { font: var(--type-code); font-size: 0.88em; }
code { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1px 5px; overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
kbd { display: inline-block; min-width: 1.6em; padding: 0 6px; border: 1px solid var(--border-control); border-bottom-width: 2px; border-radius: var(--radius-sm); text-align: center; color: var(--text); }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--space-6) 0; }
strong { font-weight: 600; color: var(--text); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--text-muted); }

.container { width: 100%; max-width: calc(1200px + 2 * var(--space-4)); margin: 0 auto; padding: 0 var(--space-4); }
@media (min-width: 768px) { .container { max-width: calc(1200px + 2 * var(--space-6)); padding: 0 var(--space-6); } }

.skip-link { position: absolute; left: var(--space-4); top: -100px; z-index: 100; background: var(--brand-fill); color: var(--on-brand); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); }
.skip-link:focus { top: var(--space-2); }

/* eyebrow: kept only for information (a date, a group), sans, muted */
.eyebrow { display: block; margin: 0 0 var(--space-3); font: var(--type-ui-strong); color: var(--text-muted); }

/* ---- buttons (pill, 44px) ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: 0 var(--space-5);
  border: 1px solid transparent; border-radius: var(--radius-pill);
  font: var(--type-ui-strong); font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
  background: var(--brand-fill); color: var(--on-brand);
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms var(--ease);
}
.btn:hover { background: var(--brand-fill-hover); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 52px; padding: 0 var(--space-6); font-size: 16px; }
.btn--secondary { background: transparent; color: var(--text); border-color: var(--border-control); }
.btn--secondary:hover { background: var(--surface-raised); }
.btn svg { width: 18px; height: 18px; flex: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin: var(--space-6) 0 0; }
.note { margin: var(--space-4) 0 0; font: var(--type-body-sm); color: var(--text-muted); }
.more { display: inline-flex; align-items: center; min-height: 44px; gap: 6px; font: var(--type-ui-strong); font-size: 15px; text-decoration: none; }
.more svg { width: 16px; height: 16px; transition: transform 150ms var(--ease); }
.more:hover svg { transform: translateX(3px); }

/* ---- status badge: shape + word (brand book, StatusBadge) ---- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 var(--space-2) 0 7px;
  border-radius: var(--radius-pill); background: var(--surface-raised);
  font: var(--type-ui-strong);
  color: var(--text-muted); white-space: nowrap; vertical-align: middle;
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.badge--running { color: var(--live); }
.badge--waiting { color: var(--warn); }
.badge--waiting::before { background: transparent; border: 2px solid currentColor; width: 9px; height: 9px; }
.badge--error { color: var(--danger); }
.badge--error::before { content: "\2715"; width: auto; height: auto; background: none; border-radius: 0; font-size: 10px; line-height: 1; }
.badge--done { color: var(--brand); }
.badge--done::before { content: "\2713"; width: auto; height: auto; background: none; border-radius: 0; font-size: 11px; line-height: 1; }
.badge--idle::before { background: transparent; border: 1.5px dashed currentColor; width: 9px; height: 9px; }

/* ---- header: solid, constant height; only the line under it ---- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: var(--bg); border-bottom: 1px solid var(--line); transition: box-shadow 150ms ease; }
.site-header.is-scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; gap: var(--space-5); height: 100%; }
.site-logo { display: inline-flex; align-items: center; min-height: 44px; flex: none; }
.site-logo img { width: 114px; height: 32px; }
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; color: var(--text); border: 1px solid var(--border-control); border-radius: var(--radius-md); cursor: pointer;
}
.site-nav { margin-left: auto; display: flex; align-items: center; gap: var(--space-2); }
.site-nav ul { display: flex; align-items: center; gap: var(--space-1); margin: 0; padding: 0; list-style: none; }
.site-nav li a:not(.btn) {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-3);
  color: var(--text-muted); text-decoration: none; font: var(--type-ui-strong); font-size: 15px; border-radius: var(--radius-md);
  transition: color 150ms ease;
}
.site-nav li a:not(.btn):hover { color: var(--text); }
.site-nav li a[aria-current="page"]:not(.btn) { color: var(--text); }
.site-nav li a[aria-current="page"]:not(.btn)::after { content: ""; position: absolute; left: var(--space-3); right: var(--space-3); bottom: 6px; height: 2px; border-radius: 2px; background: var(--brand); }
.site-nav a.btn { margin-left: var(--space-3); min-height: 40px; padding: 0 var(--space-4); }
/* Log in to the account app, next to the Download button (owner 2026-11-14) */
.site-login {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-3); margin-left: var(--space-2);
  color: var(--text); text-decoration: none; font: var(--type-ui-strong); font-size: 15px; border-radius: var(--radius-md);
}
.site-login:hover { color: var(--brand); text-decoration: none; }
.actions .site-login { margin-left: 0; } /* in a row of buttons (/download) the row's gap spaces it */

/* With Pricing and Log in the bar holds ten items: the menu folds below 1120px instead of 900px. */
@media (max-width: 1120px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h); display: none; flex-direction: column; align-items: stretch;
    padding: var(--space-4); background: var(--chrome); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-pop);
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; }
  .js .site-nav li a[aria-current="page"]:not(.btn)::after { display: none; }
  .js .site-nav li a[aria-current="page"]:not(.btn) { background: var(--surface-raised); }
  .js .site-nav a.btn { margin: var(--space-3) 0 0; min-height: 48px; }
  .js .site-nav .site-login { margin: var(--space-3) 0 0; padding: 0 var(--space-3); }
  html:not(.js) .site-header { height: auto; position: static; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding: var(--space-2) 0; }
  html:not(.js) .site-nav { margin-left: 0; flex-wrap: wrap; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; }
}

/* ---- breadcrumbs ---- */
.breadcrumbs { padding: var(--space-3) 0 0; font: var(--type-body-sm); color: var(--text-muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: var(--space-2); color: var(--border-control); }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs li[aria-current] { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); }

/* ---- sections ---- */
.section { padding: var(--section) 0; }
.section--tight { padding: var(--space-8) 0; }
.section--line { border-top: 1px solid var(--line); }
.section--sunken { background: var(--surface-sunken); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: var(--space-7); }
.section-head h2 { margin-bottom: var(--space-4); }
.section-head .intro { color: var(--text-muted); font: var(--type-body-lg); font-size: 19px; line-height: 30px; margin: 0; }
.section-head--split { display: grid; gap: var(--space-5) var(--space-8); align-items: start; }
@media (min-width: 992px) {
  .section-head--split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-5) var(--space-8); }
  .section-head--split .intro { padding-top: 32px; }
}
.home h2.display, .display { font: var(--type-display); letter-spacing: var(--ls-display); }
.prose { font: var(--type-body-lg); color: var(--text); }
.prose p, .prose li { color: color-mix(in srgb, var(--text) 86%, var(--text-muted)); }
.prose h2 { margin-top: var(--space-7); }
.prose h3 { margin-top: var(--space-6); }
.prose ul, .prose ol { padding-left: var(--space-5); }
/* A text to copy (the withdrawal form of /refunds): one bordered box across the column, no stripe on its side. */
.prose blockquote { margin: 0; padding: var(--space-5) var(--space-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose li + li { margin-top: var(--space-2); }
.prose li::marker { color: var(--brand); }

/* ---- 12-column grid with spans chosen by the item count (vc_spans in _func.php) ---- */
.grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(12, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.grid > * { grid-column: span 12; min-width: 0; }
@media (min-width: 640px) {
  .grid > * { grid-column: span 6; }
  .grid > .odd-last { grid-column: span 12; }
}
@media (min-width: 992px) {
  .grid > .s-3 { grid-column: span 3; }
  .grid > .s-4 { grid-column: span 4; }
  .grid > .s-6 { grid-column: span 6; }
  .grid > .s-8 { grid-column: span 8; }
  .grid > .s-12 { grid-column: span 12; }
}

/* ---- cards ---- */
.card {
  position: relative; display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: border-color 150ms ease;
}
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--text-muted); font: var(--type-body); }
.card__icon { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-md); background: var(--brand-tint); color: var(--brand); flex: none; }
.card__icon svg { width: 20px; height: 20px; }
.card a.card__link { color: var(--text); text-decoration: none; }
.card a.card__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); }
.card--link:hover { border-color: var(--border-control); }
.card:has(:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.card a.card__link:focus-visible { outline: none; }
.card__foot { margin-top: auto; padding-top: var(--space-3); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); font: var(--type-body-sm); color: var(--text-muted); }

/* mini features: title + text without a box, a hairline on top */
.minis { display: grid; gap: var(--space-6) var(--space-6); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin: 0; padding: 0; list-style: none; }
.minis--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
@media (min-width: 992px) { .minis--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .minis--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.minis li { position: relative; padding-top: var(--space-5); border-top: 1px solid var(--border); }
.minis li::before { content: ""; position: absolute; top: -1px; left: 0; width: 32px; height: 2px; background: var(--brand); }
.minis h3 { margin-bottom: var(--space-2); }
.minis p { margin: 0; color: var(--text-muted); font: var(--type-body); }
.minis .mini__icon { display: inline-flex; color: var(--brand); margin-bottom: var(--space-3); }
.minis .mini__icon svg { width: 22px; height: 22px; }

/* definition rows: label left, text right */
.defs { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.defs > li { display: grid; gap: var(--space-2) var(--space-6); padding: var(--space-4) 0; border-bottom: 1px solid var(--border); }
@media (min-width: 768px) { .defs > li { grid-template-columns: minmax(180px, 2fr) 5fr; } }
.defs .defs__k { font: var(--type-ui-strong); font-size: 15px; color: var(--text); }
.defs .defs__k a { color: var(--text); text-decoration-color: var(--border-control); }
.defs .defs__v { color: var(--text-muted); font: var(--type-body); }
.doc-sec > .defs:last-child > li:last-child { border-bottom: 0; }
.defs--checks .defs__k::before { content: "\2713"; color: var(--brand); margin-right: var(--space-2); }
.defs--nots .defs__k::before { content: "\2013"; color: var(--text-muted); margin-right: var(--space-2); }

/* simple lists */
.list { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-3); }
.list li { position: relative; padding-left: var(--space-6); }
.list li::before { content: "\2713"; position: absolute; left: 2px; top: 0; color: var(--brand); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.chips li, .chip { display: inline-flex; align-items: center; gap: 6px; font: var(--type-body-sm); font-size: 13px; color: var(--text-muted); padding: 6px var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); }
.chips a { color: var(--text); text-decoration: none; }
.chips a:hover { color: var(--brand); }

/* ---- steps: numbered, connected ---- */
.steps { counter-reset: step; display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; position: relative; padding: var(--space-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-bottom: var(--space-4); border-radius: 50%; border: 1px solid color-mix(in srgb, var(--brand) 50%, var(--border)); background: var(--brand-tint); font: var(--type-ui-strong); letter-spacing: 0; color: var(--brand); }
.steps h3 { margin-bottom: var(--space-2); }
.steps p { color: var(--text-muted); font: var(--type-body); margin: 0; }
/* vertical timeline variant (inside articles) */
.timeline { counter-reset: step; margin: 0; padding: 0; list-style: none; }
.timeline li { counter-increment: step; position: relative; padding: 0 0 var(--space-6) 56px; }
.timeline li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--brand-tint); border: 1px solid color-mix(in srgb, var(--brand) 50%, var(--border)); color: var(--brand); font: var(--type-ui-strong); letter-spacing: 0; }
.timeline li::after { content: ""; position: absolute; left: 15.5px; top: 36px; bottom: 6px; width: 1px; background: var(--border); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline h3 { margin-bottom: var(--space-1); }
.timeline p { margin: 0; color: var(--text-muted); font: var(--type-body); }

/* ---- panel ---- */
.panel { padding: var(--space-7); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); }
.panel--note { background: var(--brand-tint); border-color: transparent; }
.panel--warn { border-color: var(--warn); }
.panel h2 { font: var(--type-h1); letter-spacing: var(--ls-h1); }

/* ---- screenshots: window frame ---- */
.shot { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-pop); border: 1px solid var(--border); background: var(--surface-sunken); }
.shot img, .shot video { width: 100%; }
.shot figcaption { padding: var(--space-3) var(--space-4); font: var(--type-body-sm); color: var(--text-muted); border-top: 1px solid var(--border); background: var(--surface); }
.shot--missing { display: none; }
.window { position: relative; margin: 0; border-radius: var(--radius-xl); padding: 6px; background: color-mix(in srgb, var(--surface-raised) 80%, transparent); border: 1px solid var(--border); box-shadow: var(--shadow-pop); }
.window > .shot { border-radius: calc(var(--radius-xl) - 6px); box-shadow: none; }
.window figcaption { display: none; }
.window__tag { position: absolute; right: var(--space-5); top: var(--space-5); z-index: 2; font: var(--type-ui-strong); color: var(--text-muted); background: var(--surface); padding: 5px 10px; border-radius: var(--radius-pill); border: 1px solid var(--border); }
.video-wrap video { width: 100%; background: var(--surface-sunken); }
.video-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); margin-top: var(--space-3); font: var(--type-body-sm); color: var(--text-muted); }
.video-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 var(--space-4); border-radius: var(--radius-pill); border: 1px solid var(--border-control); background: transparent; color: var(--text); font: var(--type-ui-strong); cursor: pointer; }
.video-toggle:hover { background: var(--surface-raised); }
.video-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.video-toggle[data-state="playing"] svg { display: none; }

/* stage: a fixed panel that shows any screenshot at most at its natural size */
.stage { position: relative; aspect-ratio: 16 / 11; display: flex; align-items: center; justify-content: center; padding: var(--space-7); overflow: hidden; border-radius: var(--radius-xl); background: var(--surface-sunken); border: 1px solid var(--border); }
.stage .fit { width: 100%; }
.stage .shot { border-radius: var(--radius-md); }
.stage.is-tall { align-items: flex-start; padding-bottom: 0; }
.stage.is-tall .fit { max-height: 100%; overflow: hidden; }
.stage.is-small { aspect-ratio: auto; min-height: 320px; }
.stage.is-tall .fit { -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 98%); mask-image: linear-gradient(to bottom, #000 72%, transparent 98%); }
.stage .shot figcaption { display: none; }
.stage.is-pan { justify-content: flex-start; align-items: flex-start; padding-right: 0; padding-bottom: 0; }
.stage.is-pan .fit { flex: none; width: 210%; max-width: none; -webkit-mask-image: linear-gradient(to right, #000 70%, transparent 98%), linear-gradient(to bottom, #000 75%, transparent 98%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, #000 70%, transparent 98%), linear-gradient(to bottom, #000 75%, transparent 98%); mask-composite: intersect; }
.page-hero__aside .stage, .frow__media .stage { padding: var(--space-5); }
.page-hero__aside .stage.is-tall, .frow__media .stage.is-tall { padding-bottom: 0; }
@media (max-width: 767px) { .stage { padding: var(--space-4); } }
.mw-250 { max-width: 250px; } .mw-300 { max-width: 300px; } .mw-350 { max-width: 350px; } .mw-400 { max-width: 400px; } .mw-450 { max-width: 450px; } .mw-500 { max-width: 500px; } .mw-550 { max-width: 550px; } .mw-600 { max-width: 600px; } .mw-650 { max-width: 650px; } .mw-700 { max-width: 700px; } .mw-750 { max-width: 750px; } .mw-800 { max-width: 800px; } .mw-850 { max-width: 850px; } .mw-900 { max-width: 900px; } .mw-950 { max-width: 950px; } .mw-1000 { max-width: 1000px; } .mw-1050 { max-width: 1050px; } .mw-1100 { max-width: 1100px; } .mw-1150 { max-width: 1150px; } .mw-1200 { max-width: 1200px; } .mw-1250 { max-width: 1250px; } .mw-1300 { max-width: 1300px; } .mw-1350 { max-width: 1350px; } .mw-1400 { max-width: 1400px; } .mw-1450 { max-width: 1450px; } .mw-1500 { max-width: 1500px; } .mw-1550 { max-width: 1550px; } .mw-1600 { max-width: 1600px; } .mw-1650 { max-width: 1650px; } .mw-1700 { max-width: 1700px; }

/* ---- HOME ---- */
.home-hero { position: relative; isolation: isolate; overflow-x: clip; padding: var(--space-8) 0 0; }
.home-hero h1 { font: var(--type-display); letter-spacing: var(--ls-display); margin-bottom: var(--space-4); }
.home-hero .lede { font-size: 20px; line-height: 32px; color: var(--text-muted); margin: 0; }
.home-hero .note { max-width: none; }
.home-hero .actions { margin-top: var(--space-5); }
.home-hero__shot { position: relative; margin-top: var(--space-7); }
@media (max-width: 767px) {
  .home-hero { padding-top: var(--space-7); }
  .home-hero h1 { font-size: 40px; line-height: 44px; }
  .home-hero .lede { font-size: 18px; line-height: 28px; }
  /* The 1440 px app loop is unreadable at phone width and the mobile view is not designed yet (owner 2026-11-03):
     hidden; the Needs you list right under the hero carries the product. */
  .home-hero__shot { display: none; }
  .window__tag { display: none; }
}

.demo-try { margin-top: var(--space-7); }
.page-demo .page-hero { padding: var(--space-5) 0 var(--space-6); }
.page-demo .page-hero .updated, .page-compare .page-hero .updated, .page-download .page-hero .updated, .page-thanks .page-hero .updated { display: none; }
.page-demo #demo { padding-top: var(--space-6); }
.demo-try .steps li { padding: var(--space-5); }
.demo-narrow { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; justify-content: center; gap: var(--space-2); padding: var(--space-5); background: color-mix(in srgb, var(--bg) 88%, transparent); text-align: center; align-items: center; font: var(--type-body); }
.demo-narrow .actions { margin-top: var(--space-3); justify-content: center; }
.demo-stage.is-narrow .demo-start { display: none; }
.nyw__toast { position: absolute; left: var(--space-5); right: var(--space-5); bottom: 56px; display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--surface-raised); border: 1px solid var(--border-control); box-shadow: var(--shadow-pop); font: var(--type-body-sm); color: var(--text); opacity: 0; transform: translateY(8px); transition: opacity 300ms ease, transform 300ms var(--ease); pointer-events: none; }
.nyw__toast.is-on { opacity: 1; transform: none; }
.nyw__toast svg { width: 16px; height: 16px; color: var(--brand); flex: none; }

/* agent strip */
.agents-strip { padding: var(--space-8) 0 var(--space-7); }
.agents-strip__label { text-align: center; margin-bottom: var(--space-5); color: var(--text-muted); }
.agents-strip ul { display: grid; gap: var(--space-3); grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .agents-strip ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .agents-strip ul { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.agent-chip { position: relative; display: flex; flex-direction: column; gap: 2px; padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); text-decoration: none; transition: border-color 200ms ease, transform 200ms var(--ease); height: 100%; }
.agent-chip:hover { border-color: var(--border-control); text-decoration: none; }
.agent-chip__name { font: var(--type-ui-strong); font-size: 15px; color: var(--text); }
.agent-chip__vendor { font: var(--type-body-sm); color: var(--text-muted); }
.agent-chip__ver { margin-top: var(--space-2); font: var(--type-body-sm); color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; }
.agent-chip__ver::before { content: "\2713"; color: var(--brand); font-weight: 600; }
.agents-strip__label--next { margin-top: var(--space-7); }
.agents-strip ul.platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .agents-strip ul.platforms { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .agents-strip ul.platforms { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.platform-chip { display: flex; flex-direction: column; gap: 2px; padding: var(--space-3) var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); height: 100%; }
.platform-chip__name { font: var(--type-ui-strong); font-size: 15px; color: var(--text); }
.platform-chip__status { font: var(--type-body-sm); color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; }
.platform-chip:not(.is-soon) .platform-chip__status::before { content: "\2713"; color: var(--brand); font-weight: 600; }
.platform-chip.is-soon { border-style: dashed; background: transparent; }
.platform-chip.is-soon .platform-chip__name { color: var(--text-muted); }

/* problem: editorial split with facts */
.split-ed { display: grid; gap: var(--space-6) var(--space-8); }
@media (min-width: 992px) { .split-ed { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.split-ed h2 { margin: 0; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: var(--space-7) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.facts li { padding: var(--space-5) var(--space-4) var(--space-5) 0; }
.facts li + li { padding-left: var(--space-5); border-left: 1px solid var(--border); }
.facts b { display: block; font: var(--type-display); letter-spacing: var(--ls-display); color: var(--text); font-variant-numeric: tabular-nums; }
.facts span { display: block; margin-top: var(--space-2); font: var(--type-body-sm); color: var(--text-muted); }
@media (max-width: 639px) { .facts { grid-template-columns: 1fr; } .facts li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--border); } .facts b { font: var(--type-h1); } }

/* how it works: three steps on a rail */
.rail { counter-reset: step; display: grid; gap: var(--space-6); margin: 0; padding: 0; list-style: none; }
@media (min-width: 992px) { .rail { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-7); } }
.rail li { counter-increment: step; position: relative; padding-top: var(--space-7); }
.rail li::before { content: counter(step); position: absolute; top: 0; left: 0; font: var(--type-ui-strong); color: var(--brand); background: var(--bg); padding-right: var(--space-3); z-index: 1; }
.rail li::after { content: ""; position: absolute; top: 8px; left: 0; right: calc(-1 * var(--space-7)); height: 1px; background: var(--border); }
.rail li:last-child::after { right: 0; }
@media (max-width: 991px) { .rail li::after { right: 0; } }
.rail h3 { font: var(--type-h2); letter-spacing: var(--ls-h2); margin-bottom: var(--space-3); }
.rail p { color: var(--text-muted); font: var(--type-body); margin: 0; }


/* bento of features */
.bento { display: grid; gap: var(--space-5); grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); } .bento > .is-wide { grid-column: span 2; } }
.tile { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); transition: border-color 200ms ease; }
.tile:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.tile__body { flex: 1 1 auto; padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }
.tile__body h3 { margin: 0; font: var(--type-h2); letter-spacing: var(--ls-h2); }
.tile__body p { margin: 0; color: var(--text-muted); font: var(--type-body); }
.tile__body p em { font-style: normal; color: var(--text); }
.tile__icon { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-md); background: var(--brand-tint); color: var(--brand); margin-bottom: var(--space-2); }
.tile__icon svg { width: 20px; height: 20px; }
.tile a.tile__link { color: inherit; text-decoration: none; }
.tile a.tile__link::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.tile:has(:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.tile a.tile__link:focus-visible { outline: none; }
.tile__media { position: relative; margin-top: auto; padding: 0 0 0 var(--space-6); }
.tile__media .shot { border-radius: var(--radius-md) 0 0 0; border-right: 0; border-bottom: 0; box-shadow: none; }
.tile__media .shot { height: 300px; -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
.tile__media .shot img { height: 100%; width: 100%; object-fit: cover; object-position: left top; }
@media (min-width: 1100px) {
  .tile.is-wide { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .tile.is-wide .tile__body { padding-right: var(--space-4); }
  .tile.is-wide .tile__media { padding: var(--space-6) 0 0 0; align-self: end; }
  .tile.is-wide .tile__media .shot { height: 340px; }
  .tile.is-wide .tile__media .shot img { width: 640px; max-width: none; height: auto; object-fit: initial; }
}

.tile__thumb { position: relative; height: 150px; overflow: hidden; border-bottom: 1px solid var(--border); background: var(--surface-sunken);
  -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent); mask-image: linear-gradient(to bottom, #000 65%, transparent); }
.tile__thumb .shot { border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.tile__thumb .shot img { width: 520px; max-width: none; }
.tile__thumb .shot figcaption { display: none; }

/* privacy split */
.split { display: grid; gap: var(--space-7); align-items: start; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 992px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); } .split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split--center { align-items: center; } }
.split > * { min-width: 0; }
.split .sticky { position: sticky; top: calc(var(--header-h) + var(--space-6)); }

/* beta offer */
.offer { position: relative; overflow: hidden; display: grid; gap: var(--space-7); padding: var(--space-8); border-radius: var(--radius-xl); background: var(--surface); border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--border)); }
@media (min-width: 992px) { .offer { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; } }
@media (max-width: 767px) { .offer { padding: var(--space-6); } }
.offer h2 { font: var(--type-display); letter-spacing: var(--ls-display); }
.offer__list { margin: 0; padding: var(--space-6); list-style: none; display: grid; gap: var(--space-4); border-radius: var(--radius-lg); background: var(--surface-sunken); border: 1px solid var(--border); }
.offer__list li { display: grid; grid-template-columns: 24px 1fr; gap: var(--space-3); color: var(--text); font: var(--type-body); }
.offer__list svg { width: 20px; height: 20px; color: var(--brand); margin-top: 2px; }
.offer__list span { color: var(--text-muted); display: block; font: var(--type-body-sm); }

/* changelog teaser + founder */
.updates { display: grid; gap: var(--space-5); grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
@media (min-width: 992px) { .updates { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.update { padding: var(--space-6); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.update time { display: block; margin-bottom: var(--space-3); font: var(--type-ui-strong); color: var(--brand); }
.update ul { margin: 0; padding-left: var(--space-5); font: var(--type-body); color: var(--text-muted); }
.update li + li { margin-top: var(--space-2); }
.update li::marker { color: var(--border-control); }
.founder { display: grid; grid-template-columns: auto 1fr; gap: var(--space-5); align-items: start; margin-top: var(--space-7); padding: var(--space-6); border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }
.founder__mark { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--brand-tint); color: var(--brand); font: var(--type-ui-strong); font-size: 18px; letter-spacing: 0.02em; }
.founder h3 { margin-bottom: var(--space-2); }
.founder .prose { font: var(--type-body); color: var(--text-muted); }

/* ---- FAQ (native details) ---- */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  min-height: 64px; padding: var(--space-4) 0; cursor: pointer; list-style: none; font: var(--type-h3); font-size: 17px;
  transition: color 150ms ease;
}
.faq summary:hover { color: var(--brand); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border-control); background:
  linear-gradient(var(--brand), var(--brand)) center / 10px 1.5px no-repeat,
  linear-gradient(var(--brand), var(--brand)) center / 1.5px 10px no-repeat; transition: transform 200ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 var(--space-8) var(--space-5) 0; color: var(--text-muted); }
.faq .answer p { color: var(--text-muted); }

/* ---- tables (matrix, compare): full width; scroll INSIDE the wrapper on small screens ---- */
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; margin: 0; font: var(--type-body); }
.table th, .table td { padding: var(--space-4); text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table thead th { font: var(--type-ui-strong); color: var(--text-muted); background: var(--surface-raised); white-space: nowrap; vertical-align: bottom; }
.table thead th a { color: var(--text); text-decoration: none; }
.table thead th a:hover { color: var(--brand); }
.table tbody th { font: var(--type-ui-strong); font-size: 14px; color: var(--text); min-width: 210px; font-weight: 500; }
.table tbody th a { color: var(--text); text-decoration-color: var(--border-control); }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: color-mix(in srgb, var(--surface-raised) 50%, transparent); }
.table td { color: var(--text); font-size: 14px; }
.table td.is-no { color: var(--text-muted); }
.table td.is-yes { color: var(--text); }
.yes, .no { display: inline-flex; align-items: center; gap: 6px; }
.yes::before { content: "\2713"; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); font-size: 11px; font-weight: 700; flex: none; }
.no { color: var(--text-muted); }
.no::before { content: ""; width: 10px; height: 1.5px; background: var(--border-control); margin: 0 4px; flex: none; }
.table--matrix { table-layout: fixed; min-width: 1040px; }
.table--matrix thead th:first-child { width: 22%; }
.table--matrix td { min-width: 128px; line-height: 20px; }
.yes, .no { min-height: 20px; vertical-align: top; }
.table--matrix thead th:first-child, .table--matrix tbody th { position: sticky; left: 0; z-index: 1; background: var(--surface); }
.table--matrix thead th:first-child { background: var(--surface-raised); }
.table--compare td { min-width: 220px; }
.table--compare thead th:nth-child(2) { color: var(--brand); }
.table--facts tbody th { width: 40%; }
.table-note { margin-top: var(--space-3); font: var(--type-body-sm); color: var(--text-muted); }

/* ---- INNER PAGES ---- */
.page-hero .actions > .glance { width: 100%; }
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: var(--space-7) 0 var(--space-8); border-bottom: 1px solid var(--line); }
.page-hero__grid { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 1100px) { .page-hero__grid.has-aside { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-8); } }
.page-hero h1 { margin-bottom: var(--space-5); }
.page-hero .lede { font-size: 19px; line-height: 30px; color: var(--text-muted); margin: 0; }
.page-hero .updated { margin-top: var(--space-4); font: var(--type-body-sm); color: var(--text-muted); }
@media (max-width: 767px) { .page-hero h1 { font-size: 34px; line-height: 40px; } .page-hero .lede { font-size: 17px; line-height: 28px; } }

/* at a glance (agent pages) */
.glance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 0; list-style: none; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--border); }
.glance li { padding: var(--space-5); background: var(--surface); min-width: 0; }
.glance dt, .glance .k { font: var(--type-ui-strong); color: var(--text-muted); }
.glance .v { display: block; margin-top: var(--space-2); font: 600 20px/24px var(--font-sans); font-variant-numeric: tabular-nums; color: var(--text); overflow-wrap: anywhere; }
.glance .v--sm { font: var(--type-code); color: var(--text); }
.glance .s { display: block; margin-top: var(--space-1); font: var(--type-body-sm); color: var(--text-muted); }

/* article with a sticky table of contents */
.doc { display: grid; gap: var(--space-7); padding: var(--space-8) 0 var(--section); }
@media (min-width: 1100px) { .doc { grid-template-columns: 220px minmax(0, 1fr); gap: var(--space-9); } }
/* fewer than two sections: no table of contents, the article takes the full container width (vc_doc) */
.doc--solo { grid-template-columns: minmax(0, 1fr); }
.toc { display: none; }
@media (min-width: 1100px) {
  .toc { display: block; position: sticky; top: calc(var(--header-h) + var(--space-6)); align-self: start; max-height: calc(100vh - var(--header-h) - var(--space-8)); overflow: auto; }
}
.toc__label { font: var(--type-ui-strong); color: var(--text-muted); margin: 0 0 var(--space-3); }
.toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--border); }
.toc ol a { display: block; padding: 6px 0 6px var(--space-4); margin-left: -1px; border-left: 1px solid transparent; font: var(--type-body-sm); color: var(--text-muted); text-decoration: none; transition: color 150ms ease, border-color 150ms ease; }
.toc ol a:hover { color: var(--text); }
.toc ol a.is-active { color: var(--text); border-left-color: var(--brand); }
.toc__cta { margin-top: var(--space-6); }
.toc__cta .btn { width: 100%; }
.doc__body { min-width: 0; }
.doc-sec { padding-top: var(--space-7); }
.doc-sec:first-child { padding-top: 0; }
.doc-sec + .doc-sec { border-top: 1px solid var(--line); margin-top: var(--space-7); }
.doc-sec > h2 { margin-bottom: var(--space-5); }
.doc-sec > .intro { color: var(--text-muted); margin-bottom: var(--space-5); }
.doc-sec .shot { margin-top: var(--space-6); }
.doc-sec .table-wrap { margin-top: var(--space-2); }
.doc-sec .steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.doc-sec .steps li { padding: var(--space-5); }
.doc-sec.is-caveat { margin-top: var(--space-7); padding: var(--space-6); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-sunken); }
.doc-sec.is-caveat > h2 { font: var(--type-h2); letter-spacing: var(--ls-h2); display: flex; align-items: center; gap: var(--space-3); }
.doc-sec.is-caveat > h2::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--warn); flex: none; }
.doc-media { margin: var(--space-6) 0 0; }
.doc-media figcaption { padding: var(--space-3) 0 0; font: var(--type-body-sm); color: var(--text-muted); }

/* features hub rows */
.frows { display: grid; gap: var(--space-9); }
.frow { display: grid; gap: var(--space-6) var(--space-8); align-items: center; }
@media (min-width: 992px) {
  .frow { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .frow:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .frow:nth-child(even) > .frow__text { order: 2; }
}
.frow__num { font: var(--type-ui-strong); color: var(--brand); display: block; margin-bottom: var(--space-4); }
.frow h2 { font: var(--type-h1); letter-spacing: var(--ls-h1); }
.frow h2 a { color: var(--text); text-decoration: none; }
.frow h2 a:hover { color: var(--brand); }
.frow p { color: var(--text-muted); }
.frow .chips { margin-top: var(--space-5); }

/* agents hub cards */
.agent-card { gap: var(--space-4); }
.agent-card__top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.agent-card__vendor { font: var(--type-body-sm); color: var(--text-muted); }
.agent-card h3 { font: var(--type-h2); letter-spacing: var(--ls-h2); }
.agent-card__stats { margin-top: auto !important; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-3); margin: var(--space-2) 0 0; padding: var(--space-4) 0 0; border-top: 1px solid var(--border); list-style: none; }
.agent-card__stats b { display: block; font: 600 16px/22px var(--font-sans); font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-card__stats span { display: block; font: var(--type-body-sm); color: var(--text-muted); }

/* reading guide under the matrix heading: paragraphs side by side */
.guide { display: grid; gap: var(--space-5) var(--space-6); margin: 0 0 var(--space-7); }
@media (min-width: 992px) { .guide { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.guide p { margin: 0; padding-top: var(--space-4); border-top: 1px solid var(--border); color: var(--text-muted); font: var(--type-body); }

/* known gaps bars */
.gaps { display: grid; gap: var(--space-3); margin: var(--space-6) 0 0; padding: 0; list-style: none; }
.gaps li { display: grid; grid-template-columns: 56px minmax(0, 1fr) 40px; align-items: center; gap: var(--space-4); }
.gaps .p { font: var(--type-ui-strong); color: var(--text); }
.gaps .bar { display: block; height: 10px; border-radius: var(--radius-pill); background: var(--surface-raised); overflow: hidden; }
.gaps .bar i { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.gaps .n { font: var(--type-body-sm); color: var(--text-muted); text-align: right; font-variant-numeric: tabular-nums; }
/* bar widths as classes: CSP style-src 'self' forbids inline styles */
.gaps .bar i.w-0 { width: 0%; } .gaps .bar i.w-5 { width: 5%; } .gaps .bar i.w-10 { width: 10%; } .gaps .bar i.w-15 { width: 15%; } .gaps .bar i.w-20 { width: 20%; } .gaps .bar i.w-25 { width: 25%; } .gaps .bar i.w-30 { width: 30%; } .gaps .bar i.w-35 { width: 35%; } .gaps .bar i.w-40 { width: 40%; } .gaps .bar i.w-45 { width: 45%; } .gaps .bar i.w-50 { width: 50%; } .gaps .bar i.w-55 { width: 55%; } .gaps .bar i.w-60 { width: 60%; } .gaps .bar i.w-65 { width: 65%; } .gaps .bar i.w-70 { width: 70%; } .gaps .bar i.w-75 { width: 75%; } .gaps .bar i.w-80 { width: 80%; } .gaps .bar i.w-85 { width: 85%; } .gaps .bar i.w-90 { width: 90%; } .gaps .bar i.w-95 { width: 95%; } .gaps .bar i.w-100 { width: 100%; }
.gaps__legend { display: block; margin-top: 4px; font: var(--type-body-sm); color: var(--text-muted); }

/* ---- changelog page ---- */
.changelog { margin: 0; padding: 0; list-style: none; }
.changelog > li:first-child { border-top: 0; padding-top: 0; }
.changelog > li { display: grid; gap: var(--space-2) var(--space-6); grid-template-columns: 200px 1fr; padding: var(--space-6) 0; border-top: 1px solid var(--border); }
.changelog time { font: var(--type-ui-strong); color: var(--brand); padding-top: 6px; }
.changelog ul { margin: 0; padding-left: var(--space-5); }
.changelog li li + li { margin-top: var(--space-2); }
.changelog li li::marker { color: var(--border-control); }
@media (max-width: 767px) { .changelog > li { grid-template-columns: 1fr; } }

/* ---- demo ---- */
.demo-stage { position: relative; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border); background: var(--surface-sunken); box-shadow: var(--shadow-pop); aspect-ratio: 16 / 10; }
.demo-stage > .shot { position: absolute; inset: 0; border: 0; border-radius: 0; box-shadow: none; }
.demo-stage > .shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.demo-stage > .shot figcaption { display: none; }
.demo-stage::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 45%, transparent); transition: background-color 200ms ease; pointer-events: none; }
.demo-stage.is-live::after { display: none; }
.demo-start { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: var(--space-4); text-align: center; text-decoration: none; color: var(--text); }
.demo-start__play { width: 88px; height: 88px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--brand-fill); color: var(--on-brand); transition: transform 200ms var(--ease), background-color 200ms ease; }
.demo-start__play svg { width: 30px; height: 30px; margin-left: 4px; fill: currentColor; }
.demo-start:hover .demo-start__play { transform: scale(1.06); background: var(--brand-fill-hover); }
.demo-start__label { font: var(--type-h3); padding: 6px var(--space-4); border-radius: var(--radius-pill); background: var(--surface); }
.demo-start__sub { font: var(--type-body-sm); color: var(--text-muted); padding: 2px var(--space-3); border-radius: var(--radius-pill); background: var(--surface); }
.demo-scaler { position: absolute; inset: 0; }
.demo-frame { position: absolute; left: 0; top: 0; width: 1680px; max-width: none; height: 1050px; border: 0; display: block; background: var(--surface-sunken); transform-origin: 0 0; }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-4); font: var(--type-body-sm); color: var(--text-muted); }
.demo-bar a { font: var(--type-ui-strong); }

/* ---- closing CTA band ---- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; padding: var(--space-9) 0; border-top: 1px solid var(--line); }
.cta-band h2 { font: var(--type-display); letter-spacing: var(--ls-display); margin-bottom: var(--space-4); }
.cta-band .prose p, .cta-band p { color: var(--text); margin: 0; }
.cta-band .note { color: var(--text-muted); }
.cta-band__inner { display: grid; gap: var(--space-6); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 992px) { .cta-band__inner { grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-8); } .cta-band .actions { margin: 0; } }
@media (max-width: 767px) { .cta-band h2 { font: var(--type-h1); } }

/* ---- related ---- */
.card--row { display: grid; gap: var(--space-2) var(--space-7); }
@media (min-width: 992px) { .card--row { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; } .card--row > .eyebrow { grid-column: 1 / -1; } .card--row .card__more { grid-column: 2; } }
.related { padding: var(--section) 0; border-top: 1px solid var(--line); }
.related h2 { margin-bottom: var(--space-6); }
.related__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.related__list li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-1) var(--space-6); align-items: baseline; padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
.related__list a { font: var(--type-h3); color: var(--text); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.related__list a:hover { color: var(--brand); text-decoration: underline; }
.related__kind { grid-column: 1; grid-row: 2; font: var(--type-body-sm); color: var(--text-muted); }
.related__list p { grid-column: 2; grid-row: 1 / span 2; margin: 0; font: var(--type-body); color: var(--text-muted); }
@media (max-width: 767px) {
  .related__list li { grid-template-columns: 1fr; }
  .related__kind, .related__list p { grid-column: 1; grid-row: auto; }
}

/* ---- footer ---- */
.site-footer { background: var(--surface-sunken); border-top: 1px solid var(--border); padding: var(--space-8) 0 var(--space-6); font: var(--type-body-sm); color: var(--text-muted); }
.footer-grid { display: grid; gap: var(--space-6); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 1100px) { .footer-brand { grid-column: auto; } }
.footer-brand p { margin: var(--space-3) 0 var(--space-5); max-width: 32ch; }
.footer-grid h2 { font: var(--type-ui-strong); color: var(--text); margin-bottom: var(--space-2); }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li a { color: var(--text-muted); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.footer-grid li a:hover { color: var(--text); }
.footer-brand img { width: 114px; height: 32px; }
.footer-disclaimer { margin: var(--space-7) 0 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-4); padding-top: var(--space-5); border-top: 1px solid var(--border); }
.footer-bottom a { color: var(--text-muted); }
.footer-legal { display: flex; flex-direction: column; gap: var(--space-1); }
.footer-bottom a:hover { color: var(--text); }


/* ---- forms (beta sign-up, profile, manage) ----
 * Markup contract (beta.php / _beta-*.php):
 *   <div class="beta-layout"><div class="form-card"><form class="form">…</form></div><aside class="beta-aside">…</aside></div>
 *   .field > label.field__label | .field__hint | input.input / textarea.input | p.field__error
 *   fieldset.field > legend.field__label + .field__hint + .choices > label.choice > input + span.choice__box
 *   .form-actions > .btn ; p.form-notice ; div.alert.alert--error (summary, role=alert) ; .hp (honeypot)
 */
.beta-layout { display: grid; gap: var(--space-7); align-items: start; }
@media (min-width: 1100px) { .beta-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-8); } .beta-aside { position: sticky; top: calc(var(--header-h) + var(--space-6)); } }
.form-card, .report-card { padding: var(--space-7); border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-card); }
@media (max-width: 767px) { .form-card, .report-card { padding: var(--space-5); } }
.form { display: grid; gap: var(--space-6); }
.form h2 { margin: 0; }
.field { display: grid; gap: var(--space-2); margin: 0; padding: 0; border: 0; min-width: 0; }
.field__label { font: var(--type-ui-strong); font-size: 15px; color: var(--text); padding: 0; }
.field__label .opt { font-weight: 400; color: var(--text-muted); }
.field__hint { margin: 0; font: var(--type-body-sm); color: var(--text-muted); }
.input { width: 100%; min-height: 48px; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); border: 1px solid var(--border-control); background: var(--input-bg); color: var(--text); font: var(--type-body); font-size: 16px; transition: border-color 150ms ease, box-shadow 150ms ease; }
.input::placeholder { color: var(--text-muted); opacity: .8; }
.input:hover { border-color: var(--text-muted); }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
textarea.input { min-height: 120px; resize: vertical; line-height: 24px; }
.field.has-error .input { border-color: var(--danger); }
.field__error { margin: 0; font: var(--type-body-sm); color: var(--danger); display: flex; gap: 6px; align-items: baseline; }
.field__error::before { content: "\2715"; font-size: 10px; }
.choices { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-1); }
.choices--cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.choice { position: relative; display: inline-flex; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__box { display: inline-flex; align-items: center; gap: var(--space-2); width: 100%; min-height: 44px; padding: var(--space-2) var(--space-4) var(--space-2) var(--space-3); border-radius: var(--radius-pill); border: 1px solid var(--border-control); background: var(--surface); color: var(--text); font: var(--type-body-sm); font-size: 14px; transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease; user-select: none; }
.choice__box::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 4px; border: 1.5px solid var(--border-control); background: var(--input-bg) center / 12px 12px no-repeat; transition: background-color 150ms ease, border-color 150ms ease; }
.choice input[type="radio"] + .choice__box::before { border-radius: 50%; }
.choice:hover .choice__box { border-color: var(--text-muted); }
.choice input:checked + .choice__box { border-color: var(--brand); background: var(--brand-tint); }
.choice input:checked + .choice__box::before { border-color: var(--brand-fill); background-color: var(--brand-fill); box-shadow: inset 0 0 0 3px var(--brand-fill), inset 0 0 0 8px var(--on-brand); }
.choice input[type="checkbox"]:checked + .choice__box::before { box-shadow: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.choice input:focus-visible + .choice__box { outline: 2px solid var(--focus); outline-offset: 2px; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: var(--space-3); align-items: start; cursor: pointer; font: var(--type-body); color: var(--text); }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--brand-fill); }
.check small { display: block; color: var(--text-muted); font: var(--type-body-sm); margin-top: 2px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); padding-top: var(--space-2); }
.form-notice { margin: 0; font: var(--type-body-sm); color: var(--text-muted); }
.form-sep { border: 0; border-top: 1px solid var(--border); margin: 0; }
.alert { padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface-raised); font: var(--type-body); }
.alert--error { border-color: color-mix(in srgb, var(--danger) 60%, var(--border)); color: var(--text); }
.alert--error strong { color: var(--danger); }
.alert--ok { border-color: color-mix(in srgb, var(--live) 50%, var(--border)); }
.alert ul { margin: var(--space-2) 0 0; padding-left: var(--space-5); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.beta-aside .offer__list { padding: var(--space-6); }
.beta-step { padding: var(--space-8) 0 var(--section); }
.beta-step .form-card { max-width: none; }
.progress-steps { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin: 0 0 var(--space-6); padding: 0; list-style: none; font: var(--type-ui-strong); color: var(--text-muted); }
.progress-steps li { display: inline-flex; align-items: center; gap: var(--space-2); }
.progress-steps li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--border-control); }
.progress-steps li.is-done { color: var(--brand); }
.progress-steps li.is-done::before { background: var(--brand); border-color: var(--brand); }
.progress-steps li[aria-current] { color: var(--text); }
.progress-steps li[aria-current]::before { border-color: var(--warn); border-width: 2px; }


/* ---- review fixes: mobile framing, light theme, tables ---- */
/* Phones: a screenshot is cropped to its top-left area at a readable scale, not shrunk to texture. */
@media (max-width: 767px) {
  .stage { aspect-ratio: 4 / 3; padding: 0; justify-content: flex-start; align-items: flex-start; }
  .stage.is-pan .fit { max-width: none; }
  .stage .fit, .stage.is-pan .fit { flex: none; width: 200%;
    -webkit-mask-image: linear-gradient(to right, #000 70%, transparent 98%), linear-gradient(to bottom, #000 70%, transparent 98%); -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, #000 70%, transparent 98%), linear-gradient(to bottom, #000 70%, transparent 98%); mask-composite: intersect; }
  .stage .shot { border-radius: 0; border: 0; }
  .tile__media { padding: 0; }
  .tile__media .shot { height: 240px; border-radius: 0; }
  .tile__media .shot img { width: 200%; max-width: none; height: auto; object-fit: initial; }
}
/* Light theme: dark screenshots must not fade into white (a grey smear); they keep a hard frame. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .stage { background: var(--surface-raised); }
  :root:not([data-theme="dark"]) .stage.is-tall .fit, :root:not([data-theme="dark"]) .stage.is-pan .fit, :root:not([data-theme="dark"]) .tile__media .shot, :root:not([data-theme="dark"]) .tile__thumb { -webkit-mask-image: none; mask-image: none; }
}
:root[data-theme="light"] .stage.is-tall .fit, :root[data-theme="light"] .stage.is-pan .fit, :root[data-theme="light"] .tile__media .shot, :root[data-theme="light"] .tile__thumb { -webkit-mask-image: none; mask-image: none; }

/* Compare tables on phones: one stacked card per row, each cell labelled. */
@media (max-width: 767px) {
  .table--compare thead { display: none; }
  .table--compare, .table--compare tbody, .table--compare tr { display: block; }
  .table--compare tr { padding: var(--space-4); border-bottom: 1px solid var(--line); }
  .table--compare tbody tr:last-child { border-bottom: 0; }
  .table--compare tbody th, .table--compare td { display: block; min-width: 0; padding: 0; border: 0; }
  .table--compare tbody th { margin-bottom: var(--space-3); font-size: 15px; }
  .table--compare td + td { margin-top: var(--space-3); }
  .table--compare td::before { content: attr(data-label); display: block; margin-bottom: 2px; font: var(--type-ui-strong); color: var(--text-muted); }
  .table--compare td:nth-of-type(1)::before { color: var(--brand); }
}
/* Matrix on phones: narrower label column, and a fade on the right while there is more to scroll. */
@media (max-width: 639px) {
  .table--matrix tbody th { min-width: 150px; width: auto; }
  .table--matrix td, .table--matrix thead th:not(:first-child) { min-width: 112px; }
}
.table-wrap.is-scrollable:not(.is-end) { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
.table-hint { display: none; margin: 0 0 var(--space-2); font: var(--type-body-sm); color: var(--text-muted); }
.table-hint.is-on { display: block; }

/* Mobile menu: the toggle becomes a close button, the page dims behind the open menu. */
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }
/* (fixed overlay on body, outside the sticky header) */
@media (max-width: 900px) {
  html.nav-open body::after { content: ""; position: fixed; inset: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 72%, transparent); }
}

/* ---- stats (superuser only) ---- */
.stats-grid { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }


/* ---- responsive section rhythm ---- */
@media (max-width: 767px) {
  :root { --section: var(--space-8); }
  h1 { font-size: 34px; line-height: 40px; }
  h2, .display, .home h2.display, .offer h2 { font-size: 30px; line-height: 36px; }
  .tile__body h3 { font: var(--type-h3); font-size: 19px; }
  .panel, .offer { padding: var(--space-6); }
  .faq .answer { padding-right: 0; }
}

/* ---- motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---- beta steps: small additions to the "forms" section (markup in _beta-view.php) ----
 * Conditional inputs (data-show-when) are hidden by web.js with the hidden attribute, which
 * .field's display:grid would otherwise override. The step cards carry the page's single H1.
 */
.field[hidden] { display: none; }
.beta-aside__title { font: var(--type-h2); letter-spacing: var(--ls-h2); margin: 0 0 var(--space-5); }
.beta-head { display: grid; gap: var(--space-3); justify-items: start; margin-bottom: var(--space-6); }
.beta-head:last-child { margin-bottom: 0; }
.beta-head h1 { font: var(--type-h1); letter-spacing: var(--ls-h1); margin: 0; }
.beta-head .eyebrow { margin: 0; }
.beta-head .card__icon { margin-bottom: var(--space-2); }
.beta-head .prose { font: var(--type-body-lg); color: var(--text-muted); }
.beta-head .prose p { margin: 0; color: inherit; }
.beta-head .prose p + p { margin-top: var(--space-3); }
.form-card > .alert { margin-bottom: var(--space-6); }
.alert p { margin: 0; }
.alert a { color: inherit; }
.beta-keep { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); margin-bottom: var(--space-6); }
.beta-sep { margin: var(--space-7) 0 var(--space-6); }
.beta-delete { display: grid; gap: var(--space-3); }
.beta-delete h2 { font: var(--type-h2); letter-spacing: var(--ls-h2); margin: 0; }
.beta-delete .form-actions { padding-top: var(--space-1); }
/* focus: the 2px outline of the rest of the site instead of the faint brand-soft ring (contrast
 * 1.2:1); a field with an error keeps its red border under the outline */
.input:focus { box-shadow: none; }
.input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--brand); box-shadow: none; }
.field.has-error .input:focus-visible { border-color: var(--danger); }
.check input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* check-inbox: the address, "send again", "change it"; thanks: where to go next */
.beta-sent { margin: 0 0 var(--space-5); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--surface-sunken); border: 1px solid var(--border); font: var(--type-body); color: var(--text-muted); overflow-wrap: anywhere; }
.beta-sent strong { color: var(--text); }
.beta-resend { padding-top: 0; }
.form-card > .alert--ok { margin-bottom: var(--space-5); }
.beta-link { font: var(--type-body); color: var(--text); text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
.beta-next { margin-top: var(--space-6); padding-top: 0; }
.beta-choice-box { padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); background: var(--surface-sunken); border: 1px solid var(--border); }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }
/* /beta aside: the frame sits on the aside itself, so its top edge lines up with the form card
 * (both are direct children of .beta-layout); the steps never wrap */
.beta-aside { padding: var(--space-6); border-radius: var(--radius-xl); background: var(--surface-sunken); border: 1px solid var(--border); }
.beta-aside .offer__list { padding: 0; border: 0; border-radius: 0; background: none; }
.beta-aside__title { margin-top: 0; }
.progress-steps { flex-wrap: nowrap; }
/* the launch-email consent: the same box as the .choice chips (the native grey box read as disabled) */
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 16px; height: 16px; margin: 4px 0 0; border-radius: 4px; border: 1.5px solid var(--text-muted); background: var(--input-bg) center / 12px 12px no-repeat; cursor: pointer; transition: background-color 150ms ease, border-color 150ms ease; }
.check:hover input { border-color: var(--text); }
.check input:checked { border-color: var(--brand-fill); background-color: var(--brand-fill); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }

/* ---- app templates (/templates, /templates/<kind>, /templates/<slug>; app-templates.php, filters in web.js) ---- */
.tpl-layout { display: grid; gap: var(--space-6); }
@media (min-width: 992px) { .tpl-layout { grid-template-columns: 240px minmax(0, 1fr); gap: var(--space-8); align-items: start; } }
.tpl-kinds ul { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.tpl-kinds a {
  display: inline-flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 36px; padding: 6px var(--space-3);
  border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); font: var(--type-ui-strong);
  color: var(--text-muted); text-decoration: none;
}
.tpl-kinds a:hover { color: var(--text); border-color: var(--text-muted); }
.tpl-kinds a.is-current { color: var(--text); border-color: var(--brand); }
.tpl-kinds__n { color: var(--text-muted); font-weight: 400; }
.tpl-kinds__title { margin: var(--space-5) 0 var(--space-2); font: var(--type-ui-strong); color: var(--text-muted); }
@media (min-width: 992px) {
  .tpl-kinds { position: sticky; top: var(--space-9); }
  .tpl-kinds ul { flex-direction: column; flex-wrap: nowrap; gap: var(--space-1); }
  .tpl-kinds a { display: flex; border-color: transparent; border-radius: var(--radius-md); background: none; }
  .tpl-kinds a:hover { background: var(--surface); }
  .tpl-kinds a.is-current { background: var(--surface); }
}
.tpl-main__title { display: flex; align-items: baseline; gap: var(--space-3); margin: 0 0 var(--space-5); }
.tpl-count { font: var(--type-ui-strong); color: var(--text-muted); }
.tpl-filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-6); margin: 0 0 var(--space-6); }
.tpl-filter__group { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.tpl-filter__label { font: var(--type-ui-strong); color: var(--text-muted); margin-right: var(--space-1); }
.tpl-filter__status { flex-basis: 100%; margin: 0; font: var(--type-body-sm); color: var(--text-muted); }
.tpl-chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 6px var(--space-3); border: 1px solid var(--border);
  border-radius: var(--radius-pill); background: var(--surface); font: var(--type-ui-strong); color: var(--text-muted);
  text-decoration: none; cursor: pointer;
}
.tpl-chip:hover { color: var(--text); border-color: var(--text-muted); }
.tpl-chip[aria-pressed="true"] { color: var(--text); border-color: var(--brand); background: var(--brand-tint); }
.tpl-chip__n { margin-left: var(--space-1); color: var(--text-muted); font-weight: 400; }
.tpl-grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); margin: 0; padding: 0; list-style: none; }
.tpl-card { padding: var(--space-5); }
.tpl-card.is-hidden { display: none; }
.tpl-card p:not(.tpl-labels):not(.card__foot) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tpl-labels { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); margin: 0; }
.tpl-plan, .tpl-label, .tpl-engine { font: var(--type-ui-strong); color: var(--text-muted); }
.tpl-plan { font-weight: 600; }
.tpl-plan--free, .tpl-plan--pro { color: var(--text); }
.tpl-empty { margin: var(--space-6) 0 0; color: var(--text-muted); }
.tpl-facts th { width: 30%; color: var(--text-muted); font-weight: 500; }
.tpl-outcome { margin: 0; padding-left: var(--space-5); font: var(--type-body); }
.tpl-outcome li { margin: 0 0 var(--space-2); }
.tpl-outcome li::marker { color: var(--brand); }
.tpl-show { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.tpl-show__item { margin: 0; }
.tpl-show__item img, .tpl-show__item video { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.tpl-show__item figcaption { margin-top: var(--space-2); color: var(--text-muted); font: var(--type-body-sm); }
.tpl-all { margin: var(--space-5) 0 0; }
.changelog__all { margin: var(--space-4) 0 0; }
.changelog__all summary { cursor: pointer; color: var(--text-muted); font: var(--type-ui-strong); }
.changelog__all ul { margin-top: var(--space-3); }

/* ---- moving strip (home templates; web.js adds the pause button) ---- */
.marquee { overflow: hidden; padding: var(--space-2) 0; }
.marquee__track { display: flex; width: max-content; animation: vc-marquee 60s linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track, .marquee.is-paused .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; gap: var(--space-5); margin: 0; padding: 0 var(--space-5) 0 0; list-style: none; }
.marquee__card { width: 340px; flex: none; }
.marquee__controls { display: flex; justify-content: flex-end; margin-top: var(--space-4); }
@keyframes vc-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; scroll-snap-type: x mandatory; }
  .marquee__track { animation: none; }
  .marquee__list[aria-hidden] { display: none; }
  .marquee__card { scroll-snap-align: start; }
}

/* ---- swipe rows on phones: cards side by side, scrolled by hand (Related, home links) ---- */
@media (max-width: 767px) {
  .grid--swipe, .related .grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: var(--space-4); padding-bottom: var(--space-3); }
  .grid--swipe > *, .related .grid > * { flex: 0 0 82%; scroll-snap-align: start; }
  .related .card p, .tpl-card p:not(.tpl-labels):not(.card__foot) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ---- feature cards (/features) ---- */
.fcard__media { margin: calc(-1 * var(--space-6)) calc(-1 * var(--space-6)) var(--space-5); aspect-ratio: 16 / 9; overflow: hidden;
  border-bottom: 1px solid var(--border); border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--surface-sunken); }
.fcard__media picture, .fcard__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.doc-sec--fold > summary { cursor: pointer; list-style: none; }
.doc-sec--fold > summary::-webkit-details-marker { display: none; }
.doc-sec--fold > summary h2 { display: inline-flex; align-items: center; gap: var(--space-3); margin: 0; }
.doc-sec--fold > summary h2::after { content: "+"; color: var(--text-muted); font-weight: 400; }
.doc-sec--fold[open] > summary h2::after { content: "\2212"; }
.doc-sec--fold[open] > summary { margin-bottom: var(--space-4); }
.changelog__older { margin-top: var(--space-6); }
.changelog__older > summary { cursor: pointer; color: var(--text-muted); font: var(--type-ui-strong); padding: var(--space-4) 0; border-top: 1px solid var(--border); }

/* ---- HOME: Needs you list at reading size (the product's own object), works line, more links ---- */
.ny-section { padding-top: var(--space-7); }
.ny { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.ny__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-4); padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--border); }
.ny__title { margin: 0; font: var(--type-h3); }
.ny__count { font: var(--type-body-sm); color: var(--warn); }
.ny__sample { margin-left: auto; font: var(--type-body-sm); color: var(--text-muted); }
.ny__list { list-style: none; margin: 0; padding: 0; }
.ny__row { display: grid; grid-template-columns: 16px minmax(0, 1fr) 7rem 8rem 11rem 4.5rem; align-items: center; gap: var(--space-2) var(--space-4); padding: var(--space-4) var(--space-5); border-top: 1px solid var(--line); font: var(--type-body); }
.ny__row:first-child { border-top: 0; }
.ny__ring { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--warn); }
.ny__task { color: var(--text); font-weight: 500; min-width: 0; }
.ny__task code { font-weight: 400; margin-left: var(--space-2); }
.ny__kind { color: var(--warn); }
.ny__agent, .ny__corral { color: var(--text-muted); }
.ny__corral { display: inline-flex; align-items: center; gap: var(--space-2); }
.ny__swatch { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.ny__swatch--violet { background: var(--corral-violet); }
.ny__swatch--teal { background: var(--neutral); }
.ny__age { text-align: right; color: var(--text-muted); font-variant-numeric: tabular-nums; }
@media (max-width: 991px) {
  .ny__row { grid-template-columns: 16px minmax(0, 1fr) auto; grid-template-areas: "ring task age" ". meta meta"; }
  .ny__ring { grid-area: ring; } .ny__task { grid-area: task; } .ny__age { grid-area: age; }
  .ny__kind, .ny__agent, .ny__corral { grid-row: 2; font: var(--type-body-sm); }
  .ny__kind { grid-column: 2; } .ny__agent, .ny__corral { display: none; }
  .ny__task code { display: block; margin: var(--space-1) 0 0; width: fit-content; }
}
.works { padding: var(--space-6) 0; border-top: 1px solid var(--line); }
.works p { margin: 0; font: var(--type-body-lg); color: var(--text-muted); }
.works a { color: var(--text); }
.works__ver { font-variant-numeric: tabular-nums; color: var(--text-muted); }
.more-links__list { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-7); margin: 0; padding: 0; list-style: none; }
.more-links__list a { font: var(--type-h3); display: inline-flex; min-height: 44px; align-items: center; }

/* ---- pricing: plan cards side by side (/pricing, _pricing.php; owner 2026-11-13) ---- */
.plans-sec { padding-top: var(--space-6); }
/* The switch and the coupon line share one row, so the line (it arrives with the API's answer) does not push the cards
   down on a wide screen: the row is as tall as two lines of it from the start. On a narrow screen it wraps under the switch. */
.plans__bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5); margin: 0 0 var(--space-5); font: var(--type-body); }
@media (min-width: 900px) { .plans__bar { min-height: calc(2lh + 2 * var(--space-3)); } }
/* three cards at their narrowest: the line with places and a date takes three rows there (test-pricing.js) */
@media (min-width: 900px) and (max-width: 989px) { .plans__bar { min-height: calc(3lh + 2 * var(--space-3)); } }
.plans__bar > * { margin: 0; }
.plans__bar:not(:has(> :not([hidden]))) { display: none; } /* no JavaScript: no switch, no line, no empty row */
.plans__offer { flex: 1 1 320px; padding: var(--space-3) var(--space-5); border-radius: var(--radius-md); background: var(--brand-tint); color: var(--text); font: var(--type-body); }
/* Monthly / Yearly (shown by pricing.js) */
.plans__switch { display: inline-flex; gap: var(--space-1); padding: var(--space-1); border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); }
.plans__seg {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-5);
  border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--text-muted); font: var(--type-ui-strong); font-size: 15px; cursor: pointer;
}
.plans__seg:hover { color: var(--text); }
.plans__seg[aria-pressed="true"] { background: var(--surface-raised); color: var(--text); }
.plans__save { color: var(--brand); }
.plans { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); grid-template-columns: minmax(0, 1fr); align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan {
  position: relative; display: flex; flex-direction: column; gap: var(--space-4);
  padding: var(--space-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
}
/* The featured card is marked by a 2px brand frame (border + inset ring), on the same flat surface as the others. */
.plan--featured { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.plan__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 28px; }
.plan__name { margin: 0; font: var(--type-h2); letter-spacing: var(--ls-h2); }
.plan__badge { display: inline-flex; align-items: center; padding: 2px var(--space-3); border-radius: var(--radius-pill); background: var(--brand-tint); color: var(--brand); font: var(--type-ui-strong); white-space: nowrap; }
.plan__pricing { display: flex; flex-direction: column; gap: var(--space-4); }
.plan__was { color: var(--text-muted); font: var(--type-h3); font-variant-numeric: tabular-nums; }
.plan__note s { color: var(--text-muted); }
.plan__price { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--space-2); }
.plan__amount { font: var(--type-h1); font-size: 44px; line-height: 48px; letter-spacing: var(--ls-display); font-variant-numeric: tabular-nums; }
.plan__per { font: var(--type-body); color: var(--text-muted); }
.plan__note { margin: calc(-1 * var(--space-2)) 0 0; font: var(--type-body-sm); color: var(--text-muted); min-height: 40px; }
/* The price with tax for one country: the same quiet line as the note, close under it. The note keeps its two-line
   reserve only where a struck price can wrap it (three narrow cards side by side), so a coupon that arrives late moves
   nothing, and elsewhere the two lines read as one pair. */
.plan__tax { margin: calc(-1 * var(--space-3)) 0 0; font: var(--type-body-sm); color: var(--text-muted); font-variant-numeric: tabular-nums; text-wrap: pretty; }
.plan__note--taxed { min-height: 0; }
@media (min-width: 900px) and (max-width: 1199px) { .plan__note--taxed { min-height: 40px; } }
.plan__cta { width: 100%; }
/* Busy is said by the label ("Opening checkout", pricing.js): the fill keeps its contrast (white on the fill dimmed
   to 70% measured 3.3:1), so the form buttons' .btn[aria-busy] dimming is taken back here. */
.plan__cta.is-busy { opacity: 1; cursor: progress; }
/* Button, error line and hint are one row of the card. */
.plan__action { display: flex; flex-direction: column; gap: var(--space-2); }
.plan__action > p { margin: 0; }
.plan__hint, .plan__requires { font: var(--type-body-sm); color: var(--text-muted); }
/* What the click on the button confirms (age, terms, refund policy): the one text read before the payment, so it has
   the text colour, not the muted one of the hint under it. */
.plan__legal { font: var(--type-body-sm); color: var(--text); text-wrap: pretty; }
.plan__error { font: var(--type-body-sm); color: var(--danger); }
/* Pro has one sentence for "Buy Pro" as a purchase on this page and one for it as a link (no JavaScript). */
.plan__hint--js { display: none; }
.js .plan__hint--js { display: block; }
.js .plan__hint--nojs { display: none; }
.plan__lead { margin: var(--space-2) 0 0; padding-top: var(--space-4); border-top: 1px solid var(--line); font: var(--type-ui-strong); color: var(--text); }
.plan__features { gap: var(--space-3); font: var(--type-body); }
.plan__features li { color: var(--text); text-wrap: pretty; }
.plan__features li::before { color: var(--brand); }
/* Side by side, the cards share their five rows (head, price, action, lead, features; the hidden second price takes
   none), so the leads and the lists start level whatever the hints' lengths. */
@media (min-width: 900px) {
  @supports (grid-template-rows: subgrid) {
    .plan { display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: var(--space-4); }
    .plan__action, .plan__features { align-self: start; } /* a shorter list keeps its own spacing, it is not stretched to the row */
  }
}
.plans__foot { margin: var(--space-5) 0 0; font: var(--type-body-sm); color: var(--text-muted); }
.plans-compare { margin-top: var(--space-8); }
.plans-compare__title { margin: 0 0 var(--space-5); font: var(--type-h2); letter-spacing: var(--ls-h2); }
.table--plans { table-layout: fixed; }
@media (max-width: 639px) { .table--plans th, .table--plans td { padding: var(--space-3) var(--space-2); font-size: 13px; } .table--plans tbody th { min-width: 0; } .table--plans thead th:first-child { width: 34%; } }
.table--plans thead th:not(:first-child), .table--plans td { text-align: center; font-variant-numeric: tabular-nums; }
.table--plans thead th:first-child { width: 40%; }

/* ---- download (/download, download.php; owner 2026-11-14) ---- */
/* Under the buttons of /download: downloading is agreeing to the terms. */
.download-terms { margin: var(--space-4) 0 0; font: var(--type-body-sm); color: var(--text-muted); }
.download-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin: var(--space-5) 0 0; font: var(--type-body); color: var(--text-muted); }
.download-badge { display: inline-flex; align-items: center; padding: 2px var(--space-3); border-radius: var(--radius-pill); background: var(--brand-tint); color: var(--brand); font: var(--type-ui-strong); white-space: nowrap; }
/* The answer to "Download" while there is no build: the redirect's fragment lands on it (id, tabindex -1), so it is
   read first; it is a notice, not a control, so it takes no focus ring. */
.download-soon:focus { outline: none; }
/* /download/mac lands on #download-soon: the half-viewport scroll margin keeps the page at its top, heading in view */
.download-soon { scroll-margin-top: 50vh; margin: var(--space-4) 0 0; padding: var(--space-3) var(--space-5); border-radius: var(--radius-md); background: var(--brand-tint); color: var(--text); font: var(--type-body); }
/* 404: the pages that do exist, as plain links right under the sentence that announces them */
.notfound-links { display: flex; flex-wrap: wrap; gap: 0 var(--space-6); margin: var(--space-5) 0 0; padding: 0; list-style: none; }
.notfound-links a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---- report (/report, _report-form.php, scripts/report.js; legal plan W7) ----
 * The form runs the container's width: from 900 px in two columns (what is reported, then who reports and the
 * button), below that in one. The paragraph for visitors without JavaScript and the confirmation take its place.
 * The card is .report-card, not .form-card: web.js disables the submit button of every `.form-card form` after one
 * submit (the beta forms post and leave the page), and this form stays on the page and must be sendable again. */
.report-sec { padding: var(--space-8) 0 var(--section); }
.report-fallback { margin: 0; font: var(--type-body-lg); color: var(--text); }
.report-form__cols { display: grid; gap: var(--space-6); }
.report-form__col { display: grid; gap: var(--space-6); align-content: start; min-width: 0; }
@media (min-width: 900px) { .report-form__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8); } }
.report-form textarea.input { resize: vertical; min-height: 120px; }
/* The select keeps the look of the other controls; its arrow is drawn with the text colour of the theme. */
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: var(--space-8); cursor: pointer; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.select::after { content: ""; position: absolute; right: var(--space-5); top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: rotate(45deg); pointer-events: none; }
.report-form .check { min-height: 44px; align-items: center; }
.report-form .check input { margin: 0; }
.report-form__failed { font: var(--type-body); }
.report-done { font: var(--type-body-lg); }
.report-done p + p { margin-top: var(--space-2); color: var(--text-muted); font: var(--type-body); }
.report-done:focus { outline: none; }
.report-also { margin: var(--space-6) 0 0; font: var(--type-body); color: var(--text-muted); }
