/* ==========================================================================
   pantryrx.ai — home page
   Builds on site.css tokens. Motion: transforms + opacity only; every loop
   pauses offscreen (.is-paused from home.js) and under reduced motion.
   ========================================================================== */

.home {
  --plate-rim: #efebe3;
  --glass: color-mix(in srgb, var(--surface) 92%, transparent);
  --ring: color-mix(in srgb, var(--green) 30%, transparent);
  --deep-1: #123a2e;
  --deep-2: #1f5c48;
  --deep-3: #2f7a60;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .home {
    --plate-rim: #e4dfd5;
    --glass: color-mix(in srgb, var(--surface-2) 94%, transparent);
    --deep-1: #0b2a21;
    --deep-2: #17493a;
    --deep-3: #226650;
  }
}

.food-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nowrap { white-space: nowrap; }
.clamp-2, .clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-2 { -webkit-line-clamp: 2; }
.clamp-3 { -webkit-line-clamp: 3; }
.is-paused *, .is-paused *::before, .is-paused *::after { animation-play-state: paused !important; }
.home .section { overflow: clip; }

/* ---------- Plates (echo of the app's PlateArt) ---------- */
.g1 { --g: #eee6d6; } .g2 { --g: #f6dcb0; } .g3 { --g: #dce8f1; } .g4 { --g: #dcebd2; } .g5 { --g: #ebe4f1; }
.plate {
  --g: #eee6d6;
  display: block; aspect-ratio: 1; border-radius: 50%; position: relative;
  background:
    radial-gradient(circle at 76% 20%, rgba(60, 40, 20, 0.07) 0 8%, transparent 8.5%),
    radial-gradient(circle at 16% 80%, rgba(60, 40, 20, 0.06) 0 6%, transparent 6.5%),
    var(--g);
}
.plate::before {
  content: ""; position: absolute; inset: 13%; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 60%, var(--plate-rim) 61% 63%, #fff 64%);
  box-shadow: 1px 3px 0 rgba(40, 30, 20, 0.09);
}
.plate::after { content: ""; position: absolute; inset: 29%; border-radius: 50%; background: var(--food); }
.p1 { --food:
  radial-gradient(circle at 30% 40%, #d9493b 0 17%, transparent 18%),
  radial-gradient(circle at 64% 32%, #f7c948 0 14%, transparent 15%),
  radial-gradient(circle at 52% 70%, #5f9e4d 0 13%, transparent 14%),
  radial-gradient(circle at 74% 62%, #e6c794 0 17%, transparent 18%),
  radial-gradient(circle at 34% 74%, #e6c794 0 9%, transparent 10%); }
.p2 { --food:
  radial-gradient(circle at 40% 36%, #e6c794 0 20%, transparent 21%),
  radial-gradient(circle at 66% 58%, #f08e3e 0 14%, transparent 15%),
  radial-gradient(circle at 32% 68%, #5f9e4d 0 10%, transparent 11%),
  radial-gradient(circle at 70% 28%, #2f3530 0 6%, transparent 7%),
  radial-gradient(circle at 50% 84%, #f7f0dc 0 11%, transparent 12%); }
.p3 { --food:
  radial-gradient(circle at 38% 38%, #f7c948 0 16%, transparent 17%),
  radial-gradient(circle at 64% 60%, #f5d971 0 19%, transparent 20%),
  radial-gradient(circle at 34% 70%, #5f9e4d 0 12%, transparent 13%),
  radial-gradient(circle at 70% 30%, #e6c794 0 10%, transparent 11%); }
.p4 { --food:
  radial-gradient(circle at 44% 44%, #f39a7f 0 22%, transparent 23%),
  radial-gradient(circle at 72% 64%, #5f9e4d 0 12%, transparent 13%),
  radial-gradient(circle at 26% 70%, #5f9e4d 0 8%, transparent 9%),
  radial-gradient(circle at 70% 26%, #f7c948 0 9%, transparent 10%); }
.p5 { --food:
  radial-gradient(circle at 36% 40%, #6b4530 0 16%, transparent 17%),
  radial-gradient(circle at 64% 36%, #e6c794 0 15%, transparent 16%),
  radial-gradient(circle at 56% 68%, #d9493b 0 12%, transparent 13%),
  radial-gradient(circle at 28% 70%, #5f9e4d 0 9%, transparent 10%); }
.p6 { --food:
  radial-gradient(circle at 50% 50%, #f7f0dc 0 26%, transparent 27%),
  radial-gradient(circle at 32% 34%, #e6c794 0 12%, transparent 13%),
  radial-gradient(circle at 68% 64%, #5f9e4d 0 11%, transparent 12%),
  radial-gradient(circle at 70% 32%, #d9493b 0 9%, transparent 10%); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .plate, :root:not([data-theme="light"]) .media-ph { filter: brightness(0.86) saturate(0.95); }
}

/* =================================================================
   1 · HERO
   ================================================================= */
.hero { position: relative; overflow: clip; isolation: isolate; padding: clamp(28px, 5vw, 72px) 0 clamp(56px, 7vw, 104px); }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; }
.b1 { width: 900px; height: 900px; right: -260px; top: -320px; background: radial-gradient(closest-side, color-mix(in srgb, var(--mint) 46%, transparent), transparent); }
.b2 { width: 620px; height: 620px; left: -260px; bottom: -260px; background: radial-gradient(closest-side, color-mix(in srgb, var(--gold) 26%, transparent), transparent); }
.b3 { width: 520px; height: 520px; right: 18%; bottom: -300px; background: radial-gradient(closest-side, color-mix(in srgb, var(--amber) 14%, transparent), transparent); }
.hero-grain { position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--ink) 7%, transparent) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000, transparent 75%); opacity: 0.6; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  padding: 6px 14px 6px 10px; border-radius: 999px; font-size: 0.86rem; font-weight: 600; color: var(--green-deep);
  background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); position: relative; }
.kicker-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--green); opacity: 0; animation: ping 2.4s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(0.4); opacity: 0.7; } 80%, 100% { transform: scale(1.6); opacity: 0; } }

.hero-title { font-size: clamp(2.7rem, 6.4vw, 5.6rem); line-height: 1.0; letter-spacing: -0.035em; max-width: 11ch; margin-bottom: 0.32em; }
.hero-accent { position: relative; color: var(--green-deep); white-space: nowrap; }
.hero-underline { position: absolute; left: -2%; right: 0; bottom: -0.1em; width: 102%; height: 0.26em; overflow: visible; z-index: -1; }
.hero-underline path { fill: none; stroke: var(--gold); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.2s var(--ease-out) 0.5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-lede { margin-bottom: 28px; max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.hero-primary { box-shadow: 0 10px 30px color-mix(in srgb, var(--green) 35%, transparent); }
.hero-primary svg { transition: transform 0.3s var(--ease-out); }
.hero-primary:hover svg { transform: translateX(4px); }
.hero-badges .store-badges { gap: 10px; }
.release-note { position: relative; margin: 14px 0 0; padding-left: 18px; font-size: 0.88rem; color: var(--ink-2); max-width: 40rem; line-height: 1.45; }
.release-note a { font-weight: 650; }
.rn-dot { position: absolute; left: 2px; top: 0.5em; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px color-mix(in srgb, var(--amber) 22%, transparent); }
.release-note.on-dark { color: rgba(244, 250, 247, 0.8); margin: 4px auto 0; max-width: 34rem; }
.new-tag { display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: var(--mint-soft); color: var(--green-deep); }
.hero-trust { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.92rem; color: var(--ink-2); }
.hero-trust li { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 16px; height: 16px; fill: none; stroke: var(--green); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.hero-visual { position: relative; }
.hero-stage { position: relative; width: 100%; max-width: 580px; margin: 0 auto; aspect-ratio: 1 / 1.08; perspective: 1400px; }
.hero-stage::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 74%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--mint) 55%, transparent), color-mix(in srgb, var(--mint) 12%, transparent) 70%, transparent);
}
.orbit-ring {
  position: absolute; left: 50%; top: 50%; width: 90%; height: 52%; border-radius: 50%;
  border: 1.5px dashed color-mix(in srgb, var(--green) 28%, transparent); transform: translate(-50%, -50%) rotate(-12deg);
}
.orbit { position: absolute; inset: 0; }
.orbit-item {
  position: absolute; left: var(--fx); top: var(--fy); z-index: 3;
  width: clamp(46px, 5.2vw, 76px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 28%, #fff, #f7f3ea 70%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 10px 24px rgba(23, 63, 51, 0.16), 0 2px 6px rgba(23, 63, 51, 0.08);
  transform: translate(-50%, -50%); will-change: transform;
}
.orbit.is-live .orbit-item { left: 50%; top: 50%; }
.orbit-item svg { width: 64%; height: 64%; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .orbit-item { background: radial-gradient(circle at 35% 28%, #3a3733, #262422 70%); box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 10px 24px rgba(0,0,0,.45); }
}

.phone {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: 45%;
  padding: 2.6%; border-radius: 15% / 7%;
  background: linear-gradient(145deg, #2b302d, #0d100f 40%, #1c201e);
  box-shadow: 0 0 0 1.5px #3a403c inset, 0 50px 90px -20px rgba(23, 63, 51, 0.45), 0 20px 40px -10px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, -50%); transform-style: preserve-3d; will-change: transform;
}
.phone::before, .phone::after { content: ""; position: absolute; width: 1.2%; border-radius: 2px; background: #252a27; }
.phone::before { left: -1%; top: 22%; height: 9%; }
.phone::after { right: -1%; top: 28%; height: 14%; }
.phone-screen { position: relative; overflow: hidden; border-radius: 12.5% / 5.8%; aspect-ratio: 444 / 962; background: #fcfbf7; }
.phone-video { width: 100%; height: 100%; object-fit: cover; }
.phone-island { position: absolute; left: 50%; top: 1.6%; width: 30%; height: 3.4%; border-radius: 999px; background: #0b0d0c; transform: translateX(-50%); }
.video-toggle {
  position: absolute; right: 9%; bottom: 5%; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: rgba(20, 24, 22, 0.62); color: #fff; opacity: 0; transition: opacity 0.25s;
}
.video-toggle[hidden] { display: none; }
.phone:hover .video-toggle, .video-toggle:focus-visible, .video-toggle.is-shown { opacity: 1; }
.video-toggle svg { width: 16px; height: 16px; fill: currentColor; }
.video-toggle .i-pause, .video-toggle.is-playing .i-play { display: none; }
.video-toggle.is-playing .i-pause { display: block; }
@media (hover: none) { .video-toggle { opacity: 0.9; } }

.toast {
  position: absolute; z-index: 5; border-radius: 18px; padding: 11px 14px; font-size: 0.84rem; line-height: 1.3;
  background: var(--glass); border: 1px solid var(--line); color: var(--ink);
  box-shadow: 0 18px 40px -12px rgba(23, 63, 51, 0.28), 0 2px 6px rgba(23, 63, 51, 0.06);
  animation: pop-in 0.9s var(--ease-spring) var(--in, 0.8s) both, bob 7s ease-in-out calc(var(--in, 0.8s) + 0.9s) infinite;
}
@keyframes pop-in { from { opacity: 0; transform: translateY(16px) scale(0.86); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.toast-week { left: -1%; top: 23%; --in: 1s; min-width: 196px; }
.toast-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.toast-label { font-weight: 700; }
.toast-sub { font-size: 0.74rem; color: var(--ink-3); }
.week-dots { display: flex; gap: 5px; }
.wdot { display: grid; justify-items: center; gap: 3px; }
.wdot i { width: 22px; height: 22px; border-radius: 50%; border: 1.5px dashed var(--line-strong); position: relative; }
.wdot i::after {
  content: ""; position: absolute; inset: -1.5px; border-radius: 50%;
  background: radial-gradient(circle at 38% 40%, #f7c948 0 16%, transparent 17%), radial-gradient(circle at 62% 60%, #d9493b 0 14%, transparent 15%), radial-gradient(circle, #fff 0 56%, #eee6d6 57%);
  box-shadow: 0 2px 4px rgba(0,0,0,.12);
  transform: scale(0); animation: dotfill 8s var(--ease-spring) calc(1.6s + var(--d) * 0.32s) infinite;
}
.wdot:nth-child(2n) i::after { background: radial-gradient(circle at 44% 44%, #5f9e4d 0 16%, transparent 17%), radial-gradient(circle at 64% 60%, #e6c794 0 16%, transparent 17%), radial-gradient(circle, #fff 0 56%, #dce8f1 57%); }
.wdot:nth-child(3n) i::after { background: radial-gradient(circle at 50% 46%, #f39a7f 0 20%, transparent 21%), radial-gradient(circle at 36% 64%, #5f9e4d 0 10%, transparent 11%), radial-gradient(circle, #fff 0 56%, #f6dcb0 57%); }
.wdot b { font-size: 0.62rem; font-weight: 700; color: var(--ink-3); }
@keyframes dotfill { 0%, 3% { transform: scale(0); } 9%, 84% { transform: scale(1); } 90%, 100% { transform: scale(0); } }

.toast-expire { right: -2%; top: 9%; --in: 1.35s; display: flex; align-items: center; gap: 10px; }
.toast-expire small { display: block; color: var(--ink-3); font-size: 0.74rem; }
.exp-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--amber-soft); color: var(--amber); flex: none; }
.exp-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.toast-cart {
  right: 2%; bottom: 13%; --in: 1.7s; display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px 12px 14px;
  background: linear-gradient(135deg, #3a9b77, #2b7f62); color: #fff; font-weight: 700; font-size: 0.95rem; border: 0; border-radius: 999px;
  box-shadow: 0 16px 34px -10px rgba(38, 107, 84, 0.6);
}
.toast-cart .cart-ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: nudge 3.2s ease-in-out 3s infinite; }
@keyframes nudge { 0%, 70%, 100% { transform: none; } 76% { transform: translateX(3px) rotate(-8deg); } 84% { transform: translateX(-2px) rotate(4deg); } 92% { transform: translateX(1px); } }

/* =================================================================
   2 · PROOF STRIP
   ================================================================= */
.proof { border-block: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.proof-list { list-style: none; margin: 0; padding: 18px 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 0; color: var(--ink-2); font-size: 0.95rem; font-weight: 500; }
.proof-list li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.proof-list li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: color-mix(in srgb, var(--green) 55%, transparent); margin: 0 16px; }
.proof-list strong { color: var(--ink); font-weight: 700; }
.proof-soon { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: var(--amber-soft); color: #8a5310; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .proof-soon { color: #f2c07a; } }

/* =================================================================
   3 · HOW IT WORKS
   ================================================================= */
.story .section-head { margin-bottom: clamp(16px, 3vw, 32px); }
.story-grid { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); gap: clamp(32px, 6vw, 96px); }
.story-steps { list-style: none; margin: 0; padding: 0; }
.story-step { min-height: 82vh; display: flex; flex-direction: column; justify-content: center; padding: 6vh 0; transition: opacity 0.5s var(--ease-out); }
.story-live .story-step { opacity: 0.32; }
.story-live .story-step.is-active { opacity: 1; }
.step-num {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; margin-bottom: 18px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--green-deep); background: var(--mint-soft);
}
.story-step h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.75rem, 2.8vw, 2.5rem); letter-spacing: -0.02em; margin-bottom: 14px; }
.story-step > p { color: var(--ink-2); font-size: 1.08rem; max-width: 40ch; }
.step-points { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 8px; }
.step-points li { display: flex; align-items: center; gap: 10px; font-weight: 550; }
.step-points li::before {
  content: ""; width: 20px; height: 20px; border-radius: 50%; flex: none;
  background: var(--mint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.5L14 7.5' fill='none' stroke='%2336886c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.step-note { margin-top: 16px; max-width: 44ch; }

.story-stage { position: relative; }
.story-sticky { position: sticky; top: max(92px, calc(50vh - 262px + 34px)); }
.story-card {
  position: relative; height: 580px; border-radius: 32px; padding: 20px 22px 22px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 40px 90px -30px rgba(23, 63, 51, 0.28), 0 4px 14px rgba(23, 63, 51, 0.05);
}
.story-card::before {
  content: ""; position: absolute; inset: -60px -40px auto auto; width: 280px; height: 280px; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--mint) 45%, transparent), transparent);
}
.story-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.stab { display: grid; gap: 7px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); transition: color 0.3s; }
.stab.is-active { color: var(--green-deep); }
.stab i { display: block; height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.stab b { display: block; height: 100%; background: var(--green); transform-origin: left; transform: scaleX(0); }
.story-scenes { position: relative; height: calc(100% - 42px); }

.scene { display: flex; flex-direction: column; gap: 14px; }
.story-scenes .scene { position: absolute; inset: 0; opacity: 0; transform: translateY(20px) scale(0.985); transition: opacity 0.55s var(--ease-out), transform 0.7s var(--ease-out); pointer-events: none; }
.story-scenes .scene.is-active, .story:not(.story-live) .story-scenes .scene:first-child { opacity: 1; transform: none; }
.scene-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.scene-title { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; letter-spacing: -0.02em; }
.scene-meta { color: var(--ink-3); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.scene-meta b { color: var(--green-deep); font-weight: 700; }

/* progressive items (only hidden once JS drives them) */
.story-live .kchip, .story-live .slot .plate, .story-live .gline, .story-live .hline, .story-live .expiring, .story-live .scan-row, .story-live .week-foot { opacity: 0; }
.story-live .kchip { transform: translateY(14px) scale(0.6); }
.story-live .gline { transform: translateX(-18px); }
.story-live .hline { transform: translateX(-60px); }
.story-live .expiring, .story-live .scan-row, .story-live .week-foot { transform: translateY(10px); }
.story-live .slot .plate { transform: scale(0.2) rotate(-60deg); }
.kchip, .slot .plate, .gline, .hline, .expiring, .scan-row, .week-foot { transition: opacity 0.35s var(--ease-out), transform 0.6s var(--ease-spring); }
.story-live .on, .story-live .slot.on .plate { opacity: 1 !important; transform: none !important; }

/* Kitchen */
.shelf {
  display: flex; flex-wrap: wrap; align-content: center; gap: 12px; padding: 20px; border-radius: 22px; flex: 1;
  background: linear-gradient(180deg, var(--surface-2), color-mix(in srgb, var(--surface-2) 40%, var(--surface)));
  border: 1px solid var(--line);
}
.kchip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-weight: 600; font-size: 0.92rem;
}
.kchip svg, .kchip i { width: 28px; height: 28px; border-radius: 50%; flex: none; }
@media (min-width: 901px) {
  .story-scenes .kchip { font-size: 1rem; padding: 8px 18px 8px 8px; }
  .story-scenes .kchip svg, .story-scenes .kchip i { width: 34px; height: 34px; }
}
.kchip svg { background: var(--surface-2); padding: 3px; }
.kchip i { background: radial-gradient(circle at 36% 30%, rgba(255,255,255,.7), transparent 45%), var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.kitchen-foot { display: grid; gap: 10px; }
.expiring { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--amber-soft); font-size: 0.92rem; }
.exp-bar { width: 40px; height: 6px; border-radius: 6px; background: color-mix(in srgb, var(--amber) 25%, transparent); overflow: hidden; flex: none; }
.exp-bar b { display: block; width: 78%; height: 100%; background: var(--amber); border-radius: 6px; }
.exp-link { margin-left: auto; font-weight: 700; color: var(--green-deep); white-space: nowrap; }
.scan-row { display: flex; gap: 8px; flex-wrap: wrap; }
.scan-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 0.86rem; font-weight: 600; color: var(--ink-2); }
.scan-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }

/* Week */
.week-grid { display: grid; grid-template-columns: 78px repeat(7, minmax(0, 1fr)); grid-template-rows: auto repeat(3, auto); gap: 10px 8px; align-items: center; padding: 16px; border-radius: 22px; background: var(--surface-2); border: 1px solid var(--line); }
.wg-corner { grid-row: 1; grid-column: 1; }
.wg-day { grid-row: 1; text-align: center; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.wg-meal { grid-column: 1; display: flex; align-items: center; gap: 6px; font-size: 0.76rem; font-weight: 650; color: var(--ink-2); }
.wg-meal svg { width: 18px; height: 18px; fill: none; stroke: var(--green); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wg-meal em { font-style: normal; }
.slot { position: relative; aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed var(--line-strong); transition: border-color 0.3s; }
.slot .plate { position: absolute; inset: -1.5px; }
.slot.on { border-color: transparent; }
.slot.is-new::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--green); animation: ring 0.9s var(--ease-out) forwards; }
@keyframes ring { from { transform: scale(0.7); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.week-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.wf-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--amber-soft); color: #87500f; font-size: 0.86rem; font-weight: 650; }
.wf-pill svg { width: 15px; height: 15px; fill: currentColor; }
.wf-swap { font-size: 0.86rem; font-weight: 700; color: var(--green-deep); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wf-pill { color: #f2c07a; } }

/* Cart */
.cart-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; flex: 1; min-height: 0; }
.aisles { display: grid; align-content: start; gap: 8px; }
.story-scenes .gline { padding: 5px 0; }
.aisle { display: grid; }
.aisle-name { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
.gline { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 0.93rem; }
.gline i { width: 16px; height: 16px; border-radius: 50%; border: 1.8px solid var(--line-strong); flex: none; }
.gline em { margin-left: auto; font-style: normal; color: var(--ink-3); font-size: 0.84rem; }
.gline-more { color: var(--green-deep); font-weight: 650; border-bottom: 0; font-size: 0.86rem; }
.have { align-self: start; display: grid; gap: 4px; padding: 14px; border-radius: 18px; background: var(--mint-soft); }
.have .aisle-name { color: var(--green-deep); margin-bottom: 4px; }
.hline { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--ink-2); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--green) 50%, transparent); }
.hline svg { width: 16px; height: 16px; fill: none; stroke: var(--green); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.cart-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 4px; }
.cb-add { padding: 11px 18px; border-radius: 999px; background: var(--surface-2); font-weight: 650; font-size: 0.92rem; }
.cb-go {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px 12px 12px; border-radius: 999px; font-weight: 700;
  background: linear-gradient(135deg, #3a9b77, #2b7f62); color: #fff; box-shadow: 0 14px 30px -10px rgba(38, 107, 84, 0.55); font-variant-numeric: tabular-nums;
  transition: transform 0.5s var(--ease-spring);
}
.cb-cart { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.18); }
.cb-cart svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.scene-cart.is-done .cb-go { transform: scale(1.04); }
.scene-cart.is-done .cb-cart svg { animation: roll 1s var(--ease-out); }
@keyframes roll { 0% { transform: none; } 35% { transform: translateX(8px) rotate(-10deg); opacity: 0; } 36% { transform: translateX(-10px); opacity: 0; } 70% { transform: translateX(2px); opacity: 1; } 100% { transform: none; } }

/* =================================================================
   4 · FEATURES
   ================================================================= */
.features .section-head h2 { max-width: 18ch; }
.feature { position: relative; overflow: hidden; transition-property: opacity, transform, box-shadow, border-color; }
.feature::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--mint) 22%, transparent), transparent 60%);
}
.feature:hover { box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--green) 25%, var(--line)); }
.feature:hover::after { opacity: 1; }
.feature h3 { font-size: 1.12rem; }
.feature p { margin: 0; font-size: 0.97rem; }
.feature .icon-tile { transition: transform 0.5s var(--ease-spring); }
.feature:hover .icon-tile { transform: scale(1.08) rotate(-4deg); }
.feature .icon-tile svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature .icon-tile .fill { fill: currentColor; stroke: none; }
.feature:nth-child(4n + 2) .icon-tile { background: var(--amber-soft); color: #a8640f; }
.feature:nth-child(4n + 3) .icon-tile { background: var(--violet-soft); color: #5d4a82; }
.feature:nth-child(4n + 4) .icon-tile { background: var(--tomato-soft); color: #b13a2f; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .feature:nth-child(4n + 2) .icon-tile { color: #f2c07a; }
  :root:not([data-theme="light"]) .feature:nth-child(4n + 3) .icon-tile { color: #cbbdf0; }
  :root:not([data-theme="light"]) .feature:nth-child(4n + 4) .icon-tile { color: #f3a39b; }
}
.wave-hand { transform-origin: 60% 90%; animation: wave 3.4s ease-in-out 1s infinite; }
.wave-lines { opacity: 0.8; }
@keyframes wave { 0%, 55%, 100% { transform: rotate(0); } 62% { transform: rotate(-14deg); } 70% { transform: rotate(10deg); } 78% { transform: rotate(-10deg); } 86% { transform: rotate(6deg); } }
.feature-more { text-align: center; color: var(--ink-2); margin: clamp(28px, 4vw, 44px) auto 0; max-width: 62ch; }

/* =================================================================
   5 · DIET & ALLERGIES
   ================================================================= */
.diet-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.diet h2 em, .rd-invite h2 em { font-style: normal; color: var(--green-deep); }
.diet-controls { display: grid; gap: 22px; margin: 28px 0 18px; }
.ctrl-label { font-weight: 700; font-size: 0.95rem; margin: 0 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dchip, .achip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 0.93rem;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.3s var(--ease-spring), box-shadow 0.25s;
}
.dchip:hover, .achip:hover { border-color: var(--green); }
.dchip:active, .achip:active { transform: scale(0.95); }
.dchip[aria-pressed="true"] { background: var(--green-deep); border-color: var(--green-deep); color: var(--on-green); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--green) 70%, transparent); }
.achip svg { width: 0; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: width 0.3s var(--ease-out); }
.achip[aria-pressed="true"] { background: var(--tomato-soft); border-color: color-mix(in srgb, var(--tomato) 45%, transparent); color: #9f2d24; }
.achip[aria-pressed="true"] svg { width: 12px; }
.achip-rel { border-style: dashed; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .achip[aria-pressed="true"] { color: #f3a39b; } }
.diet-disclaimer { margin: 0; }

.diet-board {
  position: relative; border-radius: 30px; padding: clamp(16px, 2vw, 24px); background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 40px 90px -36px rgba(23, 63, 51, 0.3);
}
.diet-board::before { content: ""; position: absolute; inset: auto -60px -80px auto; width: 300px; height: 300px; border-radius: 50%; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--gold) 30%, transparent), transparent); }
.board-head { display: flex; align-items: baseline; justify-content: space-between; margin: 2px 4px 14px; gap: 12px; }
.board-title { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; }
.board-count { color: var(--ink-3); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.board-count b { color: var(--green-deep); }
.rgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-content: start; }
.rcard { display: flex; flex-direction: column; padding: 12px 12px 14px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); }
.rcard { transition: opacity 0.35s var(--ease-out), background-color 0.35s, border-color 0.35s; }
.rcard .plate { transition: filter 0.35s, opacity 0.35s; }
.rcard.is-out { background: transparent; border-style: dashed; }
.rcard.is-out .plate { filter: grayscale(1); opacity: 0.4; }
.rcard.is-out .rname { color: var(--ink-3); }
.rcard.is-out .rtags { color: #a4302a; font-weight: 650; }
.rcard.is-out .rtags::before { content: "✕ "; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rcard.is-out .rtags { color: #f3a39b; } }
.rcard .plate { width: 70%; margin: 2px auto 10px; }
.rname { font-weight: 650; font-size: 0.9rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.rtags { font-size: 0.76rem; color: var(--ink-3); margin-top: 4px; }
.rempty { text-align: center; color: var(--ink-2); padding: 16px 12px 4px; margin: 0; }

/* =================================================================
   6 · EVERYWHERE
   ================================================================= */
.everywhere { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--mint-soft) 70%, transparent) 55%, transparent); }
.everywhere .section-head h2 { max-width: 22ch; margin-inline: auto; }
.devices { position: relative; max-width: 1100px; margin: clamp(8px, 2vw, 24px) auto 0; aspect-ratio: 16 / 9.6; container-type: inline-size; }
.dv { position: absolute; will-change: transform; }
.dv > * { opacity: 0; transform: translateY(48px) scale(0.96); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.devices.is-in .dv > *, .no-js .dv > * { opacity: 1; transform: none; }
.dv-web { left: 0; top: 14%; width: 50%; z-index: 1; }
.dv-ipad { left: 32%; top: 0; width: 34%; z-index: 2; }
.dv-iphone { left: 17%; top: 33%; width: 15.5%; z-index: 3; }
.dv-android { left: 64%; top: 25%; width: 15.5%; z-index: 3; }
.dv-watch { left: 81%; top: 55%; width: 12.5%; z-index: 4; }
.dv-web > * { transition-delay: 0.05s; } .dv-ipad > * { transition-delay: 0.15s; } .dv-iphone > * { transition-delay: 0.3s; } .dv-android > * { transition-delay: 0.4s; } .dv-watch > * { transition-delay: 0.5s; }

.browser { border-radius: 1.3cqw; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 70px -24px rgba(23, 63, 51, 0.35); }
.browser-bar { display: flex; align-items: center; gap: 0.5cqw; height: 2.8cqw; padding: 0 1.2cqw; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.browser-bar span { width: 0.8cqw; height: 0.8cqw; border-radius: 50%; background: #e46a5e; }
.browser-bar span:nth-child(2) { background: #ecb54a; } .browser-bar span:nth-child(3) { background: #5dbb72; }
.browser-bar em { margin: 0 auto; font-style: normal; font-size: 0.95cqw; color: var(--ink-3); background: var(--surface); padding: 0.3cqw 3cqw; border-radius: 99px; border: 1px solid var(--line); }
.browser-body { display: grid; grid-template-columns: 17% 1fr; aspect-ratio: 16 / 10.6; }
.bw-side { background: var(--surface-2); padding: 1.6cqw 1.2cqw; display: grid; align-content: start; gap: 1cqw; border-right: 1px solid var(--line); }
.bw-side b { width: 2.4cqw; height: 2.4cqw; border-radius: 0.7cqw; background: linear-gradient(135deg, #3a9b77, #266b54); margin-bottom: 0.8cqw; }
.bw-side i { height: 0.7cqw; border-radius: 1cqw; background: var(--surface-3); }
.bw-side i.on { background: color-mix(in srgb, var(--green) 55%, transparent); width: 80%; }
.bw-main { padding: 1.8cqw 2cqw; display: grid; align-content: start; gap: 1.3cqw; }
.bw-title { font-family: var(--font-display); font-weight: 600; font-size: 2cqw; letter-spacing: -0.02em; }
.bw-kitchen { display: grid; gap: 0.6cqw; padding: 1.2cqw; border-radius: 1cqw; background: var(--mint-soft); }
.bw-kitchen i { height: 0.7cqw; width: 40%; border-radius: 1cqw; background: color-mix(in srgb, var(--green) 45%, transparent); }
.bw-kitchen i + i { width: 70%; background: color-mix(in srgb, var(--ink) 18%, transparent); }
.bw-kitchen u { width: 22%; height: 1.8cqw; border-radius: 2cqw; background: var(--green); }
.bw-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2cqw; }
.bw-row .plate { border-radius: 1cqw; }

.tablet { padding: 2.6%; border-radius: 7% / 5.6%; background: linear-gradient(145deg, #2b302d, #0d100f 40%, #1c201e); box-shadow: 0 0 0 1px #3a403c inset, 0 40px 80px -24px rgba(23, 63, 51, 0.45); }
.tablet-screen, .crop-iphone { position: relative; overflow: hidden; }
.tablet-screen { border-radius: 4.6% / 3.7%; aspect-ratio: 835 / 1040; background: #f5f3ee; }
.tablet-screen img { position: absolute; max-width: none; width: 122.64%; height: auto; left: -11.98%; top: -31.7%; }
.mini-phone { padding: 5%; border-radius: 17% / 8%; background: linear-gradient(145deg, #2b302d, #0d100f 40%, #1c201e); box-shadow: 0 0 0 1px #3a403c inset, 0 30px 60px -18px rgba(23, 63, 51, 0.5); position: relative; }
.mp-screen { border-radius: 13% / 6%; overflow: hidden; aspect-ratio: 540 / 1200; background: #fcfbf7; }
.mp-screen img { width: 100%; height: 100%; object-fit: cover; }
.crop-iphone { aspect-ratio: 541 / 1100; }
.crop-iphone img { position: absolute; max-width: none; width: 119.2%; height: auto; left: -9.6%; top: -27.1%; }
.mini-phone.droid { border-radius: 13% / 6%; }
.mini-phone.droid::after { content: ""; position: absolute; left: 50%; top: 3.4%; width: 5%; aspect-ratio: 1; border-radius: 50%; background: #0b0d0c; transform: translateX(-50%); }
.watch { position: relative; padding: 9%; border-radius: 30%; background: linear-gradient(145deg, #34393b, #0e1011 45%, #25292b); box-shadow: 0 0 0 1px #474d50 inset, 0 30px 50px -16px rgba(0, 0, 0, 0.45); }
.watch::before, .watch::after { content: ""; position: absolute; left: 16%; right: 16%; height: 34%; z-index: -1; background: linear-gradient(90deg, #2c5a4b, #3b7563 50%, #2c5a4b); }
.watch::before { bottom: 88%; border-radius: 30% 30% 0 0 / 40% 40% 0 0; }
.watch::after { top: 88%; border-radius: 0 0 30% 30% / 0 0 40% 40%; }
.watch-screen { border-radius: 20%; overflow: hidden; aspect-ratio: 312 / 372; background: #000; }
.watch-screen img { width: 100%; height: 100%; object-fit: cover; }

.platforms { list-style: none; padding: 0; margin: clamp(40px, 6vw, 72px) 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.platforms li { display: grid; gap: 4px; align-content: start; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.pf-name { font-weight: 700; }
.pf-note { font-size: 0.88rem; color: var(--ink-2); line-height: 1.4; }
.platforms a, .pf-soon { margin-top: 8px; font-weight: 650; font-size: 0.9rem; text-decoration: none; }
.pf-soon { color: #8a5310; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pf-soon { color: #f2c07a; } }
.platforms li.pf-web { background: var(--green-deep); border-color: transparent; }
.pf-web .pf-name, .pf-web a { color: var(--on-green); }
.pf-web .pf-note { color: color-mix(in srgb, var(--on-green) 82%, transparent); }

/* =================================================================
   7 · LANGUAGES
   ================================================================= */
.languages .section-head { margin-bottom: clamp(24px, 4vw, 44px); }
.lang-num { color: var(--green-deep); }
.marquee { display: grid; gap: 14px; padding: 6px 0; }
.marquee-row { list-style: none; margin: 0; padding: 0 var(--gutter); display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.marquee-row li {
  white-space: nowrap; padding: 0.34em 0.9em; border-radius: 999px; font-size: clamp(1.25rem, 2.6vw, 2.1rem); line-height: 1.3; font-weight: 500;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
}
.marquee-row li[lang="en"], .marquee-row li[lang="es"], .marquee-row li[lang="fr"], .marquee-row li[lang="de"], .marquee-row li[lang="it"], .marquee-row li[lang="pt"],
.marquee-row li[lang="tr"], .marquee-row li[lang="pl"], .marquee-row li[lang="nl"], .marquee-row li[lang="sv"], .marquee-row li[lang="da"], .marquee-row li[lang="nb"],
.marquee-row li[lang="fi"], .marquee-row li[lang="cs"], .marquee-row li[lang="hu"], .marquee-row li[lang="ro"], .marquee-row li[lang="hr"], .marquee-row li[lang="sk"],
.marquee-row li[lang="sl"], .marquee-row li[lang="ca"], .marquee-row li[lang="id"], .marquee-row li[lang="ms"], .marquee-row li[lang="vi"] { font-family: var(--font-display); font-weight: 560; }
.marquee-row li:nth-child(5n + 1) { background: var(--mint-soft); border-color: transparent; color: var(--green-deep); }
.marquee-row li:nth-child(7n + 4) { background: var(--amber-soft); border-color: transparent; }
.marquee.is-live { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee.is-live .marquee-row { flex-wrap: nowrap; justify-content: flex-start; gap: 0; padding: 0; width: max-content; animation: marquee 80s linear infinite; }
.marquee.is-live .marquee-row li { margin-inline-end: 12px; }
.marquee.is-live .marquee-reverse { animation-direction: reverse; animation-duration: 90s; }
.marquee.is-live:hover .marquee-row { animation-play-state: paused; }
@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* =================================================================
   8 · DIETITIANS
   ================================================================= */
.section-head-wide { margin-bottom: clamp(28px, 4vw, 48px); align-items: flex-end; }
.section-head-wide .lede { margin-bottom: 0; }
.media-ph { display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(circle at 80% 12%, rgba(255,255,255,.4), transparent 40%), var(--g); }
.media-ph .plate { width: 52%; --g: transparent; }
.media-tag { position: absolute; left: 12px; bottom: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(20, 24, 22, 0.62); color: #fff; font-size: 0.76rem; font-weight: 650; }
.post-list { display: grid; gap: 12px; }
.post-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 18px; align-items: center; padding: 12px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.post-thumb { width: 120px; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; display: block; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-text { display: grid; gap: 3px; }
.post-text strong { font-size: 1.08rem; }
.post-arrow { font-size: 1.3rem; color: var(--green-deep); padding-right: 8px; transition: transform 0.3s var(--ease-out); }
.post-row:hover .post-arrow { transform: translateX(4px); }
.people { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.person { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: inherit; }
.person:hover { color: inherit; border-color: color-mix(in srgb, var(--green) 35%, var(--line)); }
.person > span { display: grid; gap: 2px; }
.avatar-md { width: 56px; height: 56px; font-size: 1.2rem; }
.person-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }

.rd-invite { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.rd-invite h2 { max-width: 16ch; }
.rd-fan { position: relative; height: 400px; }
.fan-card {
  position: absolute; top: 40px; left: 50%; width: min(58%, 270px); padding: 12px 12px 16px; border-radius: 22px; display: grid; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 50px -20px rgba(23, 63, 51, 0.3);
  transition: transform 0.7s var(--ease-spring);
}
.fan-card .media-ph { aspect-ratio: 4 / 3; border-radius: 14px; }
.fan-lines { display: grid; gap: 8px; padding: 0 4px; }
.fan-lines i { height: 10px; border-radius: 10px; background: var(--surface-3); width: 86%; }
.fan-lines i.s { width: 56%; }
.fan-by { display: flex; align-items: center; gap: 8px; margin: 0 4px; padding: 6px 10px 6px 6px; border-radius: 999px; border: 1.5px dashed color-mix(in srgb, var(--green) 45%, transparent); color: var(--green-deep); font-size: 0.82rem; font-weight: 650; }
.fan-by b { width: 22px; height: 22px; border-radius: 50%; background: var(--mint-soft); }
.fc1 { transform: translateX(-100%) translateY(26px) rotate(-9deg); }
.fc2 { transform: translateX(-50%) rotate(0deg); z-index: 2; }
.fc3 { transform: translateX(0%) translateY(26px) rotate(9deg); }
.rd-fan:hover .fc1 { transform: translateX(-112%) translateY(14px) rotate(-12deg); }
.rd-fan:hover .fc2 { transform: translateX(-50%) translateY(-12px); }
.rd-fan:hover .fc3 { transform: translateX(12%) translateY(14px) rotate(12deg); }

.rd-band {
  margin-top: clamp(48px, 8vw, 96px); border-radius: 32px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center;
  background: radial-gradient(600px 300px at 90% 0%, rgba(246, 210, 107, 0.16), transparent 60%), linear-gradient(135deg, var(--deep-1), var(--deep-2) 65%, var(--deep-3));
  color: #f4faf7; position: relative; overflow: hidden;
}
.rd-band .eyebrow { color: var(--gold); }
.rd-band-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 3.2vw, 2.6rem); letter-spacing: -0.02em; color: #fff; max-width: 20ch; margin: 10px 0 18px; }
.rd-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: rgba(244, 250, 247, 0.88); font-weight: 550; }
.rd-steps li { display: inline-flex; align-items: center; gap: 10px; }
.rd-steps b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(246, 210, 107, 0.18); color: var(--gold); font-size: 0.82rem; }
.rd-band-cta { display: grid; gap: 10px; }
.btn-cream { --btn-bg: #fcfbf7; --btn-fg: #173f33; }
.btn-cream:hover { --btn-fg: #173f33; }
.btn-outline-light { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.08); box-shadow: none; }

/* =================================================================
   9 · PRESS & TRADEMARK
   ================================================================= */
.press-tm .card { position: relative; overflow: hidden; display: grid; gap: 8px; align-content: start; }
.press-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: -0.015em; margin: 2px 0 2px; max-width: 26ch; }
.press-more { font-weight: 700; color: var(--green-deep); margin-top: 6px; }
.press-card:hover .press-more span { display: inline-block; transform: translateX(4px); transition: transform 0.3s var(--ease-out); }
.tm-glyph { position: absolute; right: 18px; bottom: -40px; font-family: var(--font-display); font-weight: 600; font-size: 170px; line-height: 1; color: color-mix(in srgb, var(--green) 8%, transparent); pointer-events: none; z-index: 0; }
.tm-card > :not(.tm-glyph) { position: relative; z-index: 1; }
.press-title .tm { font-size: 0.45em; }
.feature h3 .new-tag { vertical-align: 3px; margin-left: 4px; }
.tm-card p { margin: 0 0 8px; }
.tm-card .row { gap: 16px; }

/* =================================================================
   10 · DOWNLOAD
   ================================================================= */
.dl-panel {
  position: relative; overflow: hidden; isolation: isolate; text-align: center; color: #f4faf7;
  border-radius: clamp(28px, 4vw, 44px); padding: clamp(56px, 9vw, 112px) clamp(20px, 5vw, 64px);
  background: linear-gradient(160deg, var(--deep-1), var(--deep-2) 60%, var(--deep-3));
}
.dl-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px 320px at 50% 0%, rgba(132, 199, 183, 0.35), transparent 70%), radial-gradient(400px 300px at 100% 100%, rgba(246, 210, 107, 0.18), transparent 70%); }
.dl-foods { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.dlf { position: absolute; width: clamp(48px, 6vw, 84px); height: clamp(48px, 6vw, 84px); filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.25)); animation: bob 8s ease-in-out infinite; }
.dlf.f1 { left: 7%; top: 16%; animation-delay: -1s; } .dlf.f2 { right: 9%; top: 12%; animation-delay: -3s; transform: rotate(18deg); }
.dlf.f3 { left: 12%; bottom: 14%; animation-delay: -5s; } .dlf.f4 { right: 6%; bottom: 18%; animation-delay: -2s; } .dlf.f5 { left: 44%; bottom: -14px; animation-delay: -4s; opacity: 0.9; }
.dl-icon { width: 96px; height: 96px; border-radius: 24px; margin: 0 auto 26px; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.4); }
.dl-panel h2 { color: #fff; max-width: 17ch; margin: 0 auto 16px; font-size: clamp(2rem, 4.4vw, 3.6rem); }
.dl-panel .lede { color: rgba(244, 250, 247, 0.84); margin: 0 auto 32px; }
.dl-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.dl-actions .store-badges { justify-content: center; }
.dl-panel .store-badge { border-color: rgba(255, 255, 255, 0.22); }
.dl-panel .store-badge.is-soon, .dl-panel .store-badge.is-soon:hover { color: #fff; border-color: rgba(255, 255, 255, 0.4); }

/* =================================================================
   11 · FAQ
   ================================================================= */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-head { position: sticky; top: 100px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px; font-weight: 650; font-size: 1.1rem; border-radius: 10px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5v10M5 10h10' stroke='%2336886c' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform 0.4s var(--ease-spring), background-color 0.3s;
}
.faq-list summary:hover::after { background-color: var(--mint-soft); }
.faq-list details[open] summary::after { transform: rotate(135deg); background-color: var(--mint-soft); }
.faq-a { padding: 0 4px 22px; color: var(--ink-2); max-width: 62ch; }
.faq-a p { margin: 0; }
.faq-list details[open] .faq-a { animation: faq-in 0.45s var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }

/* =================================================================
   Responsive
   ================================================================= */
@media (max-width: 1100px) {
  .platforms { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .toast-week { left: -3%; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: left; }
  .hero-title { max-width: 12ch; }
  .hero-stage { max-width: 520px; }
  .diet-grid, .rd-invite, .faq-grid { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .rd-band { grid-template-columns: 1fr; }
  .rd-band-cta { grid-template-columns: repeat(2, max-content); }
}
@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-live .story-stage { display: none; }
  .story-step { min-height: 0; padding: 28px 0; }
  .story-live .story-step { opacity: 1; }
  .story-slot:empty { display: none; }
  .story-slot .scene {
    margin-top: 22px; padding: 16px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line);
    box-shadow: 0 30px 60px -30px rgba(23, 63, 51, 0.28);
  }
  .story-slot .shelf { min-height: 0; }
}
@media (max-width: 720px) {
  .devices { aspect-ratio: 1 / 1.08; }
  .dv-web { left: 0; top: 2%; width: 82%; }
  .dv-ipad { left: 47%; top: 15%; width: 52%; }
  .dv-iphone { left: 4%; top: 38%; width: 29%; }
  .dv-android { left: 33%; top: 50%; width: 26%; }
  .dv-watch { left: 72%; top: 70%; width: 24%; }
  .platforms { grid-template-columns: 1fr 1fr; }
  .platforms li.pf-web { grid-column: 1 / -1; }
  .rgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 0; }
  .rempty { margin: 0; }
  .post-row { grid-template-columns: 88px 1fr; }
  .post-thumb { width: 88px; }
  .post-arrow { display: none; }
  .rd-fan { height: 330px; }
  .fan-card { top: 20px; width: 56%; }
}
@media (max-width: 560px) {
  .hero-title { font-size: clamp(2.5rem, 11vw, 3.2rem); }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-cta .btn-ghost { display: none; }
  .hero-lede { font-size: 1.06rem; margin-bottom: 22px; }
  .hero-kicker { margin-bottom: 16px; font-size: 0.8rem; }
  .hero-stage { aspect-ratio: 1 / 1.12; }
  .phone { width: 52%; }
  .orbit-item { width: 44px; }
  .toast { font-size: 0.74rem; padding: 8px 10px; border-radius: 14px; }
  .toast-week { left: 0; top: 7%; min-width: 0; }
  .wdot i { width: 16px; height: 16px; }
  .week-dots { gap: 3px; }
  .toast-expire { right: 0; top: auto; bottom: 26%; }
  .toast-expire small { display: none; }
  .exp-ico { width: 24px; height: 24px; border-radius: 8px; }
  .toast-cart { right: auto; left: 2%; bottom: 7%; font-size: 0.8rem; padding: 9px 14px 9px 10px; }
  .proof-list { font-size: 0.86rem; gap: 8px 18px; }
  .proof-list li + li::before { display: none; }
  .toast-sub { display: none; }
  .toast-row { margin-bottom: 6px; }
  .week-grid { grid-template-columns: 26px repeat(5, minmax(0, 1fr)); padding: 12px; gap: 8px 6px; }
  .wg-meal em, .week-grid .wg-we { display: none; }
  .cart-cols { grid-template-columns: 1fr; }
  .have { display: flex; flex-wrap: wrap; gap: 4px 14px; }
  .have .aisle-name { width: 100%; }
  .kchip { font-size: 0.84rem; padding-right: 11px; }
  .kchip svg, .kchip i { width: 24px; height: 24px; }
  .expiring { flex-wrap: wrap; }
  .scene-title { font-size: 1.35rem; }
  .cb-go { padding-right: 16px; }
  .rd-band-cta { grid-template-columns: 1fr; }
  .rd-band-cta .btn { width: 100%; }
  .platforms { grid-template-columns: 1fr 1fr; gap: 10px; }
  .platforms li { padding: 14px; border-radius: 16px; }
  .pf-note { font-size: 0.82rem; }
  .platforms a, .pf-soon { font-size: 0.84rem; }
  .faq-list summary { font-size: 1rem; padding: 18px 2px; }
  .dlf { opacity: 0.45; }
  .dl-panel .store-badges { flex-direction: column; }
}

/* =================================================================
   Reduced motion: final, static, still lovely
   ================================================================= */
@media (prefers-reduced-motion: reduce) {
  .toast, .dlf, .wave-hand, .kicker-dot::after, .toast-cart .cart-ico { animation: none !important; }
  .wdot i::after { animation: none !important; transform: scale(1); }
  .wdot:nth-child(n + 6) i::after { transform: scale(0); }
  .hero-underline path { animation: none !important; stroke-dashoffset: 0; }
  .marquee-row { animation: none !important; }
  .dv > * { opacity: 1; transform: none; }
  .slot.is-new::after { display: none; }
}
