/* Muster Drill design system. One stylesheet for every page.
   Tokens first, then base, layout, components, sections and utilities.
   Status colours (pass, warn, fail) are reserved for results. */

/* ---------- Tokens ---------- */
:root {
  --bg: #f5f7fa; --bg-alt: #ffffff; --panel: #ffffff; --panel-2: #f0f3f8;
  --ink: #0d1b2e; --ink-2: #26364d; --muted: #55637a; --line: #d9dfe8; --line-strong: #bcc6d4; --grid: #e8ecf2;
  --accent: #1d4ed8; --accent-ink: #ffffff; --accent-soft: #e6edfd;
  --pass: #0f7a55; --warn: #9a5800; --fail: #b3362a;
  --teal: #0a8a7e; --teal-soft: #e0f5f2; --violet: #6a3df0; --violet-soft: #ede8ff; --amber: #c25e08; --amber-soft: #fff0dc;
  --key0: #1d4ed8; --key1: #6a3df0; --glow1: rgba(29,78,216,.14); --glow2: rgba(106,61,240,.13);
  --shadow-sm: 0 1px 2px rgba(13,27,46,.06), 0 1px 1px rgba(13,27,46,.04);
  --shadow: 0 1px 2px rgba(13,27,46,.06), 0 18px 40px -24px rgba(13,27,46,.34);
  --shadow-lg: 0 2px 4px rgba(13,27,46,.06), 0 32px 64px -32px rgba(13,27,46,.42);
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r-sm: 8px; --r: 12px; --r-lg: 18px; --r-pill: 999px;
  --container: 1180px; --nav-h: 64px;
  --space-section: clamp(64px, 9vw, 120px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1220; --bg-alt: #0d1627; --panel: #111b2d; --panel-2: #152238;
    --ink: #e6ecf5; --ink-2: #c4cfdf; --muted: #94a3bb; --line: #25334a; --line-strong: #34465f; --grid: #0f1929;
    --accent: #7da2ff; --accent-ink: #0a1220; --accent-soft: #16244a;
    --pass: #45c896; --warn: #e3ab52; --fail: #ff8a75; color-scheme: dark;
    --teal: #3fd6c5; --teal-soft: #0d2b2e; --violet: #a78bfa; --violet-soft: #211a47; --amber: #fbbf6a; --amber-soft: #2c2110;
    --key0: #3556e0; --key1: #7c4dff; --glow1: rgba(53,86,224,.26); --glow2: rgba(124,77,255,.22);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 18px 40px -24px rgba(0,0,0,.7);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.4), 0 32px 64px -32px rgba(0,0,0,.8);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; text-wrap: balance; color: var(--ink); }
h1 { font-weight: 800; font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -.035em; }
h2 { font-weight: 800; font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.06; letter-spacing: -.03em; }
h3 { font-weight: 700; font-size: 1.08rem; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
sup { font: 500 .68rem var(--mono); color: var(--muted); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent-soft); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--container); margin-inline: auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)); }
.wrap.narrow { max-width: 760px; }
.section { padding-block: var(--space-section); }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; max-width: 46rem; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head .lede { color: var(--muted); font-size: clamp(1.02rem, 1.4vw, 1.15rem); }
.grid { display: grid; gap: 20px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.stack { display: grid; gap: 14px; align-content: start; }

/* ---------- Type helpers ---------- */
.eyebrow { font: 600 .74rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.mono { font-family: var(--mono); font-size: .86rem; }
.grad { background: linear-gradient(100deg, var(--key0), var(--key1) 60%, var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: .75rem 1.3rem; border-radius: 10px; border: 1px solid transparent;
  font: 600 1rem var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, background .15s, border-color .15s; }
.btn-primary { background: linear-gradient(135deg, var(--key0), var(--key1)); color: #fff; box-shadow: 0 10px 22px -12px var(--key1), inset 0 1px 0 rgba(255,255,255,.22); }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 14px 26px -12px var(--key1), inset 0 1px 0 rgba(255,255,255,.22); }
.btn-primary:active { transform: none; filter: brightness(.96); }
.btn-secondary { background: var(--panel); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { min-height: 40px; padding: .5rem 1rem; font-size: .92rem; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

/* ---------- Badges ---------- */
.st { display: inline-flex; align-items: center; font: 600 .68rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: .36rem .58rem;
  background: color-mix(in srgb, currentColor 11%, transparent); border: 1px solid color-mix(in srgb, currentColor 38%, transparent); border-radius: var(--r-pill); white-space: nowrap; }
.st.pass { color: var(--pass); } .st.warn { color: var(--warn); } .st.fail { color: var(--fail); } .st.info { color: var(--accent); } .st.soon { color: var(--muted); }
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.chip-list li { font: 500 .74rem/1 var(--mono); padding: .38rem .6rem; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); }

/* ---------- Skip link and navigation ---------- */
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: .6rem .9rem; border-radius: var(--r-sm); transition: top .15s; }
.skip:focus { top: 10px; }
.nav { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(1px)) { .nav { background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: saturate(1.6) blur(14px); } }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 1.08rem var(--display); letter-spacing: -.02em; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand img { display: block; border-radius: 7px; box-shadow: 0 4px 10px -3px var(--key1); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: .45rem .7rem; border-radius: var(--r-sm); color: var(--muted); text-decoration: none; font-size: .93rem; font-weight: 500; transition: color .15s, background .15s; }
.nav-links a:hover, .nav-links a.on { color: var(--ink); background: var(--panel-2); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .i-close { display: none; }
.nav[data-open="true"] .nav-toggle .i-open { display: none; }
.nav[data-open="true"] .nav-toggle .i-close { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(56px, 8vw, 112px) clamp(48px, 7vw, 96px); overflow: hidden;
  background-image: radial-gradient(55% 60% at 88% 0%, var(--glow2), transparent 70%), radial-gradient(50% 55% at 0% 100%, var(--glow1), transparent 70%); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 30%, #000, transparent); mask-image: radial-gradient(80% 70% at 50% 30%, #000, transparent); }
.hero .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: .35rem .8rem .35rem .4rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow-sm); font: 500 .8rem var(--sans); color: var(--ink-2); }
.pill b { font: 600 .68rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); padding: .22rem .5rem; border-radius: var(--r-pill); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--muted); max-width: 35rem; }
.quick { display: flex; gap: 10px; width: 100%; max-width: 31rem; }
.quick input { flex: 1; min-width: 0; background: var(--panel); box-shadow: var(--shadow-sm); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.text-link { font-weight: 600; color: var(--accent); text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.proof { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; font: 500 .82rem var(--sans); color: var(--muted); }
.proof li { display: inline-flex; align-items: center; gap: 7px; }
.proof li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: color-mix(in srgb, var(--pass) 16%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%230f7a55' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

/* Report sheet (hero visual) */
.sheet { position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 26px 26px 22px; display: grid; gap: 16px; min-width: 0; }
.sheet::before, .form::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--key0), var(--key1), var(--teal)); }
.sheet-head { display: flex; justify-content: space-between; font: 500 .7rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sheet-title { font: 800 1.5rem var(--display); letter-spacing: -.02em; }
.sheet-title small { font: 400 .82rem var(--mono); color: var(--muted); letter-spacing: 0; margin-left: 8px; }
.kv { margin: 0; display: grid; grid-template-columns: 6.2rem 1fr; gap: 4px 12px; font: 400 .82rem/1.5 var(--mono); }
.kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.checks { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.checks li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: .5rem 0; border-top: 1px dashed var(--line); animation: tick .45s both; }
.checks li:nth-child(1) { animation-delay: .3s; } .checks li:nth-child(2) { animation-delay: .6s; } .checks li:nth-child(3) { animation-delay: .9s; }
.checks li:nth-child(4) { animation-delay: 1.2s; } .checks li:nth-child(5) { animation-delay: 1.5s; } .checks li:nth-child(6) { animation-delay: 1.8s; }
@keyframes tick { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.sheet-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--ink); font: 400 .8rem var(--mono); color: var(--muted); }
.stamp { font: 600 .9rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--pass); border: 2px solid var(--pass); padding: .35rem .7rem; transform: rotate(-5deg); animation: tick .45s 2.2s both; }

/* ---------- Trust bar ---------- */
.trust { border-block: 1px solid var(--line); background: var(--bg-alt); }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.trust li { display: grid; gap: 4px; padding: 22px 24px; border-left: 1px solid var(--line); }
.trust li:first-child { border-left: 0; padding-left: 0; }
.trust b { font: 700 1rem var(--display); letter-spacing: -.01em; }
.trust span { color: var(--muted); font-size: .9rem; }

/* ---------- Cards ---------- */
.card { position: relative; display: grid; gap: 10px; align-content: start; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card p { color: var(--muted); font-size: .96rem; }
.card .num { font: 600 .78rem var(--mono); color: var(--muted); letter-spacing: .06em; }
.card .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card.dashed { border-style: dashed; border-color: var(--line-strong); background: transparent; box-shadow: none; }
.card.dashed:hover { transform: none; border-color: var(--accent); }

/* Failure cards */
.fail-card .said { display: flex; align-items: center; gap: 8px; font: 500 .76rem var(--mono); color: var(--muted); }
.fail-card .said::before { content: "Backup job:"; }

/* ---------- Diagrams (shared SVG styles) ---------- */
figure { margin: 0; }
.diagram { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(12px, 2vw, 24px); }
.diagram svg { display: block; width: 100%; height: auto; color: var(--ink); font-family: var(--mono); }
figcaption { margin-top: 14px; color: var(--muted); font-size: .92rem; max-width: 46rem; }
.z-acct { fill: var(--teal-soft); stroke: var(--teal); stroke-width: 1.5; }
.z-out { fill: var(--amber-soft); stroke: var(--amber); stroke-width: 1.5; stroke-dasharray: 7 5; }
.z-vpc { fill: var(--panel-2); stroke: var(--teal); stroke-width: 1.2; stroke-dasharray: 4 4; }
.z-cap { font: 600 11px var(--mono); letter-spacing: .14em; }
.z-cap.acct { fill: var(--teal); } .z-cap.out { fill: var(--amber); }
.z-sub { font: 400 11px var(--mono); fill: var(--muted); }
.d-node { fill: var(--panel); stroke: var(--line); stroke-width: 1.5; filter: drop-shadow(0 3px 8px rgba(13,27,46,.16)); }
.d-key { fill: url(#g-k1); filter: drop-shadow(0 8px 16px rgba(106,61,240,.4)); }
.d-key.two { fill: url(#g-k2); }
.k0 { stop-color: var(--key0); } .k1 { stop-color: var(--key1); }
.d-t { font: 700 16px var(--display); fill: currentColor; letter-spacing: -.01em; }
.d-s { font-size: 11.5px; fill: var(--muted); }
.d-w { font: 700 16px var(--display); fill: #fff; letter-spacing: -.01em; }
.d-ws { font-size: 11.5px; fill: rgba(255,255,255,.9); }
.d-l { font-size: 12px; font-weight: 500; fill: var(--ink); }
.d-ln { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-dasharray: 7 7; animation: march 1s linear infinite; }
.d-out { fill: none; stroke: var(--amber); stroke-width: 3.2; stroke-dasharray: 8 6; animation: march 1s linear infinite; }
.d-no { fill: none; stroke: var(--fail); stroke-width: 1.8; stroke-dasharray: 4 4; }
.d-x { fill: var(--panel); stroke: var(--fail); stroke-width: 1.8; }
.m-flow { fill: var(--accent); } .m-out { fill: var(--amber); }
.b-c { fill: var(--accent); stroke: var(--panel); stroke-width: 2; }
.b-t { font: 700 11px var(--mono); fill: var(--accent-ink); text-anchor: middle; dominant-baseline: central; }
.g-c { fill: var(--amber); stroke: var(--panel); stroke-width: 2.5; }
.g-i { fill: var(--panel); stroke: var(--panel); stroke-width: 1.6; stroke-linejoin: round; }
.g-s { fill: none; stroke: var(--panel); stroke-width: 1.8; stroke-linecap: round; }
.d-chip { fill: var(--panel); stroke: var(--amber); stroke-width: 1.5; }
.d-chip.no { stroke: var(--fail); }
.d-ct { font: 600 11px var(--mono); fill: var(--ink); text-anchor: middle; }
.halo { fill: none; stroke: var(--accent); stroke-width: 3; opacity: 0; filter: drop-shadow(0 0 8px var(--accent)); animation: halo 8s ease-in-out infinite; }
.halo.k2 { animation-delay: 2s; } .halo.k3 { animation-delay: 4s; } .halo.k4 { animation-delay: 6s; }
@keyframes march { to { stroke-dashoffset: -28; } }
@keyframes halo { 0%, 4% { opacity: 0; } 10%, 24% { opacity: 1; } 32%, 100% { opacity: 0; } }

/* Numbered steps */
.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: st; }
.steps li { counter-increment: st; display: grid; gap: 8px; align-content: start; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.steps li::before { content: counter(st); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 .85rem var(--mono); color: #fff;
  background: linear-gradient(135deg, var(--key0), var(--key1)); box-shadow: 0 6px 14px -6px var(--key1); }
.steps p { color: var(--muted); font-size: .95rem; }
.subhead { display: grid; gap: 8px; margin: clamp(48px, 6vw, 72px) 0 20px; max-width: 46rem; }
.subhead p { color: var(--muted); }

/* ---------- Evidence ---------- */
.log { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; min-width: 0; box-shadow: var(--shadow); }
.log h3 { margin-bottom: 4px; }
.log > p { color: var(--muted); font-size: .94rem; margin-bottom: 12px; }
.log-row { display: grid; grid-template-columns: 1fr 1.35fr auto; gap: 12px; align-items: center; padding: .55rem 0; border-top: 1px dashed var(--line); font: 400 .82rem var(--mono); }
.log-row span:nth-child(2) { color: var(--muted); }
.outcomes { margin-top: 20px; }
.outcomes .card { gap: 12px; justify-items: start; }

/* ---------- Layers ---------- */
.layer-card { gap: 14px; }
.layer-card .meter { display: flex; gap: 3px; }
.layer-card .meter i { width: 22px; height: 6px; border-radius: 3px; background: var(--line); }
.layer-card .meter i.on { background: linear-gradient(90deg, var(--key0), var(--key1)); }
.layer-card h3 { font-size: 1.15rem; }
.layer-card dl { margin: 0; display: grid; gap: 12px; }
.layer-card dt { font: 600 .7rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.layer-card dd { margin: 0; color: var(--ink-2); font-size: .93rem; }
.layer-card .data { padding-top: 12px; border-top: 1px dashed var(--line); font-size: .9rem; color: var(--ink-2); }
.layer-card .data b { color: var(--ink); }
.layer-card.start { border-color: color-mix(in srgb, var(--pass) 45%, var(--line)); }
.planned-head { display: grid; gap: 8px; max-width: 46rem; margin: clamp(48px, 6vw, 72px) 0 20px; }
.planned-head p { color: var(--muted); max-width: 40rem; }

/* ---------- Security ---------- */
.never { margin-top: 24px; border: 1px solid color-mix(in srgb, var(--fail) 50%, transparent); background: color-mix(in srgb, var(--fail) 5%, transparent); border-radius: var(--r-lg); padding: 20px 24px; display: grid; gap: 12px; }
.never .eyebrow { color: var(--fail); }
.never ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: .97rem; }
.never li::before { content: "✕ "; color: var(--fail); font-weight: 700; }
.facts { margin-top: 24px; }

/* ---------- Pricing ---------- */
.plans { align-items: stretch; max-width: 920px; }
.plans.c3 { max-width: none; }
.plan { gap: 16px; padding: 30px; }
.plan.featured { border: 2px solid transparent; background: linear-gradient(var(--panel), var(--panel)) padding-box, linear-gradient(135deg, var(--key0), var(--key1), var(--teal)) border-box; box-shadow: var(--shadow-lg); }
.card.plan .price { font: 800 2.4rem/1 var(--display); letter-spacing: -.03em; color: var(--ink); }
.plan .price small { font: 500 .9rem var(--sans); color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: .96rem; color: var(--ink-2); }
.plan li::before { content: "✓"; color: var(--pass); font-weight: 700; }
.plan .btn { margin-top: auto; justify-self: start; }
.plan-note { margin-top: 18px; color: var(--muted); font-size: .9rem; max-width: 46rem; }

/* ---------- Roadmap ---------- */
.road { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.road li { position: relative; border-top: 2px solid var(--line); padding: 24px 20px 0 0; display: grid; gap: 4px; align-content: start; }
.road li::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--muted); }
.road li.now { border-top-color: var(--accent); }
.road li.now::before { background: var(--accent); border-color: var(--accent); }
.road .when { font: 600 .72rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.road li.now .when { color: var(--accent); }
.road p { color: var(--muted); font-size: .94rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 40px 20px 0; font: 600 1.04rem var(--sans); list-style: none; position: relative; transition: color .15s; }
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--muted); padding: 0 40px 22px 0; max-width: 46rem; }

/* ---------- Sign-up ---------- */
.join { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.join-copy { display: grid; gap: 18px; position: sticky; top: calc(var(--nav-h) + 24px); }
.after { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: af; }
.after li { counter-increment: af; display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: var(--ink-2); }
.after li::before { content: counter(af); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 .8rem var(--mono); color: var(--accent); background: var(--accent-soft); }
input[type=email], input[type=text], textarea { width: 100%; font: 400 1rem var(--sans); color: var(--ink); background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: 10px; min-height: 46px; padding: .72rem .9rem; transition: border-color .15s, box-shadow .15s; }
input[type=email]:hover, input[type=text]:hover, textarea:hover { border-color: var(--muted); }
input[type=email]:focus, input[type=text]:focus, textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
textarea { min-height: 96px; resize: vertical; }
.form { position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: clamp(22px, 3vw, 34px); display: grid; gap: 22px; min-width: 0; }
.field { display: grid; gap: 7px; font-weight: 600; font-size: .92rem; }
.field2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 9px; }
legend { padding: 0; font-weight: 600; font-size: .92rem; margin-bottom: 9px; }
legend i { font-style: normal; font-weight: 400; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chips span { display: flex; align-items: center; min-height: 44px; padding: .4rem .95rem; border: 1px solid var(--line-strong); border-radius: var(--r-pill); font-size: .92rem; background: var(--bg); transition: border-color .15s, background .15s; }
.chips label:hover span { border-color: var(--accent); }
.chips input:checked + span { background: linear-gradient(135deg, var(--key0), var(--key1)); border-color: transparent; color: #fff; box-shadow: 0 6px 14px -8px var(--key1); }
.chips input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
#status { min-height: 1.5em; font-size: .95rem; color: var(--warn); }
.done { background: var(--panel); border: 1px solid var(--pass); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 40px); display: grid; gap: 12px; }
.done .eyebrow { color: var(--pass); }

/* ---------- Simple pages (about, contact, privacy) ---------- */
.page { padding-block: clamp(48px, 7vw, 88px); }
.page h1 { font-size: clamp(2.2rem, 4.6vw, 3.2rem); margin-bottom: 20px; }
.page h2 { font-size: 1.35rem; letter-spacing: -.015em; margin: 40px 0 12px; }
.page p, .page ul { margin: 0 0 16px; color: var(--ink-2); }
.page ul { padding-left: 1.2rem; display: grid; gap: 8px; }
.page .meta { color: var(--muted); font-size: .92rem; margin-bottom: 24px; }
.page-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: clamp(24px, 4vw, 40px); }

/* ---------- Footer ---------- */
.footer { padding-block: 56px 40px; border-top: 1px solid var(--line); background: var(--bg-alt); color: var(--muted); font-size: .9rem; }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, .7fr) 1.4fr; gap: 32px; }
.foot h2 { font: 600 .72rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.foot ul, .foot ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.foot ol { list-style: decimal; padding-left: 1.2rem; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot .brand { margin-bottom: 12px; color: var(--ink); }
.foot .brand:hover { text-decoration: none; }
.tagline { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font: 400 .8rem var(--mono); }

/* ---------- Reveal on scroll ---------- */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .foot { grid-template-columns: 1fr 1fr 1fr; }
  .foot > :first-child, .foot > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav .wrap { gap: 12px; }
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav[data-open="true"] .nav-links { display: flex; }
  .nav-links a { padding: .85rem .6rem; font-size: 1rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .grid.c4 { grid-template-columns: repeat(2, 1fr); }
  .road { grid-template-columns: 1fr; }
  .road li { border-top: 0; border-left: 2px solid var(--line); padding: 0 0 26px 24px; }
  .road li::before { top: 2px; left: -8px; }
  .road li.now { border-left-color: var(--accent); }
}
@media (max-width: 880px) {
  .hero-grid, .join, .grid.c2 { grid-template-columns: 1fr; }
  .grid.c3 { grid-template-columns: 1fr; }
  .join-copy { position: static; }
  .diagram { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .trust ul { grid-template-columns: 1fr 1fr; }
  .trust li:nth-child(3) { border-left: 0; padding-left: 0; }
  .trust li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .field2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav-cta .btn { display: none; }
  .quick { flex-direction: column; }
  .steps, .grid.c4, .trust ul { grid-template-columns: 1fr; }
  .trust li { border-left: 0; padding-left: 0; }
  .trust li + li { border-top: 1px solid var(--line); }
  .foot { grid-template-columns: 1fr 1fr; }
  .log-row { grid-template-columns: 1fr auto; }
  .log-row span:nth-child(2) { grid-column: 1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .d-ln, .d-out { stroke-dasharray: none; }
  .js .rv { opacity: 1; transform: none; }
}
@media print {
  .nav, .skip, .form, .quick, .footer { display: none; }
  .section { padding-block: 24px; }
}

/* ---------- Tested ---------- */
.stat .figure { font: 800 clamp(2rem, 3.4vw, 2.6rem)/1 var(--display); letter-spacing: -.03em; background: linear-gradient(100deg, var(--key0), var(--key1)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.prep { margin-top: 24px; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); background: var(--accent-soft); border-radius: var(--r-lg); padding: 20px 24px; display: grid; gap: 10px; }
.prep ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.prep li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--ink-2); font-size: .97rem; }
.prep li::before { content: "→"; color: var(--accent); font-weight: 700; }

/* ---------- Utilities ---------- */
.plain { list-style: none; margin: 0; padding: 0; }

/* ---------- Docs ---------- */
.docs { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); padding-block: clamp(36px, 5vw, 64px) var(--space-section); }
.docs-nav { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; display: grid; gap: 4px; }
.docs-nav .eyebrow { margin-bottom: 8px; }
.docs-nav a { display: block; padding: .5rem .75rem; border-radius: var(--r-sm); color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; border-left: 2px solid transparent; }
.docs-nav a:hover { color: var(--ink); background: var(--panel-2); }
.docs-nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); border-left-color: var(--accent); }
.doc { max-width: 46rem; min-width: 0; }
.doc h1 { font-size: clamp(2.1rem, 4.4vw, 3rem); margin-bottom: 14px; }
.doc .intro { font-size: 1.15rem; color: var(--muted); margin-bottom: 24px; }
.doc h2 { font-size: 1.5rem; letter-spacing: -.02em; margin: 48px 0 14px; padding-top: 8px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.doc h3 { font-size: 1.1rem; margin: 28px 0 10px; }
.doc p, .doc ul, .doc ol { margin: 0 0 14px; color: var(--ink-2); }
.doc ul, .doc ol { padding-left: 1.3rem; display: grid; gap: 8px; }
.doc li > b:first-child { color: var(--ink); }
.doc code { font: 500 .86em var(--mono); background: var(--panel-2); border: 1px solid var(--line); padding: .08rem .35rem; border-radius: 6px; overflow-wrap: anywhere; }
.doc pre { margin: 0 0 16px; padding: 16px 18px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; font: 400 .85rem/1.6 var(--mono); }
.doc pre code { background: none; border: 0; padding: 0; }
.summary { border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--panel); border-radius: var(--r); padding: 16px 20px; margin-bottom: 28px; box-shadow: var(--shadow-sm); }
.summary .eyebrow { margin-bottom: 6px; }
.summary p { margin: 0; color: var(--ink-2); }
.callout { border-radius: var(--r); padding: 14px 18px; margin: 0 0 18px; border: 1px solid; }
.callout p { margin: 0; }
.callout b { display: block; margin-bottom: 2px; }
.callout.note { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.callout.warn { background: color-mix(in srgb, var(--warn) 9%, var(--panel)); border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); }
.table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.doc table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.doc th { font: 600 .74rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--panel-2); }
.doc tr:last-child td { border-bottom: 0; }
.doc td code { white-space: nowrap; }
.toc { display: grid; gap: 6px; padding: 14px 18px; margin: 0 0 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); list-style: none; }
.toc a { text-decoration: none; font-weight: 500; }
.doc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 8px 0 28px; }
.doc-cards a { text-decoration: none; color: inherit; }
.doc-cards .card h3 { margin: 0; color: var(--ink); }
.doc-next { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }
.doc-next a { text-decoration: none; font-weight: 600; }
.doc-next small { display: block; color: var(--muted); font-weight: 400; }
@media (max-width: 880px) {
  .docs { grid-template-columns: 1fr; gap: 20px; }
  .docs-nav { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
  .docs-nav .eyebrow { display: none; }
  .docs-nav a { border-left: 0; border-bottom: 2px solid transparent; border-radius: var(--r-sm) var(--r-sm) 0 0; }
  .docs-nav a[aria-current="page"] { border-bottom-color: var(--accent); }
  .doc-cards { grid-template-columns: 1fr; }
}
/* ---------- Diagram images (docs/diagrams/*.svg, copied to assets/diagrams/) ---------- */
/* The SVGs carry their own light and dark colours. Below 880px they keep a readable size and scroll sideways inside their frame. */
.figure-svg { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: clamp(10px, 2vw, 20px); }
.figure-svg img { display: block; width: 100%; height: auto; }
.doc figure { margin: 8px 0 22px; }
.doc figcaption { font-size: .9rem; }
.roles { margin-top: 24px; }
.roles h3 code { font: 600 .86rem var(--mono); overflow-wrap: anywhere; }
.card code { font: 500 .86em var(--mono); overflow-wrap: anywhere; }
@media (max-width: 880px) {
  .figure-svg img { width: auto; max-width: none; height: 340px; }
}
