/* Fuudz site. Direction "The product performs" (taste skill, seed 1792976385), with the app's own
   colors: basil green from its AccentColor and icon, the magnet's orange, and its pantry, fridge and
   freezer colors. Page parts are square; app fragments ([data-ui]) keep iOS's own shapes. */

@font-face { font-family: "General Sans"; src: url("fonts/general-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("fonts/general-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("fonts/general-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("fonts/general-sans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #f3f4f0;
  --surface: #ffffff;
  --tone: #e8eae4;
  --tone-2: #dfe2da;
  --ink: #14201a;
  --muted: #4a564f;
  --field: #1b6e3e;
  --field-tone: #22804a;
  --on-field: #ffffff;
  --on-field-soft: #d9eee0;
  --accent: #ff8a3d;
  --accent-press: #f0752a;

  /* The app's own colors (Theme.swift), darkened where they carry text. */
  --pantry: #9c6512;
  --fridge: #2f78c4;
  --freezer: #5c6bdb;
  --basil: #23804b;

  --ui-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(2.5rem, 5vw, 5.5rem);

  --m: clamp(16px, 2.2vw, 32px);
  --gutter: clamp(16px, 1.6vw, 24px);
  --section: clamp(120px, 13vw, 200px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::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: var(--step-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -100px; z-index: 10; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip:focus { top: 12px; }

/* Buttons: one shape, square, flat. */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px;
  background: var(--accent); color: var(--ink);
  font-weight: 600; font-size: var(--step-body); text-decoration: none; line-height: 1.15; text-align: center;
  transition: background-color 0.18s, transform 0.18s var(--ease);
}
.button:hover { background: var(--accent-press); transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(0.98); }
.button.small { min-height: 40px; padding: 0 16px; font-size: var(--step-small); }
.button.ink { background: var(--ink); color: #fff; }
.button.ink:hover { background: #26352c; }

/* ---------- First screen ---------- */
.hero { position: relative; }
.hero-stage {
  position: relative; height: 100svh; min-height: 620px; overflow: hidden;
  --fw: 38vw; --fh: calc(var(--fw) * 9 / 16); --gap: calc((100svh - var(--fh)) / 2 - 60px);
}
/* The reel turns while the stage is held; a stage taller than the screen holds by its bottom edge. */
.js .hero { padding-bottom: calc(3 * 34svh); }
.js .hero-stage { position: sticky; top: var(--stage-top, 0px); }

.bar {
  position: absolute; z-index: 3; top: 0; left: var(--m); right: var(--m); height: 76px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; text-decoration: none; }
.mark img { width: 28px; height: 28px; }
.bar-nav { display: flex; align-items: center; gap: 28px; font-size: var(--step-small); font-weight: 500; }
.bar-nav a:not(.button) { position: relative; text-decoration: none; padding: 6px 0; }
.bar-nav a:not(.button)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease); }
.bar-nav a:not(.button):hover::after { transform: scaleX(1); }
.bar-nav .short, .days .short { display: none; }

.hero-title {
  position: absolute; z-index: 2; left: var(--m); right: var(--m); top: 50%; transform: translateY(-50%);
  display: flex; justify-content: space-between; pointer-events: none;
  font-size: var(--step-display); font-weight: 700; letter-spacing: -0.03em; line-height: 0.95;
}
.half { white-space: nowrap; }
.hero-lead {
  position: absolute; z-index: 2; left: var(--m);
  top: calc(50% + var(--step-display) * 0.5 + 40px);
  width: min(400px, calc(50% - var(--fw) / 2 - var(--m) - 32px));
}
.hero-lead p { line-height: 1.45; }
.hero-actions { margin-top: 24px; }
@media (prefers-reduced-motion: no-preference) {
  .js .half, .js .reel, .js .hero-lead { animation: arrive 0.7s var(--ease) both; }
  .js .half.one { animation-delay: 60ms; }
  .js .reel { animation-delay: 160ms; }
  .js .half.two { animation-delay: 260ms; }
  .js .hero-lead { animation-delay: 360ms; }
}

.reel { position: absolute; z-index: 3; top: 0; bottom: 0; left: 50%; width: var(--fw); transform: translateX(-50%); }
.reel-window { position: absolute; inset: 0; overflow: hidden; }
.reel-track {
  position: absolute; left: 0; right: 0; top: calc(50% - var(--fh) / 2);
  display: flex; flex-direction: column; gap: var(--gap);
  transform: translateY(calc(var(--step, 0) * -1 * (var(--fh) + var(--gap))));
  transition: transform 0.8s var(--ease);
}
.reel-item { height: var(--fh); flex: none; }
.reel-frame { height: 100%; overflow: hidden; background: #f2f2f7; }
.reel-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.reel-captions { position: absolute; left: 0; right: 0; top: calc(50% + var(--fh) / 2 + 16px); font-size: var(--step-small); color: var(--muted); }
.reel-captions li { position: absolute; left: 0; right: 0; display: none; }
.reel-captions li.is-active { display: block; animation: caption-in 0.45s var(--ease) both; }
@keyframes caption-in { from { opacity: 0; translate: 0 8px; } }

/* The live quick add, drawn as the app's Add food field and a Kitchen row. */
[data-ui] { font-family: var(--ui-font); letter-spacing: 0; }
.qa { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 16px 18px; background: #f2f2f7; }
.qa-field { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 0 14px; height: 44px; }
.qa-plus { width: 20px; height: 20px; flex: none; }
.qa-plus circle { fill: var(--basil); }
.qa-plus path { stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.qa-field input { flex: 1; min-width: 0; border: 0; background: none; font: 17px/1.2 var(--ui-font); color: #000; padding: 0; outline: none; }
.qa-field:focus-within { box-shadow: 0 0 0 3px rgba(35, 128, 75, 0.35); } /* taste-skill-ignore: focus ring inside data-ui */
.qa-row { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; padding: 8px 14px; min-height: 58px; }
.badge { width: 40px; height: 40px; flex: none; border-radius: 50%; background: rgba(46, 153, 85, 0.12); display: grid; place-items: center; font-size: 22px; line-height: 1; }
.qa-text, .k-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.qa-text b, .k-text b { font-weight: 400; font-size: 17px; color: #000; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qa-meta, .k-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #3c3c43; white-space: nowrap; overflow: hidden; }
.loc { display: inline-flex; align-items: center; gap: 3px; }
.loc::before { content: ""; width: 9px; height: 12px; border: 1.5px solid currentColor; border-radius: 2px; flex: none; }
.loc-fridge { color: var(--fridge); }
.loc-fridge::before { border-top-width: 4px; }
.loc-pantry { color: var(--pantry); }
.loc-pantry::before { border-bottom-width: 3.5px; border-radius: 1px; }
.loc-freezer { color: var(--freezer); }
.loc-freezer::before { border-radius: 50%; border-style: dotted; height: 10px; width: 10px; }
.chip { flex: none; font-size: 13px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chip-fine { color: #1e7b36; background: #dff5e3; }
.chip-soon { color: #8a6a00; background: #fff4cc; }
.chip-soon-1, .chip-today { color: #9a3f06; background: #ffedd5; }
.chip-expired { color: #c81e1e; background: #ffe2e0; }
.chip-none { color: #3c3c43; background: #ececf0; }
.chip-list { color: #9a3f06; background: #ffedd5; }
.seg { display: flex; background: #e3e3e8; border-radius: 10px; padding: 2px; }
.seg button { flex: 1; border: 0; background: none; border-radius: 8px; font: 500 13px/1 var(--ui-font); padding: 7px 0; color: #000; cursor: pointer; transition: background-color 0.2s; }
.seg button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); } /* taste-skill-ignore: iOS segmented control, data-ui */
.seg button:hover:not([aria-pressed="true"]) { background: rgba(255, 255, 255, 0.5); }
.qa-try { display: flex; gap: 6px; overflow: hidden; mask-image: none; }
.qa-try button { flex: none; border: 0; border-radius: 999px; background: rgba(35, 128, 75, 0.12); color: #1b6e3e; font: 500 13px/1 var(--ui-font); padding: 7px 11px; cursor: pointer; transition: background-color 0.2s, transform 0.15s; }
.qa-try button:hover { background: rgba(35, 128, 75, 0.22); }
.qa-try button:active { transform: scale(0.96); }

/* ---------- Getting food in ---------- */
.scan {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter);
  padding: var(--section) var(--m) 0;
}
.scan-copy { grid-column: 1 / 6; }
.scan-title { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.01em; }
.step { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; gap: 16px; max-width: 34rem; }
.step:first-of-type { min-height: 64vh; justify-content: flex-start; padding-top: 18vh; }
.step-line { font-size: var(--step-head); font-weight: 600; letter-spacing: -0.025em; line-height: 1; color: var(--muted); transition: color 0.3s; }
.step.is-current .step-line, .no-steps .step-line { color: var(--ink); }
.step-line::after { content: ""; display: block; width: 48px; height: 6px; margin-top: 20px; background: var(--tone-2); transition: background-color 0.3s, width 0.4s var(--ease); }
.step.is-current .step-line::after { background: var(--accent); width: 96px; }

.scan-stage {
  grid-column: 7 / 13; position: sticky; top: 12vh; height: min(76vh, 640px); align-self: start;
  margin-top: 12vh; background: var(--field); display: grid; place-items: center; overflow: hidden;
}
.phone-ui {
  position: relative; width: min(390px, 84%); height: 88%; background: #f2f2f7; border-radius: 34px;
  overflow: hidden; color: #000;
}
.state { position: absolute; inset: 0; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; opacity: 0; transform: translateY(12px); transition: opacity 0.45s, transform 0.55s var(--ease); pointer-events: none; }
.phone-ui[data-state="shelf"] .state-shelf,
.phone-ui[data-state="package"] .state-package,
.phone-ui[data-state="receipt"] .state-receipt { opacity: 1; transform: none; }
.ui-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; font-size: 15px; }
.ui-top b { font-weight: 600; text-align: center; font-size: 16px; }
.ui-btn { background: #fff; border-radius: 999px; padding: 7px 12px; font-size: 14px; color: #1b6e3e; }
.ui-btn.green { color: #1b6e3e; font-weight: 600; }
.ui-seg { display: flex; background: #e3e3e8; border-radius: 9px; padding: 2px; font-size: 12px; font-weight: 500; }
.ui-seg span { flex: 1; text-align: center; padding: 5px 0; border-radius: 7px; }
.ui-seg .on { background: #fff; }
.viewfinder { position: relative; height: 150px; border-radius: 16px; overflow: hidden; background: #222; flex: none; }
.viewfinder img { width: 100%; height: 100%; object-fit: cover; }
.seen { position: absolute; font-size: 11px; font-weight: 600; color: #fff; background: rgba(27, 110, 62, 0.92); padding: 3px 7px; border-radius: 6px; }
.seen.s1 { left: 6%; top: 58%; }
.seen.s2 { left: 33%; top: 30%; }
.viewfinder.date { height: 96px; background: #fff; }
.viewfinder.date img { object-fit: cover; object-position: 30% 50%; }
.target { position: absolute; inset: 22% 6%; border: 2px solid #ffcc00; border-radius: 8px; }
.ui-count { font-size: 13px; color: #3c3c43; font-weight: 600; }
.ui-review, .ui-checks, .ui-receipt { background: #fff; border-radius: 16px; padding: 4px 12px; }
.ui-review li, .ui-receipt li { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 14px; }
.ui-review li + li, .ui-receipt li + li, .ui-checks li + li { border-top: 0.5px solid #d1d1d6; } /* taste-skill-ignore: iOS list separators, data-ui */
.ui-name { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-name small, .ui-checks small { font-size: 11.5px; color: #6c6c70; overflow: hidden; text-overflow: ellipsis; }
.tick, .ok, .wait { width: 20px; height: 20px; border-radius: 50%; flex: none; border: 1.5px solid #c7c7cc; }
.tick.on, .ok { position: relative; border: 0; background: #34c759; }
.tick.on::after, .ok::after { content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.2px 2.2px 0; transform: rotate(45deg); }
.wait { border-style: dashed; }
.mini-seg { display: flex; gap: 2px; font-size: 10.5px; background: #ececf0; border-radius: 7px; padding: 2px; }
.mini-seg i { font-style: normal; padding: 3px 5px; border-radius: 5px; }
.mini-seg i.on { background: var(--basil); color: #fff; }
.add-list { font-size: 12px; color: #92400e; background: #ffedd5; border-radius: 999px; padding: 3px 9px; }
.ui-checks li { display: grid; grid-template-columns: 20px 1fr; column-gap: 10px; padding: 10px 0; font-size: 15px; align-items: center; }
.ui-checks small { grid-column: 2; }
.ui-checks .wait { grid-row: span 2; }
.ui-checks .ok { grid-row: span 2; }
.ui-receipt .price { font-size: 13px; color: #3c3c43; font-variant-numeric: tabular-nums; }
.ui-receipt .off { opacity: 0.55; }
.spot { width: 26px; height: 26px; border-radius: 50%; flex: none; position: relative; }
.spot.fridge { background: #e1ecf8; }
.spot.pantry { background: #f6ead8; }
.spot::after { content: ""; position: absolute; left: 9px; top: 7px; width: 8px; height: 11px; border: 1.5px solid; border-radius: 2px; }
.spot.fridge::after { color: var(--fridge); border-color: var(--fridge); }
.spot.pantry::after { border-color: var(--pantry); }

/* ---------- One row, three states ---------- */
.rows {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter);
  padding: var(--section) var(--m) 0;
}
.rows-title { grid-column: 4 / 10; font-size: var(--step-head); font-weight: 600; letter-spacing: -0.025em; line-height: 1; margin-bottom: 72px; }
.row-states { grid-column: 1 / 10; display: grid; grid-template-columns: subgrid; row-gap: 56px; }
.row-state { grid-column: 1 / 10; display: grid; grid-template-columns: subgrid; align-items: center; }
.state-word { grid-column: 1 / 4; text-align: right; font-size: var(--step-lead); color: var(--muted); padding-right: 8px; }
.row-state .krow { grid-column: 4 / 10; }
.live-note { grid-column: 4 / 10; font-size: var(--step-small); color: var(--muted); min-height: 1.5em; margin-top: 10px; }
.live-note button { border: 0; background: none; padding: 0; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.krow { position: relative; height: 78px; background: #fff; border-radius: 24px; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 0 18px; max-width: 640px; }
.krow .badge { width: 46px; height: 46px; font-size: 25px; }
.k-meta { font-size: 14px; gap: 10px; }
.pin { display: inline-block; width: 11px; height: 13px; vertical-align: 1px; margin-left: 4px; }
.pin path { fill: #8e8e93; stroke: #8e8e93; stroke-width: 1.2; stroke-linejoin: round; }
.gauge { display: inline-block; width: 26px; height: 8px; background: #e5e5ea; border-radius: 4px; overflow: hidden; }
.gauge i { display: block; height: 100%; background: var(--basil); }
.gauge .g4 { width: 100%; }
.gauge .g1 { width: 25%; }
.gauge.low i { background: #f97316; }
.krow.swiped { padding: 0; gap: 0; }
.krow-body { flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; gap: 12px; padding: 0 14px 0 18px; background: #fff; }
.krow-actions { align-self: stretch; display: flex; flex: none; }
.act { width: 84px; border: 0; color: #fff; font: 600 15px/1 var(--ui-font); cursor: pointer; transition: filter 0.2s; }
.act:hover { filter: brightness(1.08); }
.act:active { filter: brightness(0.92); }
.act-used { background: #1f7a35; }
.act-tossed { background: #d70015; }
.act-freeze { background: #0a63c9; }
.krow.grocery .circle { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #c7c7cc; flex: none; margin: 0 11px; }
.krow .qty { color: #6c6c70; margin-left: 6px; }
.rows-notes { grid-column: 10 / 13; grid-row: 2; display: flex; flex-direction: column; gap: 24px; font-size: var(--step-small); line-height: 1.5; padding-left: 8px; }
.rows-notes p { font-size: var(--step-small); }
.rows-notes b { font-weight: 600; }

/* ---------- Plan, cook, shop ---------- */
.cook {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter);
  padding: var(--section) var(--m) 0;
}
.cook-head { grid-column: 3 / 13; display: flex; align-items: baseline; justify-content: space-between; gap: 32px; margin-bottom: 72px; }
.cook-title { font-size: var(--step-head); font-weight: 600; letter-spacing: -0.025em; line-height: 1; }
.cook-head p { max-width: 24rem; }
.modules { grid-column: 3 / 13; display: flex; flex-direction: column; gap: 112px; }
.module { display: grid; grid-template-columns: 380px minmax(0, 34rem); gap: 40px; align-items: start; }
.panel { background: #f2f2f7; overflow: hidden; }
.panel img { max-width: 100%; height: auto; }
.module h3 { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 12px; }
.module-text { max-width: 30rem; }
.module-text p + p { margin-top: 12px; }
.panel-prep { padding: 20px; display: flex; flex-direction: column; gap: 12px; background: #dfe2da; }
.tape { background: #f4f3ee; padding: 10px 14px; transform: rotate(-1.2deg); display: flex; flex-direction: column; gap: 2px; }
.tape.t2 { transform: rotate(0.8deg); margin-left: 18px; }
.tape b { font: 600 17px/1.2 var(--ui-font); }
.tape span { font-size: 13px; color: #3c3c43; }
.prep-steps { display: flex; flex-direction: column; gap: 6px; background: #fff; border-radius: 14px; padding: 10px 12px; font-size: 14px; }
.prep-steps span { display: flex; gap: 10px; }
.prep-steps i { font-style: normal; font-weight: 600; color: var(--basil); font-variant-numeric: tabular-nums; width: 34px; flex: none; }
.panel-setup { padding: 20px; background: #f2f2f7; }
.setup-q { font: 700 22px/1.15 var(--ui-font); margin-bottom: 14px; }
.setup-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.setup-chips span { background: #fff; border-radius: 14px; padding: 10px 13px; font-size: 15px; }
.setup-chips .on { background: var(--basil); color: #fff; font-weight: 600; }

/* ---------- The week ---------- */
.week { padding: var(--section) var(--m) 0; }
.week-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.week-title { font-size: var(--step-head); font-weight: 600; letter-spacing: -0.025em; line-height: 1.02; }
.week-title span { display: block; }
.week-title .soft { color: var(--muted); }
.week-lead { margin-top: 24px; max-width: 44rem; }
.agenda { display: grid; grid-template-columns: 150px 1fr; gap: 40px; margin-top: 56px; }
.days { display: flex; flex-direction: column; gap: 6px; }
.days button { height: 64px; border: 0; background: var(--tone); text-align: left; padding: 0 16px; display: flex; flex-direction: column; justify-content: center; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.days button b { font-weight: 500; font-size: var(--step-body); }
.days button span { font-size: var(--step-small); color: var(--muted); }
.days button:hover { background: var(--tone-2); }
.days button[aria-selected="true"] { background: var(--ink); color: #fff; }
.days button[aria-selected="true"] span { color: #c9d3cd; }
.day-panels { min-width: 0; }
.day { display: flex; flex-direction: column; gap: 4px; }
.js .day[hidden] { display: none; }
.no-js-days .day + .day { margin-top: 24px; }
.band { min-height: 76px; display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; align-items: center; gap: 0 20px; padding: 10px 20px; background: var(--tone); }
.band:nth-child(even) { background: var(--tone-2); }
.when { font-size: var(--step-lead); font-variant-numeric: tabular-nums; white-space: nowrap; }
.what { display: flex; flex-direction: column; min-width: 0; }
.what b { font-weight: 500; font-size: var(--step-body); line-height: 1.3; }
.what small { font-size: var(--step-small); color: var(--muted); }
.who { display: flex; align-items: center; gap: 12px; font-size: var(--step-small); }
.faces { display: flex; }
.faces i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 600; font-size: 13px; color: #fff; margin-left: -8px; border: 2px solid var(--tone); }
.faces i:first-child { margin-left: 0; }
.p-sam { background: var(--field); }
.p-alex { background: var(--fridge); }
.p-maya { background: var(--pantry); }
.p-leo { background: #b4441a; }

/* ---------- What it costs ---------- */
.pricing { padding: var(--section) var(--m) 0; }
.plans { width: 100%; border-collapse: collapse; table-layout: fixed; }
.plans th, .plans td { text-align: left; vertical-align: top; font-weight: 400; padding: 20px; font-size: var(--step-lead); line-height: 1.3; }
.plans tbody th { width: 34%; }
.plans thead th { vertical-align: bottom; padding-top: 32px; padding-bottom: 28px; }
.plans-corner h2 { font-size: var(--step-lead); font-weight: 600; }
.plan-name { display: block; font-size: var(--step-head); font-weight: 700; letter-spacing: -0.025em; line-height: 1; }
.plan-price { display: block; font-size: var(--step-head); font-weight: 400; letter-spacing: -0.025em; line-height: 1.05; margin-top: 8px; }
.plan-price small { display: block; font-size: var(--step-small); letter-spacing: 0; margin-top: 10px; line-height: 1.4; }
.plans tbody tr:nth-child(odd) { background: var(--tone); }
.plans .plan-free { background: var(--field); color: var(--on-field); }
.plans tbody tr:nth-child(odd) .plan-free { background: var(--field-tone); }
.plans .plan-free small { color: var(--on-field-soft); }
.plans-actions th, .plans-actions td { padding-top: 28px; padding-bottom: 32px; }
.plans-actions { background: none !important; }
.plans-phone { display: none; }

/* ---------- Questions ---------- */
.faq {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter);
  padding: var(--section) var(--m) 0;
}
.faq-list { grid-column: 1 / 6; }
.faq-title { font-size: var(--step-body); font-weight: 500; color: var(--muted); margin-bottom: 18px; }
.qa-index { display: flex; flex-direction: column; gap: 6px; }
.q-item dt button {
  display: flex; align-items: baseline; gap: 14px; width: 100%; text-align: left; border: 0; background: none; padding: 6px 0;
  font-size: var(--step-body); color: var(--muted); cursor: pointer; transition: color 0.2s;
}
.q-item dt button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; transform: translateY(-2px); transition: background-color 0.2s, transform 0.2s; }
.q-item dt button:hover, .q-item.is-open dt button { color: var(--ink); }
.q-item.is-open dt button::before { background: var(--accent); transform: translateY(-2px) scale(1.4); }
.q-item dd { padding: 4px 0 16px 22px; font-size: var(--step-body); }
.faq-pane { display: none; }
.js .faq-pane { display: block; grid-column: 7 / 13; position: sticky; top: 120px; align-self: start; min-height: 12em; }
.faq-answer { font-size: var(--step-lead); line-height: 1.32; max-width: 30ch; transition: opacity 0.15s; }
.faq-answer.fading { opacity: 0; }
.js .q-item dd { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0; }

/* ---------- The close ---------- */
.get {
  display: grid; grid-template-columns: calc(var(--m) + (100vw - 2 * var(--m)) * 2 / 12 - 8px) 1fr calc(var(--m) + (100vw - 2 * var(--m)) * 2 / 12 - 8px);
  gap: 12px; margin-top: var(--section); height: 400px;
}
.tile { overflow: hidden; }
.tile-photo video { width: 100%; height: 100%; object-fit: cover; }
.tile-main { background: var(--accent); padding: 40px clamp(24px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.tile-main h2 { font-size: var(--step-head); font-weight: 600; letter-spacing: -0.025em; line-height: 1; }
.tile-main p { max-width: 38rem; }
.tile-main p:last-child { margin-top: 8px; }
.tile-field { background: var(--field); }

/* ---------- Footer ---------- */
.foot { padding: 22svh var(--m) 30px; }
.credits { font-size: var(--step-small); color: var(--muted); max-width: 60rem; margin-bottom: 28px; }
.foot-line { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 24px; font-size: var(--step-small); }
.foot-line p:first-child { color: var(--muted); }
.foot-line nav { display: flex; gap: 24px; }
.foot-line p:last-child { text-align: right; color: var(--muted); }
.foot-line a { color: var(--ink); }

/* ---------- Entrances ---------- */
.js .reveal { opacity: 0; translate: 0 28px; transition: opacity 0.7s var(--ease), translate 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.in { opacity: 1; translate: none; }
.js .reveal:not(.in) { animation: reveal-safety 0.01s 4s forwards; }
@keyframes reveal-safety { to { opacity: 1; translate: none; } }
@keyframes arrive { from { opacity: 0; translate: 0 32px; } }
.band.enter { animation: band-in 0.5s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes band-in { from { opacity: 0; translate: 20px 0; } }

/* ---------- Narrower screens ---------- */
@media (max-width: 1180px) {
  .rows-title, .row-states { grid-column: 1 / -1; }
  .rows-title { grid-column: 4 / -1; }
  .row-states, .row-state { grid-column: 1 / -1; }
  .row-state .krow, .live-note { grid-column: 4 / 13; }
  .rows-notes { grid-column: 4 / 13; grid-row: auto; margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; padding-left: 0; }
  .module { grid-template-columns: 1fr; }
  .panel { max-width: 380px; }
}

@media (max-width: 900px) {
  main p, main dd, .module-text, .credits { max-width: 62ch; }
  .hero-stage { --fw: min(calc(100vw - 2 * var(--m)), calc((100svh - 150px) * 16 / 9)); --fh: calc(var(--fw) * 9 / 16); --gap: 24px; --t: clamp(2.5rem, 11vw, 4.5rem); min-height: 0; }
  .bar { height: 60px; }
  .bar-nav { gap: 18px; }
  .bar-nav a[href="#scan"], .bar-nav a[href="#week"] { display: none; }
  .bar-nav .long { display: none; }
  .bar-nav .short { display: inline; }
  .hero-stage { height: auto; min-height: 100svh; overflow: visible; padding: 76px var(--m) 40px; }
  .hero-title { font-size: var(--t); position: static; transform: none; display: block; }
  .half { display: block; }
  .half.two { text-align: right; margin-top: calc(var(--fh) + 40px); }
  .reel { left: 50%; width: var(--fw); transform: translateX(-50%); top: calc(76px + 0.95 * var(--t) + 20px); bottom: auto; height: var(--fh); }
  .reel-track { top: 0; bottom: 0; transform: none; display: block; }
  .reel-item { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s; }
  .reel-item.is-active { opacity: 1; visibility: visible; }
  .reel-captions { display: none; }
  .hero-lead { position: static; width: auto; margin-top: 28px; }
  .hero-actions { margin-top: 16px; }
  .qa { padding: 12px; gap: 8px; }

  .scan { display: block; padding-top: 120px; }
  .scan-stage { position: sticky; top: 0; z-index: 2; height: 46svh; margin: 24px calc(-1 * var(--m)) 0; place-items: start center; padding-top: 16px; align-self: stretch; }
  .phone-ui { height: calc(46svh + 60px); width: min(390px, calc(100% - 32px)); border-radius: 30px; }
  .scan { display: flex; flex-direction: column; }
  .scan-copy { display: contents; }
  .scan-title { order: -2; }
  .scan-stage { order: -1; }
  .step, .step:first-of-type { min-height: 0; padding: 28px var(--m); margin: 0 calc(-1 * var(--m)) 34svh; justify-content: flex-start; position: relative; z-index: 3; background: var(--bg); }
  .step:last-child { margin-bottom: 0; }
  .scan-title { margin-bottom: 0; }

  .rows { display: block; padding-top: 120px; }
  .rows-title { margin-bottom: 40px; }
  .row-states { display: flex; flex-direction: column; gap: 48px; }
  .row-state { display: flex; flex-direction: column; align-items: stretch; }
  .state-word { order: 2; text-align: left; font-size: var(--step-body); margin-top: 10px; padding: 0; }
  .live-note { order: 3; }
  .krow { max-width: none; }
  .krow-body .k-meta .gauge, .krow-body .chip { display: none; }
  .rows-notes { display: flex; margin-top: 56px; }

  .cook { display: block; padding-top: 120px; }
  .cook-head { display: block; margin-bottom: 56px; }
  .cook-head p { margin-top: 20px; }
  .modules { gap: 64px; }
  .module { gap: 16px; }
  .panel { max-width: none; }
  .panel img { max-width: none; }

  .week { padding-top: 120px; }
  .week-head { flex-direction: column; align-items: stretch; gap: 24px; }
  .week-head .button { order: 3; }
  .agenda { display: block; margin-top: 32px; }
  .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; position: sticky; top: 0; z-index: 2; background: var(--bg); padding: 8px 0; }
  .days button { height: 56px; padding: 0; align-items: center; }
  .days .long { display: none; }
  .days .short { display: inline; }
  .days button b { font-size: var(--step-small); font-weight: 600; }
  .day-panels { margin-top: 8px; }
  .band { grid-template-columns: 1fr auto; grid-template-areas: "when who" "what what"; padding: 16px; gap: 6px 12px; }
  .when { grid-area: when; }
  .what { grid-area: what; }
  .who { grid-area: who; }
  .who .names { display: none; }

  .pricing { padding-top: 120px; }
  .plans { display: none; }
  .plans-phone { display: flex; flex-direction: column; gap: 56px; }
  .plans-phone h2 { font-size: var(--step-head); font-weight: 600; letter-spacing: -0.025em; line-height: 1; }
  .plan-block { padding: 24px var(--m); margin: 0 calc(-1 * var(--m)); background: var(--tone); }
  .plan-block.free { background: var(--field); color: var(--on-field); }
  .plan-block .plan-name, .plan-block .plan-price { font-size: var(--step-head); }
  .plan-block dl { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
  .plan-block dt { color: var(--muted); }
  .plan-block.free dt, .plan-block.free small { color: var(--on-field-soft); }
  .plan-block .button { width: 100%; margin-top: 24px; }

  .faq { display: block; padding-top: 120px; }
  .js .faq-pane { display: none; }
  .js .q-item dd { position: static; width: auto; height: auto; overflow: visible; clip-path: none; padding: 4px 0 16px 22px; display: none; }
  .js .q-item.is-open dd { display: block; }

  .get { grid-template-columns: 1fr 1fr; grid-template-rows: auto 120px; height: auto; padding: 0; gap: 12px; }
  .tile-main { grid-column: 1 / -1; grid-row: 1; min-height: 300px; padding: 32px var(--m); }
  .tile-main .button { width: 100%; }
  .tile-photo { grid-row: 2; }
  .tile-field { grid-row: 2; }

  .foot { padding-top: 20svh; padding-bottom: 24px; }
  .foot-line { grid-template-columns: 1fr; gap: 8px; }
  .foot-line nav { flex-wrap: wrap; gap: 8px 20px; }
  .foot-line p:last-child { text-align: left; }
}

@media (max-width: 420px) {
  .act { width: 68px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reel-track, .state, .reel-captions li, .krow-body { transition: none; }
  .js .reveal { translate: none; transition: opacity 0.3s; }
  .band.enter { animation: none; }
  .button:hover { transform: none; }
}

/* ---------- Privacy, support and 404 ---------- */
.page-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; padding: 0 var(--m); }
.doc { padding: clamp(48px, 8vw, 120px) var(--m) 0; max-width: calc(46rem + 2 * var(--m)); }
.doc h1 { font-size: var(--step-head); font-weight: 600; letter-spacing: -0.025em; line-height: 1; }
.doc-sub { margin-top: 16px; color: var(--muted); font-size: var(--step-small); }
.doc .lead { margin-top: 32px; font-size: var(--step-lead); line-height: 1.4; }
.doc h2 { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.01em; margin: 56px 0 12px; }
.doc p + p { margin-top: 14px; }
.doc ul { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.doc li { padding-left: 22px; position: relative; }
.doc li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 8px; height: 8px; background: var(--basil); }
.doc b { font-weight: 600; }
.doc-foot { padding-top: 120px; }
.lost { min-height: calc(100svh - 76px); display: grid; grid-template-columns: 1fr minmax(0, 40%); gap: var(--gutter); align-items: center; padding: 0 var(--m) var(--m); }
.lost h1 { font-size: var(--step-display); font-weight: 700; letter-spacing: -0.03em; line-height: 0.95; }
.lost p { margin-top: 20px; }
.lost img { width: 100%; height: min(80svh, 720px); object-fit: cover; }
@media (max-width: 900px) {
  .lost { grid-template-columns: 1fr; padding-top: 40px; }
  .lost img { height: 50svh; }
  .page-bar { height: 60px; }
}
