
/* ── Reset & Tokens ─────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  /* ── Forest & Rust palette (synced from Scroll-Books-Flutter/lib/core/theme.dart) ── */
  --cream:       #EFE7C7;   /* primary surface */
  --parchment:   #DDE6D5;   /* surface alt = Flutter forestWash */
  --paper:       #D5DCC8;   /* hairline / divider */
  --tomato:      #2E5C2A;   /* primary brand = Flutter forest (legacy var name kept) */
  --tomato-pale: #F0DAD0;   /* pale accent = Flutter siennaWash */
  --amber:       #ED8454;   /* accent = Flutter coral (legacy var name kept) */
  --ink:         #2C2118;
  --ink-mid:     #5C4A3A;
  --ink-light:   #8C7B6B;

  /* Typography tokens */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Lora', serif;
  --font-mono: 'Source Code Pro', monospace;
  --font-ui: 'Nunito', sans-serif;

  /* Extended colour tokens */
  --tomato-hover:    #1F3F1C;                  /* Flutter forestDark */
  --phone-surface:   #F5EEDA;                  /* slightly lighter than --cream */
  --phone-header:    #EBE3CA;                  /* slightly darker than --phone-surface */
  --phone-border:    #D9CFAF;                  /* divider on phone screen */
  --tomato-tint-sm:  rgba(46, 92, 42, 0.07);   /* forest @ 7% */
  --tomato-tint-md:  rgba(46, 92, 42, 0.13);   /* forest @ 13% */
  --nav-bg:          rgba(239, 231, 199, 0.92);/* cream @ 92% */

  /* Cream-on-dark palette (used on forest/ink backgrounds) — RGB matches new --cream */
  --cream-faint:     rgba(239, 231, 199, 0.10);
  --cream-glow:      rgba(239, 231, 199, 0.18);
  --cream-dim:       rgba(239, 231, 199, 0.35);
  --cream-sep:       rgba(239, 231, 199, 0.40);
  --cream-half:      rgba(239, 231, 199, 0.50);
  --cream-bright:    rgba(239, 231, 199, 0.60);
  --cream-muted:     rgba(239, 231, 199, 0.82);

  /* Ink shadow palette */
  --shadow-xs:       rgba(44, 33, 24, 0.06);
  --shadow-sm:       rgba(44, 33, 24, 0.12);
  --shadow-md:       rgba(44, 33, 24, 0.18);
  --shadow-lg:       rgba(44, 33, 24, 0.22);
  --shadow-xl:       rgba(44, 33, 24, 0.32);

  /* Soft pale variant for italic emphasis on forest/ink backgrounds = Flutter coralLight */
  --cream-warm:      #FAD9C5;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Lora', serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.028; pointer-events: none; z-index: 9000; mix-blend-mode: multiply;
}

/* ── Animations ─────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes floatPhone {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}
@keyframes scrollText {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes passageSlideOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-32px); }
}
@keyframes passageSlideIn {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes calloutFadeIn {
  from { opacity: 0; transform: translateX(10px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%  { transform: translateX(-6px); }
  40%  { transform: translateX( 6px); }
  60%  { transform: translateX(-4px); }
  80%  { transform: translateX( 4px); }
}
@keyframes streakBump {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.22); color: var(--tomato); }
  60%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}
/* .reveal stays invisible until IntersectionObserver adds .is-visible */
.reveal { opacity: 0; }
.reveal.is-visible { animation: fadeUp 0.8s cubic-bezier(0.16,1,0.3,1) forwards; }

/* Stagger delays — active once .is-visible is applied */
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.15s; }
.d3 { animation-delay: 0.25s; }
.d4 { animation-delay: 0.38s; }
.d5 { animation-delay: 0.50s; }
.d6 { animation-delay: 0.62s; }

/* ── Nav ─────────────────────────────────────────── */
nav[aria-label="Main"] {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 56px;
  background: var(--tomato);
  color: var(--cream);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-logo .nav-scroll { font-style: italic; }
.nav-logo .nav-dot { color: var(--amber); margin: 0 1px; }
.nav-logo .nav-books { font-weight: 400; }


/* ── Hero ────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--tomato);
  color: var(--cream);
  min-height: 85vh;
  padding: 80px 56px 120px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  overflow: hidden;
}

.hero-left { position: relative; z-index: 2; max-width: 720px; }

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--cream-muted);
  margin-bottom: 32px;
}

.hero-h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(56px, 8vw, 128px);
  letter-spacing: -0.02em;
  color: var(--cream);
  line-height: 0.95;
  margin: 0 0 28px;
}
.hero-h1 em { font-style: italic; color: var(--cream-warm); }

.hero-body {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.5;
  color: var(--cream-muted);
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }

/* Store badges */
.store-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-family: var(--font-ui);
  opacity: 0.95;
  cursor: not-allowed;
  transition: transform 160ms ease, opacity 160ms ease;
}
.store-badge:hover { transform: translateY(-1px); opacity: 1; }
.store-badge-pre { font-size: 10px; opacity: 0.7; letter-spacing: 0.04em; text-transform: uppercase; }
.store-badge-name { font-size: 16px; font-weight: 700; }

.hero-proof {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cream-bright);
  letter-spacing: 0.04em;
}
.hero-proof-bar { display: inline-block; width: 3px; height: 14px; background: var(--amber); }

/* Tilted book-cover stack on right edge */
.hero-stack {
  position: relative;
  height: 540px;
  z-index: 1;
}
.hero-cover {
  position: absolute;
  width: clamp(180px, 18vw, 240px);
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  object-fit: cover;
  background: var(--parchment);
  box-shadow: -8px 8px 0 var(--shadow-md), -16px 16px 32px var(--shadow-lg);
}

.hero-cover--p1 { transform: rotate(-7deg); top:  20px; right: 220px; }
.hero-cover--p2 { transform: rotate( 4deg); top: 110px; right:  80px; }
.hero-cover--p3 { transform: rotate(-3deg); top: 240px; right: 180px; }
.hero-cover--p4 { transform: rotate( 8deg); top: 320px; right:  40px; }

/* ── Phone Moment Section ────────────────────────── */
.phone-moment {
  background: var(--tomato);
  color: var(--cream);
  padding: 140px 56px;
  position: relative;
  overflow: hidden;
}
.phone-moment::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 65% 50%, rgba(255, 231, 199, 0.18) 0%, transparent 55%);
  pointer-events: none;
}
.phone-moment-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 80px;
  align-items: center;
}
.phone-moment-text { max-width: 520px; }
.phone-moment-heading {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 6vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin: 16px 0 24px;
}
.phone-moment-heading em { font-style: italic; color: var(--cream-warm); font-weight: 900; }
.phone-moment-sub {
  font-family: var(--font-ui);
  font-size: 18px;
  line-height: 1.55;
  color: var(--cream-muted);
  max-width: 460px;
}

/* Stage holds the phone + callouts. Group is tilted +14° to match
   the live scrollbooks.app demo-area angle visually. */
.phone-moment-stage {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(14deg);
}

/* phone-float keeps its existing float animation from the source */
.phone-moment-stage .phone-float {
  position: relative;
  animation: floatPhone 6s ease-in-out infinite;
}

/* Phone wrapper + float */
.phone-float {
  animation: floatPhone 7s ease-in-out infinite;
  will-change: transform;
  filter: drop-shadow(0 40px 80px var(--shadow-lg))
          drop-shadow(0 12px 24px var(--shadow-sm));
}

.phone {
  width: 270px; height: 540px;
  background: var(--ink);
  border-radius: 42px;
  border: 2.5px solid rgba(255,255,255,0.1);
  overflow: hidden; position: relative;
}
.phone-notch {
  width: 80px; height: 26px; background: var(--ink);
  border-radius: 0 0 14px 14px;
  position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 10;
}

/* ── Phone Screen ────────────────────────────────── */
.phone-screen {
  width: 100%; height: 100%;
  background: var(--phone-surface);
  display: flex; flex-direction: column;
  position: relative;
}

/* Header */
.phone-header {
  background: var(--phone-header);
  padding: 34px 16px 10px;
  border-bottom: 1px solid var(--phone-border);
  flex-shrink: 0;
  transition: background 0.6s ease;
}
.phone-header-label {
  font-family: 'Source Code Pro', monospace;
  font-size: 7px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--ink-light);
  text-align: center; margin-bottom: 3px;
}
.phone-header-title {
  font-family: 'Playfair Display', serif;
  font-size: 16px; font-weight: 700; font-style: italic;
  color: var(--ink); text-align: center;
  transition: opacity 0.3s;
}

/* Progress bar */
.phone-bar-row {
  padding: 7px 16px 5px;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.phone-chapter-label {
  font-family: 'Source Code Pro', monospace;
  font-size: 7px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--ink-light);
  transition: opacity 0.3s;
}
.phone-progress {
  width: 64px; height: 2px;
  background: var(--phone-border); border-radius: 2px; overflow: hidden;
}
.phone-progress-fill {
  height: 100%; background: var(--tomato); border-radius: 2px;
  width: 100%;
  transform: scaleX(0.08);
  transform-origin: left;
  will-change: transform;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Passage stack */
.phone-passage-wrap {
  flex: 1; padding: 6px 14px 6px; position: relative; overflow: hidden;
}
.phone-passage {
  background: var(--cream); border-radius: 12px;
  padding: 14px; border-left: 3px solid var(--tomato);
  box-shadow: 0 2px 12px var(--shadow-xs);
  position: absolute; inset: 6px 14px 6px;
  display: flex; flex-direction: column; justify-content: flex-start;
}
.phone-passage.animating-out {
  animation: passageSlideOut 0.38s cubic-bezier(0.4,0,1,1) forwards;
}
.phone-passage.animating-in {
  animation: passageSlideIn 0.42s cubic-bezier(0.16,1,0.3,1) forwards;
}
.phone-passage-lead {
  font-family: 'Playfair Display', serif;
  font-size: 13px; font-weight: 700;
  color: var(--ink); line-height: 1.35;
  margin-bottom: 8px;
}
.phone-passage-text {
  font-family: 'Lora', serif; font-style: italic;
  font-size: 11.5px; line-height: 1.82; color: var(--ink-mid);
  flex: 1; overflow: hidden;
}
.phone-passage-footer {
  margin-top: 10px; padding-top: 8px;
  border-top: 1px solid var(--phone-header);
  display: flex; align-items: center; justify-content: space-between;
}
.phone-passage-source {
  font-family: 'Source Code Pro', monospace;
  font-size: 7px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--ink-light);
}
.phone-page-dot {
  display: flex; gap: 4px; align-items: center;
}
.dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--phone-border);
}
.dot.active { background: var(--tomato); }

/* Streak banner */
.phone-streak {
  margin: 4px 14px 14px;
  background: var(--tomato-tint-sm);
  border: 1.5px solid rgba(217,79,48,0.2);
  border-radius: 12px;
  padding: 8px 12px;
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
  transition: border-color 0.4s, background 0.4s;
  position: relative; overflow: hidden;
}
.phone-streak.bumping {
  border-color: rgba(217,79,48,0.55);
  background: var(--tomato-tint-md);
}
.phone-streak.bumping::after {
  content: '+1 day';
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-family: 'Source Code Pro', monospace;
  font-size: 8px; letter-spacing: 1px; color: var(--tomato);
  font-weight: 600;
  animation: calloutFadeIn 0.3s ease forwards;
}
.streak-emoji {
  font-size: 19px;
  display: inline-block;
  transition: transform 0.3s;
}
.streak-emoji.bump { animation: streakBump 0.6s cubic-bezier(0.16,1,0.3,1) forwards; }
.streak-num {
  font-family: 'Playfair Display', serif;
  font-size: 23px; font-weight: 900; color: var(--tomato); line-height: 1;
  transition: all 0.3s;
}
.streak-label {
  font-family: 'Source Code Pro', monospace;
  font-size: 7px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--ink-light);
  display: block; margin-top: 1px;
}

/* ── Shimmer overlay on header accent-colour swap ── */
.phone-header-accent {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.6s;
}

/* ── Marquee ─────────────────────────────────────── */
.marquee-wrap {
  background: var(--ink);
  padding: 18px 0;
  overflow: hidden;
  border-block: 1px solid rgba(255, 248, 240, 0.08);
}
.marquee-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: scrollText 48s linear infinite;
  width: max-content;
}
.marquee-item {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  color: var(--cream-muted);
  letter-spacing: 0.02em;
  position: relative;
  padding-right: 48px;
}
.marquee-item::after {
  content: '·';
  position: absolute;
  right: 0;
  color: var(--amber);
  font-size: 32px;
  line-height: 0.7;
  top: 4px;
}

/* ── Section Label (global utility) ─────────────── */
.section-label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--tomato); font-weight: 600;
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.section-label::before { content: ''; width: 24px; height: 1px; background: var(--tomato); }
.section-label--inv { color: var(--cream-bright); }
.section-label--inv::before { background: var(--cream-bright); }

/* ── How It Works ────────────────────────────────── */
.how {
  background: var(--parchment);
  padding: 120px 56px;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 80px;
  align-items: start;
}
.how-left { position: sticky; top: 100px; }
.how-heading {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.0;
  color: var(--ink);
  margin: 16px 0 0;
}
.how-heading em { font-style: italic; color: var(--tomato); }
.how-body {
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-mid);
  margin-top: 24px;
  max-width: 420px;
}
.how-right { display: flex; flex-direction: column; gap: 56px; }
.step { display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: start; }
.step-num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 56px;
  color: var(--tomato);
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.step-num::before { content: '0'; }
.step-content {}
.step-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--ink);
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
}
.step-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  height: 2px; width: 32px;
  background: var(--tomato);
}
.step-text {
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-mid);
  margin-top: 14px;
  max-width: 480px;
}

/* ── Final CTA ───────────────────────────────────── */
.download {
  background: var(--ink);
  color: var(--cream);
  padding: 140px 56px;
  text-align: center;
}
.download-inner { max-width: 720px; margin: 0 auto; }
.download-heading {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 6vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin: 16px 0 24px;
}
.download-heading em { font-style: italic; color: var(--amber); font-weight: 900; }
.download-sub {
  font-family: var(--font-ui);
  font-size: 18px;
  line-height: 1.55;
  color: var(--cream-muted);
  margin-bottom: 36px;
}
.store-badges--cta { justify-content: center; }
.store-badge--cta {
  background: var(--tomato);
  color: var(--cream);
}
.store-badge--cta:hover { background: var(--tomato-hover); }
.download-free {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cream-bright);
  letter-spacing: 0.06em;
}
.download-free strong { color: var(--amber); font-weight: 600; }
.download .section-label--inv { color: var(--amber); }

/* ── Footer ──────────────────────────────────────── */
footer { background: var(--ink); padding: 40px 60px; display: flex; align-items: center; justify-content: space-between; }
.footer-logo { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 16px; color: var(--cream); letter-spacing: -0.3px; }
.footer-logo span { color: var(--tomato); }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { font-family: var(--font-ui); font-size: 8.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-light); text-decoration: none; transition: color 0.2s; }
.footer-nav a:hover { color: var(--cream-muted); }
.footer-copy { font-family: var(--font-ui); font-size: 8.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-light); }

/* ── Inner Pages (Privacy, Delete Account) ───────── */
.inner-page { max-width: 720px; margin: 0 auto; padding: 80px 60px 120px; }
.inner-page-eyebrow { font-family: var(--font-mono); font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-light); display: block; margin-bottom: 20px; }
.inner-page-title { font-family: var(--font-display); font-weight: 900; font-size: clamp(36px, 5vw, 54px); line-height: 1.05; letter-spacing: -1.5px; color: var(--ink); margin-bottom: 12px; }
.inner-page-title em { font-style: italic; color: var(--tomato); }
.inner-page-meta { font-family: var(--font-mono); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-light); margin-bottom: 64px; padding-bottom: 40px; border-bottom: 1px solid var(--paper); }
.inner-page-section { margin-bottom: 40px; }
.inner-page-section h2 { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); margin-bottom: 12px; letter-spacing: -0.3px; }
.inner-page-section p { font-family: var(--font-body); font-size: 15px; line-height: 1.8; color: var(--ink-mid); margin-bottom: 10px; }
.inner-page-section ul { padding-left: 20px; margin-bottom: 10px; }
.inner-page-section li { font-family: var(--font-body); font-size: 15px; line-height: 1.8; color: var(--ink-mid); margin-bottom: 4px; }
.inner-page-section a { color: var(--tomato); text-decoration: none; border-bottom: 1px solid var(--tomato-tint-md); transition: border-color 0.2s; }
.inner-page-section a:hover { border-color: var(--tomato); }

/* Delete account page */
.delete-page { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 24px 120px; text-align: center; }
.delete-page .section-label { justify-content: center; margin-bottom: 20px; }
.delete-title { font-family: var(--font-display); font-weight: 900; font-size: clamp(32px, 4.5vw, 48px); line-height: 1.1; letter-spacing: -1.5px; color: var(--ink); margin-bottom: 16px; }
.delete-title em { font-style: italic; }
.delete-body { font-family: var(--font-body); font-size: 16px; line-height: 1.8; color: var(--ink-mid); max-width: 440px; margin: 0 auto 40px; }
.delete-form-wrap { display: flex; justify-content: center; width: 100%; margin-bottom: 20px; }
.delete-form-wrap .email-form { max-width: 460px; }
.delete-note { font-family: var(--font-ui); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-light); }
.delete-warning { display: inline-flex; align-items: center; gap: 8px; background: var(--tomato-tint-sm); border: 1px solid var(--tomato-tint-md); border-radius: 8px; padding: 12px 16px; margin-bottom: 36px; font-family: var(--font-ui); font-size: 12px; color: var(--ink-mid); line-height: 1.5; max-width: 440px; }

.section-label--center { justify-content: center; }


/* ── A11y ───────────────────────────────────────── */

/* Focus indicators */
:focus-visible {
  outline: 2px solid var(--tomato);
  outline-offset: 3px;
}

/* Reduced motion — show all content immediately, suppress all motion */
@media (prefers-reduced-motion: reduce) {
  /* Make elements visible without waiting for IntersectionObserver */
  .reveal,
  .reveal.is-visible {
    opacity: 1;
    animation: none;
  }
  .phone-float { animation: none; }
  .marquee-track { animation: none; }
  .streak-emoji { animation: none; }
  .phone-progress-fill { transition: none; }
  /* Email overdrive — static focus styles instead of animated border */
  .email-input:focus {
    animation: none;
    border-color: var(--tomato);
    background: var(--cream);
  }
  .email-input--inv:focus {
    animation: none;
    border-color: var(--cream-bright);
    background: var(--cream-faint);
  }
}

/* Marquee pause on hover */
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }

/* ── Responsive ─────────────────────────────────── */

/* ── 1024px: Tablet / Small Laptop ─────────────── */
/* Hero stacks to single-column here.
   The fixed 560px phone column eats all the space
   below this point — stacking is the right layout. */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding: 56px 32px 80px; min-height: auto; }
  .hero-stack { display: none; }
  .how { grid-template-columns: 1fr; padding: 80px 32px; gap: 48px; }
  .how-left { position: static; }
  .phone-moment { padding: 80px 32px; }
  .phone-moment-inner { grid-template-columns: 1fr; gap: 48px; }
}

/* ── 768px: Phone ───────────────────────────────── */
@media (max-width: 768px) {

  nav[aria-label="Main"] { padding: 16px 20px; }

  .how {
    padding: 60px 24px 72px;
  }

  .download {
    padding: 80px 24px;
  }

  footer {
    padding: 32px 24px;
  }

  .phone-moment-stage { min-height: 560px; }
}

/* ── 480px: Mobile ─────────────────────────── */
@media (max-width: 480px) {

  .hero { padding: 40px 20px 64px; }

  .how {
    padding: 40px 16px;
  }
  .step { grid-template-columns: 64px 1fr; gap: 16px; }
  .step-num { font-size: 40px; }
  .step-title { font-size: 22px; }

  .email-form { flex-direction: column; }
  .email-form button { width: 100%; }
  button.btn-primary { padding: 16px; }

  .download {
    padding: 48px 16px;
  }

  footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 24px 16px;
  }

  /* Hero type: floor at 44px on very small screens */
  .hero-h1 {
    font-size: clamp(44px, 12vw, 90px);
    letter-spacing: -2px;
  }
}

/* ── Inner page responsive ──────────────────────── */
@media (max-width: 768px) {
  .inner-page { padding: 60px 28px 80px; }
  .footer-nav { gap: 16px; }
}
@media (max-width: 480px) {
  .inner-page { padding: 40px 20px 60px; }
  footer { flex-wrap: wrap; row-gap: 12px; }
  .footer-nav { width: 100%; justify-content: center; }
}
