/* Shared Meal Planner — landing page. Light mode only, matching the iOS app. */

@font-face { font-family: "Satoshi"; src: url("assets/fonts/Satoshi-Regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("assets/fonts/Satoshi-Medium.otf") format("opentype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("assets/fonts/Satoshi-Bold.otf") format("opentype"); font-weight: 600 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;

  /* App palette */
  --bg: #f7f8f3;
  --surface: #ffffff;
  --ink: #111111;
  --muted: #5c5f57;
  --faint: #8b8b8b;
  --line: #e0e3da;
  --line-strong: #d1d1d1;
  --border: rgba(0, 0, 0, 0.1);
  --olive: #40581d;
  --olive-hover: #34481a;
  --olive-tint: #e6ecda;
  --olive-soft: #eef1e8;
  --logo-bg: #ebebcd;
  --bar: #1d1d1d;

  /* Recipe tints */
  --t-sage: #d9e2c8;
  --t-wheat: #ecdcc0;
  --t-peach: #f1d4c4;
  --t-moss: #cfd8bd;

  --radius: 16px;
  --font: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius);
  font: 500 16px/1 var(--font); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn svg { flex-shrink: 0; }
.btn-primary { background: var(--olive); color: #fff; }
.btn-primary:hover { background: var(--olive-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a2a2a; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: rgba(0,0,0,0.22); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; border-radius: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 248, 243, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -0.1px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; border-radius: 12px;
}
.nav-links a:not(.btn):hover { color: var(--ink); background: var(--olive-soft); }
.nav-links .btn { margin-left: 8px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 0; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  background: var(--olive-tint); color: var(--olive);
  font-size: 14px; font-weight: 600; line-height: 20px;
}
.eyebrow .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--olive); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.hero h1 {
  margin: 24px auto 0; max-width: 15ch;
  font-weight: 500; font-size: clamp(44px, 7.4vw, 88px); line-height: 1.02; letter-spacing: -0.035em;
}
.hero h1 em { font-style: normal; color: var(--olive); }
.hero .lede { margin: 24px auto 0; max-width: 34em; color: var(--muted); font-size: clamp(18px, 2vw, 21px); line-height: 1.5; }
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-note { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; color: var(--muted); font-size: 14px; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }

.hero-stage {
  position: relative; margin-top: 64px;
  display: flex; justify-content: center; align-items: flex-end; gap: clamp(16px, 3vw, 40px);
  padding: 0 24px;
}
.hero-stage::before {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px)); height: 72%;
  background: var(--logo-bg); border-radius: 40px 40px 0 0; z-index: 0;
}
.hero-stage .phone { position: relative; z-index: 1; }
.hero-stage .phone.side { margin-bottom: 48px; }

/* ---------- Phone mockup ---------- */
/* Screens are laid out at the app's real 393 × 852 pt and scaled with --s. */
.phone {
  --s: 0.7;
  width: calc(417px * var(--s));
  height: calc(876px * var(--s));
  flex-shrink: 0;
}
.phone-frame {
  width: 417px; height: 876px;
  transform: scale(var(--s)); transform-origin: top left;
  padding: 12px; border-radius: 64px; background: #1b1b1b;
  box-shadow: 0 40px 80px -30px rgba(40, 52, 20, 0.45), 0 10px 24px -8px rgba(17, 17, 17, 0.25), inset 0 0 0 1px rgba(255,255,255,0.08);
}
.screen {
  position: relative; width: 393px; height: 852px; overflow: hidden;
  border-radius: 52px; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.35; text-align: left;
}
.screen .island { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 120px; height: 34px; border-radius: 20px; background: #000; z-index: 5; }
.scr { padding: 64px 20px 0; display: flex; flex-direction: column; }
.scr-head { display: flex; align-items: flex-end; justify-content: space-between; padding-bottom: 16px; }
.scr-title { font-weight: 500; font-size: 32px; letter-spacing: -0.4px; line-height: 40px; }
.scr-actions { display: flex; gap: 8px; }
.circle { width: 44px; height: 44px; border-radius: 24px; border: 1px solid var(--border); background: #fff; display: flex; align-items: center; justify-content: center; }
.avatar { width: 44px; height: 44px; border-radius: 24px; background: var(--olive-tint); color: var(--olive); display: flex; align-items: center; justify-content: center; font-weight: 600; }
.search { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px; border-radius: 16px; border: 1px solid var(--border); background: #fff; color: var(--muted); }
.h2 { font-weight: 400; font-size: 20px; }
.folders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.folder { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 16px; border: 1px solid var(--border); background: #fff; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; height: 64px; border-radius: 8px; overflow: hidden; }
.folder b { font-size: 12px; font-weight: 600; display: block; }
.folder small { font-size: 12px; color: var(--muted); }
.row { position: relative; display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 68px; width: 120px; height: 1px; background: var(--line); }
.thumb { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #5a6b45; flex-shrink: 0; }
.row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.row-title { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta { display: flex; gap: 12px; font-size: 12px; color: var(--muted); }
.meta span { display: inline-flex; align-items: center; gap: 4px; }
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 92px; background: var(--bar);
  display: flex; justify-content: space-between; align-items: flex-start; padding: 16px 60px 0;
  font-size: 12px; font-weight: 500; color: var(--faint);
}
.tabbar span { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 56px; }
.tabbar .on { color: #fff; }

/* schedule */
.week { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; font-weight: 500; }
.day { display: flex; flex-direction: column; margin-top: 28px; }
.day:first-of-type { margin-top: 8px; }
.day-label { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; line-height: 24px; }
.today { font-size: 12px; font-weight: 700; color: #fff; background: var(--olive); padding: 4px 8px; border-radius: 12px; line-height: 16px; }
.meal { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.meal + .meal::before { content: ""; position: absolute; top: 0; left: 56px; width: 120px; height: 1px; background: var(--line); }
.meal .thumb { width: 44px; height: 44px; }
.meal-type { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); line-height: 16px; }
.add-meal { margin-top: 24px; height: 48px; border-radius: 16px; border: 1.5px solid var(--border); color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 12px; font-weight: 500; }

/* shopping */
.list { border-top: 1px solid var(--line-strong); padding: 24px 20px 0; }
.item { display: flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 500; }
.item + .item { border-top: 1px solid var(--line-strong); }
.check { width: 20px; height: 20px; border-radius: 5px; border: 1.5px solid #8a8d84; background: #fff; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.item.done .check { background: var(--olive); border-color: var(--olive); }
.item .name { flex: 1; }
.item .amt { color: var(--muted); font-weight: 400; }
.item.done .name, .item.done .amt { color: #6b6e66; text-decoration: line-through; }

/* recipe detail */
.hero-img { height: 252px; background: var(--t-wheat); position: relative; display: flex; align-items: center; justify-content: center; color: #8a7a55; }
.hero-img .circle { position: absolute; top: 56px; border: 0; background: var(--bg); }
.recipe-actions { display: flex; gap: 8px; margin-top: 20px; }
.recipe-actions .main { flex: 1; height: 52px; border-radius: 16px; background: var(--olive); color: #fff; display: flex; align-items: center; justify-content: center; gap: 12px; }
.recipe-actions .sq { width: 52px; height: 52px; border-radius: 16px; border: 1px solid var(--border); background: #fff; display: flex; align-items: center; justify-content: center; }
.section-block { border-top: 1px solid #dbe4cf; margin-top: 24px; padding-top: 20px; }
.kv { display: flex; justify-content: space-between; padding: 8px 0; font-weight: 500; }
.kv + .kv { border-top: 1px solid var(--line-strong); }

/* household invite */
.back { width: 44px; height: 44px; border-radius: 24px; background: #fff; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.perk { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.perk + .perk { border-top: 1px solid var(--line); }
.perk-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--olive-tint); color: var(--olive); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.perk b { display: block; font-weight: 500; }
.perk small { color: var(--muted); font-size: 14px; }
.field { height: 52px; border-radius: 16px; border: 1px solid var(--border); background: #fff; padding: 0 16px; display: flex; align-items: center; color: var(--ink); }
.btn-mock { height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; gap: 12px; font-weight: 500; }

/* ---------- Feature sections ---------- */
.features { padding: 96px 0 40px; }

.feature {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 6vw, 96px);
  padding: 64px 0;
}
.feature.flip .feature-copy { order: 2; }
.feature-copy { max-width: 480px; }
.feature.flip .feature-copy { justify-self: end; }
.feature h3 { margin-top: 0; font-weight: 500; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.025em; }
.feature p.body { margin-top: 18px; color: var(--muted); font-size: 18px; }
.points { margin-top: 28px; display: flex; flex-direction: column; }
.points li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.points li:last-child { border-bottom: 1px solid var(--line); }
.points svg { flex-shrink: 0; margin-top: 3px; color: var(--olive); }
.points b { font-weight: 500; }
.points span { color: var(--muted); }

.feature-visual {
  position: relative; border-radius: 32px; min-height: 560px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  padding: 48px 24px 0; align-self: stretch;
}
.feature-visual .phone { --s: 0.66; align-self: flex-end; margin-bottom: -96px; }
.v-sage { background: var(--t-sage); }
.v-wheat { background: var(--t-wheat); }
.v-peach { background: var(--t-peach); }
.v-moss { background: var(--t-moss); }
.v-logo { background: var(--logo-bg); }

/* Floating cards over the visuals */
.float {
  position: absolute; z-index: 2; background: #fff; border-radius: 18px; padding: 14px 16px;
  box-shadow: 0 18px 40px -16px rgba(40, 52, 20, 0.35), 0 2px 6px rgba(17,17,17,0.06);
  display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.35; max-width: 280px;
}
.float b { display: block; font-weight: 600; font-size: 14px; }
.float small { color: var(--muted); font-size: 13px; }
.float .fi { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--olive-tint); color: var(--olive); }
.float.tl { top: 40px; left: 24px; }
.float.br { bottom: 40px; right: 24px; }
.float.tr { top: 56px; right: 24px; }
.float.bl { bottom: 56px; left: 24px; }

/* Notification stack (household) */
.notif-stack { display: flex; flex-direction: column; gap: 10px; width: min(360px, 100%); }
.notif {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 22px;
  background: rgba(255,255,255,0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px -14px rgba(40,52,20,0.3);
  font-size: 14px; line-height: 1.35;
}
.notif .app { width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0; }
.notif .top { display: flex; justify-content: space-between; gap: 8px; }
.notif b { font-weight: 600; }
.notif time { color: var(--muted); font-size: 12px; }
.notif p { color: #2b2d28; }

/* ---------- Steps / beta ---------- */
.beta { padding: 80px 0 120px; }
.beta-card {
  position: relative; overflow: hidden;
  background: var(--olive); color: #fff; border-radius: 40px;
  padding: clamp(40px, 6vw, 80px);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
}
.beta-card h2 { font-weight: 500; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -0.03em; }
.beta-card p.sub { margin-top: 18px; color: #dfe6d2; font-size: 18px; max-width: 30em; }
.beta-card .btn-light { background: #fff; color: var(--olive); margin-top: 32px; }
.beta-card .btn-light:hover { background: var(--olive-soft); }
.beta-card .fine { margin-top: 14px; font-size: 14px; color: #cdd7bd; }
.steps { display: flex; flex-direction: column; gap: 12px; counter-reset: step; }
.steps li {
  display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: 20px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
}
.steps li::before {
  counter-increment: step; content: counter(step);
  width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--olive);
  display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0;
}
.steps b { display: block; font-weight: 600; }
.steps span { color: #dfe6d2; font-size: 15px; }
.steps a { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: 15px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none; border-radius: 10px; }
.footer-links a:hover { color: var(--ink); background: var(--olive-soft); }
.site-footer .brand { color: var(--ink); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-stage .phone { --s: 0.6; }
  .feature-visual .phone { --s: 0.58; }
}
@media (max-width: 900px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 40px; padding: 56px 0; }
  .feature.flip .feature-copy { order: 0; justify-self: start; }
  .feature-copy { max-width: none; }
  .feature-visual { min-height: 500px; }
  .beta-card { grid-template-columns: 1fr; }
  .hero-stage .phone.side { display: none; }
  .hero-stage .phone { --s: 0.62; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav { height: 64px; }
  .nav-links a:not(.btn) { display: none; }
  .brand span { font-size: 16px; }
  .hero { padding-top: 48px; }
  .hero-cta .btn { width: 100%; }
  .hero-stage { margin-top: 48px; padding: 0 16px; }
  .hero-stage::before { width: calc(100% - 32px); border-radius: 28px 28px 0 0; }
  .hero-stage .phone { --s: 0.68; }
  .features { padding-top: 64px; }
  .feature-visual { min-height: 440px; border-radius: 24px; padding-top: 32px; }
  .feature-visual .phone { --s: 0.56; margin-bottom: -150px; }
  .float { max-width: 220px; padding: 10px 12px; font-size: 13px; }
  .float.tl, .float.bl { left: 12px; }
  .float.br, .float.tr { right: 12px; }
  .beta { padding: 48px 0 80px; }
  .beta-card { border-radius: 28px; }
  .beta-card .btn { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
  .hero-stage .phone { --s: 0.6; }
  .feature-visual .phone { --s: 0.5; }
  .nav-links .btn { padding: 0 14px; }
}

/* Food photos in mockups */
.thumb { overflow: hidden; }
.thumb img, .mosaic img, .hero-img > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-img > img { position: absolute; inset: 0; }
.hero-img .circle { z-index: 1; }
