
/* ── Reset & Tokens ─────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --cream:       #FFF8F0;
  --parchment:   #F5EDE0;
  --paper:       #EDE3D4;
  --tomato:      #D94F30;
  --tomato-pale: #F4DDD7;
  --amber:       #E8A838;
  --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:    #C23E22;
  --phone-surface:   #FAF4EC;
  --phone-header:    #F0E8D8;
  --phone-border:    #E0D4C3;
  --tomato-tint-sm:  rgba(217, 79, 48, 0.07);
  --tomato-tint-md:  rgba(217, 79, 48, 0.13);
  --nav-bg:          rgba(255, 248, 240, 0.92);
  --romeo-bg:        #A83220;

  /* Cream-on-dark palette (used on tomato/ink backgrounds) */
  --cream-faint:     rgba(255, 248, 240, 0.10);
  --cream-glow:      rgba(255, 248, 240, 0.18);
  --cream-dim:       rgba(255, 248, 240, 0.35);
  --cream-sep:       rgba(255, 248, 240, 0.40);
  --cream-half:      rgba(255, 248, 240, 0.50);
  --cream-bright:    rgba(255, 248, 240, 0.60);
  --cream-muted:     rgba(255, 248, 240, 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);
}
@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 {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 60px;
  border-bottom: 1px solid var(--paper);
  position: sticky; top: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  z-index: 100;
}
.nav-logo { display: flex; align-items: baseline; gap: 5px; text-decoration: none; }
.nav-scroll { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 21px; letter-spacing: -0.5px; color: var(--ink); }
.nav-dot { color: var(--tomato); font-size: 24px; }
.nav-books { font-family: var(--font-ui); font-size: 8.5px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--ink-mid); }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { font-family: var(--font-ui); font-size: 9.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-light); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-cta {
  background: var(--tomato);
  color: var(--cream);
  padding: 9px 22px;
  border-radius: 6px;
  transition: background 0.2s, transform 0.15s;
}
.nav-links .nav-cta:hover {
  background: var(--tomato-hover);
  transform: translateY(-1px);
}

/* ── Hero ────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 560px;
  min-height: calc(100vh - 66px);
  padding: 100px 60px 100px;
  position: relative; overflow: hidden;
  align-items: center; gap: 40px;
}
.hero-bg {
  position: absolute; right: -40px; top: 50%; transform: translateY(-54%);
  font-family: 'Playfair Display', serif; font-weight: 900; font-style: italic;
  font-size: clamp(200px, 28vw, 380px);
  color: var(--tomato); opacity: 0.075;
  line-height: 1; letter-spacing: -8px;
  pointer-events: none; user-select: none; z-index: 0;
}
.hero-left { position: relative; z-index: 1; max-width: 560px; }
.hero-eyebrow {
  font-family: var(--font-ui); font-size: 9px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--tomato); margin-bottom: 28px;
  display: flex; align-items: center; gap: 12px;
}
.hero-eyebrow::before { content: ''; display: block; width: 28px; height: 1px; background: var(--tomato); }
.hero-h1 { font-family: 'Playfair Display', serif; font-weight: 900; font-size: clamp(64px, 9vw, 110px); line-height: 0.93; letter-spacing: -3.5px; color: var(--ink); margin-bottom: 4px; }
.hero-h1-italic { font-family: 'Playfair Display', serif; font-weight: 700; font-style: italic; font-size: clamp(64px, 9vw, 110px); line-height: 0.93; letter-spacing: -3px; color: var(--tomato); margin-bottom: 40px; display: block; }
.hero-body { font-family: 'Lora', serif; font-size: 16px; line-height: 1.85; color: var(--ink-mid); max-width: 420px; margin-bottom: 40px; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.btn-primary { font-family: var(--font-ui); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; background: var(--tomato); color: var(--cream); padding: 16px 40px; border-radius: 8px; text-decoration: none; border: 1.5px solid var(--tomato); transition: background 0.2s, color 0.2s, transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.2s; white-space: nowrap; box-shadow: 0 4px 20px rgba(217,79,48,0.35); }
.btn-primary:hover { background: var(--tomato-hover); color: var(--cream); border-color: var(--tomato-hover); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(217,79,48,0.45); }
.hero-proof { font-family: var(--font-ui); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-mid); line-height: 1.7; }
.hero-proof strong { color: var(--tomato); font-weight: 600; }

/* ── Phone Demo Area ─────────────────────────────── */
.hero-right {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
}

.demo-area {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  transform: rotate(6deg);
}

/* Callout labels */
.callout {
  position: absolute;
  display: flex; align-items: center; gap: 9px;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  white-space: nowrap;
}
.callout.visible { opacity: 1; animation: calloutFadeIn 0.5s ease forwards; }
.callout-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--tomato); flex-shrink: 0;
}
.callout-line {
  width: 32px; height: 1px; background: var(--tomato); opacity: 0.4; flex-shrink: 0;
}
.callout-text {
  font-family: 'Source Code Pro', monospace;
  font-size: 9px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--ink-mid);
}
/* Left callouts */
.callout-left { right: calc(100% + 16px); flex-direction: row-reverse; }
.callout-left .callout-line { order: -1; }
/* Right callouts */
.callout-right { left: calc(100% + 16px); }

.callout-passage  { top: 34%; }
.callout-progress { top: 18%; }
.callout-streak   { bottom: 14%; }
.callout-header   { top: 8%; }

/* outer progress track removed */

/* 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 { overflow: hidden; background: var(--tomato); padding: 20px 0; }
.marquee-track {
  display: flex; white-space: nowrap;
  animation: scrollText 22s linear infinite; width: max-content;
}
.marquee-item {
  font-family: 'Source Code Pro', monospace;
  font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--cream-muted); padding: 0 44px;
  display: inline-flex; align-items: center; gap: 44px;
}
.marquee-item::after { content: '✦'; font-size: 8px; color: var(--cream-sep); }

/* ── Books ───────────────────────────────────────── */
.books {
  padding: 120px 60px; background: var(--parchment); position: relative; overflow: hidden;
}
.books::before {
  content: 'VI'; position: absolute; right: 40px; top: 60px;
  font-family: 'Playfair Display', serif; font-weight: 900; font-style: italic;
  font-size: 180px; color: var(--tomato); opacity: 0.065;
  pointer-events: none; user-select: none;
}
.section-label {
  font-family: var(--font-ui); font-size: 9px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--tomato);
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.section-label::before { content: ''; width: 24px; height: 1px; background: var(--tomato); }
.books-heading {
  font-family: 'Playfair Display', serif; font-weight: 900;
  font-size: clamp(44px, 6vw, 76px); line-height: 1.03; letter-spacing: -2px;
  color: var(--ink); max-width: 600px; margin-bottom: 64px;
}
.books-heading em { font-style: italic; color: var(--tomato); }
.books-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; position: relative; z-index: 1; }
.book-card {
  border-radius: 10px; overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s;
  box-shadow: 0 8px 28px var(--shadow-md); cursor: pointer;
}
.book-card:nth-child(odd)  { transform: rotate(-2deg); }
.book-card:nth-child(even) { transform: rotate(2.2deg); }
.book-card:nth-child(2)    { margin-top: 24px; }
.book-card:nth-child(4)    { margin-top: 16px; }
.book-card:nth-child(6)    { margin-top: 32px; }
.book-card:hover { transform: rotate(0deg) translateY(-16px) scale(1.05) !important; box-shadow: 0 32px 64px var(--shadow-xl); z-index: 2; }
/* Book covers — typographic poster style */
.book-cover {
  height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 18px 16px;
}
.book-cover-author {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  opacity: 0.7;
}
.book-cover-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(22px, 2.8vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.book-cover-stripe {
  height: 4px;
  width: 40px;
  border-radius: 2px;
}

/* Six colour variants */
.book-moby      { background: var(--ink-mid);   color: var(--cream); }
.book-moby      .book-cover-stripe { background: var(--tomato); }

.book-pride     { background: var(--tomato);    color: var(--cream); }
.book-pride     .book-cover-stripe { background: var(--amber); }

.book-gatsby    { background: var(--ink);       color: var(--cream); }
.book-gatsby    .book-cover-stripe { background: var(--tomato); }

.book-frank     { background: var(--parchment); color: var(--ink); border: 1.5px solid var(--ink); }
.book-frank     .book-cover-stripe { background: var(--tomato); }

.book-romeo     { background: var(--romeo-bg);  color: var(--cream); }
.book-romeo     .book-cover-stripe { background: var(--amber); }

.book-wuthering { background: var(--ink);       color: var(--amber); }
.book-wuthering  .book-cover-stripe { background: var(--cream); }

/* Book meta (below cover) */
.book-meta { padding: 12px 14px 14px; background: var(--cream); }
.book-meta-num {
  font-family: var(--font-mono);
  font-size: 8px; color: var(--tomato);
  letter-spacing: 1px; display: block; margin-bottom: 3px;
}
.book-meta-title {
  font-family: var(--font-display);
  font-size: 12px; font-style: italic;
  color: var(--ink); line-height: 1.4;
}

/* ── How It Works ────────────────────────────────── */
.how {
  padding: 110px 60px 120px; background: var(--cream);
  display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 80px; align-items: start;
}
.how-heading { font-family: 'Playfair Display', serif; font-weight: 900; font-size: clamp(38px, 5vw, 64px); line-height: 1.03; letter-spacing: -2px; color: var(--ink); margin-bottom: 24px; }
.how-heading em { font-style: italic; color: var(--tomato); }
.how-body { font-family: 'Lora', serif; font-size: 16px; line-height: 1.85; color: var(--ink-mid); margin-bottom: 36px; }
.step { display: flex; gap: 32px; padding: 36px 0; border-bottom: 1px solid var(--paper); align-items: flex-start; }
.step:last-child { border-bottom: none; }
.step-num { font-family: 'Playfair Display', serif; font-size: 72px; font-weight: 900; font-style: italic; color: var(--tomato); line-height: 1; min-width: 80px; opacity: 0.2; }
.step-title { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 10px; letter-spacing: -0.3px; }
.step-text { font-family: 'Lora', serif; font-size: 15px; line-height: 1.8; color: var(--ink-mid); }

/* ── Download CTA ────────────────────────────────── */
.download { padding: 130px 60px; background: var(--tomato); text-align: center; position: relative; overflow: hidden; }
.download::before { content: 'Read.'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -52%); font-family: 'Playfair Display', serif; font-weight: 900; font-style: italic; font-size: clamp(120px, 22vw, 260px); color: var(--cream); opacity: 0.1; pointer-events: none; user-select: none; white-space: nowrap; letter-spacing: -5px; }
.download-inner { position: relative; z-index: 1; }
.download-heading { font-family: 'Playfair Display', serif; font-weight: 900; font-size: clamp(42px, 6vw, 80px); line-height: 1.0; letter-spacing: -2.5px; color: var(--cream); margin-bottom: 20px; }
.download-heading em { font-style: italic; color: var(--amber); }
.download-sub { font-family: 'Lora', serif; font-size: 16px; line-height: 1.75; color: var(--cream-muted); max-width: 420px; margin: 0 auto 44px; }
.download-btns { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.download-free { font-family: var(--font-ui); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--cream); opacity: 0.82; }
.download-free strong { 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; }

/* Download section — label on tomato bg */
.download .section-label { color: var(--cream-muted); }
.download .section-label::before { background: var(--cream-half); }

/* ── Readers / Social Proof ──────────────────────── */
.readers {
  padding: 120px 60px;
  background: var(--ink);
  position: relative; overflow: hidden;
}
.readers::before {
  content: 'Streak.';
  position: absolute; right: -20px; top: 50%; transform: translateY(-54%);
  font-family: 'Playfair Display', serif; font-weight: 900; font-style: italic;
  font-size: clamp(100px, 16vw, 200px);
  color: var(--tomato); opacity: 0.07;
  line-height: 1; letter-spacing: -4px;
  pointer-events: none; user-select: none;
}
.readers .section-label { color: var(--cream-muted); }
.readers .section-label::before { background: var(--cream-half); }
.readers-heading {
  font-family: 'Playfair Display', serif; font-weight: 900;
  font-size: clamp(38px, 5vw, 64px); line-height: 1.05; letter-spacing: -2px;
  color: var(--cream); margin-bottom: 64px;
}
.readers-heading em { font-style: italic; color: var(--tomato); }
.readers-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  position: relative; z-index: 1;
}
.reader-card {
  background: var(--cream); border-radius: 16px;
  padding: 32px 28px 24px; border-left: 3px solid var(--tomato);
  display: flex; flex-direction: column; gap: 20px;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s;
  box-shadow: 0 8px 32px var(--shadow-xl);
}
.reader-card:nth-child(1) { transform: rotate(-1.5deg); }
.reader-card:nth-child(2) { transform: rotate(1deg); margin-top: 28px; }
.reader-card:nth-child(3) { transform: rotate(-0.5deg); margin-top: 12px; }
.reader-card:hover { transform: rotate(0deg) translateY(-8px) !important; box-shadow: 0 28px 60px var(--shadow-xl); }
.reader-quote-text {
  font-family: 'Lora', serif; font-style: italic;
  font-size: 16px; line-height: 1.78; color: var(--ink); flex: 1;
}
.reader-quote-text::before { content: '\201C'; }
.reader-quote-text::after  { content: '\201D'; }
.reader-divider { height: 1px; background: var(--paper); }
.reader-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.reader-name { font-family: 'Playfair Display', serif; font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.2; margin-bottom: 4px; }
.reader-book { font-family: 'Source Code Pro', monospace; font-size: 7.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-light); }
.reader-streak { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.reader-flame { font-size: 22px; display: inline-block; transition: transform 0.25s cubic-bezier(0.16,1,0.3,1); }
.reader-card:hover .reader-flame { transform: scale(1.35); }
.reader-streak-num {
  font-family: 'Playfair Display', serif; font-size: 34px; font-weight: 900;
  color: var(--tomato); line-height: 1; display: block;
}
.reader-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: 2px;
}

/* ── Email Capture ───────────────────────────────── */

/* Spinning gradient border — registers --border-angle as an animatable CSS property */
@property --border-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
@keyframes spinBorder {
  to { --border-angle: 360deg; }
}

button.btn-primary { cursor: pointer; appearance: none; -webkit-appearance: none; }
.email-form { display: flex; align-items: stretch; gap: 8px; max-width: 440px; width: 100%; }
.email-form--large { max-width: 480px; }
.email-input {
  flex: 1; min-width: 0;
  font-family: var(--font-ui); font-size: 13px; letter-spacing: 0.2px;
  padding: 14px 18px; border-radius: 8px;
  border: 1.5px solid var(--paper); background: var(--cream); color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.email-input::placeholder { color: var(--ink-light); }
.email-input:focus {
  outline: none;
  border-color: transparent;
  background:
    linear-gradient(var(--cream) 0 0) padding-box,
    conic-gradient(from var(--border-angle), var(--tomato), var(--amber), var(--parchment), var(--tomato)) border-box;
  box-shadow: 0 0 0 3px var(--tomato-tint-sm);
  animation: spinBorder 2s linear infinite;
}
.email-input.invalid { border-color: var(--tomato); animation: shake 0.4s ease; }

/* Inverted input for tomato background */
.email-input--inv { background: var(--cream-faint); border-color: var(--cream-dim); color: var(--cream); }
.email-input--inv::placeholder { color: var(--cream-muted); }
.email-input--inv:focus {
  border-color: transparent;
  background:
    linear-gradient(rgba(255, 248, 240, 0.10) 0 0) padding-box,
    conic-gradient(from var(--border-angle), var(--cream), var(--amber), var(--tomato), var(--cream)) border-box;
  box-shadow: 0 0 0 3px rgba(255,248,240,0.12);
  animation: spinBorder 2s linear infinite;
}
.email-input--inv.invalid { border-color: var(--amber); }

.email-form--large .email-input { font-size: 15px; padding: 16px 20px; }

/* Launch CTA button (cream on tomato) */
.btn-launch {
  font-family: var(--font-ui); font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  background: var(--cream); color: var(--tomato); font-weight: 700;
  padding: 16px 32px; border-radius: 8px; border: none;
  cursor: pointer; white-space: nowrap;
  transition: background 0.2s, transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.2s;
  box-shadow: 0 4px 20px var(--shadow-lg);
}
.btn-launch:hover { background: var(--parchment); transform: translateY(-2px); box-shadow: 0 8px 28px var(--shadow-xl); }

/* Success state */
.email-success {
  font-family: var(--font-ui); font-size: 13px; font-weight: 600; color: var(--tomato);
  display: flex; align-items: center; gap: 10px;
  animation: fadeUp 0.4s cubic-bezier(0.16,1,0.3,1) forwards;
}
.email-success--inv { color: var(--cream); }
.email-success-check {
  display: inline-flex; width: 26px; height: 26px; border-radius: 50%;
  background: var(--tomato); color: var(--cream);
  align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.email-success--inv .email-success-check { background: var(--cream); color: var(--tomato); }

/* Download signup wrapper (centres the form) */
.download-signup { display: flex; justify-content: center; margin-bottom: 28px; }

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

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

/* Contrast fix: ink-light on cream fails AA; ink-mid passes */
.nav-links a { color: var(--ink-mid); }

/* Spans inside h1 must display as blocks */
.hero-h1,
.hero-h1-italic { display: block; }

/* 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: 64px 48px 56px;
    min-height: unset;
    gap: 48px;
    align-items: start;
  }
  .hero-right {
    justify-content: flex-start;
  }
  .demo-area {
    transform: rotate(3deg);
  }
  .hero-left {
    max-width: 100%;
  }
}

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

  nav {
    padding: 16px 24px;
  }
  /* Show only the Download CTA on mobile — no hamburger menu */
  .nav-links li:not(:last-child) {
    display: none;
  }

  /* Tighten hero padding further for phone */
  .hero {
    padding: 48px 24px 40px;
    gap: 32px;
  }
  .hero-actions { gap: 16px; }
  .email-form { max-width: 100%; }
  .email-form--large { max-width: 100%; }

  .books {
    padding: 60px 24px;
  }
  .books-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .how {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 24px 72px;
  }
  .step { gap: 24px; padding: 28px 0; }

  .readers {
    padding: 72px 24px;
  }
  .readers-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .reader-card:nth-child(1),
  .reader-card:nth-child(2),
  .reader-card:nth-child(3) {
    transform: none;
    margin-top: 0;
  }
  .reader-card:hover { transform: translateY(-4px) !important; }

  .download {
    padding: 80px 24px;
  }

  footer {
    padding: 32px 24px;
  }

  /* Touch targets: min 44px tap height */
  .nav-links a {
    padding: 12px 8px;
  }
  .nav-links .nav-cta {
    padding: 16px 22px;
  }
}

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

  .hero {
    padding: 32px 16px 32px;
  }

  /* Condense the phone demo */
  .phone {
    width: 240px;
    height: 480px;
  }

  /* Shrink book covers on mobile to avoid excessive height */
  .book-cover {
    height: 200px;
  }
  .book-cover-title {
    font-size: clamp(18px, 5vw, 28px);
  }

  /* Nudge stagger off on 2-col mobile grid */
  .book-card:nth-child(2),
  .book-card:nth-child(4),
  .book-card:nth-child(6) {
    margin-top: 0;
  }

  /* Callout labels overflow on narrow screens — hide them */
  .callout {
    display: none;
  }

  .books {
    padding: 40px 16px;
  }
  .books-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .how {
    padding: 40px 16px;
  }

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

  .readers {
    padding: 48px 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,
  .hero-h1-italic {
    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; }
}

/* ── Touch: disable hover lift on book cards + reader cards ─── */
@media (hover: none) {
  .book-card { transition: none; }
  .book-card:hover { transform: none !important; box-shadow: 0 8px 28px var(--shadow-md) !important; }
  .book-card:nth-child(odd):hover  { transform: rotate(-2deg) !important; }
  .book-card:nth-child(even):hover { transform: rotate(2.2deg) !important; }
  .reader-card:hover { transform: none !important; box-shadow: 0 8px 32px var(--shadow-xl) !important; }
  .reader-card:hover .reader-flame { transform: none; }
}
