/* =========================================================
   JEFF 2.0 — The Fundraising Gorilla
   One stylesheet for every page. Change a token once here
   and it updates everywhere.
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Colour */
  --navy: #00001e;
  --navy-2: #24233e;
  --indigo: #4f4cd9;
  --indigo-hi: #5a57e8;
  --periwinkle: #8f8dff;
  --lavender: #d5c5e8;
  --lilac: #f3f2ff;
  --paper: #f6f6f6;
  --white: #ffffff;
  --slate: #424359;
  --line: #dcdce6;
  --line-soft: #e6e6ee;
  --yellow: #ffe04e;
  --pink: #e0939a;
  --green: #7dc96e;
  --red: #c8102e;

  /* Type */
  --font-display: 'Inter Tight', Inter, system-ui, sans-serif;
  --font-body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-hand: 'Nothing You Could Do', cursive;
  --font-marker: 'Caveat Brush', cursive;

  /* Space + shape */
  --gutter: clamp(20px, 5vw, 32px);
  --section-y: clamp(72px, 10vw, 112px);
  --radius: 20px;
  --radius-sm: 12px;
  --pill: 999px;
  --shadow-card: 0 10px 30px -18px rgba(0, 0, 30, .22);
  --shadow-form: 0 10px 30px -12px rgba(0, 0, 30, .18);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 18px/1.6 var(--font-body);
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, figure, blockquote, ul { margin: 0; }
a { color: var(--indigo); }
a:hover { color: var(--navy); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--periwinkle); outline-offset: 3px; }
.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;
}
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--yellow); color: var(--navy); padding: 10px 16px; border-radius: var(--pill); font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ---------- 3. Layout ---------- */
.section { padding: var(--section-y) var(--gutter); }
.wrap { max-width: 1200px; margin-inline: auto; }
.wrap--1100 { max-width: 1100px; }
.wrap--1000 { max-width: 1000px; }
.wrap--narrow { max-width: 780px; }
.wrap--720 { max-width: 720px; }
.stack { display: flex; flex-direction: column; gap: var(--stack-gap, 24px); }
.stack--sm { --stack-gap: 12px; }
.stack--md { --stack-gap: 18px; }
.stack--lg { --stack-gap: 36px; }
.stack--xl { --stack-gap: 48px; }
.center { text-align: center; align-items: center; }
.split { display: flex; flex-wrap: wrap; gap: 56px 64px; }
.split > * { min-width: 0; }
.grid-cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid-cards--wide { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }

/* Backgrounds */
.bg-navy { background: var(--navy); color: var(--white); }
.bg-paper { background: var(--paper); }
.bg-lilac { background: var(--lilac); }
.bg-diagonal { background: linear-gradient(172deg, var(--white) 0 40%, var(--paper) 40% 100%); }
.bg-corner { background: linear-gradient(to top left, var(--paper) 50%, var(--white) 50%); }

/* ---------- 4. Type ---------- */
.kicker { font: 700 13px/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--indigo); }
.bg-navy .kicker { color: var(--periwinkle); }
.h-hero { font: 700 clamp(44px, 7.6vw, 124px)/.92 var(--font-display); letter-spacing: -.035em; }
.h-xl { font: 700 clamp(40px, 7vw, 112px)/.95 var(--font-display); letter-spacing: -.035em; text-wrap: balance; }
.h-section { font: 700 clamp(36px, 5vw, 72px)/.98 var(--font-display); letter-spacing: -.03em; }
.h-md { font: 700 clamp(32px, 4vw, 52px)/1 var(--font-display); letter-spacing: -.03em; }
.h-card { font: 700 26px/1.12 var(--font-display); letter-spacing: -.02em; }
.h-scene { font: 700 clamp(28px, 2.8vw, 38px)/1.05 var(--font-display); letter-spacing: -.025em; }
.statement { font: 700 clamp(26px, 3.4vw, 44px)/1.15 var(--font-display); letter-spacing: -.02em; }
.accent { color: var(--indigo); }
.bg-navy .accent { color: var(--periwinkle); }
.lead { font: 500 20px/1.5 var(--font-body); color: var(--navy-2); }
.body-lg { font: 400 20px/1.65 var(--font-body); }
.body { font: 400 18px/1.6 var(--font-body); }
.muted { color: var(--slate); }
.bg-navy .muted { color: var(--lavender); }
.small { font: 500 14px/1.5 var(--font-body); }
.measure { max-width: 780px; }
.hand {
  font: 400 26px/1.2 var(--font-hand); color: var(--indigo);
  transform: rotate(-2deg); align-self: flex-start;
}
.bg-navy .hand { color: var(--periwinkle); }
.marker { font-family: var(--font-marker); font-weight: 400; }
.hl { background-image: linear-gradient(var(--yellow), var(--yellow)); background-repeat: no-repeat; background-position: 0 92%; background-size: 100% 28%; font-weight: 700; }
.pull { padding: 4px 0 4px 20px; border-left: 2px solid var(--periwinkle); font: 600 23px/1.4 var(--font-display); letter-spacing: -.01em; }
.quote { font: 600 20px/1.4 var(--font-display); letter-spacing: -.01em; }
.quote-cite { font: 500 14px/1.4 var(--font-body); color: var(--slate); }

/* ---------- 5. Buttons + forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 18px 28px; border: 0; border-radius: var(--pill);
  background: var(--navy); color: var(--white); font: 600 17px/1.2 var(--font-body);
  text-align: center; text-decoration: none; cursor: pointer; transition: background 150ms;
}
.btn:hover { background: var(--indigo); color: var(--white); }
.btn--light { background: var(--periwinkle); color: var(--navy); }
.btn--light:hover { background: var(--white); color: var(--navy); }
.btn--outline { background: var(--white); color: var(--navy); border: 1px solid var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--sm { min-height: 46px; padding: 12px 22px; font-size: 15px; }
.btn--block { display: flex; width: 100%; }

.input {
  width: 100%; height: 54px; padding: 0 20px; border-radius: var(--pill);
  border: 2px solid var(--navy); background: var(--white); color: var(--navy);
  font: 400 16px var(--font-body);
}
.input:focus { outline: 2px solid var(--periwinkle); outline-offset: 2px; }
.label { font: 600 14px/1 var(--font-body); }

.form-card {
  width: 100%; max-width: 560px; padding: 30px 28px 24px;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-form);
  display: flex; flex-direction: column; gap: 12px; text-align: left;
}
.form-card .label + .input { margin-top: 0; }
.form-card .label:not(:first-child) { margin-top: 4px; }
.form-note { text-align: center; font: 500 15px/1.5 var(--font-body); color: var(--slate); }

.form-inline { display: flex; flex-wrap: wrap; gap: 12px; }
.form-inline .input--name { flex: 1 1 160px; }
.form-inline .input--email { flex: 2 1 220px; }
.form-inline .btn { flex: 1 1 100%; }
@media (min-width: 700px) { .form-inline .btn { flex: 0 0 auto; } }

/* ---------- 6. Shared components ---------- */
.site-header { max-width: 1200px; margin: 0 auto; padding: 20px var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--navy); text-decoration: none; font: 700 18px/1 var(--font-display); letter-spacing: -.01em; }
.brand img { width: 56px; height: 56px; }

.card { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-card); }
.card--line { border: 1px solid var(--line-soft); }
.card--dark { background: var(--navy-2); color: var(--white); }

.pill { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: var(--pill); font: 700 12px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.pill--outline { border: 1.5px solid var(--indigo); color: var(--indigo); }

.num-badge { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--yellow); display: inline-flex; align-items: center; justify-content: center; font: 400 19px/1 var(--font-marker); }
.num-badge--lg { width: 72px; height: 72px; font-size: 34px; box-shadow: inset 0 0 0 2px var(--periwinkle); }

.site-footer { background: var(--navy); color: var(--white); padding: 72px var(--gutter) 56px; text-align: center; }
.site-footer img { width: 84px; height: 84px; margin-inline: auto; }
.site-footer .tagline { font: 700 26px/1.1 var(--font-display); letter-spacing: -.02em; }
.site-footer .small, .site-footer a { color: var(--lavender); }
.site-footer--light { background: none; color: var(--slate); padding: 28px var(--gutter); }
.site-footer--light a { color: var(--slate); }

/* Gorilla hand that taps a button (desktop only) */
.tap-wrap { position: relative; display: flex; flex-direction: column; }
.tap-hand {
  position: absolute; left: calc(100% - 5px); top: calc(50% - 77px); width: 420px; max-width: none; z-index: 2;
  transform: translateX(105%); animation: tfgTap 8s 1.5s ease-in-out infinite both; pointer-events: none;
}
.tap-press { animation: tfgPress 8s 1.5s ease-in-out infinite both; }
@keyframes tfgTap { 0% { transform: translateX(105%) } 12% { transform: translateX(-1%) } 16% { transform: translateX(0) } 20% { transform: translateX(-5%) } 23% { transform: translateX(0) } 27% { transform: translateX(-5%) } 30% { transform: translateX(0) } 40% { transform: translateX(0) } 52% { transform: translateX(105%) } 100% { transform: translateX(105%) } }
@keyframes tfgPress { 0%, 19%, 23%, 26%, 30%, 100% { transform: scale(1) } 20.5%, 27.5% { transform: scale(.96); background: var(--indigo) } }
.clip-x { overflow: hidden; }
@media (max-width: 900px) { .tap-hand { display: none; } }

/* ---------- 7. Opt-in page ---------- */
.hero { padding: clamp(48px, 8vw, 72px) var(--gutter) clamp(72px, 10vw, 104px); }
.hero-inner { max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 30px; text-align: center; }
.hero h1 { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.hero-list li { display: flex; align-items: center; gap: 14px; font: 500 clamp(17px, 2vw, 20px)/1.4 var(--font-body); }
.hero-list .with-pill { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }

/* Hand-drawn loop around a phrase */
.loop { position: relative; display: inline-block; }
.loop svg { position: absolute; left: -5%; top: -10%; width: 110%; height: 124%; overflow: visible; pointer-events: none; }
.loop path { fill: none; stroke: var(--periwinkle); stroke-width: 2.25; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: tfgDraw 1.6s .6s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes tfgDraw { to { stroke-dashoffset: 0; } }

/* Rotating headline endings */
.rot { display: inline-grid; vertical-align: top; color: var(--indigo); }
.rot > span { grid-area: 1 / 1; transition: opacity 400ms ease, transform 400ms ease; opacity: 0; transform: translateY(12px); }
.rot > span.is-on { opacity: 1; transform: none; }
@media (max-width: 700px) { .rot > span:not(.is-on) { display: none; } }
.rot > span.is-out { opacity: 0; transform: translateY(-10px); }

.sticky-bar { position: sticky; top: 0; z-index: 5; background: var(--navy); color: var(--white); padding: 12px var(--gutter); box-shadow: 0 8px 24px -12px rgba(0, 0, 30, .5); }
.sticky-bar form { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.sticky-bar p { flex: 1 1 260px; font: 600 16px/1.3 var(--font-body); }
.sticky-bar .input { height: 46px; border-color: var(--white); width: auto; }
.sticky-bar .input--name { flex: 0 1 160px; }
.sticky-bar .input--email { flex: 1 1 240px; }
/* On phones the bar shrinks to one button that jumps to the form */
.sticky-bar .bar-jump { display: none; }
@media (max-width: 700px) {
  .sticky-bar form > :not(p) { display: none; }
  .sticky-bar .bar-jump { display: inline-flex; }
  .sticky-bar form { flex-wrap: nowrap; }
  .sticky-bar p { flex: 1 1 auto; font-size: 14px; }
}

.cred { background: var(--paper); padding: 22px var(--gutter); border-bottom: 1px solid var(--line-soft); text-align: center; font: 500 17px/1.5 var(--font-body); color: var(--slate); }
.cred strong { color: var(--navy); }

.voices figure { padding: 22px 0; border-top: 1px solid var(--slate); display: flex; flex-direction: column; gap: 8px; }
.voices figure:last-child { border-bottom: 1px solid var(--slate); }
.voices figcaption { font: 700 12px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--periwinkle); }
.voices blockquote { font: 500 clamp(18px, 2vw, 21px)/1.5 var(--font-body); }

.cycle { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cycle .step { display: inline-block; padding: 8px 14px; border-radius: var(--pill); font: 700 clamp(13px, 1.6vw, 16px)/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; }
.cycle .arrow { font: 700 22px var(--font-body); }
.goal-chips { display: flex; flex-wrap: wrap; gap: 16px; }
.goal-chips p { padding: 18px 22px; border-radius: 14px; background: var(--white); box-shadow: var(--shadow-card); font: 700 20px/1.3 var(--font-display); }
.target-list { max-width: 640px; padding: 26px 28px; border-radius: 16px; background: var(--white); border: 1px solid var(--line-soft); font: 500 18px/1.5 var(--font-body); }

.stat { font: 400 clamp(40px, 5vw, 52px)/1 var(--font-marker); color: var(--periwinkle); }

/* Story-snack jar */
.jar-col { flex: 0 1 400px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.jar { all: unset; box-sizing: border-box; cursor: pointer; position: relative; width: 200px; height: 250px; display: flex; flex-direction: column; align-items: center; transition: transform 200ms ease; }
.jar:hover { transform: rotate(-4deg); }
.jar:active { transform: rotate(4deg) scale(.97); }
.jar:focus-visible { outline: 3px solid var(--indigo); outline-offset: 6px; border-radius: 24px; }
.jar-lid { display: block; width: 132px; height: 30px; border-radius: 8px; background: var(--navy); margin-bottom: -4px; position: relative; z-index: 1; }
.jar-glass { display: block; position: relative; width: 200px; height: 220px; border-radius: 30px 30px 44px 44px; background: rgba(255, 255, 255, .65); border: 3px solid var(--navy); overflow: hidden; }
.jar-label { position: absolute; left: 50%; top: 26%; transform: translateX(-50%) rotate(-3deg); background: var(--yellow); padding: 10px 16px; border-radius: 6px; font: 400 22px/1 var(--font-marker); text-align: center; white-space: nowrap; }
.jar-bit { position: absolute; width: 44px; height: 26px; border-radius: 4px; border: 2px solid var(--navy); }
.slip { background: var(--white); border-radius: 6px; box-shadow: 0 12px 28px -14px rgba(0, 0, 30, .35); padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; transform: rotate(-1.5deg); animation: tfgSlip 450ms cubic-bezier(.2, 1.4, .4, 1) both; }
.slip .pill { align-self: flex-start; color: var(--navy); padding: 6px 12px; }
@keyframes tfgSlip { from { opacity: 0; translate: 0 -40px; scale: .85; } to { opacity: 1; translate: 0 0; scale: 1; } }

.loop-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; padding: 20px 24px; border-radius: 28px; border: 1.5px solid var(--periwinkle); font: 600 16px/1.3 var(--font-body); text-align: center; }
.loop-strip .arrow { color: var(--indigo); }
.cta-band { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; background: var(--paper); border-radius: var(--radius); padding: clamp(24px, 4vw, 32px); }
.cta-band > * { flex: 1 1 380px; min-width: 0; }

/* Persona carousel */
.personas { position: relative; overflow: hidden; background: var(--white); }
.personas::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top left, var(--paper) 50%, transparent 50%); pointer-events: none; }
.personas > .wrap { position: relative; }
.persona-tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }
.persona-tab { text-align: left; cursor: pointer; display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px; min-height: 44px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--white); color: var(--navy); font: 600 17px/1.2 var(--font-body); }
.persona-tab[aria-selected="true"] { background: var(--navy); color: var(--white); }
.persona-tab .dot { width: 14px; height: 14px; border-radius: 50%; flex: none; border: 2px solid var(--navy); }
.persona-tab[aria-selected="true"] .dot { border-color: var(--white); }
.persona-card { margin-top: 24px; display: flex; flex-wrap: wrap; background: var(--white); border-radius: 24px; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0, 0, 30, .05), 0 10px 28px rgba(0, 0, 30, .07); overflow: hidden; }
.persona-panel { flex: 1 1 300px; min-height: 320px; padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; transition: background 300ms; }
.persona-panel .num { font: 700 18px/1 var(--font-body); letter-spacing: .04em; }
.persona-panel h3 { margin-top: 20px; font: 700 clamp(29px, 4vw, 52px)/.92 var(--font-display); letter-spacing: -.03em; }
.persona-panel .spacer { flex: 1; min-height: 40px; }
.persona-panel .is-you { font: 400 clamp(43px, 5.1vw, 72px)/1.15 var(--font-hand); transform: rotate(-2deg); align-self: flex-start; }
.persona-body { flex: 1.8 1 360px; padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 16px; }
.persona-body p { font: 400 19px/1.6 var(--font-body); }
.persona-kick { margin-top: 12px; padding-top: 20px; border-top: 2px solid var(--periwinkle); font: 700 26px/1.1 var(--font-display) !important; letter-spacing: -.02em; }
.link-btn { cursor: pointer; align-self: flex-start; padding: 10px 0; background: none; border: 0; color: var(--navy); font: 600 17px/1.35 var(--font-body); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; text-align: left; }
.round-btn { cursor: pointer; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--navy); box-shadow: 0 1px 2px rgba(0, 0, 30, .05), 0 10px 28px rgba(0, 0, 30, .07); display: inline-flex; align-items: center; justify-content: center; font: 600 22px/1 var(--font-body); }
.doc-btn { display: inline; cursor: pointer; border: 0; padding: 0 3px; margin: 0; border-radius: 6px; font: inherit; font-weight: 800; color: inherit; background: linear-gradient(transparent 68%, var(--yellow) 68%); text-decoration: underline wavy var(--indigo-hi); text-underline-offset: 4px; }
.doc-btn:hover { background: var(--yellow); }

/* "regular giving ideas" doc pop-up */
.doc-modal { border: 0; padding: 0; width: min(720px, calc(100% - 32px)); max-height: calc(100vh - 48px); border-radius: 14px; box-shadow: 0 40px 80px -30px rgba(0, 0, 30, .6); }
.doc-modal::backdrop { background: rgba(0, 0, 30, .55); }
.doc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; background: var(--paper); border-bottom: 1px solid var(--line-soft); }
.doc-top .file { display: flex; align-items: center; gap: 10px; }
.doc-top .file-icon { width: 22px; height: 28px; border-radius: 3px; background: var(--indigo); flex: none; }
.doc-close { cursor: pointer; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); font: 600 20px/1 var(--font-body); }
.doc-page { position: relative; padding: clamp(28px, 6vw, 48px) clamp(24px, 6vw, 56px) 32px; font-family: Georgia, 'Times New Roman', serif; }
.doc-page h2 { font: 700 28px/1.2 Georgia, serif; margin-bottom: 22px; }
.doc-page ul { padding-left: 22px; font: 400 18px/1.8 Georgia, serif; }
.doc-update { margin-top: 22px; font: 700 18px/1.6 Georgia, serif; }
.doc-update span { background: var(--yellow); padding: 2px 6px; }
.caret { display: inline-block; width: 2px; height: 1.2em; background: var(--navy); vertical-align: text-bottom; animation: tfgBlink 1s steps(1) infinite; margin-top: 22px; }
@keyframes tfgBlink { 50% { opacity: 0; } }
.sticky-note { margin: 24px 0 0 auto; width: 250px; padding: 20px 20px 18px; background: var(--yellow); transform: rotate(2deg); box-shadow: 0 16px 30px -16px rgba(0, 0, 30, .5); }
.sticky-note p:first-child { font: 400 24px/1.2 var(--font-hand); }
.sticky-note p:last-child { margin-top: 8px; font: 600 13px/1.3 var(--font-body); color: var(--navy-2); }
.doc-actions { padding: 8px clamp(24px, 6vw, 56px) 40px; }

/* Panic-appeal easter egg */
.switch { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 4px; background: none; border: 0; cursor: pointer; color: var(--white); font: 600 15px/1 var(--font-body); }
.switch .track { position: relative; display: inline-block; width: 52px; height: 30px; border-radius: var(--pill); background: var(--navy-2); box-shadow: inset 0 0 0 1.5px var(--lavender); transition: background 200ms; }
.switch .knob { position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(0, 0, 30, .35); transition: transform 200ms; }
.switch[aria-checked="true"] .track { background: var(--periwinkle); box-shadow: inset 0 0 0 1.5px var(--periwinkle); }
.switch[aria-checked="true"] .knob { transform: translateX(22px); }
.panic-only { display: none; }
.is-panic .panic-only { display: block; }
.is-panic .calm-only { display: none !important; }
.panic-banner { background: var(--red); color: var(--white); padding: 14px var(--gutter); text-align: center; font: 800 16px/1.3 var(--font-body); letter-spacing: .06em; text-transform: uppercase; }
.panic-h1 { font: 900 clamp(40px, 6.4vw, 104px)/.95 var(--font-display); letter-spacing: -.02em; color: var(--red); text-transform: uppercase; }
.is-panic h2, .is-panic h3, .is-panic h2 span, .is-panic h3 span { color: var(--red) !important; text-transform: uppercase !important; }
.is-panic .btn { background: var(--red) !important; color: var(--white) !important; text-transform: uppercase; letter-spacing: .04em; animation: tfgShake .4s ease-in-out infinite alternate; }
@keyframes tfgShake { from { transform: rotate(-1.2deg); } to { transform: rotate(1.2deg); } }
.make-it-stop { display: none; position: fixed; left: 20px; bottom: 20px; z-index: 20; cursor: pointer; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: var(--pill); border: 2px solid var(--navy); background: var(--white); color: var(--navy); font: 700 16px/1 var(--font-body); box-shadow: 0 10px 30px -10px rgba(0, 0, 30, .45); }
.is-panic .make-it-stop { display: inline-flex; }

/* ---------- 8. Thank-you page ---------- */
.page-col { min-height: 100vh; display: flex; flex-direction: column; }
.page-col main { flex: 1; }
.mock-email { width: 100%; max-width: 440px; background: var(--white); border: 2px solid var(--navy); border-radius: 18px; box-shadow: 8px 8px 0 var(--navy); padding: 24px 26px; display: flex; flex-direction: column; gap: 14px; text-align: left; transform: rotate(-1deg); }
.mail-btn { border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 14px 22px; min-height: 50px; border-radius: var(--pill); background: var(--periwinkle); color: var(--navy); font: 600 16px/1.2 var(--font-body); }
.mail-btn:hover { background: var(--indigo); color: var(--white); }
.nope { margin-top: 36px; background: var(--lilac); border-radius: 18px; padding: 24px 26px; display: flex; flex-direction: column; align-items: center; gap: 14px; animation: tfgPop 400ms cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes tfgPop { from { opacity: 0; transform: translateY(-12px) scale(.96); } to { opacity: 1; transform: none; } }
.mail-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font: 500 16px/1.4 var(--font-body); }
.mail-links a { padding: 8px 2px; color: var(--navy); text-decoration-color: var(--periwinkle); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.help summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 600 16px/1.4 var(--font-body); color: var(--slate); }
.help summary::-webkit-details-marker { display: none; }
.help summary::after { content: '+'; font: 400 22px/1 var(--font-body); color: var(--indigo); }
.help[open] summary::after { content: '–'; }

/* ---------- 9. Scorecard page ---------- */
.tick-group { background: var(--paper); border-radius: 16px; padding: clamp(20px, 4vw, 28px); }
.tick-group header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tick-group h3 { font: 700 28px/1 var(--font-display); letter-spacing: -.02em; }
.tick-group .score { font: 600 15px/1 var(--font-body); color: var(--indigo); }
.tick { display: flex; gap: 14px; align-items: flex-start; width: 100%; text-align: left; padding: 16px 18px; border-radius: 12px; color: var(--navy); background: var(--white); border: 1px solid var(--line); cursor: pointer; font: 400 17px/1.5 var(--font-body); }
.tick .box { flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--navy); background: var(--white); }
.tick .box svg { visibility: hidden; }
.tick[aria-pressed="true"] { background: var(--lilac); border-color: var(--indigo); }
.tick[aria-pressed="true"] .box { background: var(--navy); }
.tick[aria-pressed="true"] .box svg { visibility: visible; }
.choice { width: 100%; min-height: 56px; text-align: left; padding: 14px 18px; border-radius: 12px; font: 500 16px/1.4 var(--font-body); color: var(--navy); background: var(--white); border: 1px solid var(--line); cursor: pointer; }
.choice[aria-pressed="true"] { background: var(--lilac); border: 2px solid var(--indigo); }
.result-card { background: var(--navy); color: var(--white); border-radius: 16px; padding: clamp(28px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 56px; }
.result-card > * { min-width: 0; }
.big-score { font: 400 clamp(96px, 12vw, 150px)/.9 var(--font-marker); color: var(--periwinkle); }
.big-score small { font-size: .35em; color: var(--lavender); }
.bar-row { display: flex; justify-content: space-between; font: 500 15px/1 var(--font-body); color: var(--lavender); margin-bottom: 7px; }
.bar { height: 8px; background: var(--navy-2); border-radius: var(--pill); }
.bar > span { display: block; height: 100%; background: var(--periwinkle); border-radius: var(--pill); transition: width 300ms; }
.offer { display: flex; flex-direction: column; background: var(--white); border-radius: 16px; padding: 30px; border: 1px solid var(--line); }
.offer.is-best { border: 2px solid var(--indigo); box-shadow: 0 1px 2px rgba(0, 0, 30, .06), 0 12px 32px rgba(0, 0, 30, .10); }
.offer .best-flag { display: none; margin-bottom: 14px; }
.offer.is-best .best-flag { display: block; }
.offer h3 { margin-top: 12px; font: 700 32px/1.05 var(--font-display); letter-spacing: -.025em; }
.offer .price { margin-top: 22px; font: 700 34px/1 var(--font-display); letter-spacing: -.02em; }
.offer .price s { font: 500 18px/1 var(--font-body); color: var(--slate); }
.offer .btn { margin-top: auto; }
.offer-foot { margin-top: 24px; }
.stepper { display: flex; align-items: center; gap: 18px; margin-top: 20px; }
.stepper button { width: 48px; height: 48px; border-radius: var(--pill); border: 1px solid var(--navy); background: var(--white); font: 600 22px/1 var(--font-body); color: var(--navy); cursor: pointer; }
.stepper output { min-width: 64px; text-align: center; font: 700 44px/1 var(--font-display); }

/* ---------- 10. Legal / simple pages ---------- */
.prose { max-width: 720px; margin: 0 auto; }
.prose h1 { font: 700 clamp(40px, 6vw, 72px)/1 var(--font-display); letter-spacing: -.03em; margin-bottom: 16px; }
.prose h2 { font: 700 26px/1.2 var(--font-display); letter-spacing: -.02em; margin: 48px 0 12px; }
.prose p, .prose li { font: 400 18px/1.65 var(--font-body); }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 14px; }
.prose ul { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; margin-top: 14px; font: 400 16px/1.5 var(--font-body); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; }
@media (max-width: 600px) {
  .prose table, .prose thead, .prose tbody, .prose tr, .prose th, .prose td { display: block; }
  .prose thead { display: none; }
  .prose td { border: 0; padding: 4px 0; }
  .prose td:first-child { font-weight: 700; padding-top: 16px; }
  .prose tr { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
}

/* ---------- 11. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .loop path { stroke-dashoffset: 0; }
  .tap-hand { transform: translateX(105%); }
}

/* ---------- 12. Contrast fixes on dark cards + light footers ---------- */
.result-card .muted { color: var(--lavender); }
.result-card .kicker { color: var(--periwinkle); }
.site-footer--light .small, .site-footer--light a { color: var(--slate); }
.is-panic .panic-only.stack { display: flex; }
