/* ==========================================================================
   Product Launch Blog
   One stylesheet. No framework, no preprocessor, no external font request.
   Light is the default; dark is opt-in via [data-theme] and honours
   prefers-color-scheme on a visitor's first arrival.
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */

:root {
  --bg:          #ffffff;
  --bg-alt:      #f5f6fa;
  --bg-sunken:   #eef0f7;
  --surface:     #ffffff;
  --surface-2:   #f9fafc;
  --border:      #e2e5ef;
  --border-firm: #cbd0e0;
  --text:        #14161f;
  --text-2:      #4e5468;
  --text-3:      #5c627c;   /* 5.9:1 on white, 5.4:1 on the alt surface */
  --accent:      #4b3fe4;
  --accent-ink:  #3a2fc4;
  --accent-soft: #eeecff;
  --accent-2:    #0d8f83;
  --shadow-sm:   0 1px 2px rgba(20, 22, 31, .05);
  --shadow:      0 4px 20px rgba(20, 22, 31, .07);
  --shadow-lg:   0 12px 40px rgba(20, 22, 31, .12);

  --excellent: #0a9d6e;
  --good:      #4ba14a;
  --fair:      #c68a09;
  --poor:      #dd7220;
  --bad:       #d94141;

  --excellent-bg: rgba(10, 157, 110, .10);
  --good-bg:      rgba(75, 161, 74, .10);
  --fair-bg:      rgba(198, 138, 9, .12);
  --poor-bg:      rgba(221, 114, 32, .11);
  --bad-bg:       rgba(217, 65, 65, .10);

  /* Pill and small-text versions of the status colours. The tokens above are
     tuned for bars and fills, where they are large blocks of colour; at pill
     size on a pale tint they fall between 3.0 and 4.4 to 1, which fails AA for
     small text. These are the same hues darkened to clear 4.5. */
  --excellent-ink: #077753;
  --good-ink:      #3a7d39;
  --fair-ink:      #8a6106;
  --poor-ink:      #a5541a;
  --bad-ink:       #c02c2c;

  --maxw:  1120px;
  --readw: 45rem;
  --r:     10px;
  --r-lg:  16px;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

[data-theme="dark"] {
  --bg:          #0f1117;
  --bg-alt:      #151824;
  --bg-sunken:   #0b0d13;
  --surface:     #1a1d27;
  --surface-2:   #20242f;
  --border:      #2a2e3e;
  --border-firm: #3a3f54;
  --text:        #e9ebf5;
  --text-2:      #a2a8c2;
  --text-3:      #8f96b3;   /* dark theme: 5.6:1 on the dark surface */
  --accent:      #8b81ff;
  --accent-ink:  #a49cff;
  --accent-soft: rgba(139, 129, 255, .13);
  --accent-2:    #4ecdc4;
  --shadow-sm:   0 1px 2px rgba(0, 0, 0, .4);
  --shadow:      0 4px 22px rgba(0, 0, 0, .45);
  --shadow-lg:   0 14px 44px rgba(0, 0, 0, .55);

  --excellent: #06d6a0;
  --good:      #7ed957;
  --fair:      #ffd166;
  --poor:      #ff9f43;
  --bad:       #ff6b6b;

  --excellent-ink: var(--excellent);
  --good-ink:      var(--good);
  --fair-ink:      var(--fair);
  --poor-ink:      var(--poor);
  --bad-ink:       var(--bad);

  --excellent-bg: rgba(6, 214, 160, .13);
  --good-bg:      rgba(126, 217, 87, .13);
  --fair-bg:      rgba(255, 209, 102, .13);
  --poor-bg:      rgba(255, 159, 67, .13);
  --bad-bg:       rgba(255, 107, 107, .13);
}

/* --- Reset ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: light;
}
[data-theme="dark"] html, html[data-theme="dark"] { color-scheme: dark; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 { line-height: 1.22; margin: 0 0 .5em; font-weight: 660; letter-spacing: -.018em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.05rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem); margin-top: 2.4em; }
h3 { font-size: 1.16rem; margin-top: 1.9em; }
h4 { font-size: .95rem; text-transform: uppercase; letter-spacing: .09em; color: var(--text-3); }
p  { margin: 0 0 1.15em; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .16em; }
a:hover { color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

code {
  font-family: var(--mono); font-size: .87em;
  background: var(--bg-sunken); padding: .1em .38em; border-radius: 5px;
  border: 1px solid var(--border);
}
pre {
  font-family: var(--mono); font-size: .84rem; line-height: 1.6;
  background: var(--bg-sunken); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.1rem 1.25rem; overflow-x: auto;
}
pre code { background: none; border: 0; padding: 0; }

/* --- Layout --------------------------------------------------------------- */

.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.wrap--read { width: min(100% - 2.5rem, var(--readw)); margin-inline: auto; }
.stack > * + * { margin-top: 1.15em; }
.section { padding: 4.5rem 0; }
.section--tight { padding: 2.75rem 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.center { text-align: center; }
.muted { color: var(--text-2); }
.small { font-size: .875rem; }
.eyebrow {
  font-size: .74rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .13em; color: var(--accent); margin: 0 0 .8rem;
}

/* --- Header --------------------------------------------------------------- */

.masthead {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.masthead__in {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 62px;
}
.logo {
  display: flex; align-items: center; gap: .55rem;
  font-weight: 720; letter-spacing: -.028em; font-size: 1.02rem;
  color: var(--text); text-decoration: none; flex-shrink: 0;
}
.logo:hover { color: var(--text); }
.logo__mark {
  width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  display: grid; place-items: center;
  color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: -.04em;
}
.mainnav { display: flex; gap: 1.35rem; margin-left: auto; align-items: center; }
.mainnav a {
  color: var(--text-2); text-decoration: none; font-size: .9rem; font-weight: 500;
  white-space: nowrap;
}
.mainnav a:hover, .mainnav a[aria-current="page"] { color: var(--text); }
.mainnav a[aria-current="page"] { font-weight: 620; }

.themetoggle {
  background: transparent; border: 1px solid var(--border); color: var(--text-2);
  width: 34px; height: 34px; border-radius: 9px; cursor: pointer;
  display: grid; place-items: center; flex-shrink: 0; transition: .15s;
}
.themetoggle:hover { border-color: var(--border-firm); color: var(--text); background: var(--surface-2); }
.themetoggle svg { width: 16px; height: 16px; }
.themetoggle .i-sun  { display: none; }
[data-theme="dark"] .themetoggle .i-sun  { display: block; }
[data-theme="dark"] .themetoggle .i-moon { display: none; }

.navtoggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; color: var(--text-2); }

@media (max-width: 900px) {
  .navtoggle { display: block; margin-left: auto; order: 2; }
  .themetoggle { order: 3; }
  .mainnav {
    order: 4; flex-basis: 100%; margin-left: 0; flex-direction: column;
    align-items: flex-start; gap: 0; padding: .4rem 0 1rem;
    border-top: 1px solid var(--border); display: none;
  }
  .mainnav.is-open { display: flex; }
  .mainnav a { padding: .6rem 0; width: 100%; font-size: .98rem; }
  .masthead__in { flex-wrap: wrap; }
}

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .78rem 1.4rem; border-radius: var(--r); border: 1px solid transparent;
  font-size: .95rem; font-weight: 600; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer; transition: .16s ease;
  line-height: 1.2;
}
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-ink); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border-firm); }
.btn--ghost:hover { color: var(--text); background: var(--surface-2); border-color: var(--text-3); }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.03rem; border-radius: 12px; }
.btn--sm { padding: .5rem .9rem; font-size: .85rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btnrow { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

/* --- Cards ---------------------------------------------------------------- */

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.6rem 1.7rem; box-shadow: var(--shadow-sm);
}
.card--pad { padding: 2rem 2.1rem; }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

.grid { display: grid; gap: 1.15rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* --- Hero ----------------------------------------------------------------- */

.hero { padding: 4.5rem 0 3.5rem; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto; height: 620px; z-index: -1;
  background: radial-gradient(ellipse 50% 50% at 50% 40%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.hero h1 { max-width: 20ch; }
.hero__lede { font-size: clamp(1.06rem, .98rem + .4vw, 1.22rem); color: var(--text-2); max-width: 56ch; }
.hero__cta { margin-top: 2rem; }
.hero__note { font-size: .85rem; color: var(--text-3); margin-top: .95rem; }

/* --- Dimension bars ------------------------------------------------------- */

.dimrow { display: flex; align-items: center; gap: .9rem; padding: .5rem 0; }
.dimrow__label { flex: 0 0 clamp(120px, 26%, 220px); font-size: .92rem; font-weight: 550; }
.dimrow__track { flex: 1; height: 9px; border-radius: 6px; background: var(--bg-sunken); overflow: hidden; border: 1px solid var(--border); }
/* display:block matters. These fills are spans, and width and height do not
   apply to a non-replaced inline box, so without this the bar renders 0 by 0
   while getComputedStyle still cheerfully reports the width you asked for. */
/* display:block matters: these fills are spans, and width and height do not
   apply to a non-replaced inline box, so without it the bar renders 0 by 0
   while getComputedStyle still cheerfully reports the width you asked for.

   The width itself is rendered by the server. The reveal is a keyframe with
   only a "from", so it animates up to whatever that inline width is and lands
   on it. No JavaScript is involved, which means the bar is never left empty by
   a script that did not run, an observer that did not fire, or a screenshot
   taken at the wrong moment. Reduced-motion collapses the duration above. */
.dimrow__fill {
  display: block; height: 100%; border-radius: 6px;
  animation: plb-bar-in .75s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes plb-bar-in { from { width: 0; } }
.dimrow__val { flex: 0 0 3.1rem; text-align: right; font-variant-numeric: tabular-nums; font-weight: 640; font-size: .92rem; }

.t-excellent { color: var(--excellent-ink); } .f-excellent { background: var(--excellent); }
.t-good      { color: var(--good-ink); }      .f-good      { background: var(--good); }
.t-fair      { color: var(--fair-ink); }      .f-fair      { background: var(--fair); }
.t-poor      { color: var(--poor-ink); }  .f-poor      { background: var(--poor); }
.t-bad       { color: var(--bad-ink); }   .f-bad       { background: var(--bad); }

.b-excellent { background: var(--excellent-bg); color: var(--excellent-ink); }
.b-good      { background: var(--good-bg);      color: var(--good-ink); }
.b-fair      { background: var(--fair-bg);      color: var(--fair-ink); }
.b-poor      { background: var(--poor-bg);      color: var(--poor-ink); }
.b-bad       { background: var(--bad-bg);       color: var(--bad-ink); }

.pill {
  display: inline-block; padding: .18rem .62rem; border-radius: 30px;
  font-size: .74rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
}

/* --- Score ring ----------------------------------------------------------- */

.ring { --v: 0; position: relative; width: 168px; height: 168px; flex-shrink: 0; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring__bg { fill: none; stroke: var(--bg-sunken); stroke-width: 11; }
.ring__fg {
  fill: none; stroke-width: 11; stroke-linecap: round;
  stroke-dasharray: 439.8;
  /* The offset is rendered inline by the server, so the ring is correct with
     no JavaScript. Same from-only keyframe trick as the bars. */
  animation: plb-ring-in 1.1s cubic-bezier(.2,.75,.25,1) both;
}
@keyframes plb-ring-in { from { stroke-dashoffset: 439.8; } }
.ring__mid {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
}
.ring__num { font-size: 3rem; font-weight: 720; line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.ring__den { font-size: .78rem; color: var(--text-3); margin-top: .3rem; letter-spacing: .05em; }

/* --- The checker ---------------------------------------------------------- */

.checker { max-width: 46rem; margin-inline: auto; }

.progress {
  position: sticky; top: 62px; z-index: 30; background: var(--bg);
  padding: .85rem 0 .9rem; border-bottom: 1px solid var(--border); margin-bottom: 2rem;
}
.progress__meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: .82rem; color: var(--text-2); margin-bottom: .5rem;
}
.progress__meta b { color: var(--text); font-weight: 640; }
.progress__track { height: 5px; border-radius: 4px; background: var(--bg-sunken); overflow: hidden; }
.progress__fill {
  height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 4px; transition: width .35s ease; width: 0;
}

.dimhead {
  display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap;
  margin: 3rem 0 .5rem; padding-top: 1.6rem; border-top: 1px solid var(--border);
}
.dimhead:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.dimhead h2 { margin: 0; font-size: 1.28rem; }
.dimhead__w {
  font-size: .74rem; font-weight: 700; letter-spacing: .04em;
  padding: .16rem .55rem; border-radius: 20px; background: var(--accent-soft); color: var(--accent);
}
.dimhead + .dimblurb { color: var(--text-2); font-size: .94rem; margin-bottom: 1.6rem; }

.q {
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.25rem 1.4rem; margin-bottom: .9rem; background: var(--surface);
  transition: border-color .18s, box-shadow .18s;
}
.q.is-answered { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.q__q { font-weight: 590; margin: 0 0 .35rem; font-size: 1.005rem; line-height: 1.45; }
.q__help { font-size: .855rem; color: var(--text-3); margin: 0 0 .95rem; }
.q__opts { display: flex; gap: .5rem; flex-wrap: wrap; }
.q__opt { flex: 1 1 0; min-width: 92px; }
.q__opt input { position: absolute; opacity: 0; pointer-events: none; }
.q__opt span {
  display: block; text-align: center; padding: .58rem .6rem; border-radius: 9px;
  border: 1px solid var(--border-firm); background: var(--surface-2);
  font-size: .89rem; font-weight: 570; cursor: pointer; transition: .14s;
  user-select: none;
}
.q__opt span:hover { border-color: var(--text-3); }
.q__opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.q__opt input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.q__opt[data-v="0"] input:checked + span { background: var(--bad); border-color: var(--bad); }
.q__opt[data-v="1"] input:checked + span { background: var(--fair); border-color: var(--fair); color: #1d1600; }
.q__opt[data-v="2"] input:checked + span { background: var(--excellent); border-color: var(--excellent); color: #fff; }

/* --- Result --------------------------------------------------------------- */

.result__top {
  display: flex; gap: 2.4rem; align-items: center; flex-wrap: wrap;
  padding: 2.2rem 2.2rem; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.result__verdict { flex: 1 1 22rem; min-width: 0; }
.result__band { font-size: 1.55rem; font-weight: 700; letter-spacing: -.03em; margin: .3rem 0 .55rem; }
.result__say { color: var(--text-2); margin: 0; }

.finding {
  border-left: 3px solid var(--border-firm); padding: .25rem 0 .25rem 1.1rem; margin-bottom: 1.4rem;
}
.finding--0 { border-left-color: var(--bad); }
.finding--1 { border-left-color: var(--fair); }
.finding__q { font-weight: 590; margin: 0 0 .3rem; }
.finding__meta { font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); margin: 0 0 .45rem; }
.finding__fix { color: var(--text-2); margin: 0; font-size: .95rem; }

.unlock {
  background: linear-gradient(150deg, var(--accent-soft), transparent 65%);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  border-radius: var(--r-lg); padding: 1.9rem 2rem;
}
.field { display: block; margin-bottom: .9rem; }
.field > span { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .72rem .9rem; border-radius: var(--r);
  border: 1px solid var(--border-firm); background: var(--surface); color: var(--text);
}
.field input:focus { border-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.copybox {
  display: flex; gap: .5rem; align-items: stretch;
}
.copybox textarea {
  flex: 1; font-family: var(--mono); font-size: .78rem; min-height: 4.6rem;
  padding: .7rem .8rem; border-radius: var(--r); border: 1px solid var(--border-firm);
  background: var(--bg-sunken); color: var(--text-2); resize: vertical;
}

/* --- Prose ---------------------------------------------------------------- */

.prose { font-size: 1.06rem; }
.prose > h2 { scroll-margin-top: 5rem; }
.prose > h3 { scroll-margin-top: 5rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.15em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--text-3); }
.prose blockquote {
  margin: 1.6em 0; padding: .2em 0 .2em 1.3rem;
  border-left: 3px solid var(--accent); color: var(--text-2); font-style: normal;
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .95rem; }
.prose th {
  text-align: left; padding: .65rem .8rem; background: var(--bg-alt);
  border-bottom: 1px solid var(--border-firm); font-size: .78rem;
  text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 650;
}
.prose td { padding: .7rem .8rem; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--text-2); }
.prose td strong { color: var(--text); }

.standfirst {
  font-size: 1.2rem; line-height: 1.55; color: var(--text-2);
  margin: 0 0 1.8rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border);
}
.byline {
  display: flex; gap: .6rem; flex-wrap: wrap; align-items: center;
  font-size: .85rem; color: var(--text-3); margin-bottom: 2rem;
}
.byline b { color: var(--text-2); font-weight: 600; }
.byline .dot { color: var(--border-firm); }

.defbox {
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: var(--r-lg); padding: 1.3rem 1.5rem; margin: 2rem 0;
}
.defbox h4, .defbox .defbox__h { margin: 0 0 .4rem; color: var(--accent); }
.defbox p { margin: 0; font-size: 1.06rem; font-weight: 520; color: var(--text); }

.callout {
  border-radius: var(--r-lg); padding: 1.25rem 1.45rem; margin: 1.9rem 0;
  border: 1px solid var(--border); background: var(--bg-alt);
}
.callout > :first-child { margin-top: 0; } .callout > :last-child { margin-bottom: 0; }
.callout--warn { background: var(--fair-bg); border-color: color-mix(in srgb, var(--fair) 30%, transparent); }
.callout--note { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }

.faq details {
  border-bottom: 1px solid var(--border); padding: .95rem 0;
}
.faq summary { cursor: pointer; font-weight: 590; list-style: none; display: flex; gap: .7rem; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.faq details[open] summary::before { content: "\2212"; }
.faq details p { margin: .7rem 0 0; color: var(--text-2); }

/* --- Article cards -------------------------------------------------------- */

.acard {
  display: flex; flex-direction: column; gap: .5rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.4rem 1.5rem; text-decoration: none; color: inherit;
  transition: .18s ease; height: 100%;
}
.acard:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-firm); color: inherit; }
.acard__hub { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 700; }
.acard__t { font-size: 1.06rem; font-weight: 640; line-height: 1.35; margin: 0; letter-spacing: -.015em; }
.acard__d { font-size: .9rem; color: var(--text-2); margin: 0; }
.acard__m { font-size: .78rem; color: var(--text-3); margin-top: auto; padding-top: .5rem; }

/* --- Stats ---------------------------------------------------------------- */

.stat { text-align: left; }
.stat__n { font-size: 2.15rem; font-weight: 720; letter-spacing: -.04em; line-height: 1; color: var(--accent); }
.stat__l { font-size: .87rem; color: var(--text-2); margin-top: .5rem; }

/* --- Footer --------------------------------------------------------------- */

.foot { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 3rem 0 2.2rem; margin-top: 5rem; }
.foot__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; }
@media (max-width: 780px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
.foot h4, .foot .foot__h { margin: 0 0 .8rem; font-size: .74rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: .45rem; }
.foot a { color: var(--text-2); text-decoration: none; font-size: .9rem; }
.foot a:hover { color: var(--accent); }
.foot__note { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--border); font-size: .82rem; color: var(--text-3); }
.foot__note p { margin: 0 0 .4rem; max-width: 62ch; }

/* --- Utility -------------------------------------------------------------- */

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff;
  padding: .7rem 1.1rem; border-radius: 0 0 var(--r) 0; z-index: 200; text-decoration: none;
}
.skip:focus { left: 0; color: #fff; }

.crumbs { font-size: .82rem; color: var(--text-3); margin-bottom: 1.4rem; }
.crumbs a { color: var(--text-3); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin: 0 .45rem; }

.hidden { display: none !important; }

@media print {
  .masthead, .foot, .themetoggle, .btnrow, .unlock { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .card, .result__top { border: 1px solid #ccc; box-shadow: none; }
}

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

/* ==========================================================================
   v2 additions: profile step, verified checks, report, accessibility
   ========================================================================== */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Fieldsets replace the old div groups, for screen readers ------------- */

.qgroup { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.qgroup + .qgroup { margin-top: 3rem; }

legend.dimhead {
  display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap;
  width: 100%; padding: 1.6rem 0 .4rem; margin: 0;
  border-top: 1px solid var(--border); float: left;
}
.qgroup:first-of-type legend.dimhead { border-top: 0; padding-top: 0; }
.qgroup > *:not(legend) { clear: both; }
.dimhead__t { font-size: 1.28rem; font-weight: 660; letter-spacing: -.02em; }
.dimblurb { color: var(--text-2); font-size: .94rem; margin: .3rem 0 1.5rem; }

/* --- Profile and free-text questions -------------------------------------- */

.q--profile .q__opts--wrap { flex-wrap: wrap; }
.q__opt--auto { flex: 0 1 auto; min-width: 0; }
.q__opt--auto span { padding-inline: 1rem; }

.field__input {
  width: 100%; padding: .72rem .9rem; border-radius: var(--r);
  border: 1px solid var(--border-firm); background: var(--surface); color: var(--text);
}
.field__input:focus { border-color: var(--accent); outline-offset: 1px; }

.q--verifiable { border-left: 3px solid color-mix(in srgb, var(--excellent) 55%, var(--border)); }
.q--url { background: var(--bg-alt); }
.q.is-missing { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-bg); }

.q__q .pill { vertical-align: middle; margin-left: .4rem; font-weight: 700; }

/* --- Consent ------------------------------------------------------------- */

.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--text-2); }
.consent input { margin-top: .28rem; width: 17px; height: 17px; flex-shrink: 0; accent-color: var(--accent); }
.consent span { line-height: 1.5; }

/* --- Verified check rows -------------------------------------------------- */

.vrow { display: flex; gap: .9rem; align-items: flex-start; padding: .85rem 0; }
.vrow + .vrow { border-top: 1px solid var(--border); }
.vrow > .pill { flex-shrink: 0; margin-top: .18rem; min-width: 4.2rem; text-align: center; }
.vrow__q { margin: 0 0 .25rem; font-weight: 570; font-size: .96rem; }
.vrow__found { margin: 0; font-size: .88rem; color: var(--text-2); }

/* --- The full report ------------------------------------------------------ */

.report h2 { border-top: 1px solid var(--border); padding-top: 1.6rem; }
.report table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .93rem; }
.report th {
  text-align: left; padding: .6rem .75rem; background: var(--bg-alt);
  border-bottom: 1px solid var(--border-firm); font-size: .74rem;
  text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 650;
}
.report td { padding: .6rem .75rem; border-bottom: 1px solid var(--border); }
.report ol { padding-left: 1.3rem; }
.report ol li { margin-bottom: 1rem; }

.rcheck { padding: .95rem 0; border-bottom: 1px solid var(--border); }
.rcheck__meta { margin: 0 0 .4rem; font-size: .76rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-3); display: flex; gap: .55rem; align-items: center; flex-wrap: wrap; }
.rcheck__q { margin: 0 0 .3rem; font-weight: 570; }
.rcheck__found { margin: 0 0 .3rem; font-size: .89rem; color: var(--text-2); }
.rcheck__fix { margin: 0; font-size: .92rem; color: var(--text-2); }

/* --- Working state -------------------------------------------------------- */

@keyframes plb-pulse {
  0%, 100% { opacity: .35; transform: scaleX(.4); transform-origin: left; }
  50%      { opacity: 1;   transform: scaleX(1);  transform-origin: left; }
}

#lrs-error:not(:empty) {
  display: block; margin-top: 1rem; padding: .9rem 1.1rem; border-radius: var(--r);
  background: var(--bad-bg); color: var(--bad); border: 1px solid var(--bad);
  font-weight: 550;
}

/* Score bars carry a number as well as a colour, so nothing depends on hue
   alone. This is the AA requirement and also just easier to read. */
.dimrow__val { font-variant-numeric: tabular-nums; }

.acard--pillar {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  background: linear-gradient(140deg, var(--accent-soft), transparent 70%);
}
.acard--pillar .acard__t { font-size: 1.3rem; }

/* --- Early verification panel --------------------------------------------- */
.urlrow { display: flex; gap: .6rem; flex-wrap: wrap; }
.urlrow .field__input { flex: 1 1 16rem; }
.verifyout { margin-top: 1rem; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1rem 1.1rem; background: var(--surface-2); }
.verifyout__h { font-weight: 650; margin: 0 0 .5rem; }
.verifyout .vrow { display: block; padding: .6rem 0; border-top: 1px solid var(--border); }
.verifyout .vrow:first-of-type { border-top: 0; }
.verifyout .vrow__q { margin: 0 0 .15rem; font-weight: 600; font-size: .92rem; }
.verifyout .vrow__found { margin: 0; font-size: .86rem; color: var(--text-2); }
.q.is-verified { border-color: var(--excellent); }
.q.is-verified .q__found { font-size: .84rem; color: var(--text-2); margin: .6rem 0 0; padding-top: .6rem; border-top: 1px dashed var(--border); }
