/* Thriveness · white, light gray and orange. Apple-inspired typography and spacing. */
:root {
  --ivory:#ffffff; --cream:#f5f5f7; --card:#ffffff; --beige:#dedee3; --beige-2:#f5f5f7;
  --espresso:#1d1d1f; --muted:#646469; --orange:#F54100; --orange-hover:#d83900;
  --orange-tint:#f5f5f7; --orange-tint-2:#d8b6a3; --green:#3c6c45; --green-tint:#edf3ee;
  --red:#a7352d; --red-tint:#fcf0ef; --radius:24px; --radius-sm:12px;
  --shadow:none; --max:1200px;
  --font:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Helvetica Neue",Arial,sans-serif;
}
body { -webkit-font-smoothing:antialiased; }
h1,h2,h3 { letter-spacing:-.035em; font-weight:600; }
h1 { font-size:clamp(2rem,3.4vw,3rem); line-height:1.12; }
h2 { font-size:1.4rem; line-height:1.25; }
p { line-height:1.65; }
button,input,select { letter-spacing:inherit; }
button,a,input,select { -webkit-tap-highlight-color:transparent; }
a { text-underline-offset:3px; }
button,a { touch-action:manipulation; }
.shell { padding-inline:32px; }
main.shell { padding-top:34px; padding-bottom:64px; }
.top { background:var(--cream); }
.top-inner { height:80px; gap:30px; }
.brand { gap:10px; font-size:1.3rem; letter-spacing:-.04em; }
.brand .mark { width:34px; height:34px; }
.topnav { gap:6px; margin-left:auto; }
.topnav a { font-size:.9rem; padding:10px 15px; border-radius:10px; gap:8px; color:var(--muted); }
.topnav a.active { background:var(--orange-tint); color:var(--orange); }
.account { margin-left:6px; background:transparent; }
.eyebrow { font-size:.68rem; letter-spacing:.13em; font-weight:600; display:block; margin-bottom:12px; }
.page-intro { grid-area:intro; display:flex; align-items:baseline; justify-content:space-between; gap:16px; }
.page-intro .eyebrow { margin:0; }
.page-intro p { margin:0; font-size:.85rem; color:var(--muted); }
.card { padding:28px; box-shadow:var(--shadow); }
.plan-grid { gap:28px; grid-template-columns:minmax(0,1fr) 370px; grid-template-areas:"intro intro" "hero hero" "form preview"; }
.hero { padding:0; display:grid; grid-template-columns:44% 56%; min-height:340px; background:var(--cream); }
.hero-img { position:static; grid-column:2; grid-row:1; width:100%; height:340px; object-position:center; }
.hero-text { grid-column:1; grid-row:1; min-height:340px; max-width:none; padding:38px 42px; background:var(--cream); }
.hero-text .eyebrow { color:var(--orange); }
.hero-text h1 { font-size:clamp(2.7rem,4.3vw,3.8rem); line-height:1.04; letter-spacing:-.05em; margin:0 0 18px; }
.hero-text p { font-size:1rem; margin-bottom:22px; }
.hero-caption { display:flex; align-items:center; gap:7px; color:var(--muted); font-size:.75rem; }
.hero-caption .ic { color:var(--orange); }
.form { gap:26px; }
.form-heading .eyebrow { margin-bottom:8px; }
.form-heading h2 { margin-bottom:8px; }
.form-heading p { font-size:.9rem; margin:0; }
.field { gap:9px; }
.field>span:first-child,legend { font-size:.88rem; }
.row2 { gap:18px; }
input[type=text],input[type=number],input[type=email],input[type=password],input[type=date],select,textarea { background:#fff; min-height:48px; padding:11px 13px; }
input:focus,select:focus,textarea:focus { outline:2px solid var(--orange-tint-2); outline-offset:1px; }
.stepper,.stepper button { background:#fff; }
.stepper button { height:48px; border:0; background:var(--cream); }
.stepper input { background:#fff; }
.stepper:focus-within { outline:2px solid var(--orange-tint-2); outline-offset:2px; }
.choice { background:#fff; padding:16px 7px; min-height:100px; gap:5px; font-size:.85rem; }
.choice .radio { width:14px; height:14px; border-width:1px; }
.choice small { font-size:.74rem; }
.pill { padding:8px 13px; font-size:.85rem; background:#fff; }
.choice:not(:has(input:checked)),.pill:not(:has(input:checked)) { background:#fff; }
.choice:has(input:checked),.pill:has(input:checked) { border-color:var(--orange); background:var(--orange-tint); }
.hint { font-size:.77rem; line-height:1.65; }
legend .hint { font-size:.72rem; font-weight:400; }
.form-section { display:flex; flex-direction:column; gap:22px; padding-top:24px; border-top:1px solid var(--beige); }
.section-label { display:flex; align-items:center; gap:9px; }
.section-label .ic { color:var(--orange); }
.section-label h3 { margin:0; font-size:1rem; }
.form-details { border-block-start:1px solid var(--beige); }
.form-details>summary { display:flex; align-items:center; justify-content:space-between; gap:10px; cursor:pointer; min-height:54px; font-size:.9rem; font-weight:600; list-style:none; padding:12px 0; }
.form-details>summary::-webkit-details-marker { display:none; }
.form-details>summary>span { display:flex; gap:9px; align-items:center; }
.form-details>summary>span .ic { color:var(--muted); }
.form-details[open]>summary>.ic { transform:rotate(180deg); }
.details-content { display:grid; gap:18px; padding:12px 0 6px; }
.form>.btn.big { margin-top:0; }
.btn { min-height:48px; padding:11px 18px; font-size:.9rem; box-shadow:none; }
.btn.primary { background:var(--orange); border-color:var(--orange); color:white; }
.btn.primary:hover { background:var(--orange-hover); border-color:var(--orange-hover); }
.btn.big { min-height:52px; }
.btn.small { min-height:44px; }
.link { min-height:44px; }
.preview-card { top:104px; padding:26px; }
.preview .eyebrow { color:var(--orange); }
.preview h2 { font-size:1.75rem; margin:0 0 9px; letter-spacing:-.045em; }
.preview>p { font-size:.88rem; }
.stats { gap:0; border-block:1px solid var(--beige); margin:22px 0; padding:6px 0; }
.stats div { padding:14px 0; border-radius:0; background:none; }
.stats dt { font-size:.72rem; margin-bottom:4px; }
.stats dd { font-size:1.15rem; font-weight:600; }
.stats dd small { display:block; }
.thumbs { grid-template-columns:repeat(2,1fr); gap:10px; margin:20px 0; }
.thumb { aspect-ratio:1.15; }
.assumptions { border-top:1px solid var(--beige); padding-top:12px; }
.assumptions summary { min-height:44px; display:flex; align-items:center; font-size:.8rem; }
.shop-head { margin:10px 0 32px; align-items:center; }
.shop-head .eyebrow { color:var(--orange); }
.shop-head p { margin:12px 0 0; font-size:.95rem; }
.shop-main { gap:22px; grid-template-columns:minmax(0,1fr) 300px; }
.chips { gap:10px; padding-bottom:2px; }
.chip { min-height:56px; padding:12px 20px; font-size:.9rem; }
.chip.on { border-color:var(--orange); }
.chip .logo { width:9px; height:9px; }
.shop-main .budget { top:104px; padding:24px; }
.budget .eyebrow { margin-bottom:18px; }
.budget-row .spent b { font-size:1.8rem; font-weight:600; letter-spacing:-.05em; }
.budget-row { gap:10px; flex-wrap:wrap; font-size:.85rem; }
.bar { height:6px; margin:16px 0; }
.budget .meta { gap:9px; font-size:.75rem; line-height:1.6; }
.budget .cover { margin-top:12px; padding-top:14px; border-top:1px solid var(--beige); }
.badge.sample { background:var(--beige-2); color:var(--muted); border-color:var(--beige); }
.lines { gap:0; border:1px solid var(--beige); border-radius:var(--radius); background:#fff; overflow:hidden; }
.line { border:0; border-bottom:1px solid var(--beige); border-radius:0; padding:20px 16px; grid-template-columns:24px 64px minmax(0,1fr) 64px 78px auto; gap:6px 10px; }
.line:last-child { border-bottom:0; }
.line-img { width:64px; height:64px; }
.line-name b { font-size:.88rem; font-weight:600; }
.line-name small { font-size:.72rem; margin-top:4px; }
.line .qty select { padding-left:10px; font-size:.85rem; min-height:44px; }
.line-price b { font-size:.95rem; font-variant-numeric:tabular-nums; font-weight:600; }
.line .btn.small { font-size:.75rem; padding:6px 10px; gap:5px; background:var(--cream); }
.line .link.tiny { font-size:.67rem; min-height:32px; }
.price-edit { margin-top:5px; }
.price-edit input { min-height:30px; width:52px; font-size:.73rem; padding:2px; }
.tick .box { width:21px; height:21px; border-radius:5px; border-width:1px; }
.swap-opt { background:var(--cream); padding:18px; }
.confirm { max-width:900px; }
.confirm-line { padding:16px 0; }
.section-head { margin:36px 0 18px; gap:12px; }
.section-head h2 { margin:0; }
.section-head h2 small { font-size:.65em; font-weight:400; margin-left:4px; }
.pantry-grid { grid-template-columns:repeat(auto-fill,minmax(164px,1fr)); gap:16px; }
.pantry-card { padding:12px 14px 10px; border-radius:16px; gap:8px; }
.pantry-img { background:var(--cream); border-radius:12px; min-height:144px; padding:14px 0 22px; }
.pantry-img .ingredient-photo { width:112px; height:112px; }
.pantry-name { font-weight:600; font-size:.85rem; line-height:1.4; }
.pantry-card>small { font-size:.72rem; min-height:2.3em; }
.pantry-card .stepper { width:100%; justify-content:space-between; border-color:var(--beige); margin-top:auto; }
.pantry-card .stepper button { width:44px; height:44px; }
.pantry-actions { gap:16px; width:100%; justify-content:center; }
.pantry-actions .link.tiny { font-size:.7rem; }
.badge.soon { background:var(--orange-tint); color:var(--orange); border:1px solid var(--orange-tint-2); font-size:.65rem; bottom:5px; }
.badge.loc { background:#fff; width:25px; height:25px; }
.pantry-page>.btn.big { width:auto; margin:20px 0 4px; padding-inline:28px; }
.recipe-grid { gap:22px; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); }
.recipe-card { box-shadow:var(--shadow); }
.recipe-link { padding:0 18px 20px; gap:8px; }
.recipe-img { width:calc(100% + 36px); margin:0 -18px 8px; aspect-ratio:4/3; }
.recipe-link>b { font-size:1rem; font-weight:600; letter-spacing:-.02em; }
.recipe-link>small { font-size:.76rem; }
.recipe-link>.status { font-size:.73rem; font-weight:500; }
.save { width:44px; height:44px; background:#fff; }
.status .dot { width:6px; height:6px; }
.recipe-hero { gap:0; margin-bottom:28px; grid-template-columns:1fr 1fr; }
.recipe-hero-img { min-height:420px; height:100%; object-fit:cover; }
.recipe-hero-text { padding:36px; gap:16px; justify-content:center; }
.recipe-hero-text h1 { font-size:clamp(1.9rem,3vw,2.8rem); }
.recipe-hero-text>p { margin:0; }
.recipe-cols { gap:26px; }
.ing-list { margin-top:18px; gap:2px; }
.ing-list li { padding:12px 0; font-size:.88rem; }
.steps { gap:20px; padding-left:24px; line-height:1.8; font-size:.92rem; }
.cook { max-width:820px; margin:auto; }
.cook-step { padding:44px; }
.cook-step p { line-height:1.6; }
.cook-title b { font-weight:600; }
.cook-controls { margin-top:28px; }
.settings { max-width:900px; gap:28px; }
.settings .card>h2 { margin-bottom:14px; }
.auth-grid { gap:36px; }
.empty { border:1px dashed var(--beige); border-radius:var(--radius); background:var(--cream); padding:48px 24px; margin:18px 0 30px; }
.empty .mark { display:block; margin:0 auto 18px; }
.empty h2 { margin-bottom:10px; }
.flash { padding:16px 18px; font-size:.85rem; }
.plan-list { gap:12px; margin-top:18px; }
.plan-list a { padding:22px; gap:8px; }
.sheet { padding:28px; border:1px solid var(--beige); }
.sheet::backdrop { background:rgba(29,29,31,.3); }
.foot { margin-top:24px; padding-top:28px; font-size:.73rem; }
.foot p { margin-bottom:10px; }
.ingredient-photo { display:block; object-fit:contain; filter:none; flex-shrink:0; }
.fallback { background:var(--cream); padding-bottom:28px; }
.fallback-note { font-size:.65rem; background:var(--cream); padding:2px 6px; border-radius:4px; }
@media(hover:hover) {
 .recipe-card:hover { border-color:#c9c9ce; }
 .pantry-card:hover { border-color:#c9c9ce; }
 .btn,.icon-btn,.save { transition:background .15s,border-color .15s; }
}
@media(min-width:701px) and (max-width:1050px) {
 .top-inner { gap:12px; }.topnav { gap:2px; }.topnav a { padding:9px; font-size:.83rem; }
}
@media(max-width:1100px) and (min-width:901px) {
 .shop-main { grid-template-columns:minmax(0,1fr) 260px; gap:16px; }
 .line { grid-template-columns:24px 52px minmax(0,1fr) 58px 70px; grid-template-areas:"tick img name qty price" "tick img name swap search"; gap:8px; }
 .line .link.tiny { max-width:85px; }.line-img { width:52px; height:52px; }
 .plan-grid { grid-template-columns:minmax(0,1fr) 310px; }
 .modes { grid-template-columns:1fr 1fr; }
}
@media(max-width:900px) {
 .shell { padding-inline:24px; }
 .plan-grid { grid-template-columns:1fr; grid-template-areas:"intro" "hero" "form" "preview"; gap:24px; }
 .hero-text { padding:28px; }.hero-text h1 { font-size:2.8rem; }
 .preview-card { position:static; }.thumbs { grid-template-columns:repeat(4,1fr); }
 .shop-main { grid-template-columns:1fr; }
 .shop-main .budget { top:80px; z-index:5; padding:16px 20px; }
 .budget .eyebrow { display:none; }.budget .cover { margin:0; padding:0; border:0; flex-basis:auto; }
 .budget .bar { margin:10px 0; }.budget .meta { margin:0; }
 .recipe-hero { grid-template-columns:1fr 1fr; }.recipe-hero-text { padding:24px; }.recipe-hero-img { min-height:360px; max-height:none; }
 .recipe-cols { grid-template-columns:1fr; }
}
@media(max-width:700px) {
 :root { --radius:16px; --nav-h:70px; }
 .shell { padding-inline:18px; }
 main.shell { padding-top:22px; padding-bottom:32px; }
 body { padding-bottom:calc(var(--nav-h) + var(--safe-b)); }
 body.has-sticky-action { padding-bottom:calc(var(--nav-h) + var(--safe-b) + 86px); }
 .top-inner { height:68px; gap:12px; }
 .brand { font-size:1.2rem; }.brand .mark { width:30px; height:30px; }
 .account { margin-left:auto; width:42px; height:42px; }
 .page-intro { display:block; }.page-intro .eyebrow { margin:0; }.page-intro p { display:none; }
 .hero { grid-template-columns:1fr; min-height:0; }
 .hero-text { grid-column:1; grid-row:1; min-height:0; padding:28px 26px; background:var(--cream); }
 .hero-text .eyebrow { font-size:.6rem; }.hero-text h1 { font-size:2.65rem; }
 .hero-text p { font-size:.9rem; margin-bottom:0; }.hero-caption { display:none; }
 .hero-img { grid-column:1; grid-row:2; height:224px; width:100%; object-position:center; }
 .card { padding:22px; }.hero.card { padding:0; }
 .plan-grid { gap:22px; }.form { gap:24px; }.form-heading h2 { font-size:1.3rem; }
 .form-heading p { font-size:.82rem; }.form-heading .eyebrow { font-size:.62rem; }
 .row2 { gap:12px; grid-template-columns:1fr 1fr; }
 .modes { grid-template-columns:1fr 1fr; gap:10px; }
 .choice { min-height:98px; }.pills { gap:7px; }.pill { padding:8px 10px; font-size:.8rem; }
 .form-details>summary { font-size:.85rem; }
 .form>.btn.big { padding-inline:10px; font-size:.85rem; }
 .thumbs { grid-template-columns:repeat(2,1fr); }
 .shop-head { margin:4px 0 24px; }.shop-head h1 { font-size:2rem; }.shop-head p { font-size:.88rem; }
 .shop-head .eyebrow { font-size:.6rem; }.chip { padding:10px 15px; font-size:.82rem; min-height:48px; }
 .shop-main { gap:16px; }.shop-main .budget { position:static; padding:18px; }
 .budget .meta { font-size:.7rem; }.budget .cover { flex-basis:100%; }
 .line { padding:16px 12px; grid-template-columns:22px 52px minmax(0,1fr) 70px; grid-template-areas:"tick img name price" "tick img qty swap" "tick img search search"; gap:8px; }
 .line-img { width:52px; height:60px; }.line .qty { max-width:68px; }
 .line .line-name b { font-size:.83rem; }.line-name small { font-size:.68rem; }
 .line .link.tiny { justify-self:start; font-size:.67rem; min-height:44px; }
 .line .btn { justify-self:end; }.line-price b { font-size:.85rem; }
 .price-edit { flex-wrap:wrap; gap:2px; }.price-edit input { width:44px; }
 .line .qty select { min-height:44px; }.price-edit input { min-height:32px; }
 .pantry-grid { grid-template-columns:1fr 1fr; gap:12px; }
 .pantry-card { padding:9px 9px 5px; gap:7px; }.pantry-img { min-height:132px; }
 .pantry-img .ingredient-photo { width:100px; height:100px; }
 .pantry-name { font-size:.8rem; }.pantry-card>small { font-size:.68rem; }
 .pantry-actions { gap:10px; }.pantry-actions .link.tiny { font-size:.66rem; }
 .section-head { margin-top:28px; gap:8px; }.section-head h2 { font-size:1.2rem; }
 .section-head>.link { font-size:.78rem; }
 .pantry-page>.btn.big { width:100%; padding-inline:10px; font-size:.85rem; }
 .recipe-grid { grid-template-columns:1fr 1fr; gap:12px; }
 .recipe-link { padding:0 12px 16px; gap:8px; }
 .recipe-img { width:calc(100% + 24px); margin:0 -12px 4px; aspect-ratio:1; }
 .recipe-link>b { font-size:.85rem; line-height:1.4; }.recipe-link>small { font-size:.67rem; line-height:1.5; }
 .recipe-link>.status { font-size:.65rem; line-height:1.5; gap:4px; }
 .recipe-card .save { top:8px; right:8px; }.save { width:44px; height:44px; }
 .recipe-hero { grid-template-columns:1fr; }.recipe-hero-img { min-height:0; height:260px; max-height:none; }
 .recipe-hero-text { padding:24px; gap:14px; }.recipe-hero-text h1 { font-size:2rem; }
 .recipe-cta { flex-wrap:wrap; }.recipe-cta>.btn { flex:1; }
 .meta-row { font-size:.83rem; }.ing-list li { grid-template-columns:32px minmax(0,1fr); font-size:.83rem; }
 .ing-list li>.tag { grid-column:2; justify-self:start; }.ing-list li>.ingredient-photo { grid-row:span 2; width:32px; height:32px; }
 .cook-head { flex-wrap:wrap; }.cook-progress { margin-left:56px; }.cook-step { padding:24px; }
 .cook-controls { gap:10px; }.cook-controls .btn { font-size:.9rem; padding-inline:12px; }
 .settings { gap:22px; }.auth-grid { gap:28px; }.sheet { padding:24px 20px calc(24px + var(--safe-b)); }
 .confirm-line { grid-template-columns:24px 36px 68px minmax(0,1fr); padding:16px 0; }
 .confirm-line .ingredient-photo { width:36px; height:44px; }.confirm-line select { font-size:.85rem; padding-left:8px; }
 .swap-opt { padding:14px; gap:12px; }.swap-text { font-size:.88rem; }
 .bottomnav { background:var(--cream); }.bottomnav a { min-height:70px; gap:5px; font-size:.68rem; }
 .bottomnav a.active::before { content:""; width:20px; height:2px; background:var(--orange); position:absolute; top:0; border-radius:0 0 2px 2px; }
 .sticky-action { padding:12px 18px; border-top:1px solid var(--beige); background:var(--cream); }
 .sticky-action .btn { min-height:52px; font-size:.86rem; }
 .foot { margin-top:12px; padding-block:24px; font-size:.7rem; }
 .foot p { line-height:1.8; }.empty { padding:32px 20px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none!important; } }

/* Keep compact price editing usable by touch. */
.price-edit input { min-height:44px; }
:focus-visible { outline:2px solid var(--orange); outline-offset:4px; }

/* Price column must fit the editable unit price ("$ 1.98 sample") beside the quantity select. */
.line { grid-template-columns:24px 64px minmax(0,1fr) 68px 124px auto; }
.price-edit { flex-wrap:wrap; }
.price-edit input { width:64px; min-width:0; min-height:36px; padding:6px 8px; }
@media (max-width:1000px) { .line { grid-template-columns:24px 52px minmax(0,1fr) 58px 110px; } }
/* Desktop: the mobile-only flash row is empty, so drop it or the grid gap doubles above the list. */
@media (min-width:701px) { .shop-main { grid-template-areas:"chips chips" "lines budget" "actions budget" "hint budget" "meals budget"; } }
/* Photo tags carry width/height attributes for layout stability; let CSS aspect-ratio win over the attribute height. */
.recipe-img, .thumb { height: auto; }


/* White / light-gray refinement. Preserve all HTMX targets and controls. */
html { scroll-behavior:smooth; }
body { background:#fff; letter-spacing:-.015em; }
h1,h2,h3 { color:var(--espresso); font-weight:600; letter-spacing:-.045em; }
h1 { font-size:clamp(36px,4.5vw,56px); line-height:1.08; }
h2 { font-size:28px; line-height:1.15; }
p { line-height:1.6; }
main.shell { padding-top:40px; padding-bottom:80px; }
.top { background:rgba(255,255,255,.95); border-bottom:1px solid #ececef; }
@supports(backdrop-filter:blur(16px)) { .top { background:rgba(255,255,255,.85); backdrop-filter:blur(16px); } }
.top-inner { height:64px; gap:28px; }
.brand { font-size:21px; font-weight:600; letter-spacing:-.055em; gap:8px; }
.brand .mark { width:29px; height:29px; }
.mark>circle { fill:#fff; stroke:#e5e5e8; }
.mark path[fill]:not([fill="none"]) { fill:var(--orange); }
.mark path[stroke="#8A5A2B"] { stroke:var(--orange); }
.mark path[stroke="#FBF0E3"] { stroke:#fff; }
.topnav { gap:12px; }
.topnav a { color:#57575c; font-size:13px; font-weight:400; border-radius:0; padding:10px 8px; background:transparent; position:relative; }
.topnav a .ic { display:none; }
.topnav a:hover { background:transparent; color:#1d1d1f; }
.topnav a.active { background:transparent; color:var(--orange); font-weight:500; }
.topnav a.active::after { content:""; position:absolute; bottom:2px; left:8px; right:8px; height:2px; background:var(--orange); border-radius:2px; }
.account { border:0; background:var(--cream); width:44px; height:44px; }
.eyebrow { text-transform:none; letter-spacing:.015em; font-size:13px; font-weight:500; color:var(--muted); }
.page-intro { display:none; }
.plan-grid { grid-template-areas:"hero hero" "form preview"; gap:40px; }
.hero.card { grid-template-columns:1fr; padding:0; border:0; border-radius:0; background:#fff; box-shadow:none; min-height:0; overflow:visible; }
.hero-text { grid-column:1; grid-row:1; text-align:center; align-items:center; background:#fff; padding:32px 20px 40px; min-height:0; }
.hero-text .eyebrow { color:var(--muted); font-size:17px; margin-bottom:18px; }
.hero-text h1 { font-size:clamp(48px,6.3vw,76px); line-height:1.025; letter-spacing:-.06em; margin:0 0 22px; font-weight:600; }
.hero-accent { color:var(--orange); }
.hero-text p { font-size:21px; line-height:1.4; color:#646469; margin:0 0 26px; letter-spacing:-.025em; }
.hero-caption { display:none; }
.hero-actions { display:flex; justify-content:center; align-items:center; gap:24px; flex-wrap:wrap; }
.hero-actions .btn { min-height:48px; padding:12px 25px; font-size:15px; }
.hero-actions .link { font-weight:400; font-size:16px; gap:6px; }
.hero-img { grid-column:1; grid-row:2; position:static; width:100%; height:440px; min-height:0; object-fit:cover; object-position:50% 53%; border-radius:28px; }
#plan-details { scroll-margin-top:88px; }
.card { border:0; border-radius:24px; background:var(--cream); padding:32px; box-shadow:none; }
.form { gap:28px; }
.form-heading h2 { font-size:30px; margin-bottom:12px; }
.form-heading p { font-size:15px; }
.form-heading .eyebrow { margin-bottom:10px; color:var(--muted); }
.field>span:first-child,legend { font-size:14px; font-weight:500; }
.field>span:first-child.hint,legend .hint { font-size:12px; }
input[type=text],input[type=number],input[type=email],input[type=password],input[type=date],select,textarea { background:#fff; border-color:#86868b; border-radius:12px; font-size:16px; min-height:50px; }
input::placeholder,textarea::placeholder { color:#747479; opacity:1; }
.stepper { border-color:#86868b; background:white; border-radius:12px; }
.stepper button { background:#fff; border-color:#dedee3; color:#505055; height:50px; }
.stepper button:hover { background:#eaeaec; }
.choice,.pill { border-color:#86868b; border-radius:12px; }
.choice { min-height:108px; }
.choice.on,.pill.on,.choice:has(input:checked),.pill:has(input:checked) { background:#fff; border-color:var(--orange); box-shadow:inset 0 0 0 1px var(--orange); color:var(--orange); }
.select-wrap.accent select { background:#fff; border-color:#86868b; font-weight:400; }
.form-section { border-color:#dcdce1; padding-top:28px; }
.form-details { border-color:#dcdce1; }
.form-details>summary { min-height:56px; font-weight:500; }
.btn { border-radius:999px; background:#fff; border-color:#bdbdc4; font-weight:400; padding:11px 22px; }
.btn.primary { background:var(--orange); border-color:var(--orange); color:#fff; font-weight:500; }
.btn.ghost { border-color:transparent; background:transparent; }
.btn.danger { border-color:var(--red); color:var(--red); }
.link { font-weight:400; color:var(--orange); }
.icon-btn,.save { border-color:#e1e1e6; }
.preview-card { top:88px; background:#fff; border:1px solid #e5e5e9; padding:30px; }
.preview .eyebrow { color:var(--muted); }
.preview h2 { font-size:32px; line-height:1.1; margin-bottom:14px; }
.preview>p { font-size:15px; }
.stats { border-color:#e5e5e9; margin:24px 0; gap:8px; }
.stats dd { font-size:23px; font-weight:500; letter-spacing:-.04em; }
.stats dt { font-size:12px; }
.stats dd small { font-size:12px; letter-spacing:0; }
.thumb { border-radius:16px; }
.assumptions { border-color:#e5e5e9; }
.assumptions summary { font-size:13px; }
.shop-head { margin:12px 0 40px; }
.shop-head .eyebrow { color:var(--muted); font-size:13px; margin-bottom:14px; }
.shop-head p { font-size:18px; margin-top:16px; }
.chip { border-color:#d2d2d7; background:#fff; border-radius:14px; font-weight:400; }
.chip.on { background:var(--cream); border-color:var(--orange); color:var(--orange); }
.shop-main .budget { top:88px; padding:28px; }
.budget .eyebrow { color:var(--muted); }
.budget-row .spent b { font-size:34px; font-weight:500; }
.bar { background:#e3e3e8; }
.bar span { background:var(--orange); }
.lines { border-color:#e5e5e9; border-radius:20px; }
.line { border-color:#ebebee; padding-block:24px; }
.line-name b { font-weight:500; }
.line-price b { font-weight:500; }
.line .btn.small { background:#f5f5f7; border:0; border-radius:999px; }
.line .link.tiny { min-height:44px; }
.price-edit input { min-height:44px; font-size:13px; border-color:#d2d2d7; }
.badge.sample { background:#eaeaec; border-color:transparent; color:#646469; font-weight:400; }
.pantry-grid { gap:20px; grid-template-columns:repeat(auto-fill,minmax(170px,1fr)); }
.pantry-card { background:var(--cream); border:0; border-radius:22px; padding:16px 14px 10px; gap:9px; }
.pantry-img { background:transparent; min-height:160px; }
.pantry-img .ingredient-photo { width:124px; height:124px; }
.pantry-name { font-size:14px; font-weight:500; }
.pantry-card .stepper { border:0; }
.pantry-card .stepper button { min-width:44px; }
.badge.soon { background:#fff; border-color:#e2c7b6; font-weight:500; color:var(--orange); }
.badge.loc { background:#fff; }
.section-head { margin:48px 0 24px; }
.section-head h2 { font-size:28px; }
.recipe-grid { gap:24px; grid-template-columns:repeat(auto-fill,minmax(255px,1fr)); }
.recipe-card { border:0; border-radius:24px; background:var(--cream); box-shadow:none; }
.recipe-link { padding:0 22px 24px; gap:10px; }
.recipe-img { width:calc(100% + 44px); margin:0 -22px 10px; height:auto; aspect-ratio:4/3; }
.recipe-link>b { font-size:20px; font-weight:500; line-height:1.25; letter-spacing:-.035em; }
.recipe-link>small { font-size:13px; }
.recipe-link>.status { font-size:12px; }
.recipe-card .save { top:14px; right:14px; }
.save { width:44px; height:44px; background:rgba(255,255,255,.95); }
.recipe-hero { border:0; background:var(--cream); border-radius:28px; margin-bottom:40px; }
.recipe-hero-text { padding:44px; gap:20px; }
.recipe-hero-text h1 { font-size:clamp(36px,3.5vw,48px); line-height:1.05; letter-spacing:-.05em; }
.recipe-hero-img { min-height:500px; }
.recipe-hero-text p { font-size:16px; }
.recipe-cols { gap:28px; }
.recipe-cols .card { padding:32px; }
.ing-list li { border-color:#dedee3; font-size:14px; padding-block:14px; }
.steps { line-height:1.85; }
.tag.ok { background:white; color:var(--green); }
.tag.miss { background:white; color:var(--red); }
.tag.timer { background:white; color:#646469; }
.settings { gap:32px; max-width:920px; }
.settings>.card { padding:36px; }
.settings h1 { margin-bottom:12px; }
.settings .card>h2 { font-size:28px; }
.plan-list a { background:var(--cream); border:0; padding:24px; border-radius:18px; }
.empty { background:var(--cream); border:0; border-radius:24px; padding:56px 24px; }
.empty h2 { font-size:28px; }
.sheet { background:#fff; border:0; border-radius:24px; padding:32px; box-shadow:0 24px 80px #1d1d1f22; }
.swap-opt { background:var(--cream); border-color:transparent; border-radius:16px; }
.flash { background:#f5f5f7; font-size:14px; }
.flash.info { background:#f5f5f7; border-color:#dedee3; }
.flash.ok { background:#f0f5f0; }
.flash.err { background:#fcf0ef; }
.cook { max-width:880px; }
.cook-step { border:0; background:var(--cream); border-radius:28px; padding:48px; }
.cook-step p { font-size:clamp(24px,3vw,34px); line-height:1.45; letter-spacing:-.035em; }
.cook-controls { gap:20px; margin-top:32px; }
.foot.shell { background:var(--cream); border:0; max-width:none; padding:36px max(32px,calc((100vw - 1136px)/2)); margin-top:32px; color:#646469; }
.foot a { color:#505055; }
:focus-visible { outline:2px solid var(--orange); outline-offset:4px; }
@media(hover:hover) {
 .recipe-card { transition:transform .2s ease; }
 .recipe-card:hover { transform:translateY(-3px); }
 .pantry-card:hover { background:#efeff2; }
 .topnav a:hover { color:var(--orange); }
}
@media(max-width:1050px) and (min-width:701px) {
 .top-inner { gap:16px; }.topnav { gap:8px; }.topnav a { padding-inline:7px; }
 .hero-text h1 { font-size:64px; }.hero-img { height:380px; }
}
@media(max-width:900px) {
 .plan-grid { grid-template-areas:"hero" "form" "preview"; grid-template-columns:1fr; gap:32px; }
 .hero-text { padding:24px 20px 32px; }.hero-text h1 { font-size:60px; }
 .hero-img { height:350px; }
 .preview-card { position:static; }
 .shop-main { grid-template-columns:1fr; grid-template-areas:"chips" "budget" "fm" "lines" "actions" "hint" "meals"; }
 .shop-main .budget { position:static; }
 .recipe-hero { grid-template-columns:1fr; }
 .recipe-hero-img { min-height:0; height:420px; }
 .recipe-hero-text { padding:36px; }
}
@media(max-width:700px) {
 :root { --nav-h:70px; --radius:22px; }
 .shell { padding-inline:20px; } main.shell { padding-top:24px; padding-bottom:48px; }
 .top-inner { height:64px; gap:12px; }.brand { font-size:20px; }.brand .mark { width:28px; height:28px; }
 .hero-text { padding:12px 0 30px; }.hero-text .eyebrow { font-size:14px; margin-bottom:14px; }
 .hero-text h1 { font-size:clamp(43px,11.5vw,58px); line-height:1.04; margin-bottom:18px; }
 .hero-text p { font-size:18px; margin-bottom:22px; }.hero-actions { gap:14px; }
 .hero-actions .btn { min-height:48px; font-size:14px; padding-inline:22px; }.hero-actions .link { font-size:14px; }
 .hero-img { height:270px; border-radius:22px; object-position:center; }
 .plan-grid { gap:32px; }.card { padding:24px; border-radius:22px; }.hero.card { padding:0; }
 .form { gap:26px; }.form-heading h2 { font-size:26px; }.form-heading p { font-size:14px; }.form-heading .eyebrow { font-size:12px; }
 .choice { min-height:108px; font-size:14px; }.choice small { font-size:12px; }.pill { font-size:13px; }
 .row2 { grid-template-columns:1fr 1fr; gap:12px; }.stepper input { font-size:20px; }
 .form-details>summary { font-size:14px; }.form>.btn.big { font-size:15px; min-height:52px; }
 .preview-card { padding:24px; }.preview h2 { font-size:30px; }
 .shop-head { margin:8px 0 32px; }.shop-head h1 { font-size:36px; }.shop-head p { font-size:16px; }
 .shop-head .eyebrow { font-size:12px; }
 .shop-main .budget { top:auto; padding:22px; }.budget .cover { font-size:12px; }
 .chip { border-radius:12px; font-size:14px; }
 .line { grid-template-columns:22px 50px minmax(0,1fr) 80px; grid-template-areas:"tick img name price" "tick img qty swap" "tick img search search"; padding:20px 12px; gap:8px; }
 .line .qty { max-width:65px; }.line .link.tiny { min-height:44px; }.line .line-name b { font-size:14px; }.line-name small { font-size:12px; }
 .line-price b { font-size:14px; }.price-edit input { width:64px; min-height:44px; font-size:13px; padding:6px; }.price-edit small { font-size:11px; }
 .pantry-grid { grid-template-columns:1fr 1fr; gap:14px; }.pantry-card { padding:12px 10px 8px; border-radius:20px; }
 .pantry-img { min-height:146px; }.pantry-img .ingredient-photo { width:110px; height:110px; }
 .pantry-name { font-size:14px; }.pantry-card>small { font-size:12px; }.pantry-actions { gap:10px; }.pantry-actions .link.tiny { font-size:12px; }
 .section-head { margin:40px 0 20px; }.section-head h2 { font-size:26px; }.section-head>.link { font-size:13px; }
 .pantry-page>.btn.big { font-size:14px; }
 .recipe-grid { grid-template-columns:1fr; gap:24px; }.recipe-card { border-radius:22px; }.recipe-link { padding:0 22px 24px; }
 .recipe-img { width:calc(100% + 44px); margin:0 -22px 10px; aspect-ratio:4/3; height:auto; }
 .recipe-link>b { font-size:22px; }.recipe-link>small { font-size:14px; }.recipe-link>.status { font-size:13px; }
 .recipe-hero { border-radius:22px; margin-bottom:28px; }.recipe-hero-img { height:280px; min-height:0; }.recipe-hero-text { padding:28px 24px; }
 .recipe-hero-text h1 { font-size:36px; }.recipe-hero-text p { font-size:15px; }.recipe-cols .card { padding:24px; }
 .recipe-cta .btn { font-size:14px; }.ing-list li { font-size:14px; }
 .settings>.card { padding:24px; }.settings { gap:28px; }.settings .card>h2 { font-size:26px; }
 .cook-step { padding:28px 24px; }.cook-step p { font-size:25px; }.cook-controls { gap:12px; }
 .sheet { border-radius:24px 24px 0 0; padding:28px 20px calc(28px + var(--safe-b)); }
 .confirm.card { padding:24px 18px; }.confirm h1 { font-size:32px; }
 .bottomnav { background:rgba(255,255,255,.97); border-color:#e5e5e9; }.bottomnav a { color:#646469; font-size:11px; }.bottomnav a.active { color:var(--orange); }
 .bottomnav a.active::before { background:var(--orange); }
 .sticky-action { background:#fff; border-color:#e5e5e9; }.sticky-action .btn { font-size:15px; }
 .foot.shell { padding:28px 20px; font-size:12px; margin-top:12px; }
}
@media(max-width:360px) {
 .shell { padding-inline:16px; }.card { padding:20px; }.hero-text h1 { font-size:43px; }.hero-img { height:240px; }
 .hero-actions { gap:10px; }.hero-actions .btn { padding-inline:18px; }.hero-actions .link { font-size:13px; }
 .pantry-grid { gap:10px; }.pantry-actions { gap:6px; }.pantry-actions .link.tiny { font-size:11px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; }.recipe-card:hover { transform:none; } }

.tick .box { border-color:#86868b; }

/* Exact owner-selected brand orange with white text on solid orange surfaces. */
.btn.primary,.btn.primary:hover,.btn.primary:active,.btn.primary:focus { color:#fff; }
.link { color:var(--espresso); text-decoration:underline; text-decoration-color:var(--orange); text-underline-offset:4px; }
.topnav a.active,.topnav a:hover,.bottomnav a.active { color:var(--espresso); }
.choice.on,.pill.on,.choice:has(input:checked),.pill:has(input:checked),.choice:has(input:checked) small,.chip.on,.badge.soon { color:var(--espresso); }
.chip.on { background:#fff; }
.badge.soon { border-color:var(--orange); }
:focus-visible { outline-color:var(--espresso); }

/* Budget stepper at 390px: the number input shares ~160px with "$" and two 44px buttons, so drop its box padding and the native spinner. */
.stepper input { padding-inline:4px 0; appearance:textfield; -moz-appearance:textfield; }
.stepper input::-webkit-inner-spin-button,.stepper input::-webkit-outer-spin-button { appearance:none; margin:0; }

/* Shop list as a table (mockup 2026-10-24): one row per item, column header with select-all, price note in the footer. */
.lines { display:block; border:1px solid #e5e5e9; border-radius:20px; background:#fff; overflow:hidden; }
.lines ul { list-style:none; margin:0; padding:0; }
.lines-head,.line { display:grid; grid-template-columns:24px 60px minmax(0,1fr) 80px 104px 64px 190px; grid-template-areas:"tick img name qty price total actions"; gap:0 14px; align-items:center; padding:20px 18px; }
.lines-head { padding:18px; background:var(--cream); border-bottom:1px solid #e5e5e9; color:var(--muted); font-size:14px; }
.lines-head .tick { grid-area:tick; } .lines-head .col-ing { grid-area:img / img / name / name; } .lines-head .col-qty { grid-area:qty; } .lines-head .col-price { grid-area:price; } .lines-head .col-total { grid-area:total; text-align:right; } .lines-head .col-act { grid-area:actions; text-align:center; }
.lines-head .mob { display:none; }
.line { border:0; border-bottom:1px solid #ebebee; border-radius:0; }
.line:last-child { border-bottom:0; }
.line .tick { grid-area:tick; } .line .line-img { grid-area:img; } .line .line-name { grid-area:name; } .line .qty { grid-area:qty; }
.line .price-edit { grid-area:price; margin:0; justify-content:flex-start; flex-wrap:wrap; gap:6px; font-size:16px; color:var(--espresso); }
.line .price-edit label { gap:8px; flex:1; } .line .price-edit .cur { color:var(--muted); }
.line .price-edit input { width:100%; min-width:0; flex:1; min-height:50px; font-size:16px; padding:6px 10px; border-color:#d2d2d7; border-radius:10px; }
.line .price-edit small { flex-basis:100%; font-size:11px; color:var(--muted); }
.line .line-total { grid-area:total; font-size:17px; font-weight:600; font-variant-numeric:tabular-nums; text-align:right; }
.line .line-actions { grid-area:actions; display:flex; align-items:center; justify-content:flex-end; gap:14px; }
.line .btn.small { font-size:15px; padding:11px 18px; gap:8px; min-height:44px; }
.line .link.tiny { font-size:16px; color:var(--orange); text-decoration-color:var(--orange); gap:2px; min-height:44px; }
.line .qty select { min-height:50px; font-size:16px; border-radius:10px; }
.line-name b { font-size:16px; font-weight:600; } .line-name small { font-size:13px; }
.line-img { width:60px; height:60px; }
.lines-foot { display:flex; align-items:center; gap:8px; margin:0; padding:16px 18px; border-top:1px solid #ebebee; color:var(--muted); font-size:14px; }
.lines-foot .link.info { min-height:24px; color:var(--muted); text-decoration:none; }
.budget .cover { display:flex; flex-direction:column; gap:8px; margin-top:16px; padding-top:18px; border-top:1px solid #e5e5e9; font-size:16px; font-weight:400; color:var(--espresso); }
.budget .cover-ic { width:26px; height:26px; border-radius:50%; border:1.5px solid #86868b; color:#86868b; display:grid; place-items:center; }
.budget .cover-ic.ok { border-color:var(--espresso); color:var(--espresso); }
.chip-static { margin:0; font-size:17px; color:var(--espresso); gap:6px; }
@media (max-width:1050px) {
 .lines-head,.line { grid-template-columns:24px 52px minmax(0,1fr) 76px 104px 64px; grid-template-areas:"tick img name qty price total" "tick img name actions actions actions"; gap:10px 12px; padding:16px; }
 .lines-head .col-act { display:none; }
 .line .line-actions { justify-content:flex-start; }
}
@media (max-width:700px) {
 .lines-head,.line { grid-template-columns:22px 50px minmax(0,1fr) 92px; grid-template-areas:"tick img name total" "tick img qty price" "tick img actions actions"; gap:8px; padding:16px 12px; }
 .lines-head { grid-template-areas:"tick ing ing ing"; }
 .lines-head .col-ing { grid-area:ing; } .lines-head .desk { display:none; } .lines-head .mob { display:inline; }
 .lines-head .col-qty,.lines-head .col-price,.lines-head .col-total { display:none; }
 .line .qty { max-width:none; } .line .qty select { min-height:44px; font-size:14px; }
 .line .price-edit input { min-height:44px; font-size:14px; padding:6px 8px; } .line .price-edit label { gap:4px; }
 .line .line-total { font-size:15px; } .line-name b { font-size:15px; } .line-name small { font-size:12px; }
 .line .line-actions { justify-content:space-between; }
 .line .btn.small { font-size:13px; padding:8px 14px; } .line .link.tiny { font-size:14px; }
 .lines-foot { font-size:12px; padding:12px; }
 .chip-static { font-size:14px; }
}

/* Editorial homepage: familiar Thriveness colors, generous spacing and a quieter rhythm. */
.homepage { --paper:#fcfaf6; --wash:#f3f3f0; --peach:#f9e8dc; background:var(--paper); grid-template-areas:"hero hero" "planner-intro planner-intro" "form preview" "story story"; gap:36px; isolation:isolate; }
main.shell:has(.homepage) { max-width:none; padding:0; overflow:clip; background:var(--paper); }
.homepage > .hero,.homepage > .planner-intro,.homepage > .form,.homepage > .preview-card { width:100%; }
.homepage { grid-template-columns:minmax(24px,1fr) minmax(0,730px) minmax(280px,370px) minmax(24px,1fr); column-gap:32px; grid-template-areas:". hero hero ." ". planner-intro planner-intro ." ". form preview ." "story story story story"; }
.homepage .hero.card { background:transparent; margin-top:44px; }
.homepage .hero-text { background:transparent; padding:32px 20px 42px; }
.homepage .hero-text h1 { font-family:var(--font); font-weight:600; letter-spacing:-.055em; font-size:clamp(56px,6.4vw,82px); }
.homepage .hero-text .hero-accent { font-style:normal; }
.homepage .hero-img { height:440px; border-radius:18px; }
.homepage .hero-text p { font-size:18px; }
.homepage .hero-actions .btn { border-radius:5px; }
.planner-intro { grid-area:planner-intro; text-align:center; padding:45px 0 12px; }
.homepage .planner-intro h2,.home-story h2,.home-story h3 { font-family:var(--font); font-weight:600; letter-spacing:-.04em; }
.homepage .planner-intro h2 { font-size:clamp(30px,3.6vw,43px); margin:0 0 12px; }
.homepage em { font-weight:inherit; font-style:normal; color:var(--orange); }
.homepage .eyebrow { font-size:10px; letter-spacing:.14em; font-weight:600; }
.planner-intro p { color:var(--muted); margin:0; }
.homepage .form { background:#f1f1f3; border-radius:16px; }
.homepage .preview-card { background:#fffefa; border-radius:16px; }
.home-story { grid-area:story; margin-top:60px; }
.home-story > section { padding:90px max(32px,calc((100% - 1132px)/2)); }
.home-story h2 { font-size:clamp(34px,3.9vw,48px); line-height:1.08; margin:0 0 20px; }
.home-story h3 { font-size:27px; line-height:1.15; margin:16px 0 12px; }
.home-story p { color:var(--muted); font-size:15px; line-height:1.75; }
.home-story .eyebrow { margin-bottom:16px; }
.home-story .link { color:var(--espresso); font-size:13px; font-weight:600; text-decoration-color:#a3a39a; }
.story-lead { max-width:450px; }
.step-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:32px; margin-top:44px; }
.step-grid article { border-top:1px solid #dcdcd5; padding-top:14px; }
.step-art { display:grid; place-items:center; height:135px; background:var(--wash); color:var(--orange); border-radius:4px; margin-bottom:25px; }
.step-art.peach { background:var(--peach); }
.step-grid .eyebrow { margin:0; }
.step-grid p { min-height:84px; }
.home-story .home-pantry { background:var(--wash); display:grid; grid-template-columns:1.1fr 1fr; gap:75px; align-items:center; }
.pantry-still { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; min-height:300px; background:#fffefa; border-radius:12px; box-shadow:0 14px 40px #2424200c; padding:32px 16px; transform:rotate(-3deg); }
.pantry-still .ingredient-photo { width:30%; height:auto; }
.pantry-still span { width:100%; text-align:center; font-family:var(--font); font-size:23px; line-height:1.6; margin-top:20px; }
.pantry-still b { font-weight:400; color:var(--orange); }
.home-story .home-feature { margin:80px auto 0; max-width:1132px; padding:52px; background:#242426; color:white; display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:56px; border-radius:14px; }
.home-feature h2 { color:#fffefa; font-size:44px; }.home-feature p { color:#d2d2cf; }.home-feature .eyebrow { color:#ffb59a; }
.home-feature ul { padding:0; list-style:none; margin:22px 0 30px; font-size:14px; line-height:2; color:#e0e0dc; }
.home-feature li::before { content:'✓'; margin-right:10px; color:#ff9a76; }
.home-feature img { width:100%; height:auto; aspect-ratio:1; object-fit:cover; border-radius:10px; }
.home-feature .btn { border-radius:5px; }
.home-story .home-faq { display:grid; grid-template-columns:.85fr 1.15fr; gap:70px; padding-top:100px; padding-bottom:100px; }
.faq-list details { border-top:1px solid #deded8; padding:0; }.faq-list details:last-child { border-bottom:1px solid #deded8; }
.faq-list summary { min-height:70px; display:flex; align-items:center; justify-content:space-between; cursor:pointer; font-size:14px; font-weight:600; gap:16px; list-style:none; }
.faq-list summary::-webkit-details-marker { display:none; }.faq-list summary::after { content:'+'; color:var(--orange); font-size:20px; font-weight:400; }.faq-list details[open] summary::after { content:'−'; }.faq-list p { margin:0 0 22px; }
.home-story .home-close { text-align:center; background:var(--orange); padding-top:75px; padding-bottom:80px; }
.home-close h2,.homepage .home-close em,.home-close p,.home-close .eyebrow { color:white; }.home-close h2 { font-size:clamp(44px,5vw,62px); }.home-close .btn { border:0; border-radius:5px; color:var(--espresso); background:var(--paper); margin-top:16px; }
.homepage [data-reveal] { transition:translate .85s cubic-bezier(.2,.65,.25,1),opacity .7s ease; }
.homepage [data-reveal].reveal-pending { opacity:0; translate:var(--entry-x) 0; }
.homepage [data-reveal="left"] { --entry-x:-100px; }.homepage [data-reveal="right"] { --entry-x:100px; }
@media(min-width:901px) { .homepage .form:focus-within,.homepage .preview-card:focus-within { opacity:1; translate:0; } }
@media(max-width:1000px) { .homepage { grid-template-columns:24px minmax(0,1fr) 300px 24px; column-gap:18px; }.home-story .home-feature { margin-inline:32px; padding:32px; gap:28px; }.home-feature h2 { font-size:36px; } }
@media(max-width:900px) { .homepage { grid-template-columns:minmax(0,1fr); grid-template-areas:"hero" "planner-intro" "form" "preview" "story"; padding-inline:24px; gap:24px; }.homepage .hero.card { margin-top:20px; }.homepage .hero-img { height:340px; }.homepage .preview-card { position:static; }.home-story { margin-inline:-24px; }.home-story > section { padding:64px 32px; }.home-story .home-pantry { gap:36px; }.home-story .home-faq { gap:36px; }.step-grid { gap:20px; }.step-grid p { min-height:0; } }
@media(max-width:600px) { .homepage { padding-inline:18px; }.homepage .hero-text { padding:30px 0 32px; }.homepage .hero-text h1 { font-size:56px; }.homepage .hero-text .eyebrow { font-size:12px; }.homepage .hero-text p { font-size:17px; }.homepage .hero-img { height:265px; border-radius:12px; }.homepage .planner-intro { padding:30px 0 10px; }.homepage .form { padding:22px; }.home-story { margin-inline:-18px; margin-top:24px; }.home-story > section { padding:54px 24px; }.step-grid { grid-template-columns:1fr; gap:36px; }.step-art { height:115px; }.home-story .home-pantry,.home-story .home-feature,.home-story .home-faq { grid-template-columns:1fr; gap:32px; }.home-story .home-feature { margin:48px 18px 0; padding:30px 24px; }.home-feature img { aspect-ratio:4/3; }.home-story .home-faq { padding:60px 24px; }.home-story .home-close { padding:60px 24px; }.homepage [data-reveal="left"] { --entry-x:-35px; }.homepage [data-reveal="right"] { --entry-x:35px; }.home-pantry .pantry-still { transform:none; min-height:240px; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; }.homepage [data-reveal].reveal-pending { opacity:1; translate:0; }.homepage [data-reveal] { transition:none; } }
/* Keep the preview inside its planner row, clear of the following full-width stories. */
.homepage .preview-card { position:static; }

/* Reference-inspired split hero: editorial copy beside the existing food photograph. */
.homepage .hero.card { grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:center; gap:64px; margin-top:52px; margin-bottom:12px; }
.homepage .hero-text { grid-column:1; grid-row:1; text-align:left; align-items:flex-start; padding:16px 0; }
.homepage .hero-text .eyebrow { font-size:10px; text-transform:uppercase; letter-spacing:.14em; margin-bottom:22px; }
.homepage .hero-text h1 { font-size:clamp(48px,5.3vw,72px); line-height:1.04; margin-bottom:24px; }
.homepage .hero-text p { font-size:17px; line-height:1.65; margin-bottom:26px; }
.homepage .hero-actions { justify-content:flex-start; gap:18px; }
.homepage .hero-actions .btn { font-size:14px; padding:12px 20px; }
.homepage .hero-actions .link { font-size:14px; }
.homepage .hero-caption { display:flex; margin-top:18px; font-size:11px; color:var(--muted); }
.homepage .hero-img { grid-column:2; grid-row:1; height:auto; aspect-ratio:1; width:100%; object-fit:cover; object-position:50% 50%; border-radius:18px; }
@media(min-width:701px) and (max-width:1050px) { .homepage .hero.card { gap:32px; }.homepage .hero-text h1 { font-size:clamp(44px,5.5vw,58px); }.homepage .hero-text p { font-size:15px; }.homepage .hero-actions { gap:8px 16px; } }
@media(max-width:700px) { .homepage .hero.card { grid-template-columns:1fr; gap:28px; margin-top:24px; margin-bottom:0; }.homepage .hero-text { padding:16px 0 0; }.homepage .hero-text h1 { font-size:clamp(48px,10vw,64px); }.homepage .hero-text p { font-size:17px; }.homepage .hero-img { grid-column:1; grid-row:2; aspect-ratio:4/3; border-radius:14px; }.homepage .hero-text .eyebrow { font-size:9px; } }

/* Alternate full-width white and light-gray sections with orange feature accents. */
.homepage { --paper:#fff; --wash:#f5f5f7; --peach:#f5f5f7; grid-template-areas:". hero hero ." "planner planner planner planner" "story story story story"; row-gap:0; }
.homepage .hero.card { margin-bottom:64px; }
.planner-block { grid-area:planner; display:grid; grid-template-columns:minmax(24px,1fr) minmax(0,730px) minmax(280px,370px) minmax(24px,1fr); grid-template-areas:". planner-intro planner-intro ." ". form preview ."; gap:36px 32px; background:var(--wash); padding:54px 0 72px; }
.homepage .planner-intro { padding:0; }
.homepage .form,.homepage .preview-card,.homepage .pantry-still { background:#fff; }
.home-story { margin-top:0; background:#fff; }
.home-story .home-steps { background:#fff; }
.home-story .home-pantry { background:var(--wash); }
.home-story .home-feature { background:var(--orange); }
.homepage .home-feature h2,.homepage .home-feature em,.home-feature p,.home-feature .eyebrow,.home-feature ul,.home-feature li::before { color:#fff; }
.homepage .home-feature .btn { background:#fff; color:var(--orange); border-color:#fff; }
.homepage .home-feature .btn:hover { background:#f5f5f7; border-color:#f5f5f7; }
.home-story .home-faq { background:var(--wash); margin-top:80px; }
.home-story .home-close { background:var(--orange); }
@media(min-width:901px) and (max-width:1000px) { .planner-block { grid-template-columns:24px minmax(0,1fr) 300px 24px; column-gap:18px; } }
@media(max-width:900px) { .homepage { grid-template-areas:"hero" "planner" "story"; }.planner-block { grid-template-columns:minmax(0,1fr); grid-template-areas:"planner-intro" "form" "preview"; gap:24px; padding:48px 24px; margin-inline:-24px; }.homepage .hero.card { margin-bottom:48px; }.home-story .home-faq { margin-top:64px; } }
@media(max-width:600px) { .planner-block { margin-inline:-18px; padding:40px 18px; }.home-story .home-faq { margin-top:48px; } }

/* Apple-style system typography, shared by display copy and interface controls. */
.homepage .hero-text h1 { letter-spacing:-.055em; line-height:1.04; }
.homepage .planner-intro h2,.home-story h2 { letter-spacing:-.045em; font-weight:600; }
.home-story h3 { letter-spacing:-.035em; font-weight:600; }
.pantry-still span { font-weight:500; letter-spacing:-.03em; }
.pantry-still b { font-weight:500; }

/* Compact meal search. All lower-page story sections retain their existing styles. */
.search-home { display:block; position:relative; padding:0; }
.search-home .search-hero { position:relative; padding:70px 220px 32px; text-align:center; min-height:340px; background:#fff; }
.search-heading { position:relative; z-index:1; max-width:800px; margin:auto; }
.search-heading .eyebrow { color:var(--orange); font-size:10px; letter-spacing:.14em; margin-bottom:20px; }
.search-heading h1 { font-size:clamp(50px,5vw,72px); line-height:1.02; font-weight:650; letter-spacing:-.06em; margin:0 0 20px; }
.search-heading h1 span { color:var(--orange); }
.search-heading p { font-size:18px; line-height:1.55; color:var(--muted); margin:0; }
.food-rail { position:absolute; top:28px; display:flex; flex-direction:column; gap:20px; width:166px; pointer-events:none; }
.rail-left { left:-22px; transform:rotate(-7deg); }.rail-right { right:-22px; transform:rotate(7deg); }
.food-rail img { width:100%; height:144px; object-fit:cover; border:7px solid #fff; border-radius:24px; box-shadow:0 10px 28px #1d1d1f12; }
.food-rail img:nth-child(2) { transform:translateX(22px); }.rail-right img:nth-child(2) { transform:translateX(-22px); }
.search-home .search-planner { position:relative; display:flex; flex-direction:column; gap:22px; margin:0; padding:10px max(190px,calc((100% - 920px)/2)) 64px; background:#fff; }
.search-home .search-form { display:flex; flex-direction:column; gap:0; width:100%; padding:24px; border:1px solid #e5e5e9; border-radius:20px; box-shadow:0 12px 45px #24242609; background:#fff; }
.search-modes { display:flex; gap:8px; border:0; padding:0 0 22px; margin:0; min-width:0; }
.search-mode { position:relative; display:flex; gap:9px; align-items:center; padding:10px 14px; border:1px solid #e5e5e9; border-radius:12px; cursor:pointer; flex:1; font-size:13px; font-weight:600; background:#fff; }
.search-mode input { position:absolute; opacity:0; width:1px; height:1px; }.search-mode:has(input:checked) { color:var(--orange); background:#fff4ef; border-color:var(--orange); }.search-mode:has(input:focus-visible) { outline:2px solid var(--orange); outline-offset:3px; }
.search-mode small { display:block; font-size:10px; color:var(--muted); font-weight:400; margin-top:2px; }
.search-controls { display:grid; grid-template-columns:1fr 1fr 1fr auto; padding:7px; gap:0; border:1px solid #dedee3; border-radius:12px; box-shadow:0 3px 8px #24242606; }
.search-field { min-width:0; padding:7px 14px; border-right:1px solid #e5e5e9; display:flex; flex-direction:column; gap:4px; }
.search-field > span:first-child { display:flex; align-items:center; gap:5px; font-size:10px; color:var(--muted); font-weight:500; }
.search-field select,.search-field input[type=number] { min-height:30px; height:30px; padding:0; border:0; border-radius:3px; background:transparent; font-size:15px; font-weight:600; width:100%; }
.search-field .search-budget { display:flex; align-items:center; gap:4px; height:30px; }.search-budget b { font-size:15px; }
.search-home .search-submit { border-radius:8px; align-self:stretch; margin-left:8px; padding:14px 18px; white-space:nowrap; font-weight:600; }
.search-extras { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; padding:18px 0; }
.search-extras .check { font-size:12px; gap:6px; }.search-extras .link { font-size:11px; min-height:32px; }.pantry-count { font-size:10px; color:var(--muted); background:var(--wash); border-radius:20px; padding:3px 7px; }
.search-form .form-details > summary { font-size:12px; min-height:48px; }.diet-details summary small { font-weight:400; color:var(--muted); font-size:10px; margin-left:8px; }
.search-form .form-section { border:0; padding:0; }.search-form .details-content { padding-bottom:22px; }.search-form #preview-note { margin:14px 0 0; font-size:10px; }
.search-home .search-preview { padding:22px 26px; border-radius:16px; background:var(--wash); border:0; width:100%; }
.search-preview .preview { display:grid; grid-template-columns:1fr 1fr; gap:0 32px; }.search-preview .preview > .eyebrow { grid-column:1; margin-bottom:8px; font-size:9px; }.search-preview h2 { grid-column:1; font-size:25px; margin-bottom:8px; }.search-preview .preview > p { grid-column:1; font-size:12px; margin:0; }.search-preview .stats { grid-column:2; grid-row:1/5; border:0; margin:0; display:flex; gap:20px; flex-wrap:wrap; align-content:center; }.search-preview .stats div { padding:0; }.search-preview .stats dd { font-size:19px; }.search-preview .stats dt,.search-preview .stats dd small { font-size:10px; }.search-preview .thumbs { display:none; }.search-preview .assumptions { grid-column:1/-1; margin-top:16px; padding-top:0; }.search-preview .preview > .flash { grid-column:1/-1; margin-top:16px; }
@media(min-width:1500px) { .food-rail { width:220px; }.food-rail img { height:180px; }.rail-left { left:15px; }.rail-right { right:15px; } }
@media(max-width:1100px) { .food-rail { width:125px; }.food-rail img { height:125px; }.search-home .search-hero { padding-inline:140px; }.search-home .search-planner { padding-inline:130px; }.search-controls { grid-template-columns:1fr 1fr 1fr; }.search-home .search-submit { grid-column:1/-1; margin:7px 0 0; }.search-field:last-of-type { border-right:0; }.search-mode { padding:9px; gap:6px; }.search-mode > .ic { display:none; } }
@media(max-width:800px) { .food-rail { display:none; }.search-home .search-hero { padding:46px 24px 24px; min-height:0; }.search-home .search-planner { padding:10px 24px 48px; }.search-heading h1 { font-size:56px; }.search-heading p { font-size:16px; } }
@media(max-width:600px) { .search-home .search-hero { padding:40px 18px 24px; }.search-home .search-planner { padding:8px 18px 40px; }.search-home .search-form { padding:16px; }.search-modes { display:grid; grid-template-columns:1fr 1fr; gap:7px; padding-bottom:16px; }.search-mode { padding:10px; font-size:12px; }.search-controls { grid-template-columns:1fr 1fr; }.search-field:nth-child(2) { border:0; }.search-field:nth-child(3) { grid-column:1/-1; border:0; border-top:1px solid #e5e5e9; padding-top:12px; }.search-extras { gap:4px; padding:12px 0; }.diet-details summary small { display:none; }.search-home .search-preview { padding:20px; }.search-preview .preview { display:block; }.search-preview .stats { margin:20px 0 0; gap:22px; }.search-home .home-story { margin-inline:0; }.search-heading .eyebrow { font-size:8px; }.search-heading h1 { font-size:52px; } }
.search-home .home-story { margin-inline:0; }
/* Keep all three images visible on each side of the search heading. */
.food-rail { top:20px; gap:12px; }
.food-rail img { height:96px; border-width:5px; }
@media(min-width:1500px) { .food-rail img { height:110px; } }

/* Two cohesive fruit assortments frame the meal search. */
.search-home .fruit-rail { top:20px; width:190px; gap:0; transform:none; }
.search-home .fruit-rail.rail-left { left:-18px; }
.search-home .fruit-rail.rail-right { right:-18px; }
.search-home .fruit-rail img { display:block; width:100%; height:320px; object-fit:contain; border:0; border-radius:0; box-shadow:none; transform:none; mix-blend-mode:multiply; }
@media(min-width:1500px) { .search-home .fruit-rail { width:260px; }.search-home .fruit-rail img { height:340px; }.search-home .fruit-rail.rail-left { left:10px; }.search-home .fruit-rail.rail-right { right:10px; } }
@media(max-width:1100px) { .search-home .fruit-rail { width:135px; }.search-home .fruit-rail img { height:300px; } }
@media(max-width:800px) { .search-home .fruit-rail { display:none; } }

/* Near-semicircular fruit panels, with their curved edges facing the search. */
.search-home .fruit-rail { top:18px; width:clamp(155px,18vw,200px); height:330px; overflow:hidden; background:#f5f5f7; }
.search-home .fruit-rail.rail-left { left:-8px; border-radius:0 100% 100% 0 / 0 50% 50% 0; }
.search-home .fruit-rail.rail-right { right:-8px; border-radius:100% 0 0 100% / 50% 0 0 50%; }
.search-home .fruit-rail img { width:100%; height:100%; object-fit:cover; object-position:center; mix-blend-mode:multiply; }
@media(min-width:1500px) { .search-home .fruit-rail { width:210px; height:350px; top:8px; } }
@media(max-width:800px) { .search-home .fruit-rail { display:none; } }

/* Let the fruit silhouettes flow into the white hero without geometric frames. */
.search-home .fruit-rail { background:transparent; overflow:visible; }
.search-home .fruit-rail.rail-left { left:-16px; border-radius:0; transform:rotate(-5deg); }
.search-home .fruit-rail.rail-right { right:-14px; top:26px; border-radius:0; transform:rotate(4deg); }
.search-home .fruit-rail img { object-fit:contain; object-position:center; mask-image:linear-gradient(to bottom,transparent 0%,#000 5%,#000 92%,transparent 100%); -webkit-mask-image:linear-gradient(to bottom,transparent 0%,#000 5%,#000 92%,transparent 100%); }
@media(min-width:1500px) { .search-home .fruit-rail.rail-right { top:20px; } }

/* Larger fruit framing and a readable search panel. */
.search-home .fruit-rail { width:clamp(232.5px,27vw,300px); height:495px; }
@media(min-width:1500px) { .search-home .fruit-rail { width:315px; height:525px; } }
.search-home .search-planner { background:transparent; }
.search-home .search-form { background:#f5f5f7; border:0; padding:30px; color:var(--espresso); box-shadow:0 4px 20px rgba(140,140,150,.14); }
.search-form .search-modes { gap:10px; padding-bottom:24px; }
.search-form .search-mode { padding:14px 16px; background:#fff; border:1px solid #a1a1a6; color:var(--espresso); font-size:18px; }
.search-form .search-mode small { font-size:13px; margin-top:4px; }
.search-form .search-mode:has(input:checked) { background:var(--orange); border-color:var(--orange); color:#fff; box-shadow:none; }
.search-form .search-mode:has(input:checked) small { color:#fff; }
.search-form .search-mode:has(input:focus-visible) { outline-color:var(--orange); }
.search-form .search-controls { background:#fff; border-color:#86868b; padding:10px; border-radius:14px; gap:0; }
.search-form .search-field { padding:10px 16px; color:var(--espresso); }
.search-form .search-field > span:first-child { font-size:14px; color:#646469; }
.search-form .search-field select,.search-form .search-field input[type=number] { font-size:22px; height:40px; min-height:40px; color:var(--espresso); }
.search-form .search-budget b { font-size:22px; }.search-form .search-field .search-budget { height:40px; }
.search-home .search-form .search-submit { background:var(--orange); border:1px solid var(--orange); color:#fff; font-size:20px; font-weight:650; padding:16px 22px; }
.search-home .search-form .search-submit:hover { background:var(--orange-hover); border-color:var(--orange-hover); }
.search-form .search-extras { padding:22px 0; gap:12px; }
.search-form .search-extras .check { font-size:16px; color:var(--espresso); }.search-form .search-extras .link { font-size:15px; color:var(--espresso); text-decoration-color:#86868b; }
.search-form .pantry-count { color:var(--espresso); background:#fff; font-size:12px; padding:4px 9px; }
.search-form .form-details { border-color:#a1a1a6; }
.search-form .form-details > summary { font-size:18px; min-height:62px; color:var(--espresso); }
.search-form .form-details > summary .ic { color:var(--muted); }.search-form .diet-details summary small { color:var(--muted); font-size:13px; }
.search-form #preview-note { color:var(--muted); font-size:13px; line-height:1.6; margin-top:18px; }
.search-form .details-content { background:#fff; color:var(--espresso); padding:22px; border-radius:12px; margin-bottom:18px; }
.search-form .details-content .hint { color:var(--muted); font-size:13px; }.search-form .details-content a { color:var(--orange); }
.search-form .details-content legend,.search-form .details-content .field > span:first-child { font-size:16px; }.search-form .details-content h3 { font-size:19px; }
@media(max-width:1100px) { .search-form .search-mode { font-size:16px; padding:12px; }.search-home .search-form .search-submit { margin-top:10px; } }
@media(max-width:800px) { .search-home .fruit-rail { display:none; } }
@media(max-width:600px) { .search-home .search-form { padding:20px; }.search-form .search-mode { font-size:16px; padding:12px 10px; }.search-form .search-field { padding:9px 10px; }.search-form .search-field select,.search-form .search-field input[type=number] { font-size:20px; }.search-form .search-field > span:first-child { font-size:12px; }.search-form .search-extras .check,.search-form .search-extras .link { font-size:14px; }.search-form .form-details > summary { font-size:16px; }.search-form .details-content { padding:16px; } }

.search-form .search-field { border-color:#a1a1a6; }
.search-form .details-content { border:1px solid #a1a1a6; }
.search-form .pill:has(input:checked) { background:var(--orange); color:#fff; border-color:var(--orange); }

/* Clear expansion affordances for the search preference sections. */
.search-form .form-details > summary > .expand-icon { flex-shrink:0; font-size:21px; line-height:1; font-weight:400; color:var(--muted); }
.search-form .form-details > summary > .expand-icon::before { content:"[+]"; }
.search-form .form-details[open] > summary > .expand-icon::before { content:"[−]"; }

/* Search box rows: soft shadows instead of border lines (owner request 2026-10-24). */
.search-form .search-mode { border-color:transparent; box-shadow:0 4px 20px rgba(140,140,150,.14); }
.search-form .search-mode:has(input:checked) { border-color:var(--orange); box-shadow:0 4px 20px rgba(140,140,150,.14); }
.search-form .search-controls { border-color:transparent; box-shadow:0 4px 20px rgba(140,140,150,.14); }
.search-form .search-field { border-right-color:#e5e5e9; }
/* Crisp, close drop shadow on the search rows (reference: Kayak search bar, 2026-10-24). */
.search-form .search-mode,.search-form .search-mode:has(input:checked),.search-form .search-controls { box-shadow:0 2px 8px rgba(0,0,0,.2); }
.search-home .search-form { box-shadow:0 2px 8px rgba(0,0,0,.2); }
