/* ============================================================================
   SIMMER — design system. Warm, food-forward, light.
   8px spacing grid · Fraunces (display) + Inter (UI) · accent used sparingly.
   ========================================================================== */
:root {
  /* surfaces — warm paper / cream */
  --bg: #fbf6ee;
  --bg-2: #f6efe3;
  --surface: #ffffff;
  --surface-2: #fbf7f1;
  --line: #ece1d2;
  --line-2: #e3d6c3;

  /* ink — warm near-black with opacity tiers */
  --ink: #261d14;
  --ink-2: #5c5246;
  --ink-3: #8a7d6d;

  /* brand — appetizing terracotta/rust */
  --accent: #e0602a;
  --accent-deep: #c44d1c;
  --accent-press: #a93f12;
  --accent-wash: #fdeee4;
  --accent-line: #f6cdb4;

  /* semantic */
  --good: #1f7a45;
  --good-ink: #155c33;
  --good-wash: #e7f4ec;
  --good-line: #bfe3cd;
  --warn: #b3771c;
  --warn-wash: #fbf0d8;
  --warn-line: #ecd6a3;
  --bad: #c0432a;
  --bad-wash: #fbe9e4;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-1: 0 1px 2px rgba(74, 48, 22, .06), 0 1px 1px rgba(74, 48, 22, .04);
  --shadow-2: 0 2px 4px rgba(74, 48, 22, .05), 0 12px 28px rgba(74, 48, 22, .08);
  --shadow-pop: 0 10px 30px rgba(196, 77, 28, .16);
  --maxw: 720px;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(1200px 520px at 50% -10%, #fbe7d6 0%, rgba(251, 231, 214, 0) 60%),
    var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
#app { min-height: 100dvh; }
.wrap { max-width: var(--maxw); margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }

h1, h2, h3 { font-family: "Fraunces", Georgia, "Times New Roman", serif; font-weight: 600; }

::selection { background: var(--accent-wash); }

/* ---------- focus (a11y) ---------- */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
button:focus:not(:focus-visible) { outline: none; }

/* ---------- topbar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; position: sticky; top: 0; z-index: 20;
  background: rgba(251, 246, 238, .82); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; cursor: pointer; background: none; border: none; padding: 0; }
.logo {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: linear-gradient(155deg, var(--accent), var(--accent-deep));
  border-radius: 12px; box-shadow: var(--shadow-pop); flex-shrink: 0;
}
.logo svg { width: 26px; height: 26px; display: block; }
.brand-name { font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 20px; letter-spacing: -.3px; line-height: 1; color: var(--ink); }
.brand-tag { color: var(--ink-3); font-size: 12px; margin-top: 3px; }
.top-right { display: flex; align-items: center; gap: 10px; }
.demo-badge {
  font-size: 10.5px; font-weight: 700; letter-spacing: .6px; color: var(--warn);
  border: 1px solid var(--warn-line); background: var(--warn-wash);
  padding: 5px 9px; border-radius: 999px; white-space: nowrap;
}
.demo-badge.live { color: var(--good-ink); border-color: var(--good-line); background: var(--good-wash); }
.demo-badge.mock { color: var(--accent-press); border-color: var(--accent-line); background: var(--accent-wash); }
.demo-badge.snapshot { color: var(--accent-press); border-color: var(--accent-line); background: var(--accent-wash); }

main#view { flex: 1; padding: 28px 20px 40px; animation: rise .32s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.footbar { padding: 18px 20px 28px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12px; text-align: center; line-height: 1.6; }
.footbar b { color: var(--warn); }

/* ---------- buttons ---------- */
.primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  border: none; color: #fff; font-weight: 700; font-size: 15px;
  padding: 13px 20px; border-radius: var(--radius-sm); cursor: pointer;
  font-family: inherit; box-shadow: var(--shadow-pop);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.primary:hover { transform: translateY(-1px); filter: saturate(1.05) brightness(1.03); box-shadow: 0 14px 34px rgba(196, 77, 28, .24); }
.primary:active { transform: translateY(0); box-shadow: var(--shadow-1); background: linear-gradient(180deg, var(--accent-deep), var(--accent-press)); }
.primary.big { font-size: 17px; padding: 16px 30px; border-radius: 14px; }

.ghost {
  background: var(--surface); border: 1.5px solid var(--line-2); color: var(--ink-2);
  padding: 12px 18px; border-radius: var(--radius-sm); cursor: pointer; font-family: inherit; font-weight: 600;
  transition: border-color .12s, color .12s, background .12s;
}
.ghost:hover { border-color: var(--accent); color: var(--accent-deep); background: var(--accent-wash); }

.link { background: none; border: none; color: var(--ink-2); cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 600; padding: 7px 8px; border-radius: 8px; transition: color .12s, background .12s; }
.link:hover { color: var(--accent-deep); background: var(--accent-wash); }

/* ---------- hero / landing ---------- */
.hero { text-align: center; padding: 36px 8px 8px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hero-mark { width: 76px; height: 76px; display: grid; place-items: center; background: linear-gradient(155deg, var(--accent), var(--accent-deep)); border-radius: 22px; box-shadow: var(--shadow-pop); }
.hero-mark svg { width: 46px; height: 46px; }
.hero-emoji { font-size: 50px; line-height: 1; }
.hero h1 { font-size: 42px; font-weight: 600; letter-spacing: -1.2px; margin: 4px 0 0; color: var(--ink); line-height: 1.05; }
.hero h1 .em { color: var(--accent-deep); font-style: italic; }
.hero-sub { color: var(--ink-2); max-width: 480px; line-height: 1.6; margin: 0; font-size: 16.5px; }
.hero-foot { color: var(--ink-3); font-size: 13px; display: flex; align-items: center; gap: 7px; }
.hero-foot::before { content: "⏱"; }
.hero-links { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; justify-content: center; }
.hero .primary.big { margin-top: 6px; }

/* how it works */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; max-width: 560px; margin: 26px auto 0; }
.how-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 14px; text-align: center; box-shadow: var(--shadow-1); }
.how-step .n { width: 26px; height: 26px; margin: 0 auto 9px; display: grid; place-items: center; background: var(--accent-wash); color: var(--accent-deep); border: 1px solid var(--accent-line); border-radius: 999px; font-weight: 800; font-size: 13px; }
.how-step .t { font-weight: 700; font-size: 14px; margin-bottom: 4px; color: var(--ink); }
.how-step .d { font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.trust { display: flex; gap: 8px 18px; flex-wrap: wrap; justify-content: center; margin-top: 22px; color: var(--ink-2); font-size: 13px; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust span::before { content: "✓"; color: var(--good); font-weight: 800; }

/* ---------- wizard ---------- */
.wiz { max-width: 540px; margin: 0 auto; }
.wiz-top { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.prog { flex: 1; height: 8px; background: var(--bg-2); border-radius: 999px; overflow: hidden; box-shadow: inset 0 1px 2px rgba(74,48,22,.06); }
.bar { height: 100%; background: linear-gradient(90deg, var(--accent-deep), var(--accent)); border-radius: 999px; transition: width .35s cubic-bezier(.4, 0, .2, 1); }
.stepc { color: var(--ink-3); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 38px; text-align: right; }
.wiz-q { font-size: 27px; font-weight: 600; letter-spacing: -.5px; margin: 0 0 8px; line-height: 1.15; color: var(--ink); }
.wiz-sub { color: var(--ink-2); margin: 0 0 20px; line-height: 1.55; }
.step-body { margin: 20px 0; }
.wiz-err { color: var(--bad); font-size: 14px; min-height: 20px; font-weight: 600; }
.wiz-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.wiz-actions .primary { min-width: 140px; }

.winput {
  width: 100%; background: var(--surface); border: 1.5px solid var(--line-2); color: var(--ink);
  padding: 14px 16px; border-radius: var(--radius-sm); font-size: 16px; outline: none; font-family: inherit;
  transition: border-color .12s, box-shadow .12s;
}
.winput::placeholder { color: var(--ink-3); }
.winput:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash); }

.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opts.small { gap: 8px; }
.opt {
  background: var(--surface); color: var(--ink); border: 1.5px solid var(--line-2);
  padding: 13px 18px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: inherit; box-shadow: var(--shadow-1);
  transition: border-color .12s, background .12s, color .12s, transform .1s;
}
.opt:hover { border-color: var(--accent); transform: translateY(-1px); }
.opt:active { transform: translateY(0); }
.opt.sel { background: var(--accent-wash); border-color: var(--accent); color: var(--accent-press); box-shadow: 0 0 0 1px var(--accent) inset; }
.opt.other { border-style: dashed; color: var(--ink-3); box-shadow: none; }
.opt.add { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: none; }
.opts.small .opt { padding: 9px 14px; font-size: 14px; }
.opt.sm { padding: 8px 13px; font-size: 13px; }

.equip-label { font-size: 13px; color: var(--ink); font-weight: 700; margin: 8px 0 9px; }
.equip-label .muted { font-weight: 400; }
.showmore { display: inline-block; margin: 14px 0; color: var(--accent-deep); font-weight: 700; }
#moreWrap { margin-top: 4px; }
.other-input { display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; }
.other-input input {
  background: var(--surface); border: 1.5px solid var(--accent); color: var(--ink);
  padding: 11px 14px; border-radius: var(--radius-sm); font-size: 15px; outline: none; font-family: inherit; min-width: 160px;
}

/* ---------- settings ---------- */
.settings { max-width: 580px; margin: 0 auto; }
.settings .wiz-top { margin-bottom: 22px; justify-content: space-between; }
.settings .wiz-q { font-size: 22px; }
.set-grp { margin-bottom: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px; box-shadow: var(--shadow-1); }
.set-grp label { display: block; font-size: 13px; color: var(--ink-2); font-weight: 700; margin-bottom: 10px; }

/* ---------- map (Leaflet / OSM) ---------- */
.map-wrap { height: 300px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-1); margin: 10px 0 14px; }
.leaflet-container { font-family: inherit; background: var(--bg-2); }
.leaflet-popup-content { font-family: inherit; font-size: 13px; line-height: 1.4; }
.leaflet-popup-content b { color: var(--ink); }
.store-list { display: flex; flex-direction: column; gap: 8px; }
.store-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; box-shadow: var(--shadow-1); }
.store-card .sc-name { font-weight: 700; color: var(--ink); }
.store-card .sc-addr { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.store-card .sc-dist { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.store-card .sc-km { font-weight: 800; color: var(--accent-deep); }
.store-card .sc-mins { font-size: 12px; color: var(--ink-3); }
.store-card.soft { border-color: var(--warn-line); background: var(--warn-wash); }

/* ---------- mode selector (cheapest / easy / tasty) ---------- */
.mode-list { display: flex; flex-direction: column; gap: 10px; }
.mode-card { text-align: left; width: 100%; background: var(--surface); border: 1.5px solid var(--line-2); border-radius: var(--radius); padding: 14px 16px; cursor: pointer; font-family: inherit; box-shadow: var(--shadow-1); transition: border-color .12s, background .12s, transform .1s; }
.mode-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.mode-card.sel { background: var(--accent-wash); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.mc-t { font-weight: 700; font-size: 15.5px; color: var(--ink); }
.mc-d { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; line-height: 1.45; }
.mode-chip { font-size: 11px; font-weight: 700; background: var(--accent-wash); color: var(--accent-press); border: 1px solid var(--accent-line); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }

/* per-serve cost flag */
.meal-meta .serve { font-weight: 700; color: var(--ink); }
.meal-meta .serve.good { color: var(--good-ink); }
.meal-meta .serve.over { color: var(--bad); }
.cheaper-panel { border-top: 1px dashed var(--accent-line) !important; }
.cheaper-head { font-weight: 700; font-size: 13px; color: var(--accent-press); margin-bottom: 8px; }
.cheaper-panel .tips-list, .cheaper-panel .tip-card { margin-bottom: 8px; }

/* ---------- craving "donate or create" prompt ---------- */
.craving-ask { background: var(--accent-wash); border: 1px solid var(--accent-line); border-radius: var(--radius); padding: 16px 18px; margin: 16px 0; box-shadow: var(--shadow-1); }
.ca-title { font-weight: 700; color: var(--ink); font-size: 15px; }
.ca-body { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; margin: 6px 0 12px; }
.ca-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ca-actions .primary, .ca-actions .ghost { flex: 1; min-width: 150px; }

/* ---------- frugal tips ---------- */
.tips-list { display: flex; flex-direction: column; gap: 10px; }
.tip-card { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 12px 14px; box-shadow: var(--shadow-1); }
.tip-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.tip-title { font-weight: 700; color: var(--ink); font-size: 14.5px; }
.tip-save { font-weight: 800; color: var(--good-ink); background: var(--good-wash); border: 1px solid var(--good-line); padding: 2px 8px; border-radius: 999px; font-size: 12px; white-space: nowrap; }
.tip-body { font-size: 13px; color: var(--ink-2); line-height: 1.5; margin-top: 5px; }

/* ---------- add-meal form ---------- */
#m-ings { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.ing-row { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 4px; }
.ing-qty { width: 78px; background: var(--surface); border: 1.5px solid var(--line-2); color: var(--ink); border-radius: 9px; padding: 7px 9px; font-family: inherit; font-size: 13px; outline: none; }
.ing-qty:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.addmeal textarea.winput { resize: vertical; line-height: 1.5; }
.addmeal-link { color: var(--accent-press) !important; text-decoration: underline; }

/* ---------- results ---------- */
.results-wrap { max-width: 640px; margin: 0 auto; }
.r-head { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow-2); }
.r-title { font-weight: 700; font-size: 15px; color: var(--ink-2); margin-bottom: 12px; }
.r-hero { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.r-hero .big { font-family: "Fraunces", Georgia, serif; font-size: 40px; font-weight: 600; color: var(--accent-deep); letter-spacing: -1px; line-height: 1; }
.r-hero .saved-word { color: var(--ink-2); font-size: 15px; font-weight: 600; }
.r-hero .pct { background: var(--good-wash); color: var(--good-ink); padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; border: 1px solid var(--good-line); }

.r-budget { font-size: 14px; padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; line-height: 1.5; }
.r-budget.ok { background: var(--good-wash); border: 1px solid var(--good-line); color: var(--good-ink); }
.r-budget.warn { background: var(--warn-wash); border: 1px solid var(--warn-line); color: #8a5a13; }

.r-stores { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 8px; }
.store-pill { font-size: 12px; background: var(--surface); border: 1px solid var(--line-2); padding: 6px 11px; border-radius: 999px; color: var(--ink-2); font-weight: 600; }
.store-pill.soft { border-color: var(--warn-line); background: var(--warn-wash); color: #8a5a13; }

.r-note { font-size: 13px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); padding: 11px 14px; border-radius: var(--radius-sm); margin: 9px 0; line-height: 1.5; box-shadow: var(--shadow-1); }
.r-note.pricehist { border-color: var(--good-line); background: var(--good-wash); color: var(--good-ink); }
.r-note.pantry-note { border-color: var(--accent-line); background: var(--accent-wash); color: var(--accent-press); }

.r-sec { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 19px; margin: 26px 0 12px; color: var(--ink); letter-spacing: -.3px; }
.r-sec .muted { font-family: Inter, sans-serif; font-size: 13px; }
.muted { color: var(--ink-3); font-weight: 400; }

.days { display: flex; flex-direction: column; gap: 18px; }
.day-block { }
.day-h { font-weight: 800; font-size: 12px; color: var(--accent-deep); margin-bottom: 9px; letter-spacing: .6px; text-transform: uppercase; }
.day-block .meal { margin-bottom: 10px; }
.mealtype { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--ink-3); background: var(--bg-2); border: 1px solid var(--line); padding: 2px 8px; border-radius: 6px; margin-right: 7px; vertical-align: middle; }
.meal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 16px; box-shadow: var(--shadow-1); transition: box-shadow .15s, border-color .15s; }
.meal:hover { box-shadow: var(--shadow-2); border-color: var(--line-2); }
.meal-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.meal-main { min-width: 0; }
.meal-main > b { font-size: 16px; color: var(--ink); }
.tag { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-left: 4px; vertical-align: middle; }
.tag.vegetarian { background: #eaf4e2; color: #44691f; }
.tag.vegan { background: #e2f4ec; color: #1f6b4d; }
.tag.meat { display: none; }
.meal-meta { color: var(--ink-3); font-size: 12.5px; margin-top: 6px; }
.meal-blurb { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; line-height: 1.45; }
.meal-btns { display: flex; flex-direction: column; gap: 7px; flex-shrink: 0; }
.mini { background: var(--accent-wash); border: 1px solid var(--accent-line); color: var(--accent-press); font-weight: 700; font-size: 12px; padding: 8px 12px; border-radius: 9px; cursor: pointer; font-family: inherit; white-space: nowrap; transition: background .12s, transform .1s; }
.mini:hover { background: #fbe0cf; transform: translateY(-1px); }
.mini.ghost { background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-3); }
.mini.ghost:hover { color: var(--accent-deep); border-color: var(--accent); background: var(--accent-wash); }
.recipe { margin-top: 13px; padding-top: 13px; border-top: 1px dashed var(--line-2); animation: rise .2s ease both; }
.rec-ing { font-size: 13px; color: var(--ink-2); margin-bottom: 8px; line-height: 1.6; }
.rec-ing .pantry { display: block; color: var(--ink-3); font-size: 12px; margin-top: 4px; }
.recipe ol { margin: 0; padding-left: 20px; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.recipe ol li { margin-bottom: 3px; }

.store-group { margin-bottom: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px 8px; box-shadow: var(--shadow-1); }
.sg-head { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; padding: 12px 0 10px; border-bottom: 1.5px solid var(--line); }
.sg-sub { margin-left: auto; color: var(--accent-deep); font-variant-numeric: tabular-nums; }
.li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.li:last-child { border-bottom: none; }
.li-name { color: var(--ink); }
.li-price { white-space: nowrap; font-variant-numeric: tabular-nums; }
.li-price s { color: var(--ink-3); font-size: 12px; margin-right: 5px; }
.li-price b { color: var(--ink); }
.flag { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 6px; margin-left: 5px; white-space: nowrap; }
.flag.good { background: var(--good-wash); color: var(--good-ink); border: 1px solid var(--good-line); }
.flag.bad { background: var(--bad-wash); color: var(--bad); border: 1px solid #f0c4b8; }

.r-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.r-actions .primary { flex: 1; min-width: 220px; }
.r-lifetime { text-align: center; color: var(--ink-3); font-size: 13px; margin-top: 16px; }
.r-lifetime b { color: var(--accent-deep); }
.r-saved { background: var(--good-wash); border: 1px solid var(--good-line); color: var(--good-ink); padding: 16px; border-radius: var(--radius); margin-top: 24px; font-size: 14.5px; text-align: center; line-height: 1.5; box-shadow: var(--shadow-1); }
.r-saved b { color: var(--good-ink); }

.empty { text-align: center; padding: 44px 12px; display: flex; flex-direction: column; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.empty h2 { font-size: 24px; margin: 0; }
.empty p { color: var(--ink-2); max-width: 440px; line-height: 1.55; margin: 0; }

/* ---------- generating loader ---------- */
.loader { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 70px 16px; text-align: center; min-height: 50vh; }
.pot { width: 86px; height: 86px; display: grid; place-items: center; background: linear-gradient(155deg, var(--accent), var(--accent-deep)); border-radius: 26px; box-shadow: var(--shadow-pop); }
.pot svg { width: 52px; height: 52px; }
.pot .steam { transform-origin: center; animation: steam 1.5s ease-in-out infinite; }
.pot .steam.b { animation-delay: .25s; }
.pot .steam.c { animation-delay: .5s; }
@keyframes steam { 0%, 100% { opacity: .35; transform: translateY(2px); } 50% { opacity: 1; transform: translateY(-2px); } }
.loader h2 { font-size: 23px; margin: 0; }
.loader p { color: var(--ink-2); margin: 0; max-width: 360px; }
.loader .dots { display: inline-block; width: 1.5em; text-align: left; }
.loader .dots::after { content: ""; animation: dots 1.2s steps(4, end) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }

/* ---------- responsive ---------- */
@media (max-width: 560px) {
  main#view { padding: 22px 16px 36px; }
  .hero h1 { font-size: 33px; }
  .hero-sub { font-size: 15.5px; }
  .wiz-q { font-size: 23px; }
  .how { grid-template-columns: 1fr; max-width: 360px; }
  .r-hero .big { font-size: 34px; }
  .r-head { padding: 16px; }
  .r-actions .primary { min-width: 100%; }
  .meal-btns { flex-direction: row; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- print (save / share the plan) ---------- */
@media print {
  .topbar, .footbar, .meal-btns, .r-actions, .demo-badge, .hero-links { display: none !important; }
  body { background: #fff; }
  .meal, .store-group, .r-head, .r-note { box-shadow: none; border-color: #ddd; break-inside: avoid; }
  .recipe[hidden] { display: block !important; }
}

/* anchor variant of .link (About page + footer link) — match button .link, no underline */
a.link { text-decoration: none; }
