/* CartLean: fresh grocery green, receipt paper, carrot accent. Mobile-first (390px), scales up at 860px. */
:root {
  --brand: #16a34a; --brand-ink: #0f7a37; --brand-deep: #0c5c2a; --brand-soft: #e6f5eb; --brand-softer: #f1faf3;
  --accent: #ff7a1a; --accent-soft: #fff0e3; --berry: #e2466b;
  --ink: #142019; --ink-2: #33433a; --muted: #5b6c61; --line: #e2e8e0; --line-2: #eef2ec;
  --bg: #f6f7f2; --card: #ffffff; --paper: #fffdf5;
  --radius: 18px; --radius-sm: 12px; --shadow: 0 1px 2px rgba(20, 32, 25, .05), 0 10px 30px -12px rgba(20, 32, 25, .18);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --core-brand: #16a34a; --core-ink: #142019; --core-muted: #5b6c61; --core-line: #e2e8e0; --core-radius: 20px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--brand-ink); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.025em; margin: 0 0 .45em; color: var(--ink); }
h1 { font-size: clamp(1.95rem, 8.4vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 6.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 750; letter-spacing: -.01em; }
p { margin: 0 0 1em; color: var(--ink-2); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 640px; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .tiny { font-size: .78rem; } .center { text-align: center; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.hl { color: var(--brand); } .hl-accent { color: var(--accent); }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 8px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(150%) blur(10px); -webkit-backdrop-filter: saturate(150%) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.18rem; letter-spacing: -.03em; }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo b { color: var(--brand); font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.link { color: var(--ink-2); text-decoration: none; font-weight: 650; font-size: .95rem; padding: 10px 10px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; }
.link:hover { background: var(--line-2); }

/* ---------- buttons ---------- */
.btn { appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 750; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 14px; text-decoration: none; transition: transform .12s ease, filter .15s ease, box-shadow .15s ease; -webkit-user-select: none; user-select: none; }
.btn:active { transform: scale(.975); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px -10px var(--brand), inset 0 -2px 0 rgba(0, 0, 0, .12); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: var(--card); color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: #cfd8cc; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: .92rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-xl { min-height: 58px; font-size: 1.12rem; border-radius: 16px; }
.btn .arrow { transition: transform .15s; } .btn:hover .arrow { transform: translateX(3px); }
.btn[disabled] { opacity: .6; cursor: wait; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .8s linear infinite; display: inline-block; }
.spinner.dark { border-color: var(--line); border-top-color: var(--brand); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- chips / pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .84rem; font-weight: 650; color: var(--ink-2); }
.pill.green { background: var(--brand-soft); border-color: transparent; color: var(--brand-ink); }
.pill.orange { background: var(--accent-soft); border-color: transparent; color: #b4520c; }
.pchip { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: .8rem; color: var(--brand-ink); background: var(--brand-soft); border-radius: 999px; padding: 4px 9px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pchip.ghost { background: var(--line-2); color: var(--ink-2); font-weight: 700; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-ink); }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 18px; }

/* receipt: paper, dashed rules, zig-zag bottom edge */
.receipt { position: relative; background: var(--paper); border: 1px solid #ece6d2; border-bottom: 0; border-radius: 16px 16px 0 0; padding: 16px 16px 14px; box-shadow: 0 10px 30px -14px rgba(60, 50, 10, .25); }
.receipt::after { content: ''; position: absolute; left: -1px; right: -1px; bottom: -10px; height: 10px; background: linear-gradient(-45deg, transparent 6px, var(--paper) 0) 0 0 / 12px 10px repeat-x, linear-gradient(45deg, transparent 6px, var(--paper) 0) 0 0 / 12px 10px repeat-x; filter: drop-shadow(0 1px 0 #ece6d2); }
.receipt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-bottom: 8px; border-bottom: 1.5px dashed #d9d2bb; margin-bottom: 4px; }
.receipt-head b { font-weight: 800; }
.rline { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #e8e1cb; font-size: .93rem; }
.rline .nm { color: var(--ink); font-weight: 600; min-width: 0; }
.rline .nm small { display: block; color: var(--muted); font-weight: 500; font-size: .78rem; }
.rline .pr { font-family: var(--mono); font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rtotal { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; font-weight: 800; font-size: 1.05rem; }
.rtotal .pr { font-family: var(--mono); font-size: 1.2rem; }
.rnote { font-size: .76rem; color: var(--muted); margin: 6px 0 0; }

/* protein ring */
.ring { position: relative; width: 104px; height: 104px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .trk { stroke: var(--brand-soft); }
.ring .val { stroke: var(--brand); transition: stroke-dashoffset 1.2s cubic-bezier(.2, .8, .2, 1); }
.ring .lbl { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .lbl b { font-size: 1.55rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.ring .lbl small { font-size: .62rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-top: 3px; }

/* meal rows (teaser + demo) */
.meal { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.meal:last-child { border-bottom: 0; }
.meal .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-softer); display: grid; place-items: center; font-size: 1.3rem; flex: none; }
.meal .tx { flex: 1; min-width: 0; }
.meal .tx b { display: block; font-weight: 700; line-height: 1.3; }
.meal .tx small { display: block; color: var(--muted); font-size: .8rem; }
.meal .tx small::first-letter { text-transform: uppercase; }

/* ---------- landing ---------- */
.hero { padding: 18px 0 28px; }
.hero-grid { display: grid; gap: 26px; }
.hero-grid > *, .week > *, .feats > *, .steps > *, .footer-grid > *, .sumrow > *, .who > * { min-width: 0; }
.hook { max-width: 100%; }
.hook { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px 6px 6px; font-size: .84rem; font-weight: 650; color: var(--ink-2); box-shadow: var(--shadow); }
.hook i { font-style: normal; background: var(--accent-soft); color: #b4520c; padding: 3px 9px; border-radius: 999px; font-weight: 800; font-size: .78rem; }
.hero h1 { margin: 14px 0 12px; }
.hero h1 .num { color: var(--brand); white-space: nowrap; }
.hero h1 .store { position: relative; white-space: nowrap; }
.hero h1 .store::after { content: ''; position: absolute; left: 0; right: 0; bottom: .06em; height: .2em; background: color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 4px; z-index: -1; }
.hero .lead { font-size: 1.06rem; color: var(--ink-2); margin-bottom: 18px; }
.hero-cta { display: grid; gap: 10px; }
.hero-micro { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .84rem; color: var(--muted); font-weight: 600; }
.hero-micro span::before { content: '\2713'; color: var(--brand); font-weight: 800; margin-right: 5px; }
/* Round 9: the real receipt and protein per dollar on the first screen */
.proof { margin-top: 14px; padding: 10px 12px; border-radius: 14px; background: #fffdf5; border: 1.5px dashed #d9d2bb; display: grid; gap: 6px; font-size: .86rem; line-height: 1.35; color: var(--ink-2); max-width: 520px; }
.proof p { margin: 0; display: flex; gap: 8px; align-items: flex-start; }
.proof .pi { flex: none; }
.proof b { color: var(--ink); font-weight: 750; }
.demo { position: relative; }
.demo-phone { background: var(--card); border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 30px 60px -28px rgba(20, 40, 25, .45); padding: 14px; max-width: 400px; margin: 0 auto; }
.demo-top { display: flex; align-items: center; gap: 12px; padding: 4px 2px 12px; }
.demo-top .meta { flex: 1; min-width: 0; }
.demo-top .meta b { display: block; font-size: 1.02rem; }
.demo-top .meta span { font-size: .8rem; color: var(--muted); }
.demo-days { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; }
.demo-days::-webkit-scrollbar { display: none; }
.dchip { flex: none; border: 1.5px solid var(--line); background: var(--card); border-radius: 12px; padding: 6px 10px; text-align: center; font-size: .78rem; font-weight: 700; color: var(--ink-2); cursor: pointer; min-width: 52px; min-height: 44px; font-family: inherit; }
.dchip small { display: block; font-size: .7rem; color: var(--brand-ink); font-weight: 800; }
.dchip.on { border-color: var(--brand); background: var(--brand-softer); color: var(--ink); }
.demo .receipt { margin: 12px 4px 14px; }
.demo-tag { position: absolute; top: -10px; right: 16px; background: var(--ink); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; border-radius: 999px; padding: 5px 10px; }
.stores-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 6px 0 4px; }
.store-pill { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-weight: 750; font-size: .9rem; color: var(--ink-2); text-decoration: none; }
.store-pill:hover { border-color: var(--brand); color: var(--brand-ink); }
.sec { padding: 48px 0; }
.sec.tint { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 680px; margin: 0 auto 26px; text-align: center; }
.eyebrow { display: inline-block; font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 10px; }
.steps { display: grid; gap: 12px; counter-reset: s; }
.step { display: flex; gap: 14px; align-items: flex-start; padding: 18px; }
.step::before { counter-increment: s; content: counter(s); flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; }
.step p { margin: 4px 0 0; font-size: .95rem; }
.feats { display: grid; gap: 12px; }
.feat { padding: 20px; }
.feat .fi { width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 12px; }
.feat p { margin: 0; font-size: .95rem; }
.week { display: grid; gap: 16px; }
.week-meals .meal .pchip { flex: none; }
.compare { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; font-size: .92rem; }
.compare th, .compare td { padding: 13px 12px; border-bottom: 1px solid var(--line-2); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; font-weight: 650; }
.compare thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.compare .us { background: var(--brand-softer); color: var(--brand-ink); font-weight: 800; }
.compare tr:last-child td { border-bottom: 0; }
.yes { color: var(--brand); font-weight: 800; } .no { color: #a3ada5; }
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.who .card { padding: 16px; }
.who .card b { display: block; margin: 6px 0 2px; }
.who .card p { margin: 0; font-size: .86rem; }
.who .em { font-size: 1.6rem; }
.price-card { max-width: 460px; margin: 0 auto; padding: 24px 20px; text-align: center; }
.price-card .big { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin: 6px 0; }
.faq { display: grid; gap: 8px; max-width: 720px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: 16px 28px 16px 0; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 12px; font-size: 1.4rem; color: var(--brand); font-weight: 600; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; font-size: .95rem; }
.cta-band { background: var(--brand-deep); color: #fff; border-radius: 24px; padding: 30px 20px; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfe9d7; }
.cta-band .btn-primary { background: #fff; color: var(--brand-deep); box-shadow: none; }
.footer { padding: 36px 0 48px; font-size: .9rem; color: var(--muted); }
.footer-grid { display: grid; gap: 22px; grid-template-columns: 1fr 1fr; }
.footer h4 { margin: 0 0 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.footer a { display: block; color: var(--muted); text-decoration: none; padding: 5px 0; }
.footer a:hover { color: var(--brand-ink); }
.footer .legal { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .8rem; }

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
[data-reveal].in { opacity: 1; transform: none; }
.fade-in { animation: fadeIn .5s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.85); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* ---------- quiz ---------- */
.quiz { max-width: 560px; margin: 0 auto; padding: 4px 16px 120px; min-height: calc(100vh - 60px); overflow-x: hidden; overflow-x: clip; } /* the 22px slide-in must never make the page pan sideways on iOS */
.qbar { display: flex; align-items: center; gap: 10px; padding: 8px 0 18px; }
.qback { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; cursor: pointer; flex: none; color: var(--ink); }
.qback[hidden] { visibility: hidden; display: grid; }
.qprog { flex: 1; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.qprog i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 999px; transition: width .45s cubic-bezier(.2, .8, .2, 1); }
.qpromise { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -8px 0 14px; font-size: .78rem; }
.qpromise[hidden] { display: none; }
.qpromise .qp-l { color: var(--muted); font-weight: 700; margin-right: 2px; }
.qpromise .qp-c { background: var(--brand-softer); color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; font-weight: 700; animation: pop .35s cubic-bezier(.2, 1.4, .4, 1) both; }
.pw-inapp { margin: 12px auto 0; max-width: 440px; padding: 10px 12px; border-radius: 12px; background: var(--brand-softer); font-size: .84rem; color: var(--ink-2); line-height: 1.45; }
.qcount { font-size: .8rem; font-weight: 700; color: var(--muted); min-width: 34px; text-align: right; font-variant-numeric: tabular-nums; }
.qstep { animation: qin .35s cubic-bezier(.2, .8, .2, 1) both; }
.qstep.back { animation-name: qinb; }
@keyframes qin { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes qinb { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
.qtitle { font-size: clamp(1.5rem, 6.6vw, 2rem); margin: 4px 0 6px; }
.qsub { color: var(--muted); margin: 0 0 18px; }
.opts { display: grid; gap: 10px; }
.opts.two { grid-template-columns: 1fr 1fr; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 14px; min-height: 60px; font: inherit; font-weight: 650; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s, transform .1s, box-shadow .15s; position: relative; }
.opt:hover { border-color: #c9d6c6; }
.opt:active { transform: scale(.985); }
.opt .oi { width: 40px; height: 40px; border-radius: 12px; background: var(--line-2); display: grid; place-items: center; font-size: 1.35rem; flex: none; }
.opt .ot { flex: 1; min-width: 0; line-height: 1.3; }
.opt .ot small { display: block; color: var(--muted); font-weight: 500; font-size: .82rem; margin-top: 2px; }
.opt .ck { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #cfd8cc; flex: none; display: grid; place-items: center; }
.opt.multi .ck { border-radius: 7px; }
.opt.sel { border-color: var(--brand); background: var(--brand-softer); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent); }
.opt.sel .ck { background: var(--brand); border-color: var(--brand); }
.opt.sel .ck::after { content: ''; width: 10px; height: 6px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.opt .tag { position: absolute; top: -9px; right: 12px; background: var(--accent); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.opts.two .opt { flex-direction: column; align-items: flex-start; gap: 8px; min-height: 96px; }
.opts.two .opt .ck { position: absolute; top: 12px; right: 12px; }
.seg { display: inline-flex; background: var(--line-2); border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 14px; }
.seg button { border: 0; background: transparent; font: inherit; font-weight: 700; font-size: .9rem; padding: 8px 14px; border-radius: 9px; cursor: pointer; color: var(--muted); min-height: 40px; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.qfoot { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 70%, transparent); z-index: 20; }
.qfoot .btn { max-width: 528px; width: 100%; margin: 0 auto; display: flex; }
.qnote { scroll-margin-bottom: 110px; width: 100%; margin-top: 12px; font: inherit; font-size: 16px; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); min-height: 50px; }
.qnote:focus { outline: none; border-color: var(--brand); }
.insight { text-align: center; padding-top: 18px; }
.insight .em { width: 84px; height: 84px; border-radius: 26px; background: var(--brand-soft); display: grid; place-items: center; font-size: 2.6rem; margin: 0 auto 16px; animation: pop .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.insight .card { text-align: left; margin-top: 18px; }
.cheapest { display: grid; gap: 0; }
.cheapest .rline { font-size: .92rem; }
.loader { text-align: center; padding-top: 22px; }
.loader .ring { width: 132px; height: 132px; margin: 0 auto 16px; }
.checks { list-style: none; padding: 0; margin: 20px auto 0; max-width: 360px; text-align: left; display: grid; gap: 12px; }
.checks li { display: flex; align-items: center; gap: 12px; font-weight: 650; color: var(--muted); transition: color .3s; }
.checks li .cb { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; transition: all .3s; }
.checks li.on { color: var(--ink); }
.checks li.on .cb { background: var(--brand); border-color: var(--brand); }
.checks li.on .cb::after { content: ''; width: 10px; height: 6px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.checks li.now .cb { border-color: var(--brand); border-top-color: transparent; animation: spin .8s linear infinite; }
.tipbox { margin: 26px auto 0; max-width: 400px; padding: 14px 16px; font-size: .9rem; min-height: 72px; }
/* Round 6: background-job build (real stage, time left, "you can leave this page") */
.loader #bstage { min-height: 2.9em; margin-bottom: 2px; }
.beta { min-height: 1.3em; margin: 0; font-size: .82rem; color: var(--brand-ink, var(--brand)); letter-spacing: .02em; }
.bleave { margin: 18px auto 0; max-width: 400px; padding: 12px 14px; border-radius: 14px; background: var(--brand-soft); color: var(--ink); font-size: .9rem; line-height: 1.45; }
.swapnote { margin: 8px 0 0; font-size: .82rem; color: var(--muted); }
.mcard.busy .mbody .btn, .mcard.busy .mhead { pointer-events: none; }
.weekjob { max-width: 420px; margin: 14px auto 0; text-align: left; }

/* ---------- paywall / teaser ---------- */
.pw { max-width: 600px; margin: 0 auto; padding: 6px 16px 120px; }
.pw h1 { font-size: clamp(1.75rem, 7.6vw, 2.5rem); margin: 12px 0 10px; }
.echo { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 10px; text-align: center; }
.stat b { display: block; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { font-size: .72rem; color: var(--muted); font-weight: 650; }
.stat.ok b { color: var(--brand-ink); }
.dayhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.lockwrap { position: relative; }
.blurred { filter: blur(5px); user-select: none; pointer-events: none; }
.lockline { height: 12px; border-radius: 6px; background: #e6e0cc; display: inline-block; }
.lockcover { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.lockcover .lk { background: var(--ink); color: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 750; font-size: .86rem; display: inline-flex; align-items: center; gap: 8px; box-shadow: var(--shadow); }
.minidays { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.miniday { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.miniday b { font-size: .86rem; }
.miniday .lockline { width: 100%; height: 8px; margin-top: 7px; display: block; background: var(--line); }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 75%, transparent); transition: transform .25s ease, opacity .25s; }
.sticky-cta.off { transform: translateY(110%); opacity: 0; pointer-events: none; }
.sticky-cta .btn { max-width: 568px; width: 100%; margin: 0 auto; display: flex; }
.sticky-cta .fine { text-align: center; font-size: .76rem; color: var(--muted); margin: 6px 0 0; }
.vidbox { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin: 0 0 14px; padding: 10px 12px; border-radius: 14px; background: var(--brand-softer); border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--line)); font-size: .9rem; color: var(--ink-2); text-align: left; }
.vidbox b { color: var(--brand-ink); }
.vidbox .core-link { min-height: 44px; padding: 2px 0; font-size: .85rem; color: var(--brand-ink); background: none; border: 0; font-weight: 700; text-decoration: underline; cursor: pointer; font-family: inherit; }
.vidbox.own { background: var(--card); }
/* Round 5: unlocked day 1 recipe, value line, calm checkout-canceled note, signed-in header */
.meal.meal-open { border-bottom: 0; padding-bottom: 6px; }
.t-recipe { position: relative; background: var(--brand-softer); border-radius: 14px; padding: 12px 14px 4px; margin: 0 0 8px; }
.t-recipe .ings li { border-bottom-color: color-mix(in srgb, var(--brand) 18%, transparent); }
.t-free { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-ink); margin: 0 0 4px; }
.pvalue { max-width: 440px; margin: 0 auto 14px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: .88rem; line-height: 1.45; color: var(--ink-2); }
.pvalue b { display: block; color: var(--ink); font-size: .98rem; margin: 0 0 2px; }
.pw-cancel { max-width: 440px; margin: 0 auto 14px; padding: 12px 14px; border-radius: 14px; background: var(--brand-softer); border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line)); font-size: .9rem; line-height: 1.45; color: var(--ink-2); }
.pw-cancel b { color: var(--ink); }
.pw-cancel ul { margin: 8px 0 0; padding-left: 18px; }
.pw-cancel li { margin: 0 0 4px; }
.pw-cancel a { color: var(--brand-ink); font-weight: 700; }
.nav-email { max-width: 38vw; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.link { white-space: nowrap; flex: none; background: none; border: 0; font: inherit; font-weight: 650; cursor: pointer; }
.pw .core-pw .core-fine { font-weight: 600; color: var(--ink-2); }
.core-box { box-shadow: 0 18px 40px -20px rgba(20, 60, 30, .35); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.core-title { letter-spacing: -.02em; }

/* ---------- app (dashboard) ---------- */
.app-top .wrap { height: 58px; }
.acct-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); font: inherit; font-weight: 800; color: var(--brand-ink); cursor: pointer; }
.menu { position: absolute; right: 16px; top: 56px; width: min(320px, calc(100vw - 32px)); padding: 8px; z-index: 40; animation: fadeIn .18s ease both; }
.menu .who { display: block; padding: 10px 12px 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.menu .who b { display: block; overflow: hidden; text-overflow: ellipsis; }
.menu button, .menu a { display: flex; width: 100%; align-items: center; gap: 10px; border: 0; background: none; font: inherit; font-weight: 650; color: var(--ink); text-align: left; padding: 12px; border-radius: 10px; cursor: pointer; text-decoration: none; min-height: 44px; }
.menu button:hover, .menu a:hover { background: var(--line-2); }
.dash { max-width: 760px; margin: 0 auto; padding: 8px 16px 110px; }
.sumcard { padding: 16px; display: grid; gap: 14px; }
.sumrow { display: flex; align-items: center; gap: 14px; }
.sumrow .ring { width: 96px; height: 96px; }
.sumtx { flex: 1; min-width: 0; }
.sumtx .st { font-weight: 800; font-size: 1.05rem; }
.sumtx .ln { font-size: .88rem; color: var(--muted); margin-top: 2px; }
.budget-bar { height: 8px; border-radius: 999px; background: var(--line-2); overflow: hidden; margin-top: 8px; }
.budget-bar i { display: block; height: 100%; background: var(--brand); border-radius: 999px; transition: width .8s ease; }
.budget-bar.over i { background: var(--accent); }
.sumbtns { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.tabs { position: sticky; top: 58px; z-index: 20; background: var(--bg); padding: 10px 0 8px; margin: 6px 0 4px; }
.tabs .seg { display: flex; margin: 0; }
.tabs .seg button { flex: 1; }
.daystrip { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; }
.daystrip::-webkit-scrollbar { display: none; }
.mcard { padding: 0; overflow: hidden; margin-bottom: 10px; }
.mhead { display: flex; gap: 12px; padding: 14px; align-items: flex-start; cursor: pointer; }
.mhead .ico { width: 44px; height: 44px; border-radius: 13px; background: var(--brand-softer); display: grid; place-items: center; font-size: 1.35rem; flex: none; }
.mhead .tx { flex: 1; min-width: 0; }
.mhead .slot { font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.mhead .nm { font-weight: 750; font-size: 1.04rem; line-height: 1.3; margin: 2px 0 6px; }
.macros { display: flex; flex-wrap: wrap; gap: 5px; }
.mbody { border-top: 1px solid var(--line-2); padding: 12px 14px 14px; display: none; }
.mcard.open .mbody { display: block; }
.mchev { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--line-2); align-self: center; position: relative; transition: transform .2s ease; }
.mchev::after { content: ''; position: absolute; left: 9px; top: 8px; width: 8px; height: 8px; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: rotate(45deg); }
.mcard.open .mchev { transform: rotate(180deg); }
.starthere { margin-top: 12px; border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); background: var(--brand-softer); }
.starthere ol { margin: 8px 0 12px; padding-left: 20px; font-size: .93rem; line-height: 1.5; }
.starthere li { margin: 3px 0; }
.shbtns { display: flex; gap: 8px; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) { .mchev { transition: none; } }
.ings { list-style: none; padding: 0; margin: 0 0 12px; }
.ings li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.ings li span:last-child { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.howto { padding-left: 20px; margin: 0 0 12px; }
.howto li { margin: 0 0 6px; font-size: .93rem; color: var(--ink-2); }
.mact { display: flex; gap: 8px; flex-wrap: wrap; }
.favbtn.on { background: #fdecef; border-color: #f3c3cd; color: #9b1c3a; }
.valuetip { margin-top: 18px; }
.valuetip .vrow { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px dashed var(--line); font-size: .93rem; }
.tvalue { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--brand-softer); font-size: .88rem; color: var(--ink-2); }
.mcard.busy { opacity: .55; pointer-events: none; }
/* ---------- Depth round: meal log, swap reasons, Week tab ---------- */
.tabs .seg button { padding: 8px 4px; font-size: .86rem; white-space: nowrap; }
@media (max-width: 380px) { .tabs .seg button { font-size: .8rem; padding: 8px 2px; } }
.mlog { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; padding: 8px 0 0; border-top: 1px dashed var(--line); }
.mlog .btn.on, .nopebtn.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); }
.nopebtn.on { background: #fdf1e7; border-color: #f0c9a6; color: #8a4513; }
.lgdone { color: var(--brand-ink); text-transform: none; letter-spacing: 0; }
.reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 6px; }
.reasons .btn { min-height: 52px; font-size: .92rem; padding: 8px 10px; }
.wsec { margin-top: 12px; }
.wsec h3 { margin: 0 0 8px; font-size: 1.02rem; }
.wtop { margin-top: 4px; border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); background: var(--brand-softer); }
.wh { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.wread { margin: 0; padding-left: 18px; }
.wread li { margin: 4px 0; font-size: .94rem; line-height: 1.5; color: var(--ink-2); }
.wtiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.wtile { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; min-width: 0; }
.wtile b { display: block; font-size: 1.3rem; color: var(--ink); line-height: 1.2; }
.wtile span { display: block; font-size: .82rem; font-weight: 700; color: var(--ink-2); margin-top: 2px; }
.wtile small { display: block; font-size: .74rem; color: var(--muted); margin-top: 3px; line-height: 1.35; }
.wrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px dashed var(--line); }
.wrow > span:first-child { min-width: 0; flex: 1; }
.wrow small { display: block; font-size: .8rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.wrow .btn { flex: none; }
.wleft { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-weight: 650; cursor: pointer; }
.wleft input { width: 22px; height: 22px; accent-color: var(--brand); flex: none; }
.wtrend { display: grid; gap: 6px; }
.wtr { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 8px; font-size: .84rem; }
.wtd { color: var(--muted); white-space: nowrap; }
.wtb { height: 14px; background: var(--line-2); border-radius: 4px; overflow: hidden; }
.wtb i { display: block; height: 100%; background: color-mix(in srgb, var(--brand) 55%, #fff); border-radius: 0 4px 4px 0; }
.wtr.now .wtb i { background: var(--brand); }
.wtv { text-align: right; white-space: nowrap; }
.wtv small { display: block; font-family: inherit; color: var(--muted); font-size: .72rem; }
.daytot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 10px; font-size: .9rem; }
.ltools { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 12px; }
.lsec { margin: 16px 0 6px; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.litem { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #e8e1cb; }
.litem input[type=checkbox] { width: 24px; height: 24px; accent-color: var(--brand); flex: none; margin: 10px; cursor: pointer; }
.litem .nm { flex: 1; min-width: 0; font-weight: 650; line-height: 1.3; }
.litem .nm small { display: block; color: var(--muted); font-weight: 500; font-size: .8rem; }
.litem.done .nm { text-decoration: line-through; color: var(--muted); }
.pricebtn { border: 1px dashed transparent; background: none; font-family: var(--mono); font-size: .95rem; padding: 8px 6px; border-radius: 8px; cursor: pointer; color: var(--ink); min-height: 44px; min-width: 64px; text-align: right; }
.pricebtn:hover { border-color: #d6cfb8; }
.pricebtn.edited { color: var(--brand-ink); font-weight: 600; }
.priceedit { width: 84px; font: inherit; font-family: var(--mono); font-size: 16px; padding: 8px; border: 1.5px solid var(--brand); border-radius: 8px; text-align: right; }
.pantry-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pchip-x { display: inline-flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 4px 4px 12px; font-weight: 650; font-size: .9rem; }
.pchip-x button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--line-2); cursor: pointer; font-size: 1rem; color: var(--ink-2); }
.addrow { display: flex; gap: 8px; margin: 12px 0; }
.addrow input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); min-height: 48px; }
.addrow input:focus { outline: none; border-color: var(--brand); }
.suggest { display: flex; flex-wrap: wrap; gap: 6px; }
.suggest button { border: 1px dashed #c9d6c6; background: none; border-radius: 999px; padding: 8px 12px; font: inherit; font-size: .86rem; font-weight: 650; color: var(--ink-2); cursor: pointer; min-height: 40px; }
.sheet-bg { position: fixed; inset: 0; background: rgba(15, 25, 18, .45); z-index: 60; animation: fadeIn .2s ease both; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; background: var(--bg); border-radius: 24px 24px 0 0; max-height: 88vh; overflow-y: auto; padding: 18px 16px calc(24px + env(safe-area-inset-bottom)); animation: up .28s cubic-bezier(.2, .8, .2, 1) both; max-width: 640px; margin: 0 auto; }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
.field { display: block; margin: 0 0 14px; }
.field > span { display: block; font-size: .84rem; font-weight: 700; margin-bottom: 6px; color: var(--ink-2); }
.field select, .field input { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); min-height: 48px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; font-weight: 650; }
.toggle input { width: 24px; height: 24px; accent-color: var(--brand); }
.toast { position: fixed; left: 16px; right: 16px; margin: 0 auto; width: fit-content; bottom: calc(22px + env(safe-area-inset-bottom)); background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 14px; font-weight: 650; font-size: .92rem; z-index: 80; box-shadow: var(--shadow); max-width: 528px; animation: fadeIn .2s ease both; display: flex; gap: 12px; align-items: center; }
.toast button { background: none; border: 0; color: #9be3b4; font: inherit; font-weight: 800; cursor: pointer; padding: 6px; }
/* Round 8: the platform chat button (core.js, fixed bottom right) never covers an app sheet or a toast's Undo:
   hidden while a sheet is open, faded out (and not tappable) for the few seconds a toast is up. */
body.cl-sheet .core-chat { display: none; }
body.cl-toast .core-chat { opacity: 0; pointer-events: none; }
.core-chat { transition: opacity .2s ease; }
.empty { text-align: center; padding: 30px 16px; }
.empty .em { font-size: 2.4rem; }
.skel { background: linear-gradient(90deg, var(--line-2) 25%, #f7f9f5 37%, var(--line-2) 63%); background-size: 400% 100%; animation: sh 1.3s infinite; border-radius: 12px; }
@keyframes sh { to { background-position: -100% 0; } }
.err { color: #c0262d; font-size: .9rem; margin: 8px 0 0; }
.conf { position: fixed; inset: 0; pointer-events: none; z-index: 90; }

/* ---------- article / SEO pages ---------- */
.article { max-width: 720px; margin: 0 auto; padding: 18px 16px 40px; }
.article h1 { font-size: clamp(1.8rem, 7.4vw, 2.7rem); }
.article h2 { font-size: clamp(1.3rem, 5.4vw, 1.7rem); margin-top: 1.6em; }
.article p, .article li { font-size: 1.02rem; }
.article table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: .92rem; margin: 10px 0 18px; }
.article th, .article td { padding: 10px 10px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.article th { background: var(--brand-softer); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.article td.num, .article th.num { text-align: right; font-family: var(--mono); white-space: nowrap; }
.crumbs { font-size: .84rem; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); }
.callout { background: var(--brand-softer); border: 1px solid #cfe8d7; border-radius: 16px; padding: 16px; margin: 18px 0; }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cards-list { display: grid; gap: 10px; }
.cards-list a { display: block; padding: 16px; text-decoration: none; color: var(--ink); }
.cards-list a b { display: block; }
.cards-list a span { color: var(--muted); font-size: .9rem; }

@media (min-width: 860px) {
  .wrap { padding: 0 28px; }
  .hero { padding: 40px 0 56px; }
  .hero-grid { grid-template-columns: 1.08fr .92fr; align-items: center; gap: 56px; }
  .hero-cta { grid-template-columns: auto; justify-content: start; }
  .hero-cta .btn { padding: 0 34px; }
  .sec { padding: 84px 0; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .feats { grid-template-columns: repeat(3, 1fr); }
  .week { grid-template-columns: 1.1fr .9fr; align-items: start; }
  .who { grid-template-columns: repeat(5, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .cta-band { padding: 54px 30px; }
  .minidays { grid-template-columns: repeat(6, 1fr); }
  .menu { right: calc((100vw - 1120px) / 2 + 28px); }
}
@media (min-width: 1160px) { .menu { right: calc((100vw - 1120px) / 2 + 28px); } }
@media (max-width: 859px) { .menu { right: 16px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
@media print {
  .nav, .tabs, .sumcard, .ltools, .footer, .sticky-cta, .toast, #mealsTab, #pantryTab, #weekTab, .noprint { display: none !important; }
  body { background: #fff; } .receipt { box-shadow: none; border: 0; } .receipt::after { display: none; }
  #listTab { display: block !important; }
}
.opts.cmp { grid-template-columns: 1fr 1fr; gap: 8px; }
.opts.cmp .opt { min-height: 54px; padding: 10px; gap: 8px; font-size: .92rem; }
.opts.cmp .opt .oi { width: 32px; height: 32px; font-size: 1.1rem; border-radius: 10px; }
.opts.cmp .opt .ck { width: 20px; height: 20px; }
