/* =====================================================================
   MEALS ON ME — Design System stylesheet
   Shared across all 6 pages. Do not edit per-page; page CSS lives in
   css/<page>.css. No web fonts — a native system font stack loads
   instantly (see DESIGN_SYSTEM.md §2.2).

   Contents
   01  Reset & base
   02  Design tokens (:root)
   03  Base typography & elements
   04  Layout: container, section, grid, stack/cluster/split, flow
   05  Type helpers: eyebrow, lead, section-head, text utilities
   06  Buttons
   07  Badges, tags, chips
   08  Cards: card, plan-card, dish-card, testimonial, macros
   09  Stats
   10  Star rating
   11  Forms: field, input, select, radio-card, check-card, stepper,
          segmented, input-group
   12  Progress (quiz)
   13  Accordion (native <details>)
   14  Modal
   15  Summary panel (price)
   16  Promo banner
   17  Navigation
   18  Footer
   19  Hero
   20  Steps (how it works)
   21  Logo strip (press/partners)
   22  Guarantee strip, note/callout, trust row
   23  Panel, list-row, contact-card, avatar, icon-badge, empty-state
   24  Imagery (media / photo) system
   25  Icons
   26  Utilities
   27  Reduced motion
   ===================================================================== */

/* ---------------------------------------------------------------------
   01  RESET & BASE
   --------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px; /* sticky nav offset for in-page anchors */
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, picture, svg, video, canvas {
  display: block;
  max-width: 100%;
}

svg { fill: currentColor; }

img { height: auto; }

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button { background: none; border: none; padding: 0; cursor: pointer; }

a { color: inherit; text-decoration: none; }

ul[class], ol[class] { list-style: none; padding: 0; }

:where(p, li, h1, h2, h3, h4, figure) { overflow-wrap: break-word; }

[hidden] { display: none !important; }

::selection {
  background: var(--red-100);
  color: var(--red-900);
}

/* ---------------------------------------------------------------------
   02  DESIGN TOKENS
   --------------------------------------------------------------------- */
:root {
  /* -- Palette: brand red (theme = #E83428) -------------------------- */
  --red-50:  #FEF1EF;
  --red-100: #FCDED9;
  --red-200: #F7B9AF;
  --red-300: #F28C7E;
  --red-400: #EE5A47;
  --red-500: #E83428;   /* brand / theme colour */
  --red-600: #CB2418;   /* darker fill: button hover (white text = AA) */
  --red-700: #A81D10;   /* red text / links on light (AA ~7:1) */
  --red-800: #85170C;
  --red-900: #5E1108;

  /* -- Palette: neutrals (clean, faintly warm) ----------------------- */
  --paper-0:   #FFFFFF;
  --paper-50:  #FBFAF8;   /* page background */
  --paper-100: #F4F3F0;   /* muted section */
  --paper-200: #EAE8E3;   /* sunken / tracks */
  --line:        #E6E4DF;
  --line-strong: #D8D5CE;

  /* -- Palette: ink -------------------------------------------------- */
  --ink-900: #1D1D1B;
  --ink-700: #3C3A37;
  --ink-500: #5F5E5A;
  --ink-400: #8A8883;

  /* -- Palette: amber (ratings / deals) ------------------------------ */
  --amber-500: #F5B01E;
  --amber-100: #FCEBC4;

  /* -- Semantic colours ---------------------------------------------- */
  --color-bg:             var(--paper-50);
  --color-surface:        var(--paper-0);
  --color-surface-muted:  var(--paper-100);
  --color-surface-sunken: var(--paper-200);
  --color-border:         var(--line);
  --color-border-strong:  var(--line-strong);

  --color-text:        var(--ink-900);
  --color-text-muted:  var(--ink-500);
  --color-text-subtle: var(--ink-400);

  --color-primary:        var(--red-500);
  --color-primary-hover:  var(--red-600);
  --color-primary-active: var(--red-700);
  --color-primary-strong: var(--red-700);   /* red TEXT/links on light (AA) */
  --color-primary-tint:   var(--red-50);
  --color-primary-tint-2: var(--red-100);
  --color-primary-border: var(--red-200);
  --color-on-primary:     #FFFFFF;
  /* Darkened brand red for SOLID fills carrying white small/regular text:
     white on #E83428 is 4.25:1 (AA only for large/bold + UI); white on
     #CB2418 is 5.5:1 (AA for normal text). Use on promo bar, popular badge,
     active chips, skip link. Buttons intentionally keep --color-primary. */
  --color-primary-aa:     var(--red-600);

  /* accent == brand in this monochrome-red system */
  --color-accent:        var(--red-500);
  --color-accent-strong: var(--red-700);
  --color-on-accent:     #FFFFFF;

  --color-star: var(--amber-500);

  /* status */
  --color-success:    #1F8A54;
  --color-success-bg: #E1F1E8;
  --color-warning:    #9A6A12;
  --color-warning-bg: #FBEFD3;
  --color-danger:     var(--red-700);
  --color-danger-bg:  #FBE3DF;

  /* inverse (dark charcoal surfaces: footer, opt-in bands) */
  --color-inverse-surface:   #211F1C;
  --color-inverse-surface-2: #171614;
  --color-inverse-text:       #F6F4F0;
  --color-inverse-text-muted: rgba(246, 244, 240, 0.66);
  --color-inverse-border:     rgba(255, 255, 255, 0.12);

  --color-ring: var(--red-500);

  /* -- Typography (system font stack, DoorDash-style) ---------------- */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
               sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  /* headings use the same family at heavier weight */
  --font-display: var(--font-sans);

  --fs-display: clamp(2.5rem, 1.65rem + 3.6vw, 3.9rem);
  --fs-h1: clamp(2.05rem, 1.5rem + 2.3vw, 3rem);
  --fs-h2: clamp(1.65rem, 1.3rem + 1.6vw, 2.35rem);
  --fs-h3: clamp(1.35rem, 1.18rem + 0.7vw, 1.7rem);
  --fs-h4: 1.2rem;
  --fs-lg: 1.125rem;
  --fs-base: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;

  --lh-tight:    1.05;
  --lh-snug:     1.15;
  --lh-heading:  1.22;
  --lh-base:     1.6;
  --lh-relaxed:  1.7;

  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;
  --fw-black:    800;

  --ls-tight:  -0.02em;
  --ls-snug:   -0.011em;
  --ls-normal: 0;
  --ls-wide:   0.01em;
  --ls-eyebrow: 0.08em;

  /* -- Spacing (4px base) -------------------------------------------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --section-y: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);

  /* -- Radii --------------------------------------------------------- */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-pill: 999px;

  /* -- Elevation (neutral, layered) ---------------------------------- */
  --shadow-xs: 0 1px 2px rgba(24, 20, 18, 0.05);
  --shadow-sm: 0 1px 2px rgba(24, 20, 18, 0.06), 0 1px 3px rgba(24, 20, 18, 0.05);
  --shadow-md: 0 2px 6px -2px rgba(24, 20, 18, 0.07), 0 6px 16px -4px rgba(24, 20, 18, 0.10);
  --shadow-lg: 0 6px 14px -6px rgba(24, 20, 18, 0.10), 0 14px 32px -8px rgba(24, 20, 18, 0.14);
  --shadow-xl: 0 10px 22px -8px rgba(24, 20, 18, 0.12), 0 28px 60px -14px rgba(24, 20, 18, 0.20);
  --shadow-ring: 0 0 0 3px rgba(232, 52, 40, 0.26);

  /* -- Layout -------------------------------------------------------- */
  --container-max: 1200px;
  --container-wide: 1320px;
  --container-narrow: 760px;
  --container-pad: clamp(1.15rem, 0.6rem + 2.4vw, 2.25rem);
  --nav-h: 72px;

  /* -- Motion -------------------------------------------------------- */
  --dur-fast:   120ms;
  --dur-base:   200ms;
  --dur-slow:   320ms;
  --dur-slower: 520ms;
  --dur-album:  3600ms;   /* slow "photo-album" image zoom + scroll drift (user-tuned) */
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring:   cubic-bezier(0.34, 1.4, 0.5, 1);
  --ease-album:    cubic-bezier(0.22, 1, 0.36, 1);  /* gentle ease-out for the album zoom */
}

/* ---------------------------------------------------------------------
   03  BASE TYPOGRAPHY & ELEMENTS
   --------------------------------------------------------------------- */
body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  font-weight: var(--fw-regular);
  color: var(--color-text);
  background-color: var(--color-bg);
  letter-spacing: var(--ls-snug);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-snug);
  color: var(--color-text);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-snug); letter-spacing: var(--ls-tight); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-snug); letter-spacing: var(--ls-tight); }
h3 { font-size: var(--fs-h3); letter-spacing: var(--ls-tight); }
h4 { font-size: var(--fs-h4); font-weight: var(--fw-bold); letter-spacing: var(--ls-snug); }

p { color: var(--color-text); }

strong, b { font-weight: var(--fw-bold); }

small { font-size: var(--fs-sm); }

a:not([class]) {
  color: var(--color-primary-strong);
  font-weight: var(--fw-medium);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--color-primary-strong) 40%, transparent);
  transition: color var(--dur-fast) var(--ease-standard);
}
a:not([class]):hover { color: var(--color-primary-hover); text-decoration-color: currentColor; }

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-8) 0;
}

:focus-visible {
  outline: 2px solid var(--color-ring);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* ---------------------------------------------------------------------
   04  LAYOUT
   --------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.container--wide   { max-width: var(--container-wide); }
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); }
.section--tight   { padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section--flush-top { padding-top: 0; }
.section--muted   { background: var(--color-surface-muted); }
.section--sunken  { background: var(--color-surface-sunken); }
.section--inverse {
  background: var(--color-inverse-surface);
  color: var(--color-inverse-text);
}
.section--inverse :where(h1, h2, h3, h4, p) { color: var(--color-inverse-text); }

/* Grids */
.grid { display: grid; gap: var(--space-6); }
.grid--2 { grid-template-columns: repeat(1, 1fr); }
.grid--3 { grid-template-columns: repeat(1, 1fr); }
.grid--4 { grid-template-columns: repeat(1, 1fr); }
.grid--auto {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Split: content + aside (checkout/quiz) */
.split { display: grid; gap: var(--space-8); align-items: start; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: var(--space-12); }
  .split--wide-aside { grid-template-columns: minmax(0, 1fr) minmax(340px, 440px); }
}

/* Stack: vertical rhythm */
.stack > * + * { margin-top: var(--space-4); }
.stack--sm > * + * { margin-top: var(--space-2); }
.stack--lg > * + * { margin-top: var(--space-6); }
.stack--xl > * + * { margin-top: var(--space-8); }

/* Cluster: horizontal wrap */
.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}
.cluster--sm { gap: var(--space-2); }
.cluster--between { justify-content: space-between; }

/* Row: space-between align-center */
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.flow > * + * { margin-top: var(--space-5); }

/* ---------------------------------------------------------------------
   05  TYPE HELPERS
   --------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--color-primary-strong);
}
.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow--plain::before { display: none; }
.section--inverse .eyebrow { color: var(--red-300); }

.lead {
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
  color: var(--color-text-muted);
}

.section-head { max-width: 44rem; margin-bottom: var(--space-10); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head__title { margin-top: var(--space-3); }
.section-head__subtitle {
  margin-top: var(--space-4);
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
  color: var(--color-text-muted);
}

.text-center { text-align: center; }
.text-muted  { color: var(--color-text-muted); }
.text-subtle { color: var(--color-text-subtle); }
.text-accent { color: var(--color-accent-strong); }
.text-primary { color: var(--color-primary-strong); }
.text-inverse { color: var(--color-inverse-text); }
.text-balance { text-wrap: balance; }
.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ---------------------------------------------------------------------
   06  BUTTONS
   --------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--color-primary);
  --btn-fg: var(--color-on-primary);
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.8rem 1.4rem;
  min-height: 48px;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  line-height: 1;
  letter-spacing: var(--ls-normal);
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-standard),
              box-shadow var(--dur-base) var(--ease-standard),
              background-color var(--dur-base) var(--ease-standard),
              border-color var(--dur-base) var(--ease-standard),
              color var(--dur-base) var(--ease-standard);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--color-ring); outline-offset: 3px; }
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none;
}

/* Primary (brand red). White label is 700-weight; deepens to AA on hover. */
.btn--primary {
  --btn-bg: var(--color-primary);
  --btn-fg: var(--color-on-primary);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { --btn-bg: var(--color-primary-hover); box-shadow: var(--shadow-md); }
.btn--primary:active { --btn-bg: var(--color-primary-active); box-shadow: var(--shadow-sm); }

/* Accent == brand; alias kept for semantic call-sites */
.btn--accent {
  --btn-bg: var(--color-accent);
  --btn-fg: var(--color-on-accent);
  box-shadow: var(--shadow-sm);
}
.btn--accent:hover { --btn-bg: var(--color-primary-hover); box-shadow: var(--shadow-md); }
.btn--accent:active { --btn-bg: var(--color-primary-active); }

/* Secondary (outlined) */
.btn--secondary {
  --btn-bg: var(--color-surface);
  --btn-fg: var(--color-primary-strong);
  --btn-bd: var(--color-border-strong);
}
.btn--secondary:hover {
  --btn-bd: var(--color-primary-border);
  background: var(--color-primary-tint);
  box-shadow: var(--shadow-sm);
}
.btn--secondary:active { background: var(--color-primary-tint-2); }

/* Ghost (text) */
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--color-text);
  --btn-bd: transparent;
  min-height: 44px;
  padding: 0.6rem 0.9rem;
}
.btn--ghost:hover { background: var(--color-surface-muted); transform: none; }
.btn--ghost:active { background: var(--color-surface-sunken); }

/* Inverse (on dark surfaces) */
.btn--inverse {
  --btn-bg: #FFFFFF;
  --btn-fg: var(--ink-900);
  --btn-bd: transparent;
}
.btn--inverse:hover { --btn-bg: #FFFFFF; box-shadow: var(--shadow-md); }
.btn--inverse-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--color-inverse-text);
  --btn-bd: var(--color-inverse-border);
}
.btn--inverse-ghost:hover { background: rgba(255,255,255,0.08); transform: none; }

/* Sizes */
.btn--sm { min-height: 40px; padding: 0.55rem 1rem; font-size: var(--fs-sm); }
.btn--lg { min-height: 56px; padding: 1rem 1.9rem; font-size: var(--fs-lg); }
.btn--block { display: flex; width: 100%; }

.btn__icon { width: 1.15em; height: 1.15em; flex: none; }
.btn--icon {
  padding: 0; width: 48px; height: 48px; min-height: 48px; border-radius: var(--radius-pill);
}
.btn--icon.btn--sm { width: 40px; height: 40px; min-height: 40px; }

.btn__arrow { transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------------------------------------------------------------------
   07  BADGES, TAGS, CHIPS
   --------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.28rem 0.6rem;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  line-height: 1.2;
  border-radius: var(--radius-sm);
  background: var(--color-surface-muted);
  color: var(--color-text-muted);
}
.badge--primary { background: var(--color-primary-tint-2); color: var(--color-primary-strong); }
.badge--accent  { background: var(--color-primary-tint-2); color: var(--color-primary-strong); }
.badge--success { background: var(--color-success-bg); color: var(--color-success); }
.badge--gold    { background: var(--amber-100); color: #855C09; }
.badge--outline { background: transparent; border: 1px solid var(--color-border-strong); color: var(--color-text-muted); }

/* "Most popular" flag — the anchor badge for the recommended plan.
   Uses the AA-safe red: 12px bold white would fail on #E83428 (4.25:1). */
.badge--popular {
  padding: 0.4rem 0.85rem;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  border-radius: var(--radius-pill);
  background: var(--color-primary-aa);
  color: var(--color-on-primary);
  box-shadow: var(--shadow-sm);
}

/* Tags (dietary / allergen). Static, non-interactive. */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.3rem 0.7rem;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  line-height: 1.3;
  color: var(--color-text-muted);
  background: var(--color-surface-muted);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
}
.tag--diet    { background: var(--color-primary-tint); color: var(--color-primary-strong); }
.tag--allergen{ background: var(--color-warning-bg); color: var(--color-warning); }

/* Filter chip (interactive) */
button.tag, .chip {
  cursor: pointer;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  color: var(--color-text-muted);
  padding: 0.5rem 0.95rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-pill);
  transition: all var(--dur-fast) var(--ease-standard);
}
button.tag:hover, .chip:hover { border-color: var(--color-primary-border); color: var(--color-text); }
button.tag.is-active, .chip.is-active, .chip[aria-pressed="true"] {
  background: var(--color-primary-aa);   /* AA-safe: 14px white would fail on #E83428 */
  border-color: var(--color-primary-aa);
  color: var(--color-on-primary);
}

.pill {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 0.4rem 0.85rem;
  font-size: var(--fs-sm); font-weight: var(--fw-medium);
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-pill); color: var(--color-text-muted);
}

/* ---------------------------------------------------------------------
   08  CARDS
   --------------------------------------------------------------------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card--pad { padding: var(--space-6); }
.card--pad-lg { padding: var(--space-8); }
.card--interactive { transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.card--interactive:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* -- Plan card ----------------------------------------------------- */
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan-card__viz, .plan-card__media { aspect-ratio: 16 / 10; }
.plan-card__body { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); flex: 1; }
.plan-card__cat {
  font-size: var(--fs-xs); font-weight: var(--fw-bold);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--color-primary-strong);
}
.plan-card__name { font-size: var(--fs-h3); margin-top: calc(var(--space-1) * -1); }
.plan-card__tagline { color: var(--color-text-muted); font-size: var(--fs-sm); line-height: var(--lh-base); }
.plan-card__meta {
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4);
  padding-top: var(--space-4); margin-top: auto;
  font-size: var(--fs-sm); color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
}
.plan-card__meta-item { display: inline-flex; align-items: center; gap: var(--space-1); }
.plan-card__foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4);
  padding-top: var(--space-4);
}
.plan-card__price { display: flex; flex-direction: column; gap: 2px; }
.plan-card__price-from { font-size: var(--fs-xs); color: var(--color-text-subtle); text-transform: uppercase; letter-spacing: var(--ls-wide); }
.plan-card__price-value { font-size: var(--fs-h3); font-weight: var(--fw-black); line-height: 1; letter-spacing: var(--ls-tight); }
.plan-card__price-unit { font-size: var(--fs-sm); color: var(--color-text-muted); }

/* Featured / recommended plan */
.plan-card--featured {
  border-color: var(--color-primary-border);
  box-shadow: var(--shadow-lg);
}
.plan-card--featured::before {
  content: "";
  position: absolute; inset: 0;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  pointer-events: none;
  z-index: 3;
}
.plan-card__flag {
  position: absolute; top: var(--space-4); right: var(--space-4); z-index: 4;
}

/* -- Dish card ----------------------------------------------------- */
.dish-card {
  display: flex; flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.dish-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.dish-card:focus-within { box-shadow: var(--shadow-md), var(--shadow-ring); }
.dish-card__viz, .dish-card__media { aspect-ratio: 4 / 3; position: relative; }
.dish-card__type {
  position: absolute; top: var(--space-3); left: var(--space-3); z-index: 3;
  font-size: var(--fs-xs); font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide); text-transform: uppercase;
  padding: 0.25rem 0.55rem; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.92); color: var(--ink-900);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.dish-card__body { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); flex: 1; }
.dish-card__name { font-size: var(--fs-base); font-weight: var(--fw-bold); line-height: var(--lh-snug); letter-spacing: var(--ls-snug); }
.dish-card__kcal { display: inline-flex; align-items: baseline; gap: 0.3ch; font-weight: var(--fw-bold); }
.dish-card__kcal span { font-size: var(--fs-sm); font-weight: var(--fw-regular); color: var(--color-text-muted); }
.dish-card__tags { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: auto; }

/* Macros strip */
.macros { display: flex; gap: var(--space-4); }
.macros--boxed {
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.macros--boxed .macro { flex: 1; padding: var(--space-3); text-align: center; }
.macros--boxed .macro + .macro { border-left: 1px solid var(--color-border); }
.macro { display: flex; flex-direction: column; gap: 2px; }
.macro__value { font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }
.macro__label { font-size: var(--fs-xs); color: var(--color-text-muted); text-transform: uppercase; letter-spacing: var(--ls-wide); }

/* -- Testimonial --------------------------------------------------- */
.testimonial {
  display: flex; flex-direction: column; gap: var(--space-4);
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.testimonial__quote {
  font-size: var(--fs-lg);
  line-height: var(--lh-base);
  letter-spacing: var(--ls-snug);
  font-weight: var(--fw-medium);
  color: var(--color-text);
}
.testimonial__author { display: flex; align-items: center; gap: var(--space-3); margin-top: auto; }
.testimonial__name { font-weight: var(--fw-bold); font-size: var(--fs-sm); }
.testimonial__detail { font-size: var(--fs-xs); color: var(--color-text-muted); }

/* ---------------------------------------------------------------------
   09  STATS
   --------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { display: flex; flex-direction: column; gap: var(--space-1); }
.stat--center { text-align: center; align-items: center; }
.stat__value {
  font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem);
  font-weight: var(--fw-black);
  line-height: 1;
  letter-spacing: var(--ls-tight);
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}
.stat__label { font-size: var(--fs-sm); color: var(--color-text-muted); }
.section--inverse .stat__value { color: var(--color-inverse-text); }
.section--inverse .stat__label { color: var(--color-inverse-text-muted); }

/* ---------------------------------------------------------------------
   10  STAR RATING
   --------------------------------------------------------------------- */
.stars {
  --rating: 5;
  --star-size: 1rem;
  position: relative;
  display: inline-block;
  font-size: var(--star-size);
  line-height: 1;
  white-space: nowrap;
}
.stars::before {
  content: "\2605\2605\2605\2605\2605";
  letter-spacing: 2px;
  color: var(--color-border-strong);
}
.stars__fill {
  position: absolute; inset: 0; overflow: hidden;
  width: calc(var(--rating) / 5 * 100%);
  color: var(--color-star);
}
.stars__fill::before {
  content: "\2605\2605\2605\2605\2605";
  letter-spacing: 2px;
}
.stars--lg { --star-size: 1.25rem; }

/* ---------------------------------------------------------------------
   11  FORMS
   --------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field__label { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--color-text); }
.field__label .req { color: var(--color-danger); }
.field__hint { font-size: var(--fs-xs); color: var(--color-text-muted); }
.field__error { font-size: var(--fs-xs); color: var(--color-danger); display: none; }
.field.is-invalid .field__error { display: block; }

.input, .textarea, .select {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  font-size: var(--fs-base);
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard), background-color var(--dur-base) var(--ease-standard);
  -webkit-appearance: none; appearance: none;
}
.textarea { min-height: 112px; padding: 0.8rem 0.9rem; resize: vertical; line-height: var(--lh-base); }
.input::placeholder, .textarea::placeholder { color: var(--color-text-subtle); }
.input:hover, .textarea:hover, .select:hover { border-color: var(--color-primary-border); }
.input:focus-visible, .textarea:focus-visible, .select:focus-visible,
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-ring);
  background: var(--color-surface);
}
.field.is-invalid :where(.input, .textarea, .select) {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 3px rgba(168, 29, 16, 0.18);
}
.input:disabled, .textarea:disabled, .select:disabled {
  background: var(--color-surface-muted); color: var(--color-text-subtle); cursor: not-allowed;
}

/* Select with chevron */
.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute; top: 50%; right: 0.95rem;
  width: 0.6rem; height: 0.6rem;
  border-right: 2px solid var(--color-text-muted);
  border-bottom: 2px solid var(--color-text-muted);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}
.select { padding-right: 2.4rem; cursor: pointer; }

/* Input with leading icon */
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); color: var(--color-text-subtle); width: 1.1rem; height: 1.1rem; }
.input-icon .input { padding-left: 2.5rem; }

/* Input group (attach a button, e.g. promo code) */
.input-group { display: flex; align-items: stretch; gap: var(--space-2); }
.input-group .input { flex: 1; }
.input-group .btn { flex: none; }

/* Radio-card & check-card (choice architecture) */
.radio-card, .check-card {
  position: relative;
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard), background-color var(--dur-base) var(--ease-standard), transform var(--dur-fast) var(--ease-standard);
}
.radio-card:hover, .check-card:hover { border-color: var(--color-primary-border); background: var(--color-primary-tint); }
.radio-card__input, .check-card__input {
  position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none;
}
.radio-card__body, .check-card__body { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.radio-card__title, .check-card__title { font-weight: var(--fw-semibold); }
.radio-card__desc, .check-card__desc { font-size: var(--fs-sm); color: var(--color-text-muted); }
.radio-card__icon { font-size: 1.5rem; line-height: 1; flex: none; }
.radio-card__check, .check-card__check {
  flex: none; width: 1.4rem; height: 1.4rem; border-radius: var(--radius-pill);
  border: 2px solid var(--color-border-strong);
  display: grid; place-items: center;
  transition: all var(--dur-base) var(--ease-standard);
}
.check-card__check { border-radius: var(--radius-xs); }
.radio-card__check::after {
  content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%;
  background: var(--color-on-primary); transform: scale(0);
  transition: transform var(--dur-base) var(--ease-spring);
}
.check-card__check::after {
  content: ""; width: 0.65rem; height: 0.4rem;
  border-left: 2px solid var(--color-on-primary); border-bottom: 2px solid var(--color-on-primary);
  transform: rotate(-45deg) scale(0); margin-top: -2px;
  transition: transform var(--dur-base) var(--ease-spring);
}
.radio-card:has(:checked), .check-card:has(:checked) {
  border-color: var(--color-primary);
  background: var(--color-primary-tint);
  box-shadow: var(--shadow-sm);
}
.radio-card:has(:checked) .radio-card__check,
.check-card:has(:checked) .check-card__check {
  border-color: var(--color-primary); background: var(--color-primary);
}
.radio-card:has(:checked) .radio-card__check::after,
.check-card:has(:checked) .check-card__check::after { transform: rotate(0) scale(1); }
.check-card:has(:checked) .check-card__check::after { transform: rotate(-45deg) scale(1); }
.radio-card:has(:focus-visible), .check-card:has(:focus-visible) {
  outline: 2px solid var(--color-ring); outline-offset: 2px;
}
.radio-card--tile {
  flex-direction: column; text-align: center; justify-content: center;
  gap: var(--space-2); padding: var(--space-6);
}
.radio-card--tile .radio-card__check { display: none; }

/* Stepper (quantity) */
.stepper {
  display: inline-flex; align-items: center;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  overflow: hidden;
}
.stepper__btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  font-size: 1.25rem; color: var(--color-primary-strong);
  transition: background-color var(--dur-fast) var(--ease-standard);
}
.stepper__btn:hover { background: var(--color-primary-tint); }
.stepper__btn:disabled { color: var(--color-text-subtle); cursor: not-allowed; background: transparent; }
.stepper__value {
  min-width: 2.5rem; text-align: center; font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums;
}

/* Segmented control */
.segmented {
  display: inline-flex; padding: 4px; gap: 2px;
  background: var(--color-surface-sunken);
  border-radius: var(--radius-pill);
}
.segmented--block { display: flex; width: 100%; }
.segmented--block .segmented__option { flex: 1; }
.segmented__option {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2);
  padding: 0.6rem 1.1rem; min-height: 40px;
  font-size: var(--fs-sm); font-weight: var(--fw-bold);
  color: var(--color-text-muted);
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-align: center;
  transition: color var(--dur-base) var(--ease-standard), background-color var(--dur-base) var(--ease-standard);
}
.segmented__option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented__option:hover { color: var(--color-text); }
.segmented__option:has(:checked) {
  background: var(--color-surface);
  color: var(--color-primary-strong);
  box-shadow: var(--shadow-sm);
}
.segmented__option:has(:focus-visible) { outline: 2px solid var(--color-ring); outline-offset: 2px; }
.segmented__option .badge { margin-left: 0.25rem; }

/* ---------------------------------------------------------------------
   12  PROGRESS (quiz goal-gradient)
   --------------------------------------------------------------------- */
.progress { display: flex; flex-direction: column; gap: var(--space-3); }
.progress__meta { display: flex; justify-content: space-between; align-items: baseline; }
.progress__count { font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--color-primary-strong); }
.progress__label { font-size: var(--fs-sm); color: var(--color-text-muted); }
.progress__track {
  position: relative; height: 8px; border-radius: var(--radius-pill);
  background: var(--color-surface-sunken); overflow: hidden;
}
.progress__bar {
  position: absolute; inset: 0 auto 0 0; height: 100%;
  width: var(--progress, 0%);
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--color-primary-active), var(--color-primary));
  transition: width var(--dur-slow) var(--ease-out);
}
.progress__steps { display: flex; align-items: center; gap: var(--space-2); }
.progress__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-border-strong);
  transition: all var(--dur-base) var(--ease-standard);
}
.progress__dot.is-current { width: 24px; border-radius: var(--radius-pill); background: var(--color-primary); }
.progress__dot.is-done { background: var(--color-primary-border); }

/* ---------------------------------------------------------------------
   13  ACCORDION (native <details>)
   --------------------------------------------------------------------- */
.accordion { display: flex; flex-direction: column; }
.accordion__item { border-bottom: 1px solid var(--color-border); }
.accordion__item:first-child { border-top: 1px solid var(--color-border); }
.accordion__trigger {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-5) var(--space-1);
  font-size: var(--fs-h4); font-weight: var(--fw-bold);
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  transition: color var(--dur-fast) var(--ease-standard);
}
.accordion__trigger::-webkit-details-marker { display: none; }
.accordion__trigger:hover { color: var(--color-primary-strong); }
.accordion__trigger:focus-visible { outline: 2px solid var(--color-ring); outline-offset: 2px; border-radius: var(--radius-xs); }
.accordion__icon {
  flex: none; width: 1.25rem; height: 1.25rem; color: var(--color-primary);
  transition: transform var(--dur-slow) var(--ease-out);
}
.accordion__item[open] .accordion__icon { transform: rotate(180deg); }
.accordion__panel {
  padding: 0 var(--space-1) var(--space-5);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
  max-width: 60ch;
}
.accordion__item[open] .accordion__panel { animation: accordion-in var(--dur-slow) var(--ease-out); }
@keyframes accordion-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------------------------------------------------------------------
   14  MODAL
   --------------------------------------------------------------------- */
.modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
}
@media (min-width: 640px) { .modal { align-items: center; padding: var(--space-6); } }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(20, 18, 16, 0.5);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity var(--dur-base) var(--ease-standard);
}
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__dialog {
  position: relative; z-index: 1;
  width: 100%; max-width: 560px;
  max-height: 92vh; overflow-y: auto;
  background: var(--color-surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: var(--shadow-xl);
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur-base) var(--ease-standard);
}
@media (min-width: 640px) { .modal__dialog { border-radius: var(--radius-xl); } }
.modal.is-open .modal__dialog { transform: translateY(0) scale(1); opacity: 1; }
.modal__header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-6) var(--space-6) 0;
}
.modal__title { font-size: var(--fs-h3); }
.modal__close {
  flex: none; width: 40px; height: 40px; border-radius: var(--radius-pill);
  display: grid; place-items: center; color: var(--color-text-muted);
  background: var(--color-surface-muted);
  transition: background-color var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard);
}
.modal__close:hover { background: var(--color-surface-sunken); color: var(--color-text); }
.modal__body { padding: var(--space-6); }
.modal__foot {
  display: flex; gap: var(--space-3); justify-content: flex-end;
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid var(--color-border);
  position: sticky; bottom: 0; background: var(--color-surface);
}
body.modal-open { overflow: hidden; }

/* ---------------------------------------------------------------------
   15  SUMMARY PANEL (price)
   --------------------------------------------------------------------- */
.summary {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.summary__head {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-5) var(--space-6);
  background: var(--color-primary-tint);
  border-bottom: 1px solid var(--color-border);
}
.summary__head .icon { color: var(--color-primary); }
.summary__title { font-size: var(--fs-h4); font-weight: var(--fw-bold); }
.summary__body { padding: var(--space-6); }
.summary__lines { display: flex; flex-direction: column; gap: var(--space-3); }
.summary__line { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); font-size: var(--fs-sm); }
.summary__line-label { color: var(--color-text-muted); display: inline-flex; align-items: center; gap: var(--space-2); }
.summary__line-value { font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; text-align: right; }
.summary__line--save .summary__line-value { color: var(--color-success); }
.summary__edit {
  font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--color-primary-strong);
  text-decoration: underline; text-underline-offset: 2px; margin-left: var(--space-2);
}
.summary__divider { height: 1px; background: var(--color-border); margin: var(--space-4) 0; border: none; }
.summary__total { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); }
.summary__total-label { font-weight: var(--fw-bold); font-size: var(--fs-base); }
.summary__total-value { font-size: var(--fs-h3); font-weight: var(--fw-black); letter-spacing: var(--ls-tight); font-variant-numeric: tabular-nums; }
.summary__per-day { font-size: var(--fs-sm); color: var(--color-text-muted); text-align: right; margin-top: 2px; }
.summary__note {
  display: flex; align-items: center; gap: var(--space-2);
  margin-top: var(--space-4); padding-top: var(--space-4);
  border-top: 1px dashed var(--color-border);
  font-size: var(--fs-xs); color: var(--color-text-muted);
}
.summary__foot { padding: 0 var(--space-6) var(--space-6); }
.summary--sticky { position: sticky; top: calc(var(--nav-h) + var(--space-4)); }

/* ---------------------------------------------------------------------
   16  PROMO BANNER (brand red)
   --------------------------------------------------------------------- */
.promo-banner {
  position: relative;
  background: var(--color-primary-aa);   /* AA-safe: banner text is regular weight */
  color: var(--color-on-primary);
}
.promo-banner__inner {
  display: flex; align-items: center; justify-content: center; gap: var(--space-3);
  flex-wrap: wrap;
  padding: 0.7rem var(--space-12) 0.7rem var(--container-pad);
  min-height: 44px;
  text-align: center;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}
.promo-banner__code {
  font-weight: var(--fw-bold); letter-spacing: var(--ls-wide);
  padding: 0.15rem 0.55rem; border-radius: var(--radius-xs);
  background: rgba(255,255,255,0.18);
  color: #fff;
}
.promo-banner__link { color: #fff; font-weight: var(--fw-bold); text-decoration: underline; text-underline-offset: 2px; }
.promo-banner__link:hover { opacity: 0.85; }
.promo-banner__close {
  position: absolute; right: var(--space-4); top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: var(--radius-pill);
  display: grid; place-items: center; color: rgba(255,255,255,0.85);
  transition: background-color var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard);
}
.promo-banner__close:hover { background: rgba(255,255,255,0.18); color: #fff; }

/* ---------------------------------------------------------------------
   17  NAVIGATION
   --------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 900;
  background: color-mix(in srgb, var(--color-bg) 85%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard), background-color var(--dur-base) var(--ease-standard);
}
/* DO NOT REVERT — keep backdrop-filter on this ::before, NEVER on .nav.
   Frosted glass lives on a pseudo-element so .nav itself does not become a
   containing block for the fixed .nav__drawer: backdrop-filter (like filter/
   transform) would trap the fixed drawer, collapsing the mobile menu. See
   DESIGN_SYSTEM §4.2 "Invariant". */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
}
.nav.is-scrolled { border-bottom-color: var(--color-border); box-shadow: var(--shadow-sm); background: color-mix(in srgb, var(--color-bg) 94%, transparent); }
.nav__inner {
  display: flex; align-items: center; gap: var(--space-6);
  height: var(--nav-h);
  max-width: var(--container-max); margin-inline: auto;
  padding-inline: var(--container-pad);
}
.nav__brand { display: inline-flex; align-items: center; gap: var(--space-2); flex: none; }
.nav__logo { width: 30px; height: 30px; color: var(--color-primary); }
.nav__wordmark {
  font-size: 1.35rem; font-weight: var(--fw-black);
  letter-spacing: var(--ls-tight); color: var(--color-text);
}
.nav__menu { display: none; align-items: center; gap: var(--space-2); }
.nav__link {
  display: inline-flex; align-items: center;
  padding: 0.5rem 0.85rem; border-radius: var(--radius-pill);
  font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--color-text-muted);
  transition: color var(--dur-fast) var(--ease-standard), background-color var(--dur-fast) var(--ease-standard);
}
.nav__link:hover { color: var(--color-text); background: var(--color-surface-muted); }
.nav__link--active, .nav__link[aria-current="page"] { color: var(--color-primary-strong); font-weight: var(--fw-bold); }
.nav__actions { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; }
.nav__account {
  width: 44px; height: 44px; border-radius: var(--radius-pill);
  display: grid; place-items: center; color: var(--color-text);
  border: 1px solid var(--color-border-strong);
  transition: border-color var(--dur-fast) var(--ease-standard), background-color var(--dur-fast) var(--ease-standard);
}
.nav__account:hover { border-color: var(--color-primary-border); background: var(--color-primary-tint); }
.nav__account .icon { width: 1.25rem; height: 1.25rem; }
.nav__cta { display: none; }
.nav__toggle {
  width: 44px; height: 44px; border-radius: var(--radius-pill);
  display: grid; place-items: center; color: var(--color-text);
}
.nav__toggle .bars { position: relative; width: 20px; height: 14px; }
.nav__toggle .bars::before, .nav__toggle .bars::after, .nav__toggle .bars span {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast) var(--ease-standard);
}
.nav__toggle .bars::before { top: 0; }
.nav__toggle .bars span { top: 6px; }
.nav__toggle .bars::after { bottom: 0; }

/* Mobile drawer */
.nav__drawer {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 899;
  padding: var(--space-6) var(--container-pad) var(--space-10);
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  display: flex; flex-direction: column; gap: var(--space-2);
  transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-out), visibility var(--dur-base);
  overflow-y: auto;
}
.nav.is-open .nav__drawer { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
.nav__drawer .nav__link {
  font-size: var(--fs-lg); padding: var(--space-4) var(--space-2);
  border-bottom: 1px solid var(--color-border); border-radius: 0;
}
.nav__drawer .btn { margin-top: var(--space-4); }
.nav.is-open .nav__toggle .bars span { opacity: 0; }
.nav.is-open .nav__toggle .bars::before { top: 6px; transform: rotate(45deg); }
.nav.is-open .nav__toggle .bars::after { bottom: 6px; transform: rotate(-45deg); }

@media (min-width: 960px) {
  .nav__menu { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
  .nav__drawer { display: none; }
}

/* ---------------------------------------------------------------------
   18  FOOTER (dark charcoal)
   --------------------------------------------------------------------- */
.footer {
  background: var(--color-inverse-surface-2);
  color: var(--color-inverse-text);
  padding-block: var(--space-16) var(--space-8);
}
.footer__top {
  display: grid; gap: var(--space-10);
  grid-template-columns: 1fr;
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--color-inverse-border);
}
@media (min-width: 720px) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-8); } }
@media (min-width: 1024px) { .footer__top { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer__brand { display: flex; flex-direction: column; gap: var(--space-4); max-width: 32ch; }
.footer__brand .nav__wordmark { color: var(--color-inverse-text); }
.footer__brand .nav__logo { color: var(--red-400); }
.footer__brand-mark { display: inline-flex; align-items: center; gap: var(--space-2); }
.footer__blurb { color: var(--color-inverse-text-muted); font-size: var(--fs-sm); line-height: var(--lh-relaxed); }
.footer__col { min-width: 0; }
.footer__col-title {
  font-size: var(--fs-xs); font-weight: var(--fw-bold);
  text-transform: uppercase; letter-spacing: var(--ls-eyebrow);
  color: var(--color-inverse-text-muted); margin-bottom: var(--space-4);
}
.footer__nav { display: flex; flex-direction: column; gap: var(--space-3); }
.footer__link {
  color: var(--color-inverse-text-muted); font-size: var(--fs-sm);
  transition: color var(--dur-fast) var(--ease-standard);
  width: fit-content;
}
.footer__link:hover { color: var(--color-inverse-text); }
.footer__newsletter { margin-top: var(--space-2); }
.footer__newsletter .input {
  background: rgba(255,255,255,0.06); border-color: var(--color-inverse-border); color: #fff;
}
.footer__newsletter .input::placeholder { color: rgba(246,244,240,0.5); }
.footer__newsletter .input:focus { border-color: var(--red-400); box-shadow: 0 0 0 3px rgba(238,90,71,0.25); }
.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-4); padding-top: var(--space-8);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); font-size: var(--fs-xs); color: var(--color-inverse-text-muted); }
.footer__legal a { transition: color var(--dur-fast) var(--ease-standard); }
.footer__legal a:hover { color: var(--color-inverse-text); }
.footer__social { display: flex; gap: var(--space-2); }
.footer__social a {
  width: 40px; height: 40px; border-radius: var(--radius-pill);
  display: grid; place-items: center; color: var(--color-inverse-text-muted);
  border: 1px solid var(--color-inverse-border);
  transition: color var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard);
}
.footer__social a:hover { color: var(--color-inverse-text); border-color: var(--red-400); }
.footer__pay { display: flex; align-items: center; gap: var(--space-3); color: var(--color-inverse-text-muted); font-size: var(--fs-xs); }

/* ---------------------------------------------------------------------
   19  HERO
   --------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(58% 55% at 84% 10%, rgba(232,52,40,0.10), transparent 60%),
    radial-gradient(52% 60% at 6% 96%, rgba(245,176,30,0.12), transparent 62%);
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; gap: var(--space-10);
  padding-block: clamp(2.5rem, 2rem + 4vw, 5rem) var(--section-y);
  align-items: center;
}
@media (min-width: 960px) { .hero__inner { grid-template-columns: 1.05fr 0.95fr; gap: var(--space-16); } }
.hero__content { display: flex; flex-direction: column; gap: var(--space-6); max-width: 40rem; }
.hero__title { font-size: var(--fs-display); font-weight: var(--fw-black); line-height: var(--lh-tight); letter-spacing: var(--ls-tight); }
.hero__sub { font-size: var(--fs-lg); line-height: var(--lh-relaxed); color: var(--color-text-muted); max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero__proof {
  display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap;
  margin-top: var(--space-2); font-size: var(--fs-sm); color: var(--color-text-muted);
}
.hero__proof-avatars { display: flex; }
.hero__proof-avatars .avatar { margin-left: -10px; border: 2px solid var(--color-bg); }
.hero__proof-avatars .avatar:first-child { margin-left: 0; }
.hero__media { position: relative; }

/* ---------------------------------------------------------------------
   20  STEPS (how it works)
   --------------------------------------------------------------------- */
.steps { display: grid; gap: var(--space-8); counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); } }
.step {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: var(--space-3);
  text-align: center;
}
.step__num {
  display: grid; place-items: center;
  width: 3rem; height: 3rem; border-radius: var(--radius-pill);
  font-size: var(--fs-h4); font-weight: var(--fw-black);
  color: var(--color-primary); background: var(--color-primary-tint-2);
  margin-bottom: var(--space-2);
}
.step__title { font-size: var(--fs-h4); font-weight: var(--fw-bold); }
.step__text { color: var(--color-text-muted); }
@media (min-width: 768px) {
  /* Dashed connector: from just right of this step's centred number circle
     (50% + 1.5rem circle radius) to just left of the next step's circle
     (50% of the equal-width neighbour column + the grid gap). */
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 1.5rem;
    left: calc(50% + 1.5rem + var(--space-4));
    right: calc(1.5rem + var(--space-4) - 50% - var(--space-6)); height: 2px;
    background: repeating-linear-gradient(90deg, var(--color-border-strong) 0 6px, transparent 6px 12px);
  }
}

/* ---------------------------------------------------------------------
   21  LOGO STRIP (press / partners, placeholder wordmarks)
   --------------------------------------------------------------------- */
.logos {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--space-8) var(--space-10);
}
.logos__item {
  font-weight: var(--fw-black);
  font-size: 1.15rem; letter-spacing: var(--ls-tight);
  color: var(--color-text-subtle); opacity: 0.9;
  display: inline-flex; align-items: center; gap: var(--space-2);
}
.logos__item .icon { width: 1.1rem; height: 1.1rem; }

/* ---------------------------------------------------------------------
   22  GUARANTEE STRIP / NOTE / TRUST ROW
   --------------------------------------------------------------------- */
.guarantee {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: var(--color-primary-tint);
  border: 1px solid var(--color-primary-tint-2);
  border-radius: var(--radius-lg);
}
.guarantee__icon {
  flex: none; width: 2.75rem; height: 2.75rem; border-radius: var(--radius-pill);
  display: grid; place-items: center; color: #fff; background: var(--color-primary);
}
.guarantee__icon .icon { width: 1.4rem; height: 1.4rem; }
.guarantee__title { font-weight: var(--fw-bold); }
.guarantee__text { font-size: var(--fs-sm); color: var(--color-text-muted); }

.note {
  display: flex; gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  background: var(--color-surface-muted);
  color: var(--color-text-muted);
}
.note .icon { flex: none; width: 1.25rem; height: 1.25rem; margin-top: 1px; }
.note--info    { background: var(--color-primary-tint); color: var(--color-primary-strong); }
.note--accent  { background: var(--color-primary-tint); color: var(--color-primary-strong); }
.note--success { background: var(--color-success-bg); color: var(--color-success); }

/* Trust row (reassurances near CTA) */
.trust-row { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); }
.trust-item { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--fs-sm); color: var(--color-text-muted); }
.trust-item .icon { width: 1.1rem; height: 1.1rem; color: var(--color-primary); flex: none; }
.section--inverse .trust-item { color: var(--color-inverse-text-muted); }
.section--inverse .trust-item .icon { color: var(--red-400); }

/* ---------------------------------------------------------------------
   23  PANEL / LIST-ROW / CONTACT / AVATAR / ICON-BADGE / EMPTY-STATE
   --------------------------------------------------------------------- */
.panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-5); }
.panel__title { font-size: var(--fs-h4); font-weight: var(--fw-bold); }

.list-row { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) 0; }
.list-row + .list-row { border-top: 1px solid var(--color-border); }
.list-row__main { flex: 1; min-width: 0; }
.list-row__title { font-weight: var(--fw-semibold); }
.list-row__sub { font-size: var(--fs-sm); color: var(--color-text-muted); }
.list-row__aside { flex: none; display: flex; align-items: center; gap: var(--space-2); }

/* Meal lineup row (account) */
.meal-row {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-3); border-radius: var(--radius-md);
  transition: background-color var(--dur-fast) var(--ease-standard);
}
.meal-row:hover { background: var(--color-surface-muted); }
.meal-row__viz, .meal-row__media { flex: none; width: 56px; height: 56px; border-radius: var(--radius-sm); overflow: hidden; position: relative; }
.meal-row__main { flex: 1; min-width: 0; }

.avatar {
  flex: none;
  width: 2.5rem; height: 2.5rem; border-radius: var(--radius-pill);
  display: grid; place-items: center;
  font-weight: var(--fw-bold); font-size: var(--fs-sm);
  color: var(--color-primary-strong); background: var(--color-primary-tint-2);
  overflow: hidden;
}
.avatar--lg { width: 3.5rem; height: 3.5rem; font-size: var(--fs-base); }
.avatar--clay, .avatar--amber { background: var(--amber-100); color: #855C09; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.icon-badge {
  flex: none; display: grid; place-items: center;
  width: 3rem; height: 3rem; border-radius: var(--radius-md);
  color: var(--color-primary); background: var(--color-primary-tint-2);
}
.icon-badge .icon { width: 1.4rem; height: 1.4rem; }
.icon-badge--accent, .icon-badge--amber { color: #855C09; background: var(--amber-100); }

/* Contact card (account manager / nutritionist) */
.contact-card {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-5);
  background: var(--color-primary-tint); border: 1px solid var(--color-primary-tint-2);
  border-radius: var(--radius-lg);
}
.contact-card__body { flex: 1; min-width: 0; }
.contact-card__role { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--ls-wide); color: var(--color-primary-strong); font-weight: var(--fw-bold); }
.contact-card__name { font-weight: var(--fw-bold); }
.contact-card__meta { font-size: var(--fs-sm); color: var(--color-text-muted); }

/* Empty state */
.empty-state {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: var(--space-4); padding: var(--space-16) var(--space-6);
  max-width: 30rem; margin-inline: auto;
}
.empty-state__icon {
  width: 4rem; height: 4rem; border-radius: var(--radius-pill);
  display: grid; place-items: center; font-size: 1.75rem;
  background: var(--color-primary-tint-2); color: var(--color-primary);
}
.empty-state__title { font-size: var(--fs-h3); }
.empty-state__text { color: var(--color-text-muted); }

/* ---------------------------------------------------------------------
   24  IMAGERY: real photos (.photo) over a .viz fallback
   Primary art direction is real food photography via .photo — an <img>
   that covers its frame. Behind it, the .viz gradient-tint + emoji
   "plate" is the graceful fallback shown before the photo loads or if it
   fails (pair the <img> with onerror="this.remove()"). Existing pages
   already render via .viz; builders drop a <img class="photo …"> into
   the same slot to layer real photography on top.
   --------------------------------------------------------------------- */

/* -- .photo : real image layer ------------------------------------- */
.photo {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.photo[hidden] { display: none; }

/* ---- Photo-album motion: slow hover zoom + scroll parallax ----------------
   Two effects share one element's transform, which is the classic trap: if the
   whole `transform` carries the ~2s zoom transition, the per-frame parallax
   translate gets transitioned too and smears into mush. We avoid it by
   composing transform from custom properties and transitioning ONLY the zoom:

     transform = translate3d(0, --img-shift, 0)  ← set by js/effects.js each frame
                 scale(--img-base * --img-hover)   ← pre-scale × hover zoom

   • --img-hover is @property-registered so it can *transition* smoothly.
   • --img-base (a plain var, never transitioned) is the resting pre-scale that
     gives the parallax its overscan so frame edges never show; effects.js sets
     it to 1 for non-parallax images. Because it is never in the transition list,
     turning parallax on at load does NOT animate a zoom-in.
   • --img-shift is a plain var updated every rAF frame — never transitioned, so
     the drift stays crisp while the zoom eases.                               */
@property --img-hover {
  syntax: "<number>";
  inherits: false;
  initial-value: 1;
}
.media__img, .photo {
  transform-origin: center;
  transform: translate3d(0, var(--img-shift, 0px), 0)
             scale(calc(var(--img-base, 1) * var(--img-hover, 1)));
  transition: --img-hover var(--dur-album) var(--ease-album);
  will-change: transform;
  backface-visibility: hidden;   /* steadier sub-pixel rendering during drift */
}
/* Slow zoom on hover — every cover image (cards, hero tiles, modal, thumbs).
   Proportionality rule (user-set): the VISIBLE hover growth scales with duration
   from the original baseline of +8% at 1800ms → +8% per 1800ms. At --dur-album
   3600ms that is +16%. Because --img-hover multiplies the composed scale, one
   value gives every image the same +16% visible growth regardless of --img-base:
   non-parallax 1.0→1.16; parallax 1.13→1.13×1.16≈1.31 (both +16% visible). */
.plan-card:hover .media__img, .dish-card:hover .media__img,
.card--interactive:hover .media__img, .media:hover .media__img,
.plan-card:hover .photo, .dish-card:hover .photo,
.card--interactive:hover .photo, .viz:hover .photo {
  --img-hover: 1.16;
}
/* Avatars: a subtle zoom, never parallax — they read as identity, not imagery.
   Same proportionality rule from a gentler baseline (+7% at 1800ms → +14% at 3600ms). */
.avatar img {
  transform-origin: center;
  transition: transform var(--dur-album) var(--ease-album);
}
.avatar:hover img { transform: scale(1.14); }
/* context variants used inside a .viz slot — aspect comes from the slot */
.photo--dish, .photo--plan, .photo--thumb, .photo--cover { /* base cover behaviour */ }
/* standalone framed images (hero / modal) — self-size, round, in-flow */
.photo--hero, .photo--modal {
  position: relative; z-index: auto;
  width: 100%; height: auto;
  display: block;
}
.photo--hero  { aspect-ratio: 4 / 3; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.photo--modal { aspect-ratio: 3 / 2; border-radius: var(--radius-lg); }

/* -- .media : self-contained card image (real photo + emoji-tint fallback)
   Used on card/tile slots (plan-card__media, dish-card__media, meal-row__media,
   hero-collage tiles). The <img class="media__img"> covers the frame; the
   .media__placeholder emoji + tinted gradient behind it is the graceful
   fallback while the photo loads or if it is missing. -------------------- */
.media {
  --media-a: #F0EDE7;
  --media-b: #E5E1D9;
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
  background: linear-gradient(150deg, var(--media-a), var(--media-b));
  isolation: isolate;
}
/* Card slots that own an aspect-ratio carry .media on the SAME element.
   height must stay auto there: cards are grid-stretched to equal heights,
   so .media's height:100% would squeeze each image by however tall that
   card's text body is — every image ends up a different height. */
.plan-card__media.media, .dish-card__media.media { height: auto; }
.media__img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.media__img[hidden] { display: none; }
.media__placeholder {
  position: absolute; inset: 0; z-index: 0;
  display: grid; place-items: center;
  font-size: clamp(2rem, 6vw, 3rem);
  opacity: 0.55;
  filter: saturate(0.9) drop-shadow(0 3px 6px rgba(24, 20, 18, 0.12));
  -webkit-user-select: none; user-select: none;
}
.media--sm .media__placeholder { font-size: 1.5rem; }

/* Meal-type tints (dishes) */
.media--breakfast { --media-a: #F7E7C6; --media-b: #EFDCB8; }
.media--lunch     { --media-a: #E4EAD1; --media-b: #D6DEBE; }
.media--dinner    { --media-a: #E8DCCE; --media-b: #DBCBB8; }
.media--snack     { --media-a: #F3DED8; --media-b: #EACFC7; }
/* Plan tints (categories) */
.media--lean    { --media-a: #E4EAD1; --media-b: #D3DDBB; }
.media--balance { --media-a: #EDE6CE; --media-b: #E2D8BB; }
.media--athlete { --media-a: #E1DAD1; --media-b: #D0C5B8; }
.media--plant   { --media-a: #DEEAC9; --media-b: #CBDDAF; }
.media--glow    { --media-a: #F4DFD8; --media-b: #ECCEC5; }
.media--steady  { --media-a: #DEE7E2; --media-b: #CBD9D1; }
.media--pure    { --media-a: #F0E6CB; --media-b: #E6D8B6; }
.media--mama    { --media-a: #F6DFC9; --media-b: #EFCEB0; }

/* -- .viz : gradient-tint + emoji fallback (retinted for the brand) - */
.viz {
  --viz-a: #F0EDE7;
  --viz-b: #E5E1D9;
  --viz-tint: rgba(255, 255, 255, 0.55);
  position: relative;
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background:
    radial-gradient(120% 120% at 25% 15%, var(--viz-tint), transparent 55%),
    linear-gradient(150deg, var(--viz-a), var(--viz-b));
  overflow: hidden;
  isolation: isolate;
}
.viz::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0.5;
  background-image: radial-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1.4px);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(120% 120% at 70% 90%, #000, transparent 70%);
  mask-image: radial-gradient(120% 120% at 70% 90%, #000, transparent 70%);
}
.viz__plate {
  position: relative; z-index: 1;
  width: 62%; aspect-ratio: 1; max-width: 130px;
  border-radius: var(--radius-pill);
  display: grid; place-items: center;
  background: radial-gradient(circle at 32% 28%, #ffffff, #f3efe8 78%);
  box-shadow: 0 10px 24px -8px rgba(24, 20, 18, 0.26), inset 0 0 0 6px rgba(255, 255, 255, 0.5);
}
.viz__art {
  font-size: clamp(2rem, 6vw, 3rem); line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(24, 20, 18, 0.16)) saturate(1.05);
  transform: rotate(-4deg);
  -webkit-user-select: none; user-select: none;
}
.viz--sm .viz__plate { max-width: 72px; }
.viz--sm .viz__art { font-size: 1.5rem; }

/* Meal-type tints (dishes) */
.viz--breakfast { --viz-a: #F7E7C6; --viz-b: #EFDCB8; --viz-tint: rgba(255, 255, 255, 0.6); }
.viz--lunch     { --viz-a: #E4EAD1; --viz-b: #D6DEBE; }
.viz--dinner    { --viz-a: #E8DCCE; --viz-b: #DBCBB8; }
.viz--snack     { --viz-a: #F3DED8; --viz-b: #EACFC7; }

/* Plan tints (categories) */
.viz--lean    { --viz-a: #E4EAD1; --viz-b: #D3DDBB; }
.viz--balance { --viz-a: #EDE6CE; --viz-b: #E2D8BB; }
.viz--athlete { --viz-a: #E1DAD1; --viz-b: #D0C5B8; }
.viz--plant   { --viz-a: #DEEAC9; --viz-b: #CBDDAF; }
.viz--glow    { --viz-a: #F4DFD8; --viz-b: #ECCEC5; }
.viz--steady  { --viz-a: #DEE7E2; --viz-b: #CBD9D1; }
.viz--pure    { --viz-a: #F0E6CB; --viz-b: #E6D8B6; }
.viz--mama    { --viz-a: #F6DFC9; --viz-b: #EFCEB0; }

/* ---------------------------------------------------------------------
   25  ICONS
   --------------------------------------------------------------------- */
.icon {
  display: inline-block;
  width: 1.25rem; height: 1.25rem;
  vertical-align: middle;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}
.icon--sm { width: 1rem; height: 1rem; }
.icon--lg { width: 1.75rem; height: 1.75rem; }
.icon--filled { fill: currentColor; stroke: none; }

/* ---------------------------------------------------------------------
   26  UTILITIES
   --------------------------------------------------------------------- */
.sr-only {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--space-4); top: -60px; z-index: 1100;
  padding: 0.7rem 1.1rem; border-radius: var(--radius-sm);
  background: var(--color-primary-aa); color: var(--color-on-primary); font-weight: var(--fw-bold);
  transition: top var(--dur-base) var(--ease-out);
}
.skip-link:focus { top: var(--space-4); }

.divider { height: 1px; background: var(--color-border); border: none; }
.full-bleed { width: 100%; }
.relative { position: relative; }
.no-wrap { white-space: nowrap; }

.mt-0 { margin-top: 0; } .mt-2 { margin-top: var(--space-2); } .mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); } .mt-8 { margin-top: var(--space-8); } .mt-10 { margin-top: var(--space-10); }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: var(--space-2); } .mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); } .mb-8 { margin-bottom: var(--space-8); }
.mx-auto { margin-inline: auto; }

.w-full { width: 100%; }
.hide-desktop { display: revert; }
.hide-mobile { display: none; }
@media (min-width: 960px) {
  .hide-desktop { display: none; }
  .hide-mobile { display: revert; }
}

/* ---------------------------------------------------------------------
   27  REDUCED MOTION
   --------------------------------------------------------------------- */
@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;
    scroll-behavior: auto !important;
  }
  .btn:hover, .card--interactive:hover, .plan-card:hover, .dish-card:hover { transform: none; }
  /* No image zoom or scroll parallax under reduced motion: pin every image flat
     and neutralise the pre-scale/drift vars. js/effects.js also bails out — it
     adds no .is-parallax and never writes --img-shift/--img-base. */
  .media__img, .photo, .avatar img {
    transform: none !important;
    transition: none !important;
    --img-base: 1;
    --img-hover: 1;
    --img-shift: 0px;
  }
}
