/* =============================================================================
 * Coach Transformer · Budget Nutrition Hub — STYLES
 *
 * Shared by the lead-magnet landing page (nutrition.html) and the hub
 * (nutrition-hub.html). Built on the SAME token set as the tenant's main page
 * (platform/design/skins/transformer.json) so the guide reads as one brand,
 * plus a single fresh-green accent that carries "nutrition / progress / done"
 * (PRD §35). Mobile is the primary experience (PRD §36).
 * ========================================================================== */

:root {
  --bg: #0a0a0a;
  --surface: #131211;
  --surface-2: #1b1916;
  --surface-3: #221f1a;
  --text: #f7f5f0;
  --muted: #b8af9e;
  --quiet: #8c8474;
  --line: rgba(242, 189, 26, 0.16);
  --line-strong: rgba(242, 189, 26, 0.32);
  --brand: #f2bd1a;
  --brand-2: #ffd862;
  --accent: #b8842a;

  /* nutrition accent — used ONLY for progress, completion, and fresh-food cues */
  --fresh: #7fc96a;
  --fresh-2: #a5e094;
  --fresh-line: rgba(127, 201, 106, 0.28);
  --fresh-soft: rgba(127, 201, 106, 0.12);

  --danger: #ff8a7a;

  --font-display: "Oswald", "Bebas Neue", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 4px;
  --radius-lg: 8px;
  --maxw: 1200px;
  --nav-h: 64px;
  --tabbar-h: 68px;
}

/* ---------- reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  margin: 0;
  letter-spacing: 0.005em;
}

::selection { background: var(--brand); color: #12100a; }

:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 300;
  background: var(--brand);
  color: #12100a;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* ---------- layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: clamp(3.25rem, 7vw, 6rem) 0; position: relative; }
.section--tight { padding: clamp(2.25rem, 5vw, 3.5rem) 0; }
.section--band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--deep {
  background: linear-gradient(180deg, var(--surface-2), var(--bg));
  border-top: 1px solid var(--line);
}

[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--brand);
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--brand);
  opacity: 0.7;
}
.eyebrow--fresh { color: var(--fresh); }
.eyebrow--fresh::before { background: var(--fresh); }
.eyebrow--center { justify-content: center; }

.h-xl { font-size: clamp(2.35rem, 8vw, 4.6rem); line-height: 0.98; text-transform: uppercase; }
.h-lg { font-size: clamp(1.9rem, 5vw, 3.1rem); text-transform: uppercase; }
.h-md { font-size: clamp(1.45rem, 3.4vw, 2.1rem); text-transform: uppercase; }
.h-sm { font-size: clamp(1.15rem, 2.4vw, 1.4rem); text-transform: uppercase; }

.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--muted);
  font-weight: 300;
  line-height: 1.62;
}
.measure { max-width: 44rem; }
.measure-sm { max-width: 32rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.quiet { color: var(--quiet); }
.gold { color: var(--brand-2); }
.fresh { color: var(--fresh); }

.head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.head--center { text-align: center; }
.head .lede { margin: 1rem 0 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.95rem 1.7rem;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease,
    color 0.25s ease, border-color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #17120a;
}
.btn-primary:hover { box-shadow: 0 12px 32px -14px rgba(242, 189, 26, 0.65); }

.btn-fresh {
  background: linear-gradient(135deg, var(--fresh-2), var(--fresh));
  color: #10200c;
}
.btn-fresh:hover { box-shadow: 0 12px 32px -14px rgba(127, 201, 106, 0.6); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand-2);
  background: rgba(242, 189, 26, 0.05);
}

.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0.6rem 1rem; font-size: 0.7rem; }
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ---------- top bar (shared) ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(10, 9, 8, 0.9);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brandline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1rem;
  line-height: 1;
}
.brandline__mark {
  width: 36px; height: 36px; flex: 0 0 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: radial-gradient(120% 120% at 30% 20%, rgba(242, 189, 26, 0.2), rgba(18, 16, 10, 0.5));
  color: var(--brand-2);
  font-weight: 700;
  font-size: 0.85rem;
}
/* Real crowned wordmark (same art as the home page). Reveals on load and hides
   the CT badge fallback, so a missing or slow image never leaves an empty gap.
   Mirrors the main site's brand--img. */
.brandline__logo { height: 46px; width: auto; max-width: 160px; display: none; object-fit: contain; }
.brandline--img .brandline__logo { display: block; }
.brandline--img .brandline__mark { display: none; }
/* The wordmark already says "Coach Transformer", so drop the redundant brand
   subtext when it loads. The hub keeps its "Nutrition Hub" label; the landing
   uses brandline--logo-only to show the wordmark alone, like the home page. */
.brandline--img .brandline__name small { display: none; }
.brandline--img.brandline--logo-only .brandline__name { display: none; }
.brandline__name .c { color: var(--text); }
.brandline__name .t { color: var(--brand); }
.brandline__name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.52rem;
  letter-spacing: 0.28em;
  color: var(--quiet);
  margin-top: 0.3rem;
  font-weight: 500;
}

/* =============================================================================
 * LANDING PAGE
 * ========================================================================== */

.lp-hero {
  position: relative;
  padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
  isolation: isolate;
}
.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(85% 60% at 50% 0%, rgba(242, 189, 26, 0.16), transparent 60%),
    radial-gradient(70% 60% at 12% 100%, rgba(127, 201, 106, 0.1), transparent 60%),
    linear-gradient(180deg, #14100b 0%, var(--bg) 70%);
}
.lp-hero__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
/* Sized against the hero COLUMN, not the viewport: at the shared .h-xl scale a
   1600px screen wrapped "5 Days Of Healthy / Meals" mid-phrase. Balanced wrapping
   keeps the two lines even where the browser supports it. */
.lp-hero__title {
  margin: 0 0 1.1rem;
  font-size: clamp(2.2rem, 5.4vw, 3.7rem);
  text-wrap: balance;
}
.lp-hero__title .accent { color: var(--brand); display: block; }
.lp-hero__support {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  letter-spacing: 0.02em;
  color: var(--fresh);
  margin: 0 0 1.1rem;
}
.lp-hero__sub { margin: 0 0 1.75rem; max-width: 34rem; }
.lp-hero__cta { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin-top: 1.9rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.trust__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.trust__item svg { width: 16px; height: 16px; color: var(--fresh); flex: 0 0 16px; }

/* form card — used on the landing page and inside the hub */
.form-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  padding: clamp(1.4rem, 3vw, 2rem);
  position: relative;
  box-shadow: 0 30px 80px -50px rgba(0, 0, 0, 0.9);
}
.form-card__title { margin: 0 0 0.4rem; }
.form-card__sub { color: var(--muted); font-size: 0.92rem; margin: 0 0 1.35rem; }

.field { display: block; margin-bottom: 1rem; }
.field__label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.45rem;
}
.field__label .opt { color: var(--quiet); letter-spacing: 0.06em; text-transform: none; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.8rem 0.9rem;
  background: rgba(10, 9, 8, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--line-strong); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: rgba(10, 9, 8, 0.95);
  box-shadow: 0 0 0 3px rgba(242, 189, 26, 0.14);
}
.field input::placeholder, .field textarea::placeholder { color: var(--quiet); }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 15px) calc(50% + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

.field--invalid input,
.field--invalid select { border-color: var(--danger); }
.field__error {
  display: none;
  color: var(--danger);
  font-size: 0.8rem;
  margin-top: 0.4rem;
}
.field--invalid .field__error { display: block; }

.consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 1.25rem 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}
.consent input[type="checkbox"] {
  appearance: none;
  width: 22px; height: 22px;
  flex: 0 0 22px;
  margin-top: 1px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: rgba(10, 9, 8, 0.7);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.consent input[type="checkbox"]::after {
  content: "";
  width: 11px; height: 6px;
  border-left: 2px solid #10200c;
  border-bottom: 2px solid #10200c;
  transform: rotate(-45deg) translate(1px, -1px);
  opacity: 0;
}
.consent input[type="checkbox"]:checked {
  background: var(--fresh);
  border-color: var(--fresh);
}
.consent input[type="checkbox"]:checked::after { opacity: 1; }
.consent a { color: var(--brand-2); text-decoration: underline; text-underline-offset: 2px; }

/* honeypot — off-screen, never announced */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: 0.76rem;
  color: var(--quiet);
  margin: 0.9rem 0 0;
  text-align: center;
}
.form-status {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--danger);
  min-height: 1.2em;
}
.form-status:empty { margin-top: 0; min-height: 0; }

.form-success {
  display: none;
  text-align: center;
  padding: 0.5rem 0 0.25rem;
}
.form-card.is-done .form-body { display: none; }
.form-card.is-done .form-success { display: block; }
.form-success__mark {
  width: 58px; height: 58px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--fresh-soft);
  border: 1px solid var(--fresh-line);
  color: var(--fresh);
}
.form-success__mark svg { width: 26px; height: 26px; }
.form-success h3 { margin: 0 0 0.5rem; }
.form-success p { color: var(--muted); margin: 0 0 1.25rem; font-size: 0.94rem; }
.form-success .btn + .btn { margin-top: 0.7rem; }

/* benefits */
.benefit-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}
.benefit {
  display: flex;
  gap: 0.95rem;
  align-items: flex-start;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.benefit:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  transform: translateY(-2px);
}
.benefit__icon {
  flex: 0 0 38px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--fresh-line);
  border-radius: 50%;
  color: var(--fresh);
  background: var(--fresh-soft);
}
.benefit__icon svg { width: 18px; height: 18px; }
.benefit b {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.benefit span { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }

/* coach intro */
.coach {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}
.coach__photo {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-2);
}
.coach__photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.coach__quote {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  line-height: 1.25;
  margin: 0 0 1.2rem;
}
.coach__quote em { color: var(--brand-2); font-style: normal; }
.coach__sig {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.coach__sig b {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.1rem;
}
.coach__sig span { color: var(--quiet); font-size: 0.8rem; }
.coach__tagline {
  margin-top: 0.9rem;
  color: var(--brand-2);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1rem;
}

/* footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #070605;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(2rem, 4vw, 2.5rem);
}
.site-footer__grid {
  display: grid;
  gap: 1.75rem;
  margin-bottom: 2rem;
}
.site-footer h4 {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--brand);
  margin-bottom: 0.9rem;
  font-family: var(--font-body);
  text-transform: uppercase;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer a { color: var(--muted); font-size: 0.88rem; }
.site-footer a:hover { color: var(--brand-2); }
.site-footer__legal {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  color: var(--quiet);
  font-size: 0.76rem;
  line-height: 1.6;
}
.site-footer__legal p { margin: 0 0 0.6rem; }

.disclaimer {
  border: 1px solid var(--line);
  border-left: 2px solid var(--brand);
  border-radius: var(--radius);
  background: rgba(19, 18, 17, 0.6);
  padding: 0.9rem 1.05rem;
  color: var(--quiet);
  font-size: 0.78rem;
  line-height: 1.55;
  margin: 1.25rem 0 0;
}
.disclaimer--fresh { border-left-color: var(--fresh); }

/* =============================================================================
 * NUTRITION HUB (app shell)
 * ========================================================================== */

.hub { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 1rem); }

.hub__view { display: none; }
.hub__view.is-active { display: block; animation: viewIn 0.25s ease; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.hub__head {
  padding: clamp(1.75rem, 5vw, 2.75rem) 0 clamp(1.25rem, 3vw, 1.75rem);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(80% 100% at 50% 0%, rgba(242, 189, 26, 0.1), transparent 65%);
}
.hub__greeting { margin: 0 0 0.5rem; }
.hub__sub { color: var(--muted); margin: 0; max-width: 40rem; font-size: 0.96rem; }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: clamp(1.15rem, 3vw, 1.6rem);
  margin-bottom: 1rem;
}
.panel--flush { padding: 0; overflow: hidden; }
.panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.panel__title {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.panel__meta { font-size: 0.78rem; color: var(--quiet); }

/* checklist (quick start + challenge tasks) */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.check {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  text-align: left;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.check:hover { border-color: var(--line-strong); }
.check__box {
  flex: 0 0 22px;
  width: 22px; height: 22px;
  margin-top: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  display: grid;
  place-items: center;
  color: transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.check__box svg { width: 12px; height: 12px; }
.check__text b {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
}
.check__text span { color: var(--quiet); font-size: 0.82rem; }
.check[aria-pressed="true"] {
  border-color: var(--fresh-line);
  background: var(--fresh-soft);
}
.check[aria-pressed="true"] .check__box {
  background: var(--fresh);
  border-color: var(--fresh);
  color: #10200c;
}
.check[aria-pressed="true"] .check__text b { color: var(--fresh-2); }

/* progress bar */
.bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  overflow: hidden;
}
.bar__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--fresh), var(--fresh-2));
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.bar--gold .bar__fill { background: linear-gradient(90deg, var(--brand), var(--brand-2)); }

/* rules */
.rule-grid { display: grid; gap: 0.9rem; }
.rule {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.15rem 1.2rem;
  position: relative;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.rule:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.rule__top { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.7rem; }
.rule__num {
  flex: 0 0 40px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--brand);
  background: rgba(242, 189, 26, 0.07);
}
.rule__title { font-size: 1.08rem; text-transform: uppercase; }
.rule p { color: var(--muted); margin: 0 0 0.7rem; font-size: 0.92rem; }
.rule__examples {
  font-size: 0.82rem;
  color: var(--quiet);
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
}

/* grocery list */
.grocery__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}
.grocery__count { font-family: var(--font-display); font-size: 1.5rem; text-transform: uppercase; }
.grocery__count span { color: var(--fresh); }
.toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 1.25rem; }

.gcat { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 0.65rem; overflow: hidden; }
.gcat__toggle {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: transparent;
  border: 0;
  text-align: left;
}
.gcat__toggle:hover { background: var(--surface-2); }
.gcat__name {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.03em;
}
.gcat__right { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--quiet); font-size: 0.8rem; }
.gcat__chev { transition: transform 0.25s ease; width: 16px; height: 16px; color: var(--muted); }
.gcat[data-open="false"] .gcat__chev { transform: rotate(-90deg); }
.gcat[data-open="false"] .gcat__body { display: none; }
.gcat__body { padding: 0 0.55rem 0.65rem; }

.gitem {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  min-height: 48px;
  padding: 0.55rem 0.6rem;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  text-align: left;
  color: var(--text);
  transition: background 0.15s ease;
}
.gitem:hover { background: var(--surface-2); }
.gitem__box {
  flex: 0 0 22px;
  width: 22px; height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  display: grid; place-items: center;
  color: transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.gitem__box svg { width: 12px; height: 12px; }
.gitem__name { font-size: 0.94rem; line-height: 1.35; }
.gitem__opt {
  margin-left: auto;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--quiet);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
}
.gitem[aria-pressed="true"] .gitem__box { background: var(--fresh); border-color: var(--fresh); color: #10200c; }
.gitem[aria-pressed="true"] .gitem__name { color: var(--quiet); text-decoration: line-through; }

.budget {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border: 1px solid var(--fresh-line);
  border-radius: var(--radius);
  background: var(--fresh-soft);
  padding: 1rem 1.1rem;
  margin-top: 1rem;
}
.budget__amount {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--fresh-2);
  line-height: 1;
  white-space: nowrap;
}
.budget p { margin: 0; font-size: 0.82rem; color: var(--muted); line-height: 1.5; }

/* meal cards */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.25rem 0 0.75rem;
  margin: 0 -1.25rem 1rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.filter-bar::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.chip:hover { border-color: var(--line-strong); color: var(--text); }
.chip[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  border-color: transparent;
  color: #17120a;
}

.meal-grid { display: grid; gap: 0.9rem; }
.meal {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  text-align: left;
  padding: 0;
  color: var(--text);
  transition: border-color 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
}
.meal:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.meal__plate {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.meal__plate img { width: 100%; height: 100%; object-fit: cover; }
.meal__plate svg { width: 46px; height: 46px; color: rgba(255, 255, 255, 0.82); }
.meal__plate::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(10, 9, 8, 0.72));
}
.meal__plate svg { position: relative; z-index: 1; }
.meal__body { padding: 0.95rem 1rem 1.1rem; flex: 1; display: flex; flex-direction: column; }
.meal__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  font-size: 1.05rem;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}
.meal__protein { display: block; color: var(--muted); font-size: 0.84rem; margin: 0 0 0.75rem; }
.meal__stats { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; }
.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
}
.stat-chip svg { width: 12px; height: 12px; color: var(--brand); }
.stat-chip--fresh { border-color: var(--fresh-line); color: var(--fresh-2); }
.stat-chip--fresh svg { color: var(--fresh); }

/* welcome video: poster card + modal player */
.vsl-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-2);
  cursor: pointer;
  aspect-ratio: 16 / 9;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.vsl-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.vsl-card__poster { width: 100%; height: 100%; object-fit: cover; display: block; }
.vsl-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 9, 8, 0.1) 40%, rgba(10, 9, 8, 0.72));
}
.vsl-card__play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #17120a;
  box-shadow: 0 10px 30px -8px rgba(242, 189, 26, 0.6);
  transition: transform 0.2s ease;
}
.vsl-card:hover .vsl-card__play { transform: translate(-50%, -50%) scale(1.08); }
.vsl-card__play svg { width: 26px; height: 26px; margin-left: 3px; }
.vsl-card__label {
  position: absolute; left: 1rem; bottom: 0.85rem; right: 1rem;
  z-index: 1;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
  color: var(--text);
  text-align: left;
}

.vsl-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  background: rgba(4, 4, 3, 0.86);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: vslFade 0.2s ease;
}
.vsl-modal[hidden] { display: none; }
@keyframes vslFade { from { opacity: 0; } to { opacity: 1; } }
.vsl-modal__panel {
  width: 100%;
  max-width: 860px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.9);
  animation: vslIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes vslIn { from { transform: translateY(16px) scale(0.98); opacity: 0; } to { transform: none; opacity: 1; } }
.vsl-modal__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.vsl-modal__title { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.02em; }
.vsl-modal__close {
  width: 40px; height: 40px; flex: 0 0 40px;
  display: grid; place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
}
.vsl-modal__close:hover { color: var(--text); border-color: var(--line-strong); }
.vsl-modal__close svg { width: 18px; height: 18px; }
.vsl-modal__frame { background: #000; aspect-ratio: 16 / 9; }
.vsl-modal__video { width: 100%; height: 100%; display: block; background: #000; }
.vsl-modal__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; padding: 1rem 1.1rem;
}
.vsl-modal__note {
  margin: 0; flex: 1 1 240px;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.95rem;
  line-height: 1.25;
  color: var(--brand-2);
}

/* meal detail dialog */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(4, 4, 3, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 0;
}
.sheet.is-open { display: flex; }
.sheet__panel {
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 1.25rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  animation: sheetIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-overflow-scrolling: touch;
}
@keyframes sheetIn {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.sheet__close {
  position: sticky;
  top: 0;
  float: right;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  margin: -0.25rem -0.25rem 0 0;
}
.sheet__close:hover { color: var(--text); border-color: var(--line-strong); }
.sheet__close svg { width: 16px; height: 16px; }
.sheet h3 { margin: 0 0 0.35rem; font-size: 1.4rem; text-transform: uppercase; }
.sheet__label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand);
  font-weight: 600;
  margin: 1.25rem 0 0.55rem;
}
.sheet ul { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.92rem; }
.sheet ul li { margin-bottom: 0.35rem; }
.sheet p { color: var(--muted); font-size: 0.92rem; margin: 0; }

.coach-tip {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(242, 189, 26, 0.06);
  padding: 0.9rem 1rem;
  margin-top: 1.25rem;
}
.coach-tip svg { width: 18px; height: 18px; color: var(--brand); flex: 0 0 18px; margin-top: 2px; }
.coach-tip b {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.2rem;
}
.coach-tip span { font-size: 0.88rem; color: var(--text); line-height: 1.5; }

/* meal builder */
.builder__step { margin-bottom: 1.4rem; }
.builder__step-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
}
.builder__step-num {
  flex: 0 0 28px;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--brand);
}
.builder__step-title { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; }
.builder__step-title .opt { color: var(--quiet); font-family: var(--font-body); letter-spacing: 0.02em; text-transform: none; font-size: 0.8rem; }
.option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.5rem; }
.option {
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  text-align: left;
  transition: all 0.2s ease;
}
.option:hover { border-color: var(--line-strong); color: var(--text); }
.option[aria-pressed="true"] {
  border-color: var(--fresh);
  background: var(--fresh-soft);
  color: var(--fresh-2);
  font-weight: 600;
}

.built {
  border: 1px solid var(--fresh-line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(127, 201, 106, 0.08), var(--surface));
  padding: 1.25rem;
  margin-top: 1.25rem;
}
.built__name { font-size: 1.35rem; text-transform: uppercase; margin-bottom: 0.6rem; color: var(--fresh-2); }
.built__parts { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.4rem; }
.built__parts li { display: flex; gap: 0.6rem; align-items: baseline; font-size: 0.92rem; }
.built__parts li::before { content: "•"; color: var(--fresh); }
.built__meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.9rem; }
.built__empty { color: var(--quiet); font-size: 0.9rem; margin: 1.25rem 0 0; }

/* 5-day plan */
.day-tabs { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.65rem; scrollbar-width: none; }
.day-tabs::-webkit-scrollbar { display: none; }
.plan-day { display: none; }
.plan-day.is-active { display: block; }
.plan-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.plan-row:last-of-type { border-bottom: 0; }
.plan-row__slot {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
}
.plan-row__meal { font-size: 0.95rem; }
.plan-row__meal button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--text);
  text-align: left;
  border-bottom: 1px dotted var(--line-strong);
  font-size: inherit;
}
.plan-row__meal button:hover { color: var(--brand-2); }
.plan-row__note { color: var(--quiet); font-size: 0.85rem; }
.plan-reminders {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.plan-reminder { display: flex; gap: 0.6rem; align-items: center; font-size: 0.85rem; color: var(--muted); }
.plan-reminder svg { width: 15px; height: 15px; color: var(--fresh); flex: 0 0 15px; }

/* prep guide + timer */
.timer {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.25rem;
}
.timer__clock {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 7vw, 2.8rem);
  line-height: 1;
  color: var(--brand-2);
  font-variant-numeric: tabular-nums;
  min-width: 4.2ch;
}
.timer__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.prep-block { border-left: 2px solid var(--line-strong); padding: 0 0 1.4rem 1.15rem; position: relative; }
.prep-block:last-child { padding-bottom: 0; }
.prep-block::before {
  content: "";
  position: absolute;
  left: -6px; top: 4px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--brand);
}
.prep-block[data-done="true"] { border-left-color: var(--fresh-line); }
.prep-block[data-done="true"]::before { background: var(--fresh); }
.prep-block__range {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.prep-block[data-done="true"] .prep-block__range { color: var(--fresh); }
.prep-block ul { margin: 0 0 0.75rem; padding-left: 1.1rem; color: var(--muted); font-size: 0.92rem; }
.prep-block li { margin-bottom: 0.3rem; }

/* swaps */
.swap-grid { display: grid; gap: 0.9rem; }
.swap {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.swap__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.6rem; padding: 1rem; }
.swap__side { text-align: center; }
.swap__label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--quiet);
  margin-bottom: 0.3rem;
}
.swap__from { color: var(--muted); font-size: 0.92rem; font-weight: 500; }
.swap__to { color: var(--fresh-2); font-size: 0.98rem; font-weight: 600; }
.swap__arrow {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--fresh-line);
  color: var(--fresh);
  background: var(--fresh-soft);
}
.swap__arrow svg { width: 15px; height: 15px; }
.swap__why {
  border-top: 1px solid var(--line);
  padding: 0.85rem 1rem;
  color: var(--muted);
  font-size: 0.86rem;
}
.swap__why b { color: var(--brand); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; display: block; margin-bottom: 0.25rem; }

/* restaurants */
.acc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 0.6rem; overflow: hidden; }
.acc__toggle {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: transparent;
  border: 0;
  text-align: left;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
  color: var(--text);
}
.acc__toggle:hover { background: var(--surface-2); }
.acc__chev { width: 16px; height: 16px; color: var(--muted); transition: transform 0.25s ease; flex: 0 0 16px; }
.acc[data-open="true"] .acc__chev { transform: rotate(180deg); }
.acc__body { padding: 0 1rem 1.1rem; }
.acc[data-open="false"] .acc__body { display: none; }
.acc__cols { display: grid; gap: 1rem; margin-bottom: 1rem; }
.acc__col h4 {
  font-family: var(--font-body);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.acc__col--better h4 { color: var(--fresh); }
.acc__col--limit h4 { color: var(--brand); }
.acc__col ul { margin: 0; padding-left: 1.05rem; color: var(--muted); font-size: 0.88rem; }
.acc__col li { margin-bottom: 0.28rem; }
.acc__note { display: grid; gap: 0.5rem; border-top: 1px solid var(--line); padding-top: 0.85rem; font-size: 0.86rem; color: var(--muted); }
.acc__note b { color: var(--text); }

/* water tracker */
.water { display: grid; gap: 1.25rem; justify-items: center; text-align: center; }
.ring { position: relative; width: 190px; height: 190px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring__track { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 10; }
.ring__fill {
  fill: none;
  stroke: url(#waterGrad);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.ring__label {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.15rem;
}
.ring__value { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--text); }
.ring__unit { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--quiet); }
.ring.is-complete .ring__value { color: var(--fresh-2); }

/* All three quick-adds share one thumb row even at 375px: the default button
   padding pushed "+20 oz" onto a second line. */
.quick-add { display: flex; gap: 0.5rem; justify-content: center; width: 100%; }
.quick-add .btn { flex: 1 1 0; min-width: 0; padding-inline: 0.75rem; }
.goal-picker { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }

.water__done {
  display: none;
  border: 1px solid var(--fresh-line);
  background: var(--fresh-soft);
  color: var(--fresh-2);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.ring.is-complete ~ .water__done { display: block; }

/* challenge */
.challenge-days { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.7rem; scrollbar-width: none; }
.challenge-days::-webkit-scrollbar { display: none; }
.day-pill {
  flex: 0 0 auto;
  width: 54px; height: 54px;
  display: grid;
  place-content: center;
  gap: 0.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--muted);
  text-align: center;
  transition: all 0.2s ease;
}
.day-pill span { font-size: 0.55rem; letter-spacing: 0.14em; text-transform: uppercase; }
.day-pill b { font-family: var(--font-display); font-size: 1.15rem; line-height: 1; }
.day-pill[aria-pressed="true"] { border-color: var(--brand); color: var(--brand-2); background: rgba(242, 189, 26, 0.08); }
.day-pill[data-complete="true"] { border-color: var(--fresh); background: var(--fresh-soft); color: var(--fresh-2); }

.streak {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  color: var(--brand-2);
}
.streak svg { width: 14px; height: 14px; }

.badge-done {
  display: none;
  text-align: center;
  border: 1px solid var(--fresh-line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(127, 201, 106, 0.14), var(--surface));
  padding: 1.5rem 1.25rem;
  margin-top: 1.25rem;
}
.badge-done.is-visible { display: block; }
.badge-done__mark {
  width: 64px; height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--fresh);
  color: #10200c;
}
.badge-done__mark svg { width: 30px; height: 30px; }

/* quotes */
.quote-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(242, 189, 26, 0.1), var(--surface));
  padding: clamp(1.4rem, 4vw, 2rem);
  text-align: center;
}
.quote-card p {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.2rem, 3.4vw, 1.8rem);
  line-height: 1.25;
  margin: 0 0 0.9rem;
}
.quote-card cite {
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
}

/* download card */
.download {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  flex-wrap: wrap;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  padding: 1.25rem;
}
.download__icon {
  flex: 0 0 52px;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: var(--radius);
  background: rgba(242, 189, 26, 0.1);
  border: 1px solid var(--line-strong);
  color: var(--brand);
}
.download__icon svg { width: 24px; height: 24px; }
.download__body { flex: 1 1 200px; }
.download__body b { display: block; font-family: var(--font-display); text-transform: uppercase; font-size: 1.05rem; }
.download__body span { color: var(--quiet); font-size: 0.8rem; }

/* bottom tab bar */
.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex;
  background: rgba(10, 9, 8, 0.94);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  border-top: 1px solid var(--line);
}
.tab {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  background: transparent;
  border: 0;
  color: var(--quiet);
  padding: 0.4rem 0.2rem;
  transition: color 0.2s ease;
  position: relative;
}
.tab svg { width: 21px; height: 21px; }
.tab span {
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.tab[aria-selected="true"] { color: var(--brand); }
.tab[aria-selected="true"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 2px;
  background: var(--brand);
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"]:hover { color: var(--brand-2); }

/* =============================================================================
 * RESPONSIVE
 * ========================================================================== */

@media (min-width: 640px) {
  .benefit-grid { grid-template-columns: 1fr 1fr; }
  .rule-grid { grid-template-columns: 1fr 1fr; }
  .meal-grid { grid-template-columns: 1fr 1fr; }
  .swap-grid { grid-template-columns: 1fr 1fr; }
  .site-footer__grid { grid-template-columns: repeat(3, 1fr); }
  .acc__cols { grid-template-columns: 1fr 1fr; }
  .sheet { align-items: center; padding: 1.5rem; }
  .sheet__panel { border-radius: var(--radius-lg); max-height: 84vh; }
}

@media (min-width: 900px) {
  :root { --nav-h: 72px; }
  .lp-hero__grid { grid-template-columns: 1.05fr 0.95fr; }
  .coach { grid-template-columns: 0.8fr 1.2fr; }
  .benefit-grid { grid-template-columns: repeat(4, 1fr); }
  .meal-grid { grid-template-columns: repeat(3, 1fr); }
  .rule-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Desktop: the tab bar becomes a top rail, since a thumb bar makes no sense
   on a pointer device (PRD §12 allows a top/side nav on desktop). */
@media (min-width: 1024px) {
  .hub { padding-bottom: 3rem; }
  .tabbar {
    position: sticky;
    top: var(--nav-h);
    bottom: auto;
    height: 58px;
    padding-bottom: 0;
    border-top: 0;
    border-bottom: 1px solid var(--line);
    justify-content: center;
    gap: 0.5rem;
    padding-inline: 1.25rem;
  }
  .tab {
    flex: 0 0 auto;
    flex-direction: row;
    gap: 0.55rem;
    padding: 0 1.1rem;
  }
  .tab span { font-size: 0.72rem; }
  .tab[aria-selected="true"]::before { top: auto; bottom: 0; width: 100%; }
}

/* =============================================================================
 * MOTION / CONTRAST PREFERENCES
 * ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .btn:hover, .benefit:hover, .meal:hover, .rule:hover { transform: none; }
}

@media (prefers-contrast: more) {
  :root {
    --muted: #ddd6c8;
    --quiet: #bdb5a5;
    --line: rgba(242, 189, 26, 0.4);
    --line-strong: rgba(242, 189, 26, 0.6);
  }
}

/* =============================================================================
 * PRINT — the grocery list and meal plan are meant to go on the fridge.
 * ========================================================================== */

@media print {
  :root { --bg: #fff; --text: #111; --muted: #333; --quiet: #555; }
  body { background: #fff; color: #111; font-size: 11pt; }
  .topbar, .tabbar, .toolbar, .filter-bar, .sheet, .skip-link,
  .site-footer, .btn, .quick-add, .goal-picker, .timer__actions { display: none !important; }
  .hub__view { display: none !important; }
  .hub__view.is-print, .hub__view.is-active { display: block !important; }
  .panel, .gcat, .rule, .meal, .swap, .acc {
    border: 1px solid #bbb !important;
    background: #fff !important;
    break-inside: avoid;
    box-shadow: none !important;
  }
  .gcat__body, .acc__body, .plan-day { display: block !important; }
  .gitem__box, .check__box { border: 1px solid #333 !important; background: #fff !important; }
  .gitem[aria-pressed="true"] .gitem__name { text-decoration: none; color: #111; }
  a[href]::after { content: ""; }
  .h-lg, .h-md, .panel__title { color: #111 !important; }
}
