/* ─────────────────────────────────────────────────────────────────────────
   Meal Whisperer — Waitlist landing page
   Uses the "Cool Sage" tokens from colors_and_type.css.
   Web-only styles: layout, phone mockup, sections, responsive.
   ───────────────────────────────────────────────────────────────────────── */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--mw-paper);
  color: var(--mw-ink);
  font-family: var(--mw-font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Canvas tint tweak */
[data-canvas="light"] { --mw-paper: #F7F9F5; }

a { color: var(--mw-sage); text-decoration: none; transition: color .18s var(--mw-ease); }
a:hover { color: var(--mw-sage-deep); }

img { max-width: 100%; display: block; }

/* ── Shared type ─────────────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--mw-font-sans);
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--mw-sage); margin: 0;
}
.display {
  font-family: var(--mw-font-display);
  font-weight: 500; letter-spacing: -0.015em; line-height: 1.06;
  color: var(--mw-ink); margin: 0;
  font-size: clamp(40px, 5.6vw, 66px);
  text-wrap: balance;
}
.section-title {
  font-family: var(--mw-font-display);
  font-weight: 500; letter-spacing: -0.01em; line-height: 1.12;
  color: var(--mw-ink); margin: 0;
  font-size: clamp(30px, 3.6vw, 44px);
  text-wrap: balance;
}
.lede {
  font-size: clamp(16px, 1.35vw, 19px);
  color: var(--mw-ink-soft); line-height: 1.6; margin: 0;
  text-wrap: pretty;
}
.deck-italic {
  font-family: var(--mw-font-display);
  font-style: italic; font-weight: 400;
  color: var(--mw-ink-soft); line-height: 1.5;
}

/* ── Layout ──────────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 36px; }
section { position: relative; }

/* ── Icons ───────────────────────────────────────────────────────────────── */
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8;
      stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
/* Filled CTA — FLAT forest fill. Dimensionality from soft drop shadow + thin
   top rim only (per CLAUDE.md: no gradient / sheen / inner dome). */
.btn-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--mw-forest); color: #fff;
  border: none; border-radius: var(--mw-r-pill);
  font-family: var(--mw-font-sans); font-size: 15px; font-weight: 600;
  letter-spacing: 0.01em; padding: 15px 28px; cursor: pointer;
  white-space: nowrap; text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14),
              0 8px 22px rgba(44,70,50,0.26),
              0 2px 6px rgba(44,70,50,0.16);
  transition: background var(--mw-dur) var(--mw-ease),
              transform var(--mw-dur) var(--mw-ease),
              box-shadow var(--mw-dur) var(--mw-ease);
}
.btn-cta:hover {
  background: #24402A; color: #fff; transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14),
              0 14px 30px rgba(44,70,50,0.30),
              0 3px 8px rgba(44,70,50,0.18);
}
.btn-cta:active { transform: translateY(0) scale(0.99); }
.btn-cta.sm { padding: 10px 18px; font-size: 14px; }

/* Accent tweak → sage-emphasis CTAs */
[data-accent="sage"] .btn-cta {
  background: var(--mw-sage);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16),
              0 8px 22px rgba(84,105,79,0.28),
              0 2px 6px rgba(84,105,79,0.16);
}
[data-accent="sage"] .btn-cta:hover { background: var(--mw-sage-deep); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--mw-ink);
  border: 1px solid var(--mw-hairline); border-radius: var(--mw-r-pill);
  font-family: var(--mw-font-sans); font-size: 14px; font-weight: 600;
  padding: 10px 18px; cursor: pointer;
  transition: border-color var(--mw-dur) var(--mw-ease), color var(--mw-dur) var(--mw-ease);
}
.btn-ghost:hover { border-color: var(--mw-sage); color: var(--mw-sage); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: var(--mw-sage); font-size: 15px; cursor: pointer;
}
.link-arrow .arw { transition: transform .18s var(--mw-ease); }
.link-arrow:hover .arw { transform: translateX(3px); }

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  transition: background .28s var(--mw-ease), box-shadow .28s var(--mw-ease),
              border-color .28s var(--mw-ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--mw-paper) 82%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--mw-hairline);
  box-shadow: 0 1px 2px rgba(20,35,20,0.03);
}
.header-inner { display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.wordmark {
  font-family: var(--mw-font-display); font-weight: 600; font-size: 20px;
  letter-spacing: -0.01em; color: var(--mw-ink);
}
.wordmark .dot { color: var(--mw-sage); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--mw-ink-soft); font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--mw-sage); }
.header-actions { display: flex; align-items: center; gap: 14px; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { padding: clamp(48px, 8vw, 92px) 0 clamp(56px, 8vw, 96px); }
.hero-inner { display: grid; align-items: center; gap: clamp(36px, 5vw, 72px);
  grid-template-columns: 1.05fr 0.95fr; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero-copy .eyebrow { margin-bottom: -6px; }
.hero-copy .lede { max-width: 30em; }
.hero-sub {
  font-family: var(--mw-font-display);
  font-weight: 500; font-style: italic;
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.12; letter-spacing: -0.01em;
  color: var(--mw-sage-deep); margin: -12px 0 0;
}
.hero-media { display: flex; justify-content: center; position: relative; }

/* Waitlist form */
.waitlist { width: 100%; max-width: 480px; }
.waitlist-form { display: flex; gap: 10px; }
/* Honeypot: hidden from people, tempting to naive bots. Kept off-screen (not
   display:none) so field-filling bots still see it, out of tab order and the
   a11y tree for real users. If it comes back filled, the submission is dropped. */
.waitlist-hp {
  position: absolute !important;
  left: -9999px !important; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.waitlist input[type="email"] {
  flex: 1; min-width: 0;
  background: var(--mw-card); color: var(--mw-ink);
  border: 1px solid var(--mw-hairline); border-radius: var(--mw-r-pill);
  padding: 15px 20px; font-family: var(--mw-font-sans); font-size: 15px;
  box-shadow: 0 1px 2px rgba(20,35,20,0.04);
  transition: border-color .18s var(--mw-ease), box-shadow .18s var(--mw-ease);
}
.waitlist input[type="email"]::placeholder { color: var(--mw-muted); }
.waitlist input[type="email"]:focus {
  outline: none; border-color: var(--mw-sage);
  box-shadow: 0 0 0 3px rgba(84,105,79,0.15);
}
.waitlist-success {
  display: none; align-items: center; gap: 12px;
  background: var(--mw-wash); border-radius: var(--mw-r-md);
  padding: 16px 20px; color: var(--mw-sage-dark);
}
.waitlist-success .chk {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: var(--mw-sage); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.waitlist-success p { margin: 0; font-size: 14.5px; font-weight: 500; color: var(--mw-ink); }
.waitlist.done .waitlist-form { display: none; }
.waitlist.done .waitlist-success { display: flex; }
.waitlist-error {
  display: none; align-items: flex-start; gap: 10px;
  background: var(--mw-danger-bg); border-radius: var(--mw-r-md);
  padding: 14px 18px; margin-top: 10px;
}
.waitlist-error p { margin: 0; font-size: 14px; font-weight: 500; color: var(--mw-danger); }
.waitlist.error .waitlist-error { display: flex; }
.trust-line { font-size: 13.5px; color: var(--mw-muted); margin: 0; max-width: 34em; }

/* Hero direction B — centered, warm sage moment with basket accent */
.hero-basket { display: none; }
[data-hero="b"] .hero { background:
  radial-gradient(120% 90% at 50% 0%, var(--mw-wash) 0%, transparent 62%),
  var(--mw-paper); }
[data-hero="b"] .hero-inner {
  grid-template-columns: 1fr; justify-items: center; text-align: center;
  gap: clamp(28px, 4vw, 52px);
}
[data-hero="b"] .hero-copy { align-items: center; }
[data-hero="b"] .hero-copy .lede { max-width: 34em; }
[data-hero="b"] .waitlist-form { justify-content: center; }
[data-hero="b"] .trust-line { text-align: center; }
[data-hero="b"] .hero-media { margin-top: 4px; }
[data-hero="b"] .phone-glow { opacity: 1; }
[data-hero="b"] .hero-basket {
  display: block; position: absolute; width: 210px; right: -34px; bottom: -18px;
  transform: rotate(4deg); opacity: 0.96;
  filter: drop-shadow(0 18px 30px rgba(44,70,50,0.14));
  pointer-events: none;
}

/* ── Phone mockup ────────────────────────────────────────────────────────── */
.phone-stage { position: relative; }
.phone-glow {
  position: absolute; inset: -8% -12%; z-index: 0; opacity: 0;
  background: radial-gradient(60% 55% at 50% 45%, rgba(84,105,79,0.26), transparent 70%);
  filter: blur(20px); transition: opacity .4s var(--mw-ease); pointer-events: none;
}
.phone {
  position: relative; z-index: 1;
  width: 300px; height: 624px; flex-shrink: 0;
  background: #0D140F; border-radius: 46px; padding: 11px;
  box-shadow: 0 2px 6px rgba(13,20,15,0.30),
              0 30px 70px rgba(28,44,30,0.30),
              inset 0 0 0 2px rgba(255,255,255,0.04);
}
.phone-island {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px; border-radius: 14px; background: #0D140F; z-index: 6;
}
.phone-screen {
  position: relative; height: 100%; border-radius: 36px; overflow: hidden;
  background: var(--mw-paper);
}
/* Real app screenshot — fills the bezel exactly (source is 1179×2556).
   Absolutely pinned: a <picture> is inline by default and was collapsing,
   leaving a hairline of .phone-screen's paper background at the right edge. */
.phone-screen picture { position: absolute; inset: 0; display: block; }
.phone-shot { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center; }
.scr { position: absolute; inset: 0; padding: 0 15px; overflow: hidden; }

/* status bar */
.scr-status { display: flex; align-items: center; justify-content: space-between;
  height: 46px; padding: 0 6px; font-size: 13px; font-weight: 600; color: var(--mw-ink); }
.scr-status .dots { display: flex; align-items: center; gap: 5px; }
.scr-status .dots span { width: 15px; height: 11px; border-radius: 2px;
  border: 1.4px solid var(--mw-ink); opacity: 0.85; }
.scr-status .dots .sig { width: 16px; height: 11px; border: none;
  background: linear-gradient(90deg, var(--mw-ink) 70%, rgba(21,32,26,0.25) 70%); border-radius: 2px; }

/* glass pill nav */
.scr-nav { display: flex; justify-content: flex-end; padding: 0 2px 4px; }
.glass-pill {
  display: inline-flex; align-items: center; gap: 2px;
  background: rgba(255,255,255,0.82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-radius: 12px; padding: 5px 7px;
  box-shadow: 0 1px 3px rgba(20,35,20,0.10), inset 0 0.5px 0 rgba(255,255,255,0.7);
  color: var(--mw-ink-soft);
}
.glass-pill .ic { width: 18px; height: 18px; }
.glass-pill > span { padding: 4px; display: inline-flex; }

/* app head */
.scr-head { padding: 8px 4px 12px; }
.scr-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--mw-sage); margin: 0 0 5px; }
.scr-h1 { font-family: var(--mw-font-display); font-size: 23px; font-weight: 500;
  line-height: 1.2; letter-spacing: -0.01em; color: var(--mw-ink); margin: 0; }

/* search */
.scr-search { display: flex; align-items: center; gap: 8px;
  background: var(--mw-card); border: 1px solid var(--mw-hairline);
  border-radius: 10px; padding: 10px 12px; margin: 0 4px;
  box-shadow: 0 1px 2px rgba(20,35,20,0.04); color: var(--mw-muted); font-size: 13px; }
.scr-search .ic { width: 15px; height: 15px; }

/* kitchen feature */
.scr-kitchen { margin: 12px 4px 0; background: var(--mw-wash);
  border-radius: 16px; padding: 14px; }
.scr-kitchen .kf-top { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.scr-kitchen .kf-badge { width: 22px; height: 22px; border-radius: 7px; background: var(--mw-sage);
  display: flex; align-items: center; justify-content: center; color: #fff; }
.scr-kitchen .kf-badge .ic { width: 12px; height: 12px; }
.scr-kitchen .kf-eyebrow { font-size: 9.5px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--mw-muted); }
.scr-kitchen .kf-line { font-size: 14px; font-weight: 600; color: var(--mw-ink);
  line-height: 1.4; margin: 0 0 11px; }
.scr-kitchen .kf-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.scr-kitchen .kf-link { display: inline-flex; align-items: center; gap: 5px;
  color: var(--mw-sage); font-size: 13px; font-weight: 600; }
.mini-pill { display: inline-flex; align-items: center; gap: 4px;
  background: var(--mw-soft-sage); color: var(--mw-sage-dark);
  border-radius: 999px; padding: 4px 9px; font-size: 10.5px; font-weight: 500; }
.mini-pill .ic { width: 10px; height: 10px; }

/* recipe grid */
.scr-gridlabel { font-size: 9.5px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--mw-sage); margin: 18px 4px 10px; }
.scr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 4px; }
.scr-rc { background: var(--mw-card); border-radius: 12px; overflow: hidden;
  box-shadow: var(--mw-shadow-card); }
.scr-rc .thumb { height: 76px; display: flex; align-items: center; justify-content: center;
  position: relative; color: var(--mw-sage); }
.scr-rc .thumb.t-wash { background: #E7EEDF; }
.scr-rc .thumb.t-soft { background: #DEE8D2; color: var(--mw-sage-dark); }
.scr-rc .thumb .ph { width: 24px; height: 24px; opacity: 0.42; }
.scr-rc .thumb .heart { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px;
  border-radius: 50%; background: rgba(255,255,255,0.92); display: flex; align-items: center;
  justify-content: center; font-size: 11px; color: var(--mw-muted);
  box-shadow: 0 1px 2px rgba(0,0,0,0.10); }
.scr-rc .thumb .heart.on { color: var(--mw-fav); }
.scr-rc .rc-body { padding: 8px 9px 10px; }
.scr-rc .rc-title { font-size: 11.5px; font-weight: 500; color: var(--mw-ink);
  line-height: 1.28; margin: 0 0 6px; }
.scr-rc .rc-meta { display: flex; gap: 8px; font-size: 9.5px; color: var(--mw-muted); }
.scr-rc .rc-meta span { display: inline-flex; align-items: center; gap: 3px; }
.scr-rc .rc-meta .ic { width: 9px; height: 9px; }
.scr-rc .rc-meta .fl { color: var(--mw-warning); }

/* glass tab bar */
.scr-tabbar {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  width: 264px; height: 62px; border-radius: 999px; z-index: 5;
  background: rgba(255,255,255,0.68);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 12px 28px rgba(28,40,28,0.16),
              inset 0 1px 1px rgba(255,255,255,0.8);
  display: grid; grid-template-columns: repeat(4,1fr); padding: 0 6px;
}
.scr-tabbar .tab { display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px; color: var(--mw-muted); font-size: 9px; font-weight: 500;
  position: relative; }
.scr-tabbar .tab .ic { width: 21px; height: 21px; }
.scr-tabbar .tab.active { color: var(--mw-sage-deep); }
.scr-tabbar .tab.active span { font-weight: 600; }
.scr-tabbar .tab.active::before { content: ""; position: absolute; top: 8px; bottom: 8px;
  left: 50%; transform: translateX(-50%); width: 52px; border-radius: 999px;
  background: rgba(84,105,79,0.16); box-shadow: inset 0 1px 0 rgba(255,255,255,0.5); }
/* fade the screen content beneath the tab bar */
.scr-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 92px; z-index: 4;
  background: linear-gradient(to top, var(--mw-paper) 30%, transparent);
  pointer-events: none; }

/* ── Principles strip ────────────────────────────────────────────────────── */
.principles { padding: 8px 0 clamp(20px, 3vw, 36px); }
.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px; border-top: 1px solid var(--mw-hairline);
  border-bottom: 1px solid var(--mw-hairline); padding: 26px 0; }
.principle { display: flex; flex-direction: column; gap: 6px; }
.principle .eyebrow { font-size: 11px; }
.principle p { margin: 0; font-size: 14.5px; color: var(--mw-ink-soft); line-height: 1.5; }
.principle strong { color: var(--mw-ink); font-weight: 600; }

/* ── Section scaffolding ─────────────────────────────────────────────────── */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { max-width: 42rem; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head .lede { margin-top: 16px; }
[id] { scroll-margin-top: 88px; }

/* ── Features ────────────────────────────────────────────────────────────── */
.feature-lead {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(24px, 3vw, 40px);
  align-items: center;
  background: var(--mw-wash); border-radius: var(--mw-r-xl);
  padding: clamp(28px, 3vw, 44px); margin-bottom: 20px;
}
.feature-lead .fl-text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.feature-lead .fl-text .eyebrow { color: var(--mw-sage-deep); }
.feature-lead h3 { font-family: var(--mw-font-display); font-weight: 500;
  font-size: clamp(26px, 2.6vw, 34px); line-height: 1.12; letter-spacing: -0.01em;
  color: var(--mw-ink); margin: 0; }
.feature-lead p { margin: 0; color: var(--mw-ink-soft); font-size: 16px; line-height: 1.6; max-width: 32em; }
.fl-visual { display: flex; justify-content: center; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
  background: var(--mw-card); border: 1px solid var(--mw-hairline);
  border-radius: var(--mw-r-md); padding: 24px 22px 26px;
  box-shadow: var(--mw-shadow-card);
  transition: transform .18s var(--mw-ease), box-shadow .18s var(--mw-ease);
  display: flex; flex-direction: column; gap: 12px;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--mw-shadow-hover); }
.feature-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--mw-soft-sage);
  color: var(--mw-sage-deep); display: flex; align-items: center; justify-content: center; }
.feature-icon .ic { width: 21px; height: 21px; }
.feature-card h4 { font-family: var(--mw-font-display); font-size: 20px; font-weight: 500;
  line-height: 1.2; color: var(--mw-ink); margin: 2px 0 0; }
.feature-card p { margin: 0; font-size: 14.5px; color: var(--mw-ink-soft); line-height: 1.55; }

/* ── AI demo ─────────────────────────────────────────────────────────────── */
/* 40/60: heading + chips left, the recipe card right, tops aligned. */
.demo-grid { display: grid; grid-template-columns: 40fr 60fr; gap: clamp(24px, 3vw, 44px);
  align-items: start; }
.demo-prompt-col { display: flex; flex-direction: column; gap: 18px; }
/* Head now lives inside the left column, so it shouldn't reserve full-width margins */
.demo-head { max-width: none; margin-bottom: 6px; }
.demo-head .lede { max-width: none; }
.demo-chips { display: flex; flex-direction: column; gap: 10px; }
.demo-chip {
  text-align: left; background: var(--mw-card); border: 1px solid var(--mw-hairline);
  border-radius: var(--mw-r-md); padding: 15px 18px; cursor: pointer;
  font-family: var(--mw-font-sans); font-size: 14.5px; color: var(--mw-ink-soft);
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 1px 2px rgba(20,35,20,0.03);
  transition: border-color .18s var(--mw-ease), background .18s var(--mw-ease), color .18s var(--mw-ease);
}
.demo-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mw-hairline);
  flex-shrink: 0; transition: background .18s var(--mw-ease); }
.demo-chip:hover { border-color: color-mix(in srgb, var(--mw-sage) 45%, var(--mw-hairline)); }
.demo-chip.active { background: var(--mw-wash); border-color: transparent; color: var(--mw-ink); font-weight: 500; }
.demo-chip.active .dot { background: var(--mw-sage); }
.demo-hint { font-size: 13px; color: var(--mw-muted); margin: 0; display: inline-flex;
  align-items: center; gap: 8px; }
.demo-hint .ic { width: 15px; height: 15px; color: var(--mw-sage); }

/* generated recipe card */
.demo-card {
  background: var(--mw-card); border: 1px solid var(--mw-hairline);
  border-radius: var(--mw-r-lg); overflow: hidden; box-shadow: var(--mw-shadow-card);
  transition: opacity .2s var(--mw-ease), transform .2s var(--mw-ease);
}
.demo-card.swapping { opacity: 0; transform: translateY(6px); }

/* Photo: real dish photography, not a placeholder wash.
   Fixed height, NO aspect-ratio. Never pair max-height with aspect-ratio here:
   the browser preserves the ratio by shrinking the WIDTH, which exposes the card's
   white background to the right of the image. A definite height is safe. */
.demo-photo { width: 100%; height: 300px; position: relative;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 38% 36%, rgba(110,135,112,0.22), transparent 60%),
    linear-gradient(135deg, #E7EEDF 0%, #DCE6D2 100%);
  color: var(--mw-sage); }
.demo-photo .ph { width: 40px; height: 40px; opacity: 0.4; }
.demo-photo .gen-tag { position: absolute; top: 14px; left: 16px;
  background: rgba(255,255,255,0.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-radius: 999px; padding: 5px 11px; font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--mw-sage-deep);
  display: inline-flex; align-items: center; gap: 6px; }
.demo-photo .gen-tag .ic { width: 12px; height: 12px; }

/* The dish photo itself, filling the frame behind the card */
.demo-photo .dish { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; z-index: 0; }
.demo-photo .gen-tag { z-index: 2; }

/* Content card rides up over the photo, as it does in the app */
.demo-body { position: relative; z-index: 1;
  margin-top: -34px; padding: 26px 24px 24px;
  background: var(--mw-card);
  border-radius: var(--mw-r-lg) var(--mw-r-lg) 0 0;
}
.demo-body h3 { font-family: var(--mw-font-display); font-size: clamp(21px, 2vw, 26px);
  font-weight: 500; line-height: 1.16; letter-spacing: -0.005em; color: var(--mw-ink); margin: 0 0 8px; }
.demo-body .demo-deck { margin: 0 0 16px; }
.demo-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--mw-muted);
  margin-bottom: 14px; }
.demo-meta span { display: inline-flex; align-items: center; gap: 5px; }
.demo-meta .ic { width: 14px; height: 14px; }
.demo-meta .fl { color: var(--mw-warning); }
.demo-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.pill { display: inline-flex; align-items: center; gap: 4px; background: var(--mw-soft-sage);
  color: var(--mw-sage-dark); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 500; }
.demo-callout { display: flex; gap: 11px; align-items: flex-start;
  background: var(--mw-success-bg); border-radius: var(--mw-r); padding: 12px 14px; }
.demo-callout .co-ic { width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  background: rgba(84,105,79,0.16); color: var(--mw-sage-deep);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.demo-callout p { margin: 0; font-size: 13px; color: var(--mw-ink-soft); line-height: 1.5; }
.demo-callout strong { color: var(--mw-sage-deep); font-weight: 600; }

/* ── How it works ────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 44px); }
.step { display: flex; flex-direction: column; gap: 12px; }
.step .num { font-family: var(--mw-font-display); font-size: 42px; font-weight: 500;
  color: var(--mw-sage); line-height: 1; letter-spacing: -0.02em; }
.step-divider { height: 1px; background: var(--mw-hairline); margin: 4px 0; }
.step h4 { font-family: var(--mw-font-display); font-size: 22px; font-weight: 500;
  line-height: 1.2; color: var(--mw-ink); margin: 0; }
.step p { margin: 0; font-size: 15px; color: var(--mw-ink-soft); line-height: 1.6; }

/* ── Closing CTA band ────────────────────────────────────────────────────── */
.closing { padding: clamp(20px, 4vw, 48px) 0 clamp(56px, 8vw, 96px); }
.closing-band {
  background: var(--mw-wash); border-radius: var(--mw-r-2xl);
  padding: clamp(44px, 6vw, 76px) clamp(28px, 5vw, 72px);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px;
  position: relative; overflow: hidden;
}
.closing-band .display { font-size: clamp(32px, 4vw, 52px); }
.closing-band .lede { max-width: 32em; }
.closing-band .waitlist { max-width: 500px; }
.closing-band .waitlist-form { justify-content: center; }
.closing-band .waitlist-success { background: var(--mw-card); }
.closing-band .trust-line { text-align: center; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--mw-hairline); padding: 48px 0 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  align-items: flex-start; }
.footer-brand { max-width: 26em; display: flex; flex-direction: column; gap: 12px; }
.footer-brand .wordmark { font-size: 22px; }
.footer-brand p { margin: 0; font-size: 14px; color: var(--mw-muted); line-height: 1.55; }
.footer-right { display: flex; flex-direction: column; gap: 14px; align-items: flex-end; }
.footer-right .avail { font-size: 13px; color: var(--mw-ink-soft); }
.store-badges { display: flex; gap: 10px; }
.store-badge { display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--mw-hairline); border-radius: 12px; padding: 9px 14px;
  color: var(--mw-ink-soft); font-size: 12.5px; }
.store-badge .ic { width: 18px; height: 18px; color: var(--mw-sage); }
.store-badge b { font-weight: 600; color: var(--mw-ink); font-size: 13.5px; display: block; line-height: 1.1; }
.store-badge small { color: var(--mw-muted); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--mw-hairline);
  font-size: 12.5px; color: var(--mw-muted); }

/* Legal — entity name + policy links (required for the Apple org account) */
.footer-brand .footer-legal { font-size: 13px; color: var(--mw-muted); line-height: 1.55; }
.footer-brand .footer-legal strong { color: var(--mw-ink-soft); font-weight: 600; }
.footer-brand .footer-legal a { color: var(--mw-ink-soft); text-decoration: none;
  border-bottom: 1px solid var(--mw-hairline); }
.footer-brand .footer-legal a:hover { color: var(--mw-sage); border-bottom-color: var(--mw-sage); }
.footer-links { display: inline-flex; gap: 18px; }
.footer-links a { color: var(--mw-muted); text-decoration: none; }
.footer-links a:hover { color: var(--mw-sage); text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .hero-copy { align-items: center; }
  .hero-copy .lede { max-width: 34em; }
  .waitlist { display: flex; flex-direction: column; align-items: center; }
  .waitlist-form { justify-content: center; width: 100%; }
  .feature-lead { grid-template-columns: 1fr; }
  .fl-visual { display: none; }
  .demo-grid { grid-template-columns: 1fr; }
  /* Card goes full-width here, so bring the photo down a touch.
     Never use max-height + aspect-ratio: it shrinks the width and exposes the card. */
  .demo-photo { height: 240px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .wrap { padding: 0 22px; }
  .nav-links { display: none; }
  .principles-grid { grid-template-columns: 1fr; gap: 18px; }
  .steps { grid-template-columns: 1fr; }
  .footer-right { align-items: flex-start; }
  [data-hero="b"] .hero-basket { display: none; }
}
@media (max-width: 520px) {
  .feature-grid { grid-template-columns: 1fr; }
  .waitlist-form { flex-direction: column; }
  .waitlist input[type="email"] { width: 100%; }
  .waitlist .btn-cta { width: 100%; }
  .phone { transform: scale(0.92); }
}

/* Respect the brand's "recipes appear, they don't perform" rule */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
