/**
 * FourWay.io site styles: editorial minimalism, light theme.
 * Loaded AFTER twc_core.css (kit rule).
 *
 * Direction: warm monochrome canvas, navy ink, serif display headlines,
 * colour reserved for meaning (Go / Yield / Park / Stop as washed pastels),
 * 1px hairlines, generous whitespace, quiet motion.
 *
 * Sections: 1 fonts, 2 tokens, 3 base, 4 layout, 5 type, 6 components,
 * 7 page sections, 8 motion, 9 utilities, 10 preferences.
 * Raw colour values live ONLY in section 2. No gradients (kit rule).
 * Max font weight 500 (kit rule). Two families: Overpass (+ Overpass Mono) and Newsreader.
 */

/* ── 1. Fonts (self-hosted, OFL) ─────────────────────────────── */
@font-face { font-family: "Overpass"; src: url("../fonts/overpass-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Overpass"; src: url("../fonts/overpass-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Overpass Mono"; src: url("../fonts/overpass-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Overpass Mono"; src: url("../fonts/overpass-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-wght.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-wght-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
/* Metric-matched fallbacks keep layout steady while fonts load (CLS). */
@font-face { font-family: "Overpass Fallback"; src: local("Arial"); size-adjust: 97%; ascent-override: 92%; descent-override: 26%; line-gap-override: 0%; }
@font-face { font-family: "Newsreader Fallback"; src: local("Georgia"); size-adjust: 92%; ascent-override: 96%; descent-override: 24%; line-gap-override: 0%; }

/* ── 2. Tokens ───────────────────────────────────────────────── */
:root {
  color-scheme: light;

  /* Brand primitives (spec §3.2) */
  --fw-navy: #12273A;
  --fw-teal: #167D70;
  --fw-amber: #E8AC3D;
  --fw-slate: #63748A;
  --fw-red: #C44F4F;

  /* Warm monochrome canvas */
  --fw-bg: #FBFBFA;              /* canvas */
  --fw-bone: #F7F6F3;            /* alternating sections, inline code, keys */
  --fw-surface: #FFFFFF;         /* cards (kit permits white surfaces; never the page) */
  --fw-surface-2: #F9F9F8;
  --fw-line: #EAEAEA;            /* every hairline */
  --fw-line-strong: #8F8E8A;     /* input borders: 3.3:1 */
  --fw-ink: var(--fw-navy);      /* headings, primary buttons: 14:1 */
  --fw-text: #2F3437;            /* body: 12:1 */
  --fw-text-2: #6F6E69;          /* secondary: 4.9:1 */
  --fw-link: #0F6B60;            /* links: 5.9:1 on bone */
  --fw-focus: #1F6C9F;
  --fw-btn-hover: #24384C;
  --fw-on-ink: #DDE4EB;          /* body text on navy: 11:1 */
  --fw-mint: #2BB39F;            /* accent on navy (the mark's fourth arm) */
  --fw-go-deep: #22432A;         /* text on go-bg: 10:1 */

  /* Semantic pastels: Go / Yield / Park / Stop */
  --fw-go-bg: #EDF3EC;    --fw-go-ink: #346538;
  --fw-yield-bg: #FBF3DB; --fw-yield-ink: #956400;
  --fw-park-bg: #E1F3FE;  --fw-park-ink: #1F6C9F;
  --fw-stop-bg: #FDEBEC;  --fw-stop-ink: #9F2F2D;
  --fw-neutral-bg: #F1F1EF; --fw-neutral-ink: #5F5E5B;

  /* Data marks (charts, timing bar, diagram) */
  --fw-mark-go: var(--fw-teal);
  --fw-mark-yield: var(--fw-amber);
  --fw-mark-park: var(--fw-slate);
  --fw-mark-stop: var(--fw-red);

  /* Parked-page accents (fill / text on fill), all >= 4.5:1 */
  --pa-ink-fill: #12273A;   --pa-ink-on: #FBFBFA;
  --pa-teal-fill: #167D70;  --pa-teal-on: #FFFFFF;
  --pa-slate-fill: #4E5E73; --pa-slate-on: #FFFFFF;
  --pa-amber-fill: #E8AC3D; --pa-amber-on: #12273A;
  --pa-red-fill: #9F2F2D;   --pa-red-on: #FFFFFF;

  /* /parked demo presets, chosen per hostname (all >= 4.5:1 on the canvas) */
  --pk-a0: #12273A; --pk-a1: #0F6B60; --pk-a2: #4E5E73;
  --pk-a3: #6A4C72; --pk-a4: #4A6339; --pk-a5: #94543A;
  --pk-on-light: #FFFFFF;

  /* Demo partner shop (fictional brand) */
  --shop-bg: #F6F3EC; --shop-ink: #2B2A26; --shop-line: #E4DED1; --shop-accent: #3F5B3A; --shop-text-2: #5F5A4F; --shop-card: #FFFDF8; --shop-img: #E9E3D5; --shop-text-3: #6F6A5F;

  /* Code */
  --fw-code-bg: #FFFFFF;
  --fw-code-ink: #2F3437;
  --fw-code-muted: #6F6E69;
  --fw-code-key: #1F6C9F;
  --fw-code-val: #346538;

  /* Type */
  --fw-sans: "Overpass", "Overpass Fallback", ui-sans-serif, system-ui, sans-serif;
  --fw-serif: "Newsreader", "Newsreader Fallback", Georgia, serif;
  --fw-mono: "Overpass Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --fw-fs-xs: 0.8125rem;
  --fw-fs-sm: 0.9375rem;
  --fw-fs-base: 1.0625rem;
  --fw-fs-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --fw-fs-xl: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  --fw-fs-2xl: clamp(2rem, 1.5rem + 2.1vw, 3.25rem);
  --fw-fs-3xl: clamp(2.6rem, 1.9rem + 3vw, 4.25rem);

  /* Space (4px base) */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;
  --section-y: clamp(5rem, 10vw, 8rem);
  --gutter: clamp(1rem, 3.5vw, 2.5rem);
  --container: 72rem;
  --narrow: 46rem;
  --nav-h: 4rem;

  /* Shape and depth */
  --r-sm: 4px; --r: 6px; --r-lg: 12px; --r-pill: 999px;
  --lift: 0 2px 8px rgb(17 17 17 / 0.04);
  --pop: 0 12px 32px -12px rgb(17 17 17 / 0.12), 0 0 0 1px var(--fw-line);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 140ms; --t: 200ms; --t-reveal: 600ms;

  /* Kit token bridge: any .twc-* class picks up FourWay values */
  --twc-bg: var(--fw-bg);
  --twc-surface: var(--fw-surface);
  --twc-border: var(--fw-line);
  --twc-text: var(--fw-text);
  --twc-text-secondary: var(--fw-text-2);
  --twc-text-muted: var(--fw-text-2);
  --twc-accent: var(--fw-ink);
  --twc-accent-hover: var(--fw-btn-hover);
  --twc-accent-light: var(--fw-bone);
  --twc-font: var(--fw-sans);
  --twc-font-mono: var(--fw-mono);
  --twc-radius: var(--r);
}

/* ── 3. Base ─────────────────────────────────────────────────── */
html { scroll-padding-top: calc(var(--nav-h) + var(--s-4)); scroll-behavior: auto; }
body {
  font-family: var(--fw-sans);
  font-size: var(--fw-fs-base);
  line-height: 1.6;
  color: var(--fw-text);
  background: var(--fw-bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
main:focus { outline: none; }
a { color: var(--fw-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
a:hover { color: var(--fw-ink); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--fw-focus); outline-offset: 2px; border-radius: 4px; }
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }
::selection { background: var(--fw-park-bg); color: var(--fw-ink); }
img, svg, video { max-width: 100%; height: auto; }
code, kbd, pre, samp { font-family: var(--fw-mono); font-size: 0.9em; }
:not(pre) > code { background: var(--fw-bone); border: 1px solid var(--fw-line); border-radius: var(--r-sm); padding: 0.05em 0.35em; overflow-wrap: anywhere; color: var(--fw-text); }
kbd {
  display: inline-flex; align-items: center; justify-content: center; min-width: 1.6em; height: 1.6em; padding: 0 0.4em;
  font-size: 0.78em; line-height: 1; color: var(--fw-text);
  background: var(--fw-bone); border: 1px solid var(--fw-line); border-bottom-width: 2px; border-radius: var(--r-sm);
}
hr { border: 0; border-top: 1px solid var(--fw-line); margin: var(--s-6) 0; }
table { border-collapse: collapse; width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
strong { font-weight: 500; color: var(--fw-ink); }

/* ── 4. Layout ───────────────────────────────────────────────── */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), var(--narrow)); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }
.section--tint { background: var(--fw-bone); border-block: 1px solid var(--fw-line); }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-6); }
.grid-2 { display: grid; gap: var(--s-7) var(--s-8); grid-template-columns: minmax(0, 1fr); }
.grid-3 { display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48rem) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64rem) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ── 5. Type ─────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-weight: 500; color: var(--fw-ink); text-wrap: balance; }
.display, .h1, .h2 {
  font-family: var(--fw-serif);
  font-weight: 400;
  letter-spacing: -0.03em;
  font-optical-sizing: auto;
}
.display { font-size: var(--fw-fs-3xl); line-height: 1.04; }
.h1, .h2 { font-size: var(--fw-fs-2xl); line-height: 1.1; }
.display em, .h2 em { font-style: italic; padding-bottom: 0.05em; }
.h3 { font-size: var(--fw-fs-xl); line-height: 1.25; letter-spacing: -0.01em; }
.h4 { font-size: var(--fw-fs-lg); line-height: 1.35; }
.lead { font-size: var(--fw-fs-lg); color: var(--fw-text-2); line-height: 1.6; max-width: 58ch; text-wrap: pretty; }
.muted { color: var(--fw-text-2); }
.small { font-size: var(--fw-fs-sm); }
.xs { font-size: var(--fw-fs-xs); }
.mono { font-family: var(--fw-mono); font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--fw-mono); font-size: var(--fw-fs-xs); font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--fw-text-2);
}
.prose { max-width: 68ch; }
.prose > * + * { margin-top: var(--s-4); }
.prose h2 { font-family: var(--fw-serif); font-weight: 400; font-size: var(--fw-fs-xl); line-height: 1.25; letter-spacing: -0.015em; margin-top: var(--s-7); }
.prose h3 { font-size: var(--fw-fs-lg); line-height: 1.35; margin-top: var(--s-6); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: var(--s-2); }
.prose li::marker { color: var(--fw-text-2); }
.prose p, .prose li { text-wrap: pretty; }
.prose table { font-size: var(--fw-fs-sm); }
.prose th, .prose td { text-align: left; padding: var(--s-3); border-bottom: 1px solid var(--fw-line); vertical-align: top; }
.prose th { font-weight: 500; color: var(--fw-text-2); }

/* ── 6. Components ───────────────────────────────────────────── */

/* Icons (Phosphor Bold, one weight everywhere) */
.icon { width: 1.25rem; height: 1.25rem; flex: none; display: inline-block; vertical-align: -0.2em; }
.icon--xs { width: 0.8rem; height: 0.8rem; }
.icon--sm { width: 1rem; height: 1rem; }
.icon--md { width: 1.5rem; height: 1.5rem; }
.icon--lg { width: 2rem; height: 2rem; }
.icon-tile {
  display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: var(--r);
  background: var(--fw-bone); border: 1px solid var(--fw-line); color: var(--fw-ink);
}
.icon-tile--go { background: var(--fw-go-bg); color: var(--fw-go-ink); border-color: transparent; }
.icon-tile--yield { background: var(--fw-yield-bg); color: var(--fw-yield-ink); border-color: transparent; }
.icon-tile--park { background: var(--fw-park-bg); color: var(--fw-park-ink); border-color: transparent; }
.icon-tile--stop { background: var(--fw-stop-bg); color: var(--fw-stop-ink); border-color: transparent; }

/* Buttons: solid ink primary, hairline secondary */
.btn {
  --btn-h: 2.875rem;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--btn-h); padding: 0 1.25rem;
  border-radius: var(--r); border: 1px solid transparent;
  font-size: var(--fw-fs-sm); font-weight: 500; line-height: 1; white-space: nowrap;
  text-decoration: none; cursor: pointer; touch-action: manipulation;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn--sm { --btn-h: 2.375rem; padding: 0 0.95rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--fw-ink); color: var(--fw-bg); }
.btn--primary:hover { background: var(--fw-btn-hover); color: var(--fw-bg); }
.btn--ghost { background: var(--fw-surface); color: var(--fw-ink); border-color: var(--fw-line); }
.btn--ghost:hover { border-color: var(--fw-line-strong); color: var(--fw-ink); }
.btn:active { transform: scale(0.98); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; }
.link-arrow { display: inline-flex; align-items: center; gap: var(--s-1); font-weight: 500; text-decoration: none; color: var(--fw-ink); }
.link-arrow .icon { transition: transform var(--t-fast) var(--ease); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover .icon { transform: translateX(3px); } }
.ext .icon { margin-left: 0.15em; vertical-align: -0.1em; }

/* Status tags: washed pastels, small caps, icon + word */
.chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.22rem 0.6rem 0.18rem; border-radius: var(--r-pill);
  font-family: var(--fw-mono); font-size: 0.6875rem; font-weight: 500; line-height: 1.35;
  letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap;
  background: var(--fw-neutral-bg); color: var(--fw-neutral-ink);
}
.chip .icon { width: 0.8rem; height: 0.8rem; }
.chip--go, .chip--healthy, .chip--available { background: var(--fw-go-bg); color: var(--fw-go-ink); }
.chip--yield, .chip--degraded, .chip--early { background: var(--fw-yield-bg); color: var(--fw-yield-ink); }
.chip--park { background: var(--fw-park-bg); color: var(--fw-park-ink); }
.chip--stop, .chip--down { background: var(--fw-stop-bg); color: var(--fw-stop-ink); }
.chip--planned, .chip--unknown, .chip--example { background: var(--fw-neutral-bg); color: var(--fw-neutral-ink); }

/* Skip link + screen-reader text */
.skip-link { position: absolute; left: var(--s-4); top: -4rem; z-index: 400; background: var(--fw-ink); color: var(--fw-bg); padding: var(--s-2) var(--s-4); border-radius: var(--r); }
.skip-link:focus { top: var(--s-3); color: var(--fw-bg); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--fw-bg) 88%, transparent); border-bottom: 1px solid var(--fw-line); }
@supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .site-header { -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px); }
}
.header-inner { display: flex; align-items: center; gap: var(--s-5); min-height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--fw-ink); text-decoration: none; font-weight: 500; font-size: 1.125rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--fw-ink); }
.brand-tld { color: var(--fw-text-2); }
.mark { width: 1.625rem; height: 1.625rem; }
.mark-tile { fill: var(--fw-ink); }
.mark-lane { fill: var(--fw-bg); }
.mark-go { fill: var(--fw-mark-go); }
.nav-desktop { display: none; margin-right: auto; }
.nav-list { display: flex; align-items: center; gap: 0.125rem; list-style: none; }
.nav-link {
  display: inline-flex; align-items: center; gap: 0.3rem; min-height: 2.375rem; padding: 0 0.7rem; border-radius: var(--r);
  color: var(--fw-text); text-decoration: none; font-size: var(--fw-fs-sm); font-weight: 400; cursor: pointer; list-style: none;
}
.nav-link::-webkit-details-marker { display: none; }
.nav-link:hover, .nav-dd[open] > .nav-link { background: var(--fw-bone); color: var(--fw-ink); }
.nav-link[aria-current="page"] { color: var(--fw-ink); font-weight: 500; }
.nav-item { position: relative; }
.nav-dd > summary .icon { transition: transform var(--t-fast) var(--ease); color: var(--fw-text-2); }
.nav-dd[open] > summary .icon { transform: rotate(180deg); }
.nav-panel { position: absolute; top: calc(100% + 0.5rem); left: -0.5rem; z-index: 200; width: 19rem; padding: var(--s-2); background: var(--fw-surface); border-radius: var(--r-lg); box-shadow: var(--pop); }
.nav-panel-link { display: grid; gap: 0.1rem; padding: 0.65rem 0.8rem; border-radius: var(--r); text-decoration: none; }
.nav-panel-link:hover { background: var(--fw-bone); }
.nav-panel-title { color: var(--fw-ink); font-weight: 500; font-size: var(--fw-fs-sm); }
.nav-panel-desc { color: var(--fw-text-2); font-size: var(--fw-fs-xs); }
.header-actions { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }
.nav-signin { display: none; }
.menu-btn { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--r); border: 1px solid var(--fw-line); background: var(--fw-surface); cursor: pointer; list-style: none; color: var(--fw-ink); }
.menu-btn::-webkit-details-marker { display: none; }
.menu-btn .icon-close, .nav-mobile[open] .menu-btn .icon-open { display: none; }
.nav-mobile[open] .menu-btn .icon-close { display: inline-block; }
.mobile-panel { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; overscroll-behavior: contain; background: var(--fw-bg); border-bottom: 1px solid var(--fw-line); padding: var(--s-4) var(--gutter) calc(var(--s-6) + env(safe-area-inset-bottom, 0px)); }
.mobile-panel ul { list-style: none; margin-bottom: var(--s-3); }
.mobile-panel li a { display: flex; align-items: center; min-height: 2.75rem; color: var(--fw-ink); text-decoration: none; border-bottom: 1px solid var(--fw-line); }
.mobile-panel li a[aria-current="page"] { font-weight: 500; }
.mobile-group { margin-top: var(--s-4); font-family: var(--fw-mono); font-size: var(--fw-fs-xs); text-transform: uppercase; letter-spacing: 0.05em; color: var(--fw-text-2); }
.mobile-panel .btn { margin-top: var(--s-4); }
.site-header .header-actions > .btn { display: none; }
@media (min-width: 30rem) { .site-header .header-actions > .btn { display: inline-flex; } }
@media (min-width: 64rem) { .nav-desktop { display: block; } .nav-signin { display: inline-flex; } .nav-mobile { display: none; } }

/* Cards */
.card {
  background: var(--fw-surface); border: 1px solid var(--fw-line); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.25rem);
  transition: box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.card h3 { font-size: var(--fw-fs-lg); line-height: 1.35; }
.card p { color: var(--fw-text-2); }
.card--link { display: block; color: var(--fw-text); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .card--link:hover, .tile:hover, .plan:hover { box-shadow: var(--lift); } }

/* Forms */
.field { display: grid; gap: var(--s-2); }
.field + .field { margin-top: var(--s-4); }
.label { font-weight: 500; font-size: var(--fw-fs-sm); color: var(--fw-ink); }
.label .opt { font-weight: 400; color: var(--fw-text-2); }
.input, .select, .textarea {
  width: 100%; min-height: 3rem; padding: 0.7rem 0.9rem; font-size: 1rem; line-height: 1.4;
  background: var(--fw-surface); color: var(--fw-text);
  border: 1px solid var(--fw-line-strong); border-radius: var(--r);
  -webkit-appearance: none; appearance: none;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.textarea { min-height: 8rem; resize: vertical; }
.select { padding-right: 2.5rem; }
.select-wrap { position: relative; }
.select-wrap .icon { position: absolute; right: 0.8rem; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--fw-text-2); }
.input::placeholder, .textarea::placeholder { color: var(--fw-text-2); opacity: 1; }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; border-color: var(--fw-focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fw-focus) 22%, transparent); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--fw-stop-ink); }
.help { font-size: var(--fw-fs-sm); color: var(--fw-text-2); }
.error { display: flex; gap: var(--s-2); align-items: flex-start; font-size: var(--fw-fs-sm); color: var(--fw-stop-ink); }
.error .icon { margin-top: 0.15em; }
.check-row { display: flex; gap: var(--s-3); align-items: flex-start; }
.check-row input { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; accent-color: var(--fw-ink); flex: none; }
.form-note { font-size: var(--fw-fs-sm); color: var(--fw-text-2); }
.notice { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4) var(--s-5); border-radius: var(--r-lg); border: 1px solid var(--fw-line); background: var(--fw-surface); }
.notice--good { background: var(--fw-go-bg); border-color: transparent; }
.notice--warn { background: var(--fw-yield-bg); border-color: transparent; }
.notice--bad { background: var(--fw-stop-bg); border-color: transparent; }
.notice .icon { margin-top: 0.15em; }
.notice--good .icon { color: var(--fw-go-ink); }
.notice--warn .icon { color: var(--fw-yield-ink); }
.notice--bad .icon { color: var(--fw-stop-ink); }

/* URL check form */
.checkform { display: grid; gap: var(--s-2); max-width: 34rem; }
.checkform-row { display: flex; gap: var(--s-2); padding: 0.375rem; background: var(--fw-surface); border: 1px solid var(--fw-line-strong); border-radius: calc(var(--r) + 4px); transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.checkform-row:focus-within { border-color: var(--fw-focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fw-focus) 22%, transparent); }
.checkform-row > .icon { align-self: center; margin-left: 0.5rem; color: var(--fw-text-2); }
.checkform .input { border: 0; min-height: 2.75rem; padding: 0.5rem; background: transparent; box-shadow: none; }
.checkform .input:focus-visible { box-shadow: none; }
.checkform .btn { --btn-h: 2.75rem; }
.checkform-meta { font-size: var(--fw-fs-sm); color: var(--fw-text-2); display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); align-items: center; }
.kbd-hint { display: none; align-items: center; gap: 0.35rem; }
@media (hover: hover) and (pointer: fine) { .kbd-hint { display: inline-flex; } }
@media (max-width: 29.99rem) {
  .checkform-row { flex-wrap: wrap; }
  .checkform-row .input { flex: 1 1 calc(100% - 3rem); }
  .checkform-row .btn { flex: 1 1 100%; }
}

/* Faux-OS window chrome */
.window { background: var(--fw-surface); border: 1px solid var(--fw-line); border-radius: var(--r-lg); box-shadow: var(--lift); overflow: hidden; min-width: 0; }
.window-bar { display: flex; align-items: center; gap: var(--s-3); height: 2.5rem; padding: 0 var(--s-4); border-bottom: 1px solid var(--fw-line); background: var(--fw-surface); }
.window-dots { display: inline-flex; gap: 6px; flex: none; }
.window-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--fw-line); display: block; }
.window-url { flex: 1; min-width: 0; text-align: center; font-family: var(--fw-mono); font-size: var(--fw-fs-xs); color: var(--fw-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 42px; }
.window-url span { display: inline-block; padding: 0.15rem 0.75rem; border-radius: var(--r); background: var(--fw-bone); max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.window-body { min-width: 0; }
.window-body > .result { border: 0; border-radius: 0; }
.window-body > .notice { margin: var(--s-5); }

/* Check result */
.result { background: var(--fw-surface); border: 1px solid var(--fw-line); border-radius: var(--r-lg); overflow: hidden; }
.result-head { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; justify-content: space-between; padding: var(--s-5); border-bottom: 1px solid var(--fw-line); }
.result-head .h4 { font-family: var(--fw-serif); font-weight: 400; font-size: var(--fw-fs-xl); letter-spacing: -0.015em; }
.result-host { font-family: var(--fw-mono); font-size: var(--fw-fs-xs); color: var(--fw-text-2); overflow-wrap: anywhere; margin-top: 0.15rem; }
.result-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--fw-line); }
@media (min-width: 40rem) { .result-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 40rem) { .result-metrics--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.metric { padding: var(--s-4) var(--s-5); border-right: 1px solid var(--fw-line); border-bottom: 1px solid var(--fw-line); margin-bottom: -1px; }
.metric:last-child { border-right: 0; }
.metric-label { font-family: var(--fw-mono); font-size: 0.6875rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--fw-text-2); }
.metric-value { font-family: var(--fw-mono); font-variant-numeric: tabular-nums; font-size: var(--fw-fs-xl); line-height: 1.2; margin-top: 0.25rem; color: var(--fw-ink); }
.metric-value small { font-size: var(--fw-fs-sm); color: var(--fw-text-2); }
.result-body { padding: var(--s-5); display: grid; gap: var(--s-5); }
.findings { list-style: none; display: grid; gap: var(--s-3); }
.finding { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--fw-fs-sm); }
.finding .icon { margin-top: 0.15em; width: 1.1rem; height: 1.1rem; }
.finding--good .icon { color: var(--fw-go-ink); }
.finding--info .icon { color: var(--fw-park-ink); }
.finding--warn .icon { color: var(--fw-yield-ink); }
.finding--bad .icon { color: var(--fw-stop-ink); }
.timing-bar { display: block; width: 100%; height: 0.5rem; }
rect.tb-connect { fill: var(--fw-mark-park); } rect.tb-tls { fill: var(--fw-mark-yield); } rect.tb-wait { fill: var(--fw-mark-go); } rect.tb-rest { fill: var(--fw-line-strong); }
.timing-legend { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); list-style: none; font-size: var(--fw-fs-xs); color: var(--fw-text-2); }
.timing-legend li { display: inline-flex; align-items: center; gap: 0.4rem; }
.swatch { width: 0.6rem; height: 0.6rem; border-radius: 2px; display: inline-block; }
.swatch.tb-connect { background: var(--fw-mark-park); } .swatch.tb-tls { background: var(--fw-mark-yield); } .swatch.tb-wait { background: var(--fw-mark-go); } .swatch.tb-rest { background: var(--fw-line-strong); }
.hops { list-style: none; font-family: var(--fw-mono); font-size: var(--fw-fs-xs); display: grid; gap: var(--s-1); }
.hops li { display: flex; gap: var(--s-3); overflow-wrap: anywhere; }
.hops .num { color: var(--fw-text-2); min-width: 2.5rem; }
.result-foot { padding: var(--s-4) var(--s-5); background: var(--fw-surface-2); border-top: 1px solid var(--fw-line); font-size: var(--fw-fs-xs); color: var(--fw-text-2); }
.result-actions { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); align-items: center; }
.result details summary { cursor: pointer; color: var(--fw-text-2); }
.skeleton { display: grid; gap: var(--s-3); padding: var(--s-6) var(--s-5); }
.skeleton span { display: block; height: 0.85rem; border-radius: var(--r-sm); background: var(--fw-bone); }
.skeleton span:nth-child(1) { width: 45%; height: 1.4rem; }
.skeleton span:nth-child(2) { width: 70%; }
.skeleton span:nth-child(3) { width: 85%; }

/* Code blocks: white sheet with hairline (no dark slabs) */
.code { position: relative; background: var(--fw-code-bg); color: var(--fw-code-ink); border: 1px solid var(--fw-line); border-radius: var(--r-lg); padding: var(--s-5); overflow-x: auto; overscroll-behavior-x: contain; font-family: var(--fw-mono); font-size: var(--fw-fs-sm); line-height: 1.75; }
.code .c { color: var(--fw-code-muted); }
.code .k { color: var(--fw-code-key); }
.code .v { color: var(--fw-code-val); }
.code:has(.copy-btn) pre { padding-right: 5.5rem; }
.copy-btn { position: absolute; top: var(--s-3); right: var(--s-3); display: inline-flex; align-items: center; gap: 0.3rem; min-height: 2rem; padding: 0 0.6rem; border-radius: var(--r-sm); border: 1px solid var(--fw-line); background: var(--fw-bone); color: var(--fw-text); font-size: var(--fw-fs-xs); cursor: pointer; }
.copy-btn:hover { border-color: var(--fw-line-strong); }
.table-wrap { overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid var(--fw-line); border-radius: var(--r-lg); background: var(--fw-surface); }
.table { font-size: var(--fw-fs-sm); }
.table th, .table td { padding: var(--s-4) var(--s-5); text-align: left; border-bottom: 1px solid var(--fw-line); vertical-align: top; }
.table thead th { font-family: var(--fw-mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--fw-text-2); background: var(--fw-surface-2); }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table tbody th { font-weight: 500; color: var(--fw-ink); }

/* FAQ: no boxes, hairlines only, +/- */
.faq { border-top: 1px solid var(--fw-line); }
.faq details { border-bottom: 1px solid var(--fw-line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); min-height: 3.75rem; padding: var(--s-5) 0; cursor: pointer; list-style: none; font-weight: 500; font-size: var(--fw-fs-lg); line-height: 1.4; color: var(--fw-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--fw-text-2); flex: none; }
.faq summary .icon-minus, .faq details[open] summary .icon-plus { display: none; }
.faq details[open] summary .icon-minus { display: inline-block; }
.faq .faq-a { padding: 0 0 var(--s-6); color: var(--fw-text-2); max-width: 62ch; }

/* Closing CTA: a centred sheet on the dot texture */
.cta-band { background-color: var(--fw-surface); border: 1px solid var(--fw-line); border-radius: calc(var(--r-lg) + 4px); padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem); display: grid; justify-items: center; text-align: center; gap: var(--s-5); }
.cta-band p { color: var(--fw-text-2); max-width: 46ch; font-size: var(--fw-fs-lg); }
.cta-band .h2 { max-width: 18ch; }
.cta-band .btn-row { justify-content: center; margin-top: var(--s-2); }
.cta-mark { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 1rem; background: var(--fw-surface); border: 1px solid var(--fw-line); box-shadow: 0 12px 28px -16px rgb(18 39 58 / 0.3); }
.cta-mark .mark { width: 2rem; height: 2rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--fw-line); background: var(--fw-bone); padding: var(--s-8) 0 calc(var(--s-6) + env(safe-area-inset-bottom, 0px)); }
.footer-top { display: grid; gap: var(--s-7); }
@media (min-width: 64rem) { .footer-top { grid-template-columns: 16rem minmax(0, 1fr); } }
.footer-tag { margin-top: var(--s-3); color: var(--fw-text-2); font-family: var(--fw-serif); font-size: var(--fw-fs-lg); font-style: italic; }
.footer-status { display: inline-flex; gap: var(--s-2); align-items: center; margin-top: var(--s-4); font-size: var(--fw-fs-sm); color: var(--fw-text-2); text-decoration: none; }
.footer-status:hover { color: var(--fw-ink); }
.footer-cols { display: grid; gap: var(--s-6); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 48rem) { .footer-cols { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.footer-h { font-family: var(--fw-mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--fw-text-2); margin-bottom: var(--s-3); }
.footer-col ul { list-style: none; display: grid; gap: var(--s-2); }
.footer-col a { color: var(--fw-text); text-decoration: none; font-size: var(--fw-fs-sm); display: inline-block; padding: 0.15rem 0; }
.footer-col a:hover { color: var(--fw-ink); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); justify-content: space-between; align-items: center; margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--fw-line); font-size: var(--fw-fs-sm); color: var(--fw-text-2); }
.footer-bottom a { color: var(--fw-text-2); }
.footer-meta { display: flex; gap: var(--s-4); align-items: center; flex-wrap: wrap; }

/* ── 7. Page sections ───────────────────────────────────────── */

/* Background texture: fine dot grid (SVG file, not a gradient) */
.texture { background-image: url("../img/dots.svg"); background-size: 24px 24px; background-position: center top; }

/* Home hero: centred statement, the product itself as the proof below it */
.hero { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3.5rem, 7vw, 6rem); border-bottom: 1px solid var(--fw-line); overflow: hidden; }
.hero-copy > * + * { margin-top: var(--s-5); }
.hero-copy--center { display: grid; justify-items: center; text-align: center; }
.hero-copy--center .display { max-width: 17ch; font-size: clamp(2.75rem, 1.55rem + 4.6vw, 4.5rem); line-height: 1.02; letter-spacing: -0.035em; }
.hero-copy--center .lead { max-width: 36rem; margin-inline: auto; }
.hero-copy--center .checkform { width: min(100%, 36rem); justify-items: center; margin-top: var(--s-6); }
.hero-copy--center .checkform-row { width: 100%; box-shadow: 0 1px 2px rgb(18 39 58 / 0.04), 0 12px 32px -18px rgb(18 39 58 / 0.25); }
.hero-copy--center .checkform .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-copy--center .checkform-meta { justify-content: center; }
.hero-visual { position: relative; }
.hero-visual--wide { width: min(100%, 60rem); margin: clamp(3rem, 6vw, 4.5rem) auto 0; }
.hero-visual--wide .window { box-shadow: 0 1px 2px rgb(18 39 58 / 0.04), 0 30px 60px -30px rgb(18 39 58 / 0.22); }
@media (min-width: 56rem) {
  .hero-visual--wide .result-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6); align-items: start; }
  .hero-visual--wide .result-body > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.hero-visual-caption { margin-top: var(--s-4); font-size: var(--fw-fs-xs); color: var(--fw-text-2); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); align-items: center; justify-content: center; }
.hero-visual-caption .link-arrow { font-size: inherit; }

/* Announcement pill */
.pill { display: inline-flex; align-items: center; gap: var(--s-2); padding: 0.3rem 0.75rem 0.3rem 0.3rem; border: 1px solid var(--fw-line); border-radius: var(--r-pill); background: var(--fw-surface); color: var(--fw-text); font-size: var(--fw-fs-xs); text-decoration: none; transition: border-color var(--t-fast) var(--ease); max-width: 100%; }
.pill:hover { border-color: var(--fw-line-strong); color: var(--fw-ink); }
.pill-tag { padding: 0.1rem 0.5rem; border-radius: var(--r-pill); background: var(--fw-go-bg); color: var(--fw-go-ink); font-family: var(--fw-mono); font-size: 0.6875rem; letter-spacing: 0.04em; text-transform: uppercase; flex: none; }
.pill .icon { color: var(--fw-text-2); flex: none; }

/* Proof: heading on the left, four facts in a hairline grid on the right */
.proof { display: grid; gap: var(--s-7); }
@media (min-width: 64rem) { .proof { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr); gap: var(--s-8); align-items: start; } .proof-head { position: sticky; top: calc(var(--nav-h) + var(--s-6)); } }
.proof-grid { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--fw-line); }
@media (min-width: 40rem) { .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .proof-item:nth-child(odd) { border-right: 1px solid var(--fw-line); padding-right: var(--s-6); } .proof-item:nth-child(even) { padding-left: var(--s-6); } }
.proof-item { padding-block: var(--s-6); border-bottom: 1px solid var(--fw-line); display: grid; gap: var(--s-3); align-content: start; }
.proof-item h3 { display: flex; align-items: center; gap: var(--s-3); font-size: var(--fw-fs-lg); line-height: 1.35; }
.proof-item h3 .icon { color: var(--fw-teal); flex: none; }
.proof-item p { color: var(--fw-text-2); }

/* A full-bleed hairline between two plain sections */
.section--rule { border-top: 1px solid var(--fw-line); }

/* Calculator band: statement left, detail and action right */
.cost-line { display: grid; gap: var(--s-6); align-items: end; }
@media (min-width: 56rem) { .cost-line { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s-8); } }


/* Degradation timeline */
.tl { list-style: none; display: grid; gap: 0; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 56rem) { .tl { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.tl-step { position: relative; padding: var(--s-5) var(--s-4) var(--s-5) 0; border-top: 2px solid var(--fw-line); }
.tl-step::before { content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--fw-bg); border: 2px solid var(--fw-line-strong); }
.tl-step[data-state="healthy"] { border-top-color: var(--fw-mark-go); } .tl-step[data-state="healthy"]::before { border-color: var(--fw-mark-go); }
.tl-step[data-state="suspected"], .tl-step[data-state="degraded"] { border-top-color: var(--fw-mark-yield); }
.tl-step[data-state="suspected"]::before, .tl-step[data-state="degraded"]::before { border-color: var(--fw-mark-yield); }
.tl-step[data-state="down"] { border-top-color: var(--fw-mark-stop); } .tl-step[data-state="down"]::before { border-color: var(--fw-mark-stop); }
.tl-step[data-state="recovering"] { border-top-color: var(--fw-mark-park); } .tl-step[data-state="recovering"]::before { border-color: var(--fw-mark-park); }
.tl-step h3 { font-size: var(--fw-fs-base); margin: var(--s-3) 0 var(--s-2); }
.tl-step p { font-size: var(--fw-fs-sm); color: var(--fw-text-2); }
.tl-when { font-family: var(--fw-mono); font-size: var(--fw-fs-xs); color: var(--fw-text-2); }

/* Steps */
.steps { list-style: none; counter-reset: step; display: grid; gap: var(--s-6); }
.step { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: var(--s-4); align-items: start; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: var(--r); background: var(--fw-surface); border: 1px solid var(--fw-line); font-family: var(--fw-mono); font-size: var(--fw-fs-sm); color: var(--fw-ink); }
.step h3 { font-size: var(--fw-fs-lg); line-height: 1.35; }
.step p { color: var(--fw-text-2); margin-top: var(--s-1); }

/* Bento */
.bento { display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48rem) { .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.tile { background: var(--fw-surface); border: 1px solid var(--fw-line); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; gap: var(--s-3); align-content: start; min-width: 0; transition: box-shadow var(--t) var(--ease); }
.tile h3 { font-family: var(--fw-serif); font-weight: 400; font-size: var(--fw-fs-xl); line-height: 1.2; letter-spacing: -0.015em; }
.tile p { color: var(--fw-text-2); font-size: var(--fw-fs-sm); line-height: 1.6; }
.tile--tint { background: var(--fw-go-bg); border-color: transparent; }
.tile--tint p { color: var(--fw-text); }
.tile--ink { background: var(--fw-bone); }
@media (min-width: 48rem) { .tile--w4 { grid-column: span 4; } .tile--w3 { grid-column: span 3; } .tile--w2 { grid-column: span 2; } }
.tile-k { font-family: var(--fw-mono); font-size: 0.6875rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--fw-text-2); display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.mini { font-family: var(--fw-mono); font-size: var(--fw-fs-xs); font-variant-numeric: tabular-nums; }
.mini-rows { display: grid; gap: 0; list-style: none; border-top: 1px solid var(--fw-line); }
.mini-rows li { display: grid; grid-template-columns: 5rem minmax(0, 1fr) auto; gap: var(--s-3); align-items: center; padding: 0.5rem 0; border-bottom: 1px solid var(--fw-line); }
.spark { width: 100%; height: 5rem; }
.spark-line { fill: none; stroke: var(--fw-ink); stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.spark-p95 { stroke: var(--fw-mark-yield); stroke-width: 1.5; stroke-dasharray: 4 4; fill: none; }
.spark-gap { fill: var(--fw-bone); }
.spark-axis { stroke: var(--fw-line); stroke-width: 1; }
.preview-page { background: var(--fw-surface); border: 1px solid var(--fw-line); border-radius: var(--r); padding: var(--s-5); display: grid; gap: var(--s-2); }
.preview-page .pp-title { font-family: var(--fw-serif); color: var(--fw-ink); font-size: var(--fw-fs-xl); letter-spacing: -0.015em; line-height: 1.2; }
.preview-page .pp-text { color: var(--fw-text-2); font-size: var(--fw-fs-sm); }
.preview-page .pp-meta { font-family: var(--fw-mono); font-size: var(--fw-fs-xs); color: var(--fw-text-2); }

/* Line-art illustration (intersection, roads) */
.art { width: 100%; height: auto; display: block; }
.art-ink { fill: none; stroke: var(--fw-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.art-thin { fill: none; stroke: var(--fw-line-strong); stroke-width: 1; stroke-dasharray: 2 6; stroke-linecap: round; }
.art-go { fill: none; stroke: var(--fw-mark-go); stroke-width: 2.5; stroke-linecap: round; }
.art-fill-go { fill: var(--fw-go-bg); }
.art-fill-core { fill: var(--fw-ink); }
.art-label { font-family: var(--fw-sans); font-size: 14px; font-weight: 500; fill: var(--fw-ink); }
.art-sub { font-family: var(--fw-mono); font-size: 10.5px; letter-spacing: 0.06em; fill: var(--fw-text-2); }
.art-sub--live { fill: var(--fw-go-ink); }
.art-core-label { font-family: var(--fw-mono); font-size: 10px; letter-spacing: 0.08em; fill: var(--fw-bg); }
.art-dot { fill: var(--fw-mark-go); }
.xsec { max-width: 30rem; margin-inline: auto; width: 100%; }
.xsec-caption { margin-top: var(--s-3); font-size: var(--fw-fs-sm); color: var(--fw-text-2); text-align: center; font-family: var(--fw-serif); font-style: italic; }
@media (prefers-reduced-motion: no-preference) {
  .art-dot { offset-path: path("M 414 210 L 262 210"); animation: art-travel 5s var(--ease) infinite; }
  @keyframes art-travel { 0% { offset-distance: 0%; opacity: 0; } 12% { opacity: 1; } 80% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
}
@supports not (offset-path: path("M 0 0")) { .art-dot { display: none; } }

/* Lanes */
.lanes-split { display: grid; gap: var(--s-7) var(--s-8); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 64rem) { .lanes-split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.lanes { display: grid; gap: 0; border-top: 1px solid var(--fw-line); }
.lane { display: grid; gap: var(--s-2) var(--s-5); padding: var(--s-5) 0; border-bottom: 1px solid var(--fw-line); grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.lane-name { display: flex; align-items: center; gap: var(--s-3); font-size: var(--fw-fs-lg); font-weight: 500; color: var(--fw-ink); }
.lane p { color: var(--fw-text-2); font-size: var(--fw-fs-sm); grid-column: 1 / -1; }
.lane-status { justify-self: end; grid-row: 1; grid-column: 2; }
.lane-detail { display: grid; gap: var(--s-2) var(--s-6); grid-template-columns: minmax(0, 1fr); margin-top: var(--s-4); font-size: var(--fw-fs-sm); }
@media (min-width: 40rem) { .lane-detail { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lane-detail dt { font-weight: 500; display: flex; align-items: center; gap: 0.4rem; color: var(--fw-ink); }
.lane-detail dd { color: var(--fw-text-2); margin: 0.2rem 0 var(--s-3); }

/* Honesty list */
.limits { list-style: none; display: grid; gap: var(--s-6) var(--s-7); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48rem) { .limits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.limits.limits--1 { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
.limits li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: var(--s-4); }
.limits li > .icon { width: 2.5rem; height: 2.5rem; padding: 0.6rem; border-radius: var(--r); background: var(--fw-bone); border: 1px solid var(--fw-line); color: var(--fw-ink); }
.limits strong { font-weight: 500; display: block; color: var(--fw-ink); font-size: var(--fw-fs-lg); line-height: 1.35; margin-bottom: 0.2rem; }
.limits span { color: var(--fw-text-2); font-size: var(--fw-fs-sm); line-height: 1.6; display: block; }

/* Why-now facts */
.facts { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 56rem) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fact { border-top: 1px solid var(--fw-ink); padding-top: var(--s-5); display: grid; gap: var(--s-3); align-content: start; }
.fact .fact-n { font-family: var(--fw-serif); font-weight: 400; font-variant-numeric: lining-nums tabular-nums; font-size: clamp(2.75rem, 2rem + 3vw, 4rem); line-height: 1; letter-spacing: -0.035em; color: var(--fw-ink); }
.fact p { color: var(--fw-text-2); }
.fact .src { font-size: var(--fw-fs-xs); }

/* Pricing */
.plans { display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); align-items: stretch; }
@media (min-width: 56rem) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan { display: flex; flex-direction: column; gap: var(--s-4); background: var(--fw-surface); border: 1px solid var(--fw-line); border-radius: var(--r-lg); padding: clamp(1.75rem, 3vw, 2.5rem); transition: box-shadow var(--t) var(--ease); }
.plan--featured { border-color: var(--fw-ink); box-shadow: 0 24px 48px -28px rgb(18 39 58 / 0.28); }
.plan-name { font-size: var(--fw-fs-base); font-weight: 500; display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); color: var(--fw-ink); }
.plan-price { font-family: var(--fw-serif); font-weight: 400; font-variant-numeric: lining-nums; font-size: clamp(2.5rem, 2rem + 2vw, 3.25rem); letter-spacing: -0.035em; line-height: 1; color: var(--fw-ink); }
.plan-price small { font-family: var(--fw-sans); font-size: var(--fw-fs-sm); color: var(--fw-text-2); letter-spacing: 0; }
.plan-for { color: var(--fw-text-2); font-size: var(--fw-fs-sm); padding-bottom: var(--s-4); border-bottom: 1px solid var(--fw-line); }
.plan ul { list-style: none; display: grid; gap: var(--s-3); font-size: var(--fw-fs-sm); margin-bottom: var(--s-3); }
.plan li { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: var(--s-2); }
.plan li .icon { color: var(--fw-go-ink); margin-top: 0.15em; }
.plan .btn { margin-top: auto; }
.pricing-note { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--fw-fs-sm); color: var(--fw-text-2); max-width: 70ch; }

/* Page hero (inner pages) */
.page-hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--fw-line); }
.page-hero .display { font-size: clamp(2.4rem, 1.8rem + 2.8vw, 4rem); max-width: 18ch; }
.page-hero .lead { margin-top: var(--s-5); }
.page-hero .btn-row { margin-top: var(--s-6); }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); font-family: var(--fw-mono); font-size: var(--fw-fs-xs); letter-spacing: 0.03em; color: var(--fw-text-2); margin-bottom: var(--s-5); }
.crumbs a { color: var(--fw-text-2); text-decoration: none; }
.crumbs a:hover { color: var(--fw-ink); }
.crumbs li + li::before { content: "/"; margin-right: var(--s-2); color: var(--fw-line-strong); }

/* Docs layout */
.docs { display: grid; gap: var(--s-7); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 64rem) { .docs { grid-template-columns: 13rem minmax(0, 1fr); } }
.docs-nav { font-size: var(--fw-fs-sm); }
@media (min-width: 64rem) { .docs-nav { position: sticky; top: calc(var(--nav-h) + var(--s-5)); align-self: start; } }
.docs-nav ul { list-style: none; display: grid; gap: 2px; }
.docs-nav a { display: block; padding: 0.4rem 0.6rem; border-radius: var(--r-sm); color: var(--fw-text-2); text-decoration: none; }
.docs-nav a:hover { background: var(--fw-bone); color: var(--fw-ink); }
.docs-nav a[aria-current="page"] { background: var(--fw-bone); color: var(--fw-ink); font-weight: 500; }
.docs-nav .docs-h { font-family: var(--fw-mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--fw-text-2); margin: var(--s-5) 0 var(--s-2); }

/* Calculator */
.calc { display: grid; gap: var(--s-7); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 64rem) { .calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.calc-out { position: sticky; top: calc(var(--nav-h) + var(--s-4)); }
.calc-range { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.calc-range > div { background: var(--fw-bone); border-radius: var(--r); padding: var(--s-3) var(--s-4); }
.calc-range .metric-value { font-size: var(--fw-fs-lg); }
.calc-big, .card .calc-big { font-family: var(--fw-serif); font-weight: 400; font-variant-numeric: lining-nums tabular-nums; font-size: clamp(3rem, 2.2rem + 3.5vw, 4.75rem); line-height: 1; letter-spacing: -0.04em; color: var(--fw-ink); }
.formula { font-family: var(--fw-mono); font-size: var(--fw-fs-xs); background: var(--fw-bone); border-radius: var(--r); padding: var(--s-3) var(--s-4); overflow-x: auto; color: var(--fw-text); }
.input-affix { position: relative; }
.input-affix .affix { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); color: var(--fw-text-2); pointer-events: none; }
.input-affix .input { padding-left: 1.8rem; }

/* Changelog */
.log { display: grid; gap: var(--s-8); }
.log-entry { display: grid; gap: var(--s-3) var(--s-7); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48rem) { .log-entry { grid-template-columns: 9rem minmax(0, 1fr); } }
.log-date { font-family: var(--fw-mono); font-size: var(--fw-fs-sm); color: var(--fw-text-2); padding-top: 0.4rem; }
.log-entry .h3 { font-family: var(--fw-serif); font-weight: 400; letter-spacing: -0.015em; }
.log-items { list-style: none; display: grid; gap: var(--s-2); margin-top: var(--s-4); }
.log-items li { display: flex; gap: var(--s-3); align-items: baseline; }
.tag { font-family: var(--fw-mono); font-size: 0.6875rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--fw-neutral-ink); background: var(--fw-neutral-bg); border-radius: var(--r-pill); padding: 0.1rem 0.55rem; white-space: nowrap; }

/* Demo simulator */
.sim { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 56rem) { .sim { grid-template-columns: 16rem minmax(0, 1fr); } }
.sim-controls { display: grid; gap: var(--s-2); align-content: start; }
.sim-btn { display: flex; align-items: center; gap: var(--s-3); width: 100%; min-height: 3rem; padding: 0 var(--s-4); border: 1px solid var(--fw-line); border-radius: var(--r); background: var(--fw-surface); text-align: left; cursor: pointer; color: var(--fw-text); transition: border-color var(--t-fast) var(--ease); }
.sim-btn:hover { border-color: var(--fw-line-strong); }
.sim-btn[aria-pressed="true"] { border-color: var(--fw-ink); color: var(--fw-ink); font-weight: 500; }
.demo-banner { background: var(--fw-yield-bg); border-bottom: 1px solid var(--fw-line); color: var(--fw-yield-ink); font-size: var(--fw-fs-sm); }
.demo-banner .container { display: flex; gap: var(--s-3); align-items: center; justify-content: space-between; flex-wrap: wrap; padding-block: var(--s-2); }
.demo-banner a { color: var(--fw-yield-ink); font-weight: 500; }

/* Brand board */
.board { display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48rem) { .board { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.panel { border-radius: var(--r-lg); border: 1px solid var(--fw-line); background: var(--fw-surface); padding: clamp(1.5rem, 3vw, 2rem); min-height: 16rem; display: grid; align-content: space-between; gap: var(--s-4); min-width: 0; }
.panel--ink { background: var(--fw-bone); }
.panel-k { font-family: var(--fw-mono); font-size: 0.6875rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--fw-text-2); }
.swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
.sw { border-radius: var(--r); padding: var(--s-3); min-height: 4.5rem; display: grid; align-content: end; font-family: var(--fw-mono); font-size: 0.6875rem; }
.sw--ink { background: var(--fw-navy); color: var(--fw-bg); }
.sw--teal { background: var(--fw-teal); color: var(--fw-surface); }
.sw--amber { background: var(--fw-amber); color: var(--fw-navy); }
.sw--slate { background: var(--fw-slate); color: var(--fw-surface); }
.sw--red { background: var(--fw-red); color: var(--fw-surface); }
.sw--bg { background: var(--fw-bg); color: var(--fw-navy); border: 1px solid var(--fw-line); }
.mark-xl { width: 6rem; height: 6rem; }
.mark-construct { width: 100%; max-width: 13rem; height: auto; margin-inline: auto; }
.mc-grid { stroke: var(--fw-line); stroke-width: 0.25; fill: none; }
.mc-guide { stroke: var(--fw-mark-go); stroke-width: 0.3; stroke-dasharray: 1 1; fill: none; }

/* Status page */
.status-list { list-style: none; border: 1px solid var(--fw-line); border-radius: var(--r-lg); background: var(--fw-surface); }
.status-list li { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--fw-line); flex-wrap: wrap; }
.status-list li:last-child { border-bottom: 0; }

/* 404 */
.nf { padding-block: var(--s-9); }

/* Parked / maintenance page */
.park { --pa: var(--pa-ink-fill); --pa-on: var(--pa-ink-on);
  width: min(100%, 34rem); background: var(--fw-surface); border: 1px solid var(--fw-line); border-radius: var(--r-lg);
  padding: clamp(1.75rem, 5vw, 3rem); display: grid; gap: var(--s-5); text-align: left; }
.park--teal { --pa: var(--pa-teal-fill); --pa-on: var(--pa-teal-on); }
.park--slate { --pa: var(--pa-slate-fill); --pa-on: var(--pa-slate-on); }
.park--amber { --pa: var(--pa-amber-fill); --pa-on: var(--pa-amber-on); }
.park--red { --pa: var(--pa-red-fill); --pa-on: var(--pa-red-on); }
.park-head { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.park-badge { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: var(--r); background: var(--pa); color: var(--pa-on); font-family: var(--fw-serif); font-size: 1.35rem; line-height: 1; }
.park-brand { font-weight: 500; color: var(--fw-ink); margin-right: auto; }
.park-title { font-family: var(--fw-serif); font-weight: 400; font-size: clamp(2rem, 1.6rem + 2vw, 2.75rem); line-height: 1.08; letter-spacing: -0.03em; color: var(--fw-ink); }
.park-msg { color: var(--fw-text-2); }
.park-eta { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fw-fs-sm); color: var(--fw-text); }
.park-status { background: var(--fw-bone); border-radius: var(--r); padding: var(--s-4); display: grid; gap: var(--s-3); font-size: var(--fw-fs-sm); }
.park-status-row { display: flex; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; align-items: baseline; }
.park-try { font-size: var(--fw-fs-xs); color: var(--fw-text-2); }
.park-bar { display: block; width: 100%; height: 4px; }
.park-bar-track { fill: var(--fw-line); }
.park-bar-fill { fill: var(--pa); }
.park-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.park .park-go { background: var(--pa); color: var(--pa-on); }
.park .park-go:hover { background: var(--pa); color: var(--pa-on); filter: brightness(1.08); }
.park .park-go[data-locked] { background: var(--fw-neutral-bg); color: var(--fw-neutral-ink); pointer-events: none; cursor: not-allowed; }
.park-hint { margin-top: calc(-1 * var(--s-2)); }
.park-foot { display: flex; gap: var(--s-2); align-items: flex-start; font-size: var(--fw-fs-xs); color: var(--fw-text-2); border-top: 1px solid var(--fw-line); padding-top: var(--s-4); }
.park-foot .icon { flex: none; margin-top: 0.1em; color: var(--fw-text-2); }
.park-body { background-color: var(--fw-bg); }
.park-main { min-height: 100dvh; display: grid; place-items: center; align-content: center; gap: var(--s-5); padding: var(--s-6) var(--gutter); }
.park-powered a { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--fw-text-2); text-decoration: none; font-size: var(--fw-fs-xs); }
.park-powered .mark { width: 1.1rem; height: 1.1rem; }
.park-preview { display: grid; place-items: center; padding: clamp(1rem, 4vw, 2.5rem); background: var(--fw-bg); background-image: url("../img/dots.svg"); background-size: 24px 24px; }
.park-preview .park { box-shadow: var(--lift); }
.park-builder { display: grid; gap: var(--s-7) var(--s-8); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 64rem) { .park-builder { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } .park-preview-col { position: sticky; top: calc(var(--nav-h) + var(--s-4)); } }
.fieldset { border: 0; border-top: 1px solid var(--fw-line); padding: var(--s-5) 0 0; margin: 0; min-width: 0; }
.fieldset legend { padding: 0; float: left; width: 100%; }
.fieldset legend + * { clear: both; }
.grid-2--tight { gap: var(--s-4); }
.seg { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.seg-opt { position: relative; }
.seg-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg-opt span { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 var(--s-4); border: 1px solid var(--fw-line); border-radius: var(--r); background: var(--fw-surface); font-size: var(--fw-fs-sm); color: var(--fw-text); }
.seg-opt input:checked + span { border-color: var(--fw-ink); color: var(--fw-ink); font-weight: 500; box-shadow: inset 0 0 0 1px var(--fw-ink); }
.seg-opt input:focus-visible + span { outline: 2px solid var(--fw-focus); outline-offset: 2px; }
.swatch-pick { display: flex; gap: var(--s-3); }
.swatch-opt { position: relative; width: 2.75rem; height: 2.75rem; border-radius: var(--r); cursor: pointer; border: 1px solid var(--fw-line); }
.swatch-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.swatch-opt--ink { background: var(--pa-ink-fill); } .swatch-opt--teal { background: var(--pa-teal-fill); } .swatch-opt--slate { background: var(--pa-slate-fill); }
.swatch-opt--amber { background: var(--pa-amber-fill); } .swatch-opt--red { background: var(--pa-red-fill); }
.swatch-opt:has(input:checked) { box-shadow: 0 0 0 2px var(--fw-bg), 0 0 0 4px var(--fw-ink); }
.swatch-opt:has(input:focus-visible) { outline: 2px solid var(--fw-focus); outline-offset: 4px; }

/* ── 8. Motion: quiet scroll reveals (JS adds .js and .is-in) ── */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  [data-reveal].is-in { opacity: 1; transform: none; }
}

/* ── 9. Utilities ────────────────────────────────────────────── */
.mt-2 { margin-top: var(--s-2); } .mt-3 { margin-top: var(--s-3); } .mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); } .mt-7 { margin-top: var(--s-7); }
.center { text-align: center; }
.maxw-60 { max-width: 60ch; }
.nowrap { white-space: nowrap; }
.flex-between { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-4); flex-wrap: wrap; }
.banner { align-items: center; }
@media (min-width: 48rem) { .banner .btn-row { justify-content: flex-end; } }
.section-head { max-width: 46rem; }
.section-head .lead { margin-top: var(--s-4); }
[hidden] { display: none !important; }

/* ── 10. Preferences ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .art-dot { display: none; }
}
@media (prefers-reduced-transparency: reduce) { .site-header { background: var(--fw-bg); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (forced-colors: active) {
  .chip, .btn, .card, .tile, .plan, .result, .window { border: 1px solid CanvasText; }
  :focus-visible { outline: 2px solid CanvasText; }
  .mark-tile { fill: CanvasText; } .mark-lane, .mark-go { fill: Canvas; }
}
@media print { .site-header, .site-footer, .btn, .copy-btn, .skip-link { display: none !important; } }
.code--flush { border: 0; border-radius: 0; }
.banner .h3 { font-family: var(--fw-serif); font-weight: 400; letter-spacing: -0.015em; font-size: var(--fw-fs-2xl); line-height: 1.1; }
.window-body.result { border: 0; border-radius: 0; }
.notice > div, .notice > p { min-width: 0; }
.code--wrap pre { white-space: pre-wrap; word-break: break-all; }
.park-preview-col { min-width: 0; }
.grid-2 > .field + .field { margin-top: 0; }
.fieldset + .fieldset { margin-top: var(--s-6); }
.fieldset legend { margin-bottom: var(--s-2); }
html:has(.park-body) { background: var(--fw-bg); }

/* ═════ /parked: the demo parked page that takes on any site's name and colour ═════ */
html:has(.pk-body) { background: var(--fw-bg); }
.pk-body { background-color: var(--fw-bg); margin: 0; }
.pk { --pk-accent: var(--pk-a0); --pk-on: var(--pk-on-light);
  position: relative; isolation: isolate; overflow: hidden; min-height: 100dvh;
  display: grid; grid-template-rows: 1fr auto; justify-items: center;
  padding: var(--s-6) var(--gutter) var(--s-5); }
.pk--a1 { --pk-accent: var(--pk-a1); } .pk--a2 { --pk-accent: var(--pk-a2); } .pk--a3 { --pk-accent: var(--pk-a3); }
.pk--a4 { --pk-accent: var(--pk-a4); } .pk--a5 { --pk-accent: var(--pk-a5); }

/* Aura: hairline ripples spreading from the monogram. */
.pk-aura { position: absolute; z-index: -1; left: 50%; top: 50%; width: 64rem; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.pk-aura svg { width: 100%; height: 100%; display: block; overflow: visible; }
.pk-aura circle { fill: none; stroke: color-mix(in srgb, var(--pk-accent) 10%, var(--fw-bg)); stroke-width: 1; transform-origin: 300px 300px; transition: stroke 1.2s ease; }
.pk-aura circle:first-child { fill: color-mix(in srgb, var(--pk-accent) 4%, var(--fw-bg)); stroke: color-mix(in srgb, var(--pk-accent) 14%, var(--fw-bg)); transition: fill 1.2s ease, stroke 1.2s ease; }
.pk-aura circle:nth-child(3) { stroke: color-mix(in srgb, var(--pk-accent) 7%, var(--fw-bg)); }
.pk-aura circle:last-child { stroke: color-mix(in srgb, var(--pk-accent) 9%, var(--fw-bg)); stroke-dasharray: 2 6; }

.pk-stage { align-self: center; width: min(100%, 46rem); display: grid; justify-items: center; text-align: center; gap: var(--s-5); padding-block: var(--s-6); min-width: 0; }
.pk-mark { position: relative; width: 8.5rem; aspect-ratio: 1; display: grid; place-items: center; margin-bottom: var(--s-2); }
.pk-ring { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; }
.pk-ring-track { fill: none; stroke: var(--fw-line); stroke-width: 1.5; }
.pk-ring-fill { fill: none; stroke: var(--pk-accent); stroke-width: 2.5; stroke-linecap: round; transition: stroke-dashoffset 1s linear, stroke 1.2s ease; }
.pk-monogram { position: relative; z-index: 1; width: 6.25rem; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: var(--fw-surface); border: 1px solid var(--fw-line); box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--pk-accent) 35%, transparent);
  font-family: var(--fw-serif); font-style: italic; font-size: 3rem; line-height: 1; color: var(--pk-accent); padding-top: 0.12em; transition: color 1.2s ease, box-shadow 1.2s ease; }
.pk-mark--plain { width: 6.25rem; }
.pk-fwmark { position: relative; z-index: 1; width: 3.5rem; height: 3.5rem; }

@media (max-width: 40rem) { .pk-aura { width: 46rem; } .pk-foot { flex-direction: column; gap: var(--s-2); } .pk-foot .pk-sep { display: none; } }

.pk-eyebrow { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s-2); margin: 0;
  font-size: var(--fw-fs-xs); letter-spacing: 0.09em; text-transform: uppercase; color: var(--fw-text-2); }
.pk-eyebrow .mono { text-transform: none; letter-spacing: 0; color: var(--fw-text); }
.pk-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--pk-accent); transition: background 1.2s ease; }
.pk-sep { color: var(--fw-line-strong); }

.pk-title { margin: 0; font-family: var(--fw-serif); font-weight: 400; color: var(--fw-ink);
  font-size: clamp(2.5rem, 1.4rem + 5.2vw, 5.75rem); line-height: 1.02; letter-spacing: -0.025em; text-wrap: balance; overflow-wrap: anywhere; }
.pk-title em { font-style: italic; color: var(--pk-accent); transition: color 1.2s ease; }
.pk-msg { margin: 0; max-width: 34rem; font-size: var(--fw-fs-lg); line-height: 1.6; color: var(--fw-text-2); text-wrap: pretty; }
.pk-status { margin: 0; min-height: 1.6em; font-size: var(--fw-fs-sm); color: var(--fw-text); }
.pk-status .mono { font-variant-numeric: tabular-nums; }

.pk-actions { display: grid; justify-items: center; gap: var(--s-2); }
.pk-go { min-width: 15rem; justify-content: center; transition: background-color .4s ease, color .4s ease, border-color .4s ease, opacity .3s ease; }
.pk-go[data-locked] { opacity: 0.45; cursor: not-allowed; }
.pk-go--ready, .pk-go--ready:hover { background: var(--pk-accent); border-color: var(--pk-accent); color: var(--pk-on); }
.pk-hint { margin: 0; font-size: var(--fw-fs-xs); color: var(--fw-text-2); }

.pk-form { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); width: min(100%, 30rem); }
.pk-form .input { flex: 1 1 14rem; min-width: 0; text-align: center; }
.pk-error { margin: 0; font-size: var(--fw-fs-sm); color: var(--fw-stop-ink); }
.pk-examples { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2) var(--s-4); font-size: var(--fw-fs-sm); color: var(--fw-text-2); }
.pk-examples a { color: var(--fw-link); }

.pk-foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s-2) var(--s-3); max-width: 60rem;
  font-size: var(--fw-fs-xs); color: var(--fw-text-2); text-align: center; line-height: 1.6; }
.pk-foot a { color: var(--fw-text-2); text-underline-offset: 3px; }
.pk-foot a:hover { color: var(--fw-ink); }
.pk-by { display: inline-flex; align-items: center; gap: var(--s-2); text-decoration: none; }
.pk-by .mark { width: 1.1rem; height: 1.1rem; }

@media (prefers-reduced-motion: no-preference) {
  .pk-aura circle { animation: pk-breathe 9s ease-in-out infinite alternate; }
  .pk-aura circle:nth-child(2) { animation-delay: -3s; }
  .pk-aura circle:nth-child(3) { animation-delay: -6s; animation-duration: 12s; }
  .pk-aura circle:nth-child(4) { animation-delay: -2s; animation-duration: 14s; }
  .pk-dot { animation: pk-pulse 2.4s ease-in-out infinite; }
  .pk-stage > * { animation: pk-rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .pk-stage > :nth-child(2) { animation-delay: .08s; } .pk-stage > :nth-child(3) { animation-delay: .16s; }
  .pk-stage > :nth-child(4) { animation-delay: .24s; } .pk-stage > :nth-child(5) { animation-delay: .32s; }
  .pk-stage > :nth-child(n+6) { animation-delay: .4s; }
}
@keyframes pk-breathe { from { transform: scale(0.97); opacity: .75; } to { transform: scale(1.03); opacity: 1; } }
@keyframes pk-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes pk-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* /parked four-way stop game: one quiet square under the actions */
.pk-game { width: min(100%, 19rem); margin: var(--s-2) 0 0; display: grid; gap: var(--s-2); }
.pk-game-canvas { display: block; width: 100%; aspect-ratio: 1; height: auto; background: var(--fw-surface); border: 1px solid var(--fw-line); border-radius: var(--r-lg); cursor: pointer; touch-action: manipulation; box-shadow: 0 18px 40px -30px color-mix(in srgb, var(--pk-accent) 45%, transparent); }
.pk-game-canvas:focus-visible { outline: 2px solid var(--fw-focus); outline-offset: 3px; }
.pk-game-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-1) var(--s-3); font-size: var(--fw-fs-xs); color: var(--fw-text-2); padding-inline: var(--s-1); }
.pk-game-bar kbd { font-size: 0.7rem; margin-right: 2px; }
@media (hover: none) { .pk-game-keys kbd { display: none; } }
.pk:has(.pk-game) .pk-stage { gap: var(--s-4); }
.pk:has(.pk-game) .pk-title { font-size: clamp(2.4rem, 1.4rem + 4.2vw, 4.5rem); }
.pk:has(.pk-game) .pk-mark { width: 7rem; }
.pk:has(.pk-game) .pk-monogram { width: 5.25rem; font-size: 2.5rem; }
@media (min-width: 64rem) and (min-height: 40rem) {
  /* Wide screens: message on the left, intersection on the right, so the page still fits one screen. */
  .pk:has(.pk-game) .pk-stage { width: min(100%, 64rem); grid-template-columns: minmax(0, 1fr) 19rem; column-gap: var(--s-8); justify-items: start; text-align: left; align-items: center; }
  .pk:has(.pk-game) .pk-stage > :not(.pk-game) { grid-column: 1; }
  .pk:has(.pk-game) .pk-game { grid-column: 2; grid-row: 1 / span 6; align-self: center; }
  .pk:has(.pk-game) .pk-eyebrow { justify-content: flex-start; }
  .pk:has(.pk-game) .pk-actions { justify-items: start; }
}

/* ═════ Waiting room: demo page, fictional partner shop, docs ═════ */
.wr-demo { display: grid; gap: var(--s-7) var(--s-8); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 64rem) { .wr-demo { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } .wr-shop { position: sticky; top: calc(var(--nav-h) + var(--s-4)); } }
.wr-steps { padding-left: 1.25rem; display: grid; gap: var(--s-2); color: var(--fw-text); }
.wr-steps li::marker { color: var(--fw-text-2); font-family: var(--fw-mono); }
.wr-panel { border: 1px solid var(--fw-line); border-radius: var(--r-lg); background: var(--fw-surface); overflow: hidden; }
.wr-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--fw-line); }
.wr-stats .metric:nth-child(2n) { border-right: 0; }
.wr-frame:focus-visible { outline: 2px solid var(--fw-focus); outline-offset: -2px; }
.wr-controls { padding: var(--s-5); display: grid; gap: var(--s-5); }
.wr-row { display: grid; gap: var(--s-2); }
.wr-frame { display: block; width: 100%; height: 34rem; border: 0; background: var(--fw-bg); }
.prose .limits { padding-left: 0; }

.shop-body { background: var(--shop-bg); color: var(--shop-ink); margin: 0; font-family: var(--fw-sans); }
.shop-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; border-bottom: 1px solid var(--shop-line); }
.shop-logo { font-family: var(--fw-serif); font-size: 1.35rem; letter-spacing: -0.01em; color: var(--shop-accent); }
.shop-logo em { font-style: italic; color: var(--shop-ink); }
.shop-cart { font-size: var(--fw-fs-sm); color: var(--shop-text-2); }
.shop-main { padding: 2rem 1.5rem; display: grid; gap: 1rem; max-width: 56rem; margin-inline: auto; }
.shop-kicker { margin: 0; font-family: var(--fw-mono); font-size: var(--fw-fs-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--shop-accent); }
.shop-title { margin: 0; font-family: var(--fw-serif); font-weight: 400; font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.6rem); line-height: 1.1; color: var(--shop-ink); }
.shop-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); margin-top: 0.5rem; }
.shop-card { background: var(--shop-card); border: 1px solid var(--shop-line); border-radius: 10px; padding: 0.9rem; display: grid; gap: 0.35rem; }
.shop-card h2 { font-size: 1rem; margin: 0.4rem 0 0; color: var(--shop-ink); }
.shop-card p { margin: 0; font-size: var(--fw-fs-sm); color: var(--shop-text-2); }
.shop-img { aspect-ratio: 4 / 3; border-radius: 6px; background-color: var(--shop-img); background-image: url("../img/dots.svg"); background-size: 14px 14px; }
.shop-row { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-top: 0.4rem; }
.shop-note { margin: 0; font-size: var(--fw-fs-sm); color: var(--shop-text-2); }
.shop-foot { padding: 1rem 1.5rem 1.5rem; font-size: var(--fw-fs-xs); color: var(--shop-text-3); text-align: center; }
.shop-foot a { color: var(--shop-accent); }
.wr-gate { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-3); align-items: center; }
.wr-gate-out { margin: 0; min-height: 1.6em; font-size: var(--fw-fs-sm); }
.wr-gate-out .mono { font-weight: 500; }

/* ═════ Waiting room setup page ═════ */
.flow { display: grid; gap: var(--s-3); grid-template-columns: minmax(0, 1fr); align-items: stretch; }
@media (min-width: 60rem) { .flow { grid-template-columns: minmax(0, 1fr) 9rem minmax(0, 1fr) 9rem minmax(0, 1fr); } .flow--bots { grid-template-columns: minmax(0, 1fr) 9rem minmax(0, 1fr); max-width: calc((100% - 18rem) * 2 / 3 + 9rem); } }
.flow-node { background: var(--fw-surface); border: 1px solid var(--fw-line); border-radius: var(--r-lg); padding: var(--s-5); display: grid; gap: var(--s-2); align-content: start; }
.flow-node strong { font-family: var(--fw-serif); font-weight: 400; font-size: var(--fw-fs-xl); line-height: 1.2; color: var(--fw-ink); }
.flow-node > span:last-child { color: var(--fw-text-2); font-size: var(--fw-fs-sm); }
.flow-node--fw { border-color: var(--fw-ink); box-shadow: 0 18px 40px -28px rgb(18 39 58 / 0.35); }
.flow-node--muted { background: var(--fw-bone); }
.flow-k { font-family: var(--fw-mono); font-size: 0.6875rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--fw-text-2); }
.flow-arrow { display: grid; justify-items: center; align-content: center; gap: var(--s-1); text-align: center; color: var(--fw-text-2); font-size: var(--fw-fs-xs); padding: var(--s-1) 0; }
.flow-arrow .icon { color: var(--fw-ink); transform: rotate(90deg); }
@media (min-width: 60rem) { .flow-arrow .icon { transform: none; } }
.setup { list-style: none; counter-reset: setup; display: grid; gap: 0; border-left: 1px solid var(--fw-line); margin-left: 1rem; padding: 0; }
.setup-step { counter-increment: setup; position: relative; padding: 0 0 var(--s-7) var(--s-6); display: grid; gap: var(--s-3); }
.setup-step::before { content: counter(setup); position: absolute; left: -1rem; top: -0.1rem; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--fw-surface); border: 1px solid var(--fw-ink); font-family: var(--fw-mono); font-size: var(--fw-fs-sm); color: var(--fw-ink); }
.setup-step:last-child { padding-bottom: 0; }
.setup-step h3 { font-size: var(--fw-fs-lg); line-height: 1.35; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.setup-step > p { color: var(--fw-text-2); }
.setup-step .checkform { max-width: none; }
.setup-result { border: 1px solid var(--fw-line); border-radius: var(--r-lg); padding: var(--s-5); background: var(--fw-surface); }
.donelist { list-style: none; display: grid; gap: var(--s-3); }
.donelist li { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: var(--s-3); }
.donelist .icon { color: var(--fw-go-ink); margin-top: 0.2em; }
.trouble dt { font-weight: 500; color: var(--fw-ink); margin-top: var(--s-4); }
.trouble dt:first-child { margin-top: 0; }
.trouble dd { margin: var(--s-1) 0 0; color: var(--fw-text-2); font-size: var(--fw-fs-sm); }

/* Lanes: "Soon" tag in the nav */
.nav-soon { margin-left: 0.4rem; padding: 0.05rem 0.4rem; border-radius: var(--r-pill); background: var(--fw-bone); border: 1px solid var(--fw-line); font-family: var(--fw-mono); font-size: 0.625rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fw-text-2); vertical-align: 0.1em; }

/* Lane pages (/web, /ai, /cron, /email) */
.lane-hero-k { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-top: var(--s-5); font-family: var(--fw-mono); font-size: var(--fw-fs-xs); letter-spacing: 0.04em; text-transform: uppercase; color: var(--fw-text-2); }
.web-grid { display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48rem) { .web-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .web-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.web-card { background: var(--fw-surface); border: 1px solid var(--fw-line); border-radius: var(--r-lg); padding: clamp(1.25rem, 2.5vw, 1.75rem); display: grid; align-content: start; }
.web-card p { color: var(--fw-text-2); font-size: var(--fw-fs-sm); }
.web-card-links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); align-items: center; margin-top: auto; padding-top: var(--s-4); }
.web-card-links a:not(.link-arrow) { font-size: var(--fw-fs-sm); }
.lane-strip { display: grid; gap: var(--s-3); }
.lane-pill { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-4); align-items: center; padding: var(--s-4) var(--s-5); border: 1px solid var(--fw-line); border-radius: var(--r-lg); background: var(--fw-surface); text-decoration: none; color: var(--fw-text); transition: border-color var(--t-fast) var(--ease); }
.lane-pill:hover { border-color: var(--fw-line-strong); color: var(--fw-text); }
.lane-pill > span:not(.chip) { display: grid; gap: 0.1rem; }
.lane-pill strong { color: var(--fw-ink); }
.lane-pill > span:not(.chip) > span { color: var(--fw-text-2); font-size: var(--fw-fs-sm); }
.lane-pill > .icon { color: var(--fw-ink); }
@media (max-width: 40rem) { .lane-pill { grid-template-columns: auto minmax(0, 1fr); } .lane-pill > .chip { grid-column: 2; justify-self: start; } }
.lanes-mini { list-style: none; display: grid; gap: var(--s-2); }
.lanes-mini a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-3); align-items: center; padding: var(--s-3) var(--s-4); border: 1px solid var(--fw-line); border-radius: var(--r); background: var(--fw-surface); text-decoration: none; color: var(--fw-ink); }
.lanes-mini a[aria-current="page"] { border-color: var(--fw-ink); }
.lane-name a { color: inherit; text-decoration: none; }
.lane-name a:hover { text-decoration: underline; }

@media (max-width: 40rem) { .code:has(.copy-btn) { padding-top: 3.25rem; } .code:has(.copy-btn) pre { padding-right: 0; } }

/* ── Inspiring pass (12 Oct): shared patterns ─────────────────────────────── */
/* Split inner hero: copy left, product visual right; stacks on phones. */
.page-hero--split .container { display: grid; gap: var(--s-7); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 64rem) { .page-hero--split .container { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s-8); } }
.page-hero-visual { min-width: 0; }
.page-hero-visual figcaption, .viz-cap { margin-top: var(--s-3); font-size: var(--fw-fs-xs); color: var(--fw-text-2); }

/* Code: no ligatures, so || --> fi read exactly as typed. */
.code, code, pre, kbd { font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }
.table th code { white-space: nowrap; }

/* Tables that become cards on phones: add .table--stack and data-label on cells. */
@media (max-width: 40rem) {
  .table-wrap:has(.table--stack) { border: 0; background: transparent; overflow: visible; }
  .table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack th, .table--stack td { display: block; width: 100%; }
  .table--stack tr { background: var(--fw-surface); border: 1px solid var(--fw-line); border-radius: var(--r-lg); padding: var(--s-4) var(--s-5); }
  .table--stack tr + tr { margin-top: var(--s-3); }
  .table--stack th, .table--stack td { border: 0; padding: var(--s-1) 0; }
  .table--stack tbody th { font-size: var(--fw-fs-base); padding-bottom: var(--s-2); }
  .table--stack td[data-label]::before { content: attr(data-label); display: block; font-family: var(--fw-mono); font-size: 0.6875rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--fw-text-2); }
  .table--stack td + td { margin-top: var(--s-2); }
}

/* Go / Yield / Park / Stop / Verify strip: one hairline grid of five cells. */
.state-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1px; background: var(--fw-line); border: 1px solid var(--fw-line); border-radius: var(--r-lg); overflow: hidden; }
.state-strip > div { background: var(--fw-surface); padding: var(--s-5); display: grid; gap: var(--s-3); align-content: start; }
.state-strip > .state-strip-verify { background: var(--fw-bone); }
.state-strip p { font-size: var(--fw-fs-sm); color: var(--fw-text); }

/* Mosaic: asymmetric feature grid (N items, N cells). */
.mosaic { display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 52rem) { .mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mosaic-wide { grid-column: span 2; } }
.mosaic > article { background: var(--fw-surface); border: 1px solid var(--fw-line); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2rem); display: grid; gap: var(--s-3); align-content: start; min-width: 0; }
.mosaic > .mosaic-ink { background: var(--fw-ink); border-color: var(--fw-ink); color: var(--fw-on-ink); }
.mosaic > .mosaic-ink h3 { color: var(--fw-bg); }
.mosaic > .mosaic-ink .icon { color: var(--fw-mint); }
.mosaic > .mosaic-go { background: var(--fw-go-bg); border-color: var(--fw-go-bg); }
.mosaic > .mosaic-go h3, .mosaic > .mosaic-go p { color: var(--fw-go-deep); }
.mosaic h3 { font-size: var(--fw-fs-xl); font-weight: 500; line-height: 1.25; color: var(--fw-ink); display: flex; align-items: center; gap: var(--s-3); }
.mosaic h3 .icon { color: var(--fw-teal); flex: none; }
.mosaic p { color: var(--fw-text-2); }
.mosaic-split { display: grid; gap: var(--s-5); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 52rem) { .mosaic-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.kv-list { display: grid; gap: var(--s-2); }
.kv-list > div { display: flex; justify-content: space-between; gap: var(--s-3); font-family: var(--fw-mono); font-size: var(--fw-fs-xs); padding: 0.6rem 0.85rem; background: var(--fw-bone); border-radius: var(--r); }
.kv-list > div > span:last-child { color: var(--fw-park-ink); }
.mosaic-ink .kv-list > div { background: rgba(255, 255, 255, 0.06); color: var(--fw-on-ink); }

/* Lane visuals (coming-soon heroes): bar chart, report, budget meter. */
.viz { margin: 0; background: var(--fw-surface); border: 1px solid var(--fw-line); border-radius: var(--r-lg); box-shadow: var(--lift); padding: clamp(1.25rem, 3vw, 2rem); min-width: 0; }
.viz--flush { padding: 0; overflow: hidden; }
.viz-row, .viz-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); flex-wrap: wrap; color: var(--fw-ink); }
.viz-head { padding: var(--s-5) var(--s-5) var(--s-4); border-bottom: 1px solid var(--fw-line); }
.viz-note { font-family: var(--fw-mono); font-size: var(--fw-fs-xs); color: var(--fw-text-2); }
.viz-note b { color: var(--fw-ink); font-weight: 500; }
.viz-note--bad { color: var(--fw-stop-ink); }
.viz-note--good { color: var(--fw-link); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 7.5rem; margin-top: var(--s-3); border-bottom: 1px solid var(--fw-line); }
.bar { flex: 1; display: block; background: var(--fw-line); border-radius: 3px 3px 0 0; }
.bar--go { background: var(--fw-teal); }
.bar--stop { background: var(--fw-red); }
.bar--h100 { height: 100%; } .bar--h22 { height: 22%; } .bar--h16 { height: 16%; } .bar--h3 { height: 3%; border-radius: 0; }
.viz-axis { display: flex; justify-content: space-between; margin-top: var(--s-2); font-family: var(--fw-mono); font-size: var(--fw-fs-xs); color: var(--fw-text-2); }
.viz-list { list-style: none; padding: var(--s-2) var(--s-5); }
.viz-list li { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--fw-surface-2); font-size: var(--fw-fs-sm); }
.viz-list li:last-child { border-bottom: 0; }
.viz-list li > span { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; min-width: 0; }
.viz-list b { font-family: var(--fw-mono); font-weight: 500; color: var(--fw-ink); }
.viz-foot { display: flex; gap: var(--s-3); align-items: flex-start; margin: 0; padding: var(--s-4) var(--s-5); background: var(--fw-bone); border-top: 1px solid var(--fw-line); font-size: var(--fw-fs-sm); color: var(--fw-text-2); }
.viz-foot .icon { flex: none; margin-top: 0.2rem; }
.viz-meter { height: 8px; margin: var(--s-4) var(--s-5) var(--s-2); border-radius: 999px; background: var(--fw-neutral-bg); overflow: hidden; }
.viz-meter-fill { display: block; height: 100%; background: var(--fw-teal); border-radius: 999px; }
.viz-meter-fill--64 { width: 64%; }
.viz-cap--in { margin: 0; padding: var(--s-3) var(--s-5); border-top: 1px solid var(--fw-line); }
.grid-2--center { align-items: center; }
.sketch { margin: 0; min-width: 0; }
.lane-hero-k { margin-top: var(--s-6); }
.mosaic > .mosaic-ink p { color: var(--fw-on-ink); }
.state-strip .chip, .mosaic .chip { justify-self: start; }
/* Mini wait screen (the waiting room, drawn small). */
.wait-mini { display: grid; justify-items: center; gap: var(--s-2); text-align: center; padding: var(--s-6) var(--s-5); background: var(--fw-bg); border-bottom: 1px solid var(--fw-line); }
.wait-mini-mark { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: var(--fw-surface); border: 1px solid var(--fw-line); font-family: var(--fw-serif); font-size: 1.35rem; color: var(--pk-a3); }
.wait-mini-k { font-family: var(--fw-mono); font-size: var(--fw-fs-xs); color: var(--fw-text-2); }
.wait-mini-h { font-family: var(--fw-serif); font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem); line-height: 1.15; color: var(--fw-ink); max-width: 20ch; }
.wait-mini-bar { width: min(100%, 16rem); height: 6px; border-radius: 999px; background: var(--fw-neutral-bg); overflow: hidden; margin-top: var(--s-2); }
.wait-mini-bar i { display: block; width: 38%; height: 100%; background: var(--pk-a3); border-radius: 999px; }
.wait-mini-s { font-size: var(--fw-fs-sm); color: var(--fw-text); }
.kv-list--rules > div > span:last-child { color: var(--fw-ink); }
.section--tint .kv-list > div { background: var(--fw-surface); border: 1px solid var(--fw-line); }
@media (max-width: 63.99rem) { .wr-shop { order: -1; } .wr-frame { height: 28rem; } }
.fieldset > * + * { margin-top: var(--s-5); }
.fieldset > legend + * { margin-top: var(--s-4); }
.fieldset .grid-2 > .field + .field { margin-top: 0; }
@media (max-width: 63.99rem) { .park-preview-col { order: -1; } }
.wait-mini--lg { padding: var(--s-7) var(--s-6); gap: var(--s-3); }
.wait-mini-t { font-size: var(--fw-fs-sm); color: var(--fw-text-2); max-width: 34ch; }
.mini-alert { font-family: var(--fw-mono); font-size: var(--fw-fs-xs); background: var(--fw-bone); border: 1px solid var(--fw-line); border-radius: var(--r); padding: 0.55rem 0.75rem; color: var(--fw-text); }
.mini-alert span { color: var(--fw-stop-ink); }
/* Platform lane tiles */
.lane-tiles { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.lane-tile { display: grid; gap: var(--s-3); align-content: start; padding: var(--s-6); background: var(--fw-surface); border: 1px solid var(--fw-line); border-radius: var(--r-lg); color: var(--fw-text-2); text-decoration: none; transition: border-color var(--t-fast) var(--ease); }
.lane-tile:hover { border-color: var(--fw-line-strong); color: var(--fw-text-2); }
.lane-tile strong { font-family: var(--fw-serif); font-weight: 400; font-size: var(--fw-fs-xl); color: var(--fw-ink); }
.lane-tile-top { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); color: var(--fw-ink); }
.lane-tile .link-arrow { margin-top: var(--s-2); }
.lane-tile--live { border-color: var(--fw-ink); }
.table--matrix td { min-width: 10rem; }
.card--go { background: var(--fw-go-bg); border-color: var(--fw-go-bg); }
.card--go h3, .card--go p { color: var(--fw-go-deep); }
.card h3 .icon { vertical-align: -0.15em; }
/* Docs: menu collapses on phones; open on desktop. */
.docs-nav-s { list-style: none; cursor: pointer; display: none; }
.docs-nav-s::-webkit-details-marker { display: none; }
@media (max-width: 63.99rem) {
  .docs-nav-s { display: flex; justify-content: space-between; align-items: center; min-height: 2.75rem; padding: 0 var(--s-4); border: 1px solid var(--fw-line); border-radius: var(--r); background: var(--fw-surface); font-family: var(--fw-mono); font-size: var(--fw-fs-xs); text-transform: uppercase; letter-spacing: 0.05em; color: var(--fw-ink); }
  .docs-nav-s::after { content: "+"; font-size: 1rem; }
  .docs-nav-d[open] > .docs-nav-s::after { content: "\2212"; }
}
.start-here .docs-h { margin-top: 0; }
.card--start { display: grid; gap: var(--s-2); border-color: var(--fw-ink); }
.card--start strong { font-weight: 500; color: var(--fw-ink); font-size: var(--fw-fs-lg); }
.card--start > span:last-child { color: var(--fw-text-2); font-size: var(--fw-fs-sm); }
.start-here .docs-h { font-family: var(--fw-mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--fw-text-2); margin-bottom: var(--s-3); }
.inshort { list-style: none; padding: 0; display: grid; gap: var(--s-3); margin-bottom: var(--s-6); }
.inshort li { display: flex; gap: var(--s-3); align-items: center; padding: var(--s-3) var(--s-4); background: var(--fw-bone); border-radius: var(--r); color: var(--fw-ink); }
.inshort li .icon { color: var(--fw-teal); flex: none; }
.status-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-3); }
.tag--new { background: var(--fw-go-bg); color: var(--fw-go-ink); }
.tag--improved { background: var(--fw-yield-bg); color: var(--fw-yield-ink); }
.tag--decision { background: var(--fw-park-bg); color: var(--fw-park-ink); }
.log-items a { color: inherit; text-decoration-color: var(--fw-line-strong); }
.log-items a:hover { color: var(--fw-ink); }
.next-steps { list-style: none; counter-reset: ns; display: grid; gap: var(--s-2); padding: 0; font-size: var(--fw-fs-sm); color: var(--fw-text-2); }
.next-steps li { counter-increment: ns; display: flex; gap: var(--s-3); align-items: baseline; }
.next-steps li::before { content: counter(ns); font-family: var(--fw-mono); font-size: var(--fw-fs-xs); color: var(--fw-ink); width: 1.5rem; height: 1.5rem; display: inline-grid; place-items: center; border: 1px solid var(--fw-line); border-radius: 50%; flex: none; }
.check-row label { font-size: var(--fw-fs-sm); }
.four-list { list-style: none; padding: 0; display: grid; gap: var(--s-3); }
.four-list li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); align-items: center; gap: var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid var(--fw-line); }
.four-list .chip { justify-self: start; }

/* ── Motion layer (12 Oct): each movement shows something happening.
      Hero visuals arrive after the headline, bars grow, meters fill, the
      wait line moves. All of it is off under reduced motion. ── */
.wait-mini-bar i { width: 100%; transform-origin: left center; transform: scaleX(0.38); transition: transform 900ms var(--ease); }
.viz-meter-fill, .bar { will-change: auto; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes fw-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes fw-grow-y { from { transform: scaleY(0); } }
  @keyframes fw-grow-x { from { transform: scaleX(0); } }
  .page-hero-copy > * { animation: fw-rise 700ms var(--ease) both; }
  .page-hero-copy > :nth-child(2) { animation-delay: 60ms; }
  .page-hero-copy > :nth-child(3) { animation-delay: 120ms; }
  .page-hero-copy > :nth-child(n+4) { animation-delay: 180ms; }
  .page-hero-visual { animation: fw-rise 900ms var(--ease) 260ms both; }
  .bar { transform-origin: bottom center; animation: fw-grow-y 800ms var(--ease) both; animation-delay: 500ms; }
  .bars .bar:nth-child(2) { animation-delay: 540ms; } .bars .bar:nth-child(3) { animation-delay: 580ms; }
  .bars .bar:nth-child(4) { animation-delay: 620ms; } .bars .bar:nth-child(5) { animation-delay: 660ms; }
  .bars .bar:nth-child(6) { animation-delay: 700ms; } .bars .bar:nth-child(7) { animation-delay: 740ms; }
  .bars .bar:nth-child(8) { animation-delay: 780ms; } .bars .bar:nth-child(9) { animation-delay: 820ms; }
  .bars .bar:nth-child(10) { animation-delay: 860ms; } .bars .bar:nth-child(11) { animation-delay: 900ms; }
  .bars .bar:nth-child(12) { animation-delay: 940ms; }
  .viz-meter-fill { transform-origin: left center; animation: fw-grow-x 1200ms var(--ease) 600ms both; }
  [data-reveal]:not(.is-in) .bar, [data-reveal]:not(.is-in) .viz-meter-fill { animation-play-state: paused; }
}
@media (hover: hover) and (pointer: fine) {
  .mosaic > article, .lane-tile, .card--link, .viz { transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease); }
  .mosaic > article:hover, .lane-tile:hover, .card--link:hover { transform: translateY(-2px); box-shadow: var(--lift); }
}

/* Demo: response strip and scenario pills */
.sim-strip { padding: var(--s-5) var(--s-5) 0; }
.sim-bars { display: flex; align-items: flex-end; gap: 4px; height: 4.5rem; margin-top: var(--s-3); border-bottom: 1px solid var(--fw-line); }
.sb { flex: 1; display: block; height: 100%; border-radius: 1px; background: var(--fw-teal); transform-origin: bottom center; transition: transform 460ms var(--ease), background-color 460ms var(--ease); }
.sb-y { background: var(--fw-amber); } .sb-s { background: var(--fw-red); } .sb-p { background: var(--fw-slate); }
.sb-h0 { transform: scaleY(0); } .sb-h5 { transform: scaleY(0.05); } .sb-h10 { transform: scaleY(0.1); } .sb-h15 { transform: scaleY(0.15); } .sb-h20 { transform: scaleY(0.2); } .sb-h25 { transform: scaleY(0.25); } .sb-h30 { transform: scaleY(0.3); } .sb-h35 { transform: scaleY(0.35); } .sb-h40 { transform: scaleY(0.4); } .sb-h45 { transform: scaleY(0.45); } .sb-h50 { transform: scaleY(0.5); } .sb-h55 { transform: scaleY(0.55); } .sb-h60 { transform: scaleY(0.6); } .sb-h65 { transform: scaleY(0.65); } .sb-h70 { transform: scaleY(0.7); } .sb-h75 { transform: scaleY(0.75); } .sb-h80 { transform: scaleY(0.8); } .sb-h85 { transform: scaleY(0.85); } .sb-h90 { transform: scaleY(0.9); } .sb-h95 { transform: scaleY(0.95); } .sb-h100 { transform: scaleY(1); }
@media (max-width: 55.99rem) { .sim-controls { display: flex; gap: var(--s-2); overflow-x: auto; overscroll-behavior-x: contain; padding-bottom: var(--s-2); scroll-snap-type: x proximity; } .sim-btn { width: auto; flex: none; white-space: nowrap; scroll-snap-align: start; } .sim-controls [data-nojs-note] { flex: none; } }
/* Calculator: one stacked bar for the breakdown, and a slim result bar on phones. */
.calc-stack { display: flex; height: 10px; border-radius: 999px; overflow: hidden; gap: 2px; }
.calc-stack[hidden] { display: none; }
.cs { display: block; flex: 1 1 0; min-width: 0; transition: flex-grow 500ms var(--ease); }
.cs-rev { background: var(--fw-ink); } .cs-idle { background: var(--fw-teal); } .cs-rec { background: var(--fw-amber); }
.cs-key { display: inline-block; width: 0.6rem; height: 0.6rem; border-radius: 2px; margin-right: var(--s-2); vertical-align: 0.05em; }
.calc-sticky { display: none; }
@media (max-width: 63.99rem) {
  .calc-sticky:not([hidden]) { display: flex; position: fixed; left: var(--s-3); right: var(--s-3); bottom: var(--s-3); z-index: 40; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); background: var(--fw-ink); color: var(--fw-bg); border-radius: var(--r-lg); text-decoration: none; box-shadow: var(--pop); font-size: var(--fw-fs-sm); transition: transform 300ms var(--ease), opacity 300ms var(--ease); }
  .calc-sticky b { font-family: var(--fw-mono); font-weight: 500; font-size: var(--fw-fs-base); }
  .calc-sticky-go { margin-left: auto; display: inline-flex; align-items: center; gap: var(--s-1); color: var(--fw-on-ink); }
  .calc-sticky.is-away { transform: translateY(140%); opacity: 0; pointer-events: none; }
}
/* FAQ groups: a quiet label column beside each group on wide screens. */
.faq-groups { display: grid; gap: var(--s-8); max-width: 62rem; }
.faq-group { display: grid; gap: var(--s-4); }
@media (min-width: 52rem) { .faq-group { grid-template-columns: 11rem minmax(0, 1fr); gap: var(--s-7); align-items: start; } }
.faq-group-h { font-family: var(--fw-serif); font-weight: 400; font-size: var(--fw-fs-xl); color: var(--fw-ink); padding-top: var(--s-4); }
@media (min-width: 52rem) { .faq-group-h { position: sticky; top: calc(var(--nav-h) + var(--s-5)); } }
.faq-more { color: var(--fw-text-2); }
@media (min-width: 52rem) { .faq-more { padding-left: calc(11rem + var(--s-7)); } }
.section--tight-top { padding-top: clamp(2.5rem, 5vw, 4rem); }
@media (max-width: 47.99rem) { .signup-grid > .stack { order: -1; } }
/* Setup: steps beside a sticky preview of the visitor screen. */
.setup-layout { display: grid; gap: var(--s-8); grid-template-columns: minmax(0, 1fr); max-width: 66rem; }
@media (min-width: 64rem) { .setup-layout { grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; } .setup-aside { position: sticky; top: calc(var(--nav-h) + var(--s-5)); } }
.fix-grid { display: grid; gap: 1px; grid-template-columns: minmax(0, 1fr); background: var(--fw-line); border: 1px solid var(--fw-line); border-radius: var(--r-lg); overflow: hidden; }
.fix-grid > div { background: var(--fw-surface); padding: var(--s-5); display: grid; gap: var(--s-2); align-content: start; }
.fix-grid h3 { font-size: var(--fw-fs-base); font-weight: 500; color: var(--fw-ink); }
.fix-grid p { font-size: var(--fw-fs-sm); color: var(--fw-text-2); }
.mt-8 { margin-top: var(--s-8); }
@media (min-width: 40rem) { .fix-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Flow line: four steps joined by a hairline, stacked on phones. */
.flow-line { list-style: none; padding: 0; display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); counter-reset: fl; }
@media (min-width: 48rem) { .flow-line { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; } }
.flow-line li { position: relative; display: grid; gap: var(--s-2); padding: var(--s-5); background: var(--fw-surface); border: 1px solid var(--fw-line); border-radius: var(--r-lg); }
@media (min-width: 48rem) {
  .flow-line li { border-radius: 0; margin-left: -1px; }
  .flow-line li:first-child { border-radius: var(--r-lg) 0 0 var(--r-lg); margin-left: 0; }
  .flow-line li:last-child { border-radius: 0 var(--r-lg) var(--r-lg) 0; }
  .flow-line li + li::before { content: ""; position: absolute; left: -7px; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: var(--fw-surface); border-top: 1px solid var(--fw-line-strong); border-right: 1px solid var(--fw-line-strong); transform: rotate(45deg); }
}
.flow-line-k { font-family: var(--fw-mono); font-size: var(--fw-fs-xs); color: var(--fw-text-2); }
.flow-line strong { font-weight: 500; color: var(--fw-ink); font-size: var(--fw-fs-lg); line-height: 1.3; }
.flow-line li.flow-line-end { background: var(--fw-go-bg); }
.flow-line-end strong { color: var(--fw-go-deep); }
/* Static parked page extras */
.pk[hidden] { display: none !important; }
.pk-favicon { width: 56%; height: 56%; object-fit: contain; display: block; }
.pk--has-icon .pk-monogram { background: var(--fw-surface); }
.pk-share { margin-top: var(--s-6); width: min(100%, 34rem); display: grid; gap: var(--s-3); text-align: left; }
.pk-share-k { font-family: var(--fw-mono); font-size: var(--fw-fs-xs); text-transform: uppercase; letter-spacing: 0.05em; color: var(--fw-text-2); }
.pk-share-note { font-size: var(--fw-fs-sm); color: var(--fw-text-2); }
.pk-noscript { position: fixed; left: 0; right: 0; bottom: 0; padding: var(--s-3) var(--s-5); background: var(--fw-yield-bg); color: var(--fw-yield-ink); text-align: center; font-size: var(--fw-fs-sm); }
/* Phones: timelines run down the left edge instead of across. */
@media (max-width: 47.99rem) {
  .tl-step { border-top: 0; border-left: 2px solid var(--fw-line); padding: 0 0 var(--s-5) var(--s-5); }
  .tl-step::before { top: 0.2rem; left: -6px; }
  .tl-step[data-state="healthy"] { border-left-color: var(--fw-mark-go); }
  .tl-step[data-state="suspected"], .tl-step[data-state="degraded"] { border-left-color: var(--fw-mark-yield); }
  .tl-step[data-state="down"] { border-left-color: var(--fw-mark-stop); }
  .tl-step[data-state="recovering"] { border-left-color: var(--fw-mark-park); }
  .tl-step h3 { margin-top: var(--s-1); }
  .lanes-mini { display: none; }
}
.section:has(> .docs) { padding-top: clamp(2rem, 4vw, 3.5rem); }
.tile--ink:has(.preview-page) { align-self: center; }

/* Parked: quiet first check. Blank while the destination is probed, so a healthy site
   forwards with no visible stop; fades in only if the visitor has to wait. */
.pk.pk--probing { opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .pk { transition: opacity .35s ease; } }
