/* ==========================================================================
   AI Video Tools — styles.css
   Paper base · deep pine accent · measured, lab-report feel
   Light and dark, driven entirely by tokens on :root.
   ========================================================================== */

:root {
  /* neutrals — warm-biased, picked not inherited */
  --paper: #f7f6f2;
  --surface: #ffffff;
  --surface-2: #f0efe9;
  --ink: #1a1c19;
  --ink-2: #43483f;
  --muted: #656c61;
  --line: #dedcd3;
  --line-strong: #c3c1b5;

  /* single accent */
  --accent: #1b5e4a;
  --accent-hover: #144a3a;
  --accent-soft: #dcebe4;
  --accent-ink: #ffffff;

  /* semantic — separate from the accent */
  --pass: #2b7549;
  --pass-soft: #e0efe5;
  --warn: #85610f;
  --warn-soft: #f5ead2;
  --stop: #a63a28;
  --stop-soft: #f5e0db;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(26,28,25,.05), 0 10px 28px -14px rgba(26,28,25,.22);
  --font-body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --header-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #141613;
    --surface: #1c1f1b;
    --surface-2: #232722;
    --ink: #e9ebe5;
    --ink-2: #bcc2b6;
    --muted: #8d958a;
    --line: #2e332c;
    --line-strong: #414839;

    --accent: #6cc3a2;
    --accent-hover: #85d3b5;
    --accent-soft: #163026;
    --accent-ink: #10201a;

    --pass: #5cc98c;
    --pass-soft: #17301f;
    --warn: #d6a63c;
    --warn-soft: #322611;
    --stop: #e8806b;
    --stop-soft: #371a14;

    --shadow: 0 1px 2px rgba(0,0,0,.45), 0 10px 28px -14px rgba(0,0,0,.7);
  }
}

:root[data-theme="dark"] {
  --paper: #141613;
  --surface: #1c1f1b;
  --surface-2: #232722;
  --ink: #e9ebe5;
  --ink-2: #bcc2b6;
  --muted: #8d958a;
  --line: #2e332c;
  --line-strong: #414839;
  --accent: #6cc3a2;
  --accent-hover: #85d3b5;
  --accent-soft: #163026;
  --accent-ink: #10201a;
  --pass: #5cc98c;
  --pass-soft: #17301f;
  --warn: #d6a63c;
  --warn-soft: #322611;
  --stop: #e8806b;
  --stop-soft: #371a14;
  --shadow: 0 1px 2px rgba(0,0,0,.45), 0 10px 28px -14px rgba(0,0,0,.7);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-head); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(30px, 4.6vw, 50px); line-height: 1.06; letter-spacing: -.02em; font-weight: 700; }
h2 { font-size: clamp(23px, 2.8vw, 32px); line-height: 1.15; letter-spacing: -.014em; font-weight: 700; }
h3 { font-size: 17px; line-height: 1.3; font-weight: 700; letter-spacing: -.005em; }
p { margin: 0; }
a { color: var(--accent); }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 720px; }
.mono { font-family: var(--font-mono); }

.visually-hidden {
  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: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; }

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

/* ----- Header ----- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
         flex: 0 0 auto; }
.brand-mark {
  width: 16px; height: 16px; border-radius: 3px;
  background: var(--accent);
  box-shadow: inset 0 0 0 3px var(--paper), 0 0 0 1px var(--accent);
}
/* nowrap: once the nav became visible below 860px it squeezed the brand
   into two lines */
.brand-text { font-family: var(--font-head); font-weight: 700; font-size: 17px; letter-spacing: -.01em;
              white-space: nowrap; }
.nav { display: flex; gap: 22px; }
.nav a {
  font-size: 14px; color: var(--ink-2); text-decoration: none;
  padding: 4px 0; border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ----- Hero ----- */
.hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.hero-inner { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.kicker {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.hero h1 { max-width: 19ch; }
.hero-lede { font-size: clamp(17px, 2vw, 19.5px); line-height: 1.55; color: var(--ink-2); max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 20px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 500; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 7px 13px; font-size: 13.5px; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 0; margin: 20px 0 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--surface);
}
.hero-stats > div {
  padding: 14px 22px; display: flex; flex-direction: column; gap: 2px;
  border-right: 1px solid var(--line); flex: 1 1 auto; min-width: 128px;
}
.hero-stats > div:last-child { border-right: none; }
.hero-stats dt {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.hero-stats dd {
  margin: 0; font-family: var(--font-head); font-size: 24px;
  font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}

/* ----- Sections ----- */
.section { padding: 64px 0; }
.section-alt { background: var(--surface-2); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; max-width: 68ch; }
.section-head p { color: var(--ink-2); font-size: 16.5px; }

/* ----- Controls ----- */
.controls {
  display: flex; flex-wrap: wrap; gap: 16px 24px;
  align-items: center; justify-content: space-between; margin-bottom: 16px;
}
.filter-set { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-body); font-size: 13.5px; font-weight: 500;
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--ink-2);
  border: 1px solid var(--line-strong);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.toggle input { accent-color: var(--accent); width: 16px; height: 16px; cursor: pointer; }

/* ----- Comparison table ----- */
.table-wrap {
  overflow-x: auto; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface);
}
table.cmp { border-collapse: collapse; width: 100%; min-width: 940px; }
table.cmp thead th {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted); font-weight: 500;
  text-align: center; padding: 13px 12px; white-space: nowrap;
  border-bottom: 1px solid var(--line-strong); background: var(--surface);
}
table.cmp thead th.th-tool { text-align: left; }
table.cmp thead th[data-sort] { cursor: pointer; user-select: none; }
table.cmp thead th[data-sort]:hover { color: var(--accent); }
table.cmp thead th[aria-sort] { color: var(--accent); }
table.cmp thead th[data-sort]::after { content: ""; display: inline-block; width: 0; margin-left: 5px; }
table.cmp thead th[aria-sort="descending"]::after { content: "▾"; width: auto; }
table.cmp thead th[aria-sort="ascending"]::after { content: "▴"; width: auto; }

table.cmp tbody td {
  padding: 14px 12px; text-align: center; vertical-align: middle;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 13px;
  font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap;
}
table.cmp tbody tr:last-child td { border-bottom: none; }
table.cmp tbody tr:hover { background: var(--surface-2); }
td.cell-tool { text-align: left; white-space: normal; min-width: 250px; }

.tool-id { display: flex; flex-direction: column; gap: 3px; }
.tool-name {
  font-family: var(--font-body); font-size: 15.5px; font-weight: 600;
  color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.tool-blurb { font-family: var(--font-body); font-size: 13px; line-height: 1.45; color: var(--muted); white-space: normal; max-width: 44ch; }

/* tool note under the best-for line */
.tool-note {
  font-family: var(--font-body); font-size: 12.5px; line-height: 1.4;
  color: var(--muted); white-space: normal; max-width: 44ch;
  padding-left: 9px; border-left: 2px solid var(--line);
}
.yes { color: var(--pass); font-weight: 600; font-size: 13.5px; }

/* score cells */
.score { font-size: 15px; font-weight: 600; color: var(--ink); }
.score-na { color: var(--muted); font-size: 12px; }
.dash { color: var(--line-strong); }

/* pills */
.pill {
  display: inline-block; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .07em; text-transform: uppercase; font-weight: 600;
  padding: 3px 7px; border-radius: 3px; white-space: nowrap;
}
.pill-untested { background: var(--warn-soft); color: var(--warn); }
.pill-caution  { background: var(--stop-soft); color: var(--stop); }
.pill-best     { background: var(--pass-soft); color: var(--pass); }
.pill-noprog   { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }

.demand { display: flex; flex-direction: column; gap: 1px; align-items: center; }
.demand .v { font-size: 13.5px; color: var(--ink); font-weight: 500; }
.demand .k { font-size: 10.5px; color: var(--muted); }

.table-note { margin-top: 12px; font-size: 13.5px; color: var(--muted); max-width: 70ch; }

.empty-row td {
  padding: 40px 16px !important; text-align: center !important;
  color: var(--muted); font-family: var(--font-body) !important;
}

/* ----- Prompts list ----- */
.prompts { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.prompts li { background: var(--surface); padding: 18px 20px; display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; }
.prompt-id {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: var(--accent); background: var(--accent-soft);
  padding: 4px 0; border-radius: var(--radius-sm); text-align: center;
}
.prompts h3 { margin-bottom: 3px; }
.prompts p { font-size: 14.5px; color: var(--ink-2); max-width: 72ch; }

.method-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 7px; }
.note p { font-size: 14.5px; color: var(--ink-2); }

/* ----- Tier 2 cards ----- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 11px;
}
.card-top { display: flex; flex-direction: column; gap: 6px; }
.card h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card p { font-size: 14.5px; color: var(--ink-2); }
.card dl {
  margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 5px 14px;
  font-family: var(--font-mono); font-size: 12.5px;
  border-top: 1px solid var(--line); padding-top: 12px; margin-top: auto;
}
.card dt { color: var(--muted); }
.card dd { margin: 0; text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ----- Disclosure ----- */
#disclosure .container { display: flex; flex-direction: column; gap: 14px; }
#disclosure p { color: var(--ink-2); }
.fineprint { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }

/* ----- Footer ----- */
.site-footer { border-top: 1px solid var(--line); padding: 26px 0; background: var(--surface); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.footer-inner p { font-size: 13.5px; color: var(--muted); }
/* wrap, or six links at 18px gaps measure 385px and push every page
   into horizontal scroll on a 375px phone */
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.site-footer nav a { font-size: 13.5px; color: var(--ink-2); text-decoration: none; }
.site-footer nav a:hover { color: var(--accent); }

/* ----- Responsive ----- */
@media (max-width: 860px) {
  /* The nav used to be display:none here with nothing in its place, which
     left every page below 860px with no navigation but the footer. It now
     scrolls horizontally instead of disappearing. */
  .header-inner { gap: 14px; }
  .nav {
    gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; -ms-overflow-style: none;
    margin-right: -24px; padding-right: 24px;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
            mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; font-size: 14px; }
  .hero { padding: 52px 0 40px; }
  .section { padding: 48px 0; }
  .hero-stats > div { min-width: 50%; border-bottom: 1px solid var(--line); }
}

/* --------------------------------------------------------------------------
   Comparison table -> cards.

   The table is 7 columns and ~1030px wide, two of them carrying prose. Inside
   a phone column that is 700px of sideways scrolling with the tool name — the
   only thing identifying the row — panned off screen. Below 760px each row
   becomes a self-contained card instead, labelled from the td's data-label.
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {
  .table-wrap {
    overflow-x: visible; border: 0; border-radius: 0; background: none;
  }
  table.cmp { display: block; min-width: 0; width: 100%; }
  table.cmp thead { display: none; }
  table.cmp tbody { display: grid; gap: 14px; }

  table.cmp tbody tr {
    display: grid; gap: 0;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--surface); padding: 16px 16px 6px; box-shadow: var(--shadow);
  }
  table.cmp tbody tr:hover { background: var(--surface); }

  table.cmp tbody td {
    display: grid; grid-template-columns: 8.5rem minmax(0, 1fr);
    align-items: baseline; gap: 10px;
    text-align: left; white-space: normal;
    padding: 9px 0; border-bottom: 1px solid var(--line);
  }
  table.cmp tbody td[data-label]::before {
    content: attr(data-label);
    font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .09em;
    text-transform: uppercase; color: var(--muted);
  }

  /* Name block and the call to action span the card rather than sitting in
     a label/value pair. */
  table.cmp tbody td.cell-tool,
  table.cmp tbody td.cell-cta { display: block; }
  table.cmp tbody td.cell-tool {
    min-width: 0; padding: 0 0 12px; border-bottom: 1px solid var(--line-strong);
  }
  table.cmp tbody td.cell-cta { border-bottom: 0; padding: 12px 0 8px; }
  table.cmp tbody td.cell-cta .btn { width: 100%; justify-content: center; }
  table.cmp tbody tr td:last-child { border-bottom: 0; }

  .tool-blurb, .tool-note, .find-up, .find-dn { max-width: none; }
  .demand { align-items: flex-start; }
  .cov { min-width: 0; }

  .empty-row td { display: block !important; grid-template-columns: none; }
  .empty-row td::before { content: none; }
}

/* Very narrow: stack the label above its value rather than squeezing both. */
@media (max-width: 430px) {
  table.cmp tbody td { grid-template-columns: 1fr; gap: 3px; }
}
@media (max-width: 560px) {
  .prompts li { grid-template-columns: 1fr; gap: 8px; }
  .prompt-id { width: 46px; }
}

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


/* ==========================================================================
   Prose pages — /about/, /privacy/, /how-we-test/
   ========================================================================== */
.page { padding: 48px 0 72px; }
.page-head { display: flex; flex-direction: column; gap: 14px; padding-bottom: 26px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 20ch; }
.page-lede { font-size: clamp(17px, 2vw, 19.5px); line-height: 1.55; color: var(--ink-2); max-width: 60ch; }

.prose { padding-top: 30px; display: flex; flex-direction: column; gap: 14px; }
.prose h2 { font-size: clamp(20px, 2.4vw, 25px); margin-bottom: 2px; }
.prose h3 { font-size: 16.5px; }
.prose p { font-size: 16.5px; line-height: 1.68; color: var(--ink-2); max-width: 68ch; }
.prose ul, .prose ol { margin: 2px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 9px; max-width: 68ch; }
.prose li { font-size: 16.5px; line-height: 1.6; color: var(--ink-2); }
.prose li::marker { color: var(--line-strong); }
.prose strong { color: var(--ink); font-weight: 600; }

.formula {
  font-size: 14px !important; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 15px; color: var(--ink) !important;
  display: inline-block; max-width: 100%; overflow-x: auto;
}

/* full prompt list on the methodology page */
.prompts-full { list-style: none; margin: 8px 0 0 !important; padding: 0 !important; gap: 1px !important; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.prompts-full li { background: var(--surface); padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.pf-head { display: flex; align-items: center; gap: 12px; }
.pf-head .prompt-id { padding: 4px 9px; }
.prompts-full blockquote {
  margin: 0; padding: 12px 16px; background: var(--surface-2);
  border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-body); font-size: 15px; line-height: 1.55; color: var(--ink);
}
.prompts-full p { font-size: 15px; margin: 0; }

.callout-box { background: var(--warn-soft); border: 1px solid transparent; border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.callout-box h3 { color: var(--warn); }
.placeholder-note { color: var(--ink-2) !important; font-size: 15px !important; }

.page-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }

/* Generated pages (tools/, best/, compare/) wrap every table in .scroll.
   Without an overflow rule here that class is a no-op and the table simply
   spills out of its column — 14 of the site's 16 tables depend on this. */
.scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.prose .tbl {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.prose .tbl > table { margin: 0; }
.prose table td:first-child { white-space: normal; font-family: var(--font-body); font-size: 14.5px; font-weight: 500; }


/* ==========================================================================
   Evidence model — confidence tiers, coverage, findings.
   Deliberately NOT styled like a 1-5 score: these are statements about the
   evidence, not about the tool.
   ========================================================================== */
.ev-badge {
  display: inline-block; font-family: var(--font-body); font-size: 12px;
  font-weight: 600; line-height: 1.25; padding: 4px 9px; border-radius: 3px;
  white-space: nowrap; letter-spacing: -.005em;
}
.ev-strong      { background: var(--pass-soft);   color: var(--pass); }
.ev-moderate    { background: var(--accent-soft); color: var(--accent); }
.ev-limited     { background: var(--warn-soft);   color: var(--warn); }
.ev-conflict    { background: var(--warn-soft);   color: var(--warn); }
.ev-none        { background: var(--stop-soft);   color: var(--stop); }
.ev-unresearched{ background: var(--surface-2);   color: var(--muted); border: 1px solid var(--line); }

.ev-sub {
  display: block; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  margin-top: 5px;
}

/* coverage — a bar, because a bare percentage reads as a score */
.cov {
  display: block; width: 62px; height: 5px; margin: 0 auto 4px;
  background: var(--surface-2); border-radius: 3px; overflow: hidden;
}
.cov-bar { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 3px; }

/* Coverage bar width.
   This used to be an inline style="width:71%". Our own Content-Security-Policy
   is style-src 'self' with no unsafe-inline, so the browser stripped it — and
   because the element then fell back to the rule above, EVERY bar rendered
   full. A 57% coverage figure was drawn as 100%. Width now comes from these
   classes, which the CSP allows.
   Rounded to 5% steps; the exact figure is printed beside the bar. */
.cov-bar[data-pct="0"] { width: 0%; }
.cov-bar[data-pct="5"] { width: 5%; }
.cov-bar[data-pct="10"] { width: 10%; }
.cov-bar[data-pct="15"] { width: 15%; }
.cov-bar[data-pct="20"] { width: 20%; }
.cov-bar[data-pct="25"] { width: 25%; }
.cov-bar[data-pct="30"] { width: 30%; }
.cov-bar[data-pct="35"] { width: 35%; }
.cov-bar[data-pct="40"] { width: 40%; }
.cov-bar[data-pct="45"] { width: 45%; }
.cov-bar[data-pct="50"] { width: 50%; }
.cov-bar[data-pct="55"] { width: 55%; }
.cov-bar[data-pct="60"] { width: 60%; }
.cov-bar[data-pct="65"] { width: 65%; }
.cov-bar[data-pct="70"] { width: 70%; }
.cov-bar[data-pct="75"] { width: 75%; }
.cov-bar[data-pct="80"] { width: 80%; }
.cov-bar[data-pct="85"] { width: 85%; }
.cov-bar[data-pct="90"] { width: 90%; }
.cov-bar[data-pct="95"] { width: 95%; }
.cov-bar[data-pct="100"] { width: 100%; }
.cov-n {
  display: block; font-family: var(--font-mono); font-size: 11.5px;
  color: var(--ink-2); font-variant-numeric: tabular-nums;
}

/* what the research supports / limits */
td.cell-find { text-align: left !important; white-space: normal !important; min-width: 240px; }
.find-up, .find-dn {
  display: block; font-family: var(--font-body); font-size: 13px; line-height: 1.45;
  padding-left: 14px; position: relative;
}
.find-up { color: var(--ink); }
.find-dn { color: var(--muted); margin-top: 4px; }
.find-up::before { content: "+"; position: absolute; left: 0; color: var(--pass); font-weight: 700; }
.find-dn::before { content: "\2212"; position: absolute; left: 0; color: var(--stop); font-weight: 700; }

.hero-sub {
  font-size: 15.5px; line-height: 1.5; color: var(--muted);
  max-width: 54ch; padding-left: 14px; border-left: 2px solid var(--line-strong);
}

/* The line that used to be the H1. It reads as a strapline under the real
   heading, which now carries the search term. */
.hero-strap {
  font-family: var(--font-head); font-weight: 500;
  font-size: clamp(18px, 2.2vw, 21px); line-height: 1.35;
  color: var(--ink-2); max-width: 36ch; margin-top: -2px;
}

/* Contextual links into the research cluster, after the table. The nav and
   footer already carry these, but boilerplate links are discounted — these
   are the ones that actually pass equity. */
.next-reading {
  margin-top: 28px; display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.next-reading a {
  display: flex; flex-direction: column; gap: 5px;
  padding: 16px 18px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .15s ease, transform .15s ease;
}
.next-reading a:hover {
  border-color: var(--accent); transform: translateY(-1px);
}
.next-reading b {
  font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--accent);
}
.next-reading span { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .next-reading a:hover { transform: none; } }


/* ==========================================================================
   Breadcrumbs + trust-page components
   ========================================================================== */
.crumbs { margin-bottom: 22px; }
.crumbs ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .02em;
}
.crumbs li { color: var(--muted); display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--ink-2); }

.grid-earn { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; margin-top: 6px; }
.grid-earn h3 { margin-bottom: 10px; }
.earn-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.earn-list li {
  font-size: 15px; color: var(--ink); display: flex; align-items: baseline;
  gap: 9px; padding-bottom: 7px; border-bottom: 1px solid var(--line);
}
.earn-list li:last-child { border-bottom: none; }
.earn-vendor { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

.byline {
  display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--muted);
  padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line);
}
.byline b { color: var(--ink-2); font-weight: 500; }


/* ==========================================================================
   Research cluster — profiles, roundups, comparisons
   ========================================================================== */
.verdict-card {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow);
}
.verdict-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.verdict-head .eyebrow { flex: 1 1 100%; }
/* Small utilities, so generated markup never needs a style attribute —
   the CSP (style-src 'self') silently drops those. */
.mt-lg { margin-top: 22px; }
.note-sm { font-size: 14px; color: var(--muted); }
/* Left-aligned wrapping cell. Was an inline style in pricing-table.js, which
   the CSP dropped — the plan and licence columns rendered centred and clipped. */
.td-text { text-align: left; white-space: normal; }
.note-sm.mt-xs { margin-top: 8px; }
/* Neutral variant of .callout-box — grey rather than amber, for "this is not
   what you think it is" notes that are clarifying rather than cautionary. */
.callout-box.is-neutral { background: var(--surface-2); }
.callout-box.is-neutral h3 { color: var(--ink); }
.muted { color: var(--muted); }

.cov-inline { display: flex; align-items: center; gap: 8px; }
.cov-inline .cov { margin: 0; }
.verdict-card > p { font-size: 16px; color: var(--ink-2); }
.verdict-withheld {
  background: var(--warn-soft); border-left: 3px solid var(--warn);
  padding: 12px 15px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 15px !important; color: var(--ink-2) !important;
}
.verdict-facts {
  margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 18px;
  border-top: 1px solid var(--line); padding-top: 14px; font-size: 14.5px;
}
.verdict-facts dt { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.verdict-facts dd { margin: 0; color: var(--ink-2); }

.forfor { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.for-yes, .for-no {
  border-radius: var(--radius); padding: 18px 20px;
  display: flex; flex-direction: column; gap: 7px;
}
.for-yes { background: var(--pass-soft); }
.for-no  { background: var(--stop-soft); }
.for-yes h3 { color: var(--pass); }
.for-no h3  { color: var(--stop); }
.for-yes p, .for-no p { font-size: 15px !important; color: var(--ink-2) !important; }

.crit-note {
  display: block; font-family: var(--font-body); font-size: 13px;
  line-height: 1.45; color: var(--muted); margin-top: 6px;
}
.tool-inline-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.aff-disclosure {
  background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 13px 16px;
  font-size: 14.5px; line-height: 1.5; color: var(--ink-2); margin-top: 34px;
}

.tool-index { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.tool-index li {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15.5px;
}
.tool-index li:last-child { border-bottom: none; }
.tool-index .tool-blurb { flex: 1 1 100%; font-size: 13.5px; color: var(--muted); max-width: 68ch; }
