/* food+ METHOD Shopping List, in Energising Choices' brand: Instrument Serif for headlines and italic emphasis, Poppins for text,
   Mynerve for the handwritten notes. Her five colours only: sage, deep green, dusty pink, cream white and maroon.
   food+ METHOD balance: both greens lead, cream white throughout, small touches of dusty pink. */

@font-face { font-family: "Poppins"; src: url("../assets/fonts/Poppins-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../assets/fonts/Poppins-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../assets/fonts/Poppins-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../assets/fonts/InstrumentSerif-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../assets/fonts/InstrumentSerif-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Mynerve"; src: url("../assets/fonts/Mynerve-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root {
  /* her five colours */
  --lime: #BED079;      /* sage (light green) */
  --green: #344C19;     /* deep green */
  --pink: #DAA69C;      /* dusty pink */
  --cream: #FAF8F0;     /* her white: every background and card. Never pure white. */
  --maroon: #6E1916;
  /* soft tints, mixed only from the five above */
  --sage: color-mix(in srgb, #BED079 34%, #FAF8F0);
  --blush: color-mix(in srgb, #DAA69C 30%, #FAF8F0);
  --line: color-mix(in srgb, #BED079 50%, #FAF8F0);
  --panel: color-mix(in srgb, #FAF8F0 9%, #344C19);
  --muted: color-mix(in srgb, #344C19 84%, #FAF8F0);
  --r: 18px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--green);
  font: 400 16px/1.55 "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
a { color: var(--maroon); }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

#app { max-width: 640px; margin: 0 auto; padding-bottom: calc(110px + var(--safe-b)); }
.tool, .offer, .foot { margin-left: 18px; margin-right: 18px; }

/* ---------- hero ---------- */
.hero {
  background: var(--green); color: var(--cream);
  padding: calc(22px + env(safe-area-inset-top, 0px)) 20px 26px;
  border-radius: 0 0 30px 30px;
}
.hero-logo { height: 58px; width: auto; }
.hero h1 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 3.2rem; line-height: 1.02; margin: 14px 0 8px; color: var(--cream); }
.hero h1 em { font-style: italic; color: var(--lime); }
.hero-lead { font-size: 1.02rem; max-width: 36ch; }
.staples { margin-top: 16px; background: var(--lime); color: var(--green); border-radius: 14px; padding: 12px 14px 14px; }
.staples-h { font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--maroon); margin-bottom: 2px; }
.staples p:not(.staples-h) { font-size: .92rem; font-weight: 600; line-height: 1.4; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 0; }
.stats li { background: var(--panel); border-radius: 14px; padding: 12px 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.stats b { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 1.95rem; line-height: 1; color: var(--lime); }
.stats span { font-size: .74rem; line-height: 1.3; }

/* ---------- why it matters ---------- */
.why { margin: 20px 18px 0; border: 1.5px solid var(--line); border-radius: var(--r); padding: 18px 16px 16px; }
.why h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 1.85rem; line-height: 1.12; margin-bottom: 12px; }
.why h2 em { font-style: italic; }
.why-grid { display: grid; gap: 14px; }
.why h3 { font-size: .98rem; font-weight: 700; line-height: 1.3; margin-bottom: 2px; }
.why-grid p { font-size: .9rem; line-height: 1.5; }
.why-tools { margin-top: 16px; background: var(--sage); border-radius: 14px; padding: 14px 14px 16px; }
.why-hand { font-family: "Mynerve", "Comic Sans MS", cursive; font-size: 1.3rem; line-height: 1.25; margin-bottom: 10px; }
.why-tools .btn { width: 100%; text-align: center; }
.why-method { font-size: .9rem; font-weight: 600; margin-top: 12px; line-height: 1.4; }

/* ---------- offer ---------- */
.offer { margin-top: 16px; background: var(--sage); border-radius: var(--r); padding: 14px 16px 16px; border-top: 5px solid var(--pink); display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; }
.kicker { font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--maroon); margin-bottom: 2px; }
.offer h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 1.9rem; line-height: 1.1; }
.offer-price { font-style: italic; }

/* ---------- eating out: what it adds up to ---------- */
.spend { margin: 34px 18px 0; }
.spend .tool-h em { font-style: italic; }
.sliders { display: flex; flex-direction: column; gap: 22px; margin-bottom: 18px; }
.slider { display: flex; flex-direction: column; gap: 6px; }
.slider label { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-weight: 600; font-size: .92rem; line-height: 1.35; }
.slider output { font-family: "Instrument Serif", Georgia, serif; font-size: 1.9rem; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.slider input[type="range"] { width: 100%; height: 34px; margin: 0; accent-color: var(--green); cursor: pointer; }
.result { background: var(--cream); border: 1.5px solid var(--line); border-radius: var(--r); padding: 18px 16px; display: flex; flex-direction: column; gap: 16px; }
.nums { display: flex; flex-wrap: wrap; gap: 8px 30px; }
.nums div { display: flex; flex-direction: column; gap: 2px; }
.nums b { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 2.9rem; line-height: 1; font-variant-numeric: tabular-nums; }
.nums span { font-size: .85rem; color: var(--muted); }
.scale { display: flex; flex-direction: column; gap: 8px; }
.scale-row { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: center; font-size: .8rem; }
.scale-row .lab { color: var(--muted); line-height: 1.25; }
.scale-bar { height: 30px; border-radius: 8px; display: flex; align-items: center; padding-inline: 10px; min-width: 0; transition: width .3s ease; }
.scale-bar b { font-size: .8rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.scale-bar.you { background: var(--pink); color: var(--maroon); }
.scale-bar.me { background: var(--green); padding-inline: 0; }
.scale-me { display: flex; align-items: center; min-width: 0; }
.scale-val { font-weight: 600; font-size: .8rem; white-space: nowrap; padding-left: 8px; font-variant-numeric: tabular-nums; }
.result .verdict { font-size: 1rem; }

/* ---------- closing ---------- */
.closing { margin: 30px 18px 0; background: var(--green); color: var(--cream); border-radius: var(--r); padding: 20px 18px 22px; }
.closing p { font-size: .92rem; }
.closing p + p { margin-top: 10px; }
.closing .closing-h { font-family: "Instrument Serif", Georgia, serif; font-size: 1.55rem; line-height: 1.2; color: var(--lime); }
.closing .closing-lead { font-weight: 700; font-size: 1.05rem; margin-top: 10px; }
.closing .btn { margin-top: 16px; background: var(--lime); border-color: var(--lime); color: var(--green); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 2px solid var(--green); background: var(--green); color: var(--cream); font-weight: 600; font-size: .98rem; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--green); }
.btn.small { min-height: 44px; padding: 8px 16px; font-size: .88rem; }
.link-btn { background: none; border: 0; padding: 8px 4px; color: var(--maroon); text-decoration: underline; font-weight: 600; font-size: .88rem; min-height: 44px; }

/* ---------- the tool ---------- */
.tool { margin-top: 30px; }
.tool-h { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 2.2rem; line-height: 1.1; }
.how { font-size: .92rem; margin: 4px 0 16px; color: var(--muted); }

.modes { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; padding: 4px; border: 2px solid var(--green); border-radius: 999px; }
.mode { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 6px 4px; border: 0; border-radius: 999px; background: transparent; font-weight: 600; font-size: .84rem; line-height: 1.15; color: var(--green); }
.mode .step { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; border-radius: 50%; border: 1.5px solid currentColor; font-size: .68rem; font-weight: 700; }
.mode[aria-pressed="true"] { background: var(--green); color: var(--cream); }
.mode[aria-pressed="true"] .step { background: var(--lime); border-color: var(--lime); color: var(--green); }

.hint { font-family: "Mynerve", "Comic Sans MS", cursive; font-size: 1.28rem; line-height: 1.3; margin: 14px 2px 2px; }
.hint-sub { font-size: .8rem; color: var(--muted); margin: 0 2px 16px; }

/* ---------- summary ---------- */
.summary { border: 1.5px solid var(--line); border-radius: var(--r); padding: 16px; background: var(--cream); margin-bottom: 18px; }
.sum-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.big { font-family: "Instrument Serif", Georgia, serif; font-size: 3.4rem; line-height: 1; color: var(--green); }
.lab { font-size: .82rem; font-weight: 600; }
.sum-sub { font-size: .82rem; color: var(--muted); max-width: 22ch; }
.sum-note { font-size: .8rem; font-weight: 600; margin-top: 12px; }
.budget { margin-top: 14px; padding-top: 14px; border-top: 1.5px solid var(--line); }
.budget label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--muted); }
.budget-msg { font-size: .86rem; margin-top: 8px; }
.budget-msg:empty { display: none; }
.budget-msg b { color: var(--maroon); }

.money-in { display: flex; align-items: center; gap: 6px; border: 2px solid var(--line); background: var(--cream); border-radius: 12px; padding: 0 12px; max-width: 200px; }
.money-in:focus-within { border-color: var(--green); }
.money-in span { font-weight: 600; }
.money-in input { border: 0; background: transparent; outline: none; width: 100%; min-height: 44px; font-size: 16px; font-weight: 600; }

/* ---------- recommended tab ---------- */
.recs { display: none; margin-bottom: 18px; }
body[data-tab="recs"] .recs { display: block; }
body[data-tab="recs"] .summary, body[data-tab="recs"] .add-top-row, body[data-tab="recs"] #list,
body[data-tab="recs"] .notes, body[data-tab="recs"] .actions, body[data-tab="recs"] .hint-sub,
body[data-tab="recs"] .bar { display: none; }
body[data-tab="recs"] .hint { font-size: 1.7rem; margin-bottom: 4px; }
.recs-sub { font-size: .9rem; font-weight: 600; margin: 2px 0 14px; }
.rec-list { display: grid; gap: 10px; }
.rec { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1.5px solid var(--line); border-radius: var(--r); padding: 14px 16px; background: var(--cream); }
.rec h3 { font-size: 1rem; font-weight: 700; line-height: 1.3; }
.rec p { font-size: .86rem; color: var(--muted); margin-top: 2px; line-height: 1.4; }

/* ---------- product subscription ---------- */
.sub { margin-top: 18px; scroll-margin-top: 12px; }
.sub h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; line-height: 1.1; outline: none; }
.sub h2 span { display: block; font-size: 2.3rem; }
.sub h2 em { display: block; font-style: italic; font-size: 1.6rem; color: var(--green); margin-top: 2px; }
.sub-line .sub-note { font-family: "Mynerve", "Comic Sans MS", cursive; font-size: 1.05rem; line-height: 1.25; color: var(--green); margin-top: 4px; }
.sub-every { font-size: .92rem; font-weight: 600; margin-top: 2px; }
.sub .hand { font-family: "Mynerve", "Comic Sans MS", cursive; font-weight: 400; font-size: 1.15rem; }
.sub-gift { display: inline-block; margin-top: 10px; padding: 6px 14px; border-radius: 999px; background: var(--lime); color: var(--green); font-size: .86rem; font-weight: 700; }
.sub-items { display: grid; gap: 12px; margin-top: 16px; }
.sub-item { border: 1.5px solid var(--line); border-radius: var(--r); padding: 12px; background: var(--cream); }
.sub-photos { display: flex; justify-content: center; align-items: center; gap: 8px; margin-bottom: 10px; }
.sub-photos img { height: 150px; width: auto; max-width: 100%; object-fit: contain; border-radius: 10px; }
.sub-photos.n4 { display: grid; grid-template-columns: repeat(4, 1fr); }
.sub-photos.n4 img { width: 100%; height: 120px; }
.sub-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sub-line h3 { font-size: 1rem; font-weight: 700; line-height: 1.3; }
.sub-line p { font-size: .86rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.sub-line .sub-rrp { flex: none; color: var(--green); font-weight: 600; font-size: .95rem; margin-top: 0; white-space: nowrap; }
.sub-rrp span { font-size: .7rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.sub-total { margin-top: 14px; background: var(--green); color: var(--cream); border-radius: var(--r); padding: 16px 16px 18px; }
.sub-all { font-size: .86rem; }
.sub-all s { text-decoration-thickness: 2px; }
.sub-price { font-family: "Instrument Serif", Georgia, serif; font-size: 3.2rem; line-height: 1.05; color: var(--lime); }
.sub-save { font-size: .92rem; font-weight: 600; }
.sub-how { margin-top: 14px; background: var(--sage); border-radius: var(--r); padding: 16px; }
.sub-how h3 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 1.6rem; line-height: 1.1; margin-bottom: 8px; }
.sub-how ol { padding-left: 1.3rem; list-style: decimal; display: grid; gap: 8px; font-size: .92rem; line-height: 1.45; }
.sub-how li::marker { font-weight: 700; }
.sub-how a:not(.btn) { color: var(--maroon); font-weight: 600; overflow-wrap: anywhere; }
.sub-how .btn { margin-top: 14px; width: 100%; text-align: center; }

/* ---------- sections ---------- */
.sec { margin-bottom: 14px; }
.sec > h2 { font-size: 1rem; font-weight: 400; }
.sec-head { display: grid; grid-template-columns: 1fr auto 20px; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 8px 14px; border: 0; border-radius: 14px; background: var(--lime); color: var(--green); text-align: left; }
.sec-head .t { font-weight: 700; font-size: 1rem; line-height: 1.25; }
.sec-head .m { display: block; font-weight: 400; font-size: .76rem; }
.sec-head .sum { font-weight: 700; font-size: .98rem; }
.sec-head svg { width: 18px; height: 18px; transition: transform .15s; }
.sec-head[aria-expanded="false"] svg { transform: rotate(-90deg); }
.sec-body { padding: 2px 2px 0; }

.rows > li { border-bottom: 1.5px solid var(--line); }
.row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px; }
.check { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 4px 6px 2px; border: 0; background: none; text-align: left; width: 100%; }
.check .name { flex: 1; font-size: .96rem; line-height: 1.35; }
.tick { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--green); display: inline-flex; align-items: center; justify-content: center; background: transparent; }
.tick svg { width: 16px; height: 16px; opacity: 0; }
.check[aria-pressed="true"] .tick { background: var(--green); }
.check[aria-pressed="true"] .tick svg { opacity: 1; }
.pill { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--green); font-size: .82rem; font-weight: 600; }
.pill svg { width: 13px; height: 13px; display: none; }
.check[aria-pressed="true"] .pill { background: var(--green); color: var(--cream); }
.check[aria-pressed="true"] .pill svg { display: block; }
.tag { display: inline-block; margin-left: 6px; padding: 1px 9px; border-radius: 999px; background: var(--blush); color: var(--maroon); font-size: .7rem; font-weight: 700; vertical-align: 2px; white-space: nowrap; }

.price { display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; min-width: 78px; min-height: 48px; padding: 0 4px; border: 0; background: none; font-weight: 600; font-size: .96rem; }
.price svg { width: 13px; height: 13px; color: var(--muted); }
.price .amt { text-decoration: underline dotted; text-underline-offset: 4px; text-decoration-color: var(--muted); }

.row[data-state="got"][data-mode="shop"] .name { text-decoration: line-through; color: var(--muted); }
.row[data-state="got"][data-mode="shop"] .price { color: var(--muted); }
.row[data-state="home"][data-mode="shop"] { opacity: .62; }
.row[data-state="home"][data-mode="shop"] .price .amt { text-decoration: line-through; }
.row[data-state="home"][data-mode="shop"] .check { cursor: default; }

.edit { background: var(--blush); border-radius: 14px; padding: 14px; margin: 0 0 10px; display: grid; gap: 12px; }
.edit label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 5px; }
.edit input[type="text"], .add input[type="text"] { width: 100%; min-height: 44px; border: 2px solid var(--line); background: var(--cream); border-radius: 12px; padding: 8px 12px; font-size: 16px; outline: none; }
.edit input[type="text"]:focus, .add input[type="text"]:focus { border-color: var(--green); }
.edit .money-in input[type="text"], .add .money-in input[type="text"] { border: 0; background: transparent; padding: 0; min-height: 44px; border-radius: 0; }
.edit .money-in, .add .money-in { background: var(--cream); }
.edit-actions { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }

.add-open { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 4px; border: 0; background: none; color: var(--maroon); font-weight: 600; font-size: .9rem; }
.add-open svg { width: 15px; height: 15px; }
.add { background: var(--blush); border-radius: 14px; padding: 14px; margin: 8px 0 4px; display: grid; gap: 12px; }
.add label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 5px; }
.add-err { font-size: .84rem; color: var(--maroon); font-weight: 600; }
.add-err:empty { display: none; }

.item-note { display: block; font-family: "Mynerve", "Comic Sans MS", cursive; font-size: 1.05rem; line-height: 1.25; color: var(--muted); }
.item-note:empty { display: none; }
.row[data-state="home"][data-mode="shop"] .item-note { display: none; }

.add-top-row { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; margin: -4px 0 16px; }
.add-top-hint { font-size: .78rem; color: var(--muted); flex: 1 1 180px; line-height: 1.35; }
.add select { width: 100%; min-height: 44px; border: 2px solid var(--line); background: var(--cream); border-radius: 12px; padding: 8px 12px; font-size: 16px; color: var(--green); }
.add select:focus { border-color: var(--green); outline: none; }

.notes { margin-top: 26px; }
.notes h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 1.7rem; line-height: 1.1; }
.notes .hint-sub { margin: 2px 0 10px; }
.notes textarea { width: 100%; border: 2px solid var(--line); background: var(--cream); border-radius: var(--r); padding: 12px 14px; font-size: 16px; line-height: 1.5; resize: vertical; min-height: 110px; outline: none; }
.notes textarea:focus { border-color: var(--green); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.print-only:empty { display: none !important; }
#print-notes { white-space: pre-wrap; font-weight: 400; }

.gone { margin-top: 22px; }
.gone h3 { font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.gone li { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1.5px solid var(--line); padding: 2px 2px; }
.gone .name { font-size: .92rem; color: var(--muted); }

/* ---------- actions ---------- */
.actions { margin-top: 26px; }
.action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#confirm:not(:empty) { margin-top: 12px; }
.confirm { background: var(--blush); border-radius: 14px; padding: 14px; }
.confirm p { font-size: .9rem; margin-bottom: 10px; }
.confirm .btn { margin-right: 8px; }
.note { font-size: .88rem; margin-top: 12px; font-weight: 600; }
.note:empty { display: none; }
.share-box { width: 100%; margin-top: 10px; border: 2px solid var(--line); background: var(--cream); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.keep { font-size: .8rem; color: var(--muted); margin-top: 12px; }

/* ---------- footer ---------- */
.foot { margin-top: 30px; padding-top: 18px; border-top: 1.5px solid var(--line); font-size: .78rem; color: var(--muted); }
.foot p + p { margin-top: 8px; }
.foot .credit { margin-top: 14px; font-weight: 600; color: var(--green); }

/* ---------- bottom bar ---------- */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; margin: 0 auto; max-width: 640px; background: var(--green); color: var(--cream); border-radius: 20px 20px 0 0; padding: 12px 18px calc(12px + var(--safe-b)); box-shadow: 0 -6px 22px color-mix(in srgb, #344C19 30%, transparent); }
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bar-lab { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pink); }
.bar strong { display: block; font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 1.85rem; line-height: 1.05; }
.bar-sub { display: block; font-size: .76rem; }
.bar .r { text-align: right; }
.bar-btn { flex: none; min-height: 46px; padding: 8px 20px; border-radius: 999px; border: 0; background: var(--lime); color: var(--green); font-weight: 700; font-size: .95rem; }
.bar-prog { height: 8px; border-radius: 999px; background: var(--panel); margin-top: 10px; overflow: hidden; }
.bar-prog i { display: block; height: 100%; background: var(--lime); border-radius: 999px; transition: width .2s; }

.print-only { display: none; }

@media (max-width: 440px) {
  .mode .step { display: none; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 3rem; }
  .stats b { font-size: 1.6rem; }
  .big { font-size: 3rem; }
  .action-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- print: a clean list she can stick on the fridge or take shopping ---------- */
@media print {
  body { background: none; font-size: 11pt; }
  .why, .recs, .staples, .notes, .add-top-row, .offer, .closing, .spend, .modes, .hint, .hint-sub, .how, .tool-h, .summary, .actions, .bar, .stats, .add-open, .add, .edit, .price svg, .sec-head svg, .mode, .pill, .gone .link-btn { display: none !important; }
  #app { max-width: none; padding: 0; }
  .hero { background: none; color: #000; padding: 0 0 6px; border-radius: 0; }
  .hero-logo { height: 40px; background: var(--green); padding: 8px 12px; border-radius: 10px; width: auto; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .hero h1 { color: #000; font-size: 26pt; margin: 8px 0 2px; }
  .hero h1 em { color: #000; }
  .hero-lead { font-size: 10pt; }
  .tool, .foot { margin: 0; }
  .print-only { display: block; font-weight: 700; margin: 6px 0 10px; }
  .sec { break-inside: avoid; margin-bottom: 10px; }
  .sec-head { background: #ddd !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; min-height: 0; padding: 4px 10px; }
  .sec-body[hidden] { display: block !important; }
  .check { min-height: 0; padding: 3px 0; }
  .tick { width: 14px; height: 14px; border-width: 1.5px; border-radius: 3px; border-color: #000; }
  .tick svg { width: 10px; height: 10px; }
  .check[aria-pressed="true"] .tick { background: #000; }
  .price { min-height: 0; font-size: 10pt; }
  .price .amt { text-decoration: none; }
  .rows > li { border-bottom: 1px solid #ccc; }
  .foot { font-size: 8pt; color: #000; border: 0; }
}
