/* ==================================================================
   Cookies By Kiki — shared site styles
   One stylesheet for every public page (index, product, about,
   nutrition, reviews, faq, legal, track order, checkout, 404).

   System
   - Surfaces: L0 canvas (--bg), L1 raised (--surface), L2 muted band
     (--surface-2). Raised surfaces get a 1px border before any shadow.
   - One accent (--accent, jam) for actions, links, focus and selection.
   - Type: Inter for UI + Fraunces for display headings. Weights 400/500/600.
     Sizes: 12 meta / 14 secondary / 16 body, headings on a 1.2 scale.
   - Spacing on a 4/8px grid. Motion: 150/200/300ms, transform/opacity only.
   - Viewports: narrow < 768px, medium >= 768px, wide proof at 1280px.
   ================================================================== */

:root {
  /* Surfaces */
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --surface-2: #F3EDE5;
  --inverse: #1F1812;

  /* Text */
  --ink: #1F1812;
  --ink-2: #5A4C41;
  --ink-3: #75665A;
  --on-inverse: #F6EFE6;
  --on-inverse-2: rgba(246, 239, 230, 0.72);

  /* Accent (single interactive hue) */
  --accent: #B4501B;
  --accent-hover: #963F14;
  --accent-soft: #F8EBE1;
  --accent-ring: rgba(180, 80, 27, 0.22);

  /* Status */
  --success: #2F6B3F;
  --success-soft: #E4F0E6;
  --warning: #85570C;
  --warning-soft: #F8EDD5;
  --danger: #A8321E;
  --danger-soft: #F8E1DC;

  /* Lines and depth */
  --border: rgba(31, 24, 18, 0.10);
  --border-strong: rgba(31, 24, 18, 0.20);
  --shadow-sm: 0 1px 2px rgba(31, 24, 18, 0.05);
  --shadow-md: 0 4px 16px rgba(31, 24, 18, 0.06);
  --shadow-lg: 0 16px 48px rgba(31, 24, 18, 0.07);

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;

  /* Type */
  --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --text-meta: 0.75rem;
  --text-secondary: 0.875rem;
  --text-body: 1rem;
  --text-h4: 1.2rem;
  --text-h3: 1.44rem;
  --text-h2: 1.728rem;
  --text-h2-lg: 2.074rem;
  --text-h1: 2.074rem;
  --text-h1-lg: 2.488rem;
  --text-display: 2.986rem;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Layout */
  --vp-narrow: 375px;
  --vp-medium: 768px;
  --vp-wide: 1280px;
  --page-max: 1200px;
  --prose-max: 68ch;
  --header-h: 64px;

  /* Motion */
  --motion-150: 150ms;
  --motion-200: 200ms;
  --motion-300: 300ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
b, strong { font-weight: 600; }
p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.2;
}
h1, h2 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 72;
}
h3, h4 { font-family: var(--font-ui); }

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

.visually-hidden {
  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: var(--space-4);
  top: -100px;
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  font-weight: 500;
}
.skip-link:focus { top: var(--space-2); }

.container {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--space-8);
}

main { display: block; }

.section { padding-block: var(--space-24); }
.section-tight { padding-block: var(--space-16); }
.section-muted { background: var(--surface-2); }
.section-raised {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.kicker {
  display: block;
  margin: 0 0 var(--space-3);
  font-size: var(--text-secondary);
  font-weight: 500;
  line-height: 1.5;
  color: var(--accent);
}

.lead {
  font-size: var(--text-h4);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 56ch;
}

.section-heading {
  max-width: 640px;
  margin: 0 0 var(--space-12);
}
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading h2 { font-size: var(--text-h2-lg); }
.section-heading p:not(.kicker) { margin-top: var(--space-3); color: var(--ink-2); }

/* ------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-family: var(--font-ui);
  font-size: var(--text-body);
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--motion-150) var(--ease-out),
              border-color var(--motion-150) var(--ease-out),
              color var(--motion-150) var(--ease-out);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost,
.btn-secondary {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--ink);
}
.btn-ghost:hover,
.btn-secondary:hover { border-color: var(--ink-3); color: var(--ink); background: var(--surface); }
.btn-lg { min-height: 48px; padding: 0 var(--space-6); font-size: var(--text-body); }
.btn-small { min-height: 44px; padding: 0 var(--space-4); font-size: var(--text-secondary); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.btn svg { flex-shrink: 0; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-weight: 500;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

/* ------------------------------------------------------------------
   Announcement bar
   ------------------------------------------------------------------ */
#promo-bar {
  background: var(--inverse);
  color: var(--on-inverse);
  font-size: var(--text-secondary);
  line-height: 1.5;
}
.promo-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding-block: var(--space-2);
  text-align: center;
}
.promo-text-track { position: relative; }
.promo-text { display: none; }
.promo-text.active { display: block; }
.promo-text b { color: #fff; letter-spacing: 0.02em; }

/* ------------------------------------------------------------------
   Header
   ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--motion-200) var(--ease-out);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  font-family: var(--font-display);
  font-size: var(--text-h4);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 28px; height: 28px; flex-shrink: 0; }

.primary-nav { display: flex; align-items: center; }
.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-2);
  font-size: var(--text-secondary);
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--motion-150) var(--ease-out);
}
.primary-nav a:hover { color: var(--ink); }
.primary-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.nav-actions { display: flex; align-items: center; gap: var(--space-2); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--border); background: var(--surface); }

.hamburger-btn { display: none; }
.hamburger-btn .icon-close { display: none; }
.hamburger-btn[aria-expanded="true"] .icon-open { display: none; }
.hamburger-btn[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: var(--space-2) var(--space-4) var(--space-4);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  box-shadow: var(--shadow-md);
}
.mobile-nav-panel.open {
  display: flex;
  animation: fade-down var(--motion-200) var(--ease-out);
}
.mobile-nav-panel a {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.mobile-nav-panel a[aria-current="page"] { color: var(--accent); }
.mobile-nav-panel a.btn {
  justify-content: center;
  margin-top: var(--space-4);
  border-bottom: 0;
  color: #fff;
}
.mobile-nav-panel a.btn:last-child { margin-top: var(--space-2); color: var(--ink); }

@keyframes fade-down {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* Floating order button (narrow only) */
.mobile-float-cta { display: none; }

/* ------------------------------------------------------------------
   Page header (inner pages)
   ------------------------------------------------------------------ */
.page-hero {
  padding-block: var(--space-16) var(--space-12);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: var(--text-h1-lg); max-width: 20ch; }
.page-hero .lead { margin-top: var(--space-4); }
.page-hero-meta { margin-top: var(--space-4); font-size: var(--text-secondary); color: var(--ink-3); }
.page-hero.center { text-align: center; }
.page-hero.center h1,
.page-hero.center .lead { margin-inline: auto; }

/* ------------------------------------------------------------------
   Cards / surfaces
   ------------------------------------------------------------------ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: var(--space-8); }
.card h2, .card h3 { font-family: var(--font-ui); }
.card-title { font-size: var(--text-h4); font-weight: 600; margin-bottom: var(--space-4); }

.media-frame {
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------------
   Home: hero
   ------------------------------------------------------------------ */
.hero { padding-block: var(--space-16) var(--space-20); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--space-16);
  align-items: center;
}
.hero h1 {
  font-size: var(--text-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lead { margin-top: var(--space-6); }
.hero .btn-row { margin-top: var(--space-8); }

.proof-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  margin: var(--space-12) 0 0;
  padding: var(--space-6) 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
}
.proof-list dt,
.proof-value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}
.proof-list dd,
.proof-label {
  display: block;
  margin: var(--space-1) 0 0;
  font-size: var(--text-secondary);
  color: var(--ink-2);
}

.hero-visual .media-frame { aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); }

/* ------------------------------------------------------------------
   Feature grid (home "why", about values)
   ------------------------------------------------------------------ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}
.feature {
  padding: var(--space-8);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-5);
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent);
}
.feature h3 { font-size: var(--text-h4); margin-bottom: var(--space-2); }
.feature p { font-size: var(--text-secondary); color: var(--ink-2); line-height: 1.55; }

/* ------------------------------------------------------------------
   Product (home spotlight + product page)
   ------------------------------------------------------------------ */
.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-16);
  align-items: center;
}
.product-grid.align-start { align-items: start; }

.product-spotlight .media-frame { aspect-ratio: 4 / 3; }

.info-col h1 { font-size: var(--text-h1-lg); }
.info-col h2 { font-size: var(--text-h2-lg); }
.product-headline {
  margin-top: var(--space-3);
  font-family: var(--font-ui);
  font-size: var(--text-h4);
  font-weight: 500;
  color: var(--ink-2);
}
.product-description { margin-top: var(--space-6); color: var(--ink-2); max-width: var(--prose-max); }
.product-badge {
  display: block;
  margin-bottom: var(--space-3);
  font-size: var(--text-secondary);
  font-weight: 500;
  color: var(--accent);
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-8);
  padding: var(--space-5) var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.price {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}
.price-unit {
  display: block;
  margin-top: var(--space-1);
  font-family: var(--font-ui);
  font-size: var(--text-secondary);
  color: var(--ink-2);
}

.fact-list {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-secondary);
  color: var(--ink-2);
}
.fact-list li { display: flex; align-items: flex-start; gap: var(--space-3); }
.fact-list svg { flex-shrink: 0; margin-top: 2px; color: var(--accent); }

/* Product gallery: one large photo + three thumbnails (static, no auto-play) */
.carousel-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}
.carousel-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.carousel-img.img-1 {
  grid-column: 1 / -1;
  border-radius: var(--r-lg);
}

/* ------------------------------------------------------------------
   Steps (how ordering works)
   ------------------------------------------------------------------ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.step-card {
  padding: var(--space-8) var(--space-6);
}
.step-card + .step-card { border-left: 1px solid var(--border); }
.step-num {
  display: block;
  margin-bottom: var(--space-4);
  font-size: var(--text-secondary);
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.step-card h3 { font-size: var(--text-body); margin-bottom: var(--space-2); }
.step-card p { font-size: var(--text-secondary); color: var(--ink-2); }

/* ------------------------------------------------------------------
   CTA band
   ------------------------------------------------------------------ */
.cta-banner { padding-block: var(--space-16) var(--space-24); }
.section + .cta-banner { padding-top: 0; }
.section-muted + .cta-banner,
.section-raised + .cta-banner { padding-top: var(--space-16); }
.cta-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-12);
  background: var(--inverse);
  border-radius: var(--r-lg);
  color: var(--on-inverse);
}
.cta-banner h2 { color: var(--on-inverse); font-size: var(--text-h2); }
.cta-banner p { margin-top: var(--space-2); color: var(--on-inverse-2); }
.cta-banner .btn-primary { flex-shrink: 0; }

/* ------------------------------------------------------------------
   About
   ------------------------------------------------------------------ */
.about-photo { aspect-ratio: 4 / 5; }
.prose { max-width: var(--prose-max); color: var(--ink-2); font-size: var(--text-body); line-height: 1.6; }
.prose p { margin-bottom: var(--space-5); }
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  margin: var(--space-10) 0 0;
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}
.about-stats div { margin: 0; }

/* ------------------------------------------------------------------
   Nutrition
   ------------------------------------------------------------------ */
.nutrition-layout {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: var(--space-12);
  align-items: start;
}
.nutrition-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.nutrition-panel-head {
  padding: var(--space-6);
  border-bottom: 1px solid var(--border);
}
.nutrition-panel-head h2 { font-family: var(--font-ui); font-size: var(--text-h4); font-weight: 600; }
.serving-info { margin-top: var(--space-2); font-size: var(--text-secondary); color: var(--ink-2); }
.calories-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-4) var(--space-6);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.cal-label { font-weight: 600; }
.cal-value { font-family: var(--font-display); font-size: var(--text-h2); font-weight: 500; line-height: 1.1; }
.nutrition-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-6);
  border-bottom: 1px solid var(--border);
  font-size: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.nutrition-row:last-child { border-bottom: 0; }
.nutrition-row b { font-weight: 500; }
.nutrition-row.indent { padding-left: var(--space-10); color: var(--ink-2); }

.info-stack { display: grid; gap: var(--space-6); }
.info-block h2 { font-family: var(--font-ui); font-size: var(--text-h4); font-weight: 600; margin-bottom: var(--space-3); }
.info-block p { color: var(--ink-2); max-width: var(--prose-max); }
.allergen-list { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-3) 0 0; padding: 0; list-style: none; }
.allergen-list li {
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  font-size: var(--text-secondary);
  font-weight: 500;
}
.nutrition-disclaimer {
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  font-size: var(--text-meta);
  line-height: 1.4;
  color: var(--ink-3);
  max-width: var(--prose-max);
}

/* ------------------------------------------------------------------
   Forms (shared)
   ------------------------------------------------------------------ */
.form-row { margin-bottom: var(--space-5); }
.form-row > label,
.field-label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--text-secondary);
  font-weight: 500;
  color: var(--ink);
}
.optional { font-weight: 400; color: var(--ink-3); }

.form-row input[type="text"],
.form-row input[type="tel"],
.form-row input[type="email"],
.form-row input[type="date"],
.form-row input[type="number"],
.form-row select,
.form-row textarea,
.promo-row input {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: var(--text-body);
  line-height: 1.5;
  /* Keeps the field clear of the sticky header when a phone keyboard
     opens and the browser scrolls the focused field into view. */
  scroll-margin-top: calc(var(--header-h) + var(--space-8));
  transition: border-color var(--motion-150) var(--ease-out), box-shadow var(--motion-150) var(--ease-out);
}
.form-row textarea { resize: vertical; min-height: 88px; }
.form-row input::placeholder,
.form-row textarea::placeholder,
.promo-row input::placeholder { color: var(--ink-3); opacity: 1; }
.form-row input:hover,
.form-row textarea:hover,
.promo-row input:hover { border-color: var(--ink-3); }
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus,
.promo-row input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.form-row input[type="date"] {
  color-scheme: light;
  accent-color: var(--accent);
  /* iPhone Safari gives date fields their own min width/height and centred
     text, so they stick out past the card. Make them size like the others. */
  -webkit-appearance: none;
  appearance: none;
  min-width: 0;
  max-width: 100%;
  text-align: left;
}
.form-row input[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; }

.hint,
.date-hint,
.delivery-area-hint {
  margin: var(--space-2) 0 0;
  font-size: var(--text-meta);
  line-height: 1.4;
  color: var(--ink-3);
}

.form-message,
.review-form-message,
.track-form-message {
  margin: var(--space-3) 0 0;
  font-size: var(--text-secondary);
  min-height: 1.3em;
}
.form-message:empty,
.review-form-message:empty,
.track-form-message:empty { min-height: 0; margin: 0; }
.form-message.error,
.review-form-message.error,
.track-form-message.error { color: var(--danger); }
.form-message.success,
.review-form-message.success { color: var(--success); }

/* Inline field errors (blur-first, see /js/form-ux.js) */
.field-error {
  margin: var(--space-2) 0 0;
  font-size: var(--text-secondary);
  line-height: 1.5;
  color: var(--danger);
}
.form-row :is(input, textarea, select).is-invalid,
.promo-row input.is-invalid,
.star-input.is-invalid .star-btn { border-color: var(--danger); }
.form-row :is(input, textarea, select).is-invalid:focus { box-shadow: 0 0 0 3px rgba(168, 50, 30, 0.2); }
.field-error:not([hidden]) + .hint { display: none; } /* an error replaces the helper text */
.field-error:not([hidden]) + .date-hint { display: none; }

.draft-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-2);
  margin: var(--space-6) 0 0;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg);
  font-size: var(--text-secondary);
  color: var(--ink-2);
}
.link-btn {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-btn:hover { color: var(--accent-hover); }

/* Empty / error state inside a list frame */
.list-empty { padding: var(--space-12) var(--space-6); text-align: center; }
.list-empty h2 { font-family: var(--font-ui); font-size: var(--text-h4); font-weight: 600; }
.list-empty p { margin: var(--space-2) auto var(--space-5); max-width: 40ch; color: var(--ink-2); font-size: var(--text-secondary); }

/* Loading skeleton (reviews) */
.skeleton-review { padding: var(--space-6); }
.skeleton-review + .skeleton-review { border-top: 1px solid var(--border); }
.sk { display: block; height: 12px; border-radius: 4px; background: var(--surface-2); }
.sk + .sk { margin-top: var(--space-3); }
.sk-name { width: 30%; height: 16px; }
.sk-line { width: 90%; }
.sk-line.short { width: 60%; }
@media (prefers-reduced-motion: no-preference) {
  .sk { animation: sk-pulse 1.5s ease-in-out infinite; }
}
@keyframes sk-pulse { 50% { opacity: 0.55; } }

/* Tooltips for icon-only controls (hover and keyboard focus) */
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 50%;
  z-index: 60;
  padding: var(--space-1) var(--space-2);
  border-radius: 6px;
  background: var(--inverse);
  color: var(--on-inverse);
  font-family: var(--font-ui);
  font-size: var(--text-meta);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -4px);
  transition: opacity var(--motion-150) var(--ease-out), transform var(--motion-150) var(--ease-out);
}
[data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); transition-delay: 0ms; }
@media (hover: hover) {
  [data-tip]:hover::after { opacity: 1; transform: translate(-50%, 0); transition-delay: 300ms; }
}
.site-footer [data-tip]::after { top: auto; bottom: calc(100% + var(--space-2)); background: var(--on-inverse); color: var(--ink); }
.hamburger-btn[data-tip]::after { left: auto; right: 0; transform: translate(0, -4px); }
.hamburger-btn[data-tip]:focus-visible::after { transform: none; }
@media (hover: hover) { .hamburger-btn[data-tip]:hover::after { transform: none; } }

/* Bot trap on the review form */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------------
   Reviews
   ------------------------------------------------------------------ */
.reviews-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: var(--space-12);
  align-items: start;
}
.reviews-summary {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.reviews-summary-stars { color: var(--accent); font-size: var(--text-h3); letter-spacing: 2px; line-height: 1.2; }
.reviews-summary-text { font-size: var(--text-secondary); color: var(--ink-2); }

.reviews-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.review-card { padding: var(--space-6); }
.review-card + .review-card { border-top: 1px solid var(--border); }
.review-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
}
.review-card-name { font-weight: 600; }
.review-card-stars { color: var(--accent); letter-spacing: 1px; font-size: var(--text-secondary); }
.review-card-date { margin-top: var(--space-1); font-size: var(--text-meta); color: var(--ink-3); }
.review-card-comment { margin: var(--space-3) 0 0; color: var(--ink-2); }
.reviews-loading { margin: 0; }

.review-form-card { position: sticky; top: calc(var(--header-h) + var(--space-6)); }
.review-form-card h2 { font-size: var(--text-h4); margin-bottom: var(--space-2); }
.review-form-card > p { font-size: var(--text-secondary); color: var(--ink-2); margin-bottom: var(--space-6); }

.star-input { display: flex; gap: var(--space-1); }
.star-input:focus { outline: none; }
.star-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--border-strong);
  font-size: var(--text-h4);
  line-height: 1.2;
  cursor: pointer;
  transition: color var(--motion-150) var(--ease-out), border-color var(--motion-150) var(--ease-out), background-color var(--motion-150) var(--ease-out);
}
.star-btn:hover { border-color: var(--accent); color: var(--accent); }
.star-btn.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

/* ------------------------------------------------------------------
   FAQ
   ------------------------------------------------------------------ */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: var(--space-12);
  align-items: start;
}
.faq-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item + .faq-item { border-top: 1px solid var(--border); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  min-height: 64px;
  padding: var(--space-4) var(--space-6);
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: var(--text-body);
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--motion-150) var(--ease-out);
}
.faq-question:hover { background: var(--bg); }
.faq-question:focus-visible { outline-offset: -2px; }
.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--ink-2);
  font-size: var(--text-h4);
  line-height: 1.2;
  transition: transform var(--motion-200) var(--ease-out);
}
.faq-item.open .faq-icon { transform: rotate(45deg); border-color: var(--accent); color: var(--accent); }
.faq-answer { display: none; padding: 0 var(--space-6) var(--space-6); }
.faq-item.open .faq-answer { display: block; animation: fade-in var(--motion-200) var(--ease-out); }
.faq-answer p { color: var(--ink-2); max-width: var(--prose-max); margin-bottom: var(--space-3); }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer strong { color: var(--ink); }

.aside-card { position: sticky; top: calc(var(--header-h) + var(--space-6)); }
.aside-card h2 { font-size: var(--text-h4); margin-bottom: var(--space-2); }
.aside-card p { font-size: var(--text-secondary); color: var(--ink-2); margin-bottom: var(--space-5); }
.aside-card .btn + .btn { margin-top: var(--space-2); }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ------------------------------------------------------------------
   Legal (terms, privacy)
   ------------------------------------------------------------------ */
.legal-content { max-width: var(--prose-max); }
.legal-updated { color: var(--ink-3); font-size: var(--text-secondary); margin-bottom: var(--space-8); }
.legal-updated em { font-style: normal; }
.legal-content h2,
.legal-content h3 {
  margin: var(--space-12) 0 var(--space-3);
  font-family: var(--font-ui);
  font-size: var(--text-h4);
  font-weight: 600;
}
.legal-content h2:first-child,
.legal-content h3:first-child { margin-top: 0; }
.legal-content p,
.legal-content li { color: var(--ink-2); line-height: 1.6; }
.legal-content ul { margin: 0 0 var(--space-4); padding-left: var(--space-6); }
.legal-content li { margin-bottom: var(--space-2); }
.legal-content strong { color: var(--ink); }

/* ------------------------------------------------------------------
   Track order
   ------------------------------------------------------------------ */
.track-shell { max-width: 560px; margin-inline: auto; }
.track-form-card .btn { width: 100%; }
.track-form-card .form-row { margin-bottom: var(--space-4); }

.track-result {
  margin-top: var(--space-6);
  padding: var(--space-10) var(--space-8);
  text-align: center;
}
.track-visual { display: flex; justify-content: center; margin-bottom: var(--space-6); }
.track-image-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 176px;
  height: 176px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.track-image-frame img { width: 78%; height: 78%; object-fit: contain; border-radius: 50%; }
.track-image-frame svg { position: absolute; pointer-events: none; }
.track-face { width: 78%; height: 78%; top: 11%; left: 11%; opacity: 0; }
.track-face path { fill: none; stroke: #402A1C; stroke-width: 7; stroke-linecap: round; }
.track-face .face-mouth { stroke-width: 6; }
.track-face .face-eye-dot,
.track-face .face-mouth-open { fill: #402A1C; }
.track-face .face-eye-shine { fill: #fff; }
.track-face .face-blush { fill: #E8837A; opacity: 0.5; }
.track-face .face-blush-warm { fill: #E2604A; opacity: 0.55; }
.track-face g { opacity: 0; }

#track-visual.status-received .track-face,
#track-visual.status-baking .track-face,
#track-visual.status-packaging .track-face,
#track-visual.status-delivery .track-face { animation: fade-in var(--motion-300) var(--ease-out) forwards; }
#track-visual.status-received .face-received,
#track-visual.status-baking .face-baking,
#track-visual.status-packaging .face-packaging,
#track-visual.status-delivery .face-delivery { opacity: 1; }
#track-visual.status-cancelled .track-image-frame img { filter: grayscale(0.85); opacity: 0.55; }

.track-check { width: 40px; height: 40px; right: -4px; bottom: -4px; opacity: 0; }
.track-check circle { fill: var(--success); }
.track-check path {
  fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 24; stroke-dashoffset: 24;
}
#track-visual.status-received .track-check { animation: fade-in var(--motion-200) var(--ease-out) 150ms forwards; }
#track-visual.status-received .track-check path { animation: draw-stroke var(--motion-300) var(--ease-out) 300ms forwards; }

.track-steam { width: 88px; height: 52px; top: -44px; left: 50%; transform: translateX(-50%); opacity: 0; }
.track-steam path { fill: none; stroke: rgba(31, 24, 18, 0.3); stroke-width: 4; stroke-linecap: round; }
/* Baking: steam rises while the order is in the oven (conveys ongoing work). */
#track-visual.status-baking .track-steam { opacity: 1; }
#track-visual.status-baking .steam-1,
#track-visual.status-baking .steam-2,
#track-visual.status-baking .steam-3 { opacity: 0; animation: steam-rise 2.4s ease-in infinite; }
#track-visual.status-baking .steam-2 { animation-delay: 0.8s; }
#track-visual.status-baking .steam-3 { animation-delay: 1.6s; }

.track-box { width: 100%; height: 100%; top: 0; left: 0; opacity: 0; }
.track-box rect { fill: none; stroke: var(--accent); stroke-width: 3; stroke-dasharray: 620; stroke-dashoffset: 620; }
#track-visual.status-packaging .track-box { opacity: 1; }
#track-visual.status-packaging .track-box rect { animation: draw-stroke 1s var(--ease-out) forwards; }

.track-motion-lines {
  position: absolute; left: -32px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: var(--space-2); opacity: 0;
}
.track-motion-lines span { display: block; width: 20px; height: 3px; border-radius: 2px; background: var(--accent); }
#track-visual.status-delivery .track-motion-lines { opacity: 1; }

@keyframes draw-stroke { to { stroke-dashoffset: 0; } }
@keyframes steam-rise {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(-20px); }
}

.track-status-label {
  margin-bottom: var(--space-8);
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 500;
  line-height: 1.2;
}
.track-status-note { margin: var(--space-6) 0 0; font-size: var(--text-secondary); color: var(--ink-2); }
.track-payment-note:empty { display: none; }
.track-payment-note {
  display: inline-block;
  margin: var(--space-3) 0 0;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--r-sm);
  font-size: var(--text-meta);
  font-weight: 500;
}
.track-payment-note.paid { background: var(--success-soft); color: var(--success); }
.track-payment-note.unpaid { background: var(--warning-soft); color: var(--warning); }
.track-payment-note.failed { background: var(--danger-soft); color: var(--danger); }

.tracker-steps { display: flex; align-items: flex-start; justify-content: center; }
.tracker-step { display: flex; flex-direction: column; align-items: center; width: 88px; flex-shrink: 0; }
.tracker-icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-3);
  transition: background-color var(--motion-300) var(--ease-out), border-color var(--motion-300) var(--ease-out), color var(--motion-300) var(--ease-out);
}
.tracker-label {
  margin-top: var(--space-2);
  font-size: var(--text-meta);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink-3);
}
.tracker-connector {
  flex: 1 1 auto;
  height: 2px;
  margin-top: 19px; /* optical: centres the 2px line on the 40px icon */
  background: var(--border);
  transition: background-color var(--motion-300) var(--ease-out);
}
.tracker-step.completed .tracker-icon { background: var(--accent); border-color: var(--accent); color: #fff; }
.tracker-step.completed .tracker-label { color: var(--ink); }
.tracker-step.active .tracker-icon { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.tracker-step.active .tracker-label { color: var(--accent); font-weight: 600; }
.tracker-connector.completed { background: var(--accent); }

/* ------------------------------------------------------------------
   Checkout
   ------------------------------------------------------------------ */
.checkout-section { padding-block: var(--space-12) var(--space-20); }
.checkout-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
.checkout-header h1 { font-size: var(--text-h1); }
.checkout-steps {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-secondary);
  color: var(--ink-3);
}
.checkout-steps li { display: flex; align-items: center; gap: var(--space-2); }
.checkout-steps li + li::before { content: ""; width: 24px; height: 1px; background: var(--border-strong); }
.checkout-steps span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface);
  font-size: var(--text-meta);
  font-weight: 600;
}
.checkout-steps li.is-current { color: var(--ink); font-weight: 500; }
.checkout-steps li.is-current span { background: var(--accent); border-color: var(--accent); color: #fff; }

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--space-8);
  align-items: start;
}
.checkout-details-card,
.checkout-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.checkout-details-card { padding: 0 var(--space-8); }
.checkout-summary {
  position: sticky;
  top: calc(var(--header-h) + var(--space-6));
  overflow: hidden;
}

.checkout-block { min-width: 0; margin: 0; padding: var(--space-8) 0 var(--space-3); border: 0; }
.checkout-block[hidden] { display: none; }
.checkout-block + .checkout-block { border-top: 1px solid var(--border); }
/* float takes the legend out of the fieldset border; the next element clears it. */
.checkout-block legend {
  float: left;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  margin-bottom: var(--space-5);
  padding: 0;
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--ink);
}
.checkout-block legend + * { clear: both; }
.block-num {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: var(--text-meta);
  font-weight: 600;
}
.form-grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 var(--space-4); }
.form-row-postcode { max-width: 220px; }
#checkout-form .form-row { margin-bottom: var(--space-5); }

.fulfillment-toggle { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-3); margin-bottom: var(--space-5); }
.fulfillment-btn {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 64px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink-2);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--motion-150) var(--ease-out), background-color var(--motion-150) var(--ease-out), box-shadow var(--motion-150) var(--ease-out);
}
.fulfillment-btn:hover { border-color: var(--ink-3); }
.fulfillment-btn b { display: block; font-size: var(--text-body); font-weight: 600; color: var(--ink); }
.fulfillment-btn small { display: block; margin-top: var(--space-1); font-size: var(--text-secondary); }
.fulfillment-btn svg { flex-shrink: 0; color: var(--ink-3); }
.fulfillment-btn.active { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.fulfillment-btn.active svg { color: var(--accent); }

.coverage-note { display: none; margin: var(--space-2) 0 0; font-size: var(--text-secondary); font-weight: 500; }
.coverage-note.covered { display: block; color: var(--success); }
.coverage-note.not-covered { display: block; color: var(--warning); }
.delivery-area-hint { margin: calc(var(--space-2) * -1) 0 var(--space-4); }

.pickup-info-box {
  margin-bottom: var(--space-5);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
  font-size: var(--text-secondary);
  color: var(--ink-2);
}
.pickup-info-box b { color: var(--ink); }

.summary-product-image { aspect-ratio: 16 / 9; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.summary-product-image img { width: 100%; height: 100%; object-fit: cover; }
.summary-product-badge { display: none; }
.summary-product-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border);
}
.checkout-product-name { font-size: var(--text-body); font-weight: 600; }
.checkout-product-sub { margin-top: var(--space-1); font-size: var(--text-secondary); color: var(--ink-2); }
.checkout-product-tags { margin-top: var(--space-1); font-size: var(--text-meta); color: var(--ink-3); }

.qty-stepper {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
}
.qty-btn {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: var(--text-h4);
  line-height: 1.2;
  cursor: pointer;
  transition: background-color var(--motion-150) var(--ease-out);
}
.qty-btn:hover { background: var(--bg); }
#qty-value { min-width: 32px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

.summary-totals { padding: var(--space-5) var(--space-6) var(--space-6); }
.promo-row { display: flex; gap: var(--space-2); }
.promo-row input { flex: 1; min-width: 0; text-transform: uppercase; }
.promo-row input::placeholder { text-transform: none; }
.promo-message { margin: var(--space-2) 0 var(--space-4); font-size: var(--text-secondary); font-weight: 500; }
.promo-message:empty { margin: 0 0 var(--space-4); }
.promo-message.success { color: var(--success); }
.promo-message.error { color: var(--danger); }

.checkout-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  font-variant-numeric: tabular-nums;
}
.checkout-total-row[hidden] { display: none; }
.checkout-subtotal-row { margin-bottom: var(--space-2); font-size: var(--text-secondary); color: var(--ink-2); }
.checkout-subtotal-row span:last-child { color: var(--ink); font-weight: 500; }
#checkout-discount-row span:last-child { color: var(--success); }
#checkout-discount-code { margin-left: var(--space-1); font-size: var(--text-meta); color: var(--ink-3); }
.checkout-grand-total {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  font-weight: 600;
}
.checkout-grand-total span:last-child { font-family: var(--font-display); font-size: var(--text-h3); font-weight: 500; }
.checkout-submit { width: 100%; margin-top: var(--space-5); min-height: 48px; font-size: var(--text-body); }
.checkout-submit[disabled] { opacity: 0.7; cursor: progress; }
.summary-totals .form-message { text-align: center; }

.checkout-trust {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-5) 0 0;
  padding: var(--space-5) 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
  font-size: var(--text-meta);
  line-height: 1.4;
  color: var(--ink-2);
}
.checkout-trust li { display: flex; align-items: flex-start; gap: var(--space-2); }
.checkout-trust svg { flex-shrink: 0; color: var(--ink-3); }

/* Result views (success / checking / failed) */
.checkout-success {
  max-width: 480px;
  margin: var(--space-8) auto 0;
  padding: var(--space-10) var(--space-8);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.checkout-success-icon svg { margin-inline: auto; }
.checkout-success-icon svg circle { fill: var(--success); }
.checkout-success-icon svg path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.checkout-failed .checkout-success-icon svg circle { fill: var(--danger); }
.checkout-success h2,
.checkout-success h3 { margin: var(--space-4) 0 var(--space-2); font-family: var(--font-display); font-size: var(--text-h2); font-weight: 500; }
.checkout-success p { margin: var(--space-1) 0; color: var(--ink-2); }
.checkout-order-number {
  margin: var(--space-2) 0 var(--space-3);
  font-size: var(--text-h3);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.checkout-payment-status {
  display: inline-block;
  margin: var(--space-1) 0 var(--space-4);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--r-sm);
  font-size: var(--text-secondary);
  font-weight: 500;
  background: var(--surface-2);
  color: var(--ink-2);
}
.checkout-payment-status.confirmed { background: var(--success-soft); color: var(--success); }
.checkout-payment-status.unconfirmed { background: var(--warning-soft); color: var(--warning); }
.checkout-success .checkout-success-note { max-width: 380px; margin: 0 auto var(--space-6); font-size: var(--text-secondary); }
.order-summary-box {
  margin: var(--space-5) 0;
  padding: var(--space-2) var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-align: left;
}
.order-summary-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  font-size: var(--text-secondary);
  color: var(--ink-2);
}
.order-summary-row + .order-summary-row { border-top: 1px solid var(--border); }
.order-summary-row span:last-child { color: var(--ink); font-weight: 500; }
.order-summary-total span:last-child { font-weight: 600; }
.checkout-checking-spinner {
  width: 40px; height: 40px;
  margin: 0 auto;
  border: 3px solid var(--surface-2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.checkout-failed-ref { font-size: var(--text-secondary); margin-top: var(--space-3) !important; }
.checkout-failed-ref span { font-weight: 600; color: var(--ink); }
.checkout-failed-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-6); }

/* ------------------------------------------------------------------
   404
   ------------------------------------------------------------------ */
.not-found-wrap { max-width: 520px; margin-inline: auto; text-align: center; }
.not-found-number {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink-3);
}
.not-found-wrap h1 { margin-top: var(--space-4); font-size: var(--text-h1); }
.not-found-wrap p { margin-top: var(--space-3); color: var(--ink-2); }
.not-found-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-8); }

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */
.site-footer {
  padding-block: var(--space-16) var(--space-8);
  background: var(--inverse);
  color: var(--on-inverse-2);
  font-size: var(--text-secondary);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: var(--space-8);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(246, 239, 230, 0.12);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-h4);
  font-weight: 600;
  color: var(--on-inverse);
  text-decoration: none;
}
.footer-brand:hover { color: var(--on-inverse); }
.footer-about p { max-width: 36ch; }
.footer-heading {
  margin: 0 0 var(--space-3);
  font-family: var(--font-ui);
  font-size: var(--text-secondary);
  font-weight: 600;
  color: var(--on-inverse);
}
.footer-col a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-inverse-2);
  text-decoration: none;
}
.footer-col a:hover { color: var(--on-inverse); text-decoration: underline; }
.footer-socials { display: flex; gap: var(--space-2); margin-top: var(--space-5); }
.footer-socials a {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid rgba(246, 239, 230, 0.16);
  border-radius: var(--r-sm);
  color: var(--on-inverse);
  transition: border-color var(--motion-150) var(--ease-out);
}
.footer-socials a:hover { border-color: rgba(246, 239, 230, 0.5); color: var(--on-inverse); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-6);
  padding-top: var(--space-6);
  font-size: var(--text-meta);
  line-height: 1.4;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.footer-legal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-inverse-2); text-decoration: none; }
.footer-brand { min-height: 44px; }
.footer-legal a:hover { color: var(--on-inverse); text-decoration: underline; }

/* ------------------------------------------------------------------
   Spin the wheel (popup built by /js/spin.js)
   ------------------------------------------------------------------ */
.spin-dialog {
  width: min(400px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: var(--space-8) var(--space-6) var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--ink);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.spin-dialog::backdrop { background: rgba(31, 24, 18, 0.5); }
.spin-dialog[open] { animation: dialog-in var(--motion-300) var(--ease-out); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.spin-close {
  position: absolute; top: var(--space-2); right: var(--space-2);
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 0; border-radius: var(--r-sm);
  background: transparent; color: var(--ink-2);
  font-size: var(--text-h3); line-height: 1.2; cursor: pointer;
}
.spin-close:hover { background: var(--bg); color: var(--ink); }
.spin-kicker { margin: 0 0 var(--space-2); font-size: var(--text-secondary); font-weight: 500; color: var(--accent); }
.spin-dialog h2 { font-size: var(--text-h2); }
.spin-sub { margin: var(--space-2) 0 var(--space-5); font-size: var(--text-secondary); color: var(--ink-2); }
.spin-wheel-wrap { position: relative; width: min(272px, 72vw); aspect-ratio: 1; margin: 0 auto var(--space-5); }
.spin-wheel { width: 100%; height: 100%; border-radius: 50%; transition: transform 5s cubic-bezier(0.12, 0.72, 0.1, 1); }
.spin-wheel-svg { width: 100%; height: 100%; }
.spin-wheel-svg .slice-a { fill: #FBF3E7; }
.spin-wheel-svg .slice-b { fill: #F3E1C7; }
.spin-wheel-svg .slice-win { fill: #D4A017; }
.spin-wheel-svg .slice { stroke: #fff; stroke-width: 1.5; }
.spin-wheel-svg .wheel-rim { fill: none; stroke: var(--ink); stroke-width: 4; }
.spin-wheel-svg .slice-label { font-family: var(--font-ui); font-size: 12px; font-weight: 500; fill: #5A4C41; }
.spin-wheel-svg .slice-label-win { font-size: 14px; font-weight: 600; fill: #fff; }
.spin-pointer {
  position: absolute; top: -6px; left: 50%; z-index: 2; translate: -50% 0;
  width: 0; height: 0;
  border-left: 12px solid transparent; border-right: 12px solid transparent;
  border-top: 22px solid var(--accent);
}
.spin-hub {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border: 3px solid var(--ink); border-radius: 50%;
  background: var(--surface);
}
.spin-actions { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-2); }
.spin-actions .btn { width: 100%; }
.spin-go:disabled { opacity: 0.75; cursor: default; }
.spin-later {
  min-height: 44px; border: 0; background: none;
  color: var(--ink-2); font: inherit; font-size: var(--text-secondary);
  text-decoration: underline; cursor: pointer;
}
.spin-fine { margin: var(--space-3) 0 0; font-size: var(--text-meta); color: var(--ink-3); }
.spin-result:empty { display: none; }
.spin-result { margin: 0 0 var(--space-4); }
.spin-result p { margin: 0 0 var(--space-2); }
.spin-won, .spin-lost { font-family: var(--font-display); font-size: var(--text-h3); font-weight: 500; color: var(--ink); }
.spin-won { color: var(--accent); }
.spin-msg { font-size: var(--text-secondary); color: var(--ink-2); }
.spin-code-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-2); }
.spin-code {
  padding: var(--space-2) var(--space-3);
  border: 1px dashed var(--accent);
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: var(--text-h4); font-weight: 600; letter-spacing: 1px;
  user-select: all;
}
.spin-copy {
  min-height: 44px; padding: 0 var(--space-4);
  border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink);
  font: inherit; font-size: var(--text-secondary); font-weight: 500; cursor: pointer;
}
.spin-copy:hover { border-color: var(--ink-3); }
.spin-dialog.has-result .spin-fine { display: none; }
.spin-reopen {
  position: fixed; left: var(--space-4); bottom: var(--space-4); z-index: 40;
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 44px; padding: 0 var(--space-4);
  border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink);
  font: inherit; font-size: var(--text-secondary); font-weight: 500;
  box-shadow: var(--shadow-md);
  cursor: pointer;
}
.spin-reopen:hover { border-color: var(--ink-3); }

/* ------------------------------------------------------------------
   Scroll reveal (subtle)
   ------------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--motion-300) var(--ease-out), transform var(--motion-300) var(--ease-out);
}
.reveal.in-view { opacity: 1; transform: none; }
/* Already on screen at page load: show at once (keeps LCP fast). */
.reveal.no-fade { transition: none; }

/* ------------------------------------------------------------------
   Narrow (< 768px)
   ------------------------------------------------------------------ */
@media (max-width: 767.98px) {
  :root { --header-h: 56px; }

  .container { padding-inline: var(--space-4); }
  .section { padding-block: var(--space-16); }
  .section-tight { padding-block: var(--space-12); }
  .section-heading { margin-bottom: var(--space-8); }
  .section-heading h2 { font-size: var(--text-h2); }

  /* Chrome collapses to a menu */
  .primary-nav,
  .nav-actions .nav-cta { display: none; }
  .hamburger-btn { display: inline-flex; }

  .mobile-float-cta {
    position: fixed;
    right: var(--space-4);
    bottom: var(--space-4);
    z-index: 40;
    display: inline-flex;
    box-shadow: var(--shadow-md);
  }

  .page-hero { padding-block: var(--space-10) var(--space-8); }
  .page-hero h1 { font-size: var(--text-h1); }

  .hero { padding-block: var(--space-8) var(--space-12); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .hero-visual { order: -1; }
  .hero-visual .media-frame { aspect-ratio: 4 / 3; }
  .hero h1 { font-size: var(--text-h1); }
  .hero .lead { font-size: var(--text-body); }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .proof-list { grid-template-columns: 1fr; gap: var(--space-4); margin-top: var(--space-8); }
  .proof-list > div { display: flex; align-items: baseline; gap: var(--space-3); }
  .proof-list dd { margin: 0; }

  .feature-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .feature { padding: var(--space-6); }

  .product-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .info-col h1 { font-size: var(--text-h1); }
  .price-row { padding: var(--space-4); }
  .price-row .btn { flex: 1 1 100%; }

  .steps-grid { grid-template-columns: 1fr; }
  .step-card { padding: var(--space-6); }
  .step-card + .step-card { border-left: 0; border-top: 1px solid var(--border); }

  .cta-banner { padding-bottom: var(--space-16); }
  .cta-banner-inner { padding: var(--space-8) var(--space-6); }
  .cta-banner .btn { width: 100%; }

  .about-stats { grid-template-columns: 1fr; gap: var(--space-4); }

  .nutrition-layout,
  .reviews-layout,
  .faq-layout { grid-template-columns: 1fr; gap: var(--space-8); }
  .review-form-card,
  .aside-card { position: static; }
  .card-pad { padding: var(--space-6); }
  .review-card,
  .faq-question { padding-inline: var(--space-4); }
  .faq-answer { padding: 0 var(--space-4) var(--space-5); }

  .track-result { padding: var(--space-8) var(--space-4); }
  .tracker-step { width: 64px; }
  .tracker-icon { width: 36px; height: 36px; }
  .tracker-icon svg { width: 16px; height: 16px; }
  .tracker-connector { margin-top: 17px; } /* optical: centre of the 36px icon */

  .checkout-section { padding-block: var(--space-8) var(--space-16); }
  .checkout-header { margin-bottom: var(--space-5); }
  .checkout-steps { width: 100%; justify-content: space-between; font-size: var(--text-meta); }
  .checkout-steps li + li::before { width: 12px; }
  .checkout-layout { grid-template-columns: 1fr; gap: var(--space-4); }
  /* The summary's two halves become separate cards placed around the form */
  .checkout-summary { display: contents; }
  .summary-product,
  .summary-totals {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
  }
  .summary-product { order: 1; display: flex; align-items: stretch; }
  .checkout-details-card { order: 2; padding: 0 var(--space-4); }
  .summary-totals { order: 3; padding: var(--space-5) var(--space-4); }
  .summary-product-image { width: 104px; flex-shrink: 0; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--border); }
  .summary-product-body { flex: 1; flex-direction: column; align-items: flex-start; gap: var(--space-3); padding: var(--space-4); border-bottom: 0; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .form-row-postcode { max-width: none; }
  .checkout-success { padding: var(--space-8) var(--space-5); }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8) var(--space-4); padding-bottom: var(--space-8); }
  .footer-about { grid-column: 1 / -1; }
  .site-footer { padding-bottom: calc(var(--space-8) + 64px); } /* room for the floating order button */
}

/* ------------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  [data-tip]::after { transform: translate(-50%, 0) !important; }
  .hamburger-btn[data-tip]::after { transform: none !important; }
}
