/* Random Act of Giving
   Warm + optimistic + trustworthy + slightly playful + extremely simple. */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #fff7ec;
  --paper: #fffdf8;
  --sand: #f6ead8;
  --line: #eadcc8;
  --ink: #1c1917;
  --ink-soft: #57524c;
  --ink-faint: #6f675e;
  --coral: #ff5a3c;
  --coral-deep: #c4381a;      /* 5.0:1 on cream, 5.3:1 under white text */
  --coral-text: #e8462a;      /* large display text only: 3.7:1 on cream */
  --amber-text: #a8650f;
  --mint-text: #1f7a6a;
  --coral-soft: #ffe3da;
  --sun: #ffb938;
  --sun-soft: #fff0cc;
  --mint: #2e9e8a;
  --mint-soft: #d9f0ea;
  --sky: #7cc4e4;
  --night: #1f1b2e;
  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 1px 0 rgba(28, 25, 23, .04), 0 12px 32px -12px rgba(120, 60, 20, .18);
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--coral-deep); }
p { margin: 0 0 1em; }
h1, h2, h3 { line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(44px, 8.5vw, 112px); }
h2 { font-size: clamp(34px, 5.4vw, 68px); }
h3 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.02em; line-height: 1.15; }
small { font-size: .82em; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; 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: 16px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; z-index: 100; text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--paper); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gutter), 720px); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 800; color: var(--coral-deep); margin-bottom: 14px; display: block; }

/* ---------- Header / footer ---------- */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.logo-mark { width: 38px; height: 38px; flex: none; }
.wordmark { display: flex; flex-direction: column; line-height: .92; }
.wordmark strong { font-size: 17px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.wordmark span { font-size: 14px; font-weight: 500; color: var(--ink-soft); letter-spacing: .01em; }
.site-nav { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 28px); font-weight: 600; font-size: 16px; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
@media (max-width: 640px) { .site-nav .hide-sm { display: none; } }

.site-footer { background: var(--sand); margin-top: 0; padding: 56px 0 40px; font-size: 15px; color: var(--ink-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-title { font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.disclaimer { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 22px; font-size: 13.5px; line-height: 1.6; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 14px 26px; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg);
  font: inherit; font-weight: 800; font-size: 17px; letter-spacing: .02em; text-decoration: none;
  cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s;
}
.btn:hover { color: var(--fg); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-primary { --bg: var(--coral-deep); --fg: #fff; box-shadow: 0 10px 24px -10px rgba(214, 62, 30, .7); }
.btn-primary:hover { --bg: #a92f13; }
.btn-ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { --bg: var(--ink); --fg: var(--paper); }
.btn-soft { --bg: var(--paper); --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--ink); text-decoration: underline; cursor: pointer; text-underline-offset: 3px; }
.btn-link:hover { color: var(--coral-deep); }
.btn-giant { min-height: 72px; padding: 20px 40px; font-size: clamp(18px, 2vw, 22px); text-transform: uppercase; letter-spacing: .06em; }
.btn .heart { width: 1.15em; height: 1.15em; flex: none; }
.inline-form { display: inline; margin: 0; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 9vw, 120px) 0 clamp(56px, 9vw, 110px); overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.hero-kicker { font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: 14px; margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.hero-kicker .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); display: inline-block; }
.hero h1 { max-width: 11ch; margin-bottom: 28px; font-size: clamp(44px, 6.4vw, 92px); }
.hero h1 .soft { color: var(--coral-text); }
.hero-lede { font-size: clamp(19px, 2.1vw, 24px); max-width: 34ch; color: var(--ink-soft); margin-bottom: 36px; }
.hero-lede strong { color: var(--ink); }
.hero-note { margin-top: 22px; font-size: 15px; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.hero-note span::before { content: "•"; margin-right: 14px; color: var(--coral); }
.hero-note span:first-child::before { content: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero-art { pointer-events: none; }
.hero-art svg { width: 100%; height: auto; display: block; }
.hero-art circle { transform-box: fill-box; transform-origin: center; animation: drift 9s ease-in-out infinite; }
.hero-art circle:nth-child(3n) { animation-duration: 11s; animation-delay: -3s; }
.hero-art circle:nth-child(4n) { animation-duration: 13s; animation-delay: -6s; }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(2px, -5px); } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; width: 132px; margin: 0; }
  .hero-kicker { margin-bottom: 14px; }
  .hero h1 { margin-bottom: 18px; }
  .hero-lede { margin-bottom: 26px; }
  .dev-banner { font-size: 11px; }
  .hero { padding-top: 12px; }
}

/* Return prompt on the homepage */
.return-card { display: none; margin: 0 auto; max-width: 720px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
.return-card.is-visible { display: flex; }
.return-card p { margin: 0; font-weight: 700; font-size: 19px; }
.return-card .cta-row { gap: 12px; }

/* ---------- Stats ---------- */
.stats { padding: 20px 0 80px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { background: var(--paper); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); }
.stat-num { font-size: clamp(36px, 4.4vw, 54px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--ink-soft); font-size: 15.5px; margin-top: 10px; line-height: 1.35; }
.stat:nth-child(1) .stat-num { color: var(--coral-deep); }
.stats-foot { margin-top: 16px; font-size: 14px; color: var(--ink-faint); text-align: center; }
@media (max-width: 820px) { .stats-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Section scaffolding ---------- */
.section { padding: clamp(64px, 10vw, 128px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { font-size: clamp(18px, 1.8vw, 21px); color: var(--ink-soft); }
.section-head.center { margin-inline: auto; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); counter-reset: step; }
.step { background: var(--paper); border-radius: var(--radius); padding: 34px 30px 36px; box-shadow: var(--shadow); position: relative; }
.step-num { font-size: clamp(64px, 8vw, 104px); font-weight: 800; line-height: .9; letter-spacing: -0.06em; color: var(--coral-text); margin-bottom: 18px; display: block; }
.step:nth-child(2) .step-num { color: var(--amber-text); }
.step:nth-child(3) .step-num { color: var(--mint-text); }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink-soft); margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Map */
.map-section { background: var(--paper); }
.map-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; margin-bottom: 28px; }
.map-head h2 { margin: 0; }
.map-count { font-size: clamp(18px, 2vw, 22px); font-weight: 700; }
.map-count span { color: var(--coral-deep); }
.us-map-wrap { position: relative; }
.us-map { width: 100%; height: auto; display: block; }
.us-map .state { fill: #f1e4d1; stroke: var(--paper); stroke-width: 1.4; transition: fill .25s; }
.us-map .state.l1 { fill: #ffd2c4; }
.us-map .state.l2 { fill: #ffad97; }
.us-map .state.l3 { fill: #ff8467; }
.us-map .state.l4 { fill: #ff5a3c; }
.us-map .state.l5 { fill: #d63e1e; }
.us-map .state.has-acts { cursor: default; }
.us-map .state.has-acts:hover, .us-map .state.is-active { fill: var(--sun); }
.us-map .pulse { fill: var(--paper); opacity: .95; transform-box: fill-box; transform-origin: center; animation: pulse 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes pulse { 0%, 70%, 100% { transform: scale(1); opacity: .9; } 80% { transform: scale(1.9); opacity: .25; } }
.map-tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 12px; font-size: 15px; line-height: 1.3; white-space: nowrap; transform: translate(-50%, calc(-100% - 12px)); opacity: 0; transition: opacity .15s; z-index: 2; }
.map-tip strong { display: block; font-size: 16px; }
.map-tip.is-visible { opacity: 1; }
.map-legend { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-soft); margin-top: 18px; flex-wrap: wrap; }
.map-legend i { width: 22px; height: 12px; border-radius: 4px; display: inline-block; }
.map-note { font-size: 15px; color: var(--ink-soft); margin-top: 22px; max-width: 64ch; }
.map-list summary { cursor: pointer; font-weight: 700; margin-top: 18px; }
.map-list table { margin-top: 12px; border-collapse: collapse; width: 100%; max-width: 480px; font-size: 15.5px; }
.map-list td, .map-list th { padding: 6px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.map-list td:last-child, .map-list th:last-child { text-align: right; font-variant-numeric: tabular-nums; }

/* Privacy: "We count acts. Not people." */
.privacy-section { background: var(--night); color: #f7efe4; position: relative; overflow: hidden; }
.privacy-section h2 { font-size: clamp(44px, 8vw, 104px); max-width: 9ch; }
.privacy-section h2 .soft { color: var(--sun); }
.privacy-section .section-head p { color: #cfc6bb; }
.promise-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.promise { border-radius: var(--radius); padding: 28px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.promise h3 { color: #fff; margin-bottom: 8px; }
.promise p { margin: 0; color: #cfc6bb; }
.promise-icon { width: 34px; height: 34px; margin-bottom: 16px; display: block; }
.privacy-section .fine { margin-top: 28px; color: #a99f94; font-size: 15px; max-width: 70ch; }
.privacy-section a { color: var(--sun); }
@media (max-width: 760px) { .promise-grid { grid-template-columns: 1fr; } }

/* Fairness deck */
.deck { display: grid; grid-template-columns: repeat(10, 1fr); gap: 10px; margin: 0 0 36px; }
.deck-card { aspect-ratio: 3 / 4; border-radius: 12px; background: var(--paper); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: clamp(11px, 1.4vw, 15px); letter-spacing: .02em; color: var(--ink-soft); position: relative; transition: transform .6s var(--ease); }
.deck-card::after { content: ""; position: absolute; top: 9px; left: 50%; width: 7px; height: 7px; border-radius: 50%; margin-left: -3.5px; background: var(--coral); }
.deck-card:nth-child(3n)::after { background: var(--sun); }
.deck-card:nth-child(4n)::after { background: var(--mint); }
.deck-card:nth-child(5n)::after { background: var(--sky); }
.deck-card.is-next { background: var(--ink); color: var(--paper); }
@media (max-width: 760px) { .deck { grid-template-columns: repeat(5, 1fr); } .deck-card:nth-child(n+11) { display: none; } }
.nopes { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.nopes li { background: var(--paper); border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 16px; box-shadow: inset 0 0 0 1.5px var(--line); }
.nopes li::before { content: "✕"; color: var(--coral-deep); margin-right: 8px; font-weight: 800; }

/* $5 challenge band */
.challenge-band { background: var(--sun); }
.challenge-band .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.challenge-band h2 { margin-bottom: 14px; }
.challenge-band .big5 { font-size: clamp(120px, 20vw, 260px); font-weight: 800; letter-spacing: -0.07em; line-height: .8; color: var(--ink); text-align: center; }
.challenge-band .big5 span { color: var(--coral-deep); }
@media (max-width: 760px) { .challenge-band .wrap { grid-template-columns: 1fr; } .challenge-band .big5 { order: -1; } }

/* Add band */
.add-band { background: var(--mint-soft); }
.add-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.add-band h2 { margin: 0 0 8px; font-size: clamp(30px, 4vw, 48px); }
.add-band p { margin: 0; color: var(--ink-soft); max-width: 52ch; }

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--paper); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.faq-item summary { list-style: none; cursor: pointer; padding: 22px 56px 22px 24px; font-weight: 800; font-size: 19px; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 28px; font-weight: 500; color: var(--coral-deep); transition: transform .2s; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item .answer { padding: 0 24px 22px; color: var(--ink-soft); }
.faq-item .answer p:last-child { margin: 0; }

/* Final CTA */
.final-cta { text-align: center; padding: clamp(80px, 12vw, 160px) 0; }
.final-cta h2 { font-size: clamp(56px, 11vw, 140px); margin-bottom: 36px; }
.final-cta .muted { margin-top: 22px; }

/* Acts heart */
.acts-heart { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.acts-heart svg { width: 100%; max-width: 460px; height: auto; display: block; margin-inline: auto; }
.acts-heart .ghost { fill: #efe2cf; }
@media (max-width: 760px) { .acts-heart { grid-template-columns: 1fr; } }

/* ---------- Shuffle overlay ---------- */
.shuffle-overlay { position: fixed; inset: 0; background: var(--cream); z-index: 50; display: none; align-items: center; justify-content: center; flex-direction: column; gap: 28px; }
.shuffle-overlay.is-visible { display: flex; animation: fade-in .2s ease-out; }
.shuffle-overlay p { font-weight: 800; font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.02em; margin: 0; }
.shuffle-dots { position: relative; width: 220px; height: 70px; }
.shuffle-dots i { position: absolute; top: 25px; width: 20px; height: 20px; border-radius: 50%; background: var(--coral); animation: hop 0.7s var(--ease) infinite; }
.shuffle-dots i:nth-child(1) { left: 0; animation-delay: 0s; }
.shuffle-dots i:nth-child(2) { left: 50px; background: var(--sun); animation-delay: .08s; }
.shuffle-dots i:nth-child(3) { left: 100px; background: var(--mint); animation-delay: .16s; }
.shuffle-dots i:nth-child(4) { left: 150px; background: var(--sky); animation-delay: .24s; }
.shuffle-dots i:nth-child(5) { left: 200px; background: var(--coral-deep); animation-delay: .32s; }
@keyframes hop { 0%, 100% { transform: translate(0, 0); } 30% { transform: translate(14px, -22px); } 60% { transform: translate(-10px, 8px); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Result page ---------- */
.page-result, .page-interstitial { background: var(--cream); }
.result { min-height: calc(100vh - 80px); display: flex; align-items: flex-start; justify-content: center; padding: 8px 0 72px; }
.result-card { width: min(100% - 2 * var(--gutter), 980px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.result-label { font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: 14px; color: var(--coral-deep); }
.result-id { font-size: clamp(56px, 9vw, 112px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin: 10px 0 8px; font-variant-numeric: tabular-nums; }
.result-id .hash { color: var(--coral-text); }
.result-meta { color: var(--ink-soft); font-size: 17px; display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.result-heart { width: 30px; height: 30px; }
.result-copy p { color: var(--ink-soft); }
.qr-panel { background: var(--paper); border-radius: 28px; box-shadow: var(--shadow); padding: clamp(20px, 3vw, 34px); text-align: center; }
.qr-panel img { width: 100%; max-width: 340px; height: auto; display: block; margin: 0 auto; image-rendering: pixelated; border-radius: 8px; }
.qr-panel .qr-caption { font-weight: 800; font-size: 20px; margin: 18px 0 2px; }
.qr-panel .qr-sub { color: var(--ink-soft); font-size: 15px; margin: 0; }
.trust { margin-top: 22px; background: var(--mint-soft); border-radius: var(--radius-sm); padding: 16px 18px; font-size: 15.5px; color: #1f4f46; }
.trust strong { display: flex; align-items: center; gap: 8px; color: #173f37; margin-bottom: 4px; }
.trust svg { width: 18px; height: 18px; flex: none; }
.trust p { margin: 0; }
.trust p + p { margin-top: 6px; }
.result-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 26px; }
.result-secondary { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 16px; color: var(--ink-soft); }
.result-secondary a, .result-secondary .btn-link { font-weight: 600; color: var(--ink-soft); }
.report-link { font-size: 14px; color: var(--ink-faint); margin-top: 8px; }
.report-link a { color: var(--ink-faint); }
.qr-mobile { display: none; }
.qr-mobile summary { cursor: pointer; font-weight: 700; color: var(--ink-soft); }
.qr-mobile .qr-panel { margin-top: 14px; }

.scanned { display: none; margin-top: 22px; background: var(--sun-soft); border-radius: var(--radius-sm); padding: 18px 20px; }
.scanned.is-visible { display: block; animation: rise .5s var(--ease); }
.scanned p { margin: 0 0 12px; font-weight: 700; }
.scanned .cta-row { gap: 12px; }

/* Reveal ceremony */
.reveal > * { animation: rise .7s var(--ease) both; }
.reveal > :nth-child(2) { animation-delay: .08s; }
.reveal > :nth-child(3) { animation-delay: .16s; }
.reveal > :nth-child(4) { animation-delay: .24s; }
.reveal > :nth-child(5) { animation-delay: .32s; }
.reveal > :nth-child(6) { animation-delay: .40s; }
.qr-desktop { animation: pop .8s .25s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.94) rotate(-1.5deg); } to { opacity: 1; transform: none; } }

/* Desktop is QR-first; touch/small screens are button-first (PRD §8-9). */
@media (max-width: 860px), (hover: none) and (pointer: coarse) {
  .result-card { grid-template-columns: 1fr; text-align: center; }
  .result-meta, .result-actions { justify-content: center; align-items: center; }
  .result-secondary { justify-content: center; }
  .qr-desktop { display: none; }
  .qr-mobile { display: block; width: 100%; }
  .result-actions .btn { width: 100%; max-width: 420px; }
  .result { padding-top: 0; }
}

/* Interstitial */
.leaving { min-height: calc(100vh - 80px); display: flex; align-items: center; justify-content: center; padding: 24px 0 64px; }
.leaving-card { width: min(100% - 2 * var(--gutter), 620px); background: var(--paper); border-radius: 28px; box-shadow: var(--shadow); padding: clamp(28px, 5vw, 48px); }
.leaving-card h1 { font-size: clamp(30px, 4.4vw, 44px); margin-bottom: 16px; }
.destination { display: flex; align-items: center; gap: 14px; background: var(--cream); border-radius: var(--radius-sm); padding: 16px 18px; margin: 18px 0 22px; }
.destination svg { width: 28px; height: 28px; flex: none; }
.destination strong { display: block; font-size: 18px; }
.destination code { font-family: inherit; font-weight: 600; color: var(--ink-soft); }
.never-list { font-size: 15.5px; color: var(--ink-soft); }
.progress { height: 6px; background: var(--sand); border-radius: 99px; overflow: hidden; margin: 24px 0; }
.progress i { display: block; height: 100%; width: 100%; background: var(--coral); transform-origin: left; animation: progress 2s linear both; }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Forms ---------- */
.form-card { background: var(--paper); border-radius: 28px; box-shadow: var(--shadow); padding: clamp(24px, 4vw, 44px); }
.field { display: grid; gap: 8px; margin-bottom: 22px; }
.field label, .field .label { font-weight: 800; font-size: 16px; }
.field .hint { font-size: 14.5px; color: var(--ink-soft); }
input[type="url"], input[type="text"], input[type="email"], input[type="password"], select, textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: var(--cream);
  border: 2px solid var(--line); border-radius: 14px; padding: 14px 16px; min-height: 54px;
  transition: border-color .15s, background .15s;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; cursor: pointer; margin-bottom: 24px; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--coral-deep); flex: none; }
.radio-list { display: grid; gap: 10px; }
.radio-list label { display: flex; gap: 12px; align-items: center; background: var(--cream); border-radius: 12px; padding: 12px 14px; cursor: pointer; font-weight: 600; }
.radio-list input { accent-color: var(--coral-deep); width: 18px; height: 18px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 14px; padding: 14px 18px; margin-bottom: 22px; font-weight: 600; }
.alert-error { background: var(--coral-soft); color: #7a1f0b; }
.alert-ok { background: var(--mint-soft); color: #173f37; }
.dont-ask { margin-top: 28px; font-size: 15px; color: var(--ink-soft); }
.dont-ask ul { columns: 2; padding-left: 1.1em; margin: 8px 0 0; }

/* Add-flow checklist */
.checking { display: none; }
.checking.is-visible { display: block; }
.checklist { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 12px; }
.checklist li { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; color: var(--ink-faint); transition: color .3s; }
.checklist .mark { width: 28px; height: 28px; border-radius: 50%; background: var(--sand); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; flex: none; transition: background .3s, color .3s; }
.checklist li.is-ok { color: var(--ink); }
.checklist li.is-ok .mark { background: var(--mint); color: #fff; }
.checklist li.is-bad { color: var(--coral-deep); }
.checklist li.is-bad .mark { background: var(--coral-deep); color: #fff; }
.checklist li.is-wait .mark { background: var(--sun-soft); }
.result-in { text-align: center; padding: 10px 0; }
.result-in .big-heart { width: 84px; height: 84px; margin: 6px auto 12px; display: block; animation: pop .7s var(--ease) both; }
.result-in h2 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 6px; }

/* ---------- Content pages ---------- */
.page-hero { padding: clamp(36px, 7vw, 88px) 0 clamp(28px, 4vw, 48px); }
.page-hero h1 { font-size: clamp(42px, 7vw, 84px); max-width: 14ch; }
.page-hero p { font-size: clamp(19px, 2vw, 23px); color: var(--ink-soft); max-width: 46ch; }
.prose { padding-bottom: clamp(64px, 9vw, 120px); }
.prose h2 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: #3b3631; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose .callout { background: var(--paper); border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow); margin: 28px 0; }
.prose .callout p:last-child { margin: 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; margin: 18px 0; }
.prose th, .prose td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; }
.legal-note { background: var(--sun-soft); border-radius: var(--radius-sm); padding: 14px 18px; font-size: 15px; margin-bottom: 28px; }

.simple-page { padding: clamp(48px, 9vw, 120px) 0; text-align: center; }
.simple-page h1 { font-size: clamp(40px, 7vw, 80px); margin-bottom: 18px; }
.simple-page p { font-size: 20px; color: var(--ink-soft); max-width: 46ch; margin-inline: auto; }
.simple-page .cta-row { justify-content: center; margin-top: 32px; }
.done-heart { width: 120px; height: 120px; margin: 0 auto 18px; display: block; animation: pop .8s var(--ease) both; }

.share-card { background: var(--coral-deep); color: #fff; border-radius: 28px; padding: clamp(28px, 5vw, 48px); text-align: left; max-width: 520px; margin: 36px auto 0; box-shadow: var(--shadow); }
.share-card .share-big { font-size: clamp(38px, 6vw, 58px); font-weight: 800; line-height: .98; letter-spacing: -0.04em; text-transform: uppercase; margin-bottom: 18px; }
.share-card .share-url { font-weight: 700; }
.share-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.share-status { min-height: 1.5em; font-size: 15px; color: var(--ink-soft); margin-top: 10px; }

.dev-banner { background: var(--night); color: var(--sun); text-align: center; font-size: 13px; font-weight: 700; padding: 6px 12px; letter-spacing: .04em; }
.dev-banner a { color: #fff; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .progress i { transform: none; }
}
.footer-motto { margin-top: 14px; font-weight: 700; color: var(--ink); }
.map-legend .lg0 { background: #f1e4d1; } .map-legend .lg1 { background: #ffd2c4; } .map-legend .lg2 { background: #ffad97; }
.map-legend .lg3 { background: #ff8467; } .map-legend .lg4 { background: #ff5a3c; } .map-legend .lg5 { background: #d63e1e; }
.us-map .pulse.d1 { animation-delay: -.5s; } .us-map .pulse.d2 { animation-delay: -1s; } .us-map .pulse.d3 { animation-delay: -1.5s; }
.us-map .pulse.d4 { animation-delay: -2s; } .us-map .pulse.d5 { animation-delay: -2.5s; } .us-map .pulse.d6 { animation-delay: -3s; }
.us-map .pulse.d7 { animation-delay: -3.5s; } .us-map .pulse.d8 { animation-delay: -4s; } .us-map .pulse.d9 { animation-delay: -4.5s; }
.label-mobile { display: none; }
@media (max-width: 860px), (hover: none) and (pointer: coarse) {
  .label-desktop { display: none; }
  .label-mobile { display: inline; }
}
.result-actions .trust { display: none; }
@media (max-width: 860px), (hover: none) and (pointer: coarse) { .result-actions .trust { display: block; text-align: left; } }
.fieldset-plain { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; } .fieldset-plain legend { padding: 0; margin-bottom: 10px; font-weight: 800; }
.challenge-band .eyebrow { color: var(--ink); }
.challenge-band .big5 { display: flex; flex-direction: column; align-items: center; }
.challenge-band .big5 .bucks { font-size: clamp(32px, 4.4vw, 56px); letter-spacing: -0.03em; line-height: 1; color: var(--coral-deep); margin-top: 6px; }
.result-heart { color: var(--coral-text); }
.return-card.is-visible { margin-bottom: 36px; }
.done-heart, .result-in .big-heart { color: var(--coral); }
@media (max-width: 480px) { .result-actions .btn-giant { font-size: 16px; letter-spacing: .04em; padding: 18px 20px; } }
.result-label { margin: 0; line-height: 1.3; letter-spacing: .16em; font-size: 14px; }
.eyebrow-h1 { line-height: 1.3; letter-spacing: .14em; max-width: none; }
/* Pause motion stops the looping decoration only; one-shot reveals still finish. */
.motion-paused .hero-art circle, .motion-paused .us-map .pulse, .motion-paused .shuffle-dots i { animation-play-state: paused !important; }
.motion-row { margin: -18px 0 24px; font-size: 15px; }
.footer-motion { font-size: 14px; color: var(--ink-soft); }
.redirect-note { color: var(--ink-soft); font-size: 15px; margin: 0 0 16px; }
[hidden] { display: none !important; }
.wordmark strong, .site-nav a { white-space: nowrap; }
@media (max-width: 400px) {
  .logo-mark { width: 32px; height: 32px; }
  .wordmark strong { font-size: 15px; }
  .wordmark span { font-size: 13px; }
  .site-nav { font-size: 15px; }
  .hero h1 { font-size: 40px; }
  .return-card .cta-row .btn { width: 100%; }
  .return-card form { flex: 1 1 100%; }
}
@media (max-width: 400px) {
  .btn-giant { font-size: 16px; padding: 18px 22px; letter-spacing: .04em; min-height: 60px; }
  .hero-note { flex-direction: column; gap: 4px; }
  .hero-note span::before { content: "✓"; margin-right: 8px; }
  .hero-note span:first-child::before { content: "✓"; }
}
.result-copy .result-id { color: var(--ink); }
.full-form { margin-top: 14px; font-size: 15px; }
.after-full { background: var(--sun-soft); border-radius: 12px; padding: 10px 14px; font-weight: 600; margin-bottom: 18px; }
.return-card .full-form, .return-card [data-return-action] { align-self: center; }
