﻿/* ==========================================================================
   PipeScope Lab — Global Design System
   Clean industrial / technical. Mobile-first.
   ========================================================================== */

/* ---------- 0. Self-hosted Inter (SIL OFL — see /fonts/LICENSE.txt) ---------- */
/* font-display: swap keeps text visible during load; size-adjust on the
   fallback keeps the metrics close enough that the swap does not shift layout. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/inter-700.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/inter-800.woff2") format("woff2");
}
/* Metric-matched fallback: reduces CLS when Inter swaps in. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Segoe UI"), local("Helvetica Neue"), local("Arial");
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

/* ---------- 1. Tokens ---------- */
:root {
  color-scheme: light;

  /* Brand palette. Values verified against WCAG 2.1 AA by
     `node tools/contrast-audit.js` — do not change without re-running it. */
  --navy: #0B172A;
  --slate: #27364A;
  --blue: #146EF5;          /* brand fill: white on this = 4.59:1 */
  --link: #1266E8;          /* text links: darker so body copy clears 4.5:1 */
  --blue-dark: #0F55C0;
  --blue-tint: #E8F1FE;
  --teal: #0E7490;
  --teal-tint: #E3F2F6;
  --bg: #F7F9FC;
  --card: #FFFFFF;
  --surface: #FFFFFF;       /* raised surfaces: cards, tables, inputs */
  --panel: #F1F5F9;         /* inset panels: media wells, table heads */
  --panel-soft: #FAFCFF;    /* zebra striping and hover */
  --alt: #EEF3F9;           /* alternating page sections */
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --border-input: #8895A8;  /* form controls need 3:1 per WCAG 1.4.11 */
  --on-blue: #FFFFFF;       /* text on a blue fill */
  --on-teal: #FFFFFF;       /* text on a teal fill */
  --teal-hover: #0A5D75;
  --text: #172033;
  --muted: #616D80;         /* clears 4.5:1 on --alt, the tightest background */
  --on-navy: #C7D3E4;       /* body copy on dark brand surfaces */
  --on-navy-dim: #93A4BC;

  /* Semantic */
  --amber: #B45309;
  --amber-tint: #FEF3C7;
  --green: #047857;
  --green-tint: #E7F6F0;
  --red: #B42318;
  --red-tint: #FEECEA;

  /* Typography */
  --font-sans: "Inter", "Inter Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;

  /* Layout */
  --wrap: 1264px;
  --wrap-narrow: 780px;
  --header-h: 64px;

  /* Radius */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-pill: 999px;

  /* Shadow — minimal by design */
  --sh-xs: 0 1px 2px rgba(11, 23, 42, 0.04);
  --sh-sm: 0 1px 3px rgba(11, 23, 42, 0.06), 0 1px 2px rgba(11, 23, 42, 0.04);
  --sh-md: 0 4px 12px rgba(11, 23, 42, 0.07);
  --sh-lg: 0 10px 28px rgba(11, 23, 42, 0.10);

  /* Motion */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --dur: 180ms;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;          /* >= 16px minimum body text */
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;       /* belt-and-braces: no page overflow */
}

img, svg, video, canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5 {
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.021em;
  color: var(--navy);
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.05rem); }
h3 { font-size: clamp(1.19rem, 1.08rem + 0.5vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.35em; }
li { margin-bottom: 0.4em; }
li:last-child { margin-bottom: 0; }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

small { font-size: 0.875rem; }

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--blue-tint);
  padding: 0.12em 0.36em;
  border-radius: 5px;
}

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

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

/* ---------- 3. Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.wrap-narrow {
  width: 100%;
  max-width: var(--wrap-narrow);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding-block: clamp(2.5rem, 1.7rem + 3.4vw, 4.5rem); }
.section--tight { padding-block: clamp(2rem, 1.5rem + 2vw, 3rem); }
.section--navy { background: var(--navy); color: #C7D3E4; }
.section--navy h2, .section--navy h3 { color: var(--surface); }
.section--alt { background: var(--alt); }

.section-head { max-width: 720px; margin-bottom: 2rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p {
  color: var(--muted);
  font-size: 1.06rem;
  margin: 0;
}
.section--navy .section-head p { color: #93A4BC; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.6rem;
}
.section--navy .eyebrow { color: #4FD1E5; }

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--navy);
  color: var(--surface);
  padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; color: var(--surface); }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;               /* large tap target */
  padding: 0.75rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font: inherit;
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
    color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--blue); color: var(--on-blue); }
.btn--primary:hover { background: var(--blue-dark); color: var(--on-blue); }

.btn--amazon { background: var(--teal); color: var(--on-teal); }
.btn--amazon:hover { background: var(--teal-hover); color: var(--on-teal); }

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--border-strong);
}
.btn--outline:hover { background: var(--surface); border-color: var(--navy); color: var(--navy); }

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.08);
  color: var(--surface);
  border-color: rgba(255, 255, 255, 0.28);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.16); color: var(--surface); }

.btn--block { display: flex; width: 100%; }
.btn--sm { min-height: 40px; padding: 0.5rem 0.95rem; font-size: 0.9rem; }
.btn--lg { min-height: 54px; padding: 0.9rem 1.75rem; font-size: 1.05rem; }

.btn__note {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.5rem;
}
/* Link-level affiliate marker. Small but not hidden — it sits directly under
   the button it describes, which is what "clear and conspicuous" asks for. */
.btn__note--aff {
  text-align: left;
  margin-top: 0.4rem;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
}

/* Provenance disclosure */
.provenance {
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--panel-soft);
}
.provenance summary {
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate);
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.provenance summary:hover { color: var(--link); }
.provenance__body { padding: 0 1rem 1rem; font-size: 0.87rem; color: var(--muted); }
.provenance__body p { margin: 0 0 0.6rem; }
.provenance__body strong { color: var(--slate); }
.provenance__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.8rem !important;
}
.provenance__body ul { margin: 0 0 0.6rem; padding-left: 1.2rem; }
.provenance__body li { margin-bottom: 0.25rem; }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.6) blur(10px);
  -webkit-backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header.is-scrolled { box-shadow: var(--sh-sm); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.028em;
  color: var(--navy);
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover { color: var(--navy); text-decoration: none; }
.logo__mark { width: 30px; height: 30px; flex-shrink: 0; }
.logo__text b { color: var(--blue); font-weight: 800; }

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: var(--r-sm);
  font-size: 0.94rem;
  font-weight: 550;
  color: var(--slate);
  white-space: nowrap;
}
.nav__link:hover { background: var(--blue-tint); color: var(--blue-dark); text-decoration: none; }
.nav__link[aria-current="page"] { color: var(--blue); background: var(--blue-tint); }

.nav__link--search {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.35rem;
  border: 1px solid var(--border-strong);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  cursor: pointer;
  color: var(--navy);
}

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    margin: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--sh-lg);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    display: none;
  }
  .nav.is-open { display: block; }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 20px 1.25rem;
  }
  .nav__link {
    padding: 0.95rem 0.6rem;
    font-size: 1.02rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  .nav__link--search { margin: 0.85rem 0 0; border-radius: var(--r-sm); justify-content: center; }
}

/* ---------- 6. Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 500px at 88% -8%, rgba(20, 110, 245, 0.22), transparent 62%),
    radial-gradient(760px 420px at 6% 106%, rgba(14, 116, 144, 0.24), transparent 60%),
    var(--navy);
  color: #C7D3E4;
  padding-block: clamp(2.75rem, 1.8rem + 4vw, 5rem);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.06fr 0.94fr; gap: 3.25rem; }
}
.hero h1 { color: var(--surface); margin-bottom: 1rem; }
.hero__lead {
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.19rem);
  color: #A9BCD4;
  max-width: 34em;
  margin-bottom: 1.9rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 0.86rem;
  color: #8FA3BE;
}
.hero__meta span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero__visual { position: relative; }
.hero__visual svg {
  width: 100%;
  height: auto;
  aspect-ratio: 560 / 440;   /* reserves the box before paint — no layout shift */
  border-radius: var(--r-lg);
}

/* ---------- 7. Trust strip ---------- */
.trust {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border);
}
.trust__item {
  background: var(--surface);
  padding: 1.5rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}
.trust__icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--blue-tint);
  color: var(--blue);
  border-radius: var(--r-sm);
}
.trust__title {
  font-weight: 700;
  font-size: 0.97rem;
  color: var(--navy);
  margin: 0 0 0.15rem;
  line-height: 1.3;
}
.trust__desc { font-size: 0.84rem; color: var(--muted); margin: 0; line-height: 1.45; }

/* ---------- 8. Cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--sh-xs);
  padding: 1.4rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
a.card, .card--link { display: block; color: inherit; text-decoration: none; }
a.card:hover, .card--link:hover {
  border-color: var(--blue);
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.card__tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-tint);
  padding: 0.28rem 0.55rem;
  border-radius: var(--r-pill);
  margin-bottom: 0.85rem;
}
.card__title {
  font-size: 1.09rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.45rem;
  line-height: 1.3;
}
.card__desc { font-size: 0.92rem; color: var(--muted); margin: 0; line-height: 1.55; }
.card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--blue);
}
a.card:hover .card__cta { gap: 0.6rem; }

/* Featured guide card */
.guide-card { display: flex; flex-direction: column; }
.guide-card__num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.7rem;
}
.guide-card--primary {
  border-color: var(--blue);
  border-width: 1.5px;
  box-shadow: 0 0 0 3px var(--blue-tint);
}

/* Category card — Sewer Cameras gets prominence */
.cat-card { position: relative; overflow: hidden; }
.cat-card__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--blue-tint);
  color: var(--blue);
  border-radius: var(--r-sm);
  margin-bottom: 1rem;
}
.cat-card--primary {
  background: linear-gradient(160deg, var(--navy) 0%, #16294a 100%);
  border-color: var(--navy);
  color: #B9C8DC;
}
.cat-card--primary .card__title { color: var(--surface); font-size: 1.32rem; }
.cat-card--primary .card__desc { color: #93A4BC; }
.cat-card--primary .card__cta { color: #6FB0FF; }
.cat-card--primary .cat-card__icon { background: rgba(255,255,255,0.11); color: #6FB0FF; }
.cat-card--primary .card__tag { background: rgba(20,110,245,0.22); color: #8CC0FF; }
@media (min-width: 800px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid .cat-card--primary { grid-row: span 2; display: flex; flex-direction: column; }
  .cat-grid .cat-card--primary .card__cta { margin-top: auto; padding-top: 1rem; }
}

/* ---------- 9. Find-by-need ---------- */
.need-block { margin-bottom: 2rem; }
.need-block:last-child { margin-bottom: 0; }
.need-block__head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}
.need-block__title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0;
}
.need-block__hint { font-size: 0.84rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; margin: 0; padding: 0; }
.chips li { margin: 0; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.6rem 1.05rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--slate);
  box-shadow: var(--sh-xs);
}
.chip:hover {
  border-color: var(--blue);
  background: var(--blue-tint);
  color: var(--blue-dark);
  text-decoration: none;
}

/* ---------- 10. User cards ---------- */
.user-card { text-align: left; }
.user-card__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: var(--teal-tint);
  color: var(--teal);
  margin-bottom: 0.95rem;
}

/* ---------- 11. Fit matrix ---------- */
.fit-matrix { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.fit-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.35rem;
  border-bottom: 1px solid var(--border);
}
.fit-row:last-child { border-bottom: 0; }
.fit-row:hover { background: var(--panel-soft); }
.fit-row__need { font-weight: 600; color: var(--navy); font-size: 0.97rem; }
.fit-row__arrow { color: var(--border-strong); flex-shrink: 0; }
.fit-row__answer { font-size: 0.95rem; }
.fit-row__answer a { font-weight: 600; }
.fit-row__note { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 0.1rem; }
@media (max-width: 640px) {
  .fit-row { grid-template-columns: 1fr; gap: 0.4rem; padding: 1.05rem 1.1rem; }
  .fit-row__arrow { transform: rotate(90deg); width: 16px; }
}

/* ---------- 12. Evaluate / criteria ---------- */
.criteria-card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r);
  padding: 1.4rem;
}
.criteria-card__weight {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: #4FD1E5;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}
.criteria-card h3 { font-size: 1.02rem; margin-bottom: 0.4rem; }
.criteria-card p { font-size: 0.89rem; color: #93A4BC; margin: 0; line-height: 1.55; }

/* ---------- 13. Footer CTA ---------- */
.footer-cta {
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  color: var(--surface);
  text-align: center;
  padding-block: clamp(2.75rem, 2rem + 3vw, 4.25rem);
}
.footer-cta h2 { color: var(--surface); max-width: 18em; margin-inline: auto; }
.footer-cta p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 46em;
  margin: 0 auto 1.75rem;
  font-size: 1.05rem;
}
.footer-cta .btn--primary { background: var(--surface); color: var(--navy); }
.footer-cta .btn--primary:hover { background: var(--alt); color: var(--navy); }

/* ---------- 14. Footer ---------- */
.site-footer { background: var(--navy); color: #93A4BC; padding-top: 3.25rem; }
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  padding-bottom: 2.5rem;
}
.footer-brand { grid-column: 1 / -1; max-width: 34em; }
@media (min-width: 1000px) { .footer-brand { grid-column: auto; } }
.footer-brand p { font-size: 0.89rem; line-height: 1.6; margin: 0.9rem 0 0; }
.footer-col h3 {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.095em;
  text-transform: uppercase;
  color: var(--surface);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: #93A4BC; font-size: 0.9rem; }
.footer-col a:hover { color: var(--surface); text-decoration: none; }
.footer-col .is-soon { color: #5A6C86; font-size: 0.9rem; }
.footer-col .is-soon i {
  font-style: normal;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255,255,255,0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  margin-left: 0.35rem;
}
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 1.5rem;
  font-size: 0.83rem;
  line-height: 1.6;
}
.footer-legal p { margin: 0 0 0.6rem; }
.footer-legal p:last-child { margin: 0; }
.footer-legal strong { color: #C7D3E4; }

/* ---------- 15. Breadcrumb ---------- */
.breadcrumb { padding-block: 1rem; font-size: 0.84rem; }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0; }
.breadcrumb li::after { content: "/"; color: var(--border-strong); }
.breadcrumb li:last-child::after { content: none; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--link); }
.breadcrumb [aria-current="page"] { color: var(--navy); font-weight: 550; }

/* ---------- 16. Affiliate disclosure ---------- */
.affiliate-box {
  display: flex;
  gap: 0.8rem;
  background: var(--amber-tint);
  border: 1px solid #FDE68A;
  border-radius: var(--r-sm);
  padding: 0.9rem 1.1rem;
  font-size: 0.87rem;
  line-height: 1.55;
  color: #78350F;
  margin-bottom: 1.75rem;
}
.affiliate-box svg { flex-shrink: 0; margin-top: 2px; color: var(--amber); }
.affiliate-box p { margin: 0; }
.affiliate-box a { color: #78350F; text-decoration: underline; }

/* ---------- 17. Article ---------- */
.article-head { padding-top: 0.5rem; }
.article-head h1 { margin-bottom: 0.75rem; }
.article-lead {
  font-size: clamp(1.06rem, 1rem + 0.35vw, 1.18rem);
  color: var(--slate);
  line-height: 1.6;
}
.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.1rem;
  padding: 0.9rem 0;
  margin: 1.25rem 0 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}
.byline strong { color: var(--slate); font-weight: 600; }
.byline span { display: inline-flex; align-items: center; gap: 0.4rem; }

.prose { font-size: 1.0625rem; line-height: 1.72; }
.prose > h2 {
  margin-top: 2.6rem;
  padding-top: 0.35rem;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.prose > h3 { margin-top: 1.9rem; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose > *:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.55em; }
.prose strong { color: var(--navy); font-weight: 650; }

.article-body { padding-block: 2rem 3rem; }

/* ---------- 18. Table of contents ---------- */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: var(--r-sm);
  padding: 1.15rem 1.35rem;
  margin: 1.75rem 0 2.25rem;
}
.toc__title {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; margin-bottom: 0.5rem; padding-left: 1.75rem; position: relative; font-size: 0.94rem; }
.toc li:last-child { margin-bottom: 0; }
.toc li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--border-strong);
  top: 0.15em;
}
.toc a { color: var(--slate); }
.toc a:hover { color: var(--link); }

/* ---------- 19. Quick answer box ---------- */
.quick-answer {
  background: var(--blue-tint);
  border: 1px solid #BFD9FD;
  border-radius: var(--r);
  padding: 1.35rem 1.5rem;
  margin: 1.75rem 0 2.25rem;
}
.quick-answer__label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 0.6rem;
}
.quick-answer p { margin: 0 0 0.8rem; font-size: 1.03rem; line-height: 1.65; color: var(--text); }
.quick-answer p:last-child { margin: 0; }
.quick-answer strong { color: var(--navy); }

/* Callout */
.callout {
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  background: var(--surface);
  border-radius: var(--r-sm);
  padding: 1.1rem 1.3rem;
  margin: 1.75rem 0;
  font-size: 0.97rem;
}
.callout__title { font-weight: 700; color: var(--navy); margin: 0 0 0.35rem; font-size: 0.97rem; }
.callout p { margin: 0; }
.callout--warn { border-left-color: var(--amber); background: #FFFBEB; }

/* ---------- 20. Quick picks ---------- */
.picks { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
.pick {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
.pick--top { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint), var(--sh-sm); }
.pick__label {
  padding: 0.6rem 1.15rem;
  background: var(--slate);
  color: var(--surface);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}
.pick--top .pick__label { background: var(--blue); }
.pick__media {
  background: var(--panel);
  padding: 1.25rem;
  display: grid;
  place-items: center;
  min-height: 168px;
  border-bottom: 1px solid var(--border);
}
.pick__media img { max-height: 150px; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.pick__body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.pick__brand { font-size: 0.75rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.3rem; }
.pick__name { font-size: 1.03rem; font-weight: 700; color: var(--navy); margin: 0 0 0.55rem; line-height: 1.32; }
.pick__reason { font-size: 0.9rem; color: var(--slate); line-height: 1.55; margin: 0 0 1rem; }
.pick__spec { font-size: 0.82rem; color: var(--muted); margin: 0 0 1rem; font-family: var(--font-mono); }
.pick__foot { margin-top: auto; }

/* ---------- 21. Comparison table ---------- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  margin: 1.5rem 0;
}
.ptable { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 820px; }
.ptable th, .ptable td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.ptable thead th {
  background: var(--panel);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--slate);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}
.ptable tbody tr:last-child td { border-bottom: 0; }
.ptable tbody tr:hover { background: var(--panel-soft); }
.ptable td:first-child { font-weight: 600; color: var(--navy); min-width: 190px; }
.ptable .yes { color: var(--green); font-weight: 650; }
.ptable .no { color: var(--muted); }
.table-note { font-size: 0.82rem; color: var(--muted); margin: 0.6rem 0 0; }
.table-hint {
  display: none;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
}
@media (max-width: 860px) { .table-hint { display: block; } }

/* Card-ified table for small screens */
.table-cards { display: none; }
@media (max-width: 700px) {
  /* Product comparison tables swap to cards below 700px. This only works when
     a .table-cards sibling exists — without one the table disappears and the
     content is simply lost. Tables with no card fallback must carry
     .table-scroll--keep so they stay visible and scroll instead. */
  .table-scroll:not(.table-scroll--keep) { display: none; }
  .table-cards { display: grid; gap: 1rem; margin: 1.5rem 0; }
  .table-scroll--keep { display: block; }
  .table-scroll--keep .ptable { min-width: 480px; }
}
.tcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--sh-xs);
}
.tcard__name { font-weight: 700; color: var(--navy); font-size: 1rem; margin: 0 0 0.75rem; line-height: 1.3; }
.tcard dl { display: grid; grid-template-columns: minmax(0,auto) 1fr; gap: 0.45rem 1rem; margin: 0; font-size: 0.88rem; }
.tcard dt { color: var(--muted); }
.tcard dd { margin: 0; font-weight: 600; color: var(--slate); text-align: right; }

/* ---------- 22. Product review block ---------- */
.review {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 2.25rem;
  box-shadow: var(--sh-sm);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
/* ---------- Product card (review header) ----------
   Scannable in a few seconds: 4 core specs, 2 standout features,
   1 limitation, then the CTA. Detail lives in the review body below. */
.pcard {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 760px) { .pcard { grid-template-columns: 264px 1fr; } }

.pcard__media {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem;
  display: grid;
  place-items: center;
  min-height: 208px;
  align-self: start;
}
.pcard__media img { max-height: 200px; width: auto; object-fit: contain; mix-blend-mode: multiply; }

.pcard__body { display: flex; flex-direction: column; align-items: flex-start; }

.pcard__name {
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.38rem);
  margin: 0 0 0.5rem;
  line-height: 1.28;
}
.pcard__verdict {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--slate);
  margin: 0 0 1.15rem;
  max-width: 46em;
}

/* 4 core specs, 2x2 */
.pcard__specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  width: 100%;
  max-width: 30rem;
}
.pcard__specs li {
  background: var(--surface);
  padding: 0.7rem 0.9rem;
  margin: 0;
  min-width: 0;
}
.pcard__specs b {
  display: block;
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}
.pcard__specs span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* 2 standout features */
.pcard__highlights { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; gap: 0.4rem; }
.pcard__highlights li {
  position: relative;
  padding-left: 1.5rem;
  margin: 0;
  font-size: 0.92rem;
  color: var(--slate);
}
.pcard__highlights li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.42em;
  width: 9px; height: 5px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

/* Best for / Main limitation */
.pcard__meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 0.7rem;
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
}
.pcard__meta dt {
  color: var(--muted);
  white-space: nowrap;
}
.pcard__meta dt::after { content: ":"; }
.pcard__meta dd { margin: 0; color: var(--navy); font-weight: 600; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.34rem 0.8rem;
  border-radius: var(--r-pill);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.badge--winner { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.badge--value { background: var(--green-tint); color: var(--green); border: 1px solid #A7E3CE; }
.badge--pro { background: var(--blue-tint); color: var(--blue-dark); border: 1px solid #BFD9FD; }
.badge--neutral { background: var(--panel); color: var(--slate); border: 1px solid var(--border); }

.review__brand { font-size: 0.76rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.review__name { font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem); margin: 0.25rem 0 0.7rem; }
.review__verdict {
  font-size: 1.02rem;
  color: var(--slate);
  line-height: 1.6;
  padding-left: 0.9rem;
  border-left: 3px solid var(--teal);
  margin-bottom: 1.25rem;
}
.review__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* Spec table */
.specs { margin: 0; }
.specs dl {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
  margin: 0;
}
@media (min-width: 560px) { .specs dl { grid-template-columns: 1fr 1fr; } }
.specs__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 0.95rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.specs__row:nth-child(odd) { background: var(--panel-soft); }
@media (min-width: 560px) {
  .specs__row:nth-child(4n+1), .specs__row:nth-child(4n+2) { background: var(--panel-soft); }
  .specs__row:nth-child(odd) { background: none; }
  .specs__row:nth-child(4n+1), .specs__row:nth-child(4n+2) { background: var(--panel-soft); }
}
.specs__row dt { color: var(--muted); margin: 0; }
.specs__row dd { margin: 0; font-weight: 650; color: var(--navy); text-align: right; }

.review__body { padding: 1.5rem; }
.review__section { margin-bottom: 1.5rem; }
.review__section:last-child { margin-bottom: 0; }
.review__section h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.55rem;
}
.review__section p { margin: 0; font-size: 0.98rem; }

.proscons { display: grid; gap: 1.15rem; }
@media (min-width: 700px) { .proscons { grid-template-columns: 1fr 1fr; } }
.proscons__col { border: 1px solid var(--border); border-radius: var(--r-sm); padding: 1.05rem 1.15rem; }
.proscons__col--pros { background: #F4FBF8; border-color: #C4EBDB; }
.proscons__col--cons { background: #FFFBF5; border-color: #FBE0BB; }
.proscons h4 { margin-bottom: 0.7rem; }
.proscons--pros h4 { color: var(--green); }
.proscons ul { list-style: none; margin: 0; padding: 0; }
.proscons li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
  line-height: 1.5;
}
.proscons li:last-child { margin-bottom: 0; }
.proscons li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}
.proscons__col--pros li::before { content: "+"; color: var(--green); }
.proscons__col--cons li::before { content: "−"; color: var(--amber); }

.review__bottom {
  background: var(--panel);
  border-top: 1px solid var(--border);
  padding: 1.15rem 1.5rem;
}
.review__bottom h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.4rem;
}
.review__bottom p { margin: 0; font-size: 0.97rem; color: var(--slate); }

/* ---------- 23. PipeScope Score ---------- */
.score {
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
  margin: 1.5rem 0;
}
.score__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  background: var(--navy);
  color: var(--surface);
}
.score__total {
  font-family: var(--font-mono);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.score__total sup { font-size: 0.82rem; font-weight: 500; color: #8FA3BE; margin-left: 2px; }
.score__label { font-size: 0.79rem; font-weight: 700; letter-spacing: 0.085em; text-transform: uppercase; }
.score__sub { display: block; font-size: 0.74rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: #8FA3BE; margin-top: 0.15rem; }
.score__rows { padding: 0.35rem 0; }

/* Row order: name → reason → bar, stacked in column 1.
   The score sits in column 2, vertically centered against the whole row. */
.score__row {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 0.28rem 0.9rem;
  padding: 0.8rem 1.35rem;
  border-bottom: 1px solid var(--alt);
}
.score__row:last-child { border-bottom: 0; }

.score__cat { grid-column: 1; font-size: 0.9rem; font-weight: 650; color: var(--navy); line-height: 1.3; }
.score__cat i { font-style: normal; color: var(--muted); font-weight: 400; font-size: 0.8rem; }

.score__why {
  grid-column: 1;
  margin: 0;
  font-size: 0.8rem;          /* ~12.8px at a 16px root */
  line-height: 1.45;
  color: var(--muted);
  text-wrap: pretty;
}

.score__bar {
  grid-column: 1;
  height: 6px;
  margin-top: 0.15rem;
  background: var(--alt);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.score__fill { height: 100%; background: linear-gradient(90deg, var(--teal), var(--blue)); border-radius: var(--r-pill); }

.score__val {
  grid-column: 2;
  grid-row: 1 / -1;           /* spans name + reason + bar */
  align-self: center;
  font-family: var(--font-mono);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--slate);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.score__foot {
  padding: 0.9rem 1.35rem;
  border-top: 1px solid var(--border);
  background: var(--panel-soft);
  font-size: 0.81rem;
  color: var(--muted);
  line-height: 1.55;
}
.score__foot strong { color: var(--slate); }

/* ---------- 24. FAQ ---------- */
.faq { border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  font-weight: 650;
  font-size: 1rem;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 10px; height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px);
  transition: transform var(--dur) var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq summary:hover { background: var(--panel-soft); }
.faq__answer { padding: 0 1.35rem 1.25rem; font-size: 0.97rem; color: var(--slate); }
.faq__answer p:last-child { margin: 0; }

/* ---------- 25. Author box ---------- */
.author-box {
  display: grid;
  gap: 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem;
  margin: 2.5rem 0 0;
}
@media (min-width: 620px) { .author-box { grid-template-columns: 64px 1fr; } }
.author-box__avatar {
  width: 64px; height: 64px;
  border-radius: var(--r-pill);
  background: var(--navy);
  color: var(--surface);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.author-box h3 { font-size: 1.05rem; margin-bottom: 0.15rem; }
.author-box__role { font-size: 0.83rem; color: var(--muted); margin: 0 0 0.7rem; }
.author-box p { font-size: 0.92rem; line-height: 1.6; margin-bottom: 0.7rem; }
.author-box__links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; font-size: 0.86rem; }

/* ---------- 26. Related guides ---------- */
.related-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.related-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 1.05rem 1.15rem;
  color: inherit;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.related-card:hover { border-color: var(--blue); box-shadow: var(--sh-sm); }
.related-card:focus-within { border-color: var(--blue); }

/* Makes the whole card clickable while keeping the anchor text clean. */
.stretched-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
a.related-card__title { color: var(--navy); text-decoration: none; }
a.related-card__title:hover { color: var(--blue-dark); text-decoration: none; }
.related-card__kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  color: var(--teal);
}
.related-card__title { font-weight: 650; font-size: 0.97rem; color: var(--navy); line-height: 1.35; }

/* ---------- 27. Inline CTA band ---------- */
.inline-cta {
  display: grid;
  gap: 1rem;
  align-items: center;
  background: var(--navy);
  border-radius: var(--r);
  padding: 1.5rem 1.65rem;
  margin: 2.25rem 0;
  color: #B9C8DC;
}
@media (min-width: 700px) { .inline-cta { grid-template-columns: 1fr auto; gap: 1.75rem; } }
.inline-cta h3 { color: var(--surface); margin: 0 0 0.35rem; font-size: 1.12rem; }
.inline-cta p { margin: 0; font-size: 0.92rem; color: #93A4BC; }

/* ---------- 28. Category landing page ---------- */
.cat-hero {
  background: linear-gradient(160deg, var(--navy) 0%, #16294a 100%);
  color: #B9C8DC;
  padding-block: 2.5rem 3rem;
}
.cat-hero h1 { color: var(--surface); max-width: 16em; }
.cat-hero p { color: #A9BCD4; max-width: 46em; font-size: 1.08rem; margin-bottom: 0; }
.cat-hero .breadcrumb a { color: #8FA3BE; }
.cat-hero .breadcrumb [aria-current="page"] { color: var(--surface); }
.cat-hero .breadcrumb li::after { color: #4A5D78; }
.cat-hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.75rem; }

.starthere {
  display: grid;
  gap: 1.5rem;
  background: var(--surface);
  border: 1.5px solid var(--blue);
  box-shadow: 0 0 0 4px var(--blue-tint);
  border-radius: var(--r-lg);
  padding: 1.75rem;
}
@media (min-width: 820px) { .starthere { grid-template-columns: 1.15fr 1fr; align-items: center; } }
.starthere h2 { margin-bottom: 0.6rem; }
.starthere__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.starthere__list a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 0.95rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--navy);
  min-height: 48px;
}
.starthere__list a:hover { background: var(--blue-tint); border-color: var(--blue); text-decoration: none; }
.starthere__list span { color: var(--muted); font-weight: 400; font-size: 0.85rem; margin-left: auto; }

/* Link list groups */
.linklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.linklist a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 48px;
  padding: 0.7rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.94rem;
  color: var(--slate);
  box-shadow: var(--sh-xs);
}
.linklist a:hover { border-color: var(--blue); color: var(--blue-dark); text-decoration: none; }
.linklist a::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border-strong);
  flex-shrink: 0;
}
.linklist a:hover::before { background: var(--blue); }
.linklist a b { font-weight: 650; color: var(--navy); }
.linklist a i { font-style: normal; margin-left: auto; font-size: 0.82rem; color: var(--muted); }

.group-grid { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(276px, 1fr)); }
.group h3 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  color: var(--navy);
  padding-bottom: 0.55rem;
  margin-bottom: 0.85rem;
  border-bottom: 2px solid var(--border);
}

/* ---------- 29. Comparison page ---------- */
.verdict-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue);
  border-radius: var(--r);
  padding: 1.5rem 1.65rem;
  margin: 1.75rem 0 2.25rem;
  box-shadow: var(--sh-sm);
}
.verdict-box h2 { font-size: 1.15rem; margin-bottom: 0.6rem; }

.choose-grid { display: grid; gap: 1.25rem; margin: 2rem 0; }
@media (min-width: 760px) { .choose-grid { grid-template-columns: 1fr 1fr; } }
.choose {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.choose h3 { font-size: 1.08rem; margin-bottom: 0.85rem; }
.choose ul { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.choose li { position: relative; padding-left: 1.6rem; margin-bottom: 0.55rem; font-size: 0.94rem; line-height: 1.5; }
.choose li::before {
  content: "✓";
  position: absolute; left: 0; top: -1px;
  color: var(--blue);
  font-weight: 700;
}
.choose .btn { margin-top: auto; }

/* ---------- 30. Search page ---------- */
.search-field { position: relative; margin-bottom: 1.5rem; }
.search-input {
  width: 100%;
  min-height: 56px;
  padding: 0.9rem 1.1rem 0.9rem 3rem;
  font: inherit;
  font-size: 1.05rem;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border-input);
  border-radius: var(--r);
  box-shadow: var(--sh-xs);
}
.search-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-tint); }
.search-field svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.75rem; }
.search-filter {
  min-height: 40px;
  padding: 0.45rem 0.95rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 550;
  color: var(--slate);
  cursor: pointer;
}
.search-filter[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--surface); }
.search-results { display: grid; gap: 0.75rem; }
.sresult {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 1.05rem 1.2rem;
  color: inherit;
}
.sresult:hover { border-color: var(--blue); text-decoration: none; color: inherit; box-shadow: var(--sh-sm); }
.sresult__kicker { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); }
.sresult__title { font-weight: 650; color: var(--navy); margin: 0.25rem 0 0.2rem; font-size: 1rem; }
.sresult__desc { font-size: 0.88rem; color: var(--muted); margin: 0; }
.search-empty { padding: 2.5rem 1rem; text-align: center; color: var(--muted); }
.search-count { font-size: 0.86rem; color: var(--muted); margin-bottom: 0.9rem; }

/* ---------- 31. Legal / simple pages ---------- */
.page-head {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding-block: 1rem 2.25rem;
}
.page-head h1 { margin-bottom: 0.5rem; }
.page-head p { color: var(--muted); max-width: 46em; margin: 0; font-size: 1.05rem; }
.page-head__meta { font-size: 0.84rem; color: var(--muted); margin-top: 1rem; }

.legal-body h2 { font-size: 1.28rem; margin-top: 2.25rem; }
.legal-body h3 { font-size: 1.05rem; margin-top: 1.5rem; }

/* ---------- 32. Utilities ---------- */
.stack > * + * { margin-top: 1.25rem; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.fs-sm { font-size: 0.88rem; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.divider { border-top: 1px solid var(--border); margin: 2.5rem 0; }

/* Print */
@media print {
  .site-header, .site-footer, .footer-cta, .inline-cta, .btn { display: none !important; }
  body { background: var(--surface); font-size: 12pt; }
}







