:root {
  color-scheme: light;
  --paper: #fcf7f2;
  --cream: #fffdf9;
  --rose: #f6e6e7;
  --ink: #2d1d23;
  --muted: #6c555d;
  --berry: #95284d;
  --berry-dark: #701939;
  --line: #ead9d8;
  --line-strong: #d9bfc2;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 4vw, 52px);
  --shell: 1296px;
  --ease: cubic-bezier(.2, .7, .25, 1);
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body { min-width: 0; margin: 0; }
body:has(dialog[open]) { overflow: hidden; }
button, select { font: inherit; color: inherit; }
button { touch-action: manipulation; cursor: pointer; }
button:disabled { cursor: wait; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #ae3f68; outline-offset: 4px; }
::selection { background: #eed0dd; color: var(--ink); }
.shell { width: min(100%, var(--shell)); padding-inline: var(--gutter); margin-inline: auto; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 12px 18px; color: white; background: var(--berry-dark); border-radius: 12px; }
.app-only, .installed-only { display: none !important; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; text-decoration: none; font: 700 1.55rem/1 var(--serif); letter-spacing: -.055em; }
.brand-icon { width: 39px; height: 39px; display: inline-grid; place-items: center; border-radius: 13px; flex: none; color: #fff9f1; background: var(--berry); }
.brand-icon .icon { width: 29px; height: 29px; stroke-width: 1.4; }
.brand-dot { color: var(--berry); }
.header-nav { display: flex; align-items: center; gap: 32px; color: var(--muted); font-size: .875rem; font-weight: 650; }
.header-nav a { text-decoration: none; padding-block: 12px; }
.header-nav a:hover { color: var(--berry); }
body:not(.app-mode) .site-header { position: absolute; z-index: 5; inset: 0 0 auto; border-color: #ffeddf28; color: #fff5ed; }
body:not(.app-mode) .site-header .brand-icon { color: #451d2c; background: #ffd7bc; }
body:not(.app-mode) .site-header .brand-dot { color: #ffbc9b; }
body:not(.app-mode) .header-nav, body:not(.app-mode) .header-install { color: #f8e3dd; }
body:not(.app-mode) .header-install { border-color: #ffe1d267; }
body:not(.app-mode) .header-nav a:hover, body:not(.app-mode) .header-install:hover { color: #fff5ed; }
body:not(.app-mode) .header-install:hover { background: #fff5ed20; border-color: #ffe1d2a0; }

.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border: 1px solid transparent; border-radius: 13px; text-decoration: none; text-align: center; color: inherit; font-weight: 730; font-size: .9375rem; line-height: 1.2; transition: background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.button:active { transform: translateY(1px); }
.button-outline { color: var(--berry-dark); background: transparent; border-color: var(--line-strong); }
.button-outline:hover { background: #f8e9e9; border-color: #c992a0; }
.button-primary { color: white; background: var(--berry); }
.button-primary:hover { background: var(--berry-dark); box-shadow: 0 8px 24px #90264626; }
.button-light { color: var(--berry-dark); background: #fff0e8; }
.button-light:hover { background: white; }
.header-install .icon { width: 19px; height: 19px; }

.hero {
  --stage-height: max(540px, 100svh);
  --scene-travel: clamp(840px, 144svh, 1560px);
  background: #201017;
  color: #fff7ed;
}

.hero.has-scroll { min-height: calc(var(--stage-height) + var(--scene-travel)); }
.hero-pin { position: sticky; top: 0; height: var(--stage-height); isolation: isolate; overflow: hidden; background: #201017; }
.hero-pin::after { content: ""; position: absolute; z-index: 2; inset: 0; pointer-events: none; background: linear-gradient(90deg, #1a0e1699 0%, #1a0e164a 31%, transparent 59%), linear-gradient(0deg, #170c14a8, transparent 25%); }
.hero-scene { position: absolute; inset: 0; pointer-events: none; --art-opacity: 0; --copy-opacity: 0; --light-opacity: 0; }
.hero-scene.is-active { --art-opacity: 1; --copy-opacity: 1; --light-opacity: 1; }
.scene-light { position: absolute; inset: 0; opacity: var(--light-opacity); background: radial-gradient(ellipse at 74% 37%, #d88f5f 0%, #904555 32%, #442031 59%, #241238 100%); }
.scene-produce .scene-light { background: radial-gradient(ellipse at 71% 43%, #9e6148 0%, #7a3953 40%, #382035 72%, #261832 100%); }
.scene-rice .scene-light { background: radial-gradient(ellipse at 74% 46%, #a58144 0%, #77404c 34%, #3a2337 70%, #23182d 100%); }
.scene-scaffold { position: absolute; z-index: 1; inset: 0; pointer-events: none; }
.scene-scaffold div { position: absolute; top: 49%; left: 74.5%; width: min(58vw, 89svh, 843px); aspect-ratio: 1; border: 1px solid #fce7d83b; border-radius: 50%; transform: translate(-50%, -50%) scale(var(--ring-scale, 1)); box-shadow: 0 0 0 22px #fce0ce0e, 0 0 0 52px #fce0ce08; }
.scene-scaffold div::after { content: ""; position: absolute; inset: -16px; border: 1px solid transparent; border-top-color: #ffe4c853; border-right-color: #ffe4c820; border-radius: inherit; transform: rotate(var(--ring-turn, 0deg)); }
.scene-shadow { position: absolute; z-index: 1; top: 82%; left: 73%; width: min(52vw, 800px); height: 19%; border-radius: 50%; opacity: .75; background: radial-gradient(ellipse, #150a16a8 0%, #210e2452 37%, transparent 73%); transform: translate(-50%, -50%); }
.scene-art {
  position: absolute; z-index: 2; top: 51%; left: 74.5%; width: min(56vw, 86svh, 820px); aspect-ratio: 1;
  opacity: var(--art-opacity);
  transform: translate3d(calc(-50% + var(--scene-x, 0%)), calc(-50% + var(--scene-y, 0%)), 0)
    perspective(1200px) rotateX(var(--scene-tilt, 0deg)) rotateY(var(--scene-yaw, 0deg))
    rotateZ(var(--scene-turn, 0deg)) scale(var(--scene-scale, 1));
}
.scene-plate { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(4px 22px 24px #1a0b1670); }
.hero.has-scroll .scene-roast .scene-plate { animation: plate-arrival .95s var(--ease) backwards; }
@keyframes plate-arrival { from { opacity: .48; transform: translate3d(8%, 5%, 0) rotate(12deg) scale(.94); } to { opacity: 1; transform: none; } }
.scene-produce .scene-art { width: min(54vw, 85svh, 800px); }
.produce { position: absolute; width: 47%; height: auto; object-fit: contain; filter: drop-shadow(4px 14px 16px #22102c80);
  opacity: var(--art-opacity); transform: translate3d(calc(-50% + var(--scene-x, 0%)), calc(-50% + var(--scene-y, 0%)), 0) rotate(var(--scene-turn, 0deg)) scale(var(--scene-scale, 1)); }
.produce-potatoes { top: 34%; left: 28%; }
.produce-carrots { top: 55%; left: 67%; width: 64%; }
.produce-parsley { top: 78%; left: 32%; width: 33%; }
.produce-note { position: absolute; color: #fff5e9; font-weight: 650; font-size: .875rem; display: flex; align-items: center; gap: 9px; white-space: nowrap; opacity: var(--note-opacity, 0); }
.produce-note::before { content: ""; width: 37px; height: 1px; background: #ffe2c3b0; }
.note-potato { top: 15%; left: 32%; }
.note-carrot { bottom: 16%; right: 10%; }
.scene-layout { position: relative; z-index: 3; height: 100%; display: grid; align-items: center; }
.scene-copy { width: min(42vw, 690px); padding-bottom: clamp(23px, 5svh, 54px); opacity: var(--copy-opacity); transform: translate3d(0, var(--copy-y, 0px), 0); }
.scene-title { margin: 0; font: 600 clamp(3rem, 5.75vw, 6.5rem)/.96 var(--serif); letter-spacing: -.057em; text-wrap: balance; }
.scene-title span, .scene-title em { display: block; }
.scene-title em { margin-top: .11em; color: #ffd2b8; font-weight: 500; letter-spacing: -.061em; }
.scene-produce .scene-title em { color: #f0c6b3; }
.scene-rice .scene-title { font-size: clamp(2.8rem, 5.4vw, 6rem); }
.scene-rice .scene-title em { color: #ffe0b3; }
.scene-copy p { max-width: 34ch; margin: 25px 0 0; color: #fff1e3; font-size: clamp(1.025rem, 1.58vw, 1.25rem); line-height: 1.47; }
.hero-nav { position: absolute; z-index: 4; right: 0; bottom: max(28px, env(safe-area-inset-bottom)); left: 0; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.hero-cta { min-height: 56px; padding-inline: 24px; background: #ffe0cc; font-size: 1rem; }
.motion-toggle { position: absolute; right: var(--gutter); bottom: calc(100% + 7px); min-height: 44px; padding: 6px 12px; border: 1px solid #ffe1d267; border-radius: 10px; background: #281522e8; color: #fff5ed; font-size: .875rem; font-weight: 650; }
.motion-toggle:hover { background: #482538; }
.scene-controls { display: none; align-items: center; color: #fff3e7; }
.hero.is-ready .scene-controls { display: inline-flex; }
.scene-controls small { margin-right: 8px; font-size: .875rem; }
.hero:not(.has-scroll) .scene-controls small { display: none; }
.scene-controls button { display: grid; place-items: center; width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent; }
.scene-controls button::before { content: ""; width: 8px; height: 8px; border-radius: 12px; background: #ffe8d779; transition: width .17s, background .17s; }
.scene-controls button[aria-pressed="true"]::before { width: 22px; background: #ffdbbf; }

.planner-section { padding-block: clamp(37px, 6.2vw, 85px); }
.planner-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(23px, 5vw, 63px); }
.planner-copy h2 { margin: 0; font: 600 clamp(2.45rem, 5vw, 4.7rem)/.97 var(--serif); letter-spacing: -.067em; }
.planner-copy p { max-width: 37ch; margin: 17px 0 0; color: var(--muted); font-size: clamp(1rem, 1.45vw, 1.125rem); line-height: 1.5; }
.hero-controls { padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--cream); box-shadow: 0 12px 35px #48152808; }
.pantry { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.pantry legend { padding: 0; margin-bottom: 10px; font-size: 1rem; font-weight: 760; letter-spacing: -.02em; }
.pantry-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.ingredient { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 42px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--cream); font-weight: 630; font-size: .875rem; line-height: 1.1; transition: background .18s, color .18s, border-color .18s, transform .18s var(--ease); }
.ingredient:hover { border-color: #bf96a1; }
.ingredient:active { transform: scale(.96); }
.ingredient[aria-pressed="true"] { color: var(--berry-dark); border-color: #e6b9c9; background: #f9e5ed; }
.ingredient .icon { width: 14px; height: 14px; stroke-width: 2.2; }
.ingredient[aria-pressed="false"] .icon { display: none; }
.more-pantry { margin-top: 2px; }
.more-pantry summary, .recipe-details summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.more-pantry summary { display: inline-flex; align-items: center; gap: 5px; min-height: 42px; color: var(--berry-dark); font-size: .875rem; font-weight: 700; }
.more-pantry summary .icon { width: 16px; height: 16px; }
.more-pantry[open] summary .icon { transform: rotate(45deg); }
.more-pantry .pantry-grid { margin-bottom: 12px; }
.form-options { display: grid; grid-template-columns: .72fr 1.28fr; gap: 10px; }
.form-options label { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: .875rem; font-weight: 650; }
.form-options select { width: 100%; min-height: 45px; padding: 7px 30px 7px 11px; border: 1px solid var(--line); border-radius: 10px; appearance: none; background: linear-gradient(45deg, transparent 50%, var(--berry-dark) 51%) right 15px center / 5px 5px no-repeat, linear-gradient(135deg, var(--berry-dark) 50%, transparent 51%) right 10px center / 5px 5px no-repeat, #fffdfa; color: var(--ink); font-size: 1rem; font-weight: 630; }
.generate-button { width: 100%; min-height: 54px; margin-top: 12px; font-size: 1rem; }
.generate-button .icon { width: 24px; height: 24px; }

.week-section { padding-block: clamp(39px, 6vw, 78px) clamp(46px, 7vw, 86px); border-block: 1px solid var(--line); background: #f8eeee; scroll-margin-block-start: 0; }
.week-header { display: flex; align-items: end; justify-content: space-between; gap: 19px; margin-bottom: 24px; }
.section-kicker { margin: 0 0 6px; color: var(--berry-dark); font-size: .875rem; font-weight: 780; }
.week-header h2, .app-copy h2 { margin: 0; font: 600 clamp(2.375rem, 4.6vw, 4.2rem)/1.02 var(--serif); letter-spacing: -.064em; }
.week-header h2:focus { outline: none; }
.day-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.day-button { min-width: 49px; min-height: 45px; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 11px; background: #fffaf7; color: var(--berry-dark); font-weight: 750; font-size: .9375rem; transition: background .2s, color .2s, border-color .2s; }
.day-button:hover { border-color: var(--berry); }
.day-button[aria-pressed="true"] { color: white; background: var(--berry); border-color: var(--berry); }
.week-grid { display: grid; grid-template-columns: minmax(0, 1.57fr) minmax(280px, 1fr); gap: 18px; align-items: start; }
.recipe-card, .shopping-card { min-width: 0; border: 1px solid #eadada; border-radius: 22px; background: var(--cream); }
.recipe-card { overflow: hidden; }
.recipe-picture { display: block; width: 100%; height: clamp(215px, 24vw, 315px); object-fit: cover; background: #f0d6c8; }
.recipe-picture.recipe-graphic { display: flex; align-items: center; justify-content: center; gap: 18px; background: radial-gradient(ellipse at 64% 24%, #fff7de, #f4d6c4 62%, #eecac9); color: var(--berry-dark); }
.recipe-graphic .icon { width: 82px; height: 82px; stroke-width: 1; }
.recipe-content { padding: 21px 24px; }
.recipe-title { margin: 0; font: 600 clamp(1.75rem, 2.9vw, 2.6rem)/1.08 var(--serif); letter-spacing: -.06em; }
.recipe-meta { display: flex; flex-wrap: wrap; gap: 16px; margin: 9px 0 0; color: var(--muted); }
.recipe-meta span { display: inline-flex; align-items: center; gap: 5px; }
.recipe-meta .icon { width: 18px; height: 18px; }
.recipe-details { margin-top: 13px; border-top: 1px solid var(--line); }
.recipe-details summary { display: flex; justify-content: space-between; align-items: center; gap: 15px; min-height: 46px; padding-top: 3px; color: var(--berry-dark); font-weight: 720; }
.recipe-details summary .icon { width: 19px; height: 19px; }
.recipe-details[open] summary .icon { transform: rotate(45deg); }
.recipe-details h4 { margin: 10px 0 5px; }
.recipe-details p, .recipe-details ol { margin: 0; color: var(--muted); line-height: 1.5; }
.recipe-details ol { padding-left: 20px; }
.recipe-details ol li + li { margin-top: 6px; }
.recipe-details[open] { padding-bottom: 1px; }

.shopping-card { padding: 22px; }
.shopping-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.shopping-icon { display: inline-grid; width: 46px; height: 46px; flex: none; place-items: center; border-radius: 13px; color: var(--berry-dark); background: var(--rose); }
.shopping-heading h3 { margin: 0; font-size: 1.125rem; letter-spacing: -.035em; }
.shopping-heading p, .take-menu p { margin: 2px 0 0; color: var(--muted); font-size: .875rem; line-height: 1.45; }
.shopping-list { list-style: none; margin: 0; padding: 0; }
.shopping-list li { border-bottom: 1px solid #f0e4e2; }
.grocery { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 44px; cursor: pointer; }
.grocery input { position: absolute; opacity: 0; top: 12px; left: 0; width: 20px; height: 20px; }
.grocery-box { display: grid; place-items: center; width: 20px; height: 20px; border: 1.5px solid #c3a2aa; border-radius: 6px; color: transparent; }
.grocery-box .icon { width: 15px; height: 15px; stroke-width: 2.2; }
.grocery input:checked + .grocery-box { color: white; background: var(--berry); border-color: var(--berry); }
.grocery input:checked ~ .grocery-name { color: var(--muted); text-decoration: line-through; }
.grocery input:focus-visible + .grocery-box { outline: 3px solid #aa3961; outline-offset: 3px; }
.grocery-amount { color: var(--muted); white-space: nowrap; font-size: .875rem; }
.text-button { min-height: 44px; padding: 0; border: 0; border-radius: 5px; color: var(--berry-dark); background: transparent; font-size: .875rem; font-weight: 750; text-align: left; }
.text-button:hover { text-decoration: underline; }
.take-menu { padding-top: 13px; }
.take-menu .button { width: 100%; min-height: 52px; }
.take-menu p { margin-top: 7px; text-align: center; }

.app-section { padding-block: clamp(40px, 7vw, 95px) 0; }
.app-banner { min-height: 390px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .84fr); align-items: stretch; isolation: isolate; border-radius: 30px; overflow: hidden; background: #57213b; color: #fff5ee; }
.app-copy { z-index: 2; align-self: center; padding: clamp(31px, 5vw, 69px); }
.app-copy h2 { font-size: clamp(2.8rem, 5.1vw, 4.85rem); }
.app-copy h2 em { display: block; color: #f5bccf; font-weight: 500; }
.app-copy p { max-width: 31ch; margin: 17px 0 21px; font-size: 1.0625rem; line-height: 1.5; color: #f0d8de; }
.app-copy .button { min-height: 52px; }
.app-art { position: relative; pointer-events: none; min-height: 340px; }
.art-ring { position: absolute; top: 51%; left: 53%; width: min(92%, 390px); aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); }
.ring-one { background: #783756; }
.ring-two { width: min(74%, 313px); border: 1px solid #b2708b; }
.phone { position: absolute; top: 38px; left: 53%; width: min(72%, 245px); min-height: 430px; padding: 29px 13px 19px; transform: translateX(-50%) rotate(8deg); border-radius: 32px; border: 5px solid #f0a5bc; background: #fff9f2; box-shadow: 16px 18px 35px #30142766; color: var(--ink); }
.app-section.in-view .phone { animation: phone-rise .65s var(--ease) both; }
@keyframes phone-rise { from { transform: translate(-50%, 26px) rotate(14deg); } to { transform: translate(-50%, 0) rotate(8deg); } }
.phone-camera { position: absolute; top: 7px; left: 50%; width: 57px; height: 9px; border-radius: 20px; background: #4b2437; transform: translateX(-50%); }
.phone-brand { display: inline-flex; align-items: center; gap: 5px; font: 700 1rem var(--serif); }
.phone-brand .brand-icon { width: 26px; height: 26px; border-radius: 8px; }
.phone-brand .icon { width: 20px; height: 20px; }
.phone-title { margin: 13px 0 11px; font: 700 1.7rem/.98 var(--serif); letter-spacing: -.055em; }
.phone-recipe { display: flex; align-items: center; gap: 7px; border-radius: 10px; padding: 5px; background: #f8e8e7; color: var(--muted); font-size: .8125rem; }
.phone-recipe img { width: 53px; height: 49px; object-fit: cover; border-radius: 7px; }
.phone-recipe strong { display: block; font-size: .8125rem; color: var(--ink); line-height: 1.1; margin-top: 2px; }
.phone-list-title { margin: 16px 0 5px; font-size: .875rem; font-weight: 760; }
.phone-row { min-height: 35px; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--line); font-size: .8125rem; }
.phone-row small { font-size: .8125rem; color: var(--muted); margin-left: auto; }
.phone-tick { width: 14px; height: 14px; border-radius: 4px; border: 1px solid #c9a8b2; display: grid; place-items: center; }
.phone-checked .phone-tick { color: white; background: var(--berry); border-color: var(--berry); }
.phone-tick .icon { width: 12px; height: 12px; }

.site-footer { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--muted); }
.site-footer .brand { color: var(--ink); }
.site-footer > a:last-child { font-size: .875rem; font-weight: 650; text-underline-offset: 3px; }

.install-rail { display: none; }
.install-dialog { position: fixed; width: min(92vw, 427px); max-width: none; padding: 0; border: 1px solid var(--line); border-radius: 22px; color: var(--ink); background: var(--cream); box-shadow: 0 24px 100px #31152245; }
.install-dialog::backdrop { background: #36192cc0; }
.dialog-content { position: relative; padding: 24px; }
.close-form { position: absolute; top: 10px; right: 10px; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 11px; background: transparent; }
.icon-button:hover { background: var(--rose); }
.dialog-icon { width: 48px; height: 48px; }
.dialog-content h2 { margin: 13px 0 8px; font: 700 2rem/1.04 var(--serif); letter-spacing: -.06em; }
.dialog-content p { margin: 0 0 17px; color: var(--muted); line-height: 1.5; }
.dialog-button { width: 100%; }

.installed .installed-only { display: inline-flex !important; }
.installed [data-install], .installed .take-menu, .app-mode .take-menu, .app-mode [data-install] { display: none !important; }
.app-mode .header-nav, .app-mode .hero, .app-mode .planner-copy, .app-mode .app-section, .app-mode .site-footer { display: none; }
.app-mode .app-only { display: inline-flex !important; }
.app-mode .planner-section { padding-block: 28px; }
.app-mode .planner-layout { display: block; }
.app-mode .app-title { margin: 0 0 15px; font: 700 2.25rem/1.04 var(--serif); letter-spacing: -.07em; }
.app-mode .week-section { padding-bottom: 36px; }

@media (max-width: 1020px) {
  .pantry-grid { gap: 6px; }
  .ingredient { padding-inline: 9px; }
}

@media (min-width: 821px) and (min-height: 541px) {
  .hero-nav { justify-content: flex-end; }
  .hero-cta { position: absolute; bottom: clamp(84px, 18svh, 194px); left: var(--gutter); }
}

@media (max-width: 820px) {
  .hero { --stage-height: max(490px, 100svh); --scene-travel: clamp(710px, 139svh, 1160px); }
  .hero-pin::after { background: linear-gradient(0deg, #180911cc, transparent 30%), linear-gradient(180deg, #21102238, #1a0c1c1f 41%, transparent 63%); }
  .scene-light { background: radial-gradient(ellipse at 53% 63%, #cf8153 0%, #965064 27%, #462239 59%, #20102c 100%); }
  .scene-produce .scene-light { background: radial-gradient(ellipse at 53% 68%, #a75c40 0%, #68364f 41%, #3b283e 72%, #20152c 100%); }
  .scene-rice .scene-light { background: radial-gradient(ellipse at 53% 65%, #a37c43 0%, #75464f 34%, #3d283c 68%, #21182f 100%); }
  .scene-art, .scene-produce .scene-art { top: 65%; left: 50%; width: min(92vw, 57svh, 540px); }
  .scene-scaffold div { top: 63%; left: 50%; width: min(92vw, 57svh, 525px); box-shadow: 0 0 0 15px #fce0ce0c; }
  .scene-shadow { top: 84%; left: 51%; width: min(88vw, 550px); }
  .scene-layout { display: block; padding-top: clamp(83px, 14.1svh, 135px); }
  .scene-copy { width: 100%; padding-bottom: 0; text-align: center; }
  .scene-title, .scene-rice .scene-title { font-size: clamp(2.6rem, 12.95vw, 5.65rem); }
  .scene-title em { margin-top: .09em; }
  .scene-rice .scene-title em { font-size: .92em; }
  .scene-copy p { max-width: 34ch; margin: 14px auto 0; font-size: 1rem; text-shadow: 0 1px 14px #2d112d; }
  .produce-note { display: none; }
  .hero-nav { bottom: calc(18px + env(safe-area-inset-bottom)); gap: 8px; }
  .hero-cta { min-height: 50px; padding-inline: 14px; }
  .scene-controls small { position: absolute; right: var(--gutter); bottom: calc(100% + 8px); margin: 0; }
  .hero-nav:has(.motion-toggle:not([hidden])) .scene-controls small { bottom: calc(100% + 59px); }
  .scene-controls button { width: 36px; }
  .scene-controls button[aria-pressed="true"]::before { width: 18px; }
  .planner-layout { grid-template-columns: minmax(0, 1fr); gap: 19px; }
  .planner-copy p { margin-top: 11px; }
}

@media (max-width: 760px) {
  html { scrollbar-gutter: auto; }
  .header-inner { min-height: 62px; }
  .brand { gap: 8px; font-size: 1.45rem; }
  .brand-icon { width: 35px; height: 35px; border-radius: 11px; }
  .brand-icon .icon { width: 26px; height: 26px; }
  .header-nav { display: none; }
  .header-install { min-height: 44px; padding-inline: 11px; font-size: .875rem; }
  .hero-controls { padding: 15px; border-radius: 17px; }
  .ingredient { min-height: 44px; }
  .week-header { display: block; margin-bottom: 13px; }
  .day-list { margin-top: 16px; }
  .day-button { min-width: 0; min-height: 46px; padding-inline: 4px; }
  .week-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .recipe-card, .shopping-card { border-radius: 18px; }
  .recipe-picture { height: auto; aspect-ratio: 1.65; }
  .recipe-content, .shopping-card { padding: 16px; }
  .recipe-meta { font-size: .875rem; }
  .app-banner { grid-template-columns: minmax(0, 1fr); min-height: 0; border-radius: 21px; }
  .app-copy { padding: 26px 22px 0; }
  .app-copy p { margin: 11px 0 16px; font-size: 1rem; }
  .app-copy .button { width: 100%; }
  .app-art { min-height: 245px; }
  .art-ring { top: 63%; }
  .phone { top: 27px; max-width: 207px; }
  .site-footer { min-height: 87px; }
  .has-personal-menu:not(.app-mode):not(.installed) .site-footer { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .install-rail:not([hidden]) { position: fixed; z-index: 4; inset: auto 0 0; min-height: 65px; display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-strong); background: #fff9f4f7; color: var(--ink); box-shadow: 0 -8px 25px #57203912; }
  .install-rail .button { min-height: 44px; padding-inline: 12px; }
  .rail-copy { display: flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 720; }
  .rail-copy .brand-icon { width: 30px; height: 30px; border-radius: 9px; }
  .rail-copy .icon { width: 24px; height: 24px; }
  .install-dialog { inset: auto 0 0; width: 100%; max-width: 540px; margin: 0 auto; border-radius: 23px 23px 0 0; }
  .dialog-content { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .app-mode .planner-section { padding-block: 15px; }
}

@media (max-width: 370px) {
  :root { --gutter: 15px; }
  .scene-controls button { width: 32px; }
  .hero-cta { padding-inline: 12px; font-size: .9375rem; }
  .hero-controls { padding: 12px; }
  .ingredient { padding-inline: 8px; }
}

@media (max-height: 540px) and (min-width: 540px) {
  .hero { --stage-height: max(360px, 100svh); }
  .scene-layout { display: grid; align-items: center; padding-top: 43px; }
  .scene-copy { text-align: left; width: 54%; padding-bottom: 21px; }
  .scene-copy p { margin: 10px 0 0; }
  .scene-title, .scene-rice .scene-title { font-size: clamp(2.1rem, 6.7vw, 3.4rem); }
  .scene-art, .scene-produce .scene-art { top: 52%; left: 74%; width: min(51vw, 89svh); }
  .scene-scaffold div { top: 52%; left: 74%; width: min(49vw, 86svh); }
  .hero-nav { bottom: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
