/* ============================================================
   GNPerformance.com — "The Provider's Door"
   Design tokens. All color pairings verified WCAG AA+:
     ink   #152E29 on bg #FAF7F2 = 13.5:1 (AAA)
     ink   on surface #FFFFFF    = 14.4:1 (AAA)
     muted #4E605B on bg         = 6.2:1  (AA)
     white on teal #0C4A42       = 10.1:1 (AAA)
     teal  on bg (links)         = 9.5:1  (AAA)
   Accent budget: full-strength teal < ~10% of any viewport.
   Terracotta #C4562C: decorative strikethrough ONLY.
   ============================================================ */

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Great Vibes';
  src: url('../fonts/greatvibes-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --ink: #152E29;
  --teal: #0C4A42;
  --on-teal: #FFFFFF;
  --muted: #4E605B;
  --line: #E5DFD5;
  --terra: #C4562C;
  --teal-tint: #EAF1EF;
  --shadow: 0 1px 2px rgba(21, 46, 41, .05), 0 8px 24px rgba(21, 46, 41, .07);
  --shadow-lg: 0 2px 4px rgba(21, 46, 41, .06), 0 16px 48px rgba(21, 46, 41, .12);
  --radius: 14px;
  --radius-sm: 10px;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --max: 1120px;
  --pad: clamp(20px, 4vw, 40px);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ---------- Type scale (Fraunces only ≥ 28px) ---------- */
h1, h2, .display {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(34px, 6vw, 58px); }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 {
  font-family: var(--body);
  font-weight: 600;
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.35;
  margin: 0 0 .4em;
}
p { margin: 0 0 1em; }
.lede { font-size: clamp(18px, 2.4vw, 21px); line-height: 1.55; color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.55; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 14px;
}

a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
section { padding: clamp(56px, 9vw, 104px) 0; }
.section-tight { padding: clamp(36px, 6vw, 64px) 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 17px;
  line-height: 1;
  padding: 18px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
  background: var(--teal);
  color: var(--on-teal);
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: #0A3E37; color: var(--on-teal); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn svg { flex: none; }

/* Disclosure line that accompanies every CTA (FTC 16 CFR 255.0(f): unavoidable, near the ask) */
.disclosure-line {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 46ch;
  margin: 10px 0 0;
}
.on-teal .disclosure-line { color: rgba(255, 255, 255, .85); }
.final-cta .disclosure-line a { color: rgba(255, 255, 255, .85); }

/* Risk-reversal microcopy directly under a CTA button */
.cta-microcopy {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin: 12px 0 0;
}

/* Compact mid-page CTA block (button + disclosure), used between sections */
.cta-inline { text-align: center; margin-top: clamp(34px, 5vw, 48px); }
.cta-inline .disclosure-line { margin-left: auto; margin-right: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.logo {
  font-family: var(--display);
  font-weight: 600;
  font-size: 21px; /* wordmark exception to the 28px floor: it is a logo, not copy */
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 2px;
}
.main-nav a:not(.btn):hover, .main-nav a:not(.btn)[aria-current="page"] { color: var(--teal); box-shadow: inset 0 -2px 0 var(--teal); }
.main-nav .btn { padding: 12px 22px; font-size: 15px; }
.main-nav a.btn-primary { color: var(--on-teal); }
.main-nav a.btn-primary:hover { color: var(--on-teal); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  color: var(--ink);
}
@media (max-width: 860px) {
  /* collapse pattern only when JS is running; no-JS visitors get a wrapped inline nav */
  html.js .nav-toggle { display: block; }
  html:not(.js) .main-nav { flex-wrap: wrap; gap: 4px 18px; padding: 10px 0; }
  html.js .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 8px 0 16px;
  }
  html.js .main-nav.open { display: flex; }
  .main-nav a { padding: 14px var(--pad); font-size: 17px; }
  .main-nav a:not(.btn):hover, .main-nav a:not(.btn)[aria-current="page"] { box-shadow: inset 3px 0 0 var(--teal); }
  .main-nav .btn { margin: 10px var(--pad) 0; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--bg); /* poster color — headline renders before image */
  padding: 0;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(250, 247, 242, .96) 0%, rgba(250, 247, 242, .88) 34%, rgba(250, 247, 242, .42) 62%, rgba(250, 247, 242, .05) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: clamp(72px, 11vw, 148px) 0;
  max-width: 620px;
}
/* Sits between the lede and the CTA: the face lands right before the ask without pushing the H1 down */
.hero .credential-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px 5px 5px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  box-shadow: var(--shadow);
  margin: 2px 0 0;
}
.credential-chip img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%; /* face crop from the portrait */
  flex: none;
}
.hero p.lede { max-width: 54ch; }
.hero-cta { margin-top: 22px; }

/* Trust chips folded into the hero (replaces the old trust-strip section) */
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}
.chip svg { flex: none; color: var(--teal); }
@media (max-width: 700px) {
  .hero-media::after {
    background: linear-gradient(180deg, rgba(250, 247, 242, .97) 0%, rgba(250, 247, 242, .93) 55%, rgba(250, 247, 242, .55) 100%);
  }
  .hero-media img { object-position: 50% 78%; }
  .hero-inner { padding: clamp(48px, 9vw, 72px) 0 clamp(120px, 30vw, 180px); }
  .hero-chips { gap: 8px 16px; margin-top: 24px; }
  .chip { font-size: 12.5px; }
}

/* ---------- Letter ---------- */
.letter { background: var(--bg); }
.letter-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(28px, 5vw, 56px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 56px);
  align-items: start;
}
.letter-photo {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--teal-tint);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.letter-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.letter-body .sig {
  font-family: 'Great Vibes', 'Segoe Script', cursive;
  font-size: 44px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.1;
  color: var(--teal);
  margin-top: 20px;
}
.letter-body .sig-title { font-size: 14px; color: var(--muted); margin-top: 2px; }
.license-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
}
@media (max-width: 780px) {
  .letter-card { grid-template-columns: 1fr; }
  .letter-photo { max-width: 220px; }
}

/* ---------- Gate section + reveal card ---------- */
.gate { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.reveal-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}
.reveal-card .rc-img {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--teal-tint);
  margin-bottom: 20px;
}
.reveal-card .rc-img img { width: 100%; height: 100%; object-fit: cover; }
.rc-name { font-weight: 600; font-size: 16px; }
.rc-meta { font-size: 14px; color: var(--muted); margin: 2px 0 14px; }
.rc-price-row { display: flex; align-items: baseline; gap: 12px; min-height: 34px; }
.rc-locked {
  font-size: 15px;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.rc-list {
  font-size: 17px;
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: var(--terra);
  text-decoration-thickness: 2px;
}
.rc-your { font-size: 15px; font-weight: 600; color: var(--teal); }
.rc-note { font-size: 13px; color: var(--muted); margin-top: 12px; }
/* Ghost styling on purpose: solid teal is reserved for real outbound CTAs sitewide */
.rc-toggle {
  width: 100%;
  margin-top: 18px;
  background: transparent;
  border: 2px solid var(--teal);
  color: var(--teal);
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease;
}
.rc-toggle:hover { background: var(--teal-tint); }
.rc-facts { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.rc-facts li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.rc-facts svg { flex: none; color: var(--teal); margin-top: 3px; }
/* Real outbound CTA inside the unlocked reveal states — the peak-motivation click */
.rc-cta { width: 100%; margin-top: 16px; padding: 14px 20px; font-size: 15px; }

/* ---------- Chain of custody ---------- */
.custody { background: var(--bg); }
.custody-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
  counter-reset: custody;
}
.custody-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  transition: opacity .5s ease, transform .5s ease;
}
/* pre-animation dimming only when JS is available to undo it */
html.js .custody-step:not(.lit) { opacity: .35; transform: translateY(12px); }
.custody-step.lit { opacity: 1; transform: none; }
.custody-step .cs-check {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.custody-step.lit .cs-check, html:not(.js) .custody-step .cs-check { background: var(--teal); color: var(--on-teal); }
.custody-step h3 { font-size: 16.5px; }
.custody-step p { font-size: 14.5px; color: var(--muted); margin: 0; }
@media (max-width: 860px) {
  .custody-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .custody-steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .custody-step { opacity: 1; transform: none; }
  .custody-step .cs-check { background: var(--teal); color: var(--on-teal); }
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 44px;
  text-align: center;
}
.stat .stat-n {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(30px, 4.4vw, 44px);
  color: var(--teal);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.stat .stat-l { font-size: 14px; color: var(--muted); margin-top: 6px; line-height: 1.45; }
@media (max-width: 700px) { .stat-row { grid-template-columns: 1fr 1fr; gap: 26px 14px; } }

/* ---------- Benefit cards ---------- */
.benefits { background: var(--surface); border-top: 1px solid var(--line); }
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.bcard {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.bcard .b-ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--teal-tint);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.bcard h3 { font-size: 17px; }
.bcard p { font-size: 14.5px; color: var(--muted); margin: 0; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .card-grid, .card-grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .card-grid, .card-grid--3 { grid-template-columns: 1fr; } }

/* ---------- Steps (how it works) ---------- */
.steps-flow { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--display);
  font-weight: 600;
  font-size: 40px;
  color: var(--teal);
  display: block;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 17.5px; }
.step p { font-size: 15px; color: var(--muted); margin-bottom: 0; }
.step .step-detail { font-size: 13.5px; color: var(--muted); border-top: 1px dashed var(--line); margin-top: 14px; padding-top: 12px; }
@media (max-width: 820px) { .steps-flow { grid-template-columns: 1fr; } }

/* ---------- Brand wall (lives inside the custody proof band) ---------- */
/* Editorial brand wall — big serif names, no pills. (Pill version preserved in backups/site-v1.) */
.brand-wall {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 18px 0;
  margin-top: 36px;
  max-width: 980px;
}
.brand-wall span {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(21px, 2.8vw, 30px);
  letter-spacing: .005em;
  line-height: 1.25;
  color: var(--ink);
  opacity: .82;
  transition: opacity .2s ease, color .2s ease;
  cursor: default;
}
.brand-wall span:hover { opacity: 1; color: var(--teal); }
.brand-wall span:not(:last-child)::after {
  content: '·';
  color: var(--terra);
  opacity: .7;
  font-weight: 400;
  margin: 0 18px;
  display: inline-block;
}
.brand-wall-note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 54px 20px 24px;
  font-weight: 600;
  font-size: 16.5px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  content: '+' / ''; /* alt-text syntax keeps it out of the a11y tree where supported */
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  color: var(--teal);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .faq-a { padding: 0 24px 22px; color: var(--muted); font-size: 15.5px; }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* ---------- Transparency block (teal field — one of two allowed) ---------- */
.transparency { background: var(--teal); color: var(--on-teal); }
.transparency h2, .transparency .eyebrow { color: var(--on-teal); }
.transparency .eyebrow { opacity: .8; }
.transparency p { color: rgba(255, 255, 255, .92); }
.transparency .fine-card {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 34px);
  margin-top: 26px;
}
.transparency .fine-card p { font-size: 16px; }
.transparency .fda {
  font-size: 13.5px;
  color: rgba(255, 255, 255, .78);
  border-top: 1px solid rgba(255, 255, 255, .18);
  margin-top: 20px;
  padding-top: 18px;
}
.transparency a { color: var(--on-teal); }

/* ---------- Final CTA band (second allowed teal field) ---------- */
.final-cta { background: var(--teal); color: var(--on-teal); text-align: center; border-top: 1px solid rgba(255,255,255,.15); }
.final-cta h2 { color: var(--on-teal); }
.final-cta .lede { color: rgba(255, 255, 255, .9); max-width: 52ch; margin-left: auto; margin-right: auto; }
.final-cta .btn-primary {
  background: var(--surface);
  color: var(--teal);
  font-size: 18px;
  padding: 20px 38px;
}
.final-cta .btn-primary:hover { background: var(--bg); color: var(--teal); }
.final-cta .risk-reversal { margin-top: 18px; font-size: 15px; color: rgba(255, 255, 255, .85); }
.final-cta .disclosure-line { margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding: 44px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--ink); text-decoration: none; font-size: 15px; }
.site-footer a:hover { color: var(--teal); text-decoration: underline; }
.footer-legal {
  border-top: 1px solid var(--line);
  margin-top: 34px;
  padding-top: 22px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Sticky invitation bar ---------- */
.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 30px rgba(21, 46, 41, .12);
  padding: 12px var(--pad);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  visibility: hidden;
  transform: translateY(100%);
  transition: transform .3s ease, visibility .3s ease;
}
.sticky-bar.show { visibility: visible; transform: none; }
/* Disclosure pattern (Gleb, 2026-07-16): hero line + footer * + fine-print section + disclosure page.
   The bar itself carries no disclosure line — footer * is the sitewide anchor. */
.sticky-bar .btn { padding: 13px 24px; font-size: 15px; white-space: nowrap; }
.sticky-bar .sb-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
}
@media (max-width: 560px) {
  .sticky-bar { gap: 8px 10px; padding-top: 10px; padding-bottom: 10px; }
  .sticky-bar .btn { padding: 12px 20px; font-size: 14px; flex: 1; }
}
body.has-sticky { padding-bottom: 76px; }

/* ---------- Subpage scaffolding ---------- */
.page-hero { padding: clamp(48px, 8vw, 88px) 0 clamp(28px, 5vw, 48px); }
.page-hero h1 { font-size: clamp(32px, 5vw, 48px); max-width: 22ch; }
.page-hero .lede { max-width: 60ch; }
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }

.callout {
  background: var(--teal-tint);
  border: 1px solid #CFE0DC;
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 26px 0;
  font-size: 15.5px;
}
.callout strong { color: var(--teal); }

/* ---------- Shelves (category cards, homepage) ---------- */
.shelves { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 26px; }
.cat-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
a.cat-card:hover { color: inherit; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.cat-card .cc-img { aspect-ratio: 4 / 3; background: var(--teal-tint); }
.cat-card .cc-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-card .cc-body { padding: 18px 20px 20px; flex: 1; }
.cat-card h3 { font-size: 16.5px; }
.cat-card p { font-size: 14px; color: var(--muted); margin: 0; }
@media (max-width: 980px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
/* Mobile: swipeable shelf instead of a 3,400px stack — cards stay in one scroll-snap row */
@media (max-width: 740px) {
  .cat-grid.shelf-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    margin-left: calc(-1 * var(--pad));
    margin-right: calc(-1 * var(--pad));
    padding: 4px var(--pad) 18px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .cat-grid.shelf-scroll .cat-card {
    flex: 0 0 78%;
    max-width: 300px;
    scroll-snap-align: center;
  }
}

/* ---------- Fullscript handoff preview (CSS browser-frame mock) ---------- */
.after { background: var(--bg); }
.fs-preview {
  display: block;
  max-width: 520px;
  margin: clamp(36px, 6vw, 56px) auto 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
a.fs-preview:hover { color: inherit; transform: translateY(-2px); }
.fsp-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
}
.fsp-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--teal-tint);
  border-bottom: 1px solid var(--line);
  padding: 10px 14px;
}
.fsp-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.fsp-url {
  font-size: 12.5px;
  color: var(--muted);
  background: var(--surface);
  border-radius: 999px;
  padding: 4px 14px;
  margin-left: 8px;
  letter-spacing: .01em;
}
.fsp-body { padding: clamp(26px, 5vw, 40px); text-align: center; }
.fsp-title { font-family: var(--display); font-weight: 600; font-size: 21px; margin: 0 0 4px; }
.fsp-sub { font-size: 14px; color: var(--muted); margin: 0 0 20px; }
.fsp-field {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 15px;
  color: var(--muted);
  text-align: left;
  max-width: 320px;
  margin: 0 auto 12px;
  background: var(--bg);
}
.fsp-btn {
  background: var(--teal);
  color: var(--on-teal);
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 600;
  max-width: 320px;
  margin: 0 auto;
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.max-60 { max-width: 60ch; }
.mx-auto { margin-left: auto; margin-right: auto; }
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  color: var(--ink);
  padding: 12px 18px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
/* Reveal-card toggle is JS-driven; hide the dead button when JS is absent */
html:not(.js) .rc-toggle { display: none; }

/* ---------- Print ---------- */
@media print {
  .sticky-bar, .nav-toggle, .rc-toggle, .skip-link, .hero-media, .fs-preview { display: none !important; }
  .site-header { position: static; background: none; }
  .transparency, .final-cta { background: none !important; color: var(--ink) !important; }
  .transparency h2, .final-cta h2, .transparency p, .final-cta .lede,
  .transparency .fda, .final-cta .risk-reversal, .final-cta .disclosure-line { color: var(--ink) !important; }
  .transparency .fine-card { border-color: var(--ink); }
  a { color: var(--ink); }
  body { padding-bottom: 0 !important; }
}
