/*
 * Yawn & Pawn site. The home page follows the design the owner approved on 2026-10-29; the legal pages share its
 * header and footer around a readable article column. Colours are the app's tokens (docs/DESIGN.md); the hero and the
 * privacy band stay dark in both modes. Motion animates only transform and opacity, runs only when the reader has not
 * asked for reduced motion, and never hides content when JavaScript is off (assets/js/site.js adds the classes).
 */

/* ---------- Tokens ---------- */
:root {
  --bg: #FAF8F5;
  --surface: #FFFFFF;
  --outline: #E4DED6;
  --text: #1A1714;
  --text-2: #5E5850;
  --accent: #D96F14;
  --accent-text: #A8520A;
  --accent-text-hover: #7A3A06;
  --success: #0F5534;
  --badge: #FBE6D0;
  --track: #F1EEE9;
  --tile: #F1EEE9;
  --tile-edge: rgba(26, 23, 20, 0.08);
  --band: #1A1714;
  --band-border: transparent;
  --cta-bg: linear-gradient(180deg, #F7ECDF 0%, #FBE1C4 100%);
  --cta-btn: #D96F14;
  --cta-shimmer: rgba(255, 255, 255, 0.55);
  --on-accent: #1A1004;
  --focus: #A8520A;
  --card-shadow: 0 2px 4px rgba(26, 23, 20, 0.06), 0 14px 32px rgba(26, 23, 20, 0.10);
  --shot-shadow: 0 2px 4px rgba(26, 23, 20, 0.12), 0 18px 40px rgba(26, 23, 20, 0.16);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
  --font: Geist, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111214;
    --surface: #1A1B1E;
    --outline: #2E3035;
    --text: #F2EFEA;
    --text-2: #A9A39A;
    --accent: #F5A04E;
    --accent-text: #F5A04E;
    --accent-text-hover: #FFD9A8;
    --success: #8BE0B2;
    --badge: #3A2614;
    --track: #26282C;
    --tile: #2E3035;
    --tile-edge: transparent;
    --band: #1F1A17;
    --band-border: #2E3035;
    --cta-bg: linear-gradient(180deg, #2A1E15 0%, #3A2112 100%);
    --cta-btn: #F5A04E;
    --cta-shimmer: rgba(245, 160, 78, 0.14);
    --focus: #F5A04E;
    --card-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 14px 32px rgba(0, 0, 0, 0.4);
    --shot-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 18px 40px rgba(0, 0, 0, 0.5);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-text); transition: color 0.2s ease; }
a:hover { color: var(--accent-text-hover); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  padding: 12px 18px; border-radius: 10px;
  background: #F5A04E; color: #1A1004; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #1A1004; outline-color: #FFD9A8; }

/* ---------- Header and nav (every page) ---------- */
.site-header {
  --focus: #FFD9A8;
  position: relative;
  overflow: hidden;
  color: #F2EFEA;
  background: linear-gradient(180deg, #1F1A17 0%, #3A2112 55%, #8A3D0E 100%);
}
.site-header--compact { background: linear-gradient(100deg, #1F1A17 0%, #3A2112 60%, #8A3D0E 100%); }

.site-nav {
  position: relative; z-index: 1;
  max-width: 1120px; margin: 0 auto; padding: 20px 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.site-header--compact .site-nav { padding-top: 14px; padding-bottom: 14px; }

.brand {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
  color: #F2EFEA; text-decoration: none; font-weight: 600; font-size: 18px;
}
.brand:hover { color: #FFFFFF; }
.logo-mark { display: block; flex: none; border-radius: 9px; }
.logo-bells { transform-box: view-box; transform-origin: 256px 200px; }

.nav-links { display: flex; flex-wrap: wrap; gap: 0 24px; font-size: 15px; }
.nav-links a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  color: #E9E2D8; text-decoration: none;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; border-radius: 1px;
  background: #F5A04E; transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease-out);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #FFFFFF; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
  border-radius: 26px; font-weight: 600; font-size: 17px; text-decoration: none; text-align: center;
  transition: transform 0.2s var(--ease-out), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); transition-duration: 0.08s; }
.btn--sun { background: #F5A04E; color: #1A1004; }
.btn--sun:hover { background: #FFB264; color: #1A1004; }
.btn--ghost { border: 1.5px solid #8A7F72; color: #F2EFEA; font-weight: 500; }
.btn--ghost:hover { border-color: #F2EFEA; background-color: rgba(242, 239, 234, 0.08); color: #FFFFFF; }
.btn--accent { background: var(--cta-btn); color: var(--on-accent); }
.btn--accent:hover { color: var(--on-accent); filter: brightness(1.06); }
.btn--band { min-height: 48px; padding: 0 24px; border-radius: 24px; font-size: 16px; }

/* ---------- Hero (home) ---------- */
.hero-sky {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 70% at 60% 112%, rgba(245, 160, 78, 0.42) 0%, rgba(245, 160, 78, 0) 62%);
}
.hero-sky::before {
  /* A few stars that fade as the sky turns to dawn. Their final state is gone. */
  content: ""; position: absolute; inset: 0; opacity: 0;
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, #F2EFEA 50%, transparent 51%),
    radial-gradient(1px 1px at 27% 9%, #F2EFEA 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 24%, #FFE3B8 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 12%, #F2EFEA 50%, transparent 51%),
    radial-gradient(2px 2px at 78% 20%, #FFE3B8 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 8%, #F2EFEA 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 6% 40%, #F2EFEA 50%, transparent 51%),
    radial-gradient(1px 1px at 93% 36%, #F2EFEA 50%, transparent 51%);
}

.hero {
  position: relative; z-index: 1;
  max-width: 1120px; margin: 0 auto; padding: 40px 24px 80px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 48px;
}
.hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-copy > * { margin: 0; }
.hero-eyebrow { font-size: 15px; font-weight: 500; letter-spacing: 0.4px; color: #F5A04E; }
.hero-title { font-size: clamp(40px, 6vw, 68px); line-height: 1.04; font-weight: 600; letter-spacing: -1.5px; }
.hero-free { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.25; font-weight: 400; color: #FFD9A8; }
.hero-lead { max-width: 520px; font-size: 18px; line-height: 1.55; color: #D9D0C4; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.hero-note { font-size: 14px; color: #BFB4A6; }

.hero-phone-wrap {
  position: relative; flex: 0 1 340px; min-width: 0; margin: 0 auto;
  display: flex; justify-content: center;
}
.hero-glow {
  position: absolute; left: 50%; top: 50%; width: 420px; height: 420px; max-width: 120vw; pointer-events: none;
  border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(245, 160, 78, 0.5) 0%, rgba(245, 160, 78, 0.18) 40%, rgba(245, 160, 78, 0) 68%);
}
.hero-float { position: relative; width: 280px; max-width: 100%; }

.phone { background: #111214; }
.phone--hero {
  width: 100%; padding: 10px; border-radius: 44px;
  box-shadow: 0 0 0 1px rgba(242, 239, 234, 0.10), 0 24px 70px rgba(0, 0, 0, 0.45), 0 0 90px rgba(245, 160, 78, 0.30);
}
.phone-screens { position: relative; overflow: hidden; border-radius: 34px; aspect-ratio: 9 / 20; }
.phone-screens img { display: block; width: 100%; height: 100%; object-fit: cover; }
.screen--2, .screen--3 { position: absolute; inset: 0; opacity: 0; }

/* ---------- Sections (home) ---------- */
.section { max-width: 1120px; margin: 0 auto; padding: 72px 24px 24px; }
.section--stack { display: flex; flex-direction: column; gap: 40px; }
#how { padding-top: 96px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.section-head--wide { max-width: 680px; }
.section-title { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; font-weight: 600; letter-spacing: -0.8px; }
.section-lead { margin: 0; font-size: 18px; line-height: 1.55; color: var(--text-2); }

.grid { display: grid; }
.grid--steps { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.grid--checks { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.grid--features { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 32px 40px; }

.card {
  position: relative;
  background: var(--surface); border: 1px solid var(--outline); border-radius: 24px; padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.card-title { margin: 0; font-size: 21px; font-weight: 600; line-height: 1.3; }
.card-body { margin: 0; font-size: 16px; line-height: 1.55; color: var(--text-2); }

.step-num {
  width: 44px; height: 44px; border-radius: 22px; background: var(--badge); color: var(--accent-text);
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 18px;
}

/* Prices */
.section--split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.prices-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.prices-note { margin: 0; font-size: 16px; line-height: 1.55; color: var(--text-2); }
.text-link { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 500; text-underline-offset: 3px; }

.ladder {
  flex: 1 1 420px; min-width: 0;
  background: var(--surface); border: 1px solid var(--outline); border-radius: 28px; padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.ladder-caption { margin: 0; font-size: 14px; font-weight: 500; color: var(--text-2); }
.ladder-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ladder-row, .ladder-up { display: flex; align-items: center; gap: 14px; }
.ladder-label { width: 92px; flex: none; font-size: 15px; color: var(--text-2); }
.ladder-track { display: block; flex: 1 1 auto; min-width: 0; height: 32px; background: var(--track); border-radius: 16px; overflow: hidden; }
.ladder-bar { display: block; height: 100%; border-radius: 16px; transform-origin: left center; }
.ladder-bar--low { background: #F5A04E; }
.ladder-bar--mid { background: #D96F14; }
.ladder-bar--high { background: #B4472F; }
.ladder-price { width: 56px; flex: none; text-align: right; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ladder-up { padding-top: 6px; border-top: 1px solid var(--outline); margin-top: 4px; }
.ladder-up-label { font-weight: 600; color: var(--success); }
.ladder-up-text { flex: 1 1 auto; min-width: 0; font-size: 15px; color: var(--text-2); }
.ladder-up-price { color: var(--success); }

/* Checks, with a small looping drawing each */
.check { padding: 24px; gap: 10px; }
.check .card-title { font-size: 19px; }
.check .card-body { font-size: 15px; }
.card::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  box-shadow: var(--card-shadow); opacity: 0; transition: opacity 0.25s ease;
}
.check { transition: transform 0.25s var(--ease-out); }
.check:hover { transform: translateY(-4px); }
.check:hover::after { opacity: 1; }

.check-art { height: 56px; display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }

.art-math { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.25; }
.art-math > span { display: block; height: 1.25em; }
.roller { display: inline-block; width: 2.2ch; height: 1.25em; overflow: hidden; color: var(--accent-text); }
.roller-strip { display: flex; flex-direction: column; transform: translateY(-3.75em); }
.roller-strip span { display: block; height: 1.25em; line-height: 1.25em; }

.art-word span {
  width: 30px; height: 34px; border-radius: 8px; background: var(--badge); color: var(--accent-text);
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 18px;
}

/* Memory: without motion, a still grid with the pattern numbered; with motion, the tiles light in order ("watch"),
   pause, then light again with a tap ("your turn"). */
.art-memory { display: grid; grid-template-columns: repeat(3, 16px); grid-auto-rows: 16px; gap: 4px; align-content: center; }
.art-memory span {
  position: relative; width: 16px; height: 16px; border-radius: 4px;
  background: var(--tile); box-shadow: inset 0 0 0 1px var(--tile-edge);
  font-size: 10px; font-weight: 600; line-height: 16px; text-align: center; color: #1A1004;
}
.art-memory .lit { background: #F5A04E; box-shadow: none; }
.art-memory span::before, .art-memory span::after { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; }
.art-memory span::before { background: #F5A04E; }
.art-memory span::after { background: #D96F14; }

.art-scan { position: relative; width: 72px; height: 56px; border-radius: 6px; overflow: hidden; }
.scan-code {
  position: absolute; inset: 6px; opacity: 0.85;
  background: repeating-linear-gradient(90deg, var(--text) 0 2px, transparent 2px 4px, var(--text) 4px 5px, transparent 5px 8px, var(--text) 8px 11px, transparent 11px 13px);
}
.scan-line {
  position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 1px;
  background: #D96F14; box-shadow: 0 0 8px #F5A04E; transform: translateY(27px);
}

/* The success screen in the hero phone: a live burst of confetti over its "days in a row" card, once each time the
   screen shows (in step with .screen--3). Without motion the pieces stay hidden: the frame has confetti baked in. */
.screen-fx { position: absolute; left: 50%; top: 31%; width: 0; height: 0; pointer-events: none; }
.screen-fx i {
  position: absolute; left: -4px; top: -3px; width: 9px; height: 5px; border-radius: 1px;
  background: var(--c); opacity: 0;
}
.screen-fx i:nth-child(3n) { width: 6px; height: 6px; border-radius: 50%; }

/* Screens */
.shots { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; }
.shot { margin: 0; width: 260px; max-width: 100%; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.phone--shot {
  width: 100%; padding: 9px; border-radius: 40px; box-shadow: var(--shot-shadow);
  transition: transform 0.35s var(--ease-out);
}
.phone--shot img { display: block; width: 100%; aspect-ratio: 9 / 20; object-fit: cover; border-radius: 31px; }
.shot:hover .phone--shot { transform: translateY(-8px); }
.shot figcaption { font-size: 15px; color: var(--text-2); text-align: center; }

/* Features */
.feature { display: flex; gap: 16px; }
.feature-dot { position: relative; width: 12px; height: 12px; flex: none; margin-top: 8px; border-radius: 6px; background: var(--accent); }
.feature-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; }
.feature-text { display: flex; flex-direction: column; gap: 6px; }
.feature-title { margin: 0; font-size: 19px; font-weight: 600; }

/* Privacy band */
.band {
  --focus: #FFD9A8;
  background: var(--band); color: #F2EFEA; border: 1px solid var(--band-border); border-radius: 32px;
  padding: clamp(28px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center;
}
.band-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.band-title { margin: 0; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; font-weight: 600; }
.band-body { margin: 0; font-size: 17px; line-height: 1.55; color: #D9D0C4; }

/* Questions */
.section--faq { max-width: 820px; padding-top: 88px; display: flex; flex-direction: column; gap: 28px; }
.faq { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid var(--outline); }
.faq-item:last-child { border-bottom: 1px solid var(--outline); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 44px; padding: 22px 0; cursor: pointer; list-style: none; border-radius: 6px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 6px;
  border-right: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text);
  transform: translateY(-3px) rotate(45deg); transition: transform 0.3s var(--ease-out);
}
.faq-item[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq-item summary:hover .faq-q { color: var(--accent-text); }
.faq-q { margin: 0; font-size: 19px; font-weight: 600; transition: color 0.2s ease; }
.faq-a { margin: 0; padding: 0 32px 22px 0; font-size: 16px; line-height: 1.6; color: var(--text-2); }

/* Join the test */
.section--test { padding-bottom: 96px; }
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--cta-bg); border-radius: 32px; padding: clamp(32px, 6vw, 64px);
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
}
.cta::before {
  /* A soft band of light that crosses the card now and then, like the first sun on a wall. */
  content: ""; position: absolute; z-index: -1; top: -50%; left: 0; width: 45%; height: 200%; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, var(--cta-shimmer) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-160%) rotate(14deg);
}
.cta::after {
  content: ""; position: absolute; z-index: -1; left: 50%; bottom: -60%; width: 120%; height: 100%; pointer-events: none;
  border-radius: 50%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(245, 160, 78, 0.28), rgba(245, 160, 78, 0));
}
.cta-lead { max-width: 560px; }
.cta .btn { flex-wrap: wrap; column-gap: 0.3em; max-width: 100%; }
.nowrap { white-space: nowrap; }

/* ---------- Footer (every page) ---------- */
.site-footer { border-top: 1px solid var(--outline); }
.footer-inner {
  max-width: 1120px; margin: 0 auto; padding: 40px 24px 56px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px;
}
.footer-about { display: flex; flex-direction: column; gap: 8px; }
.footer-name { font-weight: 600; font-size: 17px; }
.footer-contact { font-size: 15px; color: var(--text-2); overflow-wrap: anywhere; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 24px; font-size: 15px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-links a[aria-current="page"] { color: var(--text); font-weight: 600; text-decoration: none; }

/* ---------- Article pages (privacy, terms, payments, support) ---------- */
.article {
  max-width: 768px; margin: 0 auto; padding: 56px 24px 88px;
  font-size: 18px; line-height: 1.65; overflow-wrap: break-word;
}
.article > :first-child { margin-top: 0; }
.article h1 { margin: 0 0 24px; font-size: clamp(34px, 5vw, 48px); line-height: 1.1; font-weight: 600; letter-spacing: -1px; }
.article h2 { margin: 52px 0 12px; font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -0.3px; }
.article h3 { margin: 32px 0 8px; font-size: 20px; line-height: 1.3; font-weight: 600; }
.article p { margin: 0 0 18px; }
.article ul, .article ol { margin: 0 0 18px; padding-left: 1.4em; }
.article li { margin: 6px 0; }
.article li::marker { color: var(--accent); }
.article strong { font-weight: 600; }
.article a { text-underline-offset: 3px; overflow-wrap: anywhere; }
.article hr { border: 0; border-top: 1px solid var(--outline); margin: 40px 0; }
.article blockquote { margin: 0 0 18px; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); color: var(--text-2); }
.article code { font-size: 0.9em; padding: 0.1em 0.35em; border-radius: 6px; background: var(--track); }
.article table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 0 0 18px; font-size: 16px; }
.article th, .article td { padding: 10px 14px; border: 1px solid var(--outline); text-align: left; vertical-align: top; }
.article th { background: var(--surface); font-weight: 600; }

/* ---------- Small screens ---------- */
@media (max-width: 480px) {
  .site-nav { gap: 4px 16px; }
  .nav-links { gap: 0 18px; }
  .hero { padding-top: 24px; padding-bottom: 64px; }
  .card, .ladder { padding: 22px; }
  .ladder-label { width: 82px; }
  .ladder-price { width: 44px; }
  .ladder-row, .ladder-up { gap: 10px; }
  .article { padding-top: 40px; font-size: 17px; }
  .cta { padding: 32px 20px; }
  .cta .btn { padding: 8px 18px; font-size: 16px; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Logo: the clock's bells give a little ring every few seconds. */
  .logo-bells { animation: bells-ring 7s ease-in-out 2.2s infinite; }

  /* Hero: night turns to dawn, the stars fade, the sun glow rises, the words arrive in turn, the phone floats. */
  .hero-sky { animation: fade-in 5s ease-out 0.2s backwards; }
  .hero-sky::before { animation: stars-fade 6s ease-in backwards; }
  .hero-glow { animation: sun-rise 2.6s var(--ease-out) 0.2s backwards; }
  .hero-eyebrow { animation: rise-in 0.8s var(--ease-out) 0.15s backwards; }
  .hero-title { animation: rise-in 0.9s var(--ease-out) 0.3s backwards; }
  .hero-lead { animation: rise-in 0.9s var(--ease-out) 0.55s backwards; }
  .hero-free { animation: dawn-in 1.4s ease-out 1s backwards; }
  .hero-actions { animation: rise-in 0.8s var(--ease-out) 1.35s backwards; }
  .hero-note { animation: fade-in 0.8s ease-out 1.55s backwards; }
  .phone--hero { animation: phone-in 1.1s var(--ease-out) 0.4s backwards; }
  .hero-float { animation: float 7s ease-in-out 1.6s infinite; }
  .screen--2 { animation: screen-2 12s ease-in-out 3s infinite; }
  .screen--3 { animation: screen-3 12s ease-in-out 3s infinite; }

  /* Check drawings. */
  .roller-strip { animation: roller 6s var(--ease-out) infinite; }
  .art-word span { animation: unscramble 5s ease-in-out infinite; }
  .art-memory .lit { background: var(--tile); box-shadow: inset 0 0 0 1px var(--tile-edge); color: transparent; }
  .art-memory .lit::before { animation: mem-watch 6s ease-in-out calc(var(--t) * 0.5s) infinite; }
  .art-memory .lit::after { animation: mem-turn 6s ease-out calc(var(--t) * 0.5s) infinite; }
  .scan-line { animation: scan 2.4s ease-in-out infinite alternate; }
  .screen-fx i { animation: fx-burst 12s cubic-bezier(0.15, 0.7, 0.3, 1) 3s infinite; }
  .screen-fx i.fx-late { animation-delay: 3.9s; }

  /* The test card's light crosses now and then; its sunrise glow breathes. */
  .cta::before { animation: shimmer 8s ease-in-out 1s infinite; }
  .cta::after { animation: breathe 6s ease-in-out infinite; }

  /* Article pages arrive softly. */
  .article { animation: rise-in 0.6s var(--ease-out) backwards; }

  /* Scroll reveals: only once site.js has set .reveal-ready, so nothing is hidden without JavaScript. */
  .reveal-ready [data-reveal]:not(.is-in) { opacity: 0; }
  .reveal-ready [data-reveal].is-in { animation: rise-in 0.75s var(--ease-out) calc(var(--ri, 0) * 90ms) backwards; }
  .reveal-ready .step:not(.is-in) .step-num { opacity: 0; }
  .reveal-ready .step.is-in .step-num { animation: pop-in 0.6s var(--ease-pop) calc(var(--ri, 0) * 160ms + 250ms) backwards; }
  .reveal-ready .ladder:not(.is-in) .ladder-bar { transform: scaleX(0); }
  .reveal-ready .ladder.is-in .ladder-bar { animation: grow 0.7s var(--ease-out) calc(0.3s + var(--i) * 0.18s) backwards; }
  .reveal-ready .ladder:not(.is-in) .ladder-up { opacity: 0; }
  .reveal-ready .ladder.is-in .ladder-up { animation: pop-in 0.6s var(--ease-pop) 1.55s backwards; }
  .reveal-ready .feature.is-in .feature-dot { animation: dot-pulse 0.9s ease-out calc(var(--ri, 0) * 90ms + 0.35s); }
  .reveal-ready .feature.is-in .feature-dot::after { animation: dot-ring 1.1s ease-out calc(var(--ri, 0) * 90ms + 0.35s); }
  .faq-item[open] .faq-a { animation: faq-open 0.35s var(--ease-out); }
  .faq-item.is-closing .faq-a { opacity: 0; transform: translateY(-6px); transition: opacity 0.2s ease, transform 0.2s ease; }
  .shot[data-parallax] { transform: translateY(calc(var(--p, 0) * -14px)) rotate(calc(var(--p, 0) * 1.4deg)); }
  .shot[data-parallax]:nth-child(2) { transform: translateY(calc(var(--p, 0) * 10px)) rotate(calc(var(--p, 0) * -1deg)); }
}

@keyframes fade-in { from { opacity: 0; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(22px); } }
@keyframes dawn-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
@keyframes phone-in { from { opacity: 0; transform: translateY(40px) scale(0.96); } }
@keyframes pop-in { 0% { opacity: 0; transform: scale(0.4); } 70% { opacity: 1; } }
@keyframes stars-fade { from { opacity: 0.9; } }
@keyframes sun-rise { from { opacity: 0; transform: translate(-50%, -10%) scale(0.7); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes bells-ring {
  0%, 84%, 100% { transform: rotate(0); }
  86% { transform: rotate(-11deg); }
  88% { transform: rotate(10deg); }
  90% { transform: rotate(-8deg); }
  92% { transform: rotate(6deg); }
  94% { transform: rotate(-3deg); }
  96% { transform: rotate(1deg); }
}
@keyframes screen-2 { 0%, 28% { opacity: 0; } 34%, 62% { opacity: 1; } 68%, 100% { opacity: 0; } }
@keyframes screen-3 { 0%, 62% { opacity: 0; } 68%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes roller {
  0%, 14% { transform: translateY(0); }
  22%, 34% { transform: translateY(-1.25em); }
  42%, 54% { transform: translateY(-2.5em); }
  62%, 100% { transform: translateY(-3.75em); }
}
@keyframes unscramble {
  0%, 22% { transform: translateX(calc(var(--from) * 36px)); }
  36% { transform: translate(calc(var(--from) * 18px), calc(var(--from) * -4px)); }
  50%, 86% { transform: translate(0, 0); }
  100% { transform: translateX(calc(var(--from) * 36px)); }
}
@keyframes mem-watch { 0%, 13%, 100% { opacity: 0; } 3%, 9% { opacity: 1; } }
@keyframes mem-turn {
  0%, 50% { opacity: 0; transform: scale(0.6); }
  53% { opacity: 1; transform: scale(1.12); }
  57% { opacity: 1; transform: scale(1); }
  63%, 100% { opacity: 0; transform: scale(1); }
}
@keyframes fx-burst {
  0%, 68% { opacity: 0; transform: translate(0, 0) rotate(0) scale(0.3); }
  69% { opacity: 1; }
  75% { opacity: 1; transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1); }
  88% { opacity: 0.9; }
  93%, 100% { opacity: 0; transform: translate(calc(var(--x) * 1.15), calc(var(--y) + 120px)) rotate(calc(var(--r) * 2)) scale(0.9); }
}
@keyframes scan { from { transform: translateY(6px); } to { transform: translateY(48px); } }
@keyframes shimmer { 0% { transform: translateX(-160%) rotate(14deg); } 45%, 100% { transform: translateX(330%) rotate(14deg); } }
@keyframes breathe { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes dot-pulse { 0%, 100% { transform: scale(1); } 35% { transform: scale(1.6); } }
@keyframes dot-ring { from { opacity: 0.8; transform: scale(1); } to { opacity: 0; transform: scale(3.2); } }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } }

/* Confetti (site.js): small pieces in the brand colours, removed when they land. */
.confetti { position: fixed; z-index: 50; width: 0; height: 0; pointer-events: none; }
.confetti i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 2px; }

@media print {
  [data-reveal] { opacity: 1 !important; animation: none !important; }
  .site-header, .hero-glow, .hero-sky { background: none !important; color: #000 !important; }
}
