/* ================================================================
   FUD AI — THE NUTRITION FACTS EDITION
   ----------------------------------------------------------------
   An editorial food-magazine system printed on two stocks:

     INK   — warm near-black, the cover + photo sections
     PAPER — cream, the long-read sections

   The signature motif is the nutrition-facts label: thick rules,
   hairline rows, bold condensed headers, mono data. Fraunces does
   the talking (WONK axis on), Manrope reads, JetBrains Mono
   measures.
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT,WONK@0,9..144,300..700,0..100,0..1;1,9..144,300..700,0..100,0..1&family=Manrope:wght@300;400;500;600;700;800&family=JetBrains+Mono:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ----------------------------------------------------------------
   TOKENS
---------------------------------------------------------------- */
:root {
  --ink: #141009;
  --ink-2: #1c1710;
  --ink-3: #272013;
  --paper: #f4ecda;
  --paper-2: #ede2c8;
  --paper-3: #e5d8b8;

  --accent: #ff375f;
  --accent-deep: #e01745;
  --accent-soft: rgba(255, 55, 95, 0.14);

  --cream-text: #f4ecda;
  --cream-dim: rgba(244, 236, 218, 0.62);
  --cream-faint: rgba(244, 236, 218, 0.38);
  --ink-text: #1a1409;
  --ink-dim: rgba(26, 20, 9, 0.66);
  --ink-faint: rgba(26, 20, 9, 0.42);

  --hair-on-ink: rgba(244, 236, 218, 0.16);
  --hair-on-paper: rgba(26, 20, 9, 0.22);
  --rule-on-ink: var(--cream-text);
  --rule-on-paper: var(--ink-text);

  --hardware: #060504;

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Manrope", "Avenir Next", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", monospace;

  --nav-h: 64px;
  --pad: clamp(20px, 4.5vw, 56px);
  --shadow-pop: 6px 6px 0 var(--accent);
  --ease-snap: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----------------------------------------------------------------
   BASE
---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.65;
  background: var(--ink);
  color: var(--cream-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Print grain over everything — one fixed pass of turbulence noise. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
code {
  font-family: var(--mono);
  font-size: 0.85em;
  padding: 0.1em 0.42em;
  border: 1px solid var(--hair-on-ink);
  border-radius: 4px;
}

::selection { background: var(--accent); color: var(--paper); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--ink-3); border: 3px solid var(--ink); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); }

/* ----------------------------------------------------------------
   SHARED EDITORIAL FURNITURE
---------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.eyebrow .num { color: var(--accent); font-style: normal; }

.dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; transform: scale(0.8); } }

/* Section head = a nutrition-label header: heavy top bar, hairline
   base, wonky italics for the emphasized word. */
.section-head {
  position: relative;
  padding-top: 26px;
  margin-bottom: clamp(40px, 6vw, 72px);
  border-top: 10px solid var(--rule-on-ink);
}
.section-head::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -14px;
  height: 1px;
  background: var(--hair-on-ink);
}
.section-head .eyebrow { display: inline-flex; margin-bottom: 14px; }
.section-head h2 {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.015em;
  max-width: 18ch;
}
.section-head h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  font-variation-settings: "SOFT" 0, "WONK" 1;
}

section { position: relative; padding: clamp(72px, 10vw, 128px) 0; }

/* ----------------------------------------------------------------
   NAV — the masthead
---------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--hair-on-ink); }
.nav .container {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1320px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.nav-brand img { width: 30px; height: 30px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 30px);
}
.nav-links a {
  position: relative;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-dim);
  padding: 6px 0;
  transition: color 0.22s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.32s var(--ease-snap);
}
.nav-links a:hover, .nav-links a.active { color: var(--cream-text); }
.nav-links a:hover::after, .nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-toggle { display: none; }
.hamburger { display: none; }

/* ----------------------------------------------------------------
   HERO — the cover
---------------------------------------------------------------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + clamp(28px, 5vh, 64px)) 0 clamp(48px, 7vh, 88px);
  overflow: hidden;
}
/* Ghost masthead type behind the cover */
.hero::before {
  content: "FUD";
  position: absolute;
  top: 4%;
  right: -4%;
  z-index: 0;
  font-family: var(--display);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(200px, 38vw, 560px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 236, 218, 0.07);
  pointer-events: none;
  user-select: none;
}
.hero .container { position: relative; z-index: 1; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px clamp(18px, 3vw, 40px);
  padding-bottom: 18px;
  margin-bottom: clamp(30px, 5vh, 54px);
  border-bottom: 1px solid var(--hair-on-ink);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-dim);
  animation: rise 0.9s var(--ease-snap) both;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 9px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-title {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: clamp(3.2rem, 8.2vw, 7rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-bottom: clamp(22px, 3.2vh, 34px);
  animation: rise 0.9s 0.08s var(--ease-snap) both;
}
.hero-title-line {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  font-variation-settings: "SOFT" 0, "WONK" 1;
}

.hero-lede {
  max-width: 56ch;
  font-size: clamp(1rem, 1.35vw, 1.13rem);
  font-weight: 400;
  line-height: 1.75;
  color: var(--cream-dim);
  margin-bottom: clamp(26px, 3.6vh, 38px);
  animation: rise 0.9s 0.16s var(--ease-snap) both;
}

.hero .cta-group { animation: rise 0.9s 0.24s var(--ease-snap) both; }
.hero .cta-sub { animation: rise 0.9s 0.32s var(--ease-snap) both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cover photo — the phone, stamped and glowing */
.hero-card {
  position: relative;
  display: flex;
  justify-content: center;
  animation: rise 1s 0.2s var(--ease-snap) both;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: -12% -18%;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 72%);
  filter: blur(8px);
  z-index: 0;
}
.hero-card-frame { position: relative; z-index: 1; width: min(320px, 78vw); }

/* Rotating rubber stamp */
.hero-stamp {
  position: absolute;
  z-index: 2;
  right: -34px;
  bottom: -18px;
  width: 128px;
  height: 128px;
  animation: spin 22s linear infinite;
  pointer-events: none;
}
.hero-stamp .stamp-ring {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.32em;
  fill: var(--accent);
  text-transform: uppercase;
}
.hero-stamp circle { fill: var(--ink); stroke: var(--accent); stroke-width: 1.5; }
.hero-stamp .stamp-core {
  fill: var(--cream-text);
  font-family: var(--display);
  font-style: italic;
  font-size: 30px;
  font-weight: 600;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Barcode sticker on the cover */
.hero-barcode {
  position: absolute;
  z-index: 2;
  left: -30px;
  top: 26px;
  width: 84px;
  padding: 8px 9px 6px;
  background: var(--paper);
  color: var(--ink-text);
  transform: rotate(-7deg);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.45);
}
.hero-barcode .bars {
  display: block;
  height: 30px;
  background: repeating-linear-gradient(
    90deg,
    var(--ink-text) 0 2px, transparent 2px 4px,
    var(--ink-text) 4px 7px, transparent 7px 8px,
    var(--ink-text) 8px 9px, transparent 9px 12px
  );
}
.hero-barcode .code {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-align: center;
}

/* ----------------------------------------------------------------
   PHONE FRAME (shared: hero + plates)
---------------------------------------------------------------- */
.phone-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 390 / 800;
  padding: 10px;
  background: var(--hardware);
  border-radius: 44px;
  border: 1px solid rgba(244, 236, 218, 0.14);
  box-shadow:
    0 2px 0 rgba(244, 236, 218, 0.06) inset,
    0 24px 60px -24px rgba(0, 0, 0, 0.8);
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: var(--hardware);
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* ----------------------------------------------------------------
   CTA BUTTONS — chunky press-plate buttons
---------------------------------------------------------------- */
.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}
.app-store-btn, .play-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 15px 22px;
  background: var(--paper);
  color: var(--ink-text);
  border: 2px solid var(--ink-text);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: var(--shadow-pop);
  transition: transform 0.18s var(--ease-snap), box-shadow 0.18s var(--ease-snap), background 0.18s ease;
}
.app-store-btn svg, .play-store-btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.app-store-btn:hover, .play-store-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--accent);
}
.app-store-btn:active, .play-store-btn:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--accent);
}

.cta-sub { display: flex; flex-wrap: wrap; gap: 9px; }
.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--hair-on-ink);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-dim);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease-snap);
}
.chip-btn:hover {
  color: var(--cream-text);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.chip-btn i { color: var(--accent); font-size: 13px; }

/* ----------------------------------------------------------------
   TICKER — packing tape
---------------------------------------------------------------- */
.ticker-section {
  position: relative;
  z-index: 3;
  padding: 0;
  background: var(--accent);
  transform: rotate(-1.1deg) scale(1.02);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}
.ticker {
  display: flex;
  width: max-content;
  padding: 13px 0;
  animation: marquee 46s linear infinite;
}
.ticker-section:hover .ticker { animation-play-state: paused; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0 22px;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.ticker-item .ast { color: var(--paper); font-size: 13px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ----------------------------------------------------------------
   STATS — the Fud Facts label
---------------------------------------------------------------- */
.stats-section { padding-top: clamp(84px, 11vw, 140px); }
.stats-section .eyebrow { margin-bottom: 22px; }

.stats-grid {
  display: flex;
  flex-direction: column;
  max-width: 720px;
  border: 2.5px solid var(--rule-on-ink);
  padding: 12px 22px 8px;
  position: relative;
  background: color-mix(in srgb, var(--ink-2) 60%, transparent);
}
/* Label plaque, drawn in pure CSS on top of the four rows */
.stats-grid::before {
  content: "Fud Facts";
  order: -2;
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  padding-bottom: 8px;
  border-bottom: 10px solid var(--rule-on-ink);
}
.stats-grid::after {
  content: "Amount per install · % daily value not established";
  order: -1;
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-faint);
  padding: 9px 0;
  border-bottom: 1px solid var(--hair-on-ink);
}
.stat-card {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--hair-on-ink);
}
.stat-card:last-child { border-bottom: 5px solid var(--rule-on-ink); margin-bottom: 6px; }
.stat-label {
  order: 0;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--cream-text);
}
.stat-number {
  order: 1;
  font-family: var(--mono);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

/* ----------------------------------------------------------------
   CHAPTERS — the long read, printed on paper
---------------------------------------------------------------- */
#chapters {
  background: var(--paper);
  color: var(--ink-text);
  /* Re-aim the shared furniture at paper */
  --hair-on-ink: var(--hair-on-paper);
  --rule-on-ink: var(--rule-on-paper);
  --cream-dim: var(--ink-dim);
  --cream-faint: var(--ink-faint);
  --accent: var(--accent-deep);
  overflow: hidden;
}
#chapters::before {
  content: "01–08";
  position: absolute;
  top: clamp(48px, 8vw, 110px);
  right: -1%;
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(120px, 22vw, 320px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(26, 20, 9, 0.1);
  pointer-events: none;
  user-select: none;
}

.chapters { display: flex; flex-direction: column; }

.chapter {
  position: relative;
  display: grid;
  grid-template-columns: 110px minmax(0, 0.85fr) minmax(0, 1.35fr);
  gap: clamp(18px, 3vw, 44px);
  padding: clamp(30px, 4.5vw, 52px) 0;
  border-top: 1px solid var(--hair-on-paper);
}
.chapter:first-child { border-top: none; }

.chapter-num {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--accent-deep);
  transition: color 0.3s ease;
}
.chapter:hover .chapter-num { color: var(--accent-deep); }

.chapter-head h3 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  max-width: 14ch;
}
.chapter-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  border: 1px solid color-mix(in srgb, var(--accent-deep) 45%, transparent);
  border-radius: 999px;
  padding: 5px 12px;
  line-height: 1.5;
}

.chapter-body p {
  color: var(--ink-dim);
  margin-bottom: 16px;
  font-size: 1.01rem;
}
.chapter-body p:last-child { margin-bottom: 0; }
.chapter-body strong { color: var(--ink-text); font-weight: 700; }
.chapter-body code {
  border-color: var(--hair-on-paper);
  background: rgba(26, 20, 9, 0.05);
}
.chapter-body ul { list-style: none; }
.chapter-body li {
  position: relative;
  padding: 9px 0 9px 26px;
  border-top: 1px dashed var(--hair-on-paper);
  color: var(--ink-dim);
  font-size: 0.95rem;
}
.chapter-body li:first-child { border-top: none; }
.chapter-body li::before {
  content: "+";
  position: absolute;
  left: 2px;
  top: 8px;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--accent-deep);
}

/* ----------------------------------------------------------------
   PROCESS — the recipe, back on ink
---------------------------------------------------------------- */
#process { overflow: hidden; }
#process::before {
  content: "RECIPE";
  position: absolute;
  bottom: 2%;
  left: -2%;
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(110px, 20vw, 300px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 236, 218, 0.06);
  pointer-events: none;
  user-select: none;
}

.process { display: grid; grid-template-columns: minmax(0, 0.22fr) minmax(0, 1fr); }
.process-list { display: flex; flex-direction: column; }

.process-step {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(26px, 3.6vw, 40px) 0;
  border-top: 1px solid var(--hair-on-ink);
}
.process-step:nth-child(odd) { margin-left: clamp(0px, 4vw, 56px); }
.process-step:first-child { border-top: none; }

.process-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 10px;
}
.process-text h3 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 500;
  margin-bottom: 8px;
}
.process-text h3 em {
  font-style: italic;
  font-variation-settings: "SOFT" 0, "WONK" 1;
}
.process-text p { color: var(--cream-dim); max-width: 62ch; }

/* ----------------------------------------------------------------
   PLATES — contact sheet on paper, scrolls sideways
---------------------------------------------------------------- */
.plates-section {
  background: var(--paper);
  color: var(--ink-text);
  --hair-on-ink: var(--hair-on-paper);
  --rule-on-ink: var(--rule-on-paper);
  --cream-dim: var(--ink-dim);
  --cream-faint: var(--ink-faint);
  --accent: var(--accent-deep);
}
.plates-section .section-head { margin-bottom: clamp(26px, 4vw, 48px); }

.plates {
  display: flex;
  gap: clamp(22px, 3vw, 40px);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 26px var(--pad) 34px;
  scrollbar-color: var(--ink-text) transparent;
}
.plates::-webkit-scrollbar { height: 10px; }
.plates::-webkit-scrollbar-track { background: transparent; margin: 0 var(--pad); }
.plates::-webkit-scrollbar-thumb { background: var(--ink-text); border: 2px solid var(--paper); }

.plate {
  flex: 0 0 auto;
  width: min(250px, 68vw);
  scroll-snap-align: center;
  transition: transform 0.35s var(--ease-snap);
}
.plate:nth-child(odd) { transform: rotate(-1.4deg); }
.plate:nth-child(even) { transform: rotate(1.1deg) translateY(10px); }
.plate:hover { transform: rotate(0deg) translateY(-6px); }

.plate .phone-frame {
  border-color: rgba(26, 20, 9, 0.35);
  box-shadow: 10px 12px 0 rgba(26, 20, 9, 0.14);
}
.plate-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 9px;
  border-top: 2px solid var(--ink-text);
}
.plate-caption .num {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent-deep);
}
.plate-caption span:last-child {
  font-family: var(--display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-dim);
}

/* ----------------------------------------------------------------
   CTA — the loud page, solid accent
---------------------------------------------------------------- */
.cta-section {
  background: var(--accent);
  color: var(--ink);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  overflow: hidden;
}
.cta-section::before {
  content: "EAT · LOG · REPEAT ·";
  position: absolute;
  top: -4%;
  right: -6%;
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(90px, 16vw, 220px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(20, 16, 9, 0.16);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.cta-content { position: relative; max-width: 780px; }
.cta-content .eyebrow { color: rgba(20, 16, 9, 0.7); margin-bottom: 16px; }
.cta-content h2 {
  font-family: var(--display);
  font-size: clamp(2.8rem, 6.6vw, 5.2rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.cta-content h2 em {
  font-style: italic;
  font-weight: 500;
  font-variation-settings: "SOFT" 0, "WONK" 1;
}
.cta-content > p {
  color: rgba(20, 16, 9, 0.78);
  font-weight: 500;
  margin-bottom: 30px;
}
.cta-section .app-store-btn, .cta-section .play-store-btn {
  background: var(--ink);
  color: var(--cream-text);
  border-color: var(--ink);
  box-shadow: 6px 6px 0 var(--paper);
}
.cta-section .app-store-btn:hover, .cta-section .play-store-btn:hover {
  box-shadow: 8px 8px 0 var(--paper);
}
.cta-section .app-store-btn:active, .cta-section .play-store-btn:active {
  box-shadow: 2px 2px 0 var(--paper);
}
.cta-section .chip-btn { border-color: rgba(20, 16, 9, 0.4); color: rgba(20, 16, 9, 0.82); }
.cta-section .chip-btn i { color: var(--ink); }
.cta-section .chip-btn:hover { color: var(--ink); border-color: var(--ink); }

/* ----------------------------------------------------------------
   FAQ — plainly answered, ruled rows
---------------------------------------------------------------- */
.faq-section { counter-reset: faq; }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 5vw, 72px);
}
.faq-item {
  padding: 24px 0 26px;
  border-top: 1px solid var(--hair-on-ink);
  counter-increment: faq;
}
.faq-item h3 {
  position: relative;
  font-family: var(--display);
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1.25;
  padding-left: 44px;
  margin-bottom: 10px;
}
.faq-item h3::before {
  content: "Q" counter(faq, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.28em;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.faq-item p {
  padding-left: 44px;
  color: var(--cream-dim);
  font-size: 0.96rem;
}

/* ----------------------------------------------------------------
   FOOTER — the colophon
---------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--hair-on-ink);
  padding: clamp(56px, 8vw, 88px) 0 34px;
  background: var(--ink);
  color: var(--cream-text);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  margin-bottom: 54px;
}
.footer-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-brand-mark img { width: 34px; height: 34px; }
.footer-brand p { color: var(--cream-dim); font-size: 0.95rem; max-width: 40ch; margin-bottom: 20px; }
.footer-socials { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--hair-on-ink);
  border-radius: 50%;
  color: var(--cream-dim);
  font-size: 14px;
  transition: all 0.22s var(--ease-snap);
}
.footer-socials a:hover {
  color: var(--ink);
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px) rotate(-6deg);
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-faint);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--cream-dim);
  font-size: 0.95rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.footer-col a:hover { color: var(--accent); padding-left: 4px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 22px;
  border-top: 1px solid var(--hair-on-ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-faint);
}

/* ----------------------------------------------------------------
   LEGAL PAGES — the fine print, on paper
---------------------------------------------------------------- */
.legal-section {
  background: var(--paper);
  color: var(--ink-text);
  min-height: 100vh;
  padding: calc(var(--nav-h) + clamp(48px, 8vw, 88px)) 0 clamp(72px, 10vw, 120px);
}
.legal-content { max-width: 820px; margin: 0 auto; }
.legal-content h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.02;
  padding-top: 24px;
  border-top: 10px solid var(--ink-text);
  margin-bottom: 14px;
}
.legal-date {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  border: 1px solid color-mix(in srgb, var(--accent-deep) 45%, transparent);
  border-radius: 999px;
  padding: 5px 13px;
  margin: 0 0 38px;
}
.legal-content h2 {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 600;
  margin: 44px 0 14px;
  padding-top: 20px;
  border-top: 4px solid var(--ink-text);
}
.legal-content h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 38px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--hair-on-paper);
}
.legal-content p, .legal-content li { color: var(--ink-dim); font-size: 0.99rem; }
.legal-content p { margin-bottom: 14px; }
.legal-content ul { padding-left: 22px; margin-bottom: 16px; }
.legal-content li { margin-bottom: 9px; }
.legal-content li::marker { color: var(--accent-deep); }
.legal-content a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.legal-content a:hover { color: var(--ink-text); }
.legal-content strong { color: var(--ink-text); }
.legal-content code {
  border-color: var(--hair-on-paper);
  background: rgba(26, 20, 9, 0.05);
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 26px;
  font-size: 0.9rem;
  border: 2px solid var(--ink-text);
}
.legal-table th, .legal-table td {
  text-align: left;
  padding: 11px 13px;
  border-bottom: 1px solid var(--hair-on-paper);
  vertical-align: top;
  color: var(--ink-dim);
}
.legal-table th {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink-text);
}
.legal-table tr:last-child td { border-bottom: none; }

/* ----------------------------------------------------------------
   SCROLL REVEALS (classes added by the tiny observer script;
   perfectly fine without JS — content stays visible)
---------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-snap), transform 0.7s var(--ease-snap);
}
.reveal.in-view { opacity: 1; transform: none; }

/* ----------------------------------------------------------------
   RESPONSIVE
---------------------------------------------------------------- */
@media (max-width: 1080px) {
  .chapter { grid-template-columns: 80px minmax(0, 1fr); }
  .chapter-body { grid-column: 2; }
  .process { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-card { order: -1; margin-bottom: 6px; }
  .hero-card-frame { width: min(240px, 62vw); }
  .hero-stamp { width: 104px; height: 104px; right: -18px; }
  .hero::before { font-size: clamp(160px, 42vw, 300px); }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-grid { grid-template-columns: minmax(0, 1fr); }

  /* Mobile nav — a paper slip drops from the masthead */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px; height: 40px;
    padding: 8px;
    cursor: pointer;
    border: 1px solid var(--hair-on-ink);
    border-radius: 8px;
  }
  .hamburger span {
    display: block;
    height: 2px;
    background: var(--cream-text);
    transition: transform 0.28s var(--ease-snap), opacity 0.2s ease;
  }
  .nav-toggle:checked ~ .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .hamburger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 3px solid var(--accent);
    padding: 8px 0 10px;
    transform: translateY(-115%);
    visibility: hidden;
    transition: transform 0.34s var(--ease-snap), visibility 0s 0.34s;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
    z-index: -1;
  }
  .nav-toggle:checked ~ .nav-links {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.34s var(--ease-snap), visibility 0s 0s;
  }
  .nav-links a {
    color: var(--ink-text);
    padding: 13px var(--pad);
    border-bottom: 1px solid var(--hair-on-paper);
    font-size: 12.5px;
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a::after { display: none; }
  .nav-links a:hover, .nav-links a.active { color: var(--accent-deep); }
}

@media (max-width: 720px) {
  body { font-size: 15.5px; }
  section { padding: clamp(56px, 12vw, 84px) 0; }

  .hero-meta { gap: 6px 18px; font-size: 10px; }

  .chapter { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .chapter-num { font-size: 2.2rem; }
  .chapter-body { grid-column: auto; }
  .chapter-head h3 { max-width: none; }

  .process-step { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .process-step:nth-child(odd) { margin-left: 0; }

  .stats-grid { padding: 10px 16px 6px; }

  .cta-group { flex-direction: column; align-items: stretch; }
  .app-store-btn, .play-store-btn { justify-content: center; }

  .plate { width: min(220px, 74vw); }
  .faq-item h3, .faq-item p { padding-left: 36px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-barcode { left: -12px; width: 72px; }
  .hero-stamp { width: 92px; height: 92px; right: -8px; bottom: -12px; }
}

/* ----------------------------------------------------------------
   REDUCED MOTION
---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .ticker { animation: none; }
  .hero-stamp { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
