/* ==========================================================================
   AgentRank Checker — one stylesheet.
   Every colour, face and size lives in the token block below. Swap a hex here
   and the whole site follows. Dark is the default; [data-theme="light"] overrides.
   ========================================================================== */

:root {
  /* ── Colour: dark (default) ─────────────────────────────────────────── */
  --bg:            #0b0914;   /* page ground: ink with a violet cast */
  --bg-2:          #0f0c1c;   /* alternate section ground */
  --surface:       #151022;   /* cards, panes */
  --raised:        #1d1731;   /* hover / nested surfaces */
  --line:          #2a2141;   /* hairlines */
  --line-strong:   #3d3060;
  --text:          #f1ecff;
  --text-2:        #cdc3ea;
  --muted:         #9a8fc0;
  --accent:        #9b7bff;   /* the purple */
  --accent-strong: #bda8ff;
  --accent-deep:   #6a4cff;
  --accent-ink:    #0b0914;   /* text set on the accent */
  --glow:          rgba(122, 90, 255, .35);
  --pass:          #4ade9a;
  --partial:       #f4c95d;
  --fail:          #ff6b8b;
  --na:            #736c92;
  --grade-a:       #4ade9a;
  --grade-b:       #bda8ff;
  --grade-c:       #f4c95d;
  --grade-d:       #ff9f6b;
  --grade-f:       #ff6b8b;
  --shadow:        0 24px 60px -30px rgba(0, 0, 0, .8);

  /* ── Type ───────────────────────────────────────────────────────────── */
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --text-base:    1.0625rem;   /* 17px */
  --leading:      1.6;
  --h1:           clamp(2.75rem, 7.2vw, 5.75rem);
  --h2:           clamp(1.65rem, 3.1vw, 2.35rem);
  --h3:           1.2rem;

  /* ── Layout ─────────────────────────────────────────────────────────── */
  --wrap:         1120px;
  --wrap-narrow:  720px;
  --gutter:       clamp(1.1rem, 4vw, 2.5rem);
  --radius:       16px;
  --radius-sm:    9px;
  --space-1: .5rem; --space-2: 1rem; --space-3: 1.75rem; --space-4: 2.75rem; --space-5: 4.5rem; --space-6: 7rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

:root[data-theme="light"] {
  --bg:            #f7f4ff;
  --bg-2:          #efeafd;
  --surface:       #ffffff;
  --raised:        #f3eeff;
  --line:          #ddd5f4;
  --line-strong:   #c3b6ea;
  --text:          #17112b;
  --text-2:        #3d3560;
  --muted:         #6a6190;
  --accent:        #6b48f5;
  --accent-strong: #5636d6;
  --accent-deep:   #4b2fc4;
  --accent-ink:    #ffffff;
  --glow:          rgba(107, 72, 245, .18);
  --pass:          #15925f;
  --partial:       #b7791f;
  --fail:          #d6365b;
  --na:            #8a84a6;
  --grade-a:       #15925f;
  --grade-b:       #5636d6;
  --grade-c:       #b7791f;
  --grade-d:       #d1661f;
  --grade-f:       #d6365b;
  --shadow:        0 24px 50px -30px rgba(60, 40, 120, .35);
}

/* ── Fonts (self-hosted, OFL) ─────────────────────────────────────────── */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/assets/fonts/bricolage-grotesque.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/instrument-sans.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/instrument-sans-italic.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/jetbrains-mono.woff2") format("woff2"); }

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-strong); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--text); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: var(--h1); font-weight: 800; letter-spacing: -.035em; line-height: .95; }
h2 { font-size: var(--h2); font-weight: 700; }
h3 { font-size: var(--h3); font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
code, kbd, pre { font-family: var(--font-mono); font-size: .88em; }
pre { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.2rem; overflow-x: auto; line-height: 1.5; }
strong { font-weight: 600; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--narrow { max-width: var(--wrap-narrow); }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--accent); color: var(--accent-ink); padding: .5rem .9rem; border-radius: var(--radius-sm); z-index: 100; font-weight: 600; }
.skip:focus { top: 1rem; }
.eyebrow { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-strong); margin: 0 0 .9rem; }
.lead { font-size: 1.2rem; color: var(--text-2); max-width: 58ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 600 .98rem/1 var(--font-body);
  padding: .85rem 1.25rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .15s var(--ease), background .15s, border-color .15s, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-strong); color: var(--accent-ink); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--accent); }
.btn--soon { color: var(--muted); border-color: var(--line); cursor: not-allowed; }
.btn--soon .tag { font: 600 .68rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; background: var(--raised); color: var(--accent-strong); padding: .3rem .45rem; border-radius: 4px; }

/* ── Header ───────────────────────────────────────────────────────────── */
.site-head { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 20; }
.site-head__row { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; }
.brand .mark { color: var(--text); flex: none; }
.brand__name em { font-style: normal; font-weight: 400; color: var(--muted); }
.site-nav { margin-left: auto; display: flex; gap: 1.4rem; }
.site-nav a { color: var(--text-2); text-decoration: none; font-size: .95rem; padding: .3rem 0; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.theme-toggle { background: transparent; border: 1px solid var(--line-strong); color: var(--text-2); width: 2.4rem; height: 2.4rem; border-radius: 999px; display: inline-grid; place-items: center; cursor: pointer; }
.theme-toggle:hover { color: var(--text); border-color: var(--accent); }
.theme-toggle__moon { display: none; }
:root[data-theme="light"] .theme-toggle__sun { display: none; }
:root[data-theme="light"] .theme-toggle__moon { display: block; }

/* ── Check form ───────────────────────────────────────────────────────── */
.check-form { margin: 0; }
.check-form__label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .5rem; }
.check-form__bar {
  display: flex; align-items: stretch;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px;
  padding: .35rem .35rem .35rem 1rem;
  transition: border-color .15s, box-shadow .2s;
}
.check-form__bar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 5px var(--glow); }
.check-form__scheme { align-self: center; font-family: var(--font-mono); font-size: .95rem; color: var(--muted); user-select: none; }
.check-form__input {
  flex: 1; min-width: 0; background: transparent; border: 0; color: var(--text);
  font: 500 1.1rem/1 var(--font-mono); padding: .85rem .5rem;
}
.check-form__input::placeholder { color: var(--muted); opacity: .8; }
.check-form__input:focus { outline: none; }
.check-form__go { border-radius: 10px; padding-inline: 1.3rem; white-space: nowrap; }
.check-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check-form--inline .check-form__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.check-form--inline .check-form__input { font-size: 1rem; }
@media (max-width: 520px) {
  .check-form__bar { flex-wrap: wrap; padding: .5rem; }
  .check-form__scheme { display: none; }
  .check-form__input { flex-basis: 100%; padding: .75rem .35rem; }
  .check-form__go { width: 100%; justify-content: center; margin-top: .35rem; }
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { padding: var(--space-5) 0 var(--space-4); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 70%;
  background: radial-gradient(60% 60% at 70% 30%, var(--glow), transparent 70%);
  pointer-events: none; opacity: .9;
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; position: relative; }
.hero__copy h1 { margin-bottom: .45em; }
.hero__copy .lead { margin-bottom: 1.6rem; }
.hero__meta { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); margin: .9rem 0 0; }
@media (max-width: 900px) {
  .hero { padding-top: var(--space-4); }
  .hero__grid { grid-template-columns: 1fr; }
}

/* ── The x-ray pane: what AI reads ────────────────────────────────────── */
.xray {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); font-family: var(--font-mono); font-size: .82rem; line-height: 1.5;
  overflow: hidden; position: relative;
}
.xray__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); background: var(--raised); }
.xray__title { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-strong); }
.xray__url { color: var(--muted); font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xray__body { padding: .8rem 1rem 1rem; }
.xray__line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .8rem; padding: .3rem 0; border-bottom: 1px dashed color-mix(in srgb, var(--line) 70%, transparent); animation: xray-in .5s var(--ease) both; }
.xray__line:last-child { border-bottom: 0; }
.xray__line:nth-child(1) { animation-delay: .15s; } .xray__line:nth-child(2) { animation-delay: .3s; }
.xray__line:nth-child(3) { animation-delay: .45s; } .xray__line:nth-child(4) { animation-delay: .6s; }
.xray__line:nth-child(5) { animation-delay: .75s; } .xray__line:nth-child(6) { animation-delay: .9s; }
.xray__line:nth-child(7) { animation-delay: 1.05s; } .xray__line:nth-child(8) { animation-delay: 1.2s; }
.xray__line:nth-child(9) { animation-delay: 1.35s; } .xray__line:nth-child(10) { animation-delay: 1.5s; }
.xray__k { color: var(--muted); }
.xray__v { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xray__s { white-space: nowrap; font-weight: 600; }
.xray__s--pass { color: var(--pass); } .xray__s--fail { color: var(--fail); } .xray__s--partial { color: var(--partial); }
.xray__foot { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .8rem 1rem; border-top: 1px solid var(--line); background: var(--raised); animation: xray-in .5s 1.7s var(--ease) both; }
.xray__foot strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.xray__foot span { color: var(--muted); font-size: .75rem; }
@keyframes xray-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

/* ── Sections & prose ─────────────────────────────────────────────────── */
.section { padding: var(--space-5) 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { max-width: 22ch; }
.prose { max-width: var(--wrap-narrow); }
.prose h2 { margin-top: var(--space-4); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--space-3); }
.prose p, .prose li { color: var(--text-2); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .45em; }
.prose blockquote, .quote {
  margin: var(--space-3) 0; padding: .4rem 0 .4rem 1.5rem; border-left: 3px solid var(--accent);
  font-family: var(--font-body); font-style: italic; font-size: 1.3rem; line-height: 1.4; color: var(--text);
}
.prose blockquote p, .quote p { color: var(--text); margin-bottom: .6rem; }
.prose blockquote footer, .quote footer { display: block; font-style: normal; font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }
.prose blockquote cite, .quote cite { font-style: normal; }
.prose table, .table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: var(--space-2) 0 var(--space-3); }
.prose th, .prose td, .table th, .table td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th, .table th { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.table td.num, .prose td.num { font-family: var(--font-mono); text-align: right; white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.page__head { margin-bottom: var(--space-4); }
.page__meta { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); margin-top: -.4rem; }
.page { padding: var(--space-5) 0 var(--space-6); }

/* ── Ledger: stats row ────────────────────────────────────────────────── */
.ledger { display: grid; grid-template-columns: repeat(3, 1fr); margin: var(--space-3) 0; border-block: 1px solid var(--line); }
.ledger__cell { padding: 1.2rem 1rem 1.2rem 0; border-right: 1px solid var(--line); margin-right: 1rem; }
.ledger__cell:last-child { border-right: 0; margin-right: 0; }
.ledger__num { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--accent-strong); }
.ledger__label { color: var(--muted); font-size: .9rem; margin: .4rem 0 0; }
@media (max-width: 640px) { .ledger { grid-template-columns: 1fr; } .ledger__cell { border-right: 0; border-bottom: 1px solid var(--line); margin: 0; padding-right: 0; } .ledger__cell:last-child { border-bottom: 0; } }

/* ── Category cards ───────────────────────────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: var(--space-3) 0; }
.cat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.25rem 1.1rem; display: flex; flex-direction: column; gap: .4rem; }
.cat--wide { grid-column: 1 / -1; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, var(--surface)), var(--surface)); }
.cat__id { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; color: var(--accent-strong); }
.cat__id b { font-size: 1rem; }
.cat h3 { margin: 0; font-size: 1.1rem; }
.cat p { margin: 0; color: var(--text-2); font-size: .95rem; }
.cat__eg { font-family: var(--font-mono); font-size: .74rem; color: var(--muted); margin-top: .3rem; }

/* ── Grade ladder ─────────────────────────────────────────────────────── */
.ladder-scroll { overflow-x: auto; margin: var(--space-3) 0; padding-bottom: .3rem; }
.ladder { display: grid; grid-template-columns: repeat(13, minmax(64px, 1fr)); min-width: 860px; gap: 4px; }
.ladder__family { grid-row: 1; text-align: center; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-bottom: .4rem; border-bottom: 2px solid var(--fam, var(--line)); margin-bottom: .5rem; }
.ladder__family--a { grid-column: 1 / span 3; --fam: var(--grade-a); }
.ladder__family--b { grid-column: 4 / span 3; --fam: var(--grade-b); }
.ladder__family--c { grid-column: 7 / span 3; --fam: var(--grade-c); }
.ladder__family--d { grid-column: 10 / span 3; --fam: var(--grade-d); }
.ladder__family--f { grid-column: 13 / span 1; --fam: var(--grade-f); }
.ladder__step { grid-row: 2; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: .55rem .3rem; text-align: center; }
.ladder__step b { display: block; font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.ladder__step span { font-family: var(--font-mono); font-size: .68rem; color: var(--muted); }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq h3 { margin-top: var(--space-3); font-size: 1.15rem; }
.faq h3:first-of-type { margin-top: var(--space-2); }

/* ── CTA band ─────────────────────────────────────────────────────────── */
.cta-band { padding: var(--space-5) 0; border-top: 1px solid var(--line); background: radial-gradient(70% 100% at 50% 100%, var(--glow), transparent 70%); }
.cta-band__inner { max-width: 640px; }
.cta-band h2 { margin-bottom: .4em; }
.cta-band p { color: var(--text-2); }

/* ── Guides ───────────────────────────────────────────────────────────── */
.guide-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin: var(--space-3) 0; }
.guide-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.3rem 1.2rem; color: var(--text); position: relative; transition: border-color .15s, transform .15s var(--ease); }
.guide-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.guide-card h3, .guide-card h2 { margin: .2rem 0 .5rem; font-size: 1.2rem; }
.guide-card h2 a, .guide-card h3 a { color: var(--text); text-decoration: none; }
.guide-card h2 a::after, .guide-card h3 a::after { content: ""; position: absolute; inset: 0; }
.guide-card:hover h2 a, .guide-card:hover h3 a { color: var(--accent-strong); }
.guide-card p { color: var(--text-2); margin: 0; font-size: .95rem; }
.guide-card .page__meta { margin: .8rem 0 0; }
.guide-more { margin-top: var(--space-5); padding-top: var(--space-3); border-top: 1px solid var(--line); }

/* ── Progress overlay ─────────────────────────────────────────────────── */
.progress { position: fixed; inset: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); display: grid; place-items: center; padding: var(--gutter); overflow-y: auto; }
.progress__panel { width: min(100%, 640px); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.4rem, 4vw, 2.4rem); }
.progress__eyebrow { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-strong); margin: 0 0 .5rem; }
.progress__title { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; margin: 0 0 .3rem; }
.progress__domain { font-family: var(--font-mono); color: var(--muted); font-size: .9rem; margin: 0 0 1.4rem; overflow-wrap: anywhere; }
.progress__bar { height: 6px; background: var(--raised); border-radius: 999px; overflow: hidden; margin-bottom: 1.4rem; }
.progress__fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-deep), var(--accent-strong)); border-radius: 999px; transition: width .6s var(--ease); }
.progress--done .progress__fill { width: 100% !important; }
.stages { list-style: none; margin: 0 0 1.6rem; padding: 0; font-family: var(--font-mono); font-size: .84rem; display: grid; gap: .35rem; }
.stages li { display: flex; gap: .7rem; align-items: baseline; color: var(--muted); }
.stages li::before { content: "○"; color: var(--line-strong); width: 1em; flex: none; }
.stages li.is-active { color: var(--text); }
.stages li.is-active::before { content: "●"; color: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
.stages li.is-done { color: var(--text-2); }
.stages li.is-done::before { content: "✓"; color: var(--pass); }
@keyframes pulse { 50% { opacity: .35; } }
.fact { border-top: 1px solid var(--line); padding-top: 1.2rem; min-height: 6.5rem; }
.fact__label { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 .5rem; }
.fact__text { font-family: var(--font-body); font-size: 1.12rem; line-height: 1.45; color: var(--text); margin: 0; transition: opacity .45s ease; }
.fact__text.is-fading { opacity: 0; }
.progress__error { display: none; }
.progress--error .progress__running { display: none; }
.progress--error .progress__error { display: block; }
.progress__error h2 { font-size: 1.5rem; margin-bottom: .6rem; }
.progress__error p { color: var(--text-2); }
.progress__error ul { color: var(--text-2); padding-left: 1.2rem; }
.progress__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }

/* ── Report ───────────────────────────────────────────────────────────── */
.page-report main { padding-bottom: var(--space-6); }
.report-head { padding: var(--space-4) 0 var(--space-3); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.report-head h1 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; letter-spacing: -.02em; margin: 0; overflow-wrap: anywhere; }
.report-head h1 a { color: inherit; text-decoration: none; }
.report-head h1 a:hover { color: var(--accent-strong); }
.report-head__meta { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); margin: .3rem 0 0; }
.score { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.5rem); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.score::before { content: ""; position: absolute; inset: auto -20% -60% auto; width: 60%; height: 120%; background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }
.ring { position: relative; width: clamp(160px, 26vw, 220px); aspect-ratio: 1; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring__track { fill: none; stroke: var(--raised); stroke-width: 9; }
.ring__fill { fill: none; stroke: var(--grade-col, var(--accent)); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 1.3s var(--ease); }
.ring__num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring__num b { font-family: var(--font-display); font-size: clamp(2.8rem, 6vw, 4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.ring__num span { font-family: var(--font-mono); font-size: .75rem; color: var(--muted); letter-spacing: .1em; }
.score__grade-row { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.score__grade { font-family: var(--font-display); font-size: clamp(3.2rem, 8vw, 5.5rem); font-weight: 800; letter-spacing: -.05em; line-height: .9; color: var(--grade-col, var(--accent)); }
.score__label { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text); border: 1px solid var(--grade-col, var(--line-strong)); border-radius: 999px; padding: .4rem .7rem; }
.score__verdict { font-family: var(--font-body); font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.35; margin: .9rem 0 .7rem; max-width: 30ch; }
.score__facts { font-family: var(--font-mono); font-size: .84rem; color: var(--muted); margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.score__facts .delta--up { color: var(--pass); } .score__facts .delta--down { color: var(--fail); } .score__facts .delta--same { color: var(--muted); }
.grade--a { --grade-col: var(--grade-a); } .grade--b { --grade-col: var(--grade-b); } .grade--c { --grade-col: var(--grade-c); } .grade--d { --grade-col: var(--grade-d); } .grade--f { --grade-col: var(--grade-f); }
@media (max-width: 640px) { .score { grid-template-columns: 1fr; justify-items: center; text-align: center; } .score__grade-row { justify-content: center; } .score__verdict { margin-inline: auto; } .score__facts { justify-content: center; } }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: var(--space-3) 0; align-items: center; }
.actions__cta { margin-left: auto; font-size: .92rem; color: var(--text-2); }
.copied { color: var(--pass); }

.shots { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; margin: var(--space-3) 0 var(--space-4); }
.shots figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.shots img { width: 100%; }
.shots figcaption { font-family: var(--font-mono); font-size: .74rem; color: var(--muted); padding: .6rem .9rem; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .shots { grid-template-columns: 1fr; } }

.cat-section { margin-top: var(--space-4); }
.cat-section__head { display: grid; grid-template-columns: auto 1fr auto; gap: .9rem 1rem; align-items: center; padding-bottom: .8rem; border-bottom: 1px solid var(--line-strong); margin-bottom: .3rem; }
.cat-section__id { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--accent-strong); width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 8px; }
.cat-section__head h2 { font-size: 1.35rem; margin: 0; }
.cat-section__head p { margin: 0; color: var(--muted); font-size: .92rem; }
.cat-section__pts { font-family: var(--font-mono); font-size: .85rem; color: var(--text-2); text-align: right; }
.cat-section__pts b { color: var(--text); font-weight: 600; }
.bar { grid-column: 1 / -1; display: block; width: 100%; height: 5px; }
.bar__track { fill: var(--raised); }
.bar__fill { fill: var(--accent); }
.check { display: grid; grid-template-columns: 1.6rem 3rem minmax(0, 1fr) auto; gap: .5rem .8rem; padding: .85rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.check__status { display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 999px; font: 700 .72rem/1 var(--font-mono); color: var(--accent-ink); }
.check__status--pass { background: var(--pass); } .check__status--partial { background: var(--partial); } .check__status--fail { background: var(--fail); } .check__status--na { background: var(--na); }
.check__id { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }
.check__name { font-weight: 600; margin: 0; }
.check__evidence { margin: .15rem 0 0; color: var(--text-2); font-size: .93rem; overflow-wrap: anywhere; }
.check__evidence code { font-size: .85em; }
.check__pts { font-family: var(--font-mono); font-size: .82rem; color: var(--muted); white-space: nowrap; }
.check--na .check__name, .check--na .check__evidence { color: var(--muted); }
@media (max-width: 560px) { .check { grid-template-columns: 1.6rem minmax(0, 1fr) auto; } .check__id { display: none; } }
.detected { margin-top: var(--space-4); }
.detected .check { grid-template-columns: 1.6rem minmax(0, 1fr); }
.detected__eye { display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); font-size: .7rem; }
.detected__eye--on { border-color: var(--accent); color: var(--accent-strong); }
.report-foot { margin-top: var(--space-4); font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }

/* ── Message pages ────────────────────────────────────────────────────── */
.message { padding: var(--space-5) 0 var(--space-6); }
.message h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
.message__list { color: var(--text-2); }
.message .check-form { margin: var(--space-3) 0; }
.message__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: var(--space-3); }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-foot { border-top: 1px solid var(--line); padding: var(--space-4) 0 var(--space-3); background: var(--bg-2); font-size: .92rem; }
.site-foot__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.site-foot__tag { color: var(--muted); margin: .7rem 0 0; max-width: 40ch; }
.site-foot__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem 1rem; }
.site-foot__nav a { color: var(--text-2); text-decoration: none; }
.site-foot__nav a:hover { color: var(--text); text-decoration: underline; }
.site-foot__trust { border-top: 1px solid var(--line); margin-top: var(--space-3); padding-top: var(--space-2); color: var(--muted); max-width: 72ch; }
.site-foot__trust p { margin-bottom: .55em; }
.site-foot__trust strong { color: var(--text-2); }
.site-foot__legal { font-family: var(--font-mono); font-size: .74rem; color: var(--muted); margin: var(--space-2) 0 0; }
@media (max-width: 640px) {
  .site-foot__grid { grid-template-columns: 1fr; }
  .site-head__row { flex-wrap: wrap; row-gap: 0; min-height: 3.6rem; padding-top: .6rem; }
  .theme-toggle { margin-left: auto; }
  .site-nav { order: 3; flex-basis: 100%; margin-left: 0; gap: 1.1rem; padding-bottom: .55rem; }
  .site-nav a { font-size: .9rem; }
}

/* ── Motion preferences ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .xray__line, .xray__foot { animation: none; }
  .stages li.is-active::before { animation: none; }
  .ring__fill, .progress__fill, .fact__text, .btn, .guide-card { transition: none; }
}
