/* MealGuard website. Same colors as the app (contrast-checked: text 4.5:1 or better). */
:root {
  --bg: #fdf8f3; --card: #ffffff; --band: #fbefe6; --ink: #2b211c; --muted: #6b5a50; --line: #ecdfd4;
  --brand: #a63f22; --brand-ink: #ffffff; --brand-soft: #fdece4;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1411; --card: #271d19; --band: #22191a; --ink: #f6ece6; --muted: #bfa99d; --line: #3f2f28;
    --brand: #ff8f6b; --brand-ink: #2b0e05; --brand-soft: #4a2a1f;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
@supports (-webkit-touch-callout: none) and (font: -apple-system-body) { html { font: -apple-system-body; } }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 10; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
h1, h2, h3 { line-height: 1.2; }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); margin: 0.4em 0 0.3em; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 0 0 0.6em; }
h3 { font-size: 1.15rem; margin: 0.2em 0 0.3em; }
section { padding: 48px 0; }
/* Bands are see-through enough that the background drawing shows behind them, all the way down the page. */
.band { background: var(--band); background: color-mix(in srgb, var(--band) 72%, transparent); }
:root[data-holiday] { --band: var(--card); }

.top { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.35rem; }
.emblem { width: 34px; height: 34px; flex: none; }
.meal { color: var(--ink); } .guard { color: var(--brand); }
nav { display: flex; gap: 6px 18px; flex-wrap: wrap; align-items: center; }
nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 8px 2px; }
nav a:hover { color: var(--brand); }
nav .signin { border: 1px solid var(--brand); color: var(--brand); border-radius: 999px; padding: 6px 14px; }

.hero { padding: 56px 0 40px; }
.hero h1 { max-width: 16em; }
.lead { font-size: 1.2rem; max-width: 36em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 10px; }
.btn { display: inline-block; padding: 14px 24px; border-radius: 14px; font-weight: 700; text-decoration: none; border: 1px solid var(--brand); color: var(--brand); background: transparent; min-height: 48px; }
.btn.primary { background: var(--brand); color: var(--brand-ink); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: s; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--ink); font-weight: 700; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid article { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.grid p, .steps p { margin: 0; color: var(--muted); }
.chips { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 600; }
.honest p { max-width: 46em; }
.founder p { max-width: 40em; font-size: 1.15rem; }
.founder .sig { font-weight: 700; font-size: 1rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; max-width: 50em; }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; min-height: 44px; }
.faq details p { margin: 0 0 14px; color: var(--muted); }
.closing { text-align: center; }
.join { margin: 24px 0 6px; max-width: 26em; display: grid; gap: 10px; }
.closing .join { margin-left: auto; margin-right: auto; text-align: left; }
.closing ol { max-width: 26em; margin: 0 auto 1em; padding-left: 1.4em; text-align: left; }
.closing ol li { margin: 0 0 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.join input[type="email"], .join select { width: 100%; min-height: 50px; padding: 10px 14px; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--muted); border-radius: 12px; }
.join select:has(option[value=""]:checked) { color: var(--muted); }
.join select option { color: var(--ink); }
.join .btn { width: 100%; cursor: pointer; font: inherit; font-weight: 700; }
.join p { margin: 0; }
.dinners { margin: 20px 0 0; }
.dinners ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 34em; }
.dinners li { margin: 0; }
.dinners img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.dinners figcaption { margin-top: 6px; }
.join button.link { background: none; border: 0; padding: 4px 0; min-height: 44px; font: inherit; color: var(--brand); text-decoration: underline; cursor: pointer; }
/* "See a sample week": shown only when site.js runs; the early-access form under it appears after the first week. */
.try { margin: 24px 0 0; max-width: 34em; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.try h2 { font-size: 1.35rem; margin: 0 0 4px; }
.try-intro { margin: 0 0 12px; color: var(--muted); }
.try fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.pick { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.pick label { position: relative; display: block; cursor: pointer; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.pick span { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border: 1px solid var(--muted); border-radius: 999px; font-weight: 600; background: var(--bg); }
.pick input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.pick input:checked + span::before { content: "✓"; margin-right: 6px; }
.pick input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.try-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 14px; }
.try-row label { font-weight: 600; }
.try-row select { min-height: 44px; padding: 8px 12px; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--muted); border-radius: 12px; }
.try-form .btn { width: 100%; cursor: pointer; font: inherit; font-weight: 700; }
.try-form .btn:disabled { opacity: 0.7; cursor: progress; }
.try-result { margin-top: 16px; }
.try-result:empty { display: none; }
.try-result p { margin: 0 0 6px; }
.try-checked { font-weight: 600; }
.week { list-style: none; padding: 0; margin: 8px 0 12px; display: grid; gap: 8px; }
.week li { display: grid; grid-template-columns: 2.6em minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.week .day { font-weight: 700; color: var(--muted); }
.week .dish { font-weight: 600; }
.week .mins { color: var(--muted); font-size: 0.875rem; white-space: nowrap; }
.try-result button.link { background: none; border: 0; padding: 4px 0; min-height: 44px; font: inherit; color: var(--brand); text-decoration: underline; cursor: pointer; }
.try-skip { margin: 10px 0 0; }
.try-join { margin-top: 24px; max-width: 34em; }
.try-join h3 { margin: 0 0 4px; }
.try-join p.muted { margin: 0; }
.try-join .join { margin-top: 14px; }
html:not(.js) .try { display: none; }
.js .try-join:not(.shown) { display: none; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.signin-line { margin: 14px 0 0; }
.shot { margin: 0; text-align: center; }
.shot img { width: 100%; max-width: 260px; height: auto; border-radius: 30px; border: 8px solid #2b211c; background: #fff; box-shadow: 0 14px 34px rgba(43, 33, 28, 0.22); }
.shot figcaption { margin-top: 10px; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: minmax(0, 1fr) 300px; } .shot img { max-width: 300px; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.closing .cta { justify-content: center; }
.legal { max-width: 760px; }
.legal h2 { font-size: 1.2rem; margin-top: 1.6em; }

.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; }
.foot p { margin: 6px 0; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot .emblem { width: 26px; height: 26px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
/* Phones: one short header row (the sections are a scroll away). */
@media (max-width: 600px) {
  .top { position: static; }
  .top-row { flex-wrap: nowrap; }
  nav a:not(.signin) { display: none; }
  .brand { font-size: 1.2rem; }
  .hero { padding-top: 28px; }
  .lead { font-size: 1.1rem; }
  section { padding: 36px 0; }
}
