/* =========================================================
   Totality 360 design system (site.css)
   Docs: css/README.md. Fonts are self-hosted in /fonts
   (Bricolage Grotesque for display, Figtree for text) and
   preloaded by the <!-- chrome:head --> block.

   Sections:
   1. Tokens          6. Cards, pills, lists
   2. Base + type     7. Forms, tables, FAQ
   3. Layout          8. Phone mock + Tali
   4. Buttons         9. Site header + footer
   5. Sections       10. Legacy aliases (old class names)
   ========================================================= */

/* ---------- 0. FONTS (self-hosted Google Fonts, SIL OFL, see /fonts) ---------- */
@font-face {
  font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("/fonts/figtree-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 1. TOKENS ---------- */
:root {
  /* Totality orange. --orange is the app colour (#ED8008): use it for
     fills, rules and large text on dark. It fails contrast as small
     text on white and under white text, so use the -600/-700 steps. */
  --orange: #ED8008;
  --orange-300: #F5A543;
  --orange-600: #ED8008;   /* Totality orange, same as the app */
  --orange-700: #ED8008;   /* Totality orange, same as the app */
  --orange-press: #C46800; /* app pressed state, hover only */
  --orange-50: #FFF4E8;
  --orange-100: #FFE6CC;

  /* Totality Nutrition blue */
  --blue: #1565A0;         /* white on it 6.2:1, as text on white 6.2:1 */
  --blue-700: #0F4F80;
  --blue-300: #6FA8D6;
  --blue-50: #EAF2FA;
  --blue-100: #D3E5F5;

  /* Neutrals (from the app: #272626 dark, #F7F7F7 light) */
  --ink: #272626;          /* main text, 15:1 on white */
  --ink-2: #45423F;        /* strong secondary text */
  --muted: #62605D;        /* secondary text, 6.3:1 on white, 5.6:1 on --surface */
  --line: #E6E4E1;
  --line-strong: #D2CFCB;
  --surface: #F5F5F4;      /* tinted section background */
  --paper: #FFFFFF;
  --dark: #272626;         /* kept for old pages */
  --on-dark: #FFFFFF;
  --on-dark-muted: #C9C5C0; /* 9:1 on --ink */

  --success: #1E8E4E;      /* text-safe green */
  --danger: #C0392B;

  /* Accent: components read these. Orange by default; .theme-nutrition
     (or body[data-brand="nutrition"]) switches them to blue. */
  --accent: var(--orange);
  --accent-strong: var(--orange-600);
  --accent-ink: var(--orange-700);
  --accent-tint: var(--orange-50);
  --accent-tint-2: var(--orange-100);

  /* Type */
  --font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-xs: 0.8125rem;   /* 13 */
  --fs-sm: 0.9375rem;   /* 15 */
  --fs-md: 1.0625rem;   /* 17 body */
  --fs-lg: 1.25rem;     /* 20 lead */
  --fs-xl: 1.5rem;      /* 24 h4 */
  --fs-2xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);      /* h3 */
  --fs-3xl: clamp(1.9rem, 1.4rem + 2vw, 2.75rem);     /* h2 */
  --fs-4xl: clamp(2.4rem, 1.6rem + 3.4vw, 4rem);      /* h1 */

  /* Space (8pt) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(39,38,38,0.06), 0 6px 20px rgba(39,38,38,0.06);
  --shadow-lg: 0 24px 60px rgba(39,38,38,0.18);

  --container: 1160px;
  --gutter: 20px;
  --nav-height: 64px;
}

.theme-nutrition,
body[data-brand="nutrition"] {
  --accent: var(--blue);
  --accent-strong: var(--blue);
  --accent-ink: var(--blue);
  --accent-tint: var(--blue-50);
  --accent-tint-2: var(--blue-100);
}
.theme-totality {
  --accent: var(--orange);
  --accent-strong: var(--orange-600);
  --accent-ink: var(--orange-700);
  --accent-tint: var(--orange-50);
  --accent-tint-2: var(--orange-100);
}

/* ---------- 2. BASE + TYPE ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
body {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.6;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p a, .prose a, .link { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
p a:hover, .prose a:hover, .link:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: inherit;
  text-wrap: balance;
}
h1, .h1 { font-size: var(--fs-4xl); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
h2, .h2 { font-size: var(--fs-3xl); letter-spacing: -0.03em; }
h3, .h3 { font-size: var(--fs-2xl); }
h4, .h4 { font-size: var(--fs-xl); line-height: 1.25; }
p { text-wrap: pretty; }
strong, b { font-weight: 700; }

.lead { font-size: var(--fs-lg); line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.tiny { font-size: var(--fs-xs); }
.kicker { font-size: var(--fs-sm); font-weight: 700; color: var(--accent-ink); margin-bottom: var(--s-3); }
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: var(--fs-2xl); margin-top: 1.6em; }
.prose h3 { font-size: var(--fs-xl); margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose li + li { margin-top: 0.4em; }

.visually-hidden, .sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- 3. LAYOUT ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 780px; }
.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-6); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.grid { display: grid; gap: var(--s-5); }
.grid-2 { display: grid; gap: var(--s-5); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: var(--s-5); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { display: grid; gap: var(--s-5); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; gap: var(--s-7); grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4, .split { grid-template-columns: 1fr; }
  .split { gap: var(--s-6); }
}
@media (min-width: 720px) { :root { --gutter: 32px; } }
.center { text-align: center; }
.center .lead, .center .section-sub { margin-inline: auto; }
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: var(--s-2); } .mt-3 { margin-top: var(--s-3); } .mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); } .mt-7 { margin-top: var(--s-7); }

/* ---------- 4. BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  font: 700 1rem/1.2 var(--font-body);
  border-radius: var(--radius-pill); border: 2px solid transparent;
  background: var(--accent-strong); color: #fff;
  cursor: pointer; text-align: center; text-decoration: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn--primary, .btn--totality { background: var(--orange-600); color: #fff; }
.btn--primary:hover, .btn--totality:hover { background: var(--orange-press); }
.btn--nutrition { background: var(--blue); color: #fff; }
.btn--nutrition:hover { background: var(--blue-700); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #000; }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--surface); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); background: transparent; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn--ghost-light:hover { border-color: #fff; }
.btn--lg { min-height: 56px; padding: 16px 30px; font-size: 1.0625rem; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 0.9375rem; }
.btn--block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.text-link { font-weight: 700; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.text-link:hover { text-decoration-color: var(--accent); }

/* ---------- 5. SECTIONS ---------- */
.section { padding-block: var(--s-8); padding-inline: var(--gutter); }
.section > .container, .section > .section-inner { padding-inline: 0; }
.section--tight { padding-block: var(--s-7); }
.section--tint { background: var(--surface); }
.section--accent { background: var(--accent-tint); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--dark .muted, .section--dark .section-sub, .section--dark .lead { color: var(--on-dark-muted); }
.section--dark .kicker { color: var(--orange-300); }
.section--orange { background: var(--orange); color: var(--ink); }
.section--blue { background: var(--blue); color: #fff; }
.section-inner { max-width: var(--container); margin-inline: auto; }
.section-head { max-width: 720px; margin-bottom: var(--s-6); }
.section-head.center { margin-inline: auto; }
.section-title { font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; max-width: 22ch; }
.center .section-title { margin-inline: auto; }
.section-sub { color: var(--muted); margin-top: var(--s-3); max-width: 60ch; font-size: var(--fs-md); }
.section-eyebrow { font-size: var(--fs-sm); font-weight: 700; color: var(--accent-ink); margin-bottom: var(--s-3); }
@media (min-width: 900px) { .section { padding-block: var(--s-9); } .section--tight { padding-block: var(--s-8); } }

/* Page hero for inner pages */
.page-hero { padding: var(--s-8) var(--gutter) var(--s-7); background: var(--paper); border-bottom: 1px solid var(--line); }
.page-hero .container { padding-inline: 0; }
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { margin-top: var(--s-4); }
.page-hero .btn-row { margin-top: var(--s-5); }
.page-hero--tint { background: var(--accent-tint); border-bottom: 0; }

/* Breadcrumb */
.crumbs { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--s-4); }
.crumbs a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 6. CARDS, PILLS, LISTS ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3);
}
.card h3 { font-size: var(--fs-xl); line-height: 1.2; }
.card p { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.6; }
.card--flat { border: 0; background: var(--surface); }
.card--raised { border: 0; box-shadow: var(--shadow); }
.card--accent { border-top: 4px solid var(--accent); }
.card--orange { border-top: 4px solid var(--orange); }
.card--blue { border-top: 4px solid var(--blue); }
.card--dark { background: #34312F; border-color: #4A4642; color: #fff; }
.card--dark p { color: var(--on-dark-muted); }
a.card { transition: border-color 0.15s, transform 0.15s; }
a.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card-meta { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.card-foot { margin-top: auto; padding-top: var(--s-3); }

.icon-tile {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-tint); color: var(--accent-ink); flex-shrink: 0;
}
.icon-tile svg { width: 22px; height: 22px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-xs); font-weight: 700; line-height: 1;
  padding: 7px 12px; border-radius: var(--radius-pill);
  background: var(--accent-tint); color: var(--accent-ink);
}
.pill--orange { background: var(--orange-50); color: var(--orange-700); }
.pill--blue { background: var(--blue-50); color: var(--blue); }
.pill--ink { background: var(--ink); color: #fff; }
.pill--new { background: #E5F5EC; color: #17703D; }
.pill--soon { background: var(--surface); color: var(--muted); border: 1px solid var(--line); }

.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; line-height: 1.5; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23272626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.ticks--orange li::before { background-color: var(--orange-100); }
.ticks--blue li::before { background-color: var(--blue-100); }

.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-2xl); letter-spacing: -0.02em; line-height: 1.1; }
.stat-label { font-size: var(--fs-sm); color: var(--muted); }

/* Offer / notice band */
.offer {
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); align-items: center; justify-content: space-between;
  background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: var(--s-6);
}
.offer strong { color: var(--orange-300); }
.notice {
  border-left: 4px solid var(--accent); background: var(--accent-tint);
  padding: var(--s-4) var(--s-5); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: var(--fs-sm);
}

/* Price */
.price { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-3xl); letter-spacing: -0.03em; line-height: 1; }
.price small { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price-card { position: relative; }
.price-card.is-featured { border: 2px solid var(--accent); }
.price-card .pill { align-self: flex-start; }

/* ---------- 7. FORMS, TABLES, FAQ ---------- */
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint-2); }
.label { display: block; font-weight: 700; font-size: var(--fs-sm); margin-bottom: 6px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 560px; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { background: var(--surface); font-weight: 700; position: sticky; top: 0; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .yes { color: var(--success); font-weight: 700; }
.table .no { color: var(--muted); }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative;
  font-weight: 700; font-size: var(--fs-md);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > :not(summary) { padding-bottom: 18px; color: var(--ink-2); max-width: 68ch; }

/* ---------- 8. PHONE MOCK + TALI ---------- */
/* .phone wraps either an <img> screenshot or an HTML screen (.phone-screen). */
.phone {
  position: relative; width: 100%; max-width: 280px; aspect-ratio: 9 / 18.5;
  background: #1A1919; border-radius: 40px; padding: 10px;
  box-shadow: var(--shadow-lg);
}
.phone > img, .phone-screen {
  width: 100%; height: 100%; border-radius: 31px; overflow: hidden; object-fit: cover; object-position: top;
  background: #F7F7F7;
}
.phone::before {
  content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 76px; height: 20px; border-radius: 12px; background: #1A1919; z-index: 2;
}
.tali { display: block; width: 100%; height: auto; }
.tali-bubble {
  position: relative; background: #fff; color: var(--ink); border: 1.5px solid var(--line-strong);
  border-radius: 16px; padding: 10px 14px; font-size: var(--fs-sm); font-weight: 600; line-height: 1.4;
  box-shadow: var(--shadow);
}

/* ---------- 9. SITE HEADER + FOOTER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200; margin: 0; padding: 0; text-align: left; /* resets for pages that style bare header */
  background: rgba(255,255,255,0.96);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter);
  height: var(--nav-height); display: flex; align-items: center; gap: var(--s-5);
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand span { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: var(--s-1); flex: 1; }
.site-nav__list { display: flex; align-items: center; gap: 2px; list-style: none; }
.site-nav__end { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }
.site-nav a.site-nav__link,
.nav-dd > summary {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: 0.9375rem; font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap;
}
.site-nav a.site-nav__link:hover, .nav-dd > summary:hover { color: var(--ink); background: var(--surface); }
.site-nav a.site-nav__link[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--orange); border-radius: 0; }
.nav-dd { position: relative; }
.nav-dd > summary { list-style: none; }
.nav-dd > summary::-webkit-details-marker { display: none; }
.nav-dd > summary::after {
  content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform 0.15s;
}
.nav-dd[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.nav-dd__panel {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px; z-index: 210;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: var(--s-2); list-style: none;
}
.nav-dd--right .nav-dd__panel { left: auto; right: 0; min-width: 260px; }
.nav-dd__panel a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-sm); }
.nav-dd__panel a:hover, .nav-dd__panel a[aria-current="page"] { background: var(--surface); }
.nav-dd__panel b { display: block; font-size: 0.9375rem; color: var(--ink); }
.nav-dd__panel small { display: block; font-size: var(--fs-xs); color: var(--muted); line-height: 1.4; margin-top: 2px; }
.nav-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; background: var(--line-strong); }
.nav-dot--orange { background: var(--orange); }
.nav-dot--blue { background: var(--blue); }
.nav-dot--ink { background: var(--ink); }
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px; border-radius: var(--radius-sm);
}
.nav-toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1020px) {
  /* backdrop-filter would make the header the containing block of the fixed drawer */
  .site-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header__bar { gap: var(--s-3); }
  html.js .nav-toggle { display: inline-flex; }
  .site-nav {
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--s-2) var(--gutter) var(--s-5); background: #fff; border-top: 1px solid var(--line);
  }
  /* Without JS the menu sits open below the bar; with JS it becomes a drawer. */
  .site-header__bar { flex-wrap: wrap; height: auto; min-height: var(--nav-height); }
  html:not(.js) .site-nav { width: 100%; padding-inline: 0; }
  html.js .site-header__bar { flex-wrap: nowrap; height: var(--nav-height); }
  html.js .site-nav {
    position: fixed; top: var(--nav-height); left: 0; right: 0; bottom: 0; overflow-y: auto;
    display: none;
  }
  html.js .site-nav.is-open { display: flex; }
  .site-nav__list { flex-direction: column; align-items: stretch; }
  .site-nav a.site-nav__link, .nav-dd > summary {
    display: flex; width: 100%; padding: 14px 4px; font-size: 1.0625rem; color: var(--ink);
    border-bottom: 1px solid var(--line); border-radius: 0; justify-content: space-between;
  }
  .site-nav a.site-nav__link[aria-current="page"] { box-shadow: inset 3px 0 0 var(--orange); padding-left: 12px; }
  .nav-dd__panel { position: static; box-shadow: none; border: 0; min-width: 0; padding: 4px 0 8px; }
  .site-nav__end { flex-direction: column; align-items: stretch; margin: var(--s-4) 0 0; gap: 0; }
  .site-nav__end .btn { margin-top: var(--s-4); }
}
@media (min-width: 1021px) {
  .site-nav__list { margin-left: var(--s-3); }
}

.site-footer { background: var(--ink); color: var(--on-dark); padding: var(--s-8) var(--gutter) var(--s-6); margin: 0; text-align: left; }
.site-footer__inner { max-width: var(--container); margin-inline: auto; }
.site-footer__top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: var(--s-6); }
.site-footer .brand span { color: #fff; }
.site-footer__blurb { color: var(--on-dark-muted); font-size: var(--fs-sm); margin-top: var(--s-3); max-width: 34ch; }
.site-footer h2 { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0; color: #fff; margin-bottom: var(--s-3); }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer ul a { color: var(--on-dark-muted); font-size: var(--fs-sm); text-decoration: none; }
.site-footer ul a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.store-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-5); }
.store-badge {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 10px;
  border: 1px solid #5A5652; border-radius: 10px; color: #fff; background: #1F1E1E; line-height: 1.15;
}
.store-badge:hover { border-color: #fff; }
.store-badge svg { width: 22px; height: 22px; flex-shrink: 0; }
.store-badge small { display: block; font-size: 0.6875rem; color: var(--on-dark-muted); }
.store-badge b { display: block; font-size: 0.875rem; }
.social-link { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: var(--fs-sm); margin-top: var(--s-4); }
.social-link svg { width: 20px; height: 20px; }
.social-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer__base {
  margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid #45413E;
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); justify-content: space-between;
  font-size: var(--fs-xs); color: var(--on-dark-muted);
}
.site-footer__base a { color: var(--on-dark-muted); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 960px) {
  .site-footer__top { grid-template-columns: repeat(2, 1fr); }
  .site-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .site-footer__top { gap: var(--s-5); }
}

/* ---------- 10. LEGACY ALIASES ----------
   Old class names still used inside page bodies. New work should use
   the classes above (see css/README.md for the migration list). */
.btn-primary, .btn-secondary, .btn-nutrition {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 14px 30px; font-weight: 700; font-size: 1rem; border-radius: var(--radius-pill);
  transition: background-color 0.15s, transform 0.15s;
}
.btn-primary { background: var(--orange-600); color: #fff; }
.btn-primary:hover { background: var(--orange-press); transform: translateY(-1px); }
.btn-secondary { background: #fff; color: var(--ink); border: 2px solid var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-nutrition { background: var(--blue); color: #fff; }
.btn-nutrition:hover { background: var(--blue-700); transform: translateY(-1px); }

.promo-banner { background: var(--ink); color: #fff; text-align: center; font-size: var(--fs-sm); font-weight: 600; padding: 10px 16px; }
.promo-banner strong { color: var(--orange-300); }

/* Old per-page brand vars some pages still read */
:root {
  --orange-dark: var(--orange-600);
  --orange-light: var(--orange-300);
  --white: #FFFFFF;
  --off-white: var(--surface);
  --border: var(--line);
  --nutrition: var(--blue);
  --nutrition-light: #1A7FC1;
  --nutrition-dark: var(--blue-700);
  --nutrition-tint: var(--blue-50);
  --nutrition-border: var(--blue-100);
  /* Purple is the app's Super Admin colour only. Do not use on the site. */
  --purple: #6C3483;
  --purple-light: #D7BDE2;
  --purple-tint: #F0E6F6;
}

/* Old footer markup (pages not yet converted to .site-footer) */
footer:not(.site-footer) .footer-brand { font-weight: 800; font-size: 0.9rem; color: var(--orange-700); }
footer:not(.site-footer) .footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
footer:not(.site-footer) .footer-links a { font-size: 0.85rem; color: var(--muted); }
footer:not(.site-footer) .footer-copy { font-size: 0.85rem; color: var(--muted); }

/* Tali website videos */
.hero-video { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: var(--s-7); align-items: center; }
.hero-video--center { max-width: 900px; margin-inline: auto; }
.hv-fig { margin: 0; justify-self: center; width: 100%; max-width: 280px; }
.hv-fig video { width: 100%; aspect-ratio: 9 / 16; border-radius: var(--radius); background: #000; display: block; object-fit: cover; box-shadow: var(--shadow); }
.hv-fig figcaption { margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--muted); font-weight: 600; text-align: center; }
@media (max-width: 860px) { .hero-video { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); } .hv-fig { max-width: 240px; } }
