/* VectoraPoint — shared design system (light-first, optional dark) */
:root {
  --bg: #f0f4f8;
  --bg-elev: #ffffff;
  --fg: #0f172a;
  --mut: #64748b;
  --muted-bg: #e8eef4;
  --line: #d7e0ea;
  --line-strong: #b8c5d4;
  --accent: #0d9488;
  --accent-soft: #ccfbf1;
  --accent-fg: #115e59;
  --a: #2563eb;
  --a-soft: #eff6ff;
  --b: #c2410c;
  --b-soft: #fff7ed;
  --ok: #15803d;
  --ok-bg: #dcfce7;
  --warn: #a16207;
  --warn-bg: #fef9c3;
  --bad: #b91c1c;
  --bad-bg: #fee2e2;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, .12);
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --header-h: 64px;
  --drawer-w: 420px;
  --focus: 0 0 0 3px rgba(13, 148, 136, .35);
}

[data-theme="dark"] {
  --bg: #0a1218;
  --bg-elev: #121c26;
  --fg: #e8eef9;
  --mut: #94a3b8;
  --muted-bg: #1a2734;
  --line: #243446;
  --line-strong: #334155;
  --accent: #2dd4bf;
  --accent-soft: #134e4a;
  --accent-fg: #99f6e4;
  --a: #60a5fa;
  --a-soft: #172554;
  --b: #fb923c;
  --b-soft: #431407;
  --ok: #4ade80;
  --ok-bg: #14532d;
  --warn: #fbbf24;
  --warn-bg: #422006;
  --bad: #f87171;
  --bad-bg: #450a0a;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.45);
  --focus: 0 0 0 3px rgba(45, 212, 191, .4);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  /* Glows live on the viewport, not .hero. The hero is only as wide as
     main.page, so a glow painted there is clipped at the column edge. */
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 320px at 50% 0, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
    radial-gradient(ellipse 34vw 280px at 92% 170px, color-mix(in srgb, #06b6d4 16%, transparent), transparent 70%);
  background-repeat: no-repeat;
  color: var(--fg);
  font: 15px/1.55 var(--font);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: none; box-shadow: var(--focus);
}
code, pre { font-family: var(--mono); }
code {
  background: var(--muted-bg);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 12.5px;
}
.hidden { display: none !important; }
.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;
}
.mut, .na { color: var(--mut); }
.err { color: var(--bad); }
.ok { color: var(--ok); }
.yes { color: var(--ok); font-weight: 600; }
.no { color: var(--bad); font-weight: 600; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 40; width: 100%; min-width: 0;
  background: color-mix(in srgb, var(--bg-elev) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  height: var(--header-h);
  display: flex; align-items: center;
  padding: 0 28px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: inherit; text-decoration: none; font-weight: 700; font-size: 16.5px;
  min-width: 0;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  display: block; flex: none;
  box-shadow: 0 6px 16px rgba(15, 118, 110, .28);
}
.brand-name {
  letter-spacing: -0.035em; font-weight: 740; line-height: 1;
}
.brand-tail { color: var(--accent); }
.brand-sub { color: var(--mut); font-weight: 550; font-size: 13px; margin-left: 2px; }
.header-nav {
  margin-left: auto; display: flex; align-items: center; gap: 4px;
  flex-wrap: nowrap;
}
.nav-toggle { display: none; margin-left: auto; flex: none; }
.nav-toggle.icon-btn { display: none; }
.nav-toggle-bars {
  display: block; width: 16px; height: 2px; background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}
body.nav-open .nav-toggle-bars {
  height: 0; box-shadow: none;
  background: transparent; position: relative;
}
body.nav-open .nav-toggle-bars::before,
body.nav-open .nav-toggle-bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px;
  background: currentColor;
}
body.nav-open .nav-toggle-bars::before { top: -1px; transform: rotate(45deg); }
body.nav-open .nav-toggle-bars::after { top: -1px; transform: rotate(-45deg); }
.nav-link {
  color: var(--mut); font-size: 13.5px; font-weight: 600;
  padding: 8px 12px; border-radius: 999px; text-decoration: none;
  white-space: nowrap;
}
.nav-link:hover { color: var(--fg); background: var(--muted-bg); text-decoration: none; }
.nav-link.internal { opacity: .75; font-weight: 550; }
.nav-link.active { color: var(--fg); background: var(--muted-bg); }
.nav-link.nav-cta {
  background: var(--accent); color: #fff; margin-right: 6px;
  padding: 8px 16px;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 32%, transparent);
}
.nav-link.nav-cta:hover { color: #fff; background: var(--accent); filter: brightness(1.06); }
.nav-link.nav-cta.active { box-shadow: inset 0 0 0 2px color-mix(in srgb, #fff 40%, transparent); }
.nav-btn {
  background: none; border: 0; cursor: pointer; font: inherit;
}
.nav-logout { display: inline; margin: 0; }
.nav-user {
  font-size: 15px; font-weight: 600; color: var(--mut);
  padding: 0 8px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-dropdown { position: relative; }
.nav-dropdown-toggle::after {
  content: ""; display: inline-block; margin-left: 6px;
  border: 4px solid transparent; border-top-color: currentColor;
  vertical-align: 1px; opacity: .7;
}
.nav-menu {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 160px;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-lg);
  padding: 6px; z-index: 50;
  display: flex; flex-direction: column; gap: 2px;
}
.nav-menu[hidden] { display: none !important; }
.nav-menu-link {
  display: block; padding: 9px 12px; border-radius: 8px;
  color: var(--fg); text-decoration: none; font-size: 13.5px; font-weight: 600;
}
.nav-menu-link:hover { background: var(--muted-bg); text-decoration: none; }
.nav-menu-link.active { background: var(--accent-soft); color: var(--accent-fg); }
.icon-btn {
  background: transparent; border: 1px solid var(--line); border-radius: 9px;
  width: 36px; height: 36px; cursor: pointer; color: var(--mut);
  display: grid; place-items: center; flex: none;
}
.icon-btn:hover { color: var(--fg); border-color: var(--line-strong); background: var(--bg-elev); }

/* ── Layout ── */
.page { max-width: 1120px; width: 100%; min-width: 0; margin: 0 auto; padding: 28px 24px 64px; flex: 1; }
.page.wide { max-width: 1280px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 11px; padding: 12px 20px;
  font-weight: 650; cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 32%, transparent);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-secondary {
  background: var(--bg-elev); color: var(--fg);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.btn-ghost {
  background: transparent; color: var(--accent); border: 1px solid var(--line);
  padding: 8px 14px; font-size: 13px;
}
.btn-ghost:hover { background: var(--accent-soft); border-color: transparent; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }

/* ── Forms ── */
.field label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--mut); margin-bottom: 6px;
}
.field input[type=text], .field input[type=email], .field input[type=password],
.field input[type=url], .field select,
.field textarea, .composer textarea, .search-input {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.field input[type=text], .field input[type=email], .field input[type=password],
.field input[type=url], .field textarea, .composer textarea, .search-input {
  appearance: none;
  -webkit-appearance: none;
}
.field input[type=text]:focus, .field input[type=email]:focus,
.field input[type=password]:focus, .field input[type=url]:focus, .field select:focus,
.field textarea:focus, .composer textarea:focus, .search-input:focus {
  border-color: var(--accent); box-shadow: var(--focus); outline: none;
}
.field input:-webkit-autofill,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--fg);
  caret-color: var(--fg);
  box-shadow: 0 0 0 1000px var(--bg-elev) inset;
  transition: background-color 9999s ease-out;
}
.field textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; line-height: 1.45; resize: vertical; min-height: 140px;
}

/* ── Landing hero ── */
.hero {
  text-align: center;
  margin: -28px -24px 0;
  padding: 48px 24px 36px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.hero-audience {
  margin: 0 auto 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0 auto 12px; max-width: 16ch;
  font-size: clamp(30px, 4.6vw, 44px); font-weight: 760;
  letter-spacing: -.035em; line-height: 1.12;
}
.hero .lede {
  margin: 0 auto 28px; max-width: 520px; color: var(--mut); font-size: 16px;
}
.audit-card {
  max-width: 680px; margin: 0 auto;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: 20px; padding: 22px; box-shadow: var(--shadow-lg);
  text-align: left;
}
.domain-row { display: flex; gap: 10px; align-items: stretch; }
.domain-row .field { flex: 1; }
.domain-row .btn { flex: none; align-self: flex-end; white-space: nowrap; }
.prior-scans {
  display: inline-block;
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent);
}
.prior-scans:hover {
  color: var(--fg);
  border-bottom-color: var(--fg);
  text-decoration: none;
}
.prior-scans[hidden] { display: none; }
.clear-filter { color: var(--accent); font-weight: 600; }
.compare-row {
  margin-top: 12px; display: flex; gap: 8px; align-items: flex-end;
}
.compare-row .field { flex: 1; }
.compare-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; color: var(--accent); font-weight: 600; font-size: 13.5px;
  background: none; border: 0; cursor: pointer; padding: 0;
}
.compare-toggle:hover { text-decoration: underline; }
.advanced {
  margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 10px;
}
.advanced summary {
  cursor: pointer; color: var(--mut); font-size: 13px; font-weight: 600;
  list-style: none; user-select: none;
}
.advanced summary::-webkit-details-marker { display: none; }
.advanced summary::before { content: "▸ "; color: var(--accent); }
.advanced[open] summary::before { content: "▾ "; }
.advanced-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px;
}
.note-sm { color: var(--mut); font-size: 12.5px; margin: 12px 0 0; }
.audit-expectations {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--mut);
  font-size: 12px;
}
.audit-expectations span::before {
  content: "✓";
  margin-right: 5px;
  color: var(--ok);
  font-weight: 800;
}

/* Landing marketing stack — even rhythm once pricing lives on-page */
.marketing {
  margin-top: 8px;
  padding-bottom: 16px;
}
.marketing > * {
  margin-top: 0;
}
.marketing > * + * {
  margin-top: 52px;
  padding-top: 48px;
  border-top: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
}

/* Explainer cards */
.explain {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin: 36px 0 20px;
}
.explain-card {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 18px 16px; box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.explain-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg);
}
.explain-card .ico {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 800; font-size: 13px; margin-bottom: 12px;
}
.explain-card.seo .ico { background: var(--a-soft); color: var(--a); }
.explain-card.geo .ico { background: var(--accent-soft); color: var(--accent); }
.explain-card.email .ico { background: var(--ok-bg); color: var(--ok); }
.explain-card h3 { margin: 0 0 6px; font-size: 15px; }
.explain-card p { margin: 0; color: var(--mut); font-size: 13.5px; }
.howto {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  color: var(--mut); font-size: 13px; margin: 8px 0 28px;
}
.howto span {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 12px;
}
.howto b { color: var(--fg); }

/* Concrete report preview */
.sample-section {
  display: grid;
  grid-template-columns: minmax(210px, .72fr) minmax(0, 1.7fr);
  gap: 28px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}
.sample-copy { text-align: left; }
.section-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sample-copy h2 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.sample-copy > p:last-child {
  margin: 0;
  color: var(--mut);
  font-size: 14px;
  line-height: 1.55;
}
.sample-report {
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.sample-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px 16px;
  text-align: left;
}
.sample-row + .sample-row { border-top: 1px solid var(--line); }
.sample-axis {
  color: var(--mut);
  font-size: 11.5px;
  font-weight: 700;
}
.sample-finding {
  color: var(--mut);
  font-size: 12px;
  line-height: 1.4;
}
.sample-finding b {
  display: block;
  margin-bottom: 2px;
  color: var(--fg);
  font-size: 13px;
}
.sample-level {
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 10.5px;
  font-weight: 750;
  white-space: nowrap;
}
.sample-high { color: var(--bad); background: var(--bad-bg); }
.sample-med { color: var(--warn); background: var(--warn-bg); }

.how-section {
  margin: 0 auto;
  max-width: 900px;
  scroll-margin-top: calc(var(--header-h) + 16px);
  text-align: center;
}
.how-section .section-kicker { margin-bottom: 6px; }
.how-section h2 {
  margin: 0 0 8px; font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -.02em;
}
.how-section > .lede {
  margin: 0 auto 22px; max-width: 520px;
  color: var(--mut); font-size: 15px;
}
.how-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.how-card {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow);
}
.how-card .step {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent-fg);
  font-weight: 800; font-size: 13px; margin-bottom: 10px;
}
.how-card h3 { margin: 0 0 6px; font-size: 15px; }
.how-card p { margin: 0; color: var(--mut); font-size: 13.5px; line-height: 1.45; }
.why-matters {
  margin: 28px auto 0;
  max-width: 520px;
  text-align: center;
}
.why-matters h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mut);
}
.why-matters ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.why-matters li {
  margin: 0;
  color: var(--mut);
  font-size: 14px;
  line-height: 1.45;
}
.why-matters b { color: var(--fg); font-weight: 650; }
.how-trust {
  margin: 18px 0 0; text-align: center; color: var(--mut); font-size: 13px;
}
.measure-section {
  text-align: left;
  max-width: 680px;
}
.measure-section .section-kicker,
.measure-section > h1,
.measure-section > h2 { text-align: center; }
.measure-section > h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: -.02em;
}
.measure-section > h2.topic {
  text-align: left;
  font-size: 16px;
  margin: 22px 0 6px;
  letter-spacing: 0;
}
.how-more { margin: 14px 0 0; text-align: center; font-size: 14px; }
.measure-updated { margin: 0 0 14px; text-align: center; font-size: 13px; }
.measure-section h3 { margin: 22px 0 6px; font-size: 16px; }
.measure-section h4 { margin: 20px 0 6px; font-size: 14px; }
.measure-section p,
.measure-section li {
  color: var(--mut);
  font-size: 15px;
  line-height: 1.55;
}
.measure-section ul { margin: 8px 0 0; padding-left: 1.1em; }
.guide-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.guide-list li { margin: 0; }
.guide-list a { font-weight: 650; }
.guide-meta, .guide-blurb { display: block; }
.guide-meta { font-size: 13px; margin: 2px 0 4px; }
.guide-axis { color: var(--fg); font-weight: 650; }
.guide-more { margin: 16px 0 0; text-align: center; }
.faq summary h3 {
  display: inline;
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
}
@media (max-width: 860px) {
  .how-grid { grid-template-columns: 1fr; }
}

/* ── Global stats (landing) ── */
.stats-section {
  max-width: 900px; margin: 0 auto;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.stats-head {
  text-align: center;
  margin-bottom: 20px;
}
.stats-title {
  margin: 0; font-size: clamp(22px, 3vw, 28px); font-weight: 750;
  letter-spacing: -.02em;
  color: var(--fg);
}
.stats-sub {
  margin: 8px auto 0; font-size: 14px; color: var(--mut); line-height: 1.45;
  max-width: 36em;
}

.gs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 640px) {
  .gs-grid { grid-template-columns: 1fr; }
}
.gs-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px 16px 16px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-width: 0;
}
.gs-card-title {
  margin: 0; font-size: 13.5px; font-weight: 750; color: var(--fg);
}
.gs-card-blurb {
  margin: 2px 0 0; font-size: 11.5px; color: var(--mut); line-height: 1.35;
}
.gs-stack {
  display: flex;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--muted-bg);
}
.gs-seg {
  display: block; height: 100%;
  flex: 0 0 auto;
  transition: width .85s cubic-bezier(.4,0,.2,1);
  min-width: 0;
}
/* Grade hues match dark-mode palette in both themes (brighter, clearer). */
.gs-seg.gs-A { background: #4ade80; }
.gs-seg.gs-B { background: #22c55e; }
.gs-seg.gs-C { background: #fbbf24; }
.gs-seg.gs-D { background: #f59e0b; }
.gs-seg.gs-F { background: #f87171; }
.gs-takeaway {
  margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--fg);
  font-weight: 550;
}

.gs-foot {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 8px 16px;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--line);
}
.gs-legend {
  display: flex; gap: 10px; flex-wrap: wrap;
  font-size: 11px; color: var(--mut); font-weight: 650;
}
.gs-leg { display: inline-flex; align-items: center; gap: 5px; }
.gs-leg i {
  width: 9px; height: 9px; border-radius: 2px; display: inline-block;
}
.gs-leg i.gs-A { background: #4ade80; }
.gs-leg i.gs-B { background: #22c55e; }
.gs-leg i.gs-C { background: #fbbf24; }
.gs-leg i.gs-D { background: #f59e0b; }
.gs-leg i.gs-F { background: #f87171; }
.gs-scale {
  margin: 0; font-size: 11px; color: var(--mut);
  font-variant-numeric: tabular-nums;
}

/* Compact hero + hide marketing once an audit starts (and while a report is showing) */
body.has-report .marketing,
body.is-auditing .marketing { display: none; }
body.has-report,
body.is-auditing { background-image: none; }
body.has-report .hero,
body.is-auditing .hero { padding-top: 16px; background: none; margin-top: 0; }
body.has-report .hero h1,
body.has-report .hero .lede,
body.has-report .hero .hero-audience,
body.is-auditing .hero h1,
body.is-auditing .hero .lede,
body.is-auditing .hero .hero-audience { display: none; }
body.has-report .audit-card,
body.is-auditing .audit-card { max-width: 100%; box-shadow: var(--shadow); }
body.has-report .stats-section,
body.is-auditing .stats-section { display: none; }

/* Report-first: collapse the audit form into a compact disclosure */
body.has-report .audit-card {
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  overflow: hidden;
}
body.has-report .audit-card > *:not(.report-rerun) { display: none !important; }
body.has-report .audit-card > .report-rerun { display: block !important; }
body.has-report .audit-card.is-expanded {
  padding: 18px 20px;
}
body.has-report .audit-card.is-expanded > *:not(.report-rerun) { display: revert !important; }
body.has-report .audit-card.is-expanded > .domain-row { display: flex !important; }
body.has-report .audit-card.is-expanded > .report-rerun { display: none !important; }
.report-rerun { display: none; }
.report-rerun-btn {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 16px; border: 0; background: transparent;
  color: var(--fg); font: inherit; font-weight: 650; cursor: pointer; text-align: left;
}
.report-rerun-btn:hover { background: var(--muted-bg); }
.report-rerun-btn span { color: var(--accent); font-size: 13px; font-weight: 700; }

/* ── Progress ── */
#status { margin-top: 22px; }
.progress-wrap {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.progress-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-bottom: 12px;
}
.progress-head strong { font-size: 15px; }
.progress-bar {
  height: 8px; background: var(--muted-bg); border-radius: 999px; overflow: hidden;
}
.progress-bar > span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), #06b6d4);
  transition: width .4s ease;
}
.progress-pct { font-size: 12px; color: var(--mut); margin-top: 6px; font-variant-numeric: tabular-nums; }
.stage-cards { display: grid; gap: 12px; margin-top: 16px; }
.stage-card {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px; background: var(--bg);
}
.stage-card .dom { font-weight: 700; margin-bottom: 8px; }
.stage-card .label { color: var(--mut); font-size: 13px; }
.stepper { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.step {
  font-size: 11px; font-weight: 650; padding: 4px 9px; border-radius: 999px;
  background: var(--muted-bg); color: var(--mut);
}
.step.done { background: var(--ok-bg); color: var(--ok); }
.step.active { background: var(--accent-soft); color: var(--accent-fg); }
.skeleton {
  margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.sk {
  height: 120px; border-radius: var(--radius); background:
    linear-gradient(90deg, var(--muted-bg) 25%, color-mix(in srgb, var(--muted-bg) 60%, #fff) 50%, var(--muted-bg) 75%);
  background-size: 200% 100%; animation: shimmer 1.2s infinite linear;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.spin {
  display: inline-block; width: 12px; height: 12px;
  border: 2px solid var(--mut); border-top-color: transparent;
  border-radius: 50%; animation: spin .8s linear infinite;
  vertical-align: -1px; margin-right: 7px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Report ── */
.result { margin-top: 28px; animation: fadein .35s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.report-hero {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 22px;
}
.report-hero h2 {
  margin: 0; font-size: 24px; font-weight: 750; letter-spacing: -.02em;
  border: 0; text-transform: none; color: var(--fg); padding: 0;
}
.report-hero .meta { color: var(--mut); font-size: 13px; margin-top: 4px; }
.report-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.domains-pair { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.dom-a { color: var(--a); }
.dom-b { color: var(--b); }
.vs { color: var(--mut); font-weight: 500; font-size: 14px; }
.errbadge {
  background: var(--bad-bg); color: var(--bad); font-size: 10px;
  padding: 2px 7px; border-radius: 5px; text-transform: uppercase; font-weight: 700;
  vertical-align: middle; margin-left: 6px;
}

.score-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 12px;
}
.score-card {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 16px 16px;
  box-shadow: var(--shadow); cursor: pointer; position: relative;
  transition: border-color .15s, transform .12s;
}
.score-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.score-card[data-tip]::after {
  content: attr(data-tip);
  position: absolute; left: 50%; bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  width: max(220px, 100%); max-width: 280px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--fg); color: var(--bg-elev);
  font-size: 12.5px; font-weight: 500; line-height: 1.45;
  letter-spacing: 0; text-transform: none; text-align: left;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 20;
}
.score-card[data-tip]::before {
  content: "";
  position: absolute; left: 50%; bottom: calc(100% + 4px);
  transform: translateX(-50%) translateY(4px);
  border: 6px solid transparent; border-top-color: var(--fg);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 20;
}
.score-card[data-tip]:hover::after,
.score-card[data-tip]:focus-visible::after,
.score-card[data-tip]:hover::before,
.score-card[data-tip]:focus-visible::before {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.score-card .axis-name {
  font-size: 11px; font-weight: 750; letter-spacing: .04em;
  text-transform: uppercase; color: var(--mut); margin-bottom: 10px;
  line-height: 1.35;
}
.score-card .blurb { color: var(--mut); font-size: 12.5px; margin-top: 10px; }
.ring-wrap { display: flex; align-items: center; gap: 14px; }
.ring {
  width: 84px; height: 84px; flex: none; position: relative;
}
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { fill: none; stroke: var(--muted-bg); stroke-width: 8; }
.ring .prog {
  fill: none; stroke-width: 8; stroke-linecap: round;
  transition: stroke-dashoffset .6s ease;
}
.ga .prog { stroke: var(--ok); }
.gb .prog { stroke: #22c55e; }
.gc .prog { stroke: var(--warn); }
.gd .prog { stroke: #f59e0b; }
.gf .prog { stroke: var(--bad); }
.ring-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; transform: none;
}
.ring-center .sc {
  font-size: 20px; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1;
}
.ring-center .gd {
  font-size: 11px; font-weight: 800; margin-top: 2px;
  padding: 1px 6px; border-radius: 4px;
}
.ga .ring-center .gd { background: var(--ok-bg); color: var(--ok); }
.gb .ring-center .gd { background: var(--ok-bg); color: var(--ok); }
.gc .ring-center .gd { background: var(--warn-bg); color: var(--warn); }
.gd .ring-center .gd { background: var(--warn-bg); color: var(--warn); }
.gf .ring-center .gd { background: var(--bad-bg); color: var(--bad); }
.ring .median-tick {
  stroke: var(--fg);
  stroke-width: 2.25;
  stroke-linecap: round;
  opacity: .9;
}
.ring .median-dot {
  fill: var(--fg);
  stroke: var(--bg-elev);
  stroke-width: 1.5;
}
.median-note {
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--mut);
  font-variant-numeric: tabular-nums;
}
.median-note.above { color: var(--ok); }
.median-note.below { color: var(--bad); }
.score-compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%;
}
.score-compare .side-label {
  font-size: 11px; font-weight: 700; margin-bottom: 4px;
}
.score-compare .side-label.a { color: var(--a); }
.score-compare .side-label.b { color: var(--b); }
.delta-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 700; margin-top: 8px;
  padding: 3px 8px; border-radius: 6px; background: var(--muted-bg);
}
.delta-chip.wina { background: var(--a-soft); color: var(--a); }
.delta-chip.winb { background: var(--b-soft); color: var(--b); }
.mean-note {
  color: var(--mut); font-size: 12.5px; margin: 4px 0 22px; text-align: center;
}

/* Share landing (/s/<id>) */
.share-landing {
  max-width: 720px; margin: 0 auto; padding: 28px 0 48px;
}
.share-landing .share-kicker {
  margin: 0 0 8px; font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--mut);
}
.share-landing h1 {
  margin: 0 0 12px; font-size: clamp(22px, 4vw, 32px); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.2;
}
.share-landing .lede {
  margin: 0 0 28px; font-size: 16px; line-height: 1.55; color: var(--fg);
}
.share-landing .score-grid { margin-bottom: 8px; }
.score-card.share { cursor: default; }
.score-card.share:hover { box-shadow: var(--shadow); }
.share-actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin-top: 8px;
}

/* Fix-first */
.section-title {
  font-size: 13px; font-weight: 750; letter-spacing: .06em;
  text-transform: uppercase; color: var(--mut);
  margin: 28px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.section-title .sub {
  text-transform: none; letter-spacing: 0; font-weight: 500; margin-left: 8px;
}
.fix-item .explain-link {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--mut);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  cursor: pointer;
  opacity: 0.75;
}
.fix-item .explain-link:hover,
.fix-item .explain-link:focus-visible {
  color: var(--accent-fg);
  opacity: 1;
  outline: none;
}
.fix-meta {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px;
  align-items: center;
}
.fix-explain {
  margin-left: auto;
}
.beta-tag {
  display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px;
  font-size: 10px; letter-spacing: .08em; vertical-align: middle;
  background: var(--warn-bg); color: var(--warn); border: 1px dashed var(--warn);
}
.beta-section ul.findings { margin: 12px 0; }
.beta-section table.facts { margin-bottom: 4px; }
.cookie-table { margin-top: 8px; font-size: 12.5px; }
.cookie-table code { font-size: 12px; word-break: break-all; }
.cookie-table .mid { color: var(--mut); }
.fix-list { display: grid; gap: 8px; }
.fix-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 14px;
  cursor: pointer; transition: border-color .15s;
  text-align: left; width: 100%;
}
.fix-item:hover { border-color: var(--accent); }
.fix-item .rank {
  flex: none; width: 26px; height: 26px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent-fg);
  display: grid; place-items: center; font-weight: 800; font-size: 12px;
}
.fix-item .body { flex: 1; min-width: 0; }
.fix-item .body b { display: block; margin-bottom: 2px; }
.fix-item .body > span { color: var(--mut); font-size: 13px; }
.fix-item .findings { margin: 4px 0 0; padding: 0 0 0 16px; color: var(--mut); font-size: 13px; }
.fix-item .findings li { margin: 2px 0; }
.tag {
  font-size: 10px; font-weight: 750; text-transform: uppercase;
  letter-spacing: .04em; padding: 2px 7px; border-radius: 5px;
  background: var(--muted-bg); color: var(--mut);
}
.tag.seo { background: var(--a-soft); color: var(--a); }
.tag.geo { background: var(--accent-soft); color: var(--accent); }
.tag.dns, .tag.email { background: var(--ok-bg); color: var(--ok); }
.tag.crit { background: var(--bad-bg); color: var(--bad); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.gap { background: var(--muted-bg); color: var(--fg); font-variant-numeric: tabular-nums; }

/* Dimension rows */
.dim-list { display: grid; gap: 6px; }
.dim-row {
  display: grid; grid-template-columns: minmax(140px, 1.2fr) 1fr auto;
  gap: 12px; align-items: center;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px 14px;
  cursor: pointer; transition: background .12s, border-color .12s;
}
.dim-row:hover { border-color: var(--line-strong); background: color-mix(in srgb, var(--accent-soft) 40%, var(--bg-elev)); }
.dim-row.compare { grid-template-columns: minmax(140px, 1.1fr) 1fr 1fr auto; }
.dim-name { font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.dim-pts {
  font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 650;
  color: var(--mut); white-space: nowrap;
}
.dim-pts b { color: var(--fg); }
.bar {
  background: var(--muted-bg); border-radius: 999px; height: 7px; overflow: hidden;
}
.bar span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.ga .bar span, .bar.ok span { background: var(--ok); }
.gb .bar span { background: #22c55e; }
.gc .bar span, .bar.warn span { background: var(--warn); }
.gd .bar span { background: #f59e0b; }
.gf .bar span, .bar.bad span { background: var(--bad); }
.bar.a span { background: var(--a); }
.bar.b span { background: var(--b); }
.dual-bars { display: grid; gap: 4px; }
.fdot {
  display: inline-block; font-size: 10px; font-weight: 750;
  min-width: 16px; text-align: center; border-radius: 8px;
  padding: 1px 5px; vertical-align: 1px;
}
.fdot.bad { background: var(--bad-bg); color: var(--bad); }
.fdot.warn { background: var(--warn-bg); color: var(--warn); }
.dd2 { font-weight: 700; font-size: 13px; text-align: right; min-width: 48px; }
.wina { color: var(--a); } .winb { color: var(--b); } .dt { color: var(--mut); }

/* Collapsible technical */
details.tech {
  margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-elev); overflow: hidden;
}
details.tech > summary {
  cursor: pointer; padding: 14px 18px; font-weight: 700; font-size: 14px;
  list-style: none; user-select: none;
}
details.tech > summary::-webkit-details-marker { display: none; }
details.tech > summary::before { content: "▸ "; color: var(--accent); }
details.tech[open] > summary::before { content: "▾ "; }
details.tech[open] > summary { border-bottom: 1px solid var(--line); }
.tech-body { padding: 8px 18px 18px; }
.tech-body .section-title { margin-top: 18px; }

.table-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-sm);
}
.table-scroll > table { min-width: 100%; }
table.cmp, table.alist, table.facts {
  width: 100%; border-collapse: collapse;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-sm); overflow: hidden; font-size: 13.5px;
}
table.cmp th, table.alist th {
  text-align: left; font-size: 11px; text-transform: uppercase;
  letter-spacing: .06em; color: var(--mut); padding: 10px 12px;
  border-bottom: 1px solid var(--line); font-weight: 700; background: var(--bg-elev);
}
table.cmp td, table.alist td, table.facts td {
  padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle;
}
table.facts td:not(.fk) {
  word-break: break-word; overflow-wrap: anywhere;
}
table.cmp tr:last-child td, table.alist tr:last-child td { border-bottom: 0; }
table.alist tr.rowlink { cursor: pointer; }
table.alist tr.rowlink:hover td { background: var(--accent-soft); }
table.alist .mid { color: var(--mut); white-space: nowrap; font-size: 12.5px; }
table.alist .dom { font-weight: 650; }
table.alist .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; }
table.alist .vs {
  display: inline-block; margin: 0 5px; color: var(--mut);
  font-weight: 500; font-size: 11px;
}
table.alist .actor { white-space: nowrap; }
table.alist td.score { white-space: nowrap; padding-left: 6px; padding-right: 6px; }
table.alist td.score-pair { letter-spacing: -0.02em; }
table.alist .pair-sep {
  display: inline-block; margin: 0 3px; color: var(--mut); font-size: 11px;
}
table.alist.alist-compact th,
table.alist.alist-compact td {
  padding: 6px 8px; font-size: 12.5px;
}
table.alist.alist-compact th {
  padding: 7px 8px; font-size: 10px;
}
.pill.pill-sm {
  min-width: 0; padding: 1px 5px; font-size: 11px; border-radius: 4px;
}
.pill.pill-sm .pill-g { font-weight: 600; opacity: .75; font-size: 10px; }
.alist-section {
  margin: 22px 0 8px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline;
}
.alist-section:first-of-type { margin-top: 4px; }
.alist-section .na { font-weight: 500; }
.alist-hint { font-size: 12px !important; font-weight: 500 !important; }
.col-toggles {
  display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: center;
  margin-left: auto; font-size: 12px; color: var(--mut);
}
.col-toggles label {
  display: inline-flex; align-items: center; gap: 4px;
  cursor: pointer; user-select: none;
}
.col-toggles input { width: 13px; height: 13px; accent-color: var(--accent); }
/* Column visibility — toggled via data-hide-* on the table */
table.alist[data-hide-id] [data-col="id"],
table.alist[data-hide-when] [data-col="when"],
table.alist[data-hide-by] [data-col="by"],
table.alist[data-hide-pages] [data-col="pages"],
table.alist[data-hide-jev] [data-col="jev"] {
  display: none;
}
.dn, .fk { color: var(--mut); }
.dc { font-variant-numeric: tabular-nums; }
.dc .mx { color: var(--mut); font-size: 11px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cols.one { grid-template-columns: 1fr; }
ul.list { margin: 0; padding-left: 18px; }
ul.list li { margin: 5px 0; }
.imp { display: inline-block; min-width: 64px; font-size: 11px; font-weight: 750; color: var(--mut); }
.imp.crit { color: var(--bad); }
.pill {
  display: inline-block; font-weight: 750; font-variant-numeric: tabular-nums;
  font-size: 12px; border-radius: 6px; padding: 2px 8px; min-width: 62px; text-align: center;
}
.pill.ga { background: var(--ok-bg); color: var(--ok); }
.pill.gb { background: var(--ok-bg); color: var(--ok); }
.pill.gc { background: var(--warn-bg); color: var(--warn); }
.pill.gd { background: var(--warn-bg); color: var(--warn); }
.pill.gf { background: var(--bad-bg); color: var(--bad); }
.badge-internal {
  display: inline-block; font-size: 10px; font-weight: 750; letter-spacing: .06em;
  text-transform: uppercase; background: var(--warn-bg); color: var(--warn);
  padding: 3px 8px; border-radius: 6px; margin-left: 8px; vertical-align: middle;
}
.toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-bottom: 16px;
}
/* ── Audit filter bar ── */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 8px 12px; margin-bottom: 8px;
  background: var(--surface, var(--bg));
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
}
.filter-label {
  color: var(--mut); font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.filter-range {
  display: flex; align-items: center; gap: 4px;
}
.filter-range .range-label {
  color: var(--mut); font-size: 11px; font-weight: 600;
  text-transform: uppercase;
}
.filter-num {
  width: 52px; padding: 4px 6px; font-size: 12px;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--bg); color: var(--fg);
}
.filter-num:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.filter-date {
  padding: 4px 6px; font-size: 12px;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--bg); color: var(--fg);
}
.filter-date:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.filter-toggle {
  display: flex; align-items: center; gap: 6px;
  cursor: pointer; user-select: none;
  font-size: 12px;
}
.filter-toggle input {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.toggle-track {
  display: inline-block; width: 32px; height: 18px;
  background: var(--line); border-radius: 9px;
  position: relative; transition: background 0.2s;
}
.toggle-thumb {
  position: absolute; top: 2px; left: 2px;
  width: 14px; height: 14px;
  background: white; border-radius: 50%;
  transition: transform 0.2s;
}
.filter-toggle input:checked ~ .toggle-track {
  background: var(--accent);
}
.filter-toggle input:checked ~ .toggle-track .toggle-thumb {
  transform: translateX(14px);
}
.filter-toggle .toggle-label {
  color: var(--mut);
}
.jobs-more {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 0 4px; color: var(--mut); font-size: 13px;
}
.jobs-more[hidden] { display: none; }
.search-input { max-width: 280px; }
.row-actions { display: flex; gap: 6px; white-space: nowrap; }
.caveat {
  color: var(--mut); font-size: 12px; margin-top: 28px;
  padding-top: 14px; border-top: 1px solid var(--line);
}

/* ── Batch audit ── */
.batch-lede { color: var(--mut); font-size: 14.5px; margin: 0 0 18px; max-width: 62ch; }
.batch-lede code { font-size: 12.5px; }
.batch-card { max-width: 720px; margin-bottom: 22px; }
.batch-actions {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px;
}
.batch-count { color: var(--mut); font-size: 13px; }
.batch-skip {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px; font-size: 13.5px; color: var(--fg); cursor: pointer;
  user-select: none;
}
.batch-skip input { width: 16px; height: 16px; accent-color: var(--accent); }
.batch-progress {
  margin: 0 0 14px; color: var(--mut); font-size: 13.5px;
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center;
}
.batch-progress .spin { margin-right: 6px; }
.batch-skipped {
  margin: 0 0 16px; padding: 10px 14px;
  background: var(--surface, var(--bg));
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13.5px; color: var(--mut);
}
.batch-skipped strong { color: var(--fg); font-weight: 600; }
.batch-skipped ul {
  margin: 6px 0 0; padding: 0;
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 4px 12px;
}
.batch-skipped li {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 12.5px; color: var(--fg);
}
table.alist tr.row-queued td { color: var(--mut); }
table.alist tr.row-active td { background: var(--accent-soft); }
table.alist .batch-idx {
  color: var(--mut); font-variant-numeric: tabular-nums; font-size: 12.5px;
}
table.alist .status-cell { color: var(--mut); font-size: 12.5px; }
.btn-danger { color: var(--bad); }
.btn-danger:hover { background: var(--bad-bg); border-color: transparent; color: var(--bad); }

/* ── Modal / detail sheet ── */
#pmodal {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .45);
  display: none; align-items: flex-start; justify-content: center;
  overflow: auto; z-index: 60; padding: 40px 16px;
}
#pmodal.open { display: flex; }
.pcard {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: 16px; max-width: 920px; width: 100%;
  padding: 22px 26px 18px; box-shadow: var(--shadow-lg);
  position: relative; margin: auto;
}
.pclose {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--bg);
  cursor: pointer; color: var(--mut); font-size: 18px;
}
.pclose:hover { color: var(--fg); }
.phead { font-size: 18px; font-weight: 750; padding-right: 36px; }
.pax {
  color: var(--mut); font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; margin-left: 8px; font-weight: 600;
}
.pabout { opacity: .9; margin: 8px 0 16px; color: var(--mut); }
.pcols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pcols.single { grid-template-columns: 1fr; }
.plabel { font-size: 12px; font-weight: 750; color: var(--a); margin-bottom: 6px; }
.pside:last-child .plabel { color: var(--b); }
ul.findings { margin: 0; padding-left: 0; list-style: none; }
ul.findings li {
  margin: 7px 0; font-size: 13.5px; display: flex; gap: 8px; align-items: flex-start;
}
.chip {
  display: inline-block; font-size: 10px; font-weight: 750; text-transform: uppercase;
  border-radius: 5px; padding: 2px 6px; min-width: 44px; text-align: center; flex: none;
}
.chip.pass { background: var(--ok-bg); color: var(--ok); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.fail { background: var(--bad-bg); color: var(--bad); }
.chip.info { background: var(--accent-soft); color: var(--accent); }
.prem { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.prem h4 {
  margin: 0 0 8px; font-size: 11px; text-transform: uppercase;
  letter-spacing: .06em; color: var(--mut);
}
ul.remlist { margin: 0; padding-left: 18px; }
ul.remlist li { margin: 6px 0; font-size: 13.5px; }
.pnote { color: var(--mut); font-size: 11.5px; margin-top: 14px; }
ol.ranked { margin: 0; padding-left: 0; list-style: none; }
ol.ranked li {
  margin: 9px 0; font-size: 13.5px; display: flex; gap: 8px; align-items: flex-start;
}
.rank { flex: none; color: var(--mut); font-weight: 750; min-width: 18px; text-align: right; font-variant-numeric: tabular-nums; }
.gap {
  flex: none; background: var(--accent-soft); color: var(--accent);
  font-size: 10px; font-weight: 750; border-radius: 5px; padding: 2px 6px;
  margin-top: 1px; white-space: nowrap; font-variant-numeric: tabular-nums;
}
ol.ranked .st { flex: none; display: none; }
ol.ranked li .st.fail { display: inline; }
.it { flex: 1; min-width: 0; }
.it b { color: var(--fg); }
.rec {
  margin-left: 8px; font-size: 10px; font-weight: 750; text-transform: uppercase;
  letter-spacing: .04em; background: var(--ok-bg); color: var(--ok);
  border-radius: 5px; padding: 2px 6px;
}
.infoitem {
  color: var(--warn); font-size: 12.5px; margin-top: 10px;
  border-top: 1px dashed var(--line); padding-top: 8px;
}
li.none { color: var(--ok); }
.llms-pre {
  white-space: pre-wrap; word-break: break-word; margin: 0;
  font-size: 12.5px; line-height: 1.55; max-height: 55vh; overflow: auto;
  background: var(--bg); padding: 14px; border-radius: 8px;
  border: 1px solid var(--line);
}

/* ── Chat drawer ── */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .35);
  z-index: 70; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer-backdrop:not(.open) { visibility: hidden; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(var(--drawer-w), 100vw);
  background: var(--bg-elev); border-left: 1px solid var(--line);
  z-index: 80; transform: translateX(100%); transition: transform .25s ease;
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
  visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }
.drawer-head {
  flex: none; padding: 16px 18px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.drawer-head h2 { margin: 0; font-size: 16px; font-weight: 750; flex: 1; }
.drawer-body {
  flex: 1; min-height: 0; display: flex; flex-direction: column;
  padding: 12px 14px 14px;
}
.chat-root { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.segmented {
  display: flex; flex-wrap: wrap; gap: 4px; background: var(--muted-bg);
  padding: 4px; border-radius: 10px; width: 100%;
}
.segmented button {
  flex: 1; border: 0; background: transparent; color: var(--mut);
  font-size: 12px; font-weight: 650; padding: 7px 8px; border-radius: 8px;
  cursor: pointer; white-space: nowrap;
}
.segmented button.active {
  background: var(--bg-elev); color: var(--fg); box-shadow: var(--shadow);
}
.chat-root #meta, .chat-root .meta {
  color: var(--mut); font-size: 12px; flex: none; min-height: 16px; margin-bottom: 6px;
}
.chat-root #log, .chat-root .log {
  flex: 1; overflow-y: auto; margin: 4px 0 10px; padding: 2px;
  min-height: 120px; display: flex; flex-direction: column; gap: 10px;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chip-btn {
  border: 1px solid var(--line); background: var(--bg); color: var(--fg);
  border-radius: 999px; padding: 6px 11px; font-size: 12.5px; font-weight: 600;
  cursor: pointer;
}
.chip-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.bubble {
  max-width: 94%; padding: 10px 14px; border-radius: 12px;
  word-break: break-word; line-height: 1.55; border: 1px solid var(--line);
  position: relative;
}
.bubble.user {
  align-self: flex-end; background: var(--a-soft); border-color: transparent;
  white-space: pre-wrap;
}
.bubble.assistant { align-self: flex-start; background: var(--bg); }
.bubble .who {
  font-size: 10px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--mut); margin-bottom: 6px; font-weight: 750;
}
.bubble .md { font-size: 14px; overflow-x: auto; }
.bubble .md > :first-child { margin-top: 0; }
.bubble .md > :last-child { margin-bottom: 0; }
.bubble .md p { margin: 0 0 .7em; }
.bubble .md h1, .bubble .md h2, .bubble .md h3, .bubble .md h4 {
  margin: .9em 0 .4em; font-weight: 750; line-height: 1.3;
}
.bubble .md h1 { font-size: 1.2em; }
.bubble .md h2 { font-size: 1.1em; }
.bubble .md h3 { font-size: 1.05em; }
.bubble .md ul, .bubble .md ol { margin: 0 0 .7em; padding-left: 1.4em; }
.bubble .md li { margin: .2em 0; }
.bubble .md blockquote {
  margin: .5em 0; padding: .4em 0 .4em 12px;
  border-left: 3px solid var(--line); color: var(--mut);
}
.bubble .md hr { border: 0; border-top: 1px solid var(--line); margin: 1em 0; }
.bubble .md a { color: var(--accent); }
.bubble .md code {
  background: var(--muted-bg); padding: 1px 5px; border-radius: 4px;
  font-size: 12px; font-family: var(--mono);
}
.bubble .md pre {
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px; overflow-x: auto; margin: 0 0 .7em;
}
.bubble .md pre code { background: none; padding: 0; }
.bubble .md table { border-collapse: collapse; margin: 0 0 .7em; width: 100%; font-size: 13px; }
.bubble .md th, .bubble .md td { border: 1px solid var(--line); padding: 5px 8px; text-align: left; }
.bubble .md th { background: var(--muted-bg); color: var(--mut); font-size: 11px; text-transform: uppercase; }
.bubble.streaming .md::after {
  content: "▍"; display: inline-block; margin-left: 2px;
  animation: blink 1s step-end infinite; color: var(--accent); font-weight: 700;
}
.bubble.waiting .md::after { display: none; }
.bubble .wait-status {
  display: flex; align-items: baseline; gap: 2px;
  color: var(--mut); font-size: 14px; font-style: italic;
  min-height: 1.4em;
}
.bubble .wait-label {
  display: inline-block;
  animation: wait-fade .45s ease;
}
.bubble .wait-dots::after {
  content: "";
  animation: wait-dots 1.2s steps(4, end) infinite;
}
@keyframes wait-fade {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes wait-dots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
}
@keyframes blink { 50% { opacity: 0; } }
.bubble .copy-btn {
  position: absolute; top: 8px; right: 8px;
  font-size: 11px; padding: 3px 7px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--bg-elev);
  color: var(--mut); cursor: pointer; opacity: 0; transition: opacity .15s;
}
.bubble.assistant:hover .copy-btn { opacity: 1; }
.composer { display: flex; gap: 8px; flex: none; }
.composer textarea {
  flex: 1; resize: vertical; min-height: 52px; max-height: 140px;
  border-radius: 11px; padding: 11px 12px;
}
.composer button {
  background: var(--accent); color: #fff; border: 0; padding: 0 16px;
  border-radius: 11px; font-weight: 700; cursor: pointer; align-self: stretch;
}
.composer button:disabled { opacity: .5; cursor: not-allowed; }
.hint { color: var(--mut); font-size: 12px; margin-top: 8px; }
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 50;
  display: none; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; border: 0;
  padding: 12px 18px; border-radius: 999px; font-weight: 700;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent); cursor: pointer;
}
body.has-report .fab { display: inline-flex; }
body.drawer-open .fab { display: none; }
@media (max-width: 860px) {
  body.has-report .fab { display: none; }
}

/* ── Pricing (landing section) ── */
.pricing-section {
  margin: 0;
  scroll-margin-top: calc(var(--header-h) + 16px);
  text-align: center;
}
.pricing-section > .lede {
  max-width: 560px;
  margin: 0 auto 18px;
}
.pricing-section .section-kicker { margin-bottom: 6px; }
.pricing-section > h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -0.02em;
}
.beta-banner {
  margin: 8px auto 28px;
  max-width: 640px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-fg);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  font-size: 13.5px;
  line-height: 1.45;
  text-align: center;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
  text-align: left;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px 18px;
  box-shadow: var(--shadow);
}
.price-card h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}
.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--accent) 22%, transparent);
}
.price-card.soldout {
  opacity: .72;
  background: color-mix(in srgb, var(--bg-elev) 88%, var(--mut));
}
.price-badge {
  position: absolute;
  top: -10px;
  left: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
}
.price-badge.warn {
  background: var(--warn);
  color: #fff;
}
.price-line {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 10px;
}
.price-old {
  color: var(--mut);
  text-decoration: line-through;
  font-size: 15px;
  font-weight: 500;
}
.price-now {
  font-size: 22px;
  font-weight: 750;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.price-sub {
  margin: -4px 0 0;
  color: var(--mut);
  font-size: 12.5px;
  line-height: 1.4;
}
.price-pitch {
  margin: 0;
  color: var(--mut);
  font-size: 13.5px;
  line-height: 1.45;
  flex: 0 0 auto;
}
.price-features {
  margin: 4px 0 8px;
  padding: 0;
  list-style: none;
  flex: 1;
}
.price-features li {
  position: relative;
  padding: 5px 0 5px 18px;
  font-size: 13px;
  color: var(--fg);
  line-height: 1.4;
}
.price-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .55;
}
.price-card .btn {
  width: 100%;
  margin-top: auto;
}
.faq {
  margin: 48px auto 0;
  max-width: 640px;
  text-align: left;
}
.faq h2 {
  margin: 0 0 14px;
  font-size: 20px;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  padding: 0 14px;
  margin-bottom: 8px;
}
.faq summary {
  cursor: pointer;
  font-weight: 650;
  padding: 12px 0;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--mut);
  font-weight: 500;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin: 0 0 14px;
  color: var(--mut);
  font-size: 14px;
  line-height: 1.5;
}
.interest-card h2 { margin: 0 0 6px; font-size: 20px; }
.interest-card .lede { margin: 0 0 16px; font-size: 14px; }
.interest-form { display: flex; flex-direction: column; gap: 12px; }
.interest-form[hidden] { display: none !important; }
.interest-form .opt { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--mut); }
.interest-err {
  margin: 0;
  color: var(--bad);
  background: var(--bad-bg);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
}
.interest-ok {
  margin: 0;
  color: var(--ok);
  background: var(--ok-bg);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 650;
}

/* ── Responsive ── */
@media (max-width: 980px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .explain { grid-template-columns: 1fr; }
  .howto { grid-template-columns: 1fr; }
  .sample-section { grid-template-columns: 1fr; gap: 18px; max-width: 680px; }
  .sample-copy { text-align: center; max-width: 520px; margin: 0 auto; }
  .score-grid { grid-template-columns: 1fr; }
  .skeleton { grid-template-columns: 1fr; }
  .advanced-grid, .two, .cols, .pcols { grid-template-columns: 1fr; }
  .domain-row { flex-direction: column; }
  .domain-row .btn { width: 100%; }
  /* name + points on one line, bar full-width underneath */
  .dim-row { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .dim-row:not(.compare) > .bar { grid-column: 1 / -1; order: 3; }
  .dim-row.compare { grid-template-columns: 1fr 1fr; }
  .dim-row.compare > .dim-name { grid-row: 1; grid-column: 1; }
  .dim-row.compare > .dd2 { grid-row: 1; grid-column: 2; }
  .dim-row.compare > :nth-child(2) { grid-row: 2; grid-column: 1; }
  .dim-row.compare > :nth-child(3) { grid-row: 2; grid-column: 2; }
  .site-header {
    padding: 0 16px; height: auto; min-height: var(--header-h);
    flex-wrap: wrap; gap: 0;
  }
  .brand-sub { display: none; }
  .nav-toggle,
  .nav-toggle.icon-btn { display: grid; }
  .header-nav {
    display: none; flex-direction: column; align-items: stretch;
    width: 100%; gap: 4px; padding: 8px 0 14px;
    border-top: 1px solid var(--line); margin-left: 0;
  }
  body.nav-open .header-nav { display: flex; }
  .header-nav .nav-link,
  .header-nav .nav-user,
  .header-nav .nav-logout,
  .header-nav .icon-btn,
  .header-nav .nav-dropdown { width: 100%; }
  .header-nav .nav-link { border-radius: 10px; padding: 11px 12px; }
  .header-nav .nav-link.nav-cta { margin-right: 0; text-align: center; }
  .header-nav .nav-user {
    max-width: none; padding: 8px 12px; font-size: 13px;
  }
  .header-nav .icon-btn { width: 100%; height: 40px; border-radius: 10px; }
  .nav-dropdown-toggle { width: 100%; text-align: left; }
  .nav-menu {
    position: static; min-width: 0; box-shadow: none;
    border: 1px solid var(--line); margin-top: 4px;
  }
  .page { padding: 20px 16px 72px; }
  .hero { margin: -20px -16px 0; padding: 36px 16px 28px; }
  .marketing > * + * {
    margin-top: 36px;
    padding-top: 32px;
  }
  .audit-expectations { gap: 6px 12px; }
  .sample-section { max-width: 680px; }
  .sample-row { grid-template-columns: 82px minmax(0, 1fr); gap: 8px 12px; }
  .sample-level { grid-column: 2; justify-self: start; }
  .search-input { max-width: none; }
  .toolbar > * { flex: 1 1 100%; }
  /* iOS Safari zooms into any focused field under 16px */
  input, select, textarea { font-size: 16px !important; }
  #pmodal { padding: 0; }
  .pcard {
    border-radius: 0; min-height: 100vh; min-height: 100dvh; max-width: none;
    padding: 20px 16px 40px;
  }
  .pclose {
    position: sticky; top: 10px; float: right; z-index: 2;
    margin: -8px -4px 0 8px; width: 40px; height: 40px;
  }
  .drawer { width: 100vw; }
  .bubble .copy-btn { opacity: 1; }
  .fab { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }

  /* Audits / users: card layout instead of wide table */
  .table-scroll:has(table.alist) {
    overflow: visible; border: 0; background: transparent;
  }
  table.alist.alist-compact thead { display: none; }
  table.alist.alist-compact,
  table.alist.alist-compact tbody,
  table.alist.alist-compact tr,
  table.alist.alist-compact td {
    display: block; width: 100%;
  }
  table.alist.alist-compact {
    border: 0; background: transparent; overflow: visible;
  }
  table.alist.alist-compact tr.rowlink,
  table.alist.alist-compact tbody > tr {
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg-elev);
    padding: 10px 12px 12px;
    overflow: hidden;
  }
  table.alist.alist-compact td {
    padding: 4px 0; border: 0; white-space: normal;
  }
  table.alist.alist-compact td[data-col="id"] { display: none; }
  table.alist.alist-compact td.dom {
    font-size: 15px; padding-bottom: 6px;
  }
  table.alist.alist-compact td.score,
  table.alist.alist-compact td.score-pair {
    display: inline-flex; width: auto; align-items: center; gap: 6px;
    margin-right: 8px; margin-top: 4px;
  }
  table.alist.alist-compact td.score::before,
  table.alist.alist-compact td.score-pair::before {
    content: attr(data-label);
    font-size: 10px; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; color: var(--mut); margin-right: 2px;
  }
  table.alist.alist-compact td.mid[data-col="when"]::before,
  table.alist.alist-compact td.mid[data-col="by"]::before,
  table.alist.alist-compact td.mid[data-label]::before {
    content: attr(data-label) ": ";
    font-size: 11px; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; color: var(--mut);
  }
  table.alist.alist-compact td.row-actions {
    display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; padding-top: 8px;
    border-top: 1px solid var(--line);
  }
  table.alist.alist-compact td.row-actions .btn { flex: 1; min-width: 90px; }
  table.alist.alist-compact td.err {
    color: var(--bad); font-weight: 650; margin-top: 4px;
  }
}
@media (max-width: 560px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .report-hero h2 { font-size: 21px; word-break: break-word; }
  .report-actions { width: 100%; }
  .report-actions .btn { flex: 1; }
  .score-compare { gap: 6px; }
  .score-compare .ring { width: 72px; height: 72px; }
}
@media (max-width: 520px) {
  .badge-internal { display: none; }
}
@media (hover: none) {
  .score-card[data-tip]::after,
  .score-card[data-tip]::before { display: none; }
  .score-card:hover, .explain-card:hover { transform: none; }
}

/* ── Footer / consent / legal / login ── */
.site-footer {
  margin-top: auto; width: 100%; min-width: 0;
  border-top: 1px solid var(--line);
  padding: 18px 28px 22px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 12px 28px;
}
.footer-copy {
  margin: 0; color: var(--mut); font-size: 13px; line-height: 1.4;
}
.footer-nav {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  align-items: center;
}
.footer-nav a {
  color: var(--mut); font-size: 13px; font-weight: 600; text-decoration: none;
}
.footer-nav a:hover { color: var(--fg); text-decoration: underline; }
@media (max-width: 560px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

.newsletter-form { display: flex; flex-direction: column; gap: 8px; }
.newsletter-form[hidden],
.newsletter-form.is-done .newsletter-row,
.newsletter-form.is-done .nl-captcha,
.newsletter-form.is-done .note-sm { display: none !important; }
.newsletter-row {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.newsletter-row .nl-email {
  flex: 1 1 180px; min-width: 0;
  padding: 8px 12px; font-size: 14px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--fg);
}
.newsletter-form .nl-captcha { margin: 0; }
.newsletter-form .nl-captcha input[type=text] { max-width: 120px; }
.newsletter-form .note-sm { margin: 0; font-size: 12px; color: var(--mut); }
.newsletter-card .newsletter-form .btn { align-self: flex-start; }

.blog-index { max-width: 760px; }
.blog-hero { margin: 0 0 28px; }
.blog-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 4vw, 42px);
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.blog-hero .lede { margin: 0; max-width: 46ch; }
.blog-feed {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.blog-feed > li { margin: 0; }
.blog-card {
  display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: stretch;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  box-shadow: var(--shadow);
  text-decoration: none; color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.blog-card:hover {
  text-decoration: none;
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.blog-card-feature {
  grid-template-columns: 1fr;
  padding: 26px 28px 22px;
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--accent) 12%, var(--bg-elev)), var(--bg-elev) 48%);
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
}
.blog-card-copy { display: flex; flex-direction: column; min-width: 0; }
.blog-card-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  margin-bottom: 8px;
}
.blog-card h2, .blog-card h3 {
  margin: 0 0 6px; font-size: 18px; line-height: 1.28;
  letter-spacing: -0.02em; color: var(--fg);
}
.blog-card-feature h2 {
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 8px;
}
.blog-summary {
  margin: 0; font-size: 14px; color: var(--mut); line-height: 1.5;
}
.blog-card-feature .blog-summary { font-size: 15.5px; max-width: 62ch; }
.blog-card time { font-size: 13px; color: var(--mut); }
.blog-read {
  margin-top: 16px; font-size: 14px; font-weight: 700; color: var(--accent-fg);
}
.blog-date-rail {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 76px; height: 100%; padding: 8px 4px;
  border-radius: 12px; background: var(--muted-bg); color: var(--fg);
}
.blog-date-day {
  font-size: 22px; font-weight: 750; letter-spacing: -0.04em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.blog-date-mon {
  margin-top: 4px; font-size: 11px; font-weight: 750;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--mut);
}
.blog-date-year { font-size: 11px; color: var(--mut); font-variant-numeric: tabular-nums; }
.blog-axis {
  display: inline-flex; align-items: center; white-space: nowrap;
  padding: 3px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 750;
  letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--muted-bg); color: var(--mut);
}
.blog-axis-seo { color: var(--accent-fg); background: var(--accent-soft); }
.blog-axis-geo { color: var(--a); background: var(--a-soft); }
.blog-axis-email { color: var(--b); background: var(--b-soft); }
.blog-nl-link {
  margin: 22px 0 0; padding: 16px 18px;
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  background: color-mix(in srgb, var(--muted-bg) 70%, transparent);
  font-size: 14.5px; color: var(--mut);
}
.blog-nl-link a { font-weight: 700; }

.blog-post { max-width: 680px; }
.blog-crumb {
  margin: 0 0 14px; font-size: 13.5px; color: var(--mut);
}
.blog-crumb a { color: var(--mut); font-weight: 650; text-decoration: none; }
.blog-crumb a:hover { color: var(--fg); text-decoration: underline; }
.blog-post > h1 {
  font-size: clamp(28px, 4vw, 36px); margin: 0 0 12px;
  line-height: 1.15; letter-spacing: -0.03em;
}
.blog-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin: 0 0 16px; font-size: 13.5px; color: var(--mut);
}
.blog-post > .lede { margin: 0 0 22px; }
.blog-body { font-size: 15.5px; line-height: 1.65; color: var(--fg); }
.blog-body h2 { font-size: 18px; margin: 26px 0 8px; }
.blog-body p { margin: 0 0 14px; }
.blog-body ul { padding-left: 1.2em; margin: 0 0 14px; }
.blog-body li { margin: 6px 0; }
.blog-body code {
  font-size: 0.9em; padding: 1px 5px;
  border-radius: 4px; background: var(--bg-muted, rgba(127,127,127,0.12));
}
.blog-cta {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 32px 0 8px; padding-top: 20px;
  border-top: 1px solid var(--line);
}
@media (max-width: 560px) {
  .blog-card { grid-template-columns: 64px 1fr; gap: 12px; padding: 14px; }
  .blog-card-feature { grid-template-columns: 1fr; padding: 20px 18px 18px; }
  .blog-date-rail { min-height: 68px; }
  .blog-date-day { font-size: 20px; }
}

.consent-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 16px 20px;
}
.consent-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 14px 20px;
  align-items: center; justify-content: space-between;
}
.consent-inner p { margin: 0; font-size: 13.5px; color: var(--mut); flex: 1; min-width: 220px; }
.consent-actions { display: flex; gap: 8px; flex-shrink: 0; }

.legal { max-width: 720px; }
.legal h1 { font-size: 28px; margin: 0 0 8px; }
.legal h2 { font-size: 18px; margin: 28px 0 8px; }
.legal ul { padding-left: 1.2em; }
.legal li { margin: 6px 0; }
.legal .cookie-table { width: 100%; margin-top: 10px; }

.contact-hero { max-width: 560px; margin-bottom: 8px; }
.contact-hero h1 { font-size: 28px; margin: 0 0 8px; }
.contact-card {
  max-width: 560px;
  margin: 12px 0 8px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius, 10px);
  background: var(--bg-elev, var(--bg));
}
.contact-form { display: flex; flex-direction: column; gap: 12px; }
.contact-form[hidden] { display: none !important; }
.contact-form .btn { align-self: flex-start; min-width: 140px; }
.captcha-field input[type=text] { max-width: 140px; }
.hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.login-card {
  max-width: 420px;
  display: flex; flex-direction: column; gap: 14px;
  padding: 24px;
}
.login-card .btn { width: 100%; margin-top: 2px; }
.login-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 0;
  padding-top: 28px;
  padding-bottom: 28px;
}
.login-hero .lede { max-width: 460px; }
.auth-switch {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--mut);
}
.auth-switch a { color: var(--fg); font-weight: 600; }
.page:has(.login-hero) { display: flex; flex-direction: column; }

body[data-role="guest"] .auth-chat-only { display: none !important; }
body:not([data-role="guest"]) .guest-chat-cta { display: none !important; }

/* Cookies & consent and technical details are admin-only. */
body:not([data-role="admin"]) .beta-section,
body:not([data-role="admin"]) details.tech { display: none !important; }

/* Stats section hidden until animated in */
#statsSection.hidden { display: none !important; }

/* ── Print ── */
@media print {
  .site-header, .fab, .drawer, .drawer-backdrop, #status,
  .audit-card, .marketing, .report-actions, .btn, .pclose,
  .site-footer, .consent-banner { display: none !important; }
  body { background: #fff; color: #000; }
  .page { max-width: none; padding: 0; }
  .score-card, .fix-item, .dim-row, details.tech {
    box-shadow: none; break-inside: avoid;
  }
  .score-card[data-tip]::after,
  .score-card[data-tip]::before { display: none !important; }
  details.tech { display: block; }
  details.tech > summary { display: none; }
  .tech-body { display: block !important; }
}
