/* WhatDish — marketing site
   Tokens and layout recreated from the Claude Design handoff (WhatDish Website.dc.html). */

:root {
  --navy: #081d28;
  --canvas: #f3f3f8;
  --green: #67aa92;
  --green-soft: #e4f3ec;
  --secondary: #e4e4ee;
  --sage: #c2d6ce;
  --text-2: #3d4a52;
  --text-3: #4f5b63;
  --text-4: #5a656c;
  --text-5: #6b747b;
  --line: #eeeef3;
  --dash: #cfd3dc;
  --display: Geist, system-ui, sans-serif;
  --body: Inter, system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 80px);
  --chip-shadow: 0 14px 34px rgba(8, 29, 40, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--navy);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img { display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: #000; }
h1, h2, p { margin: 0; }
input::placeholder { color: #7b848b; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

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

.honeypot {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}

/* ---------- Atmosphere ---------- */
.grain {
  position: absolute; inset: 0; pointer-events: none;
  opacity: .45; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes wdFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes wdSweep { 0%, 100% { top: -40px; } 50% { top: calc(100% - 60px); } }
@keyframes wdPulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* Scan band that sweeps through food */
.scan {
  position: absolute; left: 0; right: 0; height: 80px; pointer-events: none;
  background: linear-gradient(180deg, rgba(164, 240, 215, 0), rgba(164, 240, 215, .45));
  border-bottom: 2px solid #fff;
  box-shadow: 0 10px 24px -6px rgba(150, 236, 220, .9);
  animation: wdSweep var(--scan-dur, 4.5s) ease-in-out var(--scan-delay, 0s) infinite;
}

/* ---------- Shared type ---------- */
.h2 {
  font: 600 clamp(38px, 4.2vw, 56px)/1.02 var(--display);
  letter-spacing: -.035em;
}
.lede { font: 400 18px/1.55 var(--body); color: var(--text-4); text-wrap: pretty; }
.eyebrow { display: flex; align-items: center; gap: 10px; font: 500 14px var(--body); color: var(--text-4); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.dot--pulse { animation: wdPulse 1.6s ease-in-out infinite; }

.round-btn {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--green);
}
.round-btn svg {
  display: block;
}
.round-btn--secondary { background: var(--secondary); }

/* ---------- Header ---------- */
.header-spacer { height: 92px; }
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 14px clamp(16px, 4vw, 48px);
  transition: transform 280ms cubic-bezier(.2, .7, .2, 1);
  will-change: transform;
}
.site-header.is-hidden { transform: translateY(-110%); }
.site-header__bar {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  height: 64px; padding: 0 8px 0 20px; border-radius: 22px;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 1px 2px rgba(10, 13, 18, .04), 0 10px 30px rgba(10, 13, 18, .05);
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 38px; height: 24px; }
.brand span { font: 600 21px var(--display); letter-spacing: -.02em; }
.site-nav {
  flex: 1 1 auto; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 4px; height: 44px; overflow: hidden;
}
.site-nav a {
  display: flex; align-items: center; height: 44px; padding: 0 14px; border-radius: 12px;
  font: 500 15px var(--body); color: var(--text-2);
}
.site-nav a:hover { background: rgba(8, 29, 40, .04); color: var(--navy); }
.btn-primary {
  flex: none; display: flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 20px; border: 0; border-radius: 15px;
  background: var(--navy); color: #fff; font: 600 15px var(--body); cursor: pointer;
}
.btn-primary:hover { background: #000; color: #fff; }

/* ---------- Waitlist form ---------- */
.waitlist { width: 100%; max-width: 520px; }
.waitlist__form {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; border-radius: 22px;
  background: rgba(255, 255, 255, .85); box-shadow: 0 12px 40px rgba(8, 29, 40, .08);
}
.waitlist__form input {
  flex: 1 1 220px; min-width: 0; height: 56px; padding: 0 18px;
  border: 0; border-radius: 15px; background: var(--canvas);
  font: 400 16px var(--body); color: var(--navy); outline: none;
}
.waitlist__form input:focus-visible { box-shadow: inset 0 0 0 2px var(--green); }
.waitlist__form .btn-primary { flex: 1 0 auto; height: 56px; padding: 0 26px; font-size: 16px; }
.waitlist__form .btn-primary[disabled] { opacity: .7; cursor: progress; }
.waitlist__error { margin: 10px 4px 0; font: 400 14px var(--body); color: #9b2c2c; text-align: left; }
.waitlist__done {
  display: flex; align-items: center; gap: 14px; padding: 14px 20px 14px 14px;
  border-radius: 22px; background: #fff; box-shadow: 0 12px 40px rgba(8, 29, 40, .08); text-align: left;
}
.waitlist__done .round-btn { width: 44px; height: 44px; }
.waitlist__done strong { display: block; font: 600 16px var(--body); }
.waitlist__done span { display: block; font: 400 14px var(--body); color: var(--text-4); }
.waitlist[data-joined="true"] .waitlist__form,
.waitlist[data-joined="true"] .waitlist__error,
.waitlist:not([data-joined="true"]) .waitlist__done { display: none; }

/* ---------- 01 Hero ---------- */
.hero {
  position: relative; margin-top: -92px; overflow: hidden;
  padding: clamp(140px, 14vw, 180px) var(--gutter) clamp(64px, 8vw, 120px);
  background:
    radial-gradient(60vw 560px at 18% -6%, rgba(150, 236, 236, .95), rgba(150, 236, 236, 0) 70%),
    radial-gradient(56vw 560px at 55% 4%, rgba(176, 244, 214, .95), rgba(176, 244, 214, 0) 70%),
    radial-gradient(52vw 520px at 94% 6%, rgba(216, 248, 190, 1), rgba(216, 248, 190, 0) 70%),
    radial-gradient(70vw 500px at 50% 82%, rgba(186, 242, 226, .7), rgba(186, 242, 226, 0) 70%),
    var(--canvas);
}
.hero__inner {
  position: relative; max-width: 1280px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.pill {
  display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px;
  border-radius: 999px; background: rgba(255, 255, 255, .7);
  font: 500 13px var(--body); color: var(--text-2);
}
.pill .dot { width: 7px; height: 7px; }
.hero h1 {
  margin-top: 26px;
  font: 600 clamp(52px, 7.8vw, 112px)/.94 var(--display);
  letter-spacing: -.045em; text-wrap: balance;
}
.hero__sub {
  margin-top: 26px; max-width: 560px;
  font: 400 clamp(17px, 1.4vw, 20px)/1.5 var(--body); color: var(--text-3); text-wrap: pretty;
}
.hero .waitlist { margin-top: 34px; }

.hero-stage { display: flex; flex-wrap: nowrap; justify-content: center; align-items: center; margin-top: 64px; width: 100%; }
.hero-stage__col { flex: none; display: flex; flex-direction: column; gap: clamp(60px, 12vw, 170px); }
.hero-stage__col--left { align-items: flex-end; }
.hero-stage__col--right { align-items: flex-start; }
.hero-chip { display: flex; align-items: center; animation: wdFloat var(--float-dur, 6s) ease-in-out var(--float-delay, 0s) infinite; }
.hero-chip--inset-l { margin-right: clamp(0px, 2vw, 32px); }
.hero-chip--inset-r { margin-left: clamp(0px, 2vw, 32px); }
.hero-chip__line { height: 1.5px; background: var(--green); width: clamp(10px, 4vw, 72px); }
.hero-chip--inset-l .hero-chip__line, .hero-chip--inset-r .hero-chip__line { width: clamp(10px, 3vw, 56px); }

/* Ingredient chip (thumbnail, name, amount) */
.chip {
  display: flex; align-items: center; gap: 12px; padding: 8px 20px 8px 8px;
  background: #fff; border-radius: 20px; box-shadow: var(--chip-shadow); text-align: left;
}
.chip img { width: 48px; height: 48px; border-radius: 14px; flex: none; }
.chip__name { font: 500 16px/1.2 var(--body); white-space: nowrap; }
.chip__amt { font: 400 13px/1.3 var(--body); color: var(--text-5); white-space: nowrap; }

.viewfinder {
  position: relative; flex: 1 1 580px; max-width: 580px; min-width: 0;
  aspect-ratio: 580 / 450; margin: 0 clamp(0px, 1vw, 12px);
}
.corner { position: absolute; width: 13%; aspect-ratio: 1; border: 0 solid #fff; }
.corner--tl { left: 0; top: 0; border-left-width: 3px; border-top-width: 3px; border-top-left-radius: 18px; }
.corner--tr { right: 0; top: 0; border-right-width: 3px; border-top-width: 3px; border-top-right-radius: 18px; }
.corner--bl { left: 0; bottom: 0; border-left-width: 3px; border-bottom-width: 3px; border-bottom-left-radius: 18px; }
.corner--br { right: 0; bottom: 0; border-right-width: 3px; border-bottom-width: 3px; border-bottom-right-radius: 18px; }
.viewfinder__window { position: absolute; inset: 3%; overflow: hidden; }
.viewfinder__window img { position: absolute; left: 0; top: 6%; width: 100%; height: auto; }

/* ---------- 02 Two photos ---------- */
.modes { padding: clamp(48px, 6vw, 80px) var(--gutter) clamp(72px, 9vw, 120px); }
.container { max-width: 1200px; margin: 0 auto; }
.modes__inner { display: flex; flex-direction: column; gap: 48px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 40px; }
.modes .h2 { max-width: 620px; }
.modes .lede { max-width: 380px; }
.modes__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.mode-card {
  display: flex; flex-direction: column; border-radius: 32px; overflow: hidden;
  border: 1.5px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #9eeeee, #b5f3d7 50%, #d6f8be) border-box;
  transition: transform .25s ease, box-shadow .25s ease;
}
.mode-card--fridge { background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #d6f8be, #b5f3d7 50%, #9eeeee) border-box; }
.mode-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(10, 13, 18, .08); color: var(--navy); }
.mode-card__art {
  position: relative; height: 300px;
  background:
    radial-gradient(420px 260px at 30% 0%, rgba(158, 238, 238, .7), rgba(158, 238, 238, 0) 70%),
    radial-gradient(420px 260px at 80% 10%, rgba(214, 248, 190, .8), rgba(214, 248, 190, 0) 70%);
}
.mode-card--fridge .mode-card__art {
  background:
    radial-gradient(420px 260px at 70% 0%, rgba(214, 248, 190, .8), rgba(214, 248, 190, 0) 70%),
    radial-gradient(420px 260px at 20% 10%, rgba(158, 238, 238, .6), rgba(158, 238, 238, 0) 70%);
}
.mode-card__icon { position: absolute; left: 32px; top: 32px; width: 52px; height: 52px; z-index: 1; }
.mode-card__photo { position: absolute; left: 50%; overflow: hidden; transform: translateX(-35%); }
.mode-card__photo--dish { top: 30px; width: min(340px, 70%); aspect-ratio: 340 / 250; }
.mode-card__photo--dish img { position: absolute; left: 0; top: 6%; width: 100%; height: auto; }
.mode-card__photo--fridge { top: 22px; width: min(290px, 62%); aspect-ratio: 290 / 265; }
.mode-card__photo--fridge img { width: 100%; height: auto; }
.mode-card__body { padding: 8px 36px 36px; }
.mode-card__title { font: 600 30px/1.1 var(--display); letter-spacing: -.02em; }
.mode-card__body p { margin-top: 10px; max-width: 420px; font: 400 17px/1.5 var(--body); color: var(--text-4); }

/* ---------- 03 Dish to recipe ---------- */
.dish {
  position: relative; scroll-margin-top: 96px;
  padding: clamp(72px, 9vw, 120px) var(--gutter);
  background:
    radial-gradient(50vw 520px at 22% 40%, rgba(158, 238, 238, .45), rgba(158, 238, 238, 0) 70%),
    radial-gradient(44vw 520px at 35% 95%, rgba(214, 248, 190, .5), rgba(214, 248, 190, 0) 70%),
    var(--canvas);
}
.dish__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: clamp(48px, 7vw, 96px); align-items: center;
}
.devices { position: relative; width: 100%; max-width: 560px; aspect-ratio: 560 / 680; margin: 0 auto; }
.devices__camera {
  position: absolute; left: -6%; top: 8%; width: 62%; height: auto;
  transform: rotate(-5deg); filter: drop-shadow(0 30px 40px rgba(8, 29, 40, .12));
}
.devices__recipe {
  position: absolute; right: -6%; top: 0; width: 68%; height: auto;
  filter: drop-shadow(0 40px 50px rgba(8, 29, 40, .16));
}
.devices__arrow {
  position: absolute; left: 36%; top: 44%; width: 56px; height: 56px;
  box-shadow: 0 10px 24px rgba(103, 170, 146, .45);
}
.dish__copy { display: flex; flex-direction: column; gap: 40px; }
.dish__copy .h2 { margin-top: 16px; }
.dish__copy .lede { margin-top: 20px; max-width: 500px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-row .chip { box-shadow: 0 12px 30px rgba(8, 29, 40, .06); }
.chip-row .chip__amt { line-height: normal; }
.chip--more {
  height: 64px; padding: 0 22px; background: rgba(255, 255, 255, .6);
  border: 1.5px dashed var(--dash); box-shadow: none !important;
  font: 500 16px var(--body); color: var(--text-4);
}
.steps {
  list-style: none; margin: 0; display: flex; flex-direction: column; max-width: 560px;
  padding: 8px; border-radius: 24px; background: #fff; box-shadow: 0 1px 3px rgba(10, 13, 18, .04);
}
.steps li { display: flex; gap: 16px; align-items: flex-start; padding: 14px 16px; }
.steps li + li { border-top: 1px solid var(--line); }
.steps__num {
  flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--green-soft);
  display: flex; align-items: center; justify-content: center; font: 600 13px var(--body);
}
.steps li:first-child .steps__num { background: var(--green); color: #fff; }
.steps__text { font: 400 16px/1.5 var(--body); padding-top: 4px; }

/* ---------- 04 Fridge to dinner ---------- */
.fridge { scroll-margin-top: 96px; padding: clamp(72px, 9vw, 120px) var(--gutter); }
.fridge .section-head { margin-bottom: 48px; }
.fridge .lede { max-width: 360px; }
.fridge__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 56px; align-items: center; }
.fridge-scan {
  position: relative; aspect-ratio: 1; max-width: 540px; width: 100%; border-radius: 32px;
  background:
    radial-gradient(360px 300px at 20% 10%, rgba(158, 238, 238, .7), rgba(158, 238, 238, 0) 70%),
    radial-gradient(360px 300px at 85% 90%, rgba(214, 248, 190, .8), rgba(214, 248, 190, 0) 70%),
    #fff;
}
.fridge-scan__window { position: absolute; left: 8%; right: 8%; top: 8%; bottom: 12%; overflow: hidden; }
.fridge-scan__window img { position: absolute; left: 50%; top: 50%; width: 92%; height: auto; transform: translate(-50%, -50%); }
.fridge-scan .corner { width: 9%; border-color: #9fdcc4; }
.fridge-scan .corner--tl { left: 5%; top: 5%; border-top-left-radius: 14px; }
.fridge-scan .corner--tr { right: 5%; top: 5%; border-top-right-radius: 14px; }
.fridge-scan .corner--bl { left: 5%; bottom: 5%; border-bottom-left-radius: 14px; }
.fridge-scan .corner--br { right: 5%; bottom: 5%; border-bottom-right-radius: 14px; }
.tags { position: absolute; left: 24px; right: 24px; bottom: -20px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  height: 40px; display: flex; align-items: center; padding: 0 16px; border-radius: 12px;
  background: #fff; box-shadow: 0 8px 20px rgba(8, 29, 40, .08); font: 500 14px var(--body);
}
.tag--more { background: rgba(255, 255, 255, .7); border: 1px dashed var(--dash); box-shadow: none; color: var(--text-4); }
.tonight { display: flex; flex-direction: column; gap: 16px; }
.tonight__label { font: 500 14px var(--body); color: var(--text-4); padding-left: 4px; }
.recipe-row {
  display: flex; align-items: center; gap: clamp(14px, 2vw, 24px);
  padding: 16px clamp(16px, 2vw, 28px) 16px 16px; border-radius: 24px; background: #fff;
  box-shadow: 0 1px 3px rgba(10, 13, 18, .04), 0 12px 32px rgba(10, 13, 18, .05);
}
.recipe-row img { flex: none; width: clamp(84px, 9vw, 120px); aspect-ratio: 120 / 96; border-radius: 16px; object-fit: cover; }
.recipe-row__body { flex: 1; min-width: 0; }
.recipe-row__title { font: 600 clamp(18px, 1.6vw, 22px)/1.2 var(--display); letter-spacing: -.015em; }
.recipe-row__meta { margin-top: 6px; font: 400 15px var(--body); color: var(--text-4); }

/* ---------- 05 Cookbooks ---------- */
.cookbooks { scroll-margin-top: 96px; padding: 0 clamp(12px, 3vw, 40px); }
.cookbooks__panel {
  position: relative; max-width: 1360px; margin: 0 auto; overflow: hidden;
  border-radius: clamp(28px, 3vw, 44px); background: var(--sage);
  padding: clamp(56px, 7vw, 96px) clamp(24px, 6vw, 96px) 0;
}
.cookbooks__grid {
  position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(40px, 6vw, 80px); align-items: end;
}
.cookbooks__copy { padding-bottom: clamp(40px, 6vw, 96px); }
.cookbooks__copy .lede { margin-top: 20px; max-width: 440px; color: #2c3d45; }
.shelf-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.shelf-tag {
  height: 44px; display: flex; align-items: center; padding: 0 18px; border-radius: 14px;
  background: rgba(255, 255, 255, .55); font: 500 15px var(--body);
}
.shelf-tag--active { background: #fff; }
.share { display: flex; align-items: center; gap: 12px; margin-top: 28px; font: 500 15px var(--body); color: #2c3d45; }
.share .round-btn { width: 40px; height: 40px; background: var(--navy); }
.cookbooks__art { position: relative; width: 100%; max-width: 520px; aspect-ratio: 520 / 560; justify-self: center; }
.cookbooks__book {
  position: absolute; left: 0; top: 16%; width: 44%; height: auto; z-index: 2;
  transform: rotate(-8deg); filter: drop-shadow(0 24px 30px rgba(8, 29, 40, .16));
}
.cookbooks__phone { position: absolute; right: 4%; top: 0; width: 62%; height: 100%; overflow: hidden; }
.cookbooks__phone img { width: 100%; height: auto; filter: drop-shadow(0 40px 50px rgba(8, 29, 40, .2)); }

/* ---------- 06 Join ---------- */
.join {
  position: relative; scroll-margin-top: 96px; overflow: hidden;
  padding: clamp(96px, 11vw, 160px) var(--gutter);
  background:
    radial-gradient(50vw 460px at 15% 100%, rgba(150, 236, 236, .9), rgba(150, 236, 236, 0) 70%),
    radial-gradient(50vw 460px at 55% 110%, rgba(176, 244, 214, .9), rgba(176, 244, 214, 0) 70%),
    radial-gradient(46vw 460px at 95% 100%, rgba(216, 248, 190, 1), rgba(216, 248, 190, 0) 70%),
    var(--canvas);
}
.join__grid {
  position: relative; max-width: 1100px; margin: 0 auto; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: center;
}
.join h2 { font: 600 clamp(44px, 5.6vw, 80px)/.96 var(--display); letter-spacing: -.045em; }
.join .lede { margin-top: 22px; max-width: 440px; color: var(--text-3); }
.join .waitlist { margin-top: 32px; }
.join__chef { justify-self: center; width: min(340px, 70%); height: auto; filter: drop-shadow(0 30px 40px rgba(8, 29, 40, .12)); }

/* ---------- Legal Pages ---------- */
.legal {
  padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(72px, 9vw, 120px);
  background: var(--canvas);
}
.legal__inner {
  max-width: 1280px;
  margin: 0 auto;
}
.legal h1 {
  font: 600 clamp(40px, 5vw, 56px)/1.1 var(--display);
  letter-spacing: -.035em;
  margin: 0 0 12px;
}
.legal__date {
  font: 500 16px/1.5 var(--body);
  color: var(--text-4);
  margin: 0 0 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.legal__notice {
  padding: 24px 28px;
  margin-bottom: 40px;
  border-radius: 18px;
  background: rgba(103, 170, 146, .08);
  border-left: 3px solid var(--green);
}
.legal__notice p {
  margin: 0;
  font: 400 16px/1.6 var(--body);
}
.legal__intro {
  margin-bottom: 48px;
}
.legal__intro p {
  font: 400 17px/1.65 var(--body);
  color: var(--text-3);
  margin: 0 0 16px;
}
.legal__intro p:last-child {
  margin-bottom: 0;
}
.legal__section {
  margin-bottom: 52px;
}
.legal__section:last-of-type {
  margin-bottom: 0;
}
.legal h2 {
  font: 600 24px/1.3 var(--display);
  letter-spacing: -.02em;
  margin: 0 0 20px;
  color: var(--navy);
}
.legal p {
  font: 400 16px/1.75 var(--body);
  color: var(--text-2);
  margin: 0 0 14px;
  text-wrap: pretty;
}
.legal p:last-child {
  margin-bottom: 0;
}

/* List-style paragraphs with (a), (b), etc. markers */
.legal p strong:first-child {
  display: inline-block;
  min-width: 28px;
}

/* Add extra spacing between list-item paragraphs */
.legal__section p + p:has(strong:first-child) {
  margin-top: 16px;
}

.legal a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.legal a:hover {
  color: #508876;
}
.legal strong {
  font-weight: 600;
  color: var(--navy);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .legal__inner {
    max-width: 100%;
  }
  .legal h1 {
    font-size: clamp(32px, 8vw, 44px);
  }
  .legal h2 {
    font-size: 21px;
  }
  .legal p {
    font-size: 15px;
  }
}

/* ---------- Footer ---------- */
.site-footer { padding: 36px var(--gutter); background: var(--canvas); border-top: 1px solid #e0e0ea; }
.site-footer__inner {
  max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 16px 32px;
}
.site-footer .brand img { width: 32px; height: 20px; }
.site-footer .brand span { font-size: 18px; }
.site-footer .brand small { font: 400 14px var(--body); color: var(--text-4); margin-left: 8px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 24px; font: 400 14px var(--body); color: var(--text-4); }
.site-footer__links a { color: var(--text-4); }
.site-footer__links a:hover { color: var(--navy); }

/* ---------- Tablet / mobile ---------- */
@media (max-width: 760px) {
  .site-nav { visibility: hidden; }
  .site-header__bar { padding-left: 16px; }

  /* Hero: viewfinder full width, ingredient chips in a 2×2 grid underneath */
  .hero-stage {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px; margin-top: 44px;
  }
  .hero-stage__col { display: contents; }
  .viewfinder { grid-column: 1 / -1; order: -1; width: 100%; max-width: 480px; margin: 0 auto 10px; justify-self: center; }
  .hero-chip { margin: 0 !important; }
  .hero-chip .hero-chip__line, .hero-chip .dot { display: none; }
  .hero-chip .chip { width: 100%; padding-right: 12px; }
  .chip__name { white-space: normal; font-size: 15px; }

  .mode-card__art { height: 240px; }
  .mode-card__icon { left: 20px; top: 20px; width: 44px; height: 44px; }
  .mode-card__body { padding: 8px 24px 28px; }
  .mode-card__title { font-size: 26px; }

  .devices { max-width: 420px; }
  .devices__camera { left: 0; }
  .devices__recipe { right: 0; }

  .fridge .section-head { margin-bottom: 36px; }
  .fridge__grid { gap: 64px; }
  .recipe-row { padding-right: 16px; }
  .recipe-row .round-btn { width: 40px; height: 40px; }

  .join__chef { width: min(260px, 64%); }
  .site-footer .brand { flex: 1 1 100%; flex-wrap: wrap; }
  .site-footer .brand small { flex-basis: 100%; margin: 4px 0 0; }
}

@media (max-width: 420px) {
  .brand span { font-size: 19px; }
  .site-header__bar .btn-primary { padding: 0 16px; font-size: 14px; height: 44px; }
  .hero-chip .chip { gap: 10px; }
  .hero-chip .chip img { width: 40px; height: 40px; border-radius: 12px; }
  .recipe-row__meta { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-chip, .dot--pulse { animation: none; }
  .scan { animation-duration: 12s; }
  .site-header, .mode-card { transition: none; }
}
