/* === PEERS COMPARE TABLE (Phase 2, 2026-05-03) === */
.peers-compare { width: 100%; min-width: 720px; border-collapse: collapse; }
.peers-compare th, .peers-compare td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.peers-compare th { color: var(--ink-soft); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.peers-compare tr.self-row { background: var(--paper-alt); }
.peers-compare tr.self-row td { font-weight: 600; }
.peers-compare .self-badge { margin-left: 8px; padding: 2px 8px; background: var(--accent); color: var(--paper); border-radius: 999px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.peers-compare a { color: var(--ink); text-decoration: none; border-bottom: 1px dashed var(--line-strong); }
.peers-compare a:hover { color: var(--accent-strong); border-bottom-color: var(--accent); }

/* === UPDATES TAB (Phase 2, 2026-05-03) === */
.updates-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; }
@media (max-width: 768px) { .updates-grid { grid-template-columns: 1fr; } }
.updates-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.updates-grid ul li { padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 0.92rem; background: var(--surface); }
.updates-grid ul li .delta-pill { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; }
.updates-grid ul li .delta-pill.up { background: rgba(74, 124, 89, 0.15); color: var(--green); }
.updates-grid ul li .delta-pill.down { background: rgba(196, 74, 61, 0.15); color: var(--red); }

/* Pricing claim list — used in the Pricing tab content panel. */
.pricing-claims li { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }

/* Screen-reader-only — used by form labels so the input has a programmatic
   name without occupying a visible grid cell. Without this, .newsletter-form's
   2-col grid wastes col 1 on the label and the Subscribe button wraps to row 2. */
.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;
}

:root {
  --paper: #faf9f5;           /* warm cream — Claude's palette */
  --paper-alt: #f3f0e8;       /* subtle band */
  --surface: #ffffff;         /* cards */
  --ink: #1a1a1a;             /* body */
  --ink-soft: #3a3a3a;        /* secondary */
  --muted: #6b6b68;           /* tertiary */
  --line: rgba(26, 26, 26, 0.10);
  --line-strong: rgba(26, 26, 26, 0.18);
  --accent: #d97757;          /* Claude orange-terracotta */
  --accent-strong: #a64a2c;   /* darker terracotta — for small labels on cream/white (passes WCAG 4.5:1) */
  --accent-soft: #f5e8dd;
  --green: #4a7c59;
  --amber: #c8973d;
  --red: #c44a3d;
  --font-body: "Inter", system-ui, sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --max: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.shell {
  min-height: 100vh;
}

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 249, 245, 0.88);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(242, 171, 39, 0.22), rgba(88, 166, 255, 0.18));
  border: 1px solid rgba(242, 171, 39, 0.35);
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.brand-copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
}

.brand-copy span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links,
.nav-actions,
.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.nav-links a,
.footer-links a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.nav-links a[aria-current="page"],
.nav-links a:hover,
.footer-links a:hover {
  color: var(--ink);
}

.button,
button,
input,
textarea,
select {
  font: inherit;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  text-decoration: none;
  transition: none;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #ffc85b);
  border-color: transparent;
  color: #09111d;
  font-weight: 700;
}

.button-secondary {
  background: transparent;
}

.hero,
.page-hero,
.section {
  border-bottom: 1px solid var(--line);
}

.hero {
  padding: 72px 0 56px;
}

.page-hero {
  padding: 56px 0 24px;
}

.section {
  padding: 56px 0;
}

.hero h1,
.page-hero h1,
.section-title,
.progress-copy h3,
.card h3,
.panel h3,
.ledger-card h3,
.peer-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero h1 {
  margin-top: 14px;
  margin-bottom: 16px;
  max-width: 10ch;
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 0.92;
}

.page-hero h1,
.section-title {
  margin-bottom: 8px;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.95;
}

.hero-subtitle,
.page-hero p,
.section-head p,
.muted,
.card p,
.panel p,
.review-card p,
.proof-item span,
.checklist li,
.field label,
.success,
.callout,
.breadcrumb,
.coming-up-list li,
.tape-item span,
.ledger-meta,
.detail-row,
.progress-copy p,
.peer-card p {
  color: var(--muted);
}

.hero-subtitle {
  margin: 0 0 28px;
  max-width: 26ch;
  font-size: 1.15rem;
}

.page-hero p,
.section-head p {
  max-width: 34ch;
}

.eyebrow,
.tier-badge,
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.live-stats span {
  color: var(--muted);
  font-size: 0.95rem;
}

.live-stats strong {
  color: var(--ink);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.9rem;
}

.card,
.panel,
.review-card,
.ledger-card,
.peer-card,
.progress-item,
.tape-item,
.table-shell,
.callout,
.proof-item,
.input,
.select,
.textarea,
.success {
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  background: var(--surface);
}

.card,
.panel,
.review-card,
.ledger-card,
.peer-card {
  padding: 24px;
}

.review-card {
  text-decoration: none;
}

.table-shell {
  overflow-x: auto;
}

.score-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.score-table th,
.score-table td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.score-table th {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.score-table tbody tr:last-child td {
  border-bottom: none;
}

.score-table td:first-child {
  width: 72px;
}

.table-link,
.progress-link {
  text-decoration: none;
}

.table-link:hover,
.progress-link:hover {
  text-decoration: underline;
}

.score-value {
  font-weight: 600;
}

.score-high {
  color: var(--green);
}

.score-medium {
  color: var(--amber);
}

.score-low {
  color: var(--red);
}

.tier-high {
  border-color: rgba(41, 192, 132, 0.40);
  color: var(--green);
}

.tier-medium {
  border-color: rgba(242, 171, 39, 0.40);
  color: var(--amber);
}

.tier-low {
  border-color: rgba(255, 107, 107, 0.40);
  color: var(--red);
}

.empty-state {
  color: var(--muted);
}

.progress-grid,
.signal-board,
.proof-doctrine,
.two-column,
.proof-grid,
.proof-ledger,
.peer-review-grid,
.ticker-row {
  display: grid;
  gap: 16px;
}

.progress-grid,
.signal-board,
.proof-ledger,
.peer-review-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.proof-doctrine {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.two-column,
.proof-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ticker-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.progress-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}

.progress-copy h3 {
  margin-bottom: 4px;
  font-size: 1.6rem;
  line-height: 1;
}

.progress-copy p {
  margin: 0;
  font-size: 0.95rem;
}

.status-badge {
  white-space: nowrap;
}

.status-active {
  border-color: rgba(242, 171, 39, 0.40);
  color: var(--amber);
}

.status-reviewed {
  border-color: rgba(41, 192, 132, 0.40);
  color: var(--green);
}

.status-scouted {
  color: var(--muted);
}

.coming-up-list,
.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.coming-up-list {
  border-top: 1px solid var(--line);
}

.coming-up-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.proof-item {
  padding: 18px;
}

.proof-item strong {
  display: block;
  margin-bottom: 4px;
}

.checklist li + li {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.callout {
  margin-top: 20px;
  padding: 16px 18px;
}

.tape-item {
  padding: 16px 18px;
}

.tape-item strong {
  display: block;
  margin-bottom: 4px;
}

.ledger-card h3,
.peer-card h3 {
  margin-bottom: 10px;
  font-size: 1.9rem;
  line-height: 1;
}

.ledger-meta,
.detail-row,
.peer-card p {
  font-size: 0.95rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.form-stack,
.field {
  display: grid;
  gap: 12px;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
}

.textarea {
  min-height: 120px;
  padding: 12px 14px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.success {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
}

.success.is-visible {
  display: block;
}

.footer {
  padding: 32px 0 48px;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-grid strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
}

@media (max-width: 840px) {
  .nav,
  .section-head,
  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .progress-grid,
  .signal-board,
  .proof-doctrine,
  .two-column,
  .proof-grid,
  .proof-ledger,
  .peer-review-grid,
  .ticker-row {
    grid-template-columns: 1fr;
  }

  .service-item {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid rgba(18, 24, 37, 0.12);
    padding-bottom: 18px;
  }

  .service-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .hero-sculpture {
    min-height: 280px;
  }

  .console-overview,
  .console-lanes {
    grid-template-columns: 1fr;
  }

  .console-overview-score {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 760px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0;
  }

  .nav-links,
  .nav-actions {
    width: 100%;
  }

  .hero-frame,
  .newsletter,
  .card,
  .panel,
  .review-card {
    padding: 22px;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .section-head,
  .metric-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

body.homepage {
  color: #eef3fb;
  background:
    radial-gradient(circle at top left, rgba(145, 240, 203, 0.12), transparent 26%),
    radial-gradient(circle at top right, rgba(104, 136, 255, 0.12), transparent 22%),
    linear-gradient(180deg, #07111b 0%, #0a1521 100%);
}

body.homepage .site-header {
  background: rgba(7, 17, 27, 0.88);
  border-bottom-color: rgba(226, 236, 248, 0.1);
}

body.homepage .brand-mark {
  background: #eef3fb;
  color: #07111b;
}

body.homepage .brand-copy strong,
body.homepage .nav-links a[aria-current="page"],
body.homepage .nav-links a:hover,
body.homepage .footer-links a:hover {
  color: #f6fbff;
}

body.homepage .brand-copy span,
body.homepage .nav-links a,
body.homepage .footer-links a,
body.homepage .muted,
body.homepage .section-head p,
body.homepage .card p,
body.homepage .panel p,
body.homepage .step-desc,
body.homepage .hero-subtitle,
body.homepage .footer-contact span,
body.homepage .footer-entity,
body.homepage .latest-review-date,
body.homepage .latest-review-score span,
body.homepage .mini-card span {
  color: rgba(226, 236, 248, 0.74);
}

.home-hero {
  padding: 56px 0 28px;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 22px;
}

.home-hero-copy,
.home-hero-panel,
.latest-review-card,
.latest-review-placeholder,
.newsletter-inline {
  border-radius: 28px;
  border: 1px solid rgba(226, 236, 248, 0.1);
  box-shadow: 0 24px 48px rgba(2, 7, 15, 0.28);
}

.home-hero-copy {
  padding: clamp(28px, 5vw, 56px);
  /* contrast fix 2026-04-30: solid dark navy + light-tinted gradient overlay,
     no body-bg bleed-through that washed out body text against the cream
     page paper. */
  background:
    radial-gradient(circle at top right, rgba(145, 240, 203, 0.18), transparent 28%),
    linear-gradient(145deg, #0d1724, #0b141f);
  color: #e8eef5;
}

/* Body text inside the dark hero card must be explicitly light — otherwise
   it inherits the global --ink (dark) and disappears on the dark gradient. */
.home-hero-copy .hero-subtitle,
.home-hero-copy p {
  color: rgba(232, 238, 245, 0.86);
}

.home-hero-copy .home-proof-strip span {
  color: rgba(232, 238, 245, 0.92);
}

.home-hero-copy .eyebrow,
.newsletter-inline .eyebrow {
  background: rgba(226, 236, 248, 0.08);
  color: rgba(226, 236, 248, 0.82);
}

.home-hero-copy h1 {
  margin: 14px 0;
  max-width: 10.5ch;
  color: #f6fbff;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.8rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.home-proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.home-proof-strip span,
.checkbox-field {
  min-height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  background: rgba(226, 236, 248, 0.06);
  border: 1px solid rgba(226, 236, 248, 0.08);
}

.home-hero-panel {
  padding: 28px;
  /* contrast fix 2026-04-30: solid dark navy. Previous 92% rgba let cream
     body paper bleed through, making the panel look almost-white in some
     browsers and washing out the metric numbers + supporting copy. */
  background:
    radial-gradient(circle at top, rgba(104, 136, 255, 0.14), transparent 36%),
    #091220;
  color: #e8eef5;
}

/* Explicit light text for everything inside the right-panel — eyebrow, body
   copy, captions — so nothing depends on cascade order. */
.home-hero-panel .eyebrow,
.home-hero-panel span,
.home-hero-panel p,
.home-hero-panel a {
  color: rgba(232, 238, 245, 0.86);
}
.home-hero-panel a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-hero-panel h2 {
  margin: 14px 0 10px;
  color: #f6fbff;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.96;
}

.home-hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

body.homepage .mini-card {
  /* contrast fix 2026-04-30: bumped from 5% to 8% opacity + explicit border
     so the metric tile is visibly distinct from the panel bg, and the bg
     doesn't disappear when the panel reflows on smaller widths. */
  background: rgba(226, 236, 248, 0.08);
  border: 1px solid rgba(226, 236, 248, 0.16);
  padding: 14px 16px;
  border-radius: 14px;
}

body.homepage .mini-card strong,
body.homepage .latest-review-score strong {
  display: block;
  color: #f6fbff;
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 0.92;
}

body.homepage .mini-card span,
body.homepage .latest-review-score span {
  /* explicit override — was inheriting an ink-soft (dark) value somewhere */
  color: rgba(232, 238, 245, 0.78) !important;
  font-size: 0.9rem;
}

/* contrast fix 2026-05-01: this used to set near-white text. But homepage
   sections after the dark hero (.narrative-section, .audience-section,
   .signal-section, .email-section) all have cream/paper backgrounds, so
   white text is invisible. Cards on those sections also have cream bg.
   The dark hero h1 + h2 already get their light color from #hero-title and
   .home-hero-panel h2 directly, so they don't need this override. */
body.homepage .section-title,
body.homepage .latest-review-card h3,
body.homepage .card h3 {
  color: var(--ink);
}

body.homepage .step-card,
body.homepage .card,
body.homepage .latest-review-card,
body.homepage .latest-review-placeholder {
  background: rgba(10, 19, 30, 0.9);
  border-color: rgba(226, 236, 248, 0.08);
  box-shadow: 0 22px 44px rgba(2, 7, 15, 0.22);
}

body.homepage .step-card {
  background: rgba(11, 20, 31, 0.88);
}

body.homepage .kicker,
body.homepage .pill,
body.homepage .step-num {
  background: rgba(226, 236, 248, 0.07);
  color: rgba(226, 236, 248, 0.78);
}

body.homepage .tier {
  background: rgba(145, 240, 203, 0.14);
  color: #91f0cb;
}

.latest-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.latest-review-card {
  text-decoration: none;
}

.latest-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.latest-review-score {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 18px 0 12px;
}

.disclosure-card {
  border-color: rgba(145, 240, 203, 0.22);
}

.newsletter-inline {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  background:
    radial-gradient(circle at top left, rgba(145, 240, 203, 0.16), transparent 30%),
    linear-gradient(145deg, #0d1724 0%, #132133 100%);
}

.newsletter-inline .input {
  background: rgba(226, 236, 248, 0.06);
  border-color: rgba(226, 236, 248, 0.14);
  color: #f6fbff;
}

.newsletter-inline .input::placeholder {
  color: rgba(226, 236, 248, 0.45);
}

/* Beehiiv-backed signup form (2026-05-03). Visual: dark on the home/reviews
   newsletter card; the Pages Function at /api/newsletter-subscribe forwards
   to Beehiiv server-side so the API key never reaches the browser. */
.newsletter-inline h2 {
  margin: 6px 0 8px;
  color: #f6fbff;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 600;
  line-height: 1.15;
}
.newsletter-inline p {
  color: rgba(232, 238, 245, 0.78);
  margin: 0 0 16px;
  font-size: 0.96rem;
  line-height: 1.55;
}
.newsletter-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.newsletter-form input[type="email"] {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(226, 236, 248, 0.18);
  border-radius: 8px;
  background: rgba(226, 236, 248, 0.07);
  color: #f6fbff;
  font: inherit;
}
.newsletter-form input[type="email"]::placeholder {
  color: rgba(226, 236, 248, 0.55);
}
.newsletter-form input[type="email"]:focus {
  outline: 3px solid rgba(217, 119, 87, 0.32);
  outline-offset: 2px;
  border-color: var(--accent);
}
.newsletter-form button {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #0b141f;
  font-weight: 700;
  cursor: pointer;
}
.newsletter-form button:hover { filter: brightness(1.07); }
.newsletter-form button:disabled { opacity: 0.55; cursor: progress; }
.newsletter-status {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  font-size: 0.88rem;
  min-height: 1.2em;
  color: rgba(232, 238, 245, 0.85);
}
.newsletter-status.is-success { color: #b9f0c8; }
.newsletter-status.is-error { color: #ffb7ad; }
@media (max-width: 560px) {
  .newsletter-form { grid-template-columns: 1fr; }
}

.checkbox-field {
  align-items: flex-start;
  padding: 12px 14px;
  color: rgba(226, 236, 248, 0.78);
}

.checkbox-field input {
  margin-top: 2px;
}

.error-message {
  margin: 0;
  color: #ffb7ad;
}

.footer-stack {
  display: grid;
  gap: 18px;
}

body.homepage .footer {
  padding-top: 24px;
}

body.homepage .footer-grid,
body.homepage .legal-links {
  border-top: 1px solid rgba(226, 236, 248, 0.08);
  padding-top: 18px;
}

body.homepage .footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.freshness-callout {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0 18px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(18, 24, 37, 0.06);
}

.freshness-callout strong {
  font-size: 1rem;
}

.review-status-badge {
  min-height: 30px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(240, 180, 76, 0.16);
  color: #9a6510;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 1040px) {
  .home-hero-grid,
  .latest-review-grid,
  .newsletter-inline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .home-hero-copy,
  .home-hero-panel,
  .newsletter-inline {
    padding: 22px;
  }

  .home-hero-metrics {
    grid-template-columns: 1fr;
  }
}

body.legal-page {
  color: #eef3fb;
  background:
    radial-gradient(circle at top left, rgba(104, 136, 255, 0.14), transparent 24%),
    linear-gradient(180deg, #08111b 0%, #101c29 100%);
}

body.legal-page .site-header {
  background: rgba(8, 17, 27, 0.88);
  border-bottom-color: rgba(226, 236, 248, 0.1);
}

body.legal-page .brand-mark {
  background: #eef3fb;
  color: #08111b;
}

body.legal-page .brand-copy strong,
body.legal-page .nav-links a[aria-current="page"],
body.legal-page .nav-links a:hover,
body.legal-page .footer-links a:hover {
  color: #f6fbff;
}

body.legal-page .brand-copy span,
body.legal-page .nav-links a,
body.legal-page .footer-links a,
body.legal-page .muted,
body.legal-page p,
body.legal-page li {
  color: rgba(226, 236, 248, 0.76);
}

.legal-shell {
  width: min(calc(100% - 32px), 920px);
  margin: 0 auto;
  padding: 48px 0 72px;
}

.legal-hero,
.legal-section {
  border-radius: 28px;
  border: 1px solid rgba(226, 236, 248, 0.08);
  background: rgba(10, 19, 30, 0.9);
  box-shadow: 0 22px 44px rgba(2, 7, 15, 0.22);
}

.legal-hero {
  padding: 32px;
}

.legal-hero h1,
.legal-section h2,
.legal-section h3 {
  color: #f6fbff;
  font-family: var(--font-display);
}

.legal-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 0.94;
}

.legal-grid {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.legal-section {
  padding: 24px;
}

.legal-section h2,
.legal-section h3 {
  margin: 0 0 12px;
}

.legal-list,
.legal-links-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.legal-note {
  min-height: 34px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(240, 180, 76, 0.16);
  color: #ffd796;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================================
   v3 — Story-first homepage redesign (Claude-warm palette)
   ============================================================ */

.container.narrow { max-width: 720px; }

.brand-mark {
  background: var(--ink) !important;
  color: var(--paper) !important;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.brand-copy strong { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand-copy span { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.01em; }

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-links a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.home-hero {
  padding: 96px 0 80px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-alt) 100%);
  border-bottom: 1px solid var(--line);
}
.home-hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 860px) {
  .home-hero { padding: 64px 0 48px; }
  .home-hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  /* contrast fix 2026-05-02: --accent (#d97757) on cream paper = 3.16:1, fails
     WCAG 4.5:1 for small text. --accent-strong is the darkened terracotta that
     passes. Dark-hero overrides at .home-hero-copy .eyebrow already use a light
     tint, so this only changes the cream-section eyebrows. */
  color: var(--accent-strong);
  margin-bottom: 20px;
}

#hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  /* contrast fix 2026-05-01: ID selector was beating .home-hero-copy h1's
     light color, leaving dark var(--ink) text on the dark hero gradient.
     The hero card always has a dark bg, so h1 must be light here. */
  color: #f6fbff;
}
#hero-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 0 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.15s, border-color 0.15s;
  cursor: pointer;
}
.button-primary {
  background: var(--ink);
  color: var(--paper);
}
.button-primary:hover { background: var(--accent); transform: translateY(-1px); }
.button-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.button-secondary:hover { border-color: var(--ink); }
.button-ghost {
  background: transparent;
  color: var(--accent-strong, #b8481f);
  border: 0;
  padding: 12px 4px;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  border-radius: 0;
}
.button-ghost:hover { border-bottom-color: var(--accent-strong, #b8481f); }

.home-proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.home-proof-strip span::before { content: "· "; color: var(--accent); margin-right: 4px; }
.home-proof-strip span:first-child::before { display: none; }

.home-hero-panel {
  /* contrast fix 2026-05-01: was overriding the dark navy bg from line ~798
     with var(--surface) (cream), which left the panel's light text invisible
     on a near-white panel. Keep only the structural styles here; the dark
     bg + light copy come from the earlier rule. */
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(7,17,32,0.18), 0 8px 24px rgba(7,17,32,0.22);
}
.home-hero-panel .kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  /* explicit light tint so the eyebrow reads on the dark panel bg */
  color: rgba(232, 238, 245, 0.78);
  display: block;
  margin-bottom: 20px;
}
.home-hero-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.mini-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}
.mini-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 6px;
}
.mini-card span { font-size: 0.78rem; color: var(--muted); }
.home-hero-panel .muted.small { font-size: 0.82rem; line-height: 1.5; margin: 0; }
.home-hero-panel .muted.small a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent); }

.section { padding: 80px 0; border-top: 1px solid var(--line); }
.narrative-section { background: var(--surface); }
.audience-section { background: var(--paper-alt); }
.signal-section { background: var(--paper-alt); }
.signal-section .card { background: var(--paper); }
.signal-section .card p, .signal-section .card h3 { color: var(--ink); }
.signal-section .section-head p, .signal-section .eyebrow { color: var(--ink); }
.email-section { background: var(--paper-alt); }

.section-head {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 48px;
}
@media (max-width: 720px) { .section-head { grid-template-columns: 1fr; gap: 16px; } }
.section-title {
  font-family: var(--font-body);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 8px 0 0;
  color: var(--ink);
  line-height: 1.2;
}
/* contrast fix 2026-05-01: Fraunces at weight 500/400 rendered too thin on
   Windows ClearType + cream paper, making display headlines and narrative
   body look washed out. Bumped weights and switched body to --ink. */
.section-title.serif { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.section-head p { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }

.narrative-body {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 500;
}
.narrative-body p { margin: 0 0 20px; }
.narrative-body strong { color: var(--ink); font-weight: 600; }
.narrative-body em { color: var(--accent); font-style: italic; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 760px) { .steps-grid { grid-template-columns: 1fr; } }
.step-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.15s;
}
.step-card:hover { border-color: var(--accent); }
.step-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 14px;
}
.step-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
}
.step-desc { color: var(--ink-soft); font-size: 0.97rem; margin: 0; line-height: 1.6; }

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 760px) { .audience-grid { grid-template-columns: 1fr; } }
.audience-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 28px;
  transition: border-color 0.15s, transform 0.15s;
}
.audience-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.audience-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 10px;
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.audience-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
}
.audience-card p { color: var(--ink-soft); font-size: 0.96rem; margin: 0 0 18px; }
.inline-link {
  /* contrast fix 2026-05-02: --accent on cream = 2.96:1 fails WCAG. */
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.93rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.inline-link:hover { border-bottom-color: var(--accent-strong); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 760px) { .cards-grid { grid-template-columns: 1fr; } }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
}
.card .kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 14px;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
}
.card p { color: var(--ink-soft); font-size: 0.96rem; margin: 0 0 18px; }
.disclosure-card { background: var(--accent-soft); border-color: transparent; }

.latest-review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) { .latest-review-grid { grid-template-columns: 1fr; } }
.review-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
  display: block;
}
.review-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.review-card .kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}
.review-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--ink);
}
.review-card p { color: var(--ink-soft); font-size: 0.9rem; margin: 0; }

.section-cta { margin-top: 36px; text-align: center; }

.newsletter {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 760px) { .newsletter { grid-template-columns: 1fr; padding: 28px; } }
.newsletter h2 { font-size: 1.7rem; margin: 8px 0 8px; line-height: 1.2; }
.newsletter .muted { color: var(--muted); font-size: 0.95rem; margin: 0; }
.form-stack { display: flex; flex-direction: column; gap: 14px; }
.form-stack .field label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 500;
}
.input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
}
.input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.checkbox-field {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.checkbox-field input { margin-top: 3px; }
.success { color: var(--green); font-size: 0.88rem; margin: 6px 0 0; }
.error-message { color: var(--red); font-size: 0.88rem; margin: 6px 0 0; }

.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 56px 0 40px;
  margin-top: 80px;
}
.footer strong { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.footer a { color: var(--paper); text-decoration: none; border-bottom: 1px solid rgba(250,249,245,0.15); }
.footer a:hover { border-bottom-color: var(--accent); color: var(--accent); }
.footer-entity { color: rgba(250,249,245,0.7); font-size: 0.88rem; margin-top: 6px; }
.footer-stack { display: flex; flex-direction: column; gap: 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: start;
}
.footer-contact { display: flex; flex-direction: column; gap: 4px; }
.footer-contact .muted { color: rgba(250,249,245,0.6); font-size: 0.85rem; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  font-size: 0.9rem;
  border-top: 1px solid rgba(250,249,245,0.12);
  padding-top: 28px;
}

.muted { color: var(--muted); }
.muted.small { font-size: 0.85rem; }

/* Shared shell overrides */
.brand-copy {
  min-width: 0;
}

.brand-copy span {
  white-space: nowrap;
}

.nav {
  position: relative;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--line-strong);
}

.nav-toggle-box {
  display: grid;
  gap: 5px;
}

.nav-toggle-box span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  gap: 0;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  background: rgba(250, 249, 245, 0.98);
}

.mobile-nav a {
  display: block;
  width: 100%;
  padding: 15px 18px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a[aria-current="page"],
.mobile-nav a:hover {
  background: var(--paper-alt);
  color: var(--ink);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: end;
}

.narrative-body p {
  max-width: 640px;
}

#hero-title {
  font-size: clamp(2rem, 5.2vw, 4.2rem);
}

.latest-review-card,
.latest-review-placeholder {
  min-width: 0;
}

.latest-review-head {
  align-items: flex-start;
}

.latest-review-score {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.latest-review-score strong {
  margin: 0;
}

.latest-review-score span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.review-id-pill {
  white-space: nowrap;
}

.footer {
  padding: 56px 0 40px;
}

.footer-grid {
  grid-template-columns: 2fr 1fr;
}

.footer-home-link {
  border-color: rgba(250, 249, 245, 0.28);
  border-bottom: 0;
  color: var(--paper);
}

.footer-home-link:hover {
  border-bottom: 0;
  border-color: var(--accent);
  color: var(--accent);
}

body.homepage .footer {
  padding: 56px 0 40px;
}

body.homepage .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: start;
  border-top: 0;
  padding-top: 0;
}

body.homepage .nav-links a[aria-current="page"],
body.homepage .nav-links a:hover,
body.homepage .mobile-nav a[aria-current="page"],
body.homepage .mobile-nav a:hover,
body.homepage .footer-links a:hover,
body.homepage .nav-toggle {
  color: #f6fbff;
}

body.homepage .brand-copy span,
body.homepage .nav-links a,
body.homepage .mobile-nav a,
body.homepage .footer-links a,
body.homepage .muted,
body.homepage .section-head p,
body.homepage .card p,
body.homepage .panel p,
body.homepage .step-desc,
body.homepage .hero-subtitle,
body.homepage .footer-contact span,
body.homepage .footer-entity,
body.homepage .latest-review-date,
body.homepage .latest-review-score span,
body.homepage .mini-card span {
  color: rgba(226, 236, 248, 0.74);
}

body.homepage .mobile-nav,
body.homepage .nav-toggle {
  border-color: rgba(226, 236, 248, 0.12);
}

body.homepage .mobile-nav {
  background: rgba(7, 17, 27, 0.98);
}

body.homepage .mobile-nav a {
  border-bottom-color: rgba(226, 236, 248, 0.12);
}

body.homepage .mobile-nav a[aria-current="page"],
body.homepage .mobile-nav a:hover {
  background: rgba(226, 236, 248, 0.08);
}

body.legal-page .nav-links a[aria-current="page"],
body.legal-page .nav-links a:hover,
body.legal-page .mobile-nav a[aria-current="page"],
body.legal-page .mobile-nav a:hover,
body.legal-page .footer-links a:hover,
body.legal-page .nav-toggle {
  color: #f6fbff;
}

body.legal-page .brand-copy span,
body.legal-page .nav-links a,
body.legal-page .mobile-nav a,
body.legal-page .footer-links a,
body.legal-page .muted,
body.legal-page p,
body.legal-page li {
  color: rgba(226, 236, 248, 0.76);
}

body.legal-page .mobile-nav,
body.legal-page .nav-toggle {
  border-color: rgba(226, 236, 248, 0.14);
}

body.legal-page .mobile-nav {
  background: rgba(8, 17, 27, 0.98);
}

body.legal-page .mobile-nav a {
  border-bottom-color: rgba(226, 236, 248, 0.12);
}

body.legal-page .mobile-nav a[aria-current="page"],
body.legal-page .mobile-nav a:hover {
  background: rgba(226, 236, 248, 0.08);
}

@media (max-width: 1024px) {
  .brand-copy span {
    display: none;
  }

  .nav-links {
    gap: 14px;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 48px 0;
  }

  .home-hero {
    padding: 48px 0 40px;
  }

  .nav {
    min-height: 72px;
    padding: 12px 0;
    gap: 16px;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav {
    display: flex;
    flex-direction: column;
  }

  .mobile-nav[hidden] {
    display: none !important;
  }

  .home-hero-grid,
  .audience-grid,
  .cards-grid,
  .steps-grid,
  .latest-review-grid,
  .newsletter,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 16px;
  }

  .home-hero-copy,
  .home-hero-panel,
  .newsletter,
  .newsletter-inline,
  .card,
  .panel,
  .review-card {
    padding: 22px;
  }

  .home-hero-metrics {
    grid-template-columns: 1fr;
  }

  .latest-review-score strong {
    font-size: 2.2rem;
  }

  .review-id-pill {
    display: none;
  }

  .footer {
    padding: 40px 0 32px;
    margin-top: 64px;
  }

  body.homepage .footer {
    padding: 40px 0 32px;
  }

  body.homepage .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    padding-top: 20px;
  }
}

/* === HOMEPAGE storyline (Phase 4, 2026-05-03) === */
.homepage .story-section .muted {
  color: var(--ink-soft);
}

.homepage .top-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.homepage .top-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.homepage .top-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(26, 26, 26, 0.07);
  border-color: var(--accent);
}

.homepage .top-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.homepage .top-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.15;
  color: var(--ink);
}

.homepage .top-tier {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.homepage .score-gauge {
  position: relative;
  width: 84px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--score, 0) * 1%), var(--accent-soft) 0);
  color: var(--ink);
}

.homepage .score-gauge::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--surface);
}

.homepage .score-gauge strong,
.homepage .score-gauge span {
  position: relative;
  z-index: 1;
}

.homepage .score-gauge strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 0.9;
}

.homepage .score-gauge span {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--ink-soft);
}

.homepage .top-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.homepage .top-card-link {
  margin-top: auto;
  font-weight: 700;
  color: var(--accent-strong);
}

.homepage .category-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.homepage .category-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.homepage .category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(26, 26, 26, 0.07);
  border-color: var(--accent);
}

.homepage .category-card .card-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.homepage .category-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--ink);
}

.homepage .category-card .card-meta {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
}

@media (max-width: 768px) {
  .homepage .top-grid {
    grid-template-columns: 1fr;
  }
}

/* === CATEGORY LANDING storyline (Phase 3, 2026-05-03) === */
.category-landing-page .lead { max-width: 60ch; font-size: 1.08rem; line-height: 1.7; color: var(--ink-soft); margin: 12px 0 24px; }
.category-landing-page .picks-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 16px; }
@media (max-width: 768px) {
  .category-landing-page .picks-grid { grid-template-columns: 1fr; }
}
.category-landing-page .pick-card { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
.category-landing-page .pick-card h3 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; }
.category-landing-page .pick-card .pick-score { font-family: var(--font-display); font-weight: 600; font-size: 2.4rem; color: var(--accent); }
.category-landing-page .pick-card a { text-decoration: none; color: inherit; }

/* === REVIEW TABS — scrollspy anchor pattern (Phase 1, 2026-05-03) === */
.review-tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 249, 245, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  margin: 0 -24px 24px;
  padding: 12px 24px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.review-tabs::-webkit-scrollbar { display: none; }
.review-tabs a {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.92rem;
  transition: background 0.18s, color 0.18s;
}
.review-tabs a:hover { background: var(--paper-alt); color: var(--ink); }
.review-tabs a.is-active {
  background: var(--ink);
  color: var(--paper);
}
.review-tab-section {
  scroll-margin-top: 80px;  /* offsets the sticky tab bar height */
  padding: 16px 0;
}
.review-tab-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: var(--ink);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* === REVIEW: vendor right-of-reply (A2, 2026-06-01) — shared so per-page HTML stays lean === */
.review-section--vendor-response { border-left: 3px solid var(--accent, #7c5cff); padding-left: 18px; background: rgba(124,92,255,.05); border-radius: 8px; }
.review-vendor-response__meta { color: var(--ink-soft, #9494a8); font-size: .9em; margin-bottom: 10px; }
.review-vendor-response__body { margin: 0 0 10px; font-style: italic; border: 0; padding: 0; }
.review-vendor-response__body p { margin: 0 0 8px; }
.review-vendor-response__note { color: var(--ink-soft, #9494a8); font-size: .85em; }
