/* ==========================================================================
   Startup Credits — Clean Design System
   No shadows. No gradients. Flat, accessible, fast.
   ========================================================================== */

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

:root {
  --color-bg: #ffffff;
  --color-surface: #f7f7f5;
  --color-border: #e5e5e0;
  --color-border-strong: #111111;
  --color-text: #111111;
  --color-text-muted: #555555;
  --color-text-subtle: #777777;
  --color-accent: #ff5722;
  --color-accent-hover: #e64a19;
  --color-success: #1f7a3a;
  --color-warning: #b25c00;
  --color-link: #0a58ca;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Border radius scale — 2 / 4 / 8 / 16 / 24 / 32 */
  --radius-2:  2px;
  --radius-4:  4px;
  --radius-8:  8px;
  --radius-16: 16px;
  --radius-24: 24px;
  --radius-32: 32px;
  --radius-pill: 9999px;

  /* Legacy aliases (mapped to new scale, used by older selectors) */
  --radius-sm: var(--radius-4);
  --radius-md: var(--radius-8);
  --radius-lg: var(--radius-16);

  --container: 1200px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--color-text); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }

/* Typography
   Headings: Gloock (high-contrast editorial serif, single weight 400)
   Body / UI: Inter
   - Do NOT set font-weight on headings — Gloock has only one weight,
     forcing bold causes ugly faux-bolding.
   - Use slightly tighter line-height; serif headlines feel taller. */
/* Headings — Plus Jakarta Sans (geometric humanist sans).
   - Renders well at 600/700 with no faux-bold issues.
   - Tight tracking for editorial display feel. */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-text);
  letter-spacing: -0.025em;
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); letter-spacing: -0.035em; font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); letter-spacing: -0.03em; font-weight: 700; }
h3 { font-size: 1.4rem; letter-spacing: -0.02em; font-weight: 600; }
h4 { font-size: 1.1rem; letter-spacing: -0.015em; font-weight: 600; }
p  { color: var(--color-text-muted); }

/* Layout */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-5); }
.section { padding: var(--space-9) 0; }
.section--sm { padding: var(--space-7) 0; }
.section--alt { background-color: var(--color-surface); }

.row { display: flex; flex-wrap: wrap; gap: var(--space-5); }
.grid { display: grid; gap: var(--space-5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-4) 0;
}
.nav__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  flex-shrink: 0;
}
.nav__logo span { color: var(--color-accent); }
.nav__links {
  display: flex;
  gap: var(--space-5);
  list-style: none;
  align-items: center;
  flex: 1;
}
.nav__links a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav__links a:hover,
.nav__links a.is-active {
  color: var(--color-text);
  text-decoration: none;
}
/* Push the CTA (last item in the list) to the right edge */
.nav__links li:has(.nav__cta) {
  margin-left: auto;
}
.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  background-color: var(--color-text);
  color: #fff !important;
  border-radius: var(--radius-8);
  font-size: 0.9rem;
  font-weight: 600;
}
.nav__cta:hover { background-color: #000; text-decoration: none; }

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-4);
  padding: 6px 10px;
  font-size: 1.1rem;
  margin-left: auto;
}

@media (max-width: 800px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: var(--space-4) var(--space-5);
    gap: var(--space-3);
    display: none;
  }
  .nav__links.is-open { display: flex; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px 18px;
  border-radius: var(--radius-8);
  border: 1px solid var(--color-text);
  background-color: var(--color-text);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background-color: #000; border-color: #000; text-decoration: none; }
.btn--secondary { background-color: transparent; color: var(--color-text); }
.btn--secondary:hover { background-color: var(--color-text); color: #fff; }
.btn--accent { background-color: var(--color-accent); border-color: var(--color-accent); }
.btn--accent:hover { background-color: var(--color-accent-hover); border-color: var(--color-accent-hover); }
.btn--sm { padding: 6px 12px; font-size: 0.85rem; }
.btn--block { width: 100%; }

/* Hero */
.hero {
  padding: var(--space-9) 0 var(--space-8);
  border-bottom: 1px solid var(--color-border);
}
.hero__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-4);
}
.hero h1 { max-width: 820px; margin-bottom: var(--space-4); }
.hero p { max-width: 680px; font-size: 1.1rem; margin-bottom: var(--space-5); }
.hero__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-7);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}
.hero__stat strong { display: block; font-size: 1.6rem; font-weight: 700; }
.hero__stat span { color: var(--color-text-muted); font-size: 0.9rem; }

/* Section header */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.section-head h2 { margin-bottom: var(--space-2); }
.section-head p { max-width: 560px; }
.section-head a { color: var(--color-text); font-weight: 600; font-size: 0.95rem; }

/* Cards */
.card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-16);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--color-border-strong); }
.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.card__logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-8);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  flex-shrink: 0;
}
.card__logo img {
  width: 24px;
  height: 24px;
  display: block;
  filter: grayscale(1) brightness(0.4);
  opacity: 0.9;
}
.card__amount {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-text);
  padding: 4px 10px;
  border-radius: var(--radius-4);
}
.card h3 { margin-bottom: var(--space-2); }
.card h3 a { color: var(--color-text); }
.card p { font-size: 0.95rem; margin-bottom: var(--space-4); }
.card__meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.card__tags { display: flex; gap: var(--space-2); flex-wrap: wrap; }

/* Tag */
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-4);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  background: var(--color-bg);
}
.tag--solid { background: var(--color-text); color: #fff; border-color: var(--color-text); }
.tag--accent { color: var(--color-accent); border-color: var(--color-accent); }

/* Forms / Filters */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.field label { font-size: 0.85rem; font-weight: 600; color: var(--color-text); }
.input, .select, .textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-8);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 0.95rem;
  font-family: inherit;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--color-text);
}
.textarea { resize: vertical; min-height: 140px; }

.search-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-16);
  background: var(--color-bg);
}
.search-bar .input { border: none; padding: 6px 8px; }
.search-bar .input:focus { outline: none; }

.filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3);
  align-items: end;
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-16);
  background: var(--color-bg);
}
@media (max-width: 800px) {
  .filters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .filters { grid-template-columns: 1fr; }
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.filter-tags button {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
}
.filter-tags button:hover { border-color: var(--color-text); color: var(--color-text); }
.filter-tags button.is-active {
  background: var(--color-text);
  color: #fff;
  border-color: var(--color-text);
}

/* Category grid */
.category-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-16);
  padding: var(--space-5);
  text-decoration: none;
  color: var(--color-text);
  display: block;
  transition: border-color .15s ease;
}
.category-card:hover { border-color: var(--color-border-strong); text-decoration: none; }
.category-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
  font-size: 1.1rem;
  font-weight: 700;
}
.category-card h3 { font-size: 1.1rem; margin-bottom: var(--space-2); }
.category-card p { font-size: 0.9rem; }
.category-card__count {
  display: inline-block;
  margin-top: var(--space-3);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

/* Detail page */
.detail-hero {
  padding: var(--space-7) 0;
  border-bottom: 1px solid var(--color-border);
}
.detail-hero__inner {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-5);
  align-items: start;
}
@media (max-width: 600px) { .detail-hero__inner { grid-template-columns: 1fr; } }
.detail-hero__logo {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-16);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.6rem;
}
.detail-hero__logo img {
  width: 44px;
  height: 44px;
  display: block;
  filter: grayscale(1) brightness(0.4);
  opacity: 0.9;
}
.detail-hero h1 { margin-bottom: var(--space-3); }
.detail-hero__meta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-4); }
.detail-hero__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

.detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-7);
  margin-top: var(--space-7);
}
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }

.prose h2 { margin: var(--space-6) 0 var(--space-3); }
.prose h3 { margin: var(--space-5) 0 var(--space-2); }
.prose p { margin-bottom: var(--space-4); }
.prose ul, .prose ol { margin: 0 0 var(--space-4) var(--space-5); color: var(--color-text-muted); }
.prose li { margin-bottom: var(--space-2); }

.sidebar {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-16);
  padding: var(--space-5);
  background: var(--color-bg);
  position: sticky;
  top: 100px;
  align-self: start;
}
.sidebar h4 { margin-bottom: var(--space-3); }
.sidebar dl { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-bottom: var(--space-5); }
.sidebar dt { font-size: 0.8rem; color: var(--color-text-muted); }
.sidebar dd { font-size: 0.95rem; font-weight: 600; }

/* CTA strip */
.cta-strip {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-24);
  padding: var(--space-7);
  text-align: center;
  background: var(--color-surface);
}
.cta-strip h2 { margin-bottom: var(--space-3); }
.cta-strip p { max-width: 560px; margin: 0 auto var(--space-5); }
.cta-strip .hero__actions { justify-content: center; }

/* Footer ---------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-7) 0 var(--space-5);
  background: var(--color-bg);
}

/* Brand strip — top of footer */
.footer-brand {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-6);
  align-items: end;
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-6);
}
.footer-brand__lead { max-width: 460px; }
.footer-brand__lead p {
  margin-top: var(--space-3);
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.footer-brand__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.footer-brand__stats > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-brand__stats strong {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
}
.footer-brand__stats span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}
@media (max-width: 800px) {
  .footer-brand { grid-template-columns: 1fr; align-items: start; }
}

/* Link grid — main footer columns */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}
.footer-grid--col-credits { grid-column: span 2; }
.footer-grid--col-credits ul {
  columns: 2;
  column-gap: var(--space-5);
}
.footer-grid--col-credits li { break-inside: avoid; }
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid--col-credits { grid-column: span 2; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid--col-credits { grid-column: span 1; }
  .footer-grid--col-credits ul { columns: 1; }
}
.footer-grid h5 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  font-weight: 600;
}
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 8px; padding: 0; margin: 0; }
.footer-grid--col-credits ul { display: block; }
.footer-grid--col-credits li { padding: 4px 0; }
.footer-grid a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.footer-grid a:hover { color: var(--color-text); text-decoration: none; }
.footer-grid a .footer-amount {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-text-muted);
  opacity: 0.7;
}

/* Bottom bar */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
  gap: var(--space-3);
}
.footer-bottom p { font-size: 0.85rem; color: var(--color-text-muted); margin: 0; }
.footer-bottom__legal {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.footer-bottom__legal a {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.footer-bottom__legal a:hover { color: var(--color-text); text-decoration: none; }

/* Misc */
.divider { height: 1px; background: var(--color-border); border: 0; margin: var(--space-6) 0; }
.empty-state {
  text-align: center;
  padding: var(--space-7);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-16);
  color: var(--color-text-muted);
}
.breadcrumb {
  display: flex;
  gap: var(--space-2);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-text); }

/* FAQ */
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-16);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-3);
  background: var(--color-bg);
}
.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--color-text-muted); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin-top: var(--space-3); }

/* ==========================================================================
   HOME PAGE
   Design principles applied:
   - Single background color across all sections (var(--color-bg))
   - Sections separated by 1px hairline borders, never color blocks
   - Strong typographic hierarchy (display > h2 > h3 > body > eyebrow)
   - Consistent vertical rhythm (--home-section padding everywhere)
   - 12-col mental grid; hero is 7/5 asymmetric split for visual tension
   - Generous whitespace, tight grouping (proximity)
   - One accent color, used sparingly for emphasis only
   ========================================================================== */

:root {
  --home-section: clamp(64px, 9vw, 120px);
  --display-1: clamp(2.5rem, 6vw, 4.75rem);
}

.home main { background-color: var(--color-bg); }
.home .home-section {
  padding: var(--home-section) 0;
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-bg);
}
.home .home-section:last-child { border-bottom: 0; }

/* ----- Hero ----- */
.home-hero { padding-top: clamp(72px, 10vw, 140px); padding-bottom: var(--home-section); }
.home-hero__grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--space-8);
  align-items: end;
}
@media (max-width: 900px) {
  .home-hero__grid { grid-template-columns: 1fr; gap: var(--space-6); align-items: start; }
}

.home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}
.home-hero__eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--color-text);
  display: inline-block;
}

.home-hero h1 {
  font-family: var(--font-display);
  font-size: var(--display-1);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin-bottom: var(--space-5);
  max-width: 16ch;
}
.home-hero h1 em {
  color: var(--color-accent);
  font-style: italic;
  font-weight: 500;
}

.home-hero__lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 46ch;
  margin-bottom: var(--space-6);
}

.home-hero__actions {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  flex-wrap: wrap;
}
.home-hero__actions .btn { padding: 14px 22px; font-size: 1rem; }

.home-hero__meta {
  margin-top: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.85rem;
  color: var(--color-text-subtle);
}
.home-hero__meta .dot {
  width: 8px; height: 8px;
  background: var(--color-success);
  display: inline-block;
}

/* Right column "spec card" — quiet, informational */
.home-hero__aside {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-16);
  padding: var(--space-5);
  background: var(--color-bg);
}
.home-hero__aside h4 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  margin-bottom: var(--space-4);
}
.home-hero__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.home-hero__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--color-border);
  font-size: 0.95rem;
}
.home-hero__list li:first-child { border-top: 0; padding-top: 0; }
.home-hero__list li:last-child { padding-bottom: 0; }
.home-hero__list .label {
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}
.home-hero__list .label img {
  width: 18px;
  height: 18px;
  filter: grayscale(1) brightness(0.4);
  opacity: 0.85;
}
.home-hero__list .value {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-text);
}

/* ----- Logo strip (social proof) ----- */
.logo-strip {
  padding: var(--space-7) 0;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}
.logo-strip__label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  text-align: center;
  margin-bottom: var(--space-5);
}
.logo-strip__row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-4);
  align-items: center;
}
@media (max-width: 800px) { .logo-strip__row { grid-template-columns: repeat(3, 1fr); } }
.logo-strip__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-3);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  min-height: 64px;
  transition: border-color .15s ease, color .15s ease;
}
.logo-strip__item:hover { border-color: var(--color-text); color: var(--color-text); }
.logo-strip__item img,
.logo-strip__item svg {
  width: 22px;
  height: 22px;
  display: block;
  /* Render dark icons in mono palette */
  filter: grayscale(1) brightness(0.4);
  opacity: 0.85;
}

/* ----- Section header (home variant) ----- */
.home-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-5);
  align-items: end;
  margin-bottom: var(--space-7);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-border);
}
@media (max-width: 700px) {
  .home-head { grid-template-columns: 1fr; align-items: start; }
}
.home-head__eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  margin-bottom: var(--space-3);
}
.home-head h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  letter-spacing: -0.035em;
  font-weight: 700;
  max-width: 24ch;
  margin-bottom: var(--space-3);
  line-height: 1.1;
}
.home-head p {
  font-size: 1.02rem;
  color: var(--color-text-muted);
  max-width: 60ch;
}
.home-head__link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-text);
  padding-bottom: 2px;
  white-space: nowrap;
}
.home-head__link:hover { color: var(--color-accent); border-color: var(--color-accent); text-decoration: none; }

/* ----- Steps (How it works) — numbered, no boxes ----- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-7) var(--space-6);
}
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; gap: var(--space-6); } }
.step {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 2px solid var(--color-text);
}
.step__num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--color-text-subtle);
}
.step h3 {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.step p {
  font-size: 0.98rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ----- Stats band ----- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-24);
  overflow: hidden;
}
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: var(--space-6) var(--space-5);
  border-right: 1px solid var(--color-border);
  background: var(--color-bg);
}
.stat:last-child { border-right: 0; }
@media (max-width: 800px) {
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--color-border); }
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: var(--space-3);
}
.stat__label {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* ----- Final CTA — flat panel, same bg ----- */
.final-cta {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-7) 0;
}
.final-cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: var(--space-4);
}
.final-cta p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}
.final-cta .home-hero__actions { justify-content: center; }


/* ==========================================================================
   PROFILE CARD (Twitter / social style)
   - Brand-color banner
   - Square avatar that overlaps the banner edge
   - Name + handle stacked below
   - Bio (summary)
   - Stats row (amount / validity)
   - Chips (tags)
   - "Follow" style action top-right
   ========================================================================== */

.profile-card {
  position: relative;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-16);
  display: flex;
  flex-direction: column;
  transition: border-color .15s ease;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.profile-card:hover { border-color: var(--color-text); }

.profile-card__banner {
  display: block;
  height: 96px;
  background-color: #111;
  position: relative;
  /* Subtle dotted overlay using one repeating pattern, no gradients/shadows */
  background-image: radial-gradient(rgba(255,255,255,0.18) 1px, transparent 1px);
  background-size: 14px 14px;
  background-position: 0 0;
}
.profile-card__banner:hover { opacity: 0.95; }

.profile-card__body {
  padding: 0 var(--space-5) var(--space-5);
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.profile-card__top {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  margin-top: -32px; /* lifts avatar over banner */
  margin-bottom: var(--space-4);
  gap: var(--space-3);
}

.profile-card__avatar {
  width: 64px;
  height: 64px;
  border: 4px solid var(--color-bg);   /* white "frame" like Twitter */
  border-radius: var(--radius-16);
  background: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.2rem;
  overflow: hidden;
}
.profile-card__avatar img {
  width: 36px;
  height: 36px;
  display: block;
  /* Logos are requested in white via /ffffff so no filter needed */
}

.profile-card__follow {
  margin-top: auto;       /* push to bottom of card */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;            /* full width */
  padding: 12px 18px;
  border: 1px solid var(--color-text);
  border-radius: var(--radius-8);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  font-family: var(--font-sans);
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.profile-card__follow:hover {
  background: var(--color-text);
  color: #fff;
  text-decoration: none;
}

.profile-card__id { margin-bottom: var(--space-3); }
.profile-card__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 4px;
}
.profile-card__name a { color: var(--color-text); text-decoration: none; }
.profile-card__name a:hover { color: var(--color-accent); text-decoration: none; }
.profile-card__handle {
  color: var(--color-text-subtle);
  font-size: 0.9rem;
  margin: 0;
  font-family: var(--font-mono);
}

.profile-card__bio {
  color: var(--color-text-muted);
  font-size: 0.93rem;
  line-height: 1.55;
  margin-bottom: var(--space-4);
  /* clamp bio to 3 lines for grid balance */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.profile-card__meta {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.profile-card__meta li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.profile-card__num {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.95rem;
}
.profile-card__lbl {
  color: var(--color-text-subtle);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-4);
}
.chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 3px 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-text-muted);
  background: var(--color-bg);
  font-family: var(--font-sans);
  letter-spacing: 0.01em;
}
.chip:hover { border-color: var(--color-text); color: var(--color-text); }

/* ==========================================================================
   HOME PAGE — V2 OVERRIDES (cleaner, more editorial)
   ========================================================================== */

/* Tighten container for a more focused reading width */
.home .container { max-width: 1180px; }

/* Remove dividers between sections — let whitespace do the work */
.home .home-section { border-bottom: 0; padding: clamp(72px, 8vw, 112px) 0; }
.home .home-section + .home-section { padding-top: 0; }
.home .logo-strip { border-bottom: 0; padding-bottom: var(--space-7); }

/* HERO — single-column, centered, editorial */
.home-hero { padding-top: clamp(72px, 9vw, 128px); padding-bottom: clamp(56px, 7vw, 88px); }
.home-hero__grid {
  display: block;        /* drop the side card */
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.home-hero__eyebrow { justify-content: center; }
.home-hero__eyebrow::before,
.home-hero__eyebrow::after {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--color-text);
  display: inline-block;
}
.home-hero h1 {
  margin-left: auto;
  margin-right: auto;
  max-width: 18ch;
}
.home-hero__lede {
  margin-left: auto;
  margin-right: auto;
  max-width: 56ch;
}
.home-hero__actions { justify-content: center; }
.home-hero__meta { justify-content: center; }
.home-hero__aside { display: none; } /* removed: keep hero focused */

/* LOGO STRIP — simpler, no boxes around each logo */
.logo-strip { padding-top: var(--space-6); }
.logo-strip__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.logo-strip__item {
  border: 0;
  padding: 0;
  min-height: 0;
  background: transparent;
  font-weight: 500;
  color: var(--color-text-subtle);
}
.logo-strip__item:hover { background: transparent; }
.logo-strip__item img { width: 24px; height: 24px; }

/* SECTION HEADER — center, simpler */
.home .home-head {
  display: block;
  text-align: center;
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: var(--space-7);
}
.home .home-head h2 { margin-left: auto; margin-right: auto; }
.home .home-head p { margin-left: auto; margin-right: auto; }
.home .home-head__link {
  display: inline-block;
  margin-top: var(--space-4);
}

/* GRIDS — comfortable spacing for the new profile cards */
.home #featured-grid,
.home #credits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 1000px) {
  .home #featured-grid, .home #credits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .home #featured-grid, .home #credits-grid { grid-template-columns: 1fr; }
}

/* CATEGORIES — flat list, no card boxes (cleaner) */
.home #categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
}
@media (max-width: 900px) { .home #categories-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .home #categories-grid { grid-template-columns: 1fr; } }
.home .category-card {
  border: 0;
  border-radius: 0;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-5);
  background: var(--color-bg);
  transition: background .15s ease;
}
.home .category-card:hover { background: #fafaf7; border-color: var(--color-border); }

/* STATS — flatter, no inner borders feel like a box */
.home .stats { border: 0; border-radius: 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.home .stat { padding: var(--space-7) var(--space-5); }
@media (min-width: 801px) { .home .stat { border-right: 1px solid var(--color-border); } }
@media (min-width: 801px) { .home .stat:last-child { border-right: 0; } }

/* STEPS — keep but center the headers above */
.home .steps {
  max-width: 1080px;
  margin: 0 auto;
}

/* FINAL CTA — large, centered, full bleed of section */
.home .final-cta { max-width: 720px; padding: 0; }

/* All sections share the SAME background */
.home main, .home .home-section, .home .logo-strip { background-color: var(--color-bg) !important; }

/* ==========================================================================
   HOME — CATEGORIES (horizontal scroll rail)
   - Full-bleed (escapes container width)
   - Scroll-snap for smooth navigation
   - Hidden scrollbar (mouse) but still scrollable with trackpad/touch
   - First/last padding aligns with .container edge
   ========================================================================== */

.cat-section { padding-bottom: clamp(56px, 7vw, 96px); }

.cat-scroller {
  /* Full bleed: ignore parent container constraints */
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: var(--space-2) 0 var(--space-5);
}

.cat-rail {
  display: flex;
  gap: var(--space-5);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;             /* Firefox */
  -ms-overflow-style: none;          /* IE/Edge */

  /* Edge padding aligned to container gutter so first/last align with text */
  padding: var(--space-3) max(24px, calc((100vw - 1180px) / 2 + 24px));
  scroll-padding-left: max(24px, calc((100vw - 1180px) / 2 + 24px));
}
.cat-rail::-webkit-scrollbar { display: none; }   /* Chrome/Safari */

/* ----- Tile ----- */
.cat-tile {
  flex: 0 0 320px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-16);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color .15s ease, transform .2s ease;
  --cat-brand: #111;
}
.cat-tile:hover { border-color: var(--color-text); transform: translateY(-2px); }
.cat-tile:hover .cat-tile__cta { color: var(--color-accent); }

@media (min-width: 1100px) { .cat-tile { flex-basis: 360px; } }
@media (max-width: 600px)  { .cat-tile { flex-basis: 280px; } }

.cat-tile__hero {
  height: 140px;
  background-color: var(--cat-brand);
  background-image:
    radial-gradient(rgba(255,255,255,0.18) 1px, transparent 1px);
  background-size: 14px 14px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
}
.cat-tile__icon {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  font-style: italic;
  color: rgba(255,255,255,0.95);
  letter-spacing: -0.04em;
  line-height: 1;
}
.cat-tile__count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(0,0,0,0.25);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.cat-tile__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--space-3);
}
.cat-tile__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0;
  color: var(--color-text);
}
.cat-tile__desc {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cat-tile__footer {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.cat-tile__logos {
  display: flex;
  align-items: center;
  gap: 0;
}
.cat-tile__logo {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  background: var(--cat-brand);
  border: 2px solid var(--color-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: -8px;
  flex-shrink: 0;
}
.cat-tile__logo:first-child { margin-left: 0; }
.cat-tile__logo img {
  width: 14px;
  height: 14px;
  display: block;
}
.cat-tile__more {
  margin-left: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-subtle);
  font-weight: 600;
}
.cat-tile__cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  transition: color .15s ease;
}

/* Subtle hint below the rail */
.cat-hint {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  margin-top: var(--space-4);
}
@media (hover: none) { .cat-hint { display: none; } } /* hide on touch */

/* ==========================================================================
   CATEGORY RAIL — drag cursor + nav buttons
   ========================================================================== */
.cat-rail { cursor: grab; user-select: none; -webkit-user-select: none; }
.cat-rail.is-dragging { cursor: grabbing; }
.cat-rail.is-dragging a { pointer-events: none; }   /* prevent tile clicks while dragging */
.cat-rail img { pointer-events: none; user-drag: none; -webkit-user-drag: none; }

.cat-scroller { position: relative; }

.cat-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  font-family: var(--font-sans);
  font-weight: 500;
  transition: background .15s ease, color .15s ease, border-color .15s ease, opacity .15s ease;
}
.cat-nav:hover {
  background: var(--color-text);
  color: #fff;
  border-color: var(--color-text);
}
.cat-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.cat-nav--prev { left: max(16px, calc((100vw - 1180px) / 2 - 8px)); }
.cat-nav--next { right: max(16px, calc((100vw - 1180px) / 2 - 8px)); }

@media (max-width: 700px) {
  .cat-nav { width: 40px; height: 40px; font-size: 1rem; }
  .cat-nav--prev { left: 8px; }
  .cat-nav--next { right: 8px; }
}

/* Hide hint message — we have buttons now */
.cat-hint { display: none; }

/* ==========================================================================
   TRUST BAR
   ========================================================================== */
.trust-bar { padding-top: var(--space-5); padding-bottom: var(--space-7); }
.trust-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-24);
  overflow: hidden;
}
.trust-item {
  padding: var(--space-6);
  border-right: 1px solid var(--color-border);
  background: var(--color-bg);
}
.trust-item:last-child { border-right: 0; }
.trust-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}
.trust-item__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-2);
  line-height: 1.25;
}
.trust-item__copy {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin: 0;
}
@media (max-width: 900px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--color-border); }
}
@media (max-width: 520px) {
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--color-border); }
  .trust-item:last-child { border-bottom: 0; }
}

/* ==========================================================================
   REVIEWS
   ========================================================================== */
.rating-summary {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  margin-bottom: var(--space-6);
  width: fit-content;
}
.rating-summary__score {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.rating-summary__stars {
  color: #f59e0b;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
}
.rating-summary__count {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}
@media (max-width: 800px) { .reviews-grid { grid-template-columns: 1fr; } }

.review {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-24);
  padding: var(--space-6);
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.review__stars {
  color: #f59e0b;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  line-height: 1;
}
.review__body {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin: 0;
  quotes: none;
}
.review__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.review__author {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
}
.review__role {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}

/* ==========================================================================
   FAQ — Card style matching the Trust Bar (rounded container, hairline
   row dividers), but stacked top-to-bottom instead of 4-column.
   Each item has a numbered pill badge on the left (mirrors trust-item__icon).
   ========================================================================== */
.faq-section .faq-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-24);
  overflow: hidden;
  background: var(--color-bg);
  counter-reset: faq;
}
.faq-section .faq-item {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  border-radius: 0;
  padding: 0;
  margin: 0;
  counter-increment: faq;
  transition: background 150ms ease;
}
.faq-section .faq-item:last-child { border-bottom: 0; }
.faq-section .faq-item:hover { background: #fafaf7; }
.faq-section .faq-item[open] { background: #fafaf7; }

/* Question row — clickable, with number badge + question + toggle */
.faq-section .faq-item__q {
  list-style: none;
  cursor: pointer;
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  letter-spacing: -0.025em;
  color: var(--color-text);
  display: grid;
  grid-template-columns: 36px 1fr 32px;
  align-items: center;
  gap: var(--space-4);
  line-height: 1.35;
  transition: color 120ms ease;
}
.faq-section .faq-item__q::-webkit-details-marker,
.faq-section .faq-item__q::marker { display: none; content: ""; }

/* Numbered pill badge — mirrors .trust-item__icon */
.faq-section .faq-item__q::before {
  content: counter(faq, decimal-leading-zero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  transition: color 120ms ease, border-color 120ms ease, background 120ms ease;
}
.faq-section .faq-item:hover .faq-item__q::before,
.faq-section .faq-item[open] .faq-item__q::before {
  color: var(--color-accent);
  border-color: var(--color-text);
}

/* +/− toggle pill on the right — uses real glyphs (reliable across browsers) */
.faq-section .faq-item__q::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--color-text-muted);
  background: var(--color-bg);
  transition: border-color 120ms ease, color 120ms ease, background 120ms ease, transform 200ms ease;
}
.faq-section .faq-item:hover .faq-item__q::after {
  border-color: var(--color-text);
  color: var(--color-text);
}
.faq-section .faq-item[open] .faq-item__q::after {
  content: "−";
  border-color: var(--color-text);
  background: var(--color-text);
  color: var(--color-bg);
  font-size: 1.4rem;
}

.faq-section .faq-item__q:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

/* Answer — aligned with question text (offset to skip the number badge column) */
.faq-section .faq-item__a {
  padding: 0 var(--space-6) var(--space-6) calc(36px + var(--space-4) + var(--space-6));
  animation: faqFadeIn 200ms ease both;
}
.faq-section .faq-item__a p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 64ch;
}
.faq-section .faq-item__a strong { color: var(--color-text); font-weight: 600; }

@keyframes faqFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .faq-section .faq-item__q {
    grid-template-columns: 32px 1fr 28px;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    font-size: 1rem;
  }
  .faq-section .faq-item__q::before { width: 32px; height: 32px; font-size: 0.72rem; }
  .faq-section .faq-item__q::after { width: 28px; height: 28px; }
  .faq-section .faq-item__a {
    padding: 0 var(--space-5) var(--space-5) calc(32px + var(--space-3) + var(--space-5));
  }
}

/* ==========================================================================
   NEWSLETTER — flat editorial, two-column on desktop, no rounded box
   ========================================================================== */
.newsletter-section {
  /* Inherit normal home-section padding; no extra background */
}
.newsletter-section .newsletter {
  max-width: 1080px;
  margin: 0 auto;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-7) 0;
  background: transparent;
  border-radius: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-7);
  text-align: left;
}
.newsletter-section .newsletter__copy { max-width: none; }
.newsletter-section .newsletter__copy .home-head__eyebrow {
  margin-bottom: var(--space-3);
}
.newsletter-section .newsletter__copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.035em;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 var(--space-3);
  color: var(--color-text);
  max-width: 14ch;
}
.newsletter-section .newsletter__copy p {
  color: var(--color-text-muted);
  margin: 0;
  max-width: 44ch;
  font-size: 1rem;
  line-height: 1.6;
}

.newsletter-section .newsletter__form {
  display: flex;
  gap: var(--space-2);
  margin: 0 0 var(--space-3);
  padding: 6px;
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  background: var(--color-bg);
  transition: border-color 120ms ease;
}
.newsletter-section .newsletter__form:focus-within {
  border-color: var(--color-text);
}
.newsletter-section .newsletter__input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 12px 18px;
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--color-text);
  border-radius: 9999px;
  outline: none;
  min-width: 0;
}
.newsletter-section .newsletter__input::placeholder {
  color: var(--color-text-subtle);
}
.newsletter-section .newsletter__btn {
  border-radius: 9999px;
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
}
.newsletter-section .newsletter__note {
  font-size: 0.82rem;
  color: var(--color-text-subtle);
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
  margin: 0;
}

@media (max-width: 820px) {
  .newsletter-section .newsletter {
    grid-template-columns: 1fr;
    gap: var(--space-5);
    padding: var(--space-6) 0;
  }
  .newsletter-section .newsletter__copy h2 { max-width: none; }
}
@media (max-width: 520px) {
  .newsletter-section .newsletter__form {
    flex-direction: column;
    border-radius: var(--radius-16);
    padding: var(--space-3);
    gap: var(--space-3);
  }
  .newsletter-section .newsletter__input {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-8);
    padding: 12px 14px;
  }
  .newsletter-section .newsletter__btn { width: 100%; }
}

/* Screen-reader only */
.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;
}

/* ==================================================================
   Credits listing page — modern editorial layout
   ================================================================== */

/* Hero — split layout with stats on the right */
.page-hero {
  padding: var(--space-8) 0 var(--space-7);
  border-bottom: 1px solid var(--color-border);
}
.page-hero__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--space-7);
  align-items: end;
}
.page-hero__lead { max-width: 720px; }
.page-hero__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4);
  font-weight: 600;
}
.page-hero__lede {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0;
}
.page-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  border-left: 1px solid var(--color-border);
  padding-left: var(--space-6);
}
.page-hero__stat strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
}
.page-hero__stat span {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}
@media (max-width: 800px) {
  .page-hero__inner { grid-template-columns: 1fr; gap: var(--space-5); align-items: start; }
  .page-hero__stats { border-left: 0; border-top: 1px solid var(--color-border); padding-left: 0; padding-top: var(--space-4); }
}

/* Sticky toolbar — search + category segment + sort + count */
.listing-toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.listing-toolbar__inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  flex-wrap: wrap;
}

/* Search input — borderless, with icon */
.listing-search {
  flex: 1 1 280px;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-bg);
  transition: border-color .15s ease;
}
.listing-search:focus-within { border-color: var(--color-text); }
.listing-search__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-text-muted);
}
.listing-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  color: var(--color-text);
  padding: 4px 0;
}
.listing-search input::placeholder { color: var(--color-text-muted); }

/* Category segment — pill group of tabs */
.listing-segment {
  display: inline-flex;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
  background: var(--color-bg);
}
.listing-segment button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--color-text-muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.listing-segment button:hover { color: var(--color-text); }
.listing-segment button.is-active {
  background: var(--color-text);
  color: var(--color-bg);
}

/* Sort select — minimal */
.listing-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.listing-sort label { font-weight: 500; }
.listing-sort select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-bg);
  color: var(--color-text);
  font: inherit;
  font-size: 0.85rem;
  padding: 6px 28px 6px 12px;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.listing-sort select:focus { outline: none; border-color: var(--color-text); }

/* Result count — mono */
.listing-count {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  margin-left: auto;
}
.listing-count strong {
  color: var(--color-text);
  font-weight: 600;
}

@media (max-width: 720px) {
  .listing-toolbar__inner { gap: var(--space-3); }
  .listing-count { margin-left: 0; width: 100%; order: 99; }
  .listing-segment { overflow-x: auto; max-width: 100%; }
}

/* Tag rail — single-row scroller of tag pills */
.listing-tags {
  display: flex;
  gap: 8px;
  padding: var(--space-4) 0 var(--space-3);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-5);
}
.listing-tags::-webkit-scrollbar { display: none; }
.listing-tags button {
  flex-shrink: 0;
  appearance: none;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.listing-tags button:hover { border-color: var(--color-text); color: var(--color-text); }
.listing-tags button.is-active {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}

/* Active filters bar — only shown when filters applied */
.listing-active {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-5);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.listing-active__label { font-weight: 500; margin-right: 4px; }
.listing-active__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 4px 6px 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
}
.listing-active__chip button {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--color-text-muted);
  cursor: pointer;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
}
.listing-active__chip button:hover { background: var(--color-text); color: var(--color-bg); }
.listing-active__clear {
  margin-left: 4px;
  background: transparent;
  border: 0;
  color: var(--color-text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 4px 6px;
}

/* Listing grid — auto-fill so it flows on every viewport */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-5);
  padding-bottom: var(--space-9);
}

/* Empty state — editorial */
.listing-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-9) var(--space-5);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-16);
}
.listing-empty h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 var(--space-2);
}
.listing-empty p {
  color: var(--color-text-muted);
  margin: 0 0 var(--space-4);
}

/* ==================================================================
   Provider detail page — modern editorial layout
   ================================================================== */

/* Brand banner strip — full-width, brand color, sits behind logo lockup */
.detail-page__banner {
  height: 140px;
  background-color: var(--brand, #111);
  border-bottom: 1px solid var(--color-border);
}

/* Hero — sits below banner, logo card overlaps the banner.
   Breadcrumb sits ON the banner itself, above the lockup. */
.detail-page__hero {
  padding: 0 0 var(--space-6);
  border-bottom: 1px solid var(--color-border);
  position: relative;
}
.detail-page__hero .breadcrumb {
  /* Pull breadcrumb up onto the 140px banner above it */
  position: relative;
  z-index: 2;
  margin-top: -120px;        /* sit near top of banner */
  margin-bottom: 130px;       /* restore flow so lockup (margin-top:-40px) lands correctly */
  padding-top: 0;
  color: rgba(255, 255, 255, 0.85);
}
.detail-page__hero .breadcrumb a { color: rgba(255, 255, 255, 0.75); }
.detail-page__hero .breadcrumb a:hover { color: #fff; }
.detail-page__hero .breadcrumb span { color: rgba(255, 255, 255, 0.55); }
.detail-page__hero .breadcrumb > span:last-child { color: #fff; font-weight: 500; }
@media (max-width: 640px) {
  .detail-page__hero .breadcrumb { flex-wrap: wrap; row-gap: 4px; }
}
.detail-page__lockup {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: var(--space-5);
  align-items: end;
  margin-top: -40px; /* gentle overlap so logo just kisses the banner */
}
.detail-page__logo {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-16);
  background-color: var(--brand, #111);
  border: 4px solid var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  top: -24px; /* nudge logo up a bit relative to lockup */
}
.detail-page__logo img {
  width: 52px;
  height: 52px;
  display: block;
  /* white SVG on brand-colored bg — no filter */
}
.detail-page__amount {
  text-align: right;
  align-self: end;
  padding-bottom: 6px;
}
.detail-page__amount-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--color-text);
}
.detail-page__amount-lbl {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}
.detail-page__title-row {
  margin-top: var(--space-5);
}
.detail-page__provider {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin: 0 0 8px;
  text-transform: uppercase;
}
.detail-page__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 var(--space-3);
  max-width: 800px;
}
.detail-page__summary {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 720px;
  margin: 0 0 var(--space-4);
}
.detail-page__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-5);
}
.detail-page__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
@media (max-width: 720px) {
  .detail-page__banner { height: 100px; }
  .detail-page__lockup {
    grid-template-columns: 80px 1fr;
    margin-top: -56px;
  }
  .detail-page__logo { width: 80px; height: 80px; }
  .detail-page__logo img { width: 44px; height: 44px; }
  .detail-page__amount {
    grid-column: 1 / -1;
    text-align: left;
    padding-bottom: 0;
    padding-top: var(--space-3);
    border-top: 1px solid var(--color-border);
    margin-top: var(--space-3);
  }
}

/* Quick facts strip — horizontal stat row */
.detail-facts {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-5) 0;
  background: var(--color-bg);
}
.detail-facts__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}
.detail-facts__list > li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.detail-facts__lbl {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  font-weight: 600;
}
.detail-facts__val {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
}
@media (max-width: 800px) {
  .detail-facts__list { grid-template-columns: repeat(3, 1fr); row-gap: var(--space-4); }
}
@media (max-width: 480px) {
  .detail-facts__list { grid-template-columns: repeat(2, 1fr); }
}

/* 2-column body layout */
.detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--space-7);
  padding: var(--space-7) 0;
}
@media (max-width: 980px) {
  .detail-body { grid-template-columns: 1fr; gap: var(--space-6); }
}

/* Sections within main content — eyebrow + hairline rhythm */
.detail-section {
  padding: var(--space-6) 0;
  border-top: 1px solid var(--color-border);
}
.detail-section:first-child { padding-top: 0; border-top: 0; }
.detail-section__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-2);
}
.detail-section__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 var(--space-4);
}
.detail-section p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-3);
}
.detail-section p strong { color: var(--color-text); }
.detail-section ul,
.detail-section ol {
  margin: 0 0 var(--space-3);
  padding-left: var(--space-5);
  color: var(--color-text-muted);
}
.detail-section li {
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 10px;
}
.detail-section li::marker { color: var(--color-text-muted); }

/* Definition-style "What's included" — bullets with check marks */
.detail-section--checks ul {
  list-style: none;
  padding-left: 0;
}
.detail-section--checks li {
  position: relative;
  padding-left: 28px;
}
.detail-section--checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  color: var(--color-text);
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Sidebar — apply card + on-page TOC */
.detail-aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  position: sticky;
  top: 90px;
  align-self: start;
}
@media (max-width: 980px) {
  .detail-aside { position: static; }
}

.detail-apply {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-16);
  padding: var(--space-5);
  background: var(--color-bg);
}
.detail-apply__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}
.detail-apply__logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-8);
  background-color: var(--brand, #111);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.detail-apply__logo img {
  width: 22px;
  height: 22px;
  display: block;
}
.detail-apply__provider {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  font-weight: 600;
  margin: 0 0 2px;
}
.detail-apply__amount {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
  letter-spacing: -0.01em;
}
.detail-apply__btn {
  display: block;
  text-align: center;
  width: 100%;
  margin-bottom: 10px;
}
.detail-apply__note {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-align: center;
  margin: var(--space-3) 0 0;
}

/* Side TOC */
.detail-toc {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-16);
  padding: var(--space-4) var(--space-5);
  background: var(--color-bg);
}
.detail-toc__title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  font-weight: 600;
  margin: 0 0 var(--space-3);
}
.detail-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.detail-toc a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.detail-toc a:hover { color: var(--color-text); text-decoration: none; }
.detail-toc a span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  opacity: 0.7;
}

/* Detail-page FAQ — reuse .faq-item but tighter spacing */
.detail-faq { display: flex; flex-direction: column; gap: 8px; counter-reset: dfaq; }
.detail-faq .faq-item { counter-increment: dfaq; padding: var(--space-3) var(--space-5); }
.detail-faq .faq-item summary { gap: var(--space-4); }
.detail-faq .faq-item summary::before {
  content: counter(dfaq, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-right: var(--space-3);
}

/* Apply CTA banner — brand-tinted strip before related credits */
.detail-cta {
  margin: var(--space-6) 0;
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-24);
  background-color: var(--color-surface);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-5);
  align-items: center;
}
.detail-cta__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.detail-cta__copy {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0;
  max-width: 580px;
}
@media (max-width: 720px) {
  .detail-cta { grid-template-columns: 1fr; padding: var(--space-5); }
}

/* Related credits — use the listing-grid auto-fill from credits page */
.detail-related { padding-bottom: var(--space-9); }
.detail-related .listing-grid { padding-bottom: 0; }

/* ============================================================
   POST PAGE — guides, best-of, vs comparisons (programmatic SEO)
   ============================================================ */
.post-page main { padding: 48px 0 96px; }
.post-article { max-width: 760px; }
.post-crumbs {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.post-crumbs a { color: #6b7280; text-decoration: none; }
.post-crumbs a:hover { color: #111; text-decoration: underline; }
.post-crumbs span[aria-current] { color: #111; }

.post-hero { padding-bottom: 32px; border-bottom: 1px solid #e5e7eb; margin-bottom: 40px; }
.post-hero__eyebrow {
  display: inline-block;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin-bottom: 16px;
  padding: 4px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
}
.post-hero__title {
  font-family: "Plus Jakarta Sans", -apple-system, sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.post-hero__title em { font-style: italic; font-weight: 500; color: #6b7280; }
.post-hero__lede {
  font-size: 20px;
  line-height: 1.55;
  color: #374151;
  margin: 0 0 16px;
}
.post-hero__lede strong { color: #111; font-weight: 600; }
.post-hero__meta {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 12px;
  color: #6b7280;
  margin: 0;
}

.post-body .detail-section {
  padding: 32px 0;
  border-bottom: 1px solid #f3f4f6;
}
.post-body .detail-section:last-child { border-bottom: none; }
.post-body .detail-section h2 {
  font-family: "Plus Jakarta Sans", -apple-system, sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  color: #111;
}
.post-body .detail-section p {
  font-size: 17px;
  line-height: 1.65;
  color: #374151;
  margin: 0 0 16px;
}
.post-body .detail-section p strong { color: #111; font-weight: 600; }
.post-body .detail-section a {
  color: #111;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.post-body .detail-section a:hover { text-decoration-thickness: 2px; }

.post-list { padding-left: 24px; margin: 0 0 16px; }
.post-list li {
  font-size: 17px;
  line-height: 1.65;
  color: #374151;
  margin-bottom: 10px;
}
.post-list li strong { color: #111; font-weight: 600; }
.post-list--num { list-style: decimal; }

.post-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}
.post-table th {
  text-align: left;
  padding: 12px 16px;
  background: #f9fafb;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
}
.post-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  vertical-align: top;
}
.post-table tr:last-child td { border-bottom: none; }
.post-table td strong { color: #111; font-weight: 600; }
.post-table td a {
  color: #111;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.post-related {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.post-related li { margin: 0; }
.post-related a {
  display: block;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  text-decoration: none;
  background: #fff;
}
.post-related a:hover { border-color: #111; }
.post-related a strong {
  display: block;
  color: #111;
  font-weight: 600;
  margin-bottom: 4px;
  text-decoration: none;
}
.post-related a span {
  font-size: 13px;
  color: #6b7280;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
}

@media (max-width: 640px) {
  .post-hero__title { font-size: 32px; }
  .post-hero__lede { font-size: 17px; }
  .post-table { font-size: 13px; display: block; overflow-x: auto; }
}

/* ============================================================
   HOME — GUIDES & COMPARISONS GRID (04 — Read first)
   ============================================================ */
.home-guides {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.home-guide {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-16);
  color: var(--color-text);
  text-decoration: none;
  transition: border-color 120ms ease, transform 120ms ease;
}

.home-guide:hover {
  border-color: var(--color-border-strong);
  text-decoration: none;
}

.home-guide__tag {
  display: inline-block;
  width: fit-content;
  padding: 4px 10px;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
}

.home-guide h3 {
  font-family: var(--font-display, "Plus Jakarta Sans", sans-serif);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--color-text);
}

.home-guide p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--color-text-muted);
}

@media (max-width: 960px) {
  .home-guides { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .home-guides { grid-template-columns: 1fr; gap: var(--space-3); }
  .home-guide { padding: var(--space-4); }
  .home-guide h3 { font-size: 18px; }
}

/* ============================================================
   PRODUCTS — listing page (page-hero + grid + filters + cards)
   ============================================================ */
.page-hero {
  padding: var(--space-8) 0 var(--space-7);
  border-bottom: 1px solid var(--color-border);
}
.page-hero__eyebrow {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.page-hero h1 {
  font-family: var(--font-display, "Plus Jakarta Sans", sans-serif);
  font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(36px, 5vw, 56px); line-height: 1.05;
  margin-bottom: var(--space-3); max-width: 880px;
}
.page-hero__lede {
  font-size: 1.1rem; max-width: 720px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}
.page-hero__stats {
  display: grid; grid-template-columns: repeat(4, auto);
  gap: var(--space-7); justify-content: start;
  padding-top: var(--space-5); border-top: 1px solid var(--color-border);
}
.page-hero__stats > div { display: flex; flex-direction: column; gap: 2px; }
.page-hero__stats strong {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 28px; font-weight: 700; color: var(--color-text);
  letter-spacing: -0.5px;
}
.page-hero__stats span { color: var(--color-text-muted); font-size: 0.9rem; }
@media (max-width: 720px) {
  .page-hero__stats { grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
}

/* listing */
.prod-listing { padding: var(--space-8) 0; }
.prod-filters {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.prod-filter {
  font-family: inherit; font-size: 14px; font-weight: 500;
  padding: 8px 16px; border-radius: var(--radius-pill);
  background: var(--color-bg);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: border-color 120ms ease, color 120ms ease, background 120ms ease;
}
.prod-filter:hover { border-color: var(--color-border-strong); color: var(--color-text); }
.prod-filter.is-active {
  background: var(--color-text);
  color: #fff;
  border-color: var(--color-text);
}
.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
@media (max-width: 960px) { .prod-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .prod-grid { grid-template-columns: 1fr; } }

/* card */
.prod-card {
  display: flex; flex-direction: column;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-16);
  overflow: hidden;
  transition: border-color 120ms ease;
}
.prod-card:hover { border-color: var(--color-border-strong); }
.prod-card__media {
  display: flex; align-items: center; justify-content: center;
  height: 160px;
  background: var(--brand, var(--color-surface));
  border-bottom: 1px solid var(--color-border);
  position: relative;
}
.prod-card__media img { width: 72px; height: 72px; object-fit: contain; }
.prod-card__media::after {
  content: attr(data-faceval);
  position: absolute;
  top: 12px; right: 12px;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.95);
  background: rgba(0,0,0,0.28);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(2px);
}
.prod-card__media[data-faceval=""]::after { display: none; }
.prod-card__body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.prod-card__meta { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.prod-card__cat {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 4px 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
}
.prod-card h3 {
  font-family: var(--font-display, "Plus Jakarta Sans", sans-serif);
  font-weight: 700; font-size: 18px; line-height: 1.25; letter-spacing: -0.01em;
  margin: 0;
}
.prod-card h3 a { color: var(--color-text); }
.prod-card__sub { font-size: 14px; line-height: 1.5; color: var(--color-text-muted); margin: 0; flex: 1; }
.prod-card__priceRow { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--color-border); }
.prod-card__price { display: flex; flex-direction: column; gap: 2px; }
.prod-card__priceNow {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 22px; font-weight: 700; color: var(--color-text); letter-spacing: -0.5px;
}
.prod-card__priceFace { font-size: 12px; color: var(--color-text-subtle); }
.prod-card__save {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 12px; font-weight: 600;
  color: var(--color-success);
  padding: 4px 10px;
  background: rgba(31, 122, 58, 0.08);
  border-radius: var(--radius-pill);
}
.prod-card__actions { display: flex; gap: var(--space-2); }
.prod-card__actions .btn { flex: 1; }

/* stock badges (shared) */
.prod-stock {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 11px; font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}
.prod-stock--ok  { color: var(--color-success); background: rgba(31, 122, 58, 0.08); }
.prod-stock--mid { color: var(--color-warning); background: rgba(178, 92, 0, 0.08); }
.prod-stock--low { color: #b91c1c; background: rgba(185, 28, 28, 0.08); }

/* small button helper */
.btn--sm { padding: 8px 14px; font-size: 13px; }
.btn--block { display: block; width: 100%; text-align: center; margin-top: var(--space-2); }

/* ============================================================
   PRODUCTS — detail page
   ============================================================ */
.prod-detail { padding: var(--space-7) 0 var(--space-9); }
.prod-detail__grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--space-7);
  margin-top: var(--space-5);
  align-items: start;
}
@media (max-width: 880px) { .prod-detail__grid { grid-template-columns: 1fr; } }

.prod-detail__media {
  position: sticky; top: 96px;
  display: flex; flex-direction: column; gap: var(--space-4);
}
.prod-detail__logo {
  display: flex; align-items: center; justify-content: center;
  height: 200px;
  border-radius: var(--radius-16);
  border: 1px solid var(--color-border);
}
.prod-detail__logo img { width: 80px; height: 80px; object-fit: contain; }

.prod-detail__facts {
  display: grid; grid-template-columns: 1fr; gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-16);
  overflow: hidden;
  margin: 0;
}
.prod-detail__facts > div {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}
.prod-detail__facts > div:last-child { border-bottom: 0; }
.prod-detail__facts dt { color: var(--color-text-muted); margin: 0; font-weight: 500; }
.prod-detail__facts dd { margin: 0; color: var(--color-text); font-weight: 600; text-align: right; }
.prod-detail__facts dd.num { font-family: var(--font-mono, "JetBrains Mono", monospace); font-weight: 700; }

.prod-detail__main { display: flex; flex-direction: column; gap: var(--space-5); }
.prod-detail__cat {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-text-muted); margin: 0;
}
.prod-detail__main h1 {
  font-family: var(--font-display, "Plus Jakarta Sans", sans-serif);
  font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(28px, 4vw, 40px); line-height: 1.1; margin: 0;
}
.prod-detail__lede { font-size: 17px; line-height: 1.55; color: var(--color-text-muted); margin: 0; }

.prod-detail__priceBox {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-16);
  padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-3);
  background: var(--color-bg);
}
.prod-detail__priceRow { display: flex; align-items: baseline; gap: var(--space-4); flex-wrap: wrap; }
.prod-detail__priceNow {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 40px; font-weight: 700; letter-spacing: -1px;
  color: var(--color-text);
}
.prod-detail__priceFace { color: var(--color-text-muted); font-size: 14px; }
.prod-detail__priceFace strong { color: var(--color-success); font-weight: 700; }
.prod-detail__stockRow { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.prod-detail__delivery { color: var(--color-text-muted); font-size: 13px; }

.prod-detail__bullets h3 {
  font-family: var(--font-display, "Plus Jakarta Sans", sans-serif);
  font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--color-text-subtle);
  margin: 0 0 var(--space-3);
}
.prod-detail__bullets ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.prod-detail__bullets li {
  position: relative; padding-left: 22px; font-size: 15px;
}
.prod-detail__bullets li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--color-accent); font-weight: 700;
}

/* long-form sections */
.prod-detail__longform {
  margin-top: var(--space-9);
  padding-top: var(--space-7);
  border-top: 1px solid var(--color-border);
  display: flex; flex-direction: column; gap: var(--space-7);
  max-width: 760px;
}
.prod-section h2 {
  font-family: var(--font-display, "Plus Jakarta Sans", sans-serif);
  font-weight: 700; font-size: 24px; letter-spacing: -0.01em;
  margin: 0 0 var(--space-4);
}
.prod-section__note {
  margin-top: var(--space-4); padding: var(--space-4);
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-8);
  font-size: 14px; color: var(--color-text-muted);
}

.post-faq {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-8);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-2);
}
.post-faq summary {
  font-family: var(--font-display, "Plus Jakarta Sans", sans-serif);
  font-weight: 600; cursor: pointer; list-style: none;
  font-size: 16px;
}
.post-faq summary::-webkit-details-marker { display: none; }
.post-faq[open] summary { color: var(--color-accent); }
.post-faq p { margin: var(--space-3) 0 0; color: var(--color-text-muted); font-size: 15px; line-height: 1.55; }

/* ============================================================
   BUY MODAL
   ============================================================ */
.buy-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-4);
}
.buy-modal[hidden] { display: none; }
.buy-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(17, 17, 17, 0.55);
}
.buy-modal__panel {
  position: relative;
  width: 100%; max-width: 480px;
  background: var(--color-bg);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-16);
  padding: var(--space-6);
  max-height: 90vh; overflow-y: auto;
}
.buy-modal__close {
  position: absolute; top: 12px; right: 12px;
  background: transparent; border: 0;
  font-size: 28px; line-height: 1; cursor: pointer;
  color: var(--color-text-muted);
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-pill);
}
.buy-modal__close:hover { background: var(--color-surface); color: var(--color-text); }
.buy-modal__eyebrow {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-text-muted); margin: 0 0 var(--space-2);
}
.buy-modal__panel h3 {
  font-family: var(--font-display, "Plus Jakarta Sans", sans-serif);
  font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: -0.01em;
  margin: 0 0 var(--space-2);
}
.buy-modal__sub { font-size: 14px; color: var(--color-text-muted); margin: 0 0 var(--space-5); }

.buy-form { display: flex; flex-direction: column; gap: var(--space-4); }
.buy-form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--color-text);
}
.buy-form input,
.buy-form textarea {
  font: inherit; font-size: 15px; font-weight: 400;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-8);
  background: var(--color-bg);
  color: var(--color-text);
  width: 100%;
}
.buy-form input:focus,
.buy-form textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-accent);
}
.buy-form__legal { font-size: 12px; color: var(--color-text-subtle); margin: 0; line-height: 1.4; }

/* ============================================================
   GLOBAL — UNIFIED SECTION BACKGROUND + NO INTER-SECTION BORDERS
   (override block, last in file so it wins specificity ties)
   ============================================================ */

/* 1. Force all section/main containers to share one bg color (white) */
body,
main,
.home main,
.home .home-section,
.home .logo-strip,
.section,
.section--alt,
.home-section,
.reviews-section,
.newsletter-section,
.page-hero,
.prod-listing,
.prod-detail,
.post-page,
.post-hero {
  background-color: var(--color-bg) !important;
}

/* 2. Remove top/bottom borders that act as section dividers */
.section,
.section--alt,
.home-section,
.reviews-section,
.newsletter-section,
.page-hero,
.prod-listing,
.prod-detail,
.post-page,
.post-hero,
.hero,
.home-hero,
.home-cta,
.final-cta,
.cta-section,
.trust-section,
.logo-strip,
.faq-section,
.stats-section {
  border-top: 0 !important;
  border-bottom: 0 !important;
}

/* 3. Site header keeps its bottom border for nav clarity, footer keeps its top border */
/*    (intentional — these are not 'between sections', they bracket the page) */

/* 4. Strip the divider rules that appear inside section wrappers */
.home-hero,
.home-section + .home-section,
.home .home-section + .home-section,
.section + .section,
.page-hero + section,
.prod-listing + section {
  border-top: 0 !important;
}

/* 5. Hero internal stat divider (was a top-border separating hero copy from stats) — keep that one
      because it's an INSIDE-section divider, not between sections. No change needed. */

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-section { padding: var(--space-9) 0; }
.about-section + .about-section { padding-top: 0; }

.about-head {
  max-width: 760px;
  margin: 0 0 var(--space-7);
}
.about-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-3);
}
.about-head p {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  margin: 0;
  max-width: 65ch;
}

/* Pillars grid (4 values) */
.about-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
.about-pillar {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-16);
  padding: var(--space-5);
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.about-pillar__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--color-text-subtle);
  text-transform: uppercase;
}
.about-pillar h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  margin: 0;
  letter-spacing: -0.01em;
}
.about-pillar p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.55;
}
@media (max-width: 960px) {
  .about-pillars { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .about-pillars { grid-template-columns: 1fr; }
}

/* Prose + sidebar */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--space-7);
  align-items: start;
}
.about-prose { max-width: 68ch; }
.about-prose h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin: var(--space-6) 0 var(--space-3);
}
.about-prose h3:first-child { margin-top: 0; }
.about-prose p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  margin: 0 0 var(--space-4);
}
.about-prose ul,
.about-prose ol {
  margin: 0 0 var(--space-4) var(--space-5);
  padding: 0;
}
.about-prose li {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: sticky;
  top: var(--space-5);
}
.about-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-16);
  padding: var(--space-5);
  background: var(--color-bg);
}
.about-card--accent {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}
.about-card--accent h4,
.about-card--accent p { color: var(--color-bg); }
.about-card--accent .btn--secondary {
  border-color: var(--color-bg);
  color: var(--color-bg);
}
.about-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 var(--space-3);
  letter-spacing: -0.005em;
}
.about-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-3);
  line-height: 1.55;
}

.about-stats-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.about-stats-list > div,
.about-stats-list > li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9375rem;
}
.about-stats-list > div:last-child,
.about-stats-list > li:last-child { border-bottom: 0; }
.about-stats-list dt {
  color: var(--color-text-muted);
  margin: 0;
}
.about-stats-list dd {
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  color: var(--color-text);
  margin: 0;
  text-align: right;
}
.about-stats-list strong {
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  color: var(--color-text);
}
.about-card--accent .about-stats-list > div,
.about-card--accent .about-stats-list > li {
  border-bottom-color: rgba(255,255,255,0.18);
}
.about-card--accent .about-stats-list dt { color: rgba(255,255,255,0.7); }
.about-card--accent .about-stats-list dd,
.about-card--accent .about-stats-list strong { color: var(--color-bg); }

.about-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.about-checklist li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-text);
}
.about-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 6px;
  border-left: 2px solid var(--color-success);
  border-bottom: 2px solid var(--color-success);
  transform: rotate(-45deg);
}

.about-cta-row {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
  flex-wrap: wrap;
}

@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .about-sidebar { position: static; }
}

/* Timeline */
.about-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.about-timeline li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-5);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-border);
  align-items: baseline;
}
.about-timeline li:first-child { padding-top: 0; }
.about-timeline li:last-child { border-bottom: 0; }
.about-timeline__year {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: var(--color-text-subtle);
}
.about-timeline li h4 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  margin: 0 0 var(--space-2);
}
.about-timeline li p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 65ch;
}
@media (max-width: 640px) {
  .about-timeline li { grid-template-columns: 1fr; gap: var(--space-1); }
}

/* About FAQ — reuses .post-faq if already in markup; this is a wrapper rhythm helper */
.about-faq { max-width: 820px; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section { padding: var(--space-9) 0; }
.contact-section + .contact-section { padding-top: 0; }

/* Method cards */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.contact-method {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-16);
  padding: var(--space-5);
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.contact-method__icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-8);
  font-size: 1.125rem;
}
.contact-method h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  margin: 0;
  letter-spacing: -0.01em;
}
.contact-method p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.55;
}
.contact-method__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-text-muted);
  width: max-content;
}
.contact-method__link {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--color-link);
  word-break: break-all;
  margin-top: auto;
}
.contact-method__link:hover { text-decoration: underline; }
@media (max-width: 960px) {
  .contact-methods { grid-template-columns: 1fr; }
}

/* Form + sidebar grid */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--space-7);
  align-items: start;
}
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; gap: var(--space-6); }
}

.contact-form-wrap {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-24);
  padding: var(--space-6);
  background: var(--color-bg);
}
.contact-form__head {
  margin: 0 0 var(--space-5);
}
.contact-form__head h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-2);
}
.contact-form__head p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
@media (max-width: 560px) {
  .contact-form__row { grid-template-columns: 1fr; }
}
.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-form__field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.005em;
}
.contact-form__field input[type="text"],
.contact-form__field input[type="email"],
.contact-form__field input[type="url"],
.contact-form__field select,
.contact-form__field textarea {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-8);
  padding: 10px 12px;
  width: 100%;
  outline: none;
  transition: border-color 0.15s ease;
}
.contact-form__field textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.55;
}
.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus {
  border-color: var(--color-accent);
}

/* Topic radio chips */
.contact-form__topic {
  border: 0;
  padding: 0;
  margin: 0;
}
.contact-form__topic > legend,
.contact-form__topic > span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
  display: block;
  margin-bottom: var(--space-2);
  padding: 0;
}
.contact-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}
@media (max-width: 720px) {
  .contact-topic-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .contact-topic-grid { grid-template-columns: 1fr; }
}
.contact-topic-grid label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-8);
  padding: 10px 12px;
  font-size: 0.875rem;
  cursor: pointer;
  font-weight: 400;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.contact-topic-grid label:hover { border-color: var(--color-border-strong); }
.contact-topic-grid input[type="radio"] {
  accent-color: var(--color-accent);
  margin: 0;
}
.contact-topic-grid input[type="radio"]:checked + span,
.contact-topic-grid label:has(input:checked) {
  border-color: var(--color-accent);
  background: #fff7f2;
}

.contact-form__status {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  min-height: 1.2em;
}
.contact-form__status[data-state="error"] { color: var(--color-warning); }
.contact-form__status[data-state="success"] { color: var(--color-success); }

.contact-form__legal {
  font-size: 0.8125rem;
  color: var(--color-text-subtle);
  margin: 0;
  line-height: 1.5;
}
.contact-form__legal a { color: var(--color-link); text-decoration: underline; }

/* Sidebar cards (reuse same look as about-card) */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: sticky;
  top: var(--space-5);
}
@media (max-width: 960px) {
  .contact-sidebar { position: static; }
}
.contact-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-16);
  padding: var(--space-5);
  background: var(--color-bg);
}
.contact-card--accent {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}
.contact-card--accent .contact-card__h,
.contact-card--accent p,
.contact-card--accent li { color: var(--color-bg); }
.contact-card--accent .btn--secondary {
  border-color: var(--color-bg);
  color: var(--color-bg);
}
.contact-card__h {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 var(--space-3);
  letter-spacing: -0.005em;
}
.contact-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-3);
  line-height: 1.55;
}
.contact-card p:last-child { margin-bottom: 0; }
.contact-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.contact-card ul li {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-text);
}
.contact-card--accent ul li { color: var(--color-bg); }

/* ============================================================
   SEMANTIC SECTION HEADERS — eyebrow + h2 + lede stack
   (extends existing .section-head pattern)
   ============================================================ */
.section-head {
  display: block; /* override flex when used as a stacked editorial header */
  max-width: 760px;
  margin: 0 auto var(--space-7);
  text-align: left;
}
.section-eyebrow {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-3);
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0;
  max-width: 720px;
}
.section-lede {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 65ch;
  margin: var(--space-3) 0 0;
}

/* ============================================================
   HOW-WE-VERIFY — 4-step methodology grid (credits.html)
   ============================================================ */
.how-we-verify {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
.how-step {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-16);
  padding: var(--space-5);
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.how-step__num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-text-subtle);
  margin: 0;
}
.how-step h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  margin: 0;
}
.how-step p {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin: 0;
}
@media (max-width: 960px) { .how-we-verify { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .how-we-verify { grid-template-columns: 1fr; } }
