/* Holefind: the Friendly direction.
   Scene: a first-time app maker at the kitchen table on a bright Saturday morning, phone in hand,
   a little nervous after reading about leaked keys, wanting a calm friend to look it over.
   Sky blue ground, sunflower action, navy ink, warm paper notes. Dark mode is the night sky. */

@font-face {
  font-family: "Bricolage";
  src: url("/fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-latin-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: oklch(0.975 0.008 240);
  --paper: oklch(0.993 0.004 95);
  --sky: oklch(0.875 0.07 238);
  --sky-2: oklch(0.83 0.085 240);
  --cloud: oklch(0.93 0.04 238);
  --ink: oklch(0.25 0.06 264);
  --ink-2: oklch(0.4 0.05 262);
  --line: oklch(0.87 0.025 245);
  --sun: oklch(0.87 0.155 88);
  --sun-hover: oklch(0.83 0.16 82);
  --sun-ink: oklch(0.26 0.06 264);
  --sun-soft: oklch(0.95 0.06 92);
  --bubble: oklch(0.94 0.04 240);
  --bubble-ink: oklch(0.3 0.07 262);
  --crit: oklch(0.56 0.19 27);
  --crit-bg: oklch(0.94 0.04 27);
  --crit-ink: oklch(0.44 0.16 27);
  --high: oklch(0.68 0.15 62);
  --high-bg: oklch(0.95 0.05 80);
  --high-ink: oklch(0.43 0.11 55);
  --med: oklch(0.55 0.08 250);
  --med-bg: oklch(0.94 0.025 250);
  --med-ink: oklch(0.4 0.07 255);
  --low: oklch(0.56 0.08 175);
  --low-bg: oklch(0.95 0.03 175);
  --low-ink: oklch(0.4 0.07 178);
  --good: oklch(0.52 0.12 160);
  --night: oklch(0.27 0.065 264);
  --night-2: oklch(0.33 0.07 264);
  --night-ink: oklch(0.96 0.012 240);
  --night-ink-2: oklch(0.84 0.035 245);
  --shadow: 0 1px 2px oklch(0.3 0.06 260 / 0.08), 0 12px 32px -8px oklch(0.3 0.08 260 / 0.22), 0 40px 80px -30px oklch(0.3 0.08 260 / 0.25);
  --shadow-soft: 0 1px 2px oklch(0.3 0.06 260 / 0.06), 0 10px 24px -14px oklch(0.3 0.08 260 / 0.28);
  --display: "Bricolage", ui-rounded, "Avenir Next", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --gutter: clamp(18px, 5vw, 56px);
  --head-h: 76px;
  --round-big: clamp(28px, 6vw, 64px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: oklch(0.2 0.035 264);
    --paper: oklch(0.255 0.04 264);
    --sky: oklch(0.29 0.07 258);
    --sky-2: oklch(0.34 0.08 256);
    --cloud: oklch(0.33 0.06 258);
    --ink: oklch(0.96 0.012 240);
    --ink-2: oklch(0.83 0.03 245);
    --line: oklch(0.36 0.045 262);
    --sun: oklch(0.86 0.155 88);
    --sun-hover: oklch(0.9 0.14 92);
    --sun-ink: oklch(0.24 0.06 264);
    --sun-soft: oklch(0.34 0.05 85);
    --bubble: oklch(0.31 0.06 260);
    --bubble-ink: oklch(0.93 0.025 240);
    --crit: oklch(0.72 0.16 27);
    --crit-bg: oklch(0.33 0.08 27);
    --crit-ink: oklch(0.9 0.06 27);
    --high: oklch(0.8 0.14 75);
    --high-bg: oklch(0.34 0.06 70);
    --high-ink: oklch(0.92 0.07 85);
    --med: oklch(0.76 0.07 250);
    --med-bg: oklch(0.32 0.04 255);
    --med-ink: oklch(0.9 0.03 250);
    --low: oklch(0.78 0.08 175);
    --low-bg: oklch(0.31 0.04 178);
    --low-ink: oklch(0.9 0.04 175);
    --good: oklch(0.78 0.12 160);
    --night: oklch(0.155 0.03 264);
    --night-2: oklch(0.22 0.04 264);
    --shadow: 0 1px 2px oklch(0.05 0.02 260 / 0.4), 0 20px 50px -12px oklch(0.05 0.03 260 / 0.6);
    --shadow-soft: 0 1px 2px oklch(0.05 0.02 260 / 0.35), 0 12px 30px -16px oklch(0.05 0.03 260 / 0.6);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
/* Programmatic focus targets (headings) take focus without a ring; keyboard focus still shows one. */
[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
code, pre, .mono { font-family: var(--mono); }
code { font-size: 0.88em; background: var(--bubble); color: var(--bubble-ink); border-radius: 6px; padding: 0.08em 0.35em; overflow-wrap: anywhere; }
strong { font-weight: 700; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.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; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--sun); color: var(--sun-ink); padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.ic { width: 1em; height: 1em; flex: none; }
.sev-glyph { fill: var(--paper); }
.tick-stroke { stroke: var(--paper); }
.placeholder { font-style: italic; }
[hidden] { display: none !important; }

/* ---------- Header and footer ---------- */
.site-head { position: relative; z-index: 3; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--head-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; font: 700 1.2rem/1 var(--display); letter-spacing: -0.02em; text-decoration: none; }
.brand .wordmark { height: 34px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 22px; flex: none; }
.site-nav a { font-weight: 600; font-size: 0.95rem; padding: 10px 2px; }
.site-nav .nav-wide { display: none; }
@media (min-width: 720px) { .site-nav .nav-wide { display: inline; } }

.site-foot { margin-top: clamp(72px, 10vw, 120px); }
.site-foot .wrap {
  padding-block: 28px 40px;
  display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center;
  font-size: 0.95rem; color: var(--ink-2);
}
.site-foot .wrap::before { content: ""; flex: 1 1 100%; border-top: 1.5px solid var(--line); margin-bottom: 14px; }
.site-foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-foot a { color: var(--ink); font-weight: 600; padding-block: 6px; }

/* ---------- The sky: every page opens under it ---------- */
.sky {
  position: relative;
  margin-top: calc(-1 * var(--head-h));
  padding-top: var(--head-h);
  background:
    radial-gradient(60rem 30rem at 85% -10%, oklch(0.93 0.07 92 / 0.55), transparent 60%),
    var(--sky);
  border-radius: 0 0 var(--round-big) var(--round-big);
  padding-bottom: clamp(40px, 7vw, 96px);
  isolation: isolate;
  overflow: clip;
}
.sky::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: clamp(260px, 42vw, 620px); aspect-ratio: 1; border-radius: 50%;
  right: clamp(-160px, -8vw, -40px); top: clamp(-120px, -6vw, -40px);
  background: radial-gradient(circle closest-side, oklch(0.95 0.11 92), oklch(0.93 0.11 90 / 0.5) 45%, oklch(0.9 0.1 88 / 0) 100%);
}
.sky--page { padding-bottom: clamp(36px, 6vw, 72px); }
.sky--page::before { width: clamp(220px, 30vw, 440px); }
@media (prefers-color-scheme: dark) {
  .sky { background: radial-gradient(60rem 30rem at 85% -10%, oklch(0.42 0.09 250 / 0.6), transparent 60%), var(--sky); }
  .sky::before { background: radial-gradient(circle closest-side, oklch(0.48 0.08 250 / 0.75), oklch(0.4 0.08 255 / 0) 100%); }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.9rem;
  background: var(--paper); color: var(--ink);
  padding: 7px 14px; border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
h1 {
  font-size: clamp(2.5rem, 1.6rem + 4.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.022em;
  font-weight: 760;
  font-variation-settings: "opsz" 96;
}
.page-title { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem); line-height: 1.04; max-width: 18ch; }
.lede { margin-top: 20px; font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); line-height: 1.5; color: var(--ink-2); max-width: 40ch; overflow-wrap: anywhere; }
.lede a { color: var(--ink); font-weight: 600; }
.page-meta { margin-top: 14px; font-weight: 600; color: var(--ink-2); }

/* ---------- Buttons and the check form ---------- */
.btn, .check button {
  font: 700 1.08rem/1.1 var(--display);
  letter-spacing: -0.01em;
  color: var(--sun-ink);
  background: var(--sun);
  border: 0;
  border-radius: 16px;
  padding: 17px 26px;
  min-height: 54px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn::after, .check button::after {
  content: ""; width: 0.9em; height: 0.9em; flex: none;
  background: currentColor;
  clip-path: polygon(0 42%, 62% 42%, 38% 16%, 52% 4%, 100% 50%, 52% 96%, 38% 84%, 62% 58%, 0 58%);
  transition: transform 0.2s var(--ease);
}
.btn:hover, .check button:hover { background: var(--sun-hover); }
.btn:hover::after, .check button:hover::after { transform: translateX(3px); }
.btn:active, .check button:active { transform: scale(0.98); }
.btn:disabled, .check button:disabled { opacity: 0.75; cursor: progress; }
.btn:disabled::after, .check button:disabled::after { transform: none; }
.btn--quiet { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--quiet::after { display: none; }
.btn--quiet:hover { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn[aria-disabled="true"] { cursor: default; color: var(--ink-2); }
.btn[aria-disabled="true"]:hover { box-shadow: inset 0 0 0 1.5px var(--line); }
.btn[aria-disabled="true"]:active { transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.check {
  margin-top: 28px;
  display: grid; gap: 8px;
  background: var(--paper);
  padding: 8px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  max-width: 560px;
}
.check input {
  min-width: 0; width: 100%;
  font: 500 1.05rem/1.2 var(--body);
  color: var(--ink);
  background: transparent;
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 16px 14px;
}
.check input::placeholder { color: var(--ink-2); opacity: 0.85; }
.check input:focus-visible { outline: 3px solid var(--ink); outline-offset: 0; border-radius: 16px; }
.check input[aria-invalid="true"] { border-color: var(--crit); }
@media (min-width: 560px) {
  .check { grid-template-columns: 1fr auto; align-items: center; border-radius: 22px; }
}
/* Two fields (repo + live site) share one card; the button sits beside them on wide screens. */
.check--two { max-width: 620px; }
.check-fields { display: grid; min-width: 0; }
.check-field { display: grid; min-width: 0; }
.check-field + .check-field { border-top: 1.5px solid var(--line); }
.check-label { padding: 10px 16px 0; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em; color: var(--ink); }
.check-label small { font-size: inherit; font-weight: 500; color: var(--ink-2); margin-left: 4px; }
.check--two input { padding-top: 6px; padding-bottom: 12px; }

/* "This is my app" consent for the database test: a full-width row inside the check card. On wide
   screens the fields and button keep their row and the consent sits on its own row beneath them. */
.check-consent {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 14px 12px;
  font-size: 0.92rem; line-height: 1.35; color: var(--ink-2);
  cursor: pointer;
}
.check-consent input[type="checkbox"] {
  flex: none; width: 20px; height: 20px; margin: 1px 0 0;
  accent-color: var(--sun-hover);
  cursor: pointer;
}
.check-consent input[type="checkbox"]:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.site-check .check-consent { padding: 10px 2px 2px; }
@media (min-width: 560px) {
  .check > button { grid-row: 1; grid-column: 2; }
  .check .check-consent { grid-row: 2; grid-column: 1 / -1; }
}

/* The database-test result line under a site check. */
.site-database { margin-top: 12px; font-weight: 600; color: var(--ink-2); }
.site-database:empty { display: none; }
.site-database--ok { color: var(--good); }
@media (min-width: 560px) {
  .check--two { grid-template-columns: 1fr auto; align-items: stretch; }
  .check--two button { align-self: center; }
}
.form-msg { margin-top: 10px; font-weight: 600; color: var(--crit-ink); max-width: 560px; }
.form-msg:empty { display: none; }
.form-msg a { font-weight: 700; }
.sky .form-msg { background: var(--paper); padding: 10px 14px; border-radius: 14px; }
.check-note { margin-top: 14px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 0.95rem; font-weight: 500; color: var(--ink-2); }
.check-note .ic { color: var(--good); width: 1.15em; height: 1.15em; }
.check-note .tick-stroke { stroke: var(--sky); }
.check-note a { color: var(--ink); font-weight: 700; }
.recent { margin-top: 10px; font-size: 0.95rem; font-weight: 600; color: var(--ink-2); }

/* ---------- Severity: shape + word + colour ---------- */
.sev {
  display: inline-flex; align-items: center; gap: 6px; justify-self: start;
  font: 700 0.82rem/1 var(--body);
  padding: 6px 11px 6px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.sev .ic { width: 1.1em; height: 1.1em; }
.sev-critical { background: var(--crit-bg); color: var(--crit-ink); }
.sev-critical .ic { color: var(--crit); }
.sev-high { background: var(--high-bg); color: var(--high-ink); }
.sev-high .ic { color: var(--high); }
.sev-medium { background: var(--med-bg); color: var(--med-ink); }
.sev-medium .ic { color: var(--med); }
.sev-low { background: var(--low-bg); color: var(--low-ink); }
.sev-low .ic { color: var(--low); }

/* ---------- The finding: a friendly note ---------- */
.finding {
  background: var(--paper);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  padding: clamp(20px, 4vw, 34px);
  display: grid; gap: 14px;
  min-width: 0;
}
.finding + .finding { margin-top: 18px; }
.finding * { min-width: 0; }
.finding-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 0.88rem; }
.finding-cat { color: var(--ink-2); font-weight: 600; text-transform: capitalize; }
.finding-id { margin-left: auto; color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.finding-title { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem); line-height: 1.15; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.finding-files { display: flex; flex-wrap: wrap; gap: 6px; }
.finding-files span {
  font: 500 0.8rem/1.3 var(--mono); color: var(--ink-2);
  background: var(--bg); border-radius: 8px; padding: 4px 8px;
  overflow-wrap: anywhere;
}
.finding-body { margin: 4px 0 0; display: grid; gap: 16px; }
.finding-body dt { font: 700 1.02rem/1.3 var(--display); letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.finding-body dd { margin: 4px 0 0; color: var(--ink-2); max-width: 68ch; overflow-wrap: anywhere; }

/* The prompt: a pale-blue chat bubble */
.prompt {
  background: var(--bubble);
  color: var(--bubble-ink);
  border-radius: 22px 22px 22px 6px;
  padding: 14px 16px 16px;
  margin-top: 4px;
}
.prompt-bar { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 8px; }
.prompt-label { font-size: 0.9rem; line-height: 1.4; flex: 1 1 14rem; }
.prompt-label strong { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.prompt pre {
  margin: 0; font: 400 0.95rem/1.55 var(--body);
  white-space: pre-wrap; overflow-wrap: anywhere; overflow-x: auto;
  max-height: 20rem; overflow-y: auto; border-radius: 10px;
}
.prompt.is-clipped:not(.is-open) pre {
  max-height: calc(5 * 1.55 * 0.95rem); overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent);
  mask-image: linear-gradient(to bottom, #000 50%, transparent);
}
.prompt.is-open pre { max-height: none; }
.prompt-more {
  margin-top: 8px; padding: 8px 2px; background: none; border: 0; cursor: pointer;
  font: 700 0.9rem/1.2 var(--body); color: var(--bubble-ink);
  text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1.5px;
}
.prompt-more:hover { text-decoration-thickness: 2.5px; }
.copy {
  flex: none; white-space: nowrap;
  font: 700 0.88rem/1 var(--body);
  color: var(--ink); background: var(--paper);
  border: 0; border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--line);
  padding: 10px 16px; min-height: 40px; cursor: pointer;
  transition: box-shadow 0.2s var(--ease);
}
.copy:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.copy:active { transform: scale(0.98); }

/* Wide notes (the landing anatomy) lay their parts out two by two. */
@media (min-width: 900px) {
  .anatomy-sheet .finding { grid-template-columns: 1fr 1fr; column-gap: clamp(28px, 4vw, 56px); row-gap: 14px; }
  .anatomy-sheet .finding-head, .anatomy-sheet .finding-title, .anatomy-sheet .finding-files { grid-column: 1 / -1; }
  .anatomy-sheet .finding-body { display: contents; }
  .anatomy-sheet .finding-body > div, .anatomy-sheet .prompt { margin-top: 18px; }
}
/* Numbered parts on the anatomy note */
.anatomy-sheet .finding { counter-reset: part; padding: clamp(22px, 4.5vw, 52px); box-shadow: var(--shadow); border-radius: 32px; }
.anatomy-sheet .finding-title { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); max-width: 36ch; }
.anatomy-sheet .finding-files { padding-bottom: clamp(16px, 2.5vw, 26px); border-bottom: 1.5px solid var(--line); }
.anatomy-sheet .finding-body dt::before, .anatomy-sheet .prompt-label strong::before {
  counter-increment: part; content: counter(part);
  display: inline-grid; place-items: center; flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--sky); color: var(--ink);
  font: 800 0.95rem/1 var(--display); letter-spacing: 0; text-transform: none;
}
.anatomy-sheet .prompt-label strong { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.anatomy-sheet .prompt-label strong::before { background: var(--sun); color: var(--sun-ink); }

/* ---------- Landing: hero ---------- */
.hero { display: grid; gap: clamp(36px, 6vw, 72px); padding-top: clamp(20px, 5vw, 64px); }
.hero h1 { max-width: 13ch; }
.hero .lede { max-width: 34ch; }
.note-wrap { position: relative; align-self: start; }
.note-wrap::before {
  content: ""; position: absolute; inset: 18px -8px -14px 14px; z-index: 0;
  background: var(--cloud); border-radius: 28px;
  transform: rotate(-3deg);
  box-shadow: 0 10px 30px -12px oklch(0.3 0.08 260 / 0.25);
}
.note {
  position: relative; z-index: 1;
  background: var(--paper);
  border-radius: 28px;
  padding: clamp(20px, 4vw, 30px);
  box-shadow: var(--shadow);
  display: grid; gap: 14px;
}
.note .finding { background: none; box-shadow: none; padding: 0; border-radius: 0; }
.note .finding-id, .note .finding-cat { display: none; }
.note-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 0.85rem; font-weight: 600; color: var(--ink-2); flex-wrap: wrap; }
.note-cap a { color: var(--ink); }
.note-foot { font-size: 0.92rem; color: var(--ink-2); display: flex; gap: 10px; align-items: flex-start; }
.note-foot .ic { width: 1.2em; height: 1.2em; margin-top: 0.15em; color: var(--good); }
@media (min-width: 960px) {
  .hero { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
  .hero h1 { max-width: 11ch; }
  .note { transform: rotate(0.8deg); }
  .note-wrap { margin-top: 24px; }
}

/* ---------- Landing: sections ---------- */
.section { padding-block: clamp(72px, 11vw, 140px) 0; }
.section-head { max-width: 40rem; margin-bottom: clamp(28px, 5vw, 48px); }
.kicker { font-weight: 700; font-size: 0.95rem; color: var(--ink-2); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 22px; height: 10px; border-radius: 999px; background: var(--sky-2); }
h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.3rem); line-height: 1.06; letter-spacing: -0.022em; font-weight: 760; font-variation-settings: "opsz" 72; }
.intro { margin-top: 16px; font-size: 1.1rem; color: var(--ink-2); max-width: 36rem; }

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
.step { position: relative; display: grid; grid-template-columns: 96px 1fr; grid-template-rows: auto auto 1fr; column-gap: 20px; align-items: start; }
.step .art { grid-row: 1 / span 3; width: 96px; height: auto; padding: 10px; background: var(--sky); border-radius: 22px; }
.step:nth-child(2) .art { background: var(--cloud); }
.step:nth-child(3) .art { background: var(--sun-soft); }
.step-n { justify-self: start; font: 700 0.85rem/1 var(--body); color: var(--sun-ink); background: var(--sun); padding: 6px 11px; border-radius: 999px; margin: 4px 0 10px; }
.step h3 { font-size: 1.35rem; line-height: 1.15; }
.step p:last-child { color: var(--ink-2); margin-top: 6px; max-width: 30ch; }
.a-paper { fill: var(--paper); stroke: var(--line); stroke-width: 2; }
.a-soft { fill: var(--line); }
.a-field { fill: var(--bubble); }
.a-ink { fill: var(--ink); }
.a-sun { fill: var(--sun); }
.a-cursor { fill: var(--paper); stroke: var(--ink); }
.a-lens { fill: oklch(0.9 0.05 238 / 0.55); }
.a-ring { fill: none; stroke: var(--ink); }
.a-handle { stroke: var(--ink); }
.a-check { fill: none; stroke: var(--good); }
.a-crit { fill: var(--crit); }
.a-high { fill: var(--high); }
@media (prefers-color-scheme: dark) { .a-lens { fill: oklch(0.45 0.08 250 / 0.45); } }
@media (min-width: 820px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
  .step { grid-template-columns: 1fr; grid-template-rows: none; }
  .step .art { grid-row: auto; width: 100%; max-width: 220px; margin-bottom: 18px; padding: 18px; border-radius: 28px; }
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 50px; left: calc(min(100%, 220px) + 12px); right: -12px;
    border-top: 2.5px dashed var(--sky-2);
  }
}

/* Free check or full report */
.price-grid { display: grid; gap: clamp(28px, 4vw, 48px); align-items: start; }
.ranked { background: var(--paper); border-radius: 28px; box-shadow: var(--shadow); padding: clamp(18px, 3.5vw, 32px); }
.group-label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.92rem; margin-bottom: 12px; }
.group-label .ic { width: 1.15em; height: 1.15em; color: var(--good); }
.group-locked { margin-top: 22px; color: var(--ink-2); }
.group-locked .ic { color: var(--ink-2); }
.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rank li {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center;
  padding: 12px 14px; border-radius: 16px;
  background: var(--bg);
}
.rank-title { font-weight: 600; line-height: 1.35; font-size: 0.98rem; overflow-wrap: anywhere; }
.rank-locked li { background: transparent; border: 1.5px dashed var(--line); padding: 10px 14px; }
.rank-locked .rank-title { color: var(--ink-2); font-weight: 500; font-size: 0.93rem; }
@media (max-width: 519px) {
  .rank li { grid-template-columns: 1fr; }
}
.plans { display: grid; gap: 14px; }
.plan { border-radius: 24px; padding: 22px 24px; background: var(--paper); border: 1.5px solid var(--line); }
.plan p:last-child { color: var(--ink-2); margin-top: 6px; }
.plan-name { font-weight: 700; }
.plan-price { font: 800 clamp(2.6rem, 2rem + 2vw, 3.4rem)/1 var(--display); letter-spacing: -0.04em; margin-top: 6px; font-variation-settings: "opsz" 96; }
.plan-price span { font: 600 1rem/1 var(--body); letter-spacing: 0; color: var(--ink-2); }
.plan-full { background: var(--sky); border-color: transparent; }
.plan-full p:last-child, .plan-full .plan-price span { color: var(--ink); }
.plans .btn { margin-top: 6px; }
@media (min-width: 960px) {
  .price-grid { grid-template-columns: 1.45fr 1fr; }
  .plans { position: sticky; top: 32px; }
}

/* How we handle your code: the night section */
.night {
  margin-top: clamp(72px, 11vw, 140px);
  background: var(--night);
  color: var(--night-ink);
  border-radius: var(--round-big);
  margin-inline: clamp(0px, 1.5vw, 20px);
  padding-bottom: clamp(56px, 9vw, 120px);
  line-height: 1.65;
}
@media (prefers-color-scheme: dark) { .night { box-shadow: inset 0 0 0 1.5px var(--line); } }
.night .section { padding-top: clamp(56px, 9vw, 120px); }
.night .kicker { color: var(--night-ink-2); }
.night .kicker::before { background: var(--sun); }
.night .intro { color: var(--night-ink-2); }
.journey { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; position: relative; }
.journey li { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; position: relative; }
.journey li:not(:last-child)::before {
  content: ""; position: absolute; left: 27px; top: 60px; bottom: -26px;
  border-left: 2px dashed oklch(0.6 0.06 255);
}
.j-ic { grid-row: 1 / span 2; width: 56px; height: 56px; padding: 6px; border-radius: 18px; background: var(--night-2); }
.journey h3 { font-size: 1.3rem; line-height: 1.2; align-self: end; }
.journey p { color: var(--night-ink-2); margin-top: 4px; max-width: 34ch; }
.j-back { fill: oklch(0.6 0.06 255); }
.j-front { fill: var(--night-ink); }
.j-eye { fill: none; stroke: var(--night); }
.j-dot { fill: var(--night); }
.j-box { fill: none; stroke: var(--sun); }
.j-gone { fill: none; stroke: var(--night-ink-2); }
.j-spark { stroke: var(--sun); }
@media (min-width: 820px) {
  .journey { grid-template-columns: repeat(3, 1fr); gap: 36px; }
  .journey li { grid-template-columns: 1fr; }
  .j-ic { grid-row: auto; width: 72px; height: 72px; margin-bottom: 20px; border-radius: 22px; padding: 10px; }
  .journey li:not(:last-child)::before { left: 90px; right: 0; top: 36px; bottom: auto; border-left: 0; border-top: 2px dashed oklch(0.6 0.06 255); }
}
.also { list-style: none; margin: clamp(40px, 6vw, 64px) 0 0; padding: 0; display: grid; gap: 14px; }
.also li { display: flex; gap: 12px; align-items: flex-start; background: var(--night-2); border-radius: 20px; padding: 16px 18px; color: var(--night-ink-2); }
.also strong { color: var(--night-ink); }
.also a { color: var(--night-ink); font-weight: 700; }
.also .ic { width: 1.25em; height: 1.25em; margin-top: 0.15em; color: var(--sun); }
.also .tick-stroke { stroke: var(--night-2); }
@media (min-width: 820px) { .also { grid-template-columns: 1fr 1fr; } }
.night :focus-visible { outline-color: var(--night-ink); }

/* FAQ */
.qs { display: grid; gap: 10px; max-width: 52rem; }
.qs details { background: var(--paper); border-radius: 20px; border: 1.5px solid var(--line); }
.qs summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 22px;
  font: 700 1.15rem/1.3 var(--display); letter-spacing: -0.01em;
  border-radius: 20px;
}
.qs summary::-webkit-details-marker { display: none; }
.qs summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 2.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2.5px 12px no-repeat,
    var(--sky);
  transition: transform 0.25s var(--ease);
}
.qs details[open] summary::after { transform: rotate(45deg); }
.qs details p { padding: 0 22px 22px; color: var(--ink-2); max-width: 62ch; }
.qs details a { color: var(--ink); font-weight: 600; }

/* Closing panel */
.closer {
  margin-top: clamp(72px, 11vw, 140px);
  text-align: center;
  background: var(--sky);
  border-radius: var(--round-big);
  padding-block: clamp(56px, 9vw, 110px);
  max-width: calc(1200px - 2 * var(--gutter));
  width: calc(100% - 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: 20px;
  display: grid; justify-items: center; gap: 14px;
}
.closer h2 { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4.2rem); }
.closer p { color: var(--ink); font-size: 1.1rem; max-width: 34ch; }
.closer .btn { margin-top: 10px; }

/* ---------- Report page ---------- */
.state { padding-top: clamp(12px, 3vw, 36px); }
.state-grid { display: grid; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (min-width: 960px) { .state-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); } }
.state h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem); line-height: 1.04; }
.repo-chip {
  display: inline-block; margin-top: 16px; max-width: 100%;
  font: 600 0.95rem/1.35 var(--mono); color: var(--ink);
  background: var(--paper); border-radius: 12px; padding: 8px 12px;
  overflow-wrap: anywhere;
}
.repo-chip:empty { display: none; }
.hint { margin-top: 14px; color: var(--ink-2); max-width: 44ch; }

/* Report cards: one surface language with Your reports and Account settings (1px line, 20px corners, soft shadow). */
.progress-card, .failed-card, .scorecard, .report-col .finding, .coverage, .leads, .site-check, .save-box, .findings-index, .empty-state-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-soft);
}

/* Progress: a friendly step list on a paper note */
.progress-card { padding: clamp(20px, 4vw, 28px); }
.progress-card .hint { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.95rem; max-width: none; font-variant-numeric: tabular-nums; }
.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.stages li {
  position: relative;
  display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start;
  padding: 10px 0; color: var(--ink-2); font-weight: 600;
}
.stages li::before {
  content: ""; width: 26px; height: 26px; border-radius: 50%;
  border: 2.5px solid var(--line); background: var(--paper);
}
.stages li:not(:last-child)::after {
  content: ""; position: absolute; left: 12px; top: 40px; bottom: -14px;
  border-left: 2px dashed var(--line);
}
.stages li > span { padding-top: 2px; }
.stages .detail { display: block; font-weight: 500; font-size: 0.92rem; color: var(--ink-2); margin-top: 2px; font-variant-numeric: tabular-nums; }
.stages .detail:empty { display: none; }
.stages li[data-state="done"] { color: var(--ink); }
.stages li[data-state="done"]::before { border-color: var(--good); background: var(--good); }
.stages li[data-state="done"] > span::before {
  content: ""; position: absolute; left: 8px; top: 18px; width: 11px; height: 6px;
  border-left: 2.5px solid var(--paper); border-bottom: 2.5px solid var(--paper);
  transform: rotate(-45deg);
}
.stages li[data-state="active"] { color: var(--ink); }
.stages li[data-state="active"]::before { border-color: var(--sky-2); background: radial-gradient(circle, var(--ink) 0 5px, var(--sky) 5.5px); }
.stages li[data-state="active"] > span { font: 700 1.12rem/1.3 var(--display); letter-spacing: -0.01em; }
.stages li[data-state="active"] .detail { font-family: var(--body); letter-spacing: 0; }
@media (prefers-reduced-motion: no-preference) {
  .stages li[data-state="active"]::before { animation: breathe 1.6s var(--ease) infinite alternate; }
  @keyframes breathe { to { box-shadow: 0 0 0 7px oklch(0.83 0.085 240 / 0.35); } }
}
/* A running check: the eyebrow's dot is the sun, gently pulsing (state, not decoration). */
.eyebrow--live::before { background: var(--sun); box-shadow: 0 0 0 1.5px var(--sun-ink) inset; }
@media (prefers-reduced-motion: no-preference) { .eyebrow--live::before { animation: pulse-dot 1.4s ease-in-out infinite; } }

/* Failed */
.failed-card { padding: clamp(20px, 4vw, 28px); display: grid; gap: 10px; }
.failed-card h2 { font: 700 1.15rem/1.3 var(--body); letter-spacing: -0.01em; }
.failed-card ul { margin: 0; padding: 0; list-style: none; color: var(--ink-2); display: grid; gap: 10px; }
.failed-card li { position: relative; padding-left: 20px; }
.failed-card li::before { content: ""; position: absolute; left: 3px; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--sky-2); }
.failed-card a { color: var(--ink); font-weight: 650; }

/* Results head. Phones read it top to bottom: name, score, summary, save. Wide screens put the score beside it. */
.report-top {
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; padding-top: clamp(8px, 2vw, 24px);
  grid-template-areas: "notices" "id" "moved" "score" "sum" "save";
}
.report-top > .notices { grid-area: notices; margin-bottom: 22px; }
.report-id { grid-area: id; min-width: 0; }
.report-moved { grid-area: moved; margin-top: 18px; }
.report-top > .scorecard { grid-area: score; margin-top: 22px; }
.report-sum { grid-area: sum; margin-top: 22px; min-width: 0; }
.report-top > .save-box { grid-area: save; }
@media (min-width: 960px) {
  .report-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 23rem); column-gap: clamp(36px, 5vw, 64px);
    grid-template-areas: "notices notices" "id score" "moved score" "sum score" "save score";
    grid-template-rows: auto auto auto auto 1fr;
  }
  .report-top > .scorecard { margin-top: 0; }
}
.notices { display: grid; gap: 10px; }
.notices:not(:has(> :not([hidden]))) { display: none; }
.notice {
  position: relative;
  background: var(--paper); color: var(--ink);
  border-radius: 16px; padding: 12px 16px 12px 36px;
  font-weight: 500; max-width: 60rem;
}
.notice::before { content: ""; position: absolute; left: 16px; top: calc(12px + 0.5em); width: 10px; height: 10px; border-radius: 50%; background: var(--good); }
.notice a { font-weight: 700; }
.notice--warn { background: var(--sun-soft); }
.notice--warn::before { background: var(--high); }
.report-top .notice { border: 1px solid var(--line); }
.report-top .notice--warn, .report-top .notice--progress { border-color: transparent; }
.notice--info::before { background: var(--med); }
.notice strong { font-weight: 700; }
.notice > p + p { margin-top: 4px; }
.notice-sub { font-size: 0.94rem; color: var(--ink-2); }
.report-moved.is-down::before { background: var(--high); }

.report-top .eyebrow { margin-bottom: 14px; }
.report-top[data-kind="full"] .eyebrow::before { background: var(--sun); box-shadow: 0 0 0 1.5px var(--sun-ink) inset; }
.report-top[data-kind="free"] .eyebrow::before { background: var(--med); }
.report-repo { font-size: clamp(1.9rem, 1.35rem + 2.4vw, 3.1rem); line-height: 1.06; letter-spacing: -0.025em; overflow-wrap: anywhere; text-wrap: balance; }
.repo-owner { color: var(--ink-2); font-weight: 600; }
.report-meta { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.report-meta li {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.86rem; font-weight: 650; color: var(--ink);
  background: oklch(from var(--paper) l c h / 0.72); border-radius: 999px; padding: 5px 11px;
}
.report-meta .ic { width: 0.95em; height: 0.95em; color: var(--ink-2); }
.report-top .lede { margin-top: 0; max-width: 62ch; font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem); line-height: 1.6; }
.summary-more { margin-top: 8px; font-size: 0.95rem; padding: 6px 0; }
@media (max-width: 719px) {
  .summary-wrap.is-clamped .lede { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden; }
}
.report-link { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.report-link-status { font-size: 0.92rem; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.report-link-status:empty { display: none; }
.report-link-status .mono { font-weight: 500; background: var(--paper); padding: 2px 6px; border-radius: 6px; }
.report-link-hint { flex: 1 1 100%; font-size: 0.92rem; color: var(--ink-2); }
.stack { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.stack li { font-size: 0.84rem; font-weight: 600; background: var(--cloud); color: var(--ink); border-radius: 999px; padding: 4px 10px; }
.stack:empty { display: none; }

/* Score: a warm verdict, not a dashboard number */
.scorecard { padding: clamp(20px, 4vw, 26px); display: grid; gap: 12px; box-shadow: var(--shadow); }
@media (min-width: 960px) { .report-top > .scorecard { position: sticky; top: 20px; } }
.score-label { font-weight: 700; font-size: 0.85rem; color: var(--ink-2); letter-spacing: 0.01em; }
.verdict { font: 700 clamp(1.3rem, 1.1rem + 0.6vw, 1.5rem)/1.22 var(--display); letter-spacing: -0.02em; text-wrap: balance; }
.score-row { display: grid; gap: 10px; margin-top: 2px; }
.meter { position: relative; height: 10px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.meter span { position: absolute; inset: 0 auto 0 0; width: 0; min-width: 10px; border-radius: 999px; background: var(--sun); }
.score { font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; line-height: 1; }
.score span { font: 750 2.1rem/1 var(--display); color: var(--ink); letter-spacing: -0.03em; }
.score small { font-size: 0.92rem; }
/* A partial full-coverage review: no number, the reasons in plain sentences (report.js, src/coverage.ts) */
.score-partial { font: 800 clamp(1.5rem, 1.25rem + 0.8vw, 1.85rem)/1.1 var(--display); letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.score-partial::before { content: ""; flex: none; width: 0.7em; height: 0.7em; border-radius: 50%; border: 2.5px solid var(--med); background: linear-gradient(90deg, var(--med) 50%, transparent 50%); }
.partial-reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.partial-reasons li { position: relative; padding-left: 18px; max-width: 46ch; }
.partial-reasons li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 8px; height: 2px; border-radius: 2px; background: var(--ink-2); }
.score-note { color: var(--ink-2); font-size: 0.9rem; line-height: 1.5; max-width: 46ch; }
.counts { list-style: none; margin: 4px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.counts li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.95rem; color: var(--ink-2); }
.counts .ic { width: 1.15em; height: 1.15em; }
.counts b { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.counts .c-critical .ic { color: var(--crit); }
.counts .c-high .ic { color: var(--high); }
.counts .c-medium .ic { color: var(--med); }
.counts .c-low .ic { color: var(--low); }
.counts li[data-zero] .ic { opacity: 0.45; }
.count-link { display: flex; align-items: center; gap: 8px; min-height: 32px; color: inherit; text-decoration: none; border-radius: 8px; }
.count-link span { text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.count-link:hover span { text-decoration-color: currentColor; }
.count-link:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.report-col .finding, #locked-list li[id^="first-"] { scroll-margin-top: 16px; }
.report-col .finding:focus, #locked-list li[id^="first-"]:focus { outline: 3px solid var(--ink); outline-offset: 4px; }
.report-col .finding:focus:not(:focus-visible), #locked-list li[id^="first-"]:focus:not(:focus-visible) { outline: none; }

/* Results body */
.report-body { max-width: 1200px; }
.report-col { max-width: 56rem; }
.findings-head { margin: clamp(40px, 6vw, 64px) 0 18px; }
.findings-head h2, .locked-head h2, .site-check-title { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); line-height: 1.1; }
.findings-sub { margin-top: 8px; color: var(--ink-2); max-width: 60ch; }
.findings-sub:empty { display: none; }
.report-col .finding { padding: clamp(20px, 4vw, 30px); }
.report-col .finding + .finding { margin-top: 14px; }
.report-col .finding-title { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); line-height: 1.2; }
.empty-note { background: var(--paper); border-radius: 20px; padding: 22px; font-weight: 500; }

/* Five or more findings: a contents list to scan and jump through */
.findings-index { padding: 6px 8px; margin-bottom: 18px; }
.findings-index-title {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px; cursor: pointer; list-style: none;
  font: 700 0.95rem/1.3 var(--body); color: var(--ink); border-radius: 12px;
}
.findings-index-title::-webkit-details-marker { display: none; }
.findings-index-title::before { content: ""; width: 0.45em; height: 0.45em; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform 0.2s var(--ease); flex: none; }
.findings-index details[open] > .findings-index-title::before { transform: rotate(45deg); }
.findings-index-title:hover { background: var(--bg); }
.findings-index details[open] > ol { border-top: 1px solid var(--line); }
.findings-index ol { list-style: none; margin: 0; padding: 0; counter-reset: fi; }
.findings-index li + li { border-top: 1px solid var(--line); }
.findings-index a {
  display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); align-items: center; gap: 4px 12px;
  padding: 10px; border-radius: 12px; color: var(--ink); text-decoration: none; min-height: 44px;
}
.findings-index a:hover { background: var(--bg); }
.findings-index a:hover .fi-title { text-decoration: underline; text-underline-offset: 3px; }
.findings-index a:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.fi-title { font-weight: 600; font-size: 0.97rem; line-height: 1.35; overflow-wrap: anywhere; }
@media (max-width: 519px) { .findings-index a { grid-template-columns: minmax(0, 1fr); } }

/* No findings: calm, honest, with a clear tick */
.empty-state-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: clamp(20px, 4vw, 28px); }
.empty-state-card .empty-ic { width: 26px; height: 26px; color: var(--good); margin-top: 1px; }
.empty-state-card .tick-stroke { stroke: var(--paper); }
.empty-title { font: 700 1.2rem/1.3 var(--display); letter-spacing: -0.01em; margin-bottom: 6px; }
.empty-state-card p + p:not(.empty-title) { margin-top: 6px; }
.empty-state-card p:not(.empty-title) { color: var(--ink-2); max-width: 60ch; }

.locked { margin-top: clamp(48px, 7vw, 72px); }
.locked-head { margin-bottom: 18px; }
.locked-head p { margin-top: 8px; color: var(--ink-2); max-width: 56ch; }
#locked-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
#locked-list > li {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 8px 12px; align-items: center;
  padding: 12px 16px; border-radius: 14px; border: 1.5px dashed var(--line);
}
.locked li .lock { width: 1.05em; height: 1.05em; color: var(--ink-2); }
.locked li .t { color: var(--ink-2); font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 519px) {
  #locked-list > li { grid-template-columns: auto minmax(0, 1fr); }
  #locked-list > li .t { grid-column: 1 / -1; }
}
.unlock {
  margin-top: 18px; background: var(--sky); border-radius: 24px;
  padding: clamp(20px, 4vw, 30px);
  display: grid; gap: 22px;
}
.unlock-title { font: 700 1.3rem/1.2 var(--display); letter-spacing: -0.015em; }
.unlock-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.unlock-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; color: var(--ink); }
.unlock-list .ic { width: 1.2em; height: 1.2em; margin-top: 0.15em; color: var(--good); }
.unlock-list .tick-stroke { stroke: var(--sky); }
.unlock-buy { display: grid; gap: 14px; justify-items: start; align-content: start; }
.unlock .plan-price { margin-top: 0; }
.unlock .fine { font-size: 0.88rem; line-height: 1.5; color: var(--ink); max-width: 60ch; }
@media (min-width: 760px) {
  .unlock { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: clamp(24px, 4vw, 44px); }
  .unlock-buy { padding-left: clamp(24px, 4vw, 44px); border-left: 1px solid oklch(from var(--ink) l c h / 0.14); }
}
.aside-connect {
  margin-top: clamp(40px, 6vw, 56px);
  display: flex; gap: 12px; align-items: flex-start;
  color: var(--ink-2); max-width: 56rem;
}
.aside-connect .ic { width: 1.3em; height: 1.3em; margin-top: 0.1em; color: var(--ink-2); }
.aside-connect a { color: var(--ink); font-weight: 700; }

/* ---------- Connect, paid, 404 ---------- */
.repo-list { list-style: none; margin: 20px 0; padding: 0; display: grid; gap: 8px; max-width: 40rem; }
.repo-list label {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  background: var(--paper); border-radius: 16px; padding: 14px 16px;
  font: 500 0.95rem/1.35 var(--mono); overflow-wrap: anywhere;
}
.repo-list label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); }
.repo-list input { accent-color: var(--ink); width: 1.15rem; height: 1.15rem; flex: none; }
.repo-list .priv { font: 700 0.8rem/1 var(--body); background: var(--cloud); border-radius: 999px; padding: 5px 10px; margin-left: auto; }
fieldset.bare { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-note { margin-top: 14px; font-size: 0.95rem; color: var(--ink-2); }
.form-note a { color: var(--ink); font-weight: 700; }
.soon-card { margin-top: 28px; background: var(--paper); border-radius: 24px; padding: 20px 22px; display: grid; gap: 10px; max-width: 40rem; box-shadow: var(--shadow-soft); }
.soon-card h2 { font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.015em; }
.soon-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--ink-2); }
.soon-card li { display: flex; gap: 10px; align-items: flex-start; }
.soon-card .ic { width: 1.15em; height: 1.15em; margin-top: 0.2em; color: var(--good); }
.body-block { padding-top: clamp(40px, 6vw, 64px); }
.body-block h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.1; }
.body-block > p { margin-top: 10px; color: var(--ink-2); max-width: 52ch; }

/* ---------- Legal prose ---------- */
.prose { padding-top: clamp(40px, 6vw, 64px); }
.prose > * { max-width: 68ch; }
.prose > * + * { margin-top: 16px; }
/* Tables in legal pages (the cookie list): scroll sideways inside their box on phones, never the page. */
.prose .table-scroll { overflow-x: auto; max-width: 100%; }
.prose table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 0.92rem; line-height: 1.45; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 700; }
.prose td code { font-size: 0.88em; white-space: nowrap; }
.prose h2 { margin-top: 48px; font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem); line-height: 1.15; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose a { color: var(--ink); font-weight: 600; }
.prose ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.prose li { position: relative; padding-left: 24px; }
.prose li::before { content: ""; position: absolute; left: 4px; top: 0.6em; width: 9px; height: 9px; border-radius: 50%; background: var(--med); }

/* ---------- The one orchestrated moment: the hero arrives ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.9s var(--ease) both; }
  .d1 { animation-delay: 0.06s; }
  .d2 { animation-delay: 0.14s; }
  .d3 { animation-delay: 0.22s; }
  .d4 { animation: note-in 1.1s var(--ease) 0.34s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
  @keyframes note-in { from { opacity: 0; transform: translateY(40px); } }
}

/* Small joins */
.state > .notice, .progress-card .notice { margin-top: 18px; }
.state .lede + .lede { margin-top: 12px; }
#pick-form .btn { margin-top: 4px; }
.unlock .plan-price span { color: var(--ink); }
#unlock-price { font: inherit; letter-spacing: inherit; }

/* Live site check, under a finished report */
.site-check { margin-top: 48px; padding: 24px 20px; }
.site-check h2 { margin: 0; }
/* Read through a share link: the owner's results only, no form (site-check.js). */
.site-check.is-readonly :is(.site-check-lede, #site-form, #site-hint, #site-msg, #site-note) { display: none; }
.site-check-lede { margin-top: 8px; color: var(--ink-2); max-width: 60ch; }
.site-check .check { box-shadow: none; outline: 1.5px solid var(--line); outline-offset: 0; }
.site-check-status { margin-top: 12px; font-weight: 600; }
.site-check-status:empty { display: none; }
#site-findings { margin-top: 16px; display: grid; gap: 16px; }
@media (min-width: 720px) { .site-check { padding: 30px; } }

/* Scanner evidence under a finding (gitleaks, osv-scanner, semgrep) */
.finding-evidence ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.finding-evidence li { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.82rem; color: var(--ink-2); overflow-wrap: anywhere; }

/* Cookie choice (web/static/js/analytics-posthog.js). A bottom sheet on phones, a compact floating
   bar on wider screens. Never a modal: the page stays usable and it never takes focus by itself. */
.foot-link {
  font: inherit; font-weight: 600; color: var(--ink);
  background: none; border: 0; padding: 6px 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1.5px;
}
.foot-link:hover { text-decoration-thickness: 2.5px; }
.consent {
  position: fixed; z-index: 20; left: 0; right: 0; bottom: 0;
  display: grid; gap: 14px;
  padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom, 0px));
  background: var(--paper); color: var(--ink);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -1px 0 var(--line), 0 -14px 40px -18px oklch(0.3 0.08 260 / 0.35);
}
.consent-text { margin: 0; font-size: 0.98rem; line-height: 1.5; max-width: 62ch; }
.consent-text a { font-weight: 600; white-space: nowrap; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent-btn {
  font: 700 1rem/1.1 var(--display); letter-spacing: -0.01em;
  min-height: 48px; padding: 12px 20px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--sun); color: var(--sun-ink);
  transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.consent-btn:hover { background: var(--sun-hover); }
.consent-btn:active { transform: scale(0.98); }
.consent-btn--quiet, .consent-btn--quiet:hover { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.consent-btn--quiet:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.consent-actions .consent-btn:only-child { grid-column: 1 / -1; }
@media (min-width: 720px) {
  .consent {
    left: 50%; right: auto; bottom: 16px; transform: translateX(-50%);
    width: min(900px, calc(100% - 32px));
    grid-template-columns: 1fr auto; align-items: center; gap: 24px;
    padding: 14px 14px 14px 24px; border-radius: 20px;
    box-shadow: 0 0 0 1.5px var(--line), var(--shadow);
  }
  .consent-actions { grid-template-columns: auto auto; }
  .consent-actions .consent-btn:only-child { grid-column: auto; }
}
/* Phones: as short as it can be while keeping 44px buttons, so less of the page sits behind it. */
@media (max-width: 719px) {
  .consent { gap: 8px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px)); border-radius: 16px 16px 0 0; }
  .consent-text { font-size: 0.85rem; line-height: 1.35; }
  .consent-btn { min-height: 40px; padding: 8px 14px; font-size: 0.92rem; border-radius: 12px; }
}
/* Two-column screens: a small card in the bottom-right corner, over the hero's demo card, so the
   check form on the left (the first thing a visitor wants) is never hidden behind it. */
@media (min-width: 960px) {
  .consent {
    left: auto; right: 24px; transform: none;
    width: min(340px, calc(100% - 48px));
    grid-template-columns: 1fr; gap: 10px; padding: 14px 14px 14px 16px;
  }
  .consent-text { font-size: 0.88rem; line-height: 1.4; }
  .consent-btn { min-height: 40px; padding: 8px 14px; font-size: 0.92rem; border-radius: 12px; }
  .consent-actions { grid-template-columns: 1fr 1fr; }
}
/* Room below the footer while the bar is up, so it never hides the end of the page. */
html.has-consent body { padding-bottom: var(--consent-h, 200px); }

/* Code finding whose secret the live site also ships: confirmed exposure, not a theory. */
.live-badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700;
  padding: 4px 10px 4px 8px; border-radius: 999px; background: var(--crit-bg); color: var(--crit-ink);
}
.live-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--crit); }
#locked-list .live-badge { margin-left: 8px; }
.notice--live { background: var(--crit-bg); color: var(--crit-ink); }
.notice--live::before { background: var(--crit); }
.site-check.upsell { margin-top: 32px; }
.site-check.upsell .check { margin-top: 18px; }

/* ---------- Accounts ---------- */
/* Four header links on the smallest phones: keep them on one line under the brand. */
@media (max-width: 380px) { .site-nav { gap: .7rem; font-size: .84rem; } }
.site-nav a[aria-current=page] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .3em; }
.field-label { display: block; font-weight: 500; margin-bottom: .5rem; }
.form-msg--ok { color: var(--ink); }
.button-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.btn--danger { background: var(--crit); color: var(--paper); }

/* Claim on the report page */
.claim { margin-top: .75rem; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; font-size: .88rem; color: var(--ink-2); }
.claim[hidden] { display: none; }
.claim-status { color: var(--crit); font-weight: 500; }
.claim-status:empty { display: none; }

/* Your reports */
.report-rows { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 1px solid var(--line); max-width: 52rem; }
.report-row { display: grid; gap: .75rem 1.5rem; padding-block: 1.25rem; border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main score" "counts counts" "actions actions" "msg msg"; }
.report-row > * { min-width: 0; }
.report-row-main { grid-area: main; }
.report-row-repo { font: 500 1.05rem/1.35 var(--mono); letter-spacing: -.01em; overflow-wrap: anywhere; }
.report-row-meta { margin-top: .2rem; font-size: .88rem; color: var(--ink-2); }
.report-row-state[data-status=unlocked] { color: var(--good); font-weight: 500; }
.report-row-state[data-status=failed] { color: var(--crit); }
.report-row-score { grid-area: score; font-size: 1.6rem; font-weight: 600; letter-spacing: -.02em; line-height: 1; text-align: right; }
.report-row-score--partial { font-size: 1rem; font-weight: 700; letter-spacing: 0; color: var(--ink-2); }
.report-row-score small { font-size: .85rem; font-weight: 400; color: var(--ink-2); margin-left: .1rem; }
.counts--row { grid-area: counts; margin: 0; grid-template-columns: repeat(4, max-content); gap: .1rem 1.25rem; }
.counts--row b { font-size: 1rem; }
.report-row-note { grid-area: counts; font-size: .92rem; color: var(--ink-2); max-width: 60ch; }
.report-row:not(:has(.counts--row, .report-row-note)) { grid-template-areas: "main score" "actions actions" "msg msg"; }
.report-row-actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: .5rem; }
.report-row-actions .copy { text-decoration: none; display: inline-flex; align-items: center; min-height: 36px; }
.report-row-actions .copy:disabled { opacity: .65; cursor: progress; }
.row-msg { grid-area: msg; font-size: .88rem; color: var(--ink-2); overflow-wrap: anywhere; }
.row-msg:empty { display: none; }
@media (min-width: 760px) {
  .report-row { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "main counts score" "actions actions actions" "msg msg msg"; align-items: center; }
  .report-row:has(.report-row-note) { grid-template-areas: "main main score" "counts counts counts" "actions actions actions" "msg msg msg"; }
}
.empty-state { font-size: 1.05rem; }

/* Account */
.account-facts { margin: 0; border-top: 1px solid var(--line); max-width: 40rem; }
.account-facts > div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; padding-block: .8rem; border-bottom: 1px solid var(--line); }
.account-facts dt { font-weight: 600; }
.account-facts dd { margin: 0; overflow-wrap: anywhere; }
.account-section { margin-top: 3rem; max-width: 40rem; }
.account-section h2 { font-size: 1.35rem; }
.account-danger { padding-top: 2rem; border-top: 1px solid var(--line); }
.confirm-box { margin-top: 1.5rem; border: 1px solid var(--line); border-left: 4px solid var(--crit); background: var(--paper); border-radius: 4px; padding: 1rem 1.25rem; }
.confirm-box[hidden], .button-row[hidden] { display: none; }

/* "Email me this link" on the report page */
.email-link { margin-top: 10px; display: grid; gap: 8px; justify-items: start; max-width: 460px; }
.email-link[hidden], .email-form[hidden], .email-note[hidden] { display: none; }
.email-form { display: flex; gap: 8px; width: 100%; background: var(--paper); padding: 6px; border-radius: 16px; box-shadow: var(--shadow); }
.email-form input { flex: 1; min-width: 0; font: 500 1rem/1.2 var(--body); color: var(--ink); background: transparent; border: 2px solid transparent; border-radius: 12px; padding: 10px 12px; }
.email-form input:focus-visible { outline: 3px solid var(--ink); outline-offset: 0; }
.email-form input[aria-invalid="true"] { border-color: var(--crit); }
.email-form button { font: 700 0.95rem/1 var(--display); background: var(--sun); color: var(--sun-ink); border: 0; border-radius: 12px; padding: 0 16px; cursor: pointer; }
.email-form button:disabled { opacity: 0.75; cursor: progress; }
.email-note { font-size: 0.85rem; color: var(--ink-2); }
.email-msg { font-size: 0.92rem; font-weight: 600; color: var(--good); }
.email-msg.is-error { color: var(--crit-ink); }
.email-msg:empty { display: none; }

/* Account pages in the Friendly layout */
[data-mt="1"] { margin-top: 16px; } [data-mt="1.5"] { margin-top: 24px; } [data-mt="2"] { margin-top: 32px; }
.acct-head .lede { margin-top: 14px; max-width: 40rem; }
.acct-head .check { margin-top: 24px; }
.acct-foot { margin-top: 28px; }
.page-reports .report-rows { margin-top: 36px; }
.page-reports .empty-state { margin-top: 36px; max-width: 40rem; }
.page-account { padding-top: 36px; }
.page-account .account-section { margin-top: 44px; }
.brand { flex: none; }
.site-nav .nav-mid { display: none; }
@media (min-width: 480px) { .site-nav .nav-mid { display: inline; } }
.counts--row { border-top: 0; padding-top: 0; }

/* "This repo looks private" prompt under the check form */
.private-prompt { display: grid; gap: 10px; justify-items: start; color: var(--ink); font-weight: 500; }
.private-prompt strong { font-weight: 800; }
.private-prompt .btn { margin-top: 4px; }
#pending-access .actions { margin-top: 12px; }

/* Live site field: fixed https:// prefix, people type only the domain */
.url-field { display: flex; align-items: center; min-width: 0; border-radius: 16px; }
.url-prefix { flex: none; padding-left: 14px; font: 500 1.05rem/1.2 var(--body); color: var(--ink-2); user-select: none; }
.url-field input { padding-left: 0 !important; flex: 1; width: auto; min-width: 0; }
.url-field:has(input[aria-invalid="true"]) { box-shadow: inset 0 0 0 2px var(--crit); }
.check--two .url-prefix { padding-top: 6px; padding-bottom: 12px; }
.field-hint { display: block; padding: 0 16px 10px; font-size: 0.85rem; font-weight: 600; color: var(--ink-2); }
.field-hint:empty { display: none; }
.site-check .field-hint { padding: 8px 0 0; }

/* Paid full review in progress */
.notice--progress { background: var(--sun-soft); }
.notice--progress .notice-sub, .notice--warn .notice-sub { color: var(--ink); }
.notice--progress::before { background: var(--sun); animation: pulse-dot 1.4s ease-in-out infinite; }
@keyframes pulse-dot { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .notice--progress::before { animation: none; } }

/* "Save this report" box in the report header */
.save-box { margin-top: 22px; max-width: 520px; padding: 18px 20px 14px; }
.save-box h2 { font: 700 1.05rem/1.3 var(--body); letter-spacing: -0.01em; margin: 0; }
.save-lede { margin-top: 4px; color: var(--ink-2); font-size: 0.95rem; }
.save-box .email-form { margin-top: 12px; box-shadow: none; outline: 1.5px solid var(--line); }
.save-actions { margin-top: 12px; }
.save-box .email-msg { margin-top: 8px; }
.save-foot { margin-top: 10px; font-size: 0.88rem; color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.save-foot [hidden] { display: none; }
.linkish { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; cursor: pointer; }
.linkish:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.save-box.is-saved { padding-bottom: 12px; }
.share[hidden], .share-link[hidden], .share-foot[hidden], .save-foot[hidden] { display: none; }
.share { margin-top: 12px; }
.share-state { margin: 0 0 8px; font-size: 0.92rem; color: var(--ink-2); }
.share-toggle { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; min-height: 44px; }
.share-toggle input { width: 20px; height: 20px; accent-color: var(--ink); cursor: pointer; }
.share-link { display: flex; gap: 8px; margin-top: 8px; }
.share-link input { flex: 1; min-width: 0; font: 500 0.9rem/1.2 var(--mono, monospace); color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.share-link input:focus-visible { outline: 3px solid var(--ink); outline-offset: 0; }
.share-foot { margin: 8px 0 0; font-size: 0.88rem; color: var(--ink-2); }
.save-box.is-saved h2::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--good); margin-right: 8px; vertical-align: 2px; }

/* Re-check on the score card */
.recheck { margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 10px; justify-items: start; }
.recheck[hidden] { display: none; }
.recheck-lede { font-size: 0.9rem; color: var(--ink-2); }
.recheck-msg { font-size: 0.88rem; font-weight: 600; color: var(--crit-ink); }
.recheck-msg:empty { display: none; }
#recheck-banner { max-width: 620px; }

/* ---------- What this check covered (coverage.js) ---------- */
.coverage { margin-top: clamp(40px, 6vw, 56px); padding: clamp(18px, 4vw, 26px); }
.coverage h2 { font: 700 1.15rem/1.3 var(--body); letter-spacing: -0.01em; }
.coverage-gist { margin-top: 6px; color: var(--ink-2); max-width: 68ch; }
.coverage-more { margin-top: 10px; }
.coverage-more summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none;
  font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px;
}
.coverage-more summary::-webkit-details-marker { display: none; }
/* display:inline-flex hides the disclosure triangle, so draw our own open/closed cue. */
.coverage-more summary::before { content: ""; width: 0.45em; height: 0.45em; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform 0.2s var(--ease); flex: none; }
.coverage-more[open] summary::before { transform: rotate(45deg); }
.coverage-more:not([open]) .coverage-hide, .coverage-more[open] .coverage-show { display: none; }
.coverage-body { padding-top: 8px; }
.coverage-list { margin: 0; display: grid; border-top: 1.5px solid var(--line); }
.coverage-row { display: grid; gap: 2px 18px; padding: 12px 0; border-bottom: 1.5px solid var(--line); }
.coverage-row dt { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.coverage-row dd { margin: 0; display: grid; gap: 2px; min-width: 0; }
.coverage-row dd strong { font-weight: 700; overflow-wrap: anywhere; }
.coverage-detail { color: var(--ink-2); font-size: 0.95rem; max-width: 62ch; }
.coverage-ic { width: 1.05em; height: 1.05em; flex: none; }
.coverage-row[data-state="ok"] .coverage-ic { color: var(--good); }
.coverage-row[data-state="partial"] .coverage-ic { color: var(--med); }
.coverage-row[data-state="none"] .coverage-ic { color: var(--ink-2); }
@media (min-width: 720px) { .coverage-row { grid-template-columns: 12rem minmax(0, 1fr); align-items: baseline; } }
.coverage-sub { margin-top: 20px; font-size: 1.05rem; line-height: 1.3; letter-spacing: -0.01em; }
.coverage-gaps, .confidence-legend ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.coverage-gaps li { position: relative; padding-left: 22px; color: var(--ink-2); max-width: 68ch; }
.coverage-gaps li::before { content: ""; position: absolute; left: 4px; top: 0.78em; width: 9px; height: 2px; border-radius: 2px; background: var(--ink-2); }
/* Scanner leads we did not review (coverage.js): same card as coverage, dashed rows like locked ones, since nothing here is confirmed */
.leads { margin-top: 16px; padding: clamp(18px, 4vw, 26px); }
.leads h2 { font: 700 1.15rem/1.3 var(--body); letter-spacing: -0.01em; }
.leads-lede, .leads-locked { margin-top: 6px; color: var(--ink-2); max-width: 68ch; }
.leads-locked { font-weight: 600; color: var(--ink); }
.leads-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.lead { display: grid; gap: 4px; padding: 12px 16px; border-radius: 16px; border: 1.5px dashed var(--line); min-width: 0; }
.lead-where { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.lead-file { font-weight: 500; font-size: 0.92rem; overflow-wrap: anywhere; min-width: 0; }
.lead-tool { font-size: 0.85rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.lead-what { max-width: 68ch; }
.lead-meta { color: var(--ink-2); font-size: 0.9rem; overflow-wrap: anywhere; }
.confidence-legend li { display: grid; justify-items: start; gap: 4px 12px; color: var(--ink-2); font-size: 0.95rem; }
@media (min-width: 560px) { .confidence-legend li { grid-template-columns: 11.5rem minmax(0, 1fr); align-items: center; } }

/* Confidence: bars + words, next to the severity chip */
.conf { display: inline-flex; align-items: center; gap: 6px; font: 600 0.82rem/1 var(--body); color: var(--ink-2); white-space: nowrap; padding: 5px 10px 5px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); }
.conf[title] { cursor: help; }
.conf-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 0.8rem; }
.conf-bars span { width: 3px; border-radius: 2px; background: var(--line); }
.conf-bars span:nth-child(1) { height: 40%; }
.conf-bars span:nth-child(2) { height: 70%; }
.conf-bars span:nth-child(3) { height: 100%; }
.conf-bars span.on { background: var(--ink-2); }

/* "Not an issue" / "Fixed" under a finding (feedback.js) */
.findings-hint { margin-top: 10px; color: var(--ink-2); max-width: 60ch; }
.findings-hint b { color: var(--ink); }
.fb { border-top: 1.5px dashed var(--line); padding-top: 14px; display: grid; gap: 10px; }
.fb [hidden] { display: none; }
.fb-ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.fb-q { font-weight: 600; color: var(--ink-2); font-size: 0.95rem; }
.fb-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-btn[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); background: var(--bg); }
.fb-form { display: grid; gap: 6px; }
.fb-label { font-weight: 600; font-size: 0.95rem; }
.fb-comment { width: 100%; font: 400 1rem/1.45 var(--body); color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px; resize: vertical; min-height: 5.5rem; }
.fb-comment:focus-visible { outline: 3px solid var(--ink); outline-offset: 0; border-color: transparent; }
.fb-hint { font-size: 0.85rem; color: var(--ink-2); }
.fb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 4px; }
.fb-send { min-height: 44px; padding: 10px 18px; font-size: 0.95rem; }
.fb-saved { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; }
.fb-saved-text { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; align-items: center; }
.fb-saved-text .fb-said { grid-column: 2; color: var(--ink-2); font-size: 0.92rem; overflow-wrap: anywhere; white-space: pre-line; }
.fb-tick { width: 1.05em; height: 1.05em; color: var(--good); }
.fb-status { font-size: 0.9rem; font-weight: 600; color: var(--ink-2); }
.fb-status.is-error { color: var(--crit-ink); }
.fb-status:empty { display: none; }

/* ---------- Sign in: its own quiet layout. A task, not a page to read. ----------
   The usual header, the sky as a soft wash instead of a band the panel straddles, the panel centred in the space left, and the footer kept (UK law wants the
   company details on every page) but small. */
.page-auth {
  min-height: 100svh; display: flex; flex-direction: column;
  background:
    radial-gradient(40rem 22rem at 88% -6%, oklch(0.94 0.08 92 / 0.6), transparent 70%),
    linear-gradient(180deg, var(--sky) 0, var(--bg) min(70vh, 640px));
  background-repeat: no-repeat;
}
@media (prefers-color-scheme: dark) {
  .page-auth {
    background:
      radial-gradient(40rem 22rem at 88% -6%, oklch(0.42 0.09 250 / 0.55), transparent 70%),
      linear-gradient(180deg, var(--sky) 0, var(--bg) min(70vh, 640px));
    background-repeat: no-repeat;
  }
}

.auth { flex: 1; display: grid; place-items: center; padding: clamp(8px, 4vh, 48px) var(--gutter) clamp(32px, 6vh, 64px); }
.auth-wrap { width: 100%; max-width: 25.5rem; }
.auth-card {
  background: var(--paper); border-radius: 20px;
  border: 1px solid var(--line); box-shadow: var(--shadow-soft);
  padding: clamp(24px, 6vw, 36px);
}
.auth-card .notice { margin-bottom: 20px; font-size: 0.95rem; }
/* Focus moves to the heading when the step changes, for screen readers; it is not a control, so no ring. */
.auth-title:focus { outline: none; }
.auth-title { font: 700 1.5rem/1.25 var(--body); letter-spacing: -0.015em; }
.auth-sub { margin-top: 6px; color: var(--ink-2); font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; }
#signin-start { margin-top: 24px; }

/* Field and control edges at 3:1 against the panel (WCAG 1.4.11). */
.page-auth { --field-line: oklch(0.6 0.035 255); }
@media (prefers-color-scheme: dark) { .page-auth { --field-line: oklch(0.62 0.04 255); } }

.page-auth .btn { min-height: 48px; padding: 12px 20px; font: 650 1rem/1.2 var(--body); letter-spacing: 0; border-radius: 12px; }
.auth-provider { width: 100%; gap: 10px; }
.page-auth .btn--quiet { box-shadow: inset 0 0 0 1px var(--field-line); }
.page-auth .btn--quiet:hover { background: var(--bg); box-shadow: inset 0 0 0 1px var(--ink); }
.auth-provider-mark { width: 1.2em; height: 1.2em; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 20px 0; font-size: 0.85rem; color: var(--ink-2); }
.auth-or::before, .auth-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

.auth-form { display: grid; }
.auth-label { font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
.auth-input {
  width: 100%; min-height: 48px; padding: 0 14px;
  font: 400 1rem/1.2 var(--body); color: var(--ink);
  background: var(--paper); border: 1px solid var(--field-line); border-radius: 12px;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.auth-input::placeholder { color: var(--ink-2); opacity: 0.7; }
.auth-input:hover { border-color: var(--ink-2); }
.auth-input:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--sky-2); }
.auth-input[aria-invalid="true"] { border-color: var(--crit); }
.auth-input[aria-invalid="true"]:focus-visible { box-shadow: 0 0 0 3px var(--crit-bg); }
.auth-error { margin-top: 8px; font-size: 0.9rem; font-weight: 600; color: var(--crit-ink); }
.auth-error:empty { display: none; }
.auth-submit { width: 100%; margin-top: 14px; }
.auth-fine { margin-top: 14px; font-size: 0.85rem; line-height: 1.5; color: var(--ink-2); }

.auth-sent { margin-top: 14px; }
.auth-sent > p:not([class]) { line-height: 1.55; overflow-wrap: anywhere; }
.auth-sent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 22px; }
.auth-textbtn {
  font: 600 0.95rem/1.2 var(--body); color: var(--ink);
  background: none; border: 0; padding: 8px 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1.5px;
}
.auth-textbtn:hover { text-decoration-thickness: 2.5px; }
.auth-status:empty { display: none; }

.auth-foot { margin-top: 20px; text-align: center; font-size: 0.92rem; color: var(--ink-2); }
.auth-foot a { color: var(--ink); font-weight: 650; white-space: nowrap; }

.page-auth .site-foot { margin-top: 0; }
.page-auth .site-foot .wrap { max-width: 46rem; padding-block: 0 24px; justify-content: center; text-align: center; font-size: 0.82rem; gap: 6px 20px; }
.page-auth .site-foot .wrap::before { display: none; }
.page-auth .site-foot nav { gap: 18px; justify-content: center; }
.page-auth .site-foot a, .page-auth .site-foot .foot-link { font-weight: 500; color: var(--ink-2); padding-block: 4px; }

/* Header call to action: the one primary action, on every page but sign-in. */
.site-nav a.nav-cta {
  font: 700 0.92rem/1 var(--display); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  color: var(--sun-ink); background: var(--sun); border-radius: 12px; padding: 11px 16px;
  transition: background-color 0.2s var(--ease);
}
.site-nav a.nav-cta:hover { background: var(--sun-hover); }
.page-auth .site-nav a.nav-cta { display: none; }
/* Phones: logo, Sign in and the button. Sample report comes back from 480px. */
@media (max-width: 479px) {
  .site-nav { gap: 14px; }
  .site-nav a[href="/sample"] { display: none; }
  .site-nav a.nav-cta { padding: 10px 13px; font-size: 0.88rem; }
}
@media (max-width: 380px) {
  .site-nav { gap: 10px; }
  .site-nav a.nav-cta { padding: 9px 11px; }
  .site-nav a.nav-cta .cta-my { display: none; }
  .brand .wordmark { height: 28px; }
}
@media (max-width: 340px) { .brand .wordmark { height: 23px; } .site-nav { gap: 8px; } .site-nav a.nav-cta { padding: 8px 9px; font-size: 0.84rem; } }

/* Header account menu: a letter avatar that opens Your reports, Account settings and Sign out. */
.acct-menu { position: relative; display: inline-flex; }
.acct-btn {
  width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--sun); color: var(--sun-ink); display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--paper); transition: background-color 0.15s var(--ease);
}
.acct-btn:hover, .acct-btn[aria-expanded="true"] { background: var(--sun-hover); }
.acct-avatar { font: 700 1.05rem/1 var(--display); }
.acct-pop {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 20; min-width: 240px; max-width: min(320px, calc(100vw - 2 * var(--gutter)));
  background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-soft);
  padding: 8px; display: grid;
}
.acct-who { padding: 10px 12px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); font-size: 0.88rem; color: var(--ink-2); overflow-wrap: anywhere; }
.acct-who strong { display: block; color: var(--ink); font-weight: 650; margin-top: 2px; }
.site-nav .acct-pop a, .acct-signout {
  display: block; text-align: left; padding: 10px 12px; border-radius: 10px; font: 600 0.95rem/1.3 var(--body);
  color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; width: 100%;
}
.site-nav .acct-pop a:hover, .acct-signout:hover, .site-nav .acct-pop a:focus-visible, .acct-signout:focus-visible { background: var(--bg); outline: none; box-shadow: inset 0 0 0 2px var(--ink); }
.acct-signout { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; padding-top: 12px; }
.acct-msg { padding: 0 12px; font-size: 0.85rem; color: var(--crit-ink); }
.acct-msg:empty { display: none; }
@media (max-width: 479px) {
  .acct-menu { position: static; }
  .acct-pop { left: var(--gutter); right: var(--gutter); top: calc(var(--head-h) - 6px); min-width: 0; max-width: none; }
  .site-head .wrap { position: relative; }
}
/* Signed in, the account menu is the last thing on the right; Check my app sits just before it. */
.site-nav .acct-menu { order: 10; }

/* ---------- Account settings: the quiet sign-in layout, with one card per area ---------- */
.page-settings {
  background:
    radial-gradient(40rem 22rem at 88% -6%, oklch(0.94 0.08 92 / 0.55), transparent 70%),
    linear-gradient(180deg, var(--sky) 0, var(--bg) 420px);
  background-repeat: no-repeat;
}
@media (prefers-color-scheme: dark) {
  .page-settings {
    background: radial-gradient(40rem 22rem at 88% -6%, oklch(0.42 0.09 250 / 0.5), transparent 70%), linear-gradient(180deg, var(--sky) 0, var(--bg) 420px);
    background-repeat: no-repeat;
  }
}
.settings { padding: clamp(16px, 4vw, 40px) var(--gutter) 0; }
.settings-wrap { max-width: 44rem; margin-inline: auto; display: grid; gap: 16px; }
.settings-head { margin-bottom: 8px; }
.settings-title { font: 700 1.75rem/1.2 var(--body); letter-spacing: -0.015em; }
.settings-sub { margin-top: 6px; color: var(--ink-2); }
.settings-sub a { color: var(--ink); font-weight: 650; }
.settings-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 4vw, 26px); box-shadow: var(--shadow-soft); }
.settings-card h2 { font: 700 1.1rem/1.3 var(--body); letter-spacing: -0.01em; margin-bottom: 6px; }
.settings-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.settings-row:last-of-type { border-bottom: 0; }
.settings-key { font-weight: 650; font-size: 0.92rem; }
.settings-val { color: var(--ink-2); overflow-wrap: anywhere; }
.settings-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-weight: 600; font-size: 0.95rem; }
.settings-help { margin-top: 10px; font-size: 0.9rem; line-height: 1.5; color: var(--ink-2); }
.settings-help a { color: var(--ink); font-weight: 600; }
.settings-label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.settings-inline { display: flex; flex-wrap: wrap; gap: 8px; }
.settings-inline input {
  flex: 1 1 14rem; min-width: 0; min-height: 46px; padding: 0 12px; font: 400 1rem/1.2 var(--body); color: var(--ink);
  background: var(--paper); border: 1px solid oklch(0.6 0.035 255); border-radius: 12px;
}
.settings-inline input:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--sky-2); }
.settings .btn { min-height: 46px; padding: 11px 18px; font: 650 0.95rem/1.2 var(--body); border-radius: 12px; }
.settings .btn::after { display: none; }
.settings-more { flex-basis: 100%; }
.settings-more summary { cursor: pointer; font-weight: 600; font-size: 0.95rem; width: fit-content; }
.settings-textbtn { background: none; border: 0; padding: 4px 0; font: 600 0.95rem/1.2 var(--body); color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.purchases, .signins { list-style: none; margin: 4px 0 0; padding: 0; }
.purchase { padding: 12px 0; border-bottom: 1px solid var(--line); }
.purchase:last-child { border-bottom: 0; }
.purchase-main { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.purchase-main a { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.purchase-amount { font-weight: 700; white-space: nowrap; }
.purchase-meta { margin-top: 4px; font-size: 0.88rem; color: var(--ink-2); }
.signins li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.signins li:last-child { border-bottom: 0; }
.settings-danger { border-color: oklch(0.8 0.08 27); }
.settings-danger h2 { color: var(--crit-ink); }
@media (prefers-color-scheme: dark) { .settings-danger { border-color: oklch(0.5 0.12 27); } }
.page-settings .site-foot { margin-top: clamp(48px, 8vw, 80px); }
/* The settings page's email form is a plain label over an input and button, not the report page's boxed form. */
.settings .email-form { display: block; background: none; box-shadow: none; padding: 0; border: 0; max-width: none; margin-top: 12px; }
.settings .email-form .settings-label { margin: 0 0 6px; }
.settings .email-form input { box-shadow: none; }
.settings .form-msg ~ .settings-row { margin-top: 12px; border-top: 1px solid var(--line); }

/* Account settings: a left menu (sticky on desktop, scrolling tabs on phones) beside the cards. */
.settings-layout { max-width: 64rem; margin-inline: auto; display: grid; gap: 24px; }
.settings-layout .settings-wrap { max-width: none; margin: 0; min-width: 0; }
.settings-side { min-width: 0; }
.settings-me { display: flex; align-items: center; gap: 12px; padding: 4px 4px 16px; }
.settings-avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--sun); color: var(--sun-ink); font-size: 1.15rem; }
.settings-me-text { min-width: 0; }
.settings-me-name { font-weight: 650; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settings-me-sub { font-size: 0.85rem; color: var(--ink-2); }
.settings-nav { display: grid; gap: 2px; }
.settings-nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px;
  color: var(--ink-2); font-weight: 600; font-size: 0.95rem; text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.settings-nav-item:hover { background: oklch(from var(--paper) l c h / 0.7); color: var(--ink); }
.settings-nav-item[aria-current="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1px var(--line), var(--shadow-soft); }
.settings-nav-item:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; }
.settings-ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.settings-nav-danger { color: var(--crit-ink); }
.settings-nav-danger:hover, .settings-nav-danger[aria-current="true"] { color: var(--crit-ink); }
.settings-nav-sep { height: 1px; background: var(--line); margin: 8px 12px; }
.settings-card { scroll-margin-top: 24px; }
@media (min-width: 900px) {
  .settings-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; }
  .settings-side { position: sticky; top: 24px; }
}
/* Phones and tablets: the menu becomes a row of tabs that scrolls sideways, kept under the header. */
@media (max-width: 899px) {
  .settings-me { display: none; }
  .settings-side { position: sticky; top: 0; z-index: 5; margin-inline: calc(-1 * var(--gutter)); padding: 8px var(--gutter);
    background: color-mix(in oklch, var(--bg) 88%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
  .settings-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .settings-nav::-webkit-scrollbar { display: none; }
  .settings-nav-item { padding: 8px 12px; font-size: 0.9rem; }
  .settings-nav-sep { width: 1px; height: auto; margin: 6px 2px; }
  .settings-card { scroll-margin-top: 72px; }
}
/* Delete now lives inside Data and privacy, as a bordered block at the bottom of that card. */
.settings-card .settings-danger { margin-top: 18px; padding: 16px 18px; border: 1px solid oklch(0.8 0.08 27); border-radius: 14px; box-shadow: none; background: none; }
@media (prefers-color-scheme: dark) { .settings-card .settings-danger { border-color: oklch(0.5 0.12 27); } }
.settings-danger h3 { font: 700 1rem/1.3 var(--body); color: var(--crit-ink); }
.settings-legal { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 18px 12px 0; font-size: 0.85rem; color: var(--ink-2); }
.settings-legal a { color: var(--ink-2); }
.settings-legal a:hover { color: var(--ink); }
@media (max-width: 899px) { .settings-legal { display: none; } }
.settings-nav-btn { background: none; border: 0; cursor: pointer; font-family: var(--body); text-align: left; width: 100%; }

/* ---------- Your reports: one card per report, in the settings layout ---------- */
.rc-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.report-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.report-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow-soft); }
.rc-top { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px 14px; }
.rc-repo { font: 650 1.02rem/1.3 var(--mono); letter-spacing: 0; overflow-wrap: anywhere; }
.rc-repo a { color: var(--ink); text-decoration: none; }
.rc-repo a:hover { text-decoration: underline; }
.rc-meta { margin-top: 2px; font-size: 0.86rem; color: var(--ink-2); }
.rc-status { font-size: 0.8rem; font-weight: 650; padding: 4px 10px; border-radius: 999px; white-space: nowrap; background: var(--bg); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.rc-status--paid { background: var(--sun-soft); color: var(--ink); box-shadow: none; }
.rc-status--failed { background: var(--crit-bg); color: var(--crit-ink); box-shadow: none; }
.rc-status--running { background: var(--bubble); color: var(--bubble-ink); box-shadow: none; }
.rc-score { text-align: right; line-height: 1; white-space: nowrap; }
.rc-score b { font: 750 1.6rem/1 var(--display); }
.rc-score small { font-size: 0.8rem; color: var(--ink-2); margin-left: 1px; }
.rc-score--partial { font-size: 0.85rem; font-weight: 650; color: var(--ink-2); }
.rc-sev { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rc-sev .sev { display: inline-flex; align-items: center; gap: 5px; font-size: 0.82rem; font-weight: 650; padding: 4px 10px; border-radius: 999px; }
.rc-sev .sev .ic { width: 0.95em; height: 0.95em; }
.rc-sev .sev-critical { background: var(--crit-bg); color: var(--crit-ink); }
.rc-sev .sev-critical .ic { color: var(--crit); }
.rc-sev .sev-high { background: var(--high-bg); color: var(--high-ink); }
.rc-sev .sev-high .ic { color: var(--high); }
.rc-sev .sev-medium { background: var(--med-bg); color: var(--med-ink); }
.rc-sev .sev-medium .ic { color: var(--med); }
.rc-sev .sev-low { background: var(--low-bg); color: var(--low-ink); }
.rc-sev .sev-low .ic { color: var(--low); }
.rc-note { margin-top: 10px; font-size: 0.88rem; color: var(--ink-2); }
.rc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.rc-btn {
  display: inline-flex; align-items: center; min-height: 38px; padding: 8px 14px; border-radius: 10px; cursor: pointer;
  font: 600 0.9rem/1.2 var(--body); color: var(--ink); text-decoration: none;
  background: var(--paper); border: 0; box-shadow: inset 0 0 0 1px var(--line);
}
.rc-btn:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.rc-btn--primary { background: var(--sun); color: var(--sun-ink); box-shadow: none; }
.rc-btn--primary:hover { background: var(--sun-hover); box-shadow: none; }
.rc-btn:disabled { opacity: 0.7; cursor: progress; }
.report-card .row-msg { margin-top: 8px; font-size: 0.88rem; font-weight: 600; }
.report-card .row-msg:empty { display: none; }
.reports-empty h2 { font: 700 1.1rem/1.3 var(--body); }
.reports-empty .btn::after { display: none; }
@media (max-width: 520px) {
  .rc-top { grid-template-columns: minmax(0, 1fr) auto; }
  .rc-status { grid-row: 2; grid-column: 1; justify-self: start; }
  .rc-score { grid-row: 1 / span 2; grid-column: 2; }
}

/* ---- Friendly error states (error pages, request problems) ---- */
/* A green dot says "all good"; an error page or a problem notice uses the amber "needs attention" dot. */
.eyebrow--warn::before { background: var(--high); }
.error-state .lede { max-width: 46ch; }
.error-state .lede a { font-weight: 700; overflow-wrap: anywhere; }
#connect-error a { margin-left: 2px; }
