/* JAMB Buddy landing page.
   Single stylesheet, no build step, no framework. the whole page is two
   files so it deploys anywhere static and loads fast on a cheap Android
   phone over mobile data, which is what most of the audience is on. */

:root {
  --green-900: #0b3d2c;
  --green-800: #10513a;
  --green-700: #157050;
  --green-600: #1c8a63;
  --gold: #f2b829;
  --gold-dark: #d99e12;
  --cream: #fdf8ef;
  --cream-2: #f6efe1;
  --ink: #12211b;
  --ink-soft: #4a5b53;
  --white: #ffffff;
  --radius: 22px;
  --shadow: 0 18px 50px -22px rgba(11, 61, 44, .45);
  --max: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }

.lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 52ch; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .85em 1.6em; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
}
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-primary { background: var(--green-700); color: #fff; box-shadow: 0 10px 24px -10px rgba(21,112,80,.8); }
.btn-primary:hover { background: var(--green-800); }
.btn-gold { background: var(--gold); color: var(--green-900); box-shadow: 0 10px 24px -10px rgba(217,158,18,.9); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-ghost { background: transparent; color: var(--green-800); border-color: rgba(16,81,58,.25); }
.btn-ghost:hover { border-color: var(--green-700); }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253,248,239,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(16,81,58,.08);
}
.nav-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 14px 22px; max-width: var(--max); margin: 0 auto; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; text-decoration: none; color: var(--green-900); }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: .96rem; color: var(--ink-soft); }
.nav-links a:hover { color: var(--green-700); }

/* ---- hero ---- */
/* No bottom padding: the stats strip below sits at the hero's edge and
   hangs into the next section, so the spacing under it belongs to that
   section rather than being counted twice. */
.hero { position: relative; padding: 64px 0 0; overflow: visible; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 span { color: var(--green-700); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-note { margin-top: 18px; font-size: .92rem; color: var(--ink-soft); }

/* Portrait collage. Sized with aspect-ratio so the layout never jumps
   while images load. a real Core Web Vitals problem on slow connections. */
.collage { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-bottom: 24px; }
.shot { position: relative; border-radius: 26px; overflow: hidden; background: var(--cream-2); box-shadow: var(--shadow); aspect-ratio: 3 / 4; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
/* nth-of-type, not nth-child: the two .pill spans are the collage's first
   two children, so nth-child(1)/(2) matched nothing and the offsets landed
   on the wrong portraits. */
.shot:nth-of-type(1) { border-radius: 999px 999px 26px 26px; }
.shot:nth-of-type(2) { margin-top: 38px; border-radius: 26px 999px 999px 26px; }
.shot:nth-of-type(3) { margin-top: -18px; border-radius: 26px 26px 999px 26px; }
.shot:nth-of-type(4) { margin-top: 20px; border-radius: 999px 26px 26px 999px; }

.pill {
  position: absolute; z-index: 3;
  background: #fff; border-radius: 14px; padding: 9px 14px;
  font-size: .82rem; font-weight: 700; color: var(--green-900);
  box-shadow: 0 10px 26px -12px rgba(11,61,44,.5);
  display: flex; align-items: center; gap: 7px; white-space: nowrap;
}
.pill-a { top: 6%; right: -6px; }
.pill-b { bottom: 12%; left: -14px; }

/* ---- trust strip ----
   Overlaps *downward* into the following section. Pulling it up instead
   crowded it against the collage, which is the kind of thing that reads as
   a broken layout rather than a deliberate one. */
.strip {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  margin-top: 72px;
  margin-bottom: -48px;
  position: relative;
  z-index: 5;
}
.strip > div { position: relative; }
/* Hairline dividers between the figures, skipping the first so there is
   never a stray line on the left edge or after a row wraps. */
.strip > div + div::before {
  content: "";
  position: absolute;
  left: -12px; top: 12%;
  width: 1px; height: 76%;
  background: rgba(16,81,58,.12);
}
.strip b { display: block; font-size: 1.7rem; color: var(--green-700); font-weight: 800; line-height: 1.15; margin-bottom: 4px; }
.strip span { font-size: .87rem; color: var(--ink-soft); line-height: 1.4; display: block; }

/* ---- sections ---- */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-head .lede { margin: 0 auto; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--green-600); margin-bottom: .8em; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); border: 1px solid rgba(16,81,58,.06); }
.card .ico { width: 46px; height: 46px; border-radius: 13px; background: var(--cream-2); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 16px; }
.card p { font-size: .95rem; color: var(--ink-soft); margin: 0; }

/* ---- steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step { position: relative; padding-top: 14px; }
.step .n { width: 44px; height: 44px; border-radius: 999px; background: var(--green-700); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: 16px; }
.step p { font-size: .96rem; color: var(--ink-soft); }

/* ---- dark band ---- */
.band { background: var(--green-800); color: #eaf5f0; border-radius: 34px; padding: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.band h2 { color: #fff; }
.band .lede { color: #bfd8cd; }
.ladder { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 9px; }
.ladder li { display: flex; align-items: center; gap: 12px; font-size: .97rem; }
.ladder .rank { width: 2ch; }
.ladder .bar { flex: 1; height: 8px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; }
.ladder .bar i { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.band-media { position: relative; }
.band-media .shot { aspect-ratio: 4 / 3; border-radius: 26px; }
.badge {
  position: absolute; right: -14px; bottom: -22px;
  width: 118px; height: 118px; border-radius: 999px;
  background: var(--gold); color: var(--green-900);
  display: grid; place-content: center; text-align: center;
  font-weight: 800; line-height: 1.15; box-shadow: 0 16px 34px -14px rgba(0,0,0,.5);
}
.badge b { font-size: 1.9rem; display: block; }
.badge span { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }

/* ---- pricing ---- */
/* ---- pricing ----
   Three cards of different content lengths, one of which carries a badge.
   Left alone they land ragged: headings at different heights, prices on
   different lines, buttons wherever the copy happens to end. Everything
   below exists to make the rows line up across all three.

   The card is a flex column so the button can be pushed to the bottom with
   margin-top:auto. that keeps the CTAs on one line however much copy sits
   above them. */
.prices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1020px;
  margin: 0 auto;
  align-items: stretch; /* equal-height cards, not content-height ones */
}
.price {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  /* Uniform top padding on every card, with the badge positioned into it
     on the featured one. so a badge on one card can't shove its heading
     down out of line with the other two. */
  padding: 56px 30px 30px;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
}
.price.featured { border-color: var(--gold); }
.price h3 { margin-bottom: .35em; }
.price .amount { font-size: 2.4rem; font-weight: 800; color: var(--green-800); line-height: 1.1; }
.price .amount small { font-size: .92rem; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
/* Reserves the taller note's height on every card, so the feature lists
   below start at the same point instead of stepping down. */
.price-note { font-size: .88rem; color: var(--ink-soft); margin: 12px 0 0; min-height: 4.2em; }
.price ul { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 10px; }
.price li { padding-left: 28px; position: relative; font-size: .95rem; line-height: 1.5; }
.price li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green-600); font-weight: 800; }
.price .btn {
  margin-top: auto;      /* bottom-aligns every CTA regardless of copy above */
  align-self: stretch;   /* full-width button: a bigger tap target on a phone */
  justify-content: center;
}
.price .tag {
  position: absolute;
  top: 20px; left: 30px;
  background: var(--gold); color: var(--green-900);
  font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .07em;
  padding: 6px 12px; border-radius: 99px;
  white-space: nowrap;
}

/* ---- faq ---- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
details { background: var(--white); border-radius: 16px; padding: 20px 24px; box-shadow: 0 10px 30px -22px rgba(11,61,44,.5); border: 1px solid rgba(16,81,58,.07); }
details summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--green-600); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin: 14px 0 0; color: var(--ink-soft); font-size: .96rem; }

/* ---- final cta + footer ---- */
.final { background: var(--green-900); color: #fff; text-align: center; padding: 84px 22px; }
.final h2 { color: #fff; }
.final p { color: #b9d3c8; max-width: 46ch; margin: 0 auto 28px; }
footer { background: var(--green-900); color: #8fb0a3; padding: 0 22px 44px; text-align: center; font-size: .88rem; }
footer a { color: #cfe3da; }

/* ---- responsive ---- */
@media (max-width: 1000px) and (min-width: 901px) {
  .prices { grid-template-columns: 1fr; max-width: 480px; }
  .price { padding: 30px 26px; }
  .price.featured { padding-top: 56px; }
  .price-note { min-height: 0; }
}

@media (max-width: 900px) {
  .hero-grid, .band { grid-template-columns: 1fr; gap: 40px; }
  .band { padding: 38px 26px; border-radius: 26px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  /* Stacked: nothing to align against, so drop the reserved note height
     and the badge gutter rather than leaving dead space on every card. */
  .prices { grid-template-columns: 1fr; max-width: 460px; }
  .price { padding: 30px 26px; }
  .price.featured { padding-top: 56px; }
  .price-note { min-height: 0; }
  .badge { right: 10px; bottom: -26px; width: 96px; height: 96px; }
  .strip { margin-top: 48px; margin-bottom: 0; padding: 28px 22px; gap: 26px 18px; }
  /* Dividers only make sense in a single row; once it wraps to a 2x2 they
     land in the middle of nothing. */
  .strip > div + div::before { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  section { padding: 60px 0; }
  .cards { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 0; }
  .strip b { font-size: 1.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}

/* ---- long-form content pages (privacy, terms) ---- */
.prose { max-width: 760px; margin: 0 auto; padding: 56px 0 80px; }
.prose h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: .3em; }
.prose .updated { color: var(--ink-soft); font-size: .92rem; margin-bottom: 2.5em; }
.prose h2 { font-size: 1.35rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.05rem; margin-top: 1.6em; }
.prose ul { padding-left: 22px; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .94rem; }
.prose th, .prose td { text-align: left; padding: 11px 12px; border-bottom: 1px solid rgba(16,81,58,.12); vertical-align: top; }
.prose th { font-weight: 700; background: var(--cream-2); }
.prose .callout { background: var(--white); border-left: 4px solid var(--green-600); border-radius: 12px; padding: 18px 22px; margin: 0 0 1.6em; box-shadow: 0 10px 30px -24px rgba(11,61,44,.5); }
.prose .callout p:last-child { margin-bottom: 0; }
.prose a { color: var(--green-700); }

/* ---- cookie consent ----
   Anchored to the bottom rather than blocking the page. A full-screen
   interstitial on a first visit costs real conversions, and nothing here
   needs consent before the page can be read. */
.cc { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; padding: 14px; display: none; }
.cc[data-open="true"] { display: block; }
.cc-card {
  max-width: 940px; margin: 0 auto; background: var(--white);
  border-radius: 20px; padding: 24px 26px;
  box-shadow: 0 24px 60px -18px rgba(11,61,44,.55);
  border: 1px solid rgba(16,81,58,.1);
}
.cc-card h2 { font-size: 1.08rem; margin-bottom: .45em; }
.cc-card p { font-size: .92rem; color: var(--ink-soft); margin-bottom: 1em; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cc-actions .btn { font-size: .93rem; padding: .7em 1.3em; }
.cc-options { display: none; margin: 4px 0 18px; border-top: 1px solid rgba(16,81,58,.1); padding-top: 16px; }
.cc-options[data-open="true"] { display: block; }
.cc-opt { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid rgba(16,81,58,.07); }
.cc-opt:last-child { border-bottom: 0; }
.cc-opt input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--green-700); flex: none; }
.cc-opt strong { display: block; font-size: .95rem; }
.cc-opt span { font-size: .87rem; color: var(--ink-soft); }
.cc-opt input:disabled + div strong::after { content: " · always on"; color: var(--green-600); font-weight: 600; font-size: .8rem; }
@media (max-width: 560px) {
  .cc-actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* ============================================================
   MOTION
   Three rules this all obeys:
   1. Nothing is hidden unless JavaScript is running. The reveal styles are
      scoped to .js, which an inline script sets in <head>. If the script
      never runs, every element is simply visible - no blank page, and
      nothing hidden from a crawler.
   2. Nothing animates size or position in a way that moves other content.
      Transforms and opacity only, so none of this costs layout shift.
   3. All of it is off under prefers-reduced-motion, at the bottom.
   ============================================================ */

/* Scroll reveals. Short and small on purpose: a long slow entrance feels
   sluggish on a mid-range Android, which is what most of the audience has. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s cubic-bezier(.22,.61,.36,1), transform .5s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
/* Children stagger behind their parent so a row of cards arrives in
   sequence rather than all at once. */
.js [data-reveal-group] > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s cubic-bezier(.22,.61,.36,1), transform .55s cubic-bezier(.22,.61,.36,1);
}
.js [data-reveal-group].is-visible > * { opacity: 1; transform: none; }
.js [data-reveal-group].is-visible > *:nth-child(1) { transition-delay: 0ms; }
.js [data-reveal-group].is-visible > *:nth-child(2) { transition-delay: 80ms; }
.js [data-reveal-group].is-visible > *:nth-child(3) { transition-delay: 160ms; }
.js [data-reveal-group].is-visible > *:nth-child(4) { transition-delay: 240ms; }

/* Hero entrance. Runs on load rather than on scroll, and deliberately
   quick: the h1 is the largest-contentful-paint element, so a long fade
   here would show up directly in the page's LCP score. */
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
.js .hero-grid > div > * { animation: rise .55s cubic-bezier(.22,.61,.36,1) backwards; }
.js .hero-grid > div > *:nth-child(1) { animation-delay: .05s; }
.js .hero-grid > div > *:nth-child(2) { animation-delay: .12s; }
.js .hero-grid > div > *:nth-child(3) { animation-delay: .19s; }
.js .hero-grid > div > *:nth-child(4) { animation-delay: .26s; }
.js .hero-grid > div > *:nth-child(5) { animation-delay: .33s; }

/* The collage arrives after the words, so the eye lands on the headline
   first rather than being pulled to the photos. */
@keyframes shotIn {
  from { opacity: 0; transform: translateY(26px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
.js .collage .shot { animation: shotIn .7s cubic-bezier(.22,.61,.36,1) backwards; }
.js .collage .shot:nth-child(3) { animation-delay: .30s; }
.js .collage .shot:nth-child(4) { animation-delay: .38s; }
.js .collage .shot:nth-child(5) { animation-delay: .46s; }
.js .collage .shot:nth-child(6) { animation-delay: .54s; }
.shot img { transition: transform .6s cubic-bezier(.22,.61,.36,1); }
@media (hover: hover) and (pointer: fine) {
  .shot:hover img { transform: scale(1.05); }
}

/* The two floating pills drift, which makes the collage feel alive
   without anything actually moving on the page. */
@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}
.js .pill { animation: shotIn .6s cubic-bezier(.22,.61,.36,1) backwards; }
.js .pill-a { animation-delay: .8s; }
.js .pill-b { animation-delay: .95s; }
.js .pill.settled { animation: drift 4.5s ease-in-out infinite; }
.js .pill-b.settled { animation-duration: 5.4s; animation-delay: .6s; }

/* Rank bars fill when the ladder scrolls into view. scaleX rather than
   width, so it runs on the compositor and never triggers layout. */
.ladder .bar i { transform-origin: left center; }
.js .ladder .bar i { transform: scaleX(0); transition: transform .9s cubic-bezier(.22,.61,.36,1); }
.js .ladder.is-visible .bar i { transform: scaleX(1); }
.js .ladder.is-visible li:nth-child(1) .bar i { transition-delay: .05s; }
.js .ladder.is-visible li:nth-child(2) .bar i { transition-delay: .12s; }
.js .ladder.is-visible li:nth-child(3) .bar i { transition-delay: .19s; }
.js .ladder.is-visible li:nth-child(4) .bar i { transition-delay: .26s; }
.js .ladder.is-visible li:nth-child(5) .bar i { transition-delay: .33s; }
.js .ladder.is-visible li:nth-child(6) .bar i { transition-delay: .40s; }
.js .ladder.is-visible li:nth-child(7) .bar i { transition-delay: .47s; }

/* Nav gains a shadow once the page moves, so it separates from the content
   underneath instead of floating over it unannounced. */
.nav { transition: box-shadow .25s ease, background .25s ease; }
.nav.scrolled { box-shadow: 0 8px 28px -18px rgba(11,61,44,.5); }

/* Cards and buttons: lift on hover, and give way slightly when pressed.
   The press state is the one people notice without noticing. */
.card, .price { transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s ease; }
@media (hover: hover) and (pointer: fine) {
  .card:hover, .price:hover { transform: translateY(-5px); box-shadow: 0 26px 60px -26px rgba(11,61,44,.5); }
}
.btn:active { transform: translateY(1px) scale(.985); }

/* The badge lands with a small overshoot, which reads as deliberate rather
   than as a graphic that happens to be there. */
@keyframes popIn {
  0%   { opacity: 0; transform: scale(.6) rotate(-12deg); }
  70%  { opacity: 1; transform: scale(1.06) rotate(3deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
.js .band-media.is-visible .badge { animation: popIn .7s cubic-bezier(.22,.61,.36,1) .25s backwards; }
.js .band-media .badge { opacity: 0; }
.js .band-media.is-visible .badge { opacity: 1; }

/* FAQ answers slide open. A plain <details> snaps, which feels broken next
   to everything else moving smoothly. */
details .faq-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s cubic-bezier(.22,.61,.36,1); }
details[open] .faq-body { grid-template-rows: 1fr; }
details .faq-body > div { overflow: hidden; }
details summary::after { transition: transform .25s ease; }
details[open] summary::after { transform: rotate(180deg); }

/* Counters hold their own width while ticking, so the strip doesn't jitter
   as the digits change. */
.strip b { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal],
  .js [data-reveal-group] > *,
  .js .band-media .badge { opacity: 1 !important; transform: none !important; transition: none !important; }
  .js .hero-grid > div > *,
  .js .collage .shot,
  .js .pill,
  .js .pill.settled,
  .js .band-media.is-visible .badge { animation: none !important; }
  .js .ladder .bar i { transform: scaleX(1) !important; transition: none !important; }
  .card:hover, .price:hover, .shot:hover img { transform: none; }
  details .faq-body { transition: none; }
}

/* ---- donations ---- */
.give { background: var(--white); border-radius: 28px; padding: 48px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1.15fr .85fr; gap: 46px; align-items: center; border: 1px solid rgba(16,81,58,.07); }
.give h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.give p { font-size: 1rem; color: var(--ink-soft); }
.give p strong { color: var(--ink); }
.give .give-note { font-size: .9rem; padding: 14px 18px; background: var(--cream-2); border-radius: 14px; margin-bottom: 24px; }
.give-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.give-list li { background: var(--cream); border-radius: 16px; padding: 18px 20px; border-left: 4px solid var(--gold); }
.give-list b { display: block; font-size: 1.35rem; color: var(--green-800); font-weight: 800; }
.give-list span { font-size: .89rem; color: var(--ink-soft); }
@media (max-width: 900px) {
  .give { grid-template-columns: 1fr; gap: 30px; padding: 32px 26px; border-radius: 22px; }
}

/* ============================================================
   RESPONSIVE LAYER
   The breakpoints above cover desktop down to a 560px phone. This adds
   what the audience actually holds: 360-400px Androids, plus the parts
   that were never handled at any width (the nav on a phone, anchor
   offsets under the sticky header, the privacy table).
   ============================================================ */

/* Nothing may push the page sideways. `clip` rather than `hidden`
   because hidden on an ancestor silently kills position:sticky, which
   the nav depends on. */
html, body { max-width: 100%; }
body { overflow-x: clip; }

/* Anchor targets clear the sticky nav instead of landing underneath it.
   The nav is two rows on a phone, so the offset is larger there. */
/* Measured nav height is 73-75px on a phone and 87px on desktop; these
   clear it with a little breathing room above the heading. */
section[id], #main { scroll-margin-top: 88px; }
@media (min-width: 901px) { section[id], #main { scroll-margin-top: 100px; } }

/* Six links plus a button gets tight before the layout actually breaks. */
@media (max-width: 1000px) and (min-width: 901px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: .9rem; }
}

/* ---- phone nav ----
   Previously the links were simply hidden below 900px, leaving no way to
   reach any section of the page on a phone.

   With JavaScript the bar stays one row and the links collapse behind a
   toggle. Without it they fall back to a sideways-scrolling row, so the
   navigation still works with no script at all. Both are driven off the
   .js class the document already sets in <head>. */
@media (max-width: 900px) {
  .nav-inner {
    padding: 10px 16px;
    gap: 12px;
    row-gap: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  /* Brand left, CTA and toggle grouped hard right. */
  .nav .btn { margin-left: auto; padding: .5em .95em; font-size: .88rem; line-height: 1.25; }
  .brand { font-size: 1rem; }
  .brand img { width: 32px; height: 32px; }

  /* --- no-JS fallback: the sideways-scrolling row --- */
  html:not(.js) .nav-inner > #primary-nav {
    order: 3;
    flex: 1 0 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    margin: 6px -16px 0;
    padding: 0 16px;
  }
  html:not(.js) .nav-inner > #primary-nav::-webkit-scrollbar { display: none; }
  html:not(.js) .nav-links { gap: 20px; flex-wrap: nowrap; width: max-content; }
  html:not(.js) .nav-links a { display: block; padding: 5px 0; font-size: .9rem; white-space: nowrap; }

  /* --- the real thing: a collapsing panel --- */
  .js .nav-toggle { display: inline-flex; }
  .js .nav-inner > #primary-nav {
    order: 3;
    flex: 1 0 100%;
    /* 0fr -> 1fr, the same technique the FAQ answers use: it animates to
       the content's own height, with no max-height guess to tune. */
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .3s cubic-bezier(.22,.61,.36,1);
  }
  .js .nav-inner[data-open="true"] > #primary-nav { grid-template-rows: 1fr; }
  .js .nav-inner > #primary-nav > .nav-links { overflow: hidden; }
  .js .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: auto;
    padding: 4px 0 6px;
  }
  .js .nav-links a {
    display: block;
    padding: 13px 2px;
    font-size: 1rem;
    color: var(--ink);
    border-bottom: 1px solid rgba(16,81,58,.09);
  }
  .js .nav-links li:last-child a { border-bottom: 0; }
}

/* Landscape on a phone leaves ~360px of height, less than the open menu
   needs. There the list scrolls inside itself rather than running off the
   bottom with no way to reach the last link. */
@media (max-width: 900px) and (max-height: 520px) {
  .js .nav-inner[data-open="true"] > #primary-nav > .nav-links {
    max-height: 62vh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* ---- the toggle itself ----
   Hidden entirely on desktop and when there is no JavaScript to drive it,
   so it can never sit there as a dead control. */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 4px;
  background: transparent;
  border: 0;
  border-radius: 12px;
  color: var(--green-900);
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
}
.nav-toggle:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.nav-toggle-label { line-height: 1; }
.nav-toggle-bars { position: relative; width: 20px; height: 2px; background: currentColor; border-radius: 2px; flex: none; }
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute; left: 0;
  width: 20px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform .25s ease;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
/* Open: the bars fold into a cross, so the control says how to close it. */
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (prefers-reduced-motion: reduce) {
  .js .nav-inner > #primary-nav { transition: none; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { transition: none; }
}

/* ---- tablet / large phone ---- */
@media (max-width: 700px) {
  .wrap { padding: 0 18px; }
  .band { padding: 32px 20px; }
  .give { padding: 28px 20px; }
  .strip { padding: 26px 18px; }
}

/* ---- phone ---- */
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  /* .final sets its own padding, so the section rule above never reaches it. */
  .final { padding: 60px 16px; }
  /* Full-width CTAs: a bigger tap target, and no ragged second row. */
  .hero-cta { gap: 10px; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
  /* The collage keeps its two columns, tightened so four portraits still
     fit without dominating the first screen. */
  .collage { gap: 12px; }
  .shot:nth-of-type(2) { margin-top: 26px; }
  .shot:nth-of-type(3) { margin-top: -12px; }
  .shot:nth-of-type(4) { margin-top: 14px; }
  /* Pills pulled inside the gutter, where a negative offset would
     otherwise hang off the edge of a narrow screen. */
  .pill { font-size: .75rem; padding: 7px 11px; }
  .pill-a { top: 4%; right: 0; }
  .pill-b { bottom: 10%; left: 0; }
  .band { padding: 28px 18px; border-radius: 22px; }
  .badge { width: 84px; height: 84px; right: 4px; bottom: -20px; }
  .badge b { font-size: 1.5rem; }
  .badge span { font-size: .66rem; }
  .give { padding: 26px 18px; border-radius: 20px; }
  .give-list li { padding: 14px 16px; }
  details { padding: 16px 18px; }
  .cc-card { padding: 20px 18px; border-radius: 16px; }
  .prose { padding: 40px 0 60px; }
  .prose table { font-size: .88rem; }
  .prose th, .prose td { padding: 9px 8px; }
}

/* ---- small Android, 360-400px ----
   The common device in this audience. Headings need to come down or they
   break into six-line stacks that push the CTA off the first screen. */
@media (max-width: 400px) {
  .wrap { padding: 0 14px; }
  h1 { font-size: clamp(1.75rem, 8vw, 2.1rem); }
  h2 { font-size: clamp(1.45rem, 6.4vw, 1.9rem); }
  .lede { font-size: 1rem; }
  .nav-inner { padding: 9px 14px; }
  html:not(.js) .nav-inner > #primary-nav { margin: 6px -14px 0; padding: 0 14px; }
  .nav .btn { padding: .45em .8em; font-size: .82rem; line-height: 1.25; }
  .brand { font-size: .95rem; gap: 8px; }
  .strip { gap: 20px 14px; padding: 22px 16px; }
  .strip b { font-size: 1.3rem; }
  .strip span { font-size: .8rem; }
  .collage { gap: 10px; }
  .price { padding: 26px 20px; }
  .price.featured { padding-top: 52px; }
  .price .amount { font-size: 2rem; }
  .prose th, .prose td { padding: 8px 7px; font-size: .85rem; }
}

/* The consent bar sits on the home indicator on an iPhone without this. */
.cc { padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }

/* ---- touch targets ----
   WCAG 2.5.8 asks for 24px minimum. The footer and consent links were 17px
   tall: fine with a mouse, a genuine miss with a thumb. */
footer a, .final a:not(.btn) { display: inline-block; padding: 5px 2px; }
footer p { margin-bottom: .6em; }
@media (max-width: 900px) {
  details summary { padding: 3px 0; }
  .nav-links a { padding: 7px 0; }
}

/* The skip link was parked off-screen with no focus style, so a keyboard
   user could reach it but never see it. */
.skip {
  position: absolute; left: -9999px;
  z-index: 300; background: var(--green-800); color: #fff;
  padding: 12px 18px; border-radius: 0 0 12px 0; text-decoration: none; font-weight: 700;
}
.skip:focus { left: 0; top: 0; }

/* ---- nav labels at the narrow end ----
   The word "Menu" goes first; the icon carries the meaning and the label
   stays in the accessibility tree as the button's only name, so it is
   moved off-screen rather than display:none'd. The wordmark follows at
   400px, below which brand + CTA + toggle wraps the bar to two rows. */
@media (max-width: 460px) {
  .nav-toggle-label {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  .nav-toggle { gap: 0; justify-content: center; }
}
@media (max-width: 400px) {
  .brand-text {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
}
