/* ==========================================================================
   Amari — landing page styles
   Principles: system type with size-specific tracking, translucent chrome,
   restrained color, instant press feedback, full a11y media-query support.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;

  --bg: #FCFAF8;
  --bg-tint: #F1F6EF;
  --surface: #FFFFFF;
  --surface-2: #F2F6F0;
  --ink: #0B0B0C;
  --ink-2: #3A3A3F;
  --ink-3: #66666C;
  --line: rgba(17, 12, 6, 0.08);
  --line-strong: rgba(17, 12, 6, 0.16);

  --accent: #2F7D32;
  --accent-2: #4CAF50;
  --accent-text: #1B5E20;      /* ≥ 4.5:1 on white and on --accent-soft */
  --accent-soft: #E8F5E9;
  --accent-grad: linear-gradient(135deg, #388E3C 0%, #1B5E20 100%);
  --green: #15803D;
  --switch-on: #34C759;
  --focus: #2F7D32;

  --btn-bg: #2F7D32;   /* white text 5.1:1 */
  --btn-ink: #FFFFFF;
  --btn-bg-hover: #276A2A;

  --material: rgba(252, 250, 248, 0.72);
  --material-edge: rgba(255, 255, 255, 0.6);

  --shadow-sm: 0 1px 2px rgba(16, 32, 18, 0.05), 0 2px 8px rgba(16, 32, 18, 0.04);
  --shadow-md: 0 2px 6px rgba(16, 32, 18, 0.05), 0 12px 32px rgba(16, 32, 18, 0.07);
  --shadow-lg: 0 4px 12px rgba(16, 32, 18, 0.06), 0 30px 60px rgba(16, 32, 18, 0.10);

  --r-sm: 0.75rem;
  --r-md: 1.25rem;
  --r-lg: 1.75rem;
  --r-xl: 2.5rem;

  --maxw: 77.5rem;   /* 1240px */
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 4.5rem;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

:root:not([data-theme="light"]) {
  /* dark tokens applied via media query below */
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0B0C;
    --bg-tint: #111113;
    --surface: #18181B;
    --surface-2: #202024;
    --ink: #F5F5F7;
    --ink-2: #D1D1D6;
    --ink-3: #A1A1A6;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.18);
    --accent-text: #81C784;
    --accent-soft: rgba(102, 187, 106, 0.16);
    --accent-grad: linear-gradient(135deg, #A5D6A7 0%, #66BB6A 100%);
    --green: #4ADE80;
    --switch-on: #30D158;
    --focus: #81C784;
    --btn-bg: #2F7D32;
    --btn-ink: #FFFFFF;
    --material: rgba(18, 18, 20, 0.7);
    --material-edge: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.35), 0 12px 32px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.4), 0 30px 60px rgba(0, 0, 0, 0.5);
  }
}

:root[data-theme="dark"] {
  --bg: #0B0B0C; --bg-tint: #111113; --surface: #18181B; --surface-2: #202024;
  --ink: #F5F5F7; --ink-2: #D1D1D6; --ink-3: #A1A1A6;
  --line: rgba(255, 255, 255, 0.09); --line-strong: rgba(255, 255, 255, 0.18);
  --accent-text: #81C784; --accent-soft: rgba(102, 187, 106, 0.16);
  --accent-grad: linear-gradient(135deg, #A5D6A7 0%, #66BB6A 100%);
  --green: #4ADE80; --switch-on: #30D158; --focus: #81C784;
  --btn-bg: #2F7D32; --btn-ink: #FFFFFF;
  --material: rgba(18, 18, 20, 0.7); --material-edge: rgba(255, 255, 255, 0.08);
}

/* ---------- Base ---------- */
::selection { background: rgba(76, 175, 80, 0.28); }
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.5 var(--font); /* 17px — Apple body size */
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

.ico {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.not-found { min-height: 100vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 1.25rem; }
.not-found-text { color: var(--ink-2); }

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

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

.skip-link {
  position: fixed; top: 0.75rem; left: 0.75rem; z-index: 100;
  padding: 0.75rem 1rem; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-ink); font-weight: 600;
  transform: translateY(-200%);
  transition: transform 200ms var(--ease-out);
}
.skip-link:focus-visible { transform: none; }

.accent-text {
  color: var(--accent-text);
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0 1.35rem;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; letter-spacing: -0.01em;
  cursor: pointer; white-space: nowrap;
  transition: transform 100ms ease-out, background-color 200ms ease, box-shadow 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active, .store-badge:active, .round-btn:active, .heart-btn:active { transform: scale(0.97); }
.btn-sm { min-height: 2.75rem; padding: 0 1.25rem; }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { box-shadow: var(--shadow-md); background: var(--btn-bg-hover, var(--btn-bg)); }
.btn-primary .ico { width: 1.1em; height: 1.1em; margin-top: -0.1em; }
.btn-secondary { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-secondary:hover { background: var(--surface-2); }

.round-btn {
  display: inline-grid; place-items: center;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 100ms ease-out, opacity 200ms ease, background-color 200ms ease;
}
.round-btn:hover { background: var(--surface-2); }
.round-btn[aria-disabled="true"] { opacity: 0.35; cursor: default; transform: none; }
.round-btn--sm { width: 2.75rem; height: 2.75rem; }

/* ---------- Header (translucent material) ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background-color 250ms ease, box-shadow 250ms ease, backdrop-filter 250ms ease;
}
.site-header.is-scrolled {
  background: var(--material);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--line);
}
.nav {
  height: 100%;
  display: flex; align-items: center; gap: 2rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; flex: none; border-radius: 0.75rem; }
.brand-name { font-size: 1.85rem; font-weight: 700; letter-spacing: -0.035em; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 2.75rem; height: 2.75rem; border-radius: 0.8rem;
  background: linear-gradient(160deg, #4CAF50 0%, #2F7D32 60%, #1B5E20 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 4px 12px rgba(47, 125, 50, 0.28);
}
.brand-mark svg { width: 62%; height: 62%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark--sm { width: 2rem; height: 2rem; border-radius: 0.6rem; }
.brand-mark--lg { width: 4rem; height: 4rem; border-radius: 1.1rem; }

.nav-menu { flex: 1; display: flex; align-items: center; gap: 2rem; }
.nav-links { flex: 1; display: flex; justify-content: center; gap: clamp(1.25rem, 3.5vw, 3.5rem); }
.nav-links a {
  display: inline-block; padding: 0.5rem 0.25rem;
  font-size: 1.0625rem; font-weight: 500; color: var(--ink);
  border-radius: 0.5rem;
  transition: color 150ms ease, opacity 150ms ease;
}
.nav-links a:hover { color: var(--accent-text); }
.nav-links a:active { opacity: 0.6; }
.nav-actions { display: flex; gap: 0.75rem; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--surface);
  place-items: center; cursor: pointer;
  transition: transform 100ms ease-out;
}
.nav-toggle:active { transform: scale(0.94); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2rem, 5vw, 3.5rem));
  padding-bottom: 6rem;
  overflow: clip;
  background:
    radial-gradient(60rem 40rem at 85% 30%, rgba(76, 175, 80, 0.10), transparent 60%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
}
.hero-copy { position: relative; z-index: 2; padding-bottom: 3rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.01em;
}
.eyebrow .ico { color: var(--accent); width: 1.3em; height: 1.3em; }

.display {
  margin-top: 1.75rem;
  font-size: clamp(3.25rem, 5.5vw, 5.75rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
}
@media (min-width: 961px) { .display-line { white-space: nowrap; } }
.display-line { display: block; padding-bottom: 0.04em; }

.lede {
  margin-top: 1.75rem;
  max-width: 34rem;
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  line-height: 1.45;
  letter-spacing: -0.012em;
  color: var(--ink-2);
}

.store-badges { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.store-badges--center { justify-content: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: 0.75rem;
  min-height: 3.75rem; padding: 0 1.4rem 0 1.15rem;
  border-radius: 0.9rem;
  border: 1px solid transparent;
  transition: transform 100ms ease-out, box-shadow 200ms ease, background-color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.store-badge span { display: grid; line-height: 1.1; text-align: left; }
.store-badge small { font-size: 0.75rem; font-weight: 500; letter-spacing: 0; }
.store-badge strong { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; }
.store-icon { width: 2rem; height: 2rem; flex: none; fill: currentColor; }
.store-badge--dark { background: #0B0B0C; color: #fff; box-shadow: var(--shadow-sm); }
.store-badge--dark:hover { box-shadow: var(--shadow-md); }
.store-badge--light { background: #fff; color: #0B0B0C; border-color: rgba(0,0,0,0.14); box-shadow: var(--shadow-sm); }
.store-badge--light:hover { box-shadow: var(--shadow-md); }
.store-badge--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.store-badge--outline:hover { background: rgba(255,255,255,0.08); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero .store-badge--dark { background: #fff; color: #0B0B0C; }
  :root:not([data-theme="light"]) .hero .store-badge--light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.3); }
}

.value-props {
  margin-top: 2.75rem;
  display: flex; flex-wrap: wrap; align-items: center;
  row-gap: 1rem;
}
.value-props li {
  display: flex; align-items: center; gap: 0.85rem;
  padding-right: clamp(1rem, 2.4vw, 2rem);
  margin-right: clamp(1rem, 2.4vw, 2rem);
  border-right: 1px solid var(--line-strong);
  font-size: 1.0625rem; line-height: 1.35; color: var(--ink-2);
}
.value-props li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.value-props .ico { width: 1.75rem; height: 1.75rem; color: var(--accent); }

/* Hero visual — phone + produce */
.hero-visual {
  position: relative;
  min-height: 40rem;
  perspective: 1800px;
}
.hero-backdrop {
  position: absolute;
  left: 14%; right: -4%; top: 12%; bottom: -6%;
  border-radius: 3.5rem;
  background: linear-gradient(170deg, #C8E6C9 0%, #81C784 45%, #43A047 100%);
  transform: rotate(12deg);
  opacity: 0.92;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-backdrop { opacity: 0.85; background: linear-gradient(170deg, #81C784 0%, #4CAF50 55%, #2E7D32 100%); }
}

.phone-stage {
  --rx: 0deg; --ry: 0deg;
  position: absolute;
  left: 50%; top: 1rem;
  font-size: 15px;
  translate: -46% 0;
  transform-style: preserve-3d;
  transform: rotateX(calc(6deg + var(--rx))) rotateY(calc(-10deg + var(--ry))) rotateZ(8deg);
  will-change: transform;
}

.phone {
  position: relative;
  width: 21em; height: 44em;
  padding: 0.6em;
  border-radius: 3.4em;
  background: linear-gradient(145deg, #3A3A3E 0%, #121214 45%, #1D1D20 100%);
  box-shadow:
    inset 0 0 0 0.12em #59595e,
    inset 0 0 0 0.3em #1a1a1c,
    0.45em 0.35em 0 -0.05em #2a2a2d,
    1.2em 2em 3.5em rgba(20, 50, 22, 0.28),
    3em 5em 6em rgba(20, 50, 22, 0.18);
}
.phone::before, .phone::after { /* side buttons */
  content: ""; position: absolute; width: 0.3em; border-radius: 0.2em; background: #2a2a2d;
}
.phone::before { left: -0.22em; top: 8em; height: 3.2em; box-shadow: 0 4.5em 0 #2a2a2d; }
.phone::after { right: -0.22em; top: 11em; height: 5em; }

.phone-screen {
  position: relative; height: 100%;
  border-radius: 2.85em;
  overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, #FBF7F3 100%);
  color: #0B0B0C;
  padding: 0.9em 1.25em 0;
  font-size: 1em; line-height: 1.3;
  letter-spacing: -0.01em;
}
.phone-status {
  display: flex; align-items: center; justify-content: space-between;
  height: 2.2em; padding: 0 0.6em;
  font-weight: 600; font-size: 0.95em;
}
.phone-island { width: 7.2em; height: 2.1em; border-radius: 999px; background: #000; }
.phone-indicators { display: inline-flex; gap: 0.18em; align-items: flex-end; }
.phone-indicators i { display: block; width: 0.28em; background: #0B0B0C; border-radius: 0.1em; }
.phone-indicators i:nth-child(1) { height: 0.5em; }
.phone-indicators i:nth-child(2) { height: 0.7em; }
.phone-indicators i:nth-child(3) { width: 1.4em; height: 0.7em; border-radius: 0.2em; margin-left: 0.3em; }

.app-header { margin-top: 1.4em; display: flex; align-items: center; justify-content: space-between; }
.app-brand { display: inline-flex; align-items: center; gap: 0.5em; font-size: 1.35em; font-weight: 700; letter-spacing: -0.03em; }
.app-brand .brand-mark--sm { width: 1.55em; height: 1.55em; border-radius: 0.45em; box-shadow: none; }
.app-icon-btn {
  display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.app-greeting { margin-top: 1.4em; font-size: 1.45em; font-weight: 700; letter-spacing: -0.03em; }
.app-sub { margin-top: 0.2em; color: #4A4A4F; font-size: 0.95em; }

.app-snap-card {
  position: relative;
  margin-top: 1.2em;
  padding: 1.3em 3.5em 1.3em 1.3em;
  border-radius: 1.4em;
  background: linear-gradient(160deg, #EDF7EE 0%, #CFE8D0 100%);
}
.app-snap-icon { width: 2.1em; height: 2.1em; color: #2F7D32; stroke-width: 2; }
.app-snap-title { margin-top: 0.7em; font-weight: 700; font-size: 1.1em; letter-spacing: -0.02em; }
.app-snap-text { margin-top: 0.4em; font-size: 0.8em; color: #2E3B2F; line-height: 1.4; }
.app-snap-go {
  position: absolute; right: 1em; top: 50%; translate: 0 -10%;
  display: grid; place-items: center; width: 2.3em; height: 2.3em; border-radius: 50%;
  background: #fff; color: #2F7D32; box-shadow: 0 2px 8px rgba(30,90,34,0.18);
}
.app-row-head { margin-top: 1.4em; display: flex; justify-content: space-between; align-items: baseline; }
.app-row-head span:first-child { font-weight: 700; font-size: 1.1em; letter-spacing: -0.02em; }
.app-see-all { color: #1B5E20; font-weight: 600; font-size: 0.9em; }
.app-meals { margin-top: 0.8em; display: flex; gap: 0.8em; }
.app-meal {
  flex: none; width: 15em; padding: 0.4em 0.4em 0.9em;
  border-radius: 1.3em; background: #fff;
  box-shadow: 0 2px 10px rgba(20, 40, 22, 0.08);
}
.app-meal--peek { width: 6em; }
.app-meal-img { position: relative; border-radius: 1em; overflow: hidden; aspect-ratio: 4 / 3; }
.app-meal-img img { width: 100%; height: 100%; object-fit: cover; }
.app-heart { position: absolute; top: 0.5em; left: 0.5em; color: #fff; }
.app-heart .ico { width: 1.5em; height: 1.5em; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35)); }
.app-time {
  position: absolute; left: 0.5em; bottom: 0.5em;
  padding: 0.2em 0.6em; border-radius: 999px;
  background: rgba(255,255,255,0.92); font-size: 0.75em; font-weight: 600;
}
.app-meal-title { margin: 0.7em 0.4em 0; font-weight: 700; font-size: 0.98em; letter-spacing: -0.02em; }
.app-meal-sub { margin: 0.2em 0.4em 0; font-size: 0.78em; color: #4A4A4F; }
.app-meal-sub b { color: #15803D; font-weight: 600; }

.produce {
  position: absolute; z-index: 3;
  filter: drop-shadow(0 1.25rem 1.5rem rgba(20, 40, 20, 0.22));
  will-change: transform;
  pointer-events: none;
  user-select: none;
}
.produce--tomato { width: clamp(6.5rem, 10vw, 9.5rem); left: 2%; top: 8%; }
.produce--basil { width: clamp(6rem, 9vw, 8.5rem); left: -2%; top: 52%; rotate: -18deg; z-index: 1; }
.produce--avocado { width: clamp(9rem, 14vw, 13rem); right: -7%; top: 56%; rotate: 6deg; }

/* ---------- Steps strip ---------- */
.steps-section { position: relative; z-index: 5; margin-top: -5rem; }
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 2.25rem clamp(1.25rem, 3vw, 2.75rem);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.step {
  display: flex; gap: 1.25rem; align-items: flex-start;
  padding: 0.25rem clamp(1rem, 3vw, 2.5rem);
  border-left: 1px solid var(--line);
}
.step:first-child { border-left: 0; padding-left: 0; }
.step:last-child { padding-right: 0; }
.step-icon { color: var(--accent); }
.step-icon .ico { width: 3rem; height: 3rem; stroke-width: 1.5; }
.step h3 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; }
.step p { margin-top: 0.5rem; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.5; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(5rem, 10vw, 8.5rem); }
.section--tint { background: var(--bg-tint); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--row {
  max-width: none;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
}
.kicker {
  font-size: 1.0625rem; font-weight: 600; color: var(--accent-text);
  letter-spacing: -0.005em;
}
.h2 {
  margin-top: 0.6rem;
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.section-lede { margin-top: 1.25rem; font-size: clamp(1.125rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--ink-2); letter-spacing: -0.012em; }

/* ---------- Features bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "see see diet"
    "cook pantry waste";
  gap: 1.25rem;
}
.tile {
  position: relative;
  display: flex; flex-direction: column;
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.tile:nth-child(1) { grid-area: see; }
.tile:nth-child(2) { grid-area: diet; }
.tile:nth-child(3) { grid-area: cook; }
.tile:nth-child(4) { grid-area: pantry; }
.tile:nth-child(5) { grid-area: waste; }
.tile-icon {
  display: inline-grid; place-items: center;
  width: 3rem; height: 3rem; border-radius: 0.9rem;
  background: var(--accent-soft); color: var(--accent-text);
}
.tile-icon .ico { width: 1.5rem; height: 1.5rem; }
.tile h3 { margin-top: 1.25rem; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; }
.tile p { margin-top: 0.6rem; color: var(--ink-2); line-height: 1.5; max-width: 34rem; }

.chips { margin-top: auto; padding-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.9rem 0.5rem 0.7rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 0.9375rem; font-weight: 500;
}
.chip .ico { width: 1.05rem; height: 1.05rem; color: var(--green); stroke-width: 2.4; }

.toggles { margin-top: auto; padding-top: 1.5rem; display: grid; gap: 0.15rem; }
.toggles li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 0; border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.toggles li:last-child { border-bottom: 0; }
.switch {
  position: relative; width: 3.1rem; height: 1.9rem; border-radius: 999px;
  background: var(--line-strong);
  transition: background-color 200ms ease;
}
.switch::after {
  content: ""; position: absolute; top: 0.15rem; left: 0.15rem;
  width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.switch.is-on { background: var(--switch-on); }
.switch.is-on::after { left: auto; right: 0.15rem; }

.cook-mode {
  margin-top: auto; padding: 1.25rem;
  margin-top: 1.75rem;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.cook-progress { display: flex; gap: 0.35rem; }
.cook-progress i { flex: 1; height: 0.3rem; border-radius: 999px; background: var(--line-strong); }
.cook-progress i.done { background: var(--accent); }
.cook-progress i.now { background: linear-gradient(90deg, var(--accent) 45%, var(--line-strong) 45%); }
.cook-step { margin-top: 1rem; font-size: 0.875rem; font-weight: 600; color: var(--accent-text); }
.tile .cook-text { margin-top: 0.3rem; font-size: 1.15rem; font-weight: 600; color: var(--ink); letter-spacing: -0.015em; line-height: 1.3; }
.tile .cook-timer {
  margin-top: 0.9rem; display: inline-flex; align-items: center; gap: 0.4rem;
  font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink);
}

.meters, .use-first { margin-top: auto; padding-top: 1.5rem; display: grid; gap: 0.15rem; }
.meters li, .use-first li {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 0; border-bottom: 1px solid var(--line);
  font-size: 0.9375rem; font-weight: 500;
}
.meters li:last-child, .use-first li:last-child { border-bottom: 0; }
.meters li > span:first-child { width: 4.75rem; flex: none; }
.meter { flex: 1; height: 0.4rem; border-radius: 999px; background: var(--line); position: relative; overflow: hidden; }
.meter::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--level) * 100%); border-radius: inherit; background: var(--green); }
.meter--low::after { background: #E8A317; }
.meter--15 { --level: 0.15; }
.meter--50 { --level: 0.5; }
.meter--80 { --level: 0.8; }
.meter-val { width: 6.25rem; flex: none; text-align: right; color: var(--ink-3); font-size: 0.875rem; }
.dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--green); flex: none; }
.dot--soon { background: #F5A524; }
.dot--now { background: #E0352B; }
.when { margin-left: auto; color: var(--ink-3); font-size: 0.875rem; font-variant-numeric: tabular-nums; }

/* ---------- Recipes carousel ---------- */
.carousel-controls { display: flex; gap: 0.75rem; flex: none; }
.carousel { --edge: max(var(--gutter), calc((100vw - var(--maxw)) / 2)); }
.carousel-viewport {
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  padding-block: 0.75rem 2rem;
  border-radius: 0;
}
.carousel-viewport.is-dragging { cursor: grabbing; }
.carousel-viewport:focus-visible { outline-offset: -3px; border-radius: var(--r-md); }
.carousel-track {
  display: flex; gap: 1.25rem;
  width: max-content;
  padding-inline: var(--edge);
  will-change: transform;
}
.recipe-card {
  position: relative;
  width: clamp(16.5rem, 26vw, 21rem);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 300ms var(--ease-out);
}
.recipe-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.recipe-img img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.recipe-body { padding: 1.15rem 1.35rem 1.4rem; }
.recipe-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-size: 0.9375rem; color: var(--ink-3); }
.recipe-meta span:first-child { display: inline-flex; align-items: center; gap: 0.35rem; font-variant-numeric: tabular-nums; }
.recipe-meta .ico { width: 1.05rem; height: 1.05rem; }
.tag {
  padding: 0.2rem 0.65rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-text);
  font-size: 0.8125rem; font-weight: 600;
}
.recipe-card h3 { margin-top: 0.7rem; font-size: 1.3rem; font-weight: 700; letter-spacing: -0.022em; line-height: 1.25; }
.recipe-uses { margin-top: 0.35rem; color: var(--ink-3); font-size: 0.9375rem; }
.recipe-uses b { color: var(--green); font-weight: 600; }

.heart-btn {
  position: absolute; top: 0.85rem; right: 0.85rem;
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.45);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  backdrop-filter: blur(14px) saturate(180%);
  color: #1d1d1f;
  cursor: pointer;
  transition: transform 100ms ease-out, color 150ms ease;
}
.heart-btn .ico { width: 1.3rem; height: 1.3rem; transition: fill 150ms ease; }
.heart-btn[aria-pressed="true"] { color: #E0352B; }
.heart-btn[aria-pressed="true"] .ico { fill: currentColor; }
.heart-btn.pop .ico { animation: heart-pop 380ms cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes heart-pop { 0% { transform: scale(0.6); } 100% { transform: scale(1); } }

/* ---------- Download CTA ---------- */
.cta {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: var(--r-xl);
  background:
    radial-gradient(40rem 22rem at 50% 120%, rgba(165, 214, 167, 0.22), transparent 70%),
    linear-gradient(160deg, #2E7D32 0%, #1B5E20 100%);
  color: #F5F5F7;
  isolation: isolate;
}
.cta .h2 { margin-top: 1.75rem; max-width: 44rem; }
.cta > p { margin-top: 1.1rem; max-width: 36rem; color: #E3F1E4; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); }
.cta .store-badges { margin-top: 2.25rem; }
.cta .cta-note { margin-top: 1.5rem; font-size: 0.9375rem; color: #C8E6C9; }
.cta .brand-mark { background: #fff; color: #2F7D32; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); }
.cta-produce { position: absolute; z-index: -1; pointer-events: none; filter: drop-shadow(0 1rem 1.5rem rgba(0,0,0,0.35)); }
.cta-produce--tomato { width: clamp(6rem, 12vw, 10rem); left: -1.5rem; bottom: -1.5rem; rotate: -12deg; }
.cta-produce--basil { width: clamp(6rem, 11vw, 9rem); right: -1rem; top: 1.5rem; rotate: 30deg; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cta { border: 1px solid rgba(255, 255, 255, 0.08); }
}

/* ---------- Footer ---------- */
.site-footer { padding-block: 2.5rem 3rem; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2.5rem; }
.footer-inner .brand-name { font-size: 1.35rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; }
.footer-links a { display: inline-block; padding: 0.5rem 0; color: var(--ink-2); font-size: 0.9375rem; }
.footer-links a:hover { color: var(--ink); }
.footer-note { flex: 1; min-width: 14rem; text-align: right; color: var(--ink-3); font-size: 0.875rem; }

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { gap: 1.5rem; }
  .nav-actions .btn-secondary { display: none; }
  .hero-visual { min-height: 36rem; }
  .phone-stage { font-size: 13.5px; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-grid; }
  .nav-menu {
    position: fixed;
    top: calc(var(--header-h) - 0.25rem); right: var(--gutter); left: var(--gutter);
    flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 1rem;
    border-radius: var(--r-lg);
    background: var(--material);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform-origin: top right; /* grows from the menu button */
    opacity: 0; transform: scale(0.92) translateY(-0.5rem);
    visibility: hidden;
    transition: opacity 200ms ease, transform 300ms var(--ease-out), visibility 0s linear 300ms;
  }
  .nav-menu.is-open {
    opacity: 1; transform: none; visibility: visible;
    transition: opacity 200ms ease, transform 300ms var(--ease-out), visibility 0s;
  }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { display: block; padding: 0.85rem 0.75rem; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
  .nav-actions { flex-direction: column; }
  .nav-actions .btn-secondary { display: inline-flex; }
  .nav-actions .btn { min-height: 3rem; }

  .hero { padding-bottom: 5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding-bottom: 1rem; }
  .hero-visual { min-height: 34rem; max-width: 34rem; width: 100%; margin-inline: auto; }
  .phone-stage { font-size: 12.5px; }

  .steps { grid-template-columns: 1fr; padding-block: 0.75rem; }
  .step { border-left: 0; border-top: 1px solid var(--line); padding: 1.5rem 0; }
  .step:first-child { border-top: 0; }

  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "see see" "diet cook" "pantry waste"; }
  .br-wide { display: none; }
}

@media (max-width: 640px) {
  :root { --header-h: 4rem; }
  .brand-name { font-size: 1.6rem; }
  .brand-mark { width: 2.4rem; height: 2.4rem; }
  .value-props { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
  .value-props li {
    flex-direction: column; align-items: flex-start; gap: 0.5rem;
    margin: 0; padding: 0 0.75rem 0 0; font-size: 0.9375rem;
  }
  .value-props .ico { width: 1.4rem; height: 1.4rem; }
  .store-badges { gap: 0.75rem; }
  .store-badge { min-height: 3.25rem; padding: 0 0.9rem 0 0.75rem; gap: 0.55rem; flex: 1 1 0; max-width: 12rem; }
  .store-icon { width: 1.6rem; height: 1.6rem; }
  .store-badge small { font-size: 0.6875rem; }
  .store-badge strong { font-size: 1.0625rem; white-space: nowrap; }
  .hero-visual { min-height: 29rem; }
  .phone-stage { font-size: 10.5px; }
  .hero-backdrop { left: 10%; right: 0; }
  .produce--avocado { right: -4%; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "see" "diet" "cook" "pantry" "waste"; }
  .section-head--row { flex-direction: column; align-items: flex-start; }
  .carousel-controls { display: none; }
  .footer-note { text-align: left; }
  .cta-produce--tomato { left: -2.5rem; bottom: -2.5rem; }
}

/* ---------- Accessibility preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity 300ms ease; }
  .nav-menu, .nav-menu.is-open { transform: none !important; }
  .heart-btn.pop .ico { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .reveal { transition-duration: 300ms !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header.is-scrolled, .nav-menu { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .heart-btn { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  :root:not([data-theme="dark"]) { --line: rgba(0,0,0,0.3); --line-strong: rgba(0,0,0,0.55); --ink-2: #1d1d1f; --ink-3: #3a3a3f; }
  .site-header.is-scrolled { background: var(--bg); box-shadow: 0 1px 0 var(--line-strong); }
  .tile, .recipe-card, .steps { border-color: var(--line-strong); }
}

@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --line: rgba(255,255,255,0.3); --line-strong: rgba(255,255,255,0.55); --ink-2: #F2F2F7; --ink-3: #D1D1D6; }
}

@media print {
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .site-header, .carousel-controls, .skip-link, .nav-toggle { display: none !important; }
}

@media (forced-colors: active) {
  .accent-text { -webkit-text-fill-color: currentColor; background: none; }
  .switch, .brand-mark { forced-color-adjust: none; }
}
