/* ==========================================================================
   Cumulus — design tokens sampled from the reference illustration
   Ink-black night sky · pin-point white stars · graphite cumulus with
   hand-inked outlines and a cool lavender rim light.
   ========================================================================== */
:root {
  /* sky */
  --sky-0: #000000;
  --sky-1: #050507;
  --sky-2: #0b0b0f;
  --sky-3: #121218;
  /* clouds */
  --ink: #050507;            /* outline stroke */
  --cloud-deep: #3d3e45;     /* shadow belly */
  --cloud-body: #5f6068;     /* main body */
  --cloud-mid: #74757e;
  --cloud-rim: #a4a6b6;      /* lavender rim light */
  --cloud-glow: #c3c5d4;
  /* stars + text */
  --star: #ffffff;
  --text: #ededf2;
  --text-2: #a7a8b3;
  --text-3: #6f707b;
  --line: rgba(164, 166, 182, .14);
  --line-2: rgba(164, 166, 182, .26);
  --panel: rgba(18, 18, 24, .72);
  --panel-solid: #0e0e13;
  /* status (desaturated so the night palette survives) */
  --pass: #a6dcb9;
  --warn: #e9d18f;
  --fail: #f0a0a0;
  --open: #a4a6b6;           /* blocked / inconclusive / error */
  --na: #55565f;
  --crit: #f0a0a0;
  --high: #efbd8f;
  --med: #e9d18f;
  --low: #a4a6b6;
  /* type */
  --f-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --f-serif: "Instrument Serif", Georgia, serif;
  /* shape + motion */
  --r-1: 8px;
  --r-2: 14px;
  --r-3: 22px;
  --r-pill: 999px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --wrap: 1180px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--sky-0);
  color: var(--text);
  font: 400 16px/1.6 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--cloud-rim); color: var(--sky-0); }
:focus-visible { outline: 2px solid var(--cloud-glow); outline-offset: 3px; border-radius: 6px; }
.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; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.mono { font-family: var(--f-mono); font-feature-settings: "zero" 1; }
.serif { font-family: var(--f-serif); font-weight: 400; font-style: italic; letter-spacing: 0; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }

/* ---------- Sky layers ---------- */
.sky {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 110%, #101016 0%, var(--sky-0) 60%);
}
.sky canvas { width: 100%; height: 100%; }
.page { position: relative; z-index: 1; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  background: linear-gradient(to bottom, rgba(0,0,0,.72), rgba(0,0,0,.35));
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease-soft);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; font-size: 17px; }
.brand svg { width: 30px; height: 30px; }
.brand .ver { font: 500 11px var(--f-mono); color: var(--text-3); border: 1px solid var(--line); padding: 1px 7px; border-radius: var(--r-pill); }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-2); font-size: 14px; padding: 8px 12px; border-radius: var(--r-pill); transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: rgba(164,166,182,.08); }
.nav-links .btn { margin-left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--text); --fg: var(--sky-0);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: var(--r-pill);
  background: var(--bg); color: var(--fg); border: 1px solid transparent;
  font-weight: 550; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, box-shadow .3s, opacity .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 30px -6px rgba(195,197,212,.45); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.ghost { --bg: transparent; --fg: var(--text); border-color: var(--line-2); }
.btn.ghost:hover { background: rgba(164,166,182,.08); box-shadow: none; }
.btn.small { height: 32px; padding: 0 12px; font-size: 13px; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(100svh, 980px);
  display: flex; flex-direction: column; justify-content: flex-start;
  padding-top: clamp(64px, 13vh, 150px);
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 3; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2);
  padding: 8px 14px 8px 10px; border: 1px solid var(--line); border-radius: var(--r-pill); background: rgba(5,5,7,.6);
}
.eyebrow .twinkle { width: 7px; height: 7px; border-radius: 50%; background: var(--star); box-shadow: 0 0 10px 2px rgba(255,255,255,.7); animation: twinkle 3.2s ease-in-out infinite; }
@keyframes twinkle { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.hero h1 {
  margin: 28px auto 0; max-width: 15ch;
  font-size: clamp(44px, 7.4vw, 96px); line-height: .98; letter-spacing: -.045em; font-weight: 600;
}
.hero h1 .serif { font-size: 1.08em; letter-spacing: -.02em; color: var(--cloud-glow); }
.hero .lede { margin: 26px auto 0; max-width: 56ch; font-size: clamp(16px, 1.6vw, 19px); color: var(--text-2); }

/* ---------- Audit form ---------- */
.audit-form { margin: 40px auto 0; width: min(640px, 100%); }
.field {
  position: relative; display: flex; align-items: center; gap: 6px;
  padding: 6px 6px 6px 18px; border-radius: var(--r-pill);
  background: rgba(10,10,14,.82);
  border: 1px solid var(--line-2);
  box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 30px 80px -20px rgba(0,0,0,.9), inset 0 1px 0 rgba(195,197,212,.08);
  transition: border-color .25s, box-shadow .35s;
}
.field:focus-within { border-color: rgba(195,197,212,.6); box-shadow: 0 0 0 4px rgba(164,166,182,.12), 0 30px 80px -20px rgba(0,0,0,.9); }
.field .proto { font: 500 15px var(--f-mono); color: var(--text-3); user-select: none; }
.field input {
  flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; background: transparent;
  font: 450 16px var(--f-mono); letter-spacing: -.01em;
}
.field input::placeholder { color: var(--text-3); }
.field .btn { height: 48px; padding: 0 22px; font-size: 15px; }
.form-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 22px; margin-top: 16px; font-size: 13px; color: var(--text-3); }
.form-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); }
.toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text-2); }
.toggle input { appearance: none; width: 30px; height: 18px; border-radius: 99px; background: #26262e; border: 1px solid var(--line-2); position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.toggle input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--text-2); transition: transform .2s var(--ease), background .2s; }
.toggle input:checked { background: var(--cloud-mid); }
.toggle input:checked::after { transform: translateX(12px); background: var(--star); }
.form-error { min-height: 22px; margin-top: 10px; font-size: 14px; color: var(--fail); }
.examples { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 4px; }
.chip { font: 500 12px var(--f-mono); color: var(--text-2); background: rgba(164,166,182,.06); border: 1px solid var(--line); padding: 5px 11px; border-radius: var(--r-pill); cursor: pointer; transition: all .2s; }
.chip:hover { color: var(--text); border-color: var(--line-2); background: rgba(164,166,182,.12); }

/* ---------- Clouds ---------- */
.cloudbank { position: absolute; left: 0; right: 0; bottom: 0; height: 62%; z-index: 2; pointer-events: none; }
.cloudbank svg { position: absolute; left: 50%; bottom: 0; width: max(1600px, 118%); height: auto; transform: translateX(-50%); will-change: transform; }
.cloudbank .layer-back { bottom: 22%; opacity: .95; }
.cloudbank .layer-mid { bottom: 8%; }
.cloudbank .layer-front { bottom: -6%; }
.cloud-floor { position: absolute; left: 0; right: 0; bottom: -2px; height: 24%; background: linear-gradient(to bottom, transparent, var(--cloud-deep) 60%); z-index: 2; }
.clouds-divider { position: relative; height: 180px; overflow: hidden; pointer-events: none; }
.clouds-divider svg { position: absolute; left: 50%; bottom: -40px; width: max(1400px, 110%); transform: translateX(-50%); }
.clouds-divider.flip svg { transform: translateX(-50%) scaleY(-1); bottom: auto; top: -40px; }

/* ---------- Progress (hero state) ---------- */
.progress-card {
  margin: 40px auto 0; width: min(720px, 100%); text-align: left;
  background: rgba(8,8,11,.86); border: 1px solid var(--line-2); border-radius: var(--r-3);
  box-shadow: 0 40px 120px -30px rgba(0,0,0,.95), inset 0 1px 0 rgba(195,197,212,.07);
  overflow: hidden; backdrop-filter: blur(10px);
}
.progress-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.progress-head .target { font: 500 14px var(--f-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progress-head .elapsed { font: 500 13px var(--f-mono); color: var(--text-3); flex: none; }
.progress-bar { height: 2px; background: rgba(164,166,182,.1); }
.progress-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cloud-rim), var(--star)); box-shadow: 0 0 12px rgba(255,255,255,.6); transition: width .6s var(--ease); }
.progress-body { display: grid; grid-template-columns: 1fr 1.25fr; }
.steps { list-style: none; margin: 0; padding: 18px 22px; border-right: 1px solid var(--line); }
.steps li { display: flex; align-items: center; gap: 12px; padding: 7px 0; font-size: 14px; color: var(--text-3); transition: color .3s; }
.steps li .dot { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-2); position: relative; transition: all .3s; }
.steps li.active { color: var(--text); }
.steps li.active .dot { border-color: var(--star); }
.steps li.active .dot::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: var(--star); animation: twinkle 1.2s infinite; }
.steps li.done { color: var(--text-2); }
.steps li.done .dot { background: var(--star); border-color: var(--star); box-shadow: 0 0 10px rgba(255,255,255,.5); }
.steps li.fail .dot { border-color: var(--warn); background: transparent; }
.steps li.fail { color: var(--text-2); }
.log { margin: 0; padding: 16px 20px; height: 300px; overflow: auto; font: 12px/1.65 var(--f-mono); color: var(--text-3); background: rgba(0,0,0,.35); scrollbar-width: thin; }
.log div { white-space: pre-wrap; word-break: break-all; }
.log .ok { color: var(--text-2); }
.log .warn { color: var(--warn); }
.log .t { color: var(--text-3); opacity: .6; margin-right: 8px; }
.progress-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(80px, 12vw, 150px) 0; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker { font: 500 12px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); display: inline-flex; gap: 10px; align-items: center; }
.kicker::before { content: ""; width: 18px; height: 1px; background: var(--text-3); }
.section-head.center .kicker::after { content: ""; width: 18px; height: 1px; background: var(--text-3); }
h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -.04em; font-weight: 600; margin: 18px 0 0; }
h2 .serif { color: var(--cloud-glow); font-size: 1.06em; }
.section-head p { color: var(--text-2); font-size: 18px; margin: 20px 0 0; }
h3 { font-size: 20px; letter-spacing: -.02em; font-weight: 600; margin: 0; }

/* bridge: solid cloud band into next section */
.cloud-sea { background: var(--cloud-deep); }

/* ---------- Four questions ---------- */
.quad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-3); overflow: hidden; }
.quad article { background: var(--sky-1); padding: 30px 26px 34px; position: relative; min-height: 360px; display: flex; flex-direction: column; transition: background .4s; }
.quad article:hover { background: #0a0a0e; }
.quad .idx { font: 500 12px var(--f-mono); color: var(--text-3); }
.quad .constellation { height: 130px; margin: 18px 0 26px; }
.quad .constellation line { stroke: rgba(195,197,212,.35); stroke-width: 1; stroke-dasharray: 3 4; }
.quad .constellation circle { fill: var(--star); }
.quad article:hover .constellation line { stroke: rgba(255,255,255,.7); stroke-dasharray: none; transition: all .6s; }
.quad h3 { font-size: 24px; }
.quad p { color: var(--text-2); margin: 10px 0 0; font-size: 15px; }
.quad ul { list-style: none; padding: 0; margin: auto 0 0; padding-top: 22px; font: 12.5px/1.9 var(--f-mono); color: var(--text-3); }
.quad ul li::before { content: "· "; color: var(--text-2); }

/* ---------- Three lenses ---------- */
.lenses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lens { border: 1px solid var(--line); border-radius: var(--r-3); background: linear-gradient(180deg, rgba(18,18,24,.8), rgba(8,8,11,.8)); padding: 28px; position: relative; overflow: hidden; }
.lens .art { height: 170px; margin: -6px -6px 22px; border-radius: var(--r-2); background: var(--sky-0); border: 1px solid var(--line); overflow: hidden; position: relative; }
.lens p { color: var(--text-2); margin: 10px 0 0; font-size: 15px; }
.lens .tag { font: 500 11px var(--f-mono); color: var(--text-3); letter-spacing: .08em; text-transform: uppercase; }
.art pre { margin: 0; padding: 16px; font: 11px/1.6 var(--f-mono); color: var(--text-3); white-space: pre; }
.art pre b { color: var(--text); font-weight: 500; }
.art .fade { position: absolute; inset: auto 0 0 0; height: 60px; background: linear-gradient(transparent, var(--sky-0)); }

/* ---------- Safety strip ---------- */
.safety { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.safety-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.safety-list li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.safety-list li:last-child { border-bottom: 1px solid var(--line); }
.safety-list svg { width: 22px; height: 22px; color: var(--cloud-glow); margin-top: 2px; }
.safety-list b { font-weight: 550; display: block; }
.safety-list span { color: var(--text-2); font-size: 15px; }

/* ---------- Status legend & scoring ---------- */
.legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.legend div { border: 1px solid var(--line); border-radius: var(--r-2); padding: 16px; background: rgba(10,10,14,.6); }
.legend b { display: flex; align-items: center; gap: 8px; font-weight: 550; font-size: 14px; }
.legend span { display: block; margin-top: 6px; color: var(--text-2); font-size: 13px; line-height: 1.5; }
.formula { margin-top: 26px; padding: 22px 24px; border: 1px dashed var(--line-2); border-radius: var(--r-2); font: 13.5px/1.8 var(--f-mono); color: var(--text-2); background: rgba(0,0,0,.4); overflow-x: auto; }
.formula b { color: var(--text); font-weight: 500; }

/* status pills */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: var(--r-pill); font: 500 11.5px var(--f-mono); letter-spacing: .01em; border: 1px solid currentColor; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-pass { color: var(--pass); }
.st-warn { color: var(--warn); }
.st-fail { color: var(--fail); }
.st-blocked, .st-inconclusive, .st-error { color: var(--open); }
.st-blocked.pill, .st-inconclusive.pill, .st-error.pill { border-style: dashed; }
.st-blocked.pill::before, .st-inconclusive.pill::before, .st-error.pill::before { background: transparent; border: 1px solid currentColor; }
.st-na { color: var(--na); }
.sev { font: 500 11px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.sev-critical { color: var(--crit); }
.sev-high { color: var(--high); }
.sev-medium { color: var(--med); }
.sev-low { color: var(--low); }

/* ---------- Check catalogue ---------- */
.cat-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 22px; }
.cat-tabs button { background: transparent; border: 1px solid var(--line); color: var(--text-2); border-radius: var(--r-pill); padding: 7px 14px; font-size: 13px; cursor: pointer; transition: all .2s; }
.cat-tabs button[aria-pressed="true"] { background: var(--text); color: var(--sky-0); border-color: var(--text); }
.checks-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.checks-table th { text-align: left; font: 500 11.5px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); padding: 0 12px 12px; border-bottom: 1px solid var(--line-2); }
.checks-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.checks-table td:first-child { font: 500 13px var(--f-mono); color: var(--text-2); width: 60px; }
.checks-table td.c-impact { color: var(--text-2); font-size: 13.5px; max-width: 520px; }
.checks-table tr:hover td { background: rgba(164,166,182,.03); }

/* ---------- Code / API ---------- */
.api-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.code { position: relative; border: 1px solid var(--line); border-radius: var(--r-2); background: #07070a; overflow: hidden; }
.code header { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); font: 500 12px var(--f-mono); color: var(--text-3); }
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; font: 12.5px/1.7 var(--f-mono); color: var(--text-2); }
.code .k { color: var(--cloud-glow); }
.code .s { color: var(--pass); }
.code .c { color: var(--text-3); }
.copy { background: transparent; border: 1px solid var(--line); border-radius: 6px; color: var(--text-3); font: 500 11px var(--f-mono); padding: 3px 8px; cursor: pointer; }
.copy:hover { color: var(--text); border-color: var(--line-2); }

/* ---------- Recent audits ---------- */
.recent { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.recent a { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-2); text-decoration: none; background: rgba(10,10,14,.6); transition: border-color .2s, transform .2s var(--ease); }
.recent a:hover { border-color: var(--line-2); transform: translateY(-2px); }
.recent .mini-score { width: 46px; height: 46px; flex: none; }
.recent .host { font: 500 14px var(--f-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent .when { font-size: 12.5px; color: var(--text-3); }
.empty { padding: 28px; border: 1px dashed var(--line-2); border-radius: var(--r-2); color: var(--text-3); text-align: center; font-size: 14px; }

/* ---------- Final CTA ---------- */
.finale { position: relative; text-align: center; padding: 140px 0 0; overflow: hidden; }
.finale h2 { max-width: 16ch; margin-inline: auto; }
.finale .clouds-bottom { position: relative; height: 340px; margin-top: 60px; }
.finale .clouds-bottom svg { position: absolute; left: 50%; bottom: 0; width: max(1500px, 115%); transform: translateX(-50%); }

/* ---------- Footer ---------- */
.footer { background: var(--cloud-deep); color: #d6d7df; position: relative; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding: 34px 0 42px; font-size: 13.5px; }
.footer a { color: #e9e9ef; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer .fine { color: #b7b8c2; max-width: 520px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Report
   ========================================================================== */
.report-top { padding: 48px 0 30px; }
.crumbs { display: flex; align-items: center; gap: 10px; font: 500 13px var(--f-mono); color: var(--text-3); flex-wrap: wrap; }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.score-hero { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; margin-top: 28px; }
.score-orb { position: relative; width: 300px; height: 300px; }
.score-orb svg { width: 100%; height: 100%; overflow: visible; }
.score-orb .num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.score-orb .num b { font-size: 92px; font-weight: 600; letter-spacing: -.06em; line-height: 1; font-variant-numeric: tabular-nums; }
.score-orb .num small { font: 500 12px var(--f-mono); color: var(--text-3); margin-top: 6px; letter-spacing: .06em; }
.score-orb .num .grade { margin-top: 10px; font-family: var(--f-serif); font-style: italic; font-size: 24px; color: var(--cloud-glow); }
.score-meta h1 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -.04em; line-height: 1.05; margin: 0; font-weight: 600; word-break: break-word; }
.score-meta h1 a { text-decoration: none; }
.score-meta .sub { margin-top: 12px; color: var(--text-2); font-size: 15px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.score-meta .verdict { margin-top: 22px; font-size: 18px; max-width: 60ch; color: var(--text); line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.coverage { margin-top: 26px; max-width: 520px; }
.coverage .bar { height: 8px; border-radius: 99px; background: rgba(164,166,182,.12); overflow: hidden; display: flex; }
.coverage .bar i { display: block; height: 100%; }
.coverage .lbl { display: flex; justify-content: space-between; font: 500 12px var(--f-mono); color: var(--text-3); margin-bottom: 8px; }
.coverage .keys { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 12.5px; color: var(--text-3); }
.coverage .keys span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: currentColor; margin-right: 6px; vertical-align: 0; }

.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.cat-card { border: 1px solid var(--line); border-radius: var(--r-2); padding: 20px; background: rgba(10,10,14,.72); cursor: pointer; text-align: left; transition: border-color .2s, background .2s; }
.cat-card:hover, .cat-card[aria-pressed="true"] { border-color: var(--line-2); background: rgba(18,18,24,.85); }
.cat-card[aria-pressed="true"] { box-shadow: inset 0 0 0 1px rgba(195,197,212,.35); }
.cat-card .row { display: flex; justify-content: space-between; align-items: baseline; }
.cat-card h3 { font-size: 15px; font-weight: 550; }
.cat-card .s { font-size: 36px; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.cat-card .s small { font-size: 14px; color: var(--text-3); font-weight: 500; }
.cat-card .q { font-size: 13px; color: var(--text-3); margin-top: 6px; min-height: 40px; line-height: 1.45; }
.cat-card .meter { height: 4px; border-radius: 99px; background: rgba(164,166,182,.12); margin-top: 14px; overflow: hidden; }
.cat-card .meter i { display: block; height: 100%; background: var(--text); border-radius: 99px; transition: width 1s var(--ease); }
.cat-card .counts { display: flex; gap: 10px; margin-top: 12px; font: 500 11.5px var(--f-mono); color: var(--text-3); flex-wrap: wrap; }
.cat-card .delta { font: 500 12px var(--f-mono); }
.up { color: var(--pass); }
.down { color: var(--fail); }

.report-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 34px; padding: 30px 0 100px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: var(--r-3); background: rgba(10,10,14,.72); }
.panel + .panel { margin-top: 18px; }
.panel-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.panel-h h2 { font-size: 17px; letter-spacing: -.01em; margin: 0; font-weight: 600; }
.panel-b { padding: 18px 22px; }
.panel-b.flush { padding: 0; }

.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { background: transparent; border: 1px solid var(--line); color: var(--text-2); border-radius: var(--r-pill); padding: 4px 11px; font: 500 12px var(--f-mono); cursor: pointer; }
.filters button[aria-pressed="true"] { background: rgba(195,197,212,.14); color: var(--text); border-color: var(--line-2); }

.sev-group h3 { font: 500 11.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; padding: 16px 22px 8px; display: flex; gap: 10px; align-items: center; }
.sev-group h3 .n { color: var(--text-3); }
.finding { border-top: 1px solid var(--line); }
.finding > button { width: 100%; display: grid; grid-template-columns: 48px 1fr auto 18px; gap: 14px; align-items: center; padding: 16px 22px; background: transparent; border: 0; cursor: pointer; text-align: left; }
.finding > button:hover { background: rgba(164,166,182,.04); }
.finding .fid { font: 500 12.5px var(--f-mono); color: var(--text-3); }
.finding .ft { font-weight: 550; font-size: 15px; }
.finding .fs { color: var(--text-2); font-size: 13.5px; margin-top: 3px; line-height: 1.5; }
.finding .chev { width: 16px; height: 16px; color: var(--text-3); transition: transform .3s var(--ease); }
.finding.open .chev { transform: rotate(180deg); }
.finding .detail { display: none; padding: 4px 22px 26px 84px; }
.finding.open .detail { display: block; animation: drop .35s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.detail h4 { font: 500 11px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin: 20px 0 8px; }
.detail h4:first-child { margin-top: 6px; }
.detail p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.detail ol, .detail ul { margin: 0; padding-left: 20px; color: var(--text-2); font-size: 14.5px; }
.detail li + li { margin-top: 4px; }
.detail code { font: 12.5px var(--f-mono); background: rgba(164,166,182,.1); padding: 1px 5px; border-radius: 4px; color: var(--text); }
.evidence { border: 1px solid var(--line); border-radius: var(--r-1); overflow: hidden; }
.evidence .er { display: grid; grid-template-columns: 170px 1fr; border-top: 1px solid var(--line); font-size: 13px; }
.evidence .er:first-child { border-top: 0; }
.evidence .er > span { padding: 9px 12px; color: var(--text-3); background: rgba(0,0,0,.25); }
.evidence .er > div { padding: 9px 12px; font: 12.5px/1.6 var(--f-mono); color: var(--text); white-space: pre-wrap; word-break: break-word; min-width: 0; overflow-x: auto; }
.evidence a { color: var(--cloud-glow); }
.snippet { margin: 0; background: #050507; border: 1px solid var(--line); border-radius: var(--r-1); padding: 12px 14px; font: 12px/1.65 var(--f-mono); color: var(--text-2); overflow-x: auto; }
.checklist li { list-style: none; position: relative; padding-left: 4px; }
.checklist li::before { content: ""; position: absolute; left: -20px; top: 6px; width: 11px; height: 11px; border: 1.5px solid var(--text-3); border-radius: 3px; }
.urls a { color: var(--cloud-glow); font: 12.5px var(--f-mono); word-break: break-all; }
.detail .row-actions { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }

.open-list .item, .pass-list .item { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; padding: 14px 22px; border-top: 1px solid var(--line); align-items: start; font-size: 14px; }
.open-list .item:first-child, .pass-list .item:first-child { border-top: 0; }
.open-list .item p, .pass-list .item p { margin: 3px 0 0; color: var(--text-2); font-size: 13px; }
.item .fid { font: 500 12.5px var(--f-mono); color: var(--text-3); }

.journey { list-style: none; margin: 0; padding: 6px 0 0; position: relative; }
.journey li { position: relative; padding: 0 0 16px 26px; font-size: 13.5px; }
.journey li::before { content: ""; position: absolute; left: 5px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--star); box-shadow: 0 0 8px rgba(255,255,255,.6); }
.journey li.bad::before { background: transparent; border: 1.5px solid var(--warn); box-shadow: none; }
.journey li::after { content: ""; position: absolute; left: 8px; top: 18px; bottom: 0; width: 1px; background: var(--line-2); }
.journey li:last-child::after { display: none; }
.journey .task { font: 500 10.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.journey .d { color: var(--text); margin-top: 2px; line-height: 1.45; }
.journey .u { font: 11.5px var(--f-mono); color: var(--text-3); word-break: break-all; margin-top: 2px; }

.side h2 { font-size: 15px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 13px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; font-family: var(--f-mono); font-size: 12.5px; text-align: right; word-break: break-word; }
.hist a { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 10px 22px; border-top: 1px solid var(--line); text-decoration: none; font-size: 13px; }
.hist a:first-child { border-top: 0; }
.hist a:hover { background: rgba(164,166,182,.05); }
.hist a.current { background: rgba(195,197,212,.08); }
.hist .sc { font: 600 15px var(--f-mono); }
.spark { height: 56px; padding: 0 22px 14px; }
.pages-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.pages-table td { padding: 8px 22px; border-top: 1px solid var(--line); font-family: var(--f-mono); color: var(--text-2); vertical-align: top; }
.pages-table td:first-child { color: var(--text); word-break: break-all; }
.note { font-size: 12.5px; color: var(--text-3); line-height: 1.55; }
.changes li { font-size: 13px; padding: 6px 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.changes { list-style: none; margin: 0; padding: 0; }

.loading-state { min-height: 70vh; display: grid; place-items: center; text-align: center; color: var(--text-2); }
.loading-state .moon { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; box-shadow: inset -14px -6px 0 0 var(--cloud-glow); animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Docs ---------- */
.docs-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 50px; padding: 50px 0 120px; }
.toc { position: sticky; top: 90px; align-self: start; font-size: 14px; }
.toc a { display: block; padding: 6px 0; color: var(--text-3); text-decoration: none; }
.toc a:hover { color: var(--text); }
.toc b { display: block; font: 500 11px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); margin: 18px 0 6px; }
.prose h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -.045em; line-height: 1.02; margin: 0 0 18px; font-weight: 600; }
.prose h2 { font-size: 28px; margin: 64px 0 14px; letter-spacing: -.03em; }
.prose h3 { font-size: 18px; margin: 34px 0 10px; }
.prose p, .prose li { color: var(--text-2); font-size: 16px; }
.prose code { font: 13.5px var(--f-mono); background: rgba(164,166,182,.1); padding: 1px 6px; border-radius: 5px; color: var(--text); }
.prose .code { margin: 16px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 16px 0; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font: 500 11.5px var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); }
.prose td code { white-space: nowrap; }
.callout { border: 1px solid var(--line-2); border-left: 3px solid var(--cloud-rim); border-radius: var(--r-1); padding: 14px 18px; background: rgba(18,18,24,.7); margin: 18px 0; color: var(--text-2); font-size: 15px; }
.callout b { color: var(--text); }

/* ---------- Landing-specific additions ---------- */
.form-msg { min-height: 22px; margin-top: 12px; font-size: 14px; color: var(--text-2); }
.form-msg.err { color: var(--fail); }
.form-msg code { font: 13px var(--f-mono); color: var(--text); }
.hero .cloudbank { height: 58%; }
.sea-top { background: var(--sky-0); margin-top: -1px; }
.section.tight { padding-top: 24px; }
.table-scroll { overflow-x: auto; }
.center-k { justify-content: center; }
.center-k::after { content: ""; width: 18px; height: 1px; background: var(--text-3); }
.st-open { color: var(--open); border-style: dashed; }
.st-open::before { background: transparent; border: 1px solid currentColor; }
.legend div { display: flex; flex-direction: column; align-items: flex-start; }
.panel-h h3 { font-size: 16px; }

.sample { border: 1px solid var(--line-2); border-radius: var(--r-3); background: rgba(6,6,9,.9); overflow: hidden; box-shadow: 0 50px 140px -40px rgba(0,0,0,1), inset 0 1px 0 rgba(195,197,212,.06); }
.sample-bar { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--text-3); }
.sample-bar .dots { display: flex; gap: 6px; }
.sample-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: #26262e; }
.sample-tag { margin-left: auto; font: 500 11px var(--f-mono); color: var(--warn); border: 1px dashed rgba(233,209,143,.4); padding: 2px 8px; border-radius: var(--r-pill); white-space: nowrap; }
.sample-body { padding: 30px; }
.sample .score-hero { margin-top: 0; grid-template-columns: 240px 1fr; }
.sample .score-orb { width: 240px; height: 240px; }
.sample .score-orb .num b { font-size: 76px; }
.sample .cat-card { cursor: default; }
.sample .finding > button { cursor: pointer; }

.kit { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; margin-top: 60px; }
.kit h3 { font-size: 26px; letter-spacing: -.03em; margin-top: 14px; }
.kit p { font-size: 16px; margin-top: 12px; }

.finale .clouds-bottom svg { bottom: -2px; }
.footer .brand { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .kit { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 720px) {
  .sample-body { padding: 18px; }
  .sample .score-hero { grid-template-columns: 1fr; }
  .sample .score-orb { width: 200px; height: 200px; }
  .sample .score-orb .num b { font-size: 60px; }
  .sample-bar .mono { display: none; }
}
@media (max-width: 1020px) {
  .quad { grid-template-columns: repeat(2, 1fr); }
  .lenses { grid-template-columns: 1fr; }
  .safety { grid-template-columns: 1fr; gap: 30px; }
  .api-grid { grid-template-columns: 1fr; }
  .report-grid { grid-template-columns: 1fr; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .docs-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
}
@media (max-width: 720px) {
  .wrap { width: min(var(--wrap), 100% - 32px); }
  .nav-links a:not(.btn) { display: none; }
  .hero { min-height: 92svh; padding-top: 56px; }
  .field { padding-left: 14px; }
  .field .proto { display: none; }
  .field .btn { padding: 0 16px; }
  .progress-body { grid-template-columns: 1fr; }
  .steps { border-right: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .steps li { font-size: 13px; }
  .log { height: 200px; }
  .quad { grid-template-columns: 1fr; }
  .quad article { min-height: 0; }
  .score-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 20px; }
  .score-orb { width: 240px; height: 240px; }
  .score-orb .num b { font-size: 72px; }
  .score-meta .sub, .actions { justify-content: center; }
  .coverage { margin-inline: auto; }
  .cats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat-card { padding: 14px; }
  .cat-card .q { display: none; }
  .finding > button { grid-template-columns: 38px 1fr 16px; gap: 10px; padding: 14px 16px; }
  .finding > button .pill { display: none; }
  .finding .detail { padding: 4px 16px 22px; }
  .evidence .er { grid-template-columns: 1fr; }
  .checks-table .c-impact { display: none; }
  .open-list .item, .pass-list .item { grid-template-columns: 38px 1fr; padding: 12px 16px; }
  .open-list .item .pill, .pass-list .item .pill { grid-column: 2; justify-self: start; }
  .panel-h { padding: 14px 16px; flex-wrap: wrap; }
  .sev-group h3 { padding: 14px 16px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
