/* ============================================================
   BioStack — Main Stylesheet
   Organized sections:
   1. VARIABLES
   2. BASE & RESET
   3. TYPOGRAPHY
   4. LAYOUT UTILITIES
   5. COMPONENTS — Buttons
   6. COMPONENTS — Header & Nav
   7. COMPONENTS — Cart Sidebar
   8. COMPONENTS — Cards (Product, Stack)
   9. COMPONENTS — Forms & Inputs
  10. COMPONENTS — Toast & Modals
  11. COMPONENTS — Chat Widget
  12. PAGE — Homepage
  13. PAGE — Shop
  14. PAGE — AI Advisor
  15. PAGE — Stacks
  16. PAGE — Science
  17. PAGE — Product Detail
  18. ANIMATIONS & TRANSITIONS
  19. RESPONSIVE
   ============================================================ */


/* ============================================================
   1. VARIABLES
   ============================================================ */

:root {
  /* Brand colours */
  --ink:          #0e1410;
  --forest:       #1a3a2a;
  --moss:         #2d5a3d;
  --sage:         #4a7c5e;
  --mist:         #a8c4b0;
  --cream:        #f5f2ed;
  --white:        #fafaf8;
  --warm-gray:    #e8e4df;
  --mid-gray:     #9a9590;
  --light-gray:   #f0ede8;
  --accent:       #c8a96e;
  --accent-light: #e8d9b8;
  --red:          #c0392b;

  /* Spacing scale */
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  40px;
  --space-xl:  60px;
  --space-2xl: 80px;
  --space-3xl: 120px;

  /* Border radius */
  --radius-sm: 2px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Transitions */
  --transition-fast:   0.2s ease;
  --transition-base:   0.35s ease;
  --transition-slow:   0.5s cubic-bezier(0.32, 0.72, 0, 1);
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-smooth: 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


/* ============================================================
   2. BASE & RESET
   ============================================================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Scroll progress bar (injected via JS) */
#scrollProgress {
  position: fixed;
  top: 0; left: 0;
  z-index: 9999;
  height: 2px;
  background: linear-gradient(90deg, var(--moss) 0%, var(--accent) 100%);
  width: 0%;
  transition: width 0.08s ease-out;
  pointer-events: none;
  transform-origin: left;
  border-radius: 0 2px 2px 0;
}


/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */

h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  letter-spacing: -0.02em;
}

/* Utility classes for font switching */
.serif { font-family: 'Cormorant Garamond', Georgia, serif; }
.mono  { font-family: 'DM Mono', monospace; }

.section-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
  font-weight: 500;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 64px;
  color: var(--ink);
}


/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.container-sm {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
}

.hidden { display: none !important; }

/* Page layer system — all pages stacked, only .active is visible */
.page {
  display: none;
  padding-top: 68px;
  min-height: 100vh;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease; /* snappier */
}

.page.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* During the brief fade-out transition we keep it visible but non-interactive */
.page.fading {
  display: block;
  pointer-events: none;
}


/* ============================================================
   5. COMPONENTS — Buttons
   ============================================================ */

/* Base button — extend with modifiers */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast),
              transform var(--transition-fast),
              box-shadow var(--transition-fast);
}

/* Size variants */
.btn--sm  { font-size: 11px; padding: 10px 18px; letter-spacing: 0.08em; }
.btn--md  { font-size: 13px; padding: 16px 36px; }
.btn--lg  { font-size: 14px; padding: 20px; width: 100%; }
.btn--nav { font-size: 12px; padding: 10px 22px; letter-spacing: 0.08em; }

/* Colour variants */
.btn--dark    { background: var(--forest); color: var(--white); }
.btn--dark:hover  { background: var(--moss); transform: translateY(-1px); }

.btn--outline {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
}
.btn--outline:hover { background: var(--ink); color: var(--white); transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  border: 1px solid rgba(14,20,16,0.25);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-1px); }

/* Press feedback on all buttons */
.btn:active,
.btn-lg:active,
.btn-sm:active,
.btn-nav:active,
.btn-next:active,
.checkout-btn:active,
.add-to-cart-btn:active {
  transform: scale(0.97) translateY(0) !important;
  transition: transform 0.1s ease !important;
}

/* Legacy button classes (kept for backwards compat with inline HTML) */
.btn-lg {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: all 0.25s;
  text-decoration: none;
  display: inline-block;
}
.btn-dark  { background: var(--forest); color: var(--white); }
.btn-dark:hover  { background: var(--moss); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.6);
  color: white;
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.22);
  border-color: white;
  color: white;
  transform: translateY(-1px);
}

.btn-sm {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  background: var(--forest);
  color: white;
  transition: background var(--transition-fast);
}
.btn-sm:hover { background: var(--moss); }

.btn-nav {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
}

.btn-primary { background: var(--forest); color: var(--white); }
.btn-primary:hover { background: var(--moss); }

.btn-outline-nav {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
}
.btn-outline-nav:hover { background: var(--ink); color: var(--white); }


/* ============================================================
   6. COMPONENTS — Header & Nav
   ============================================================ */

header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(250,250,248,0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(14,20,16,0.07);
  transition: box-shadow 0.2s ease;
}
header.scrolled {
  box-shadow: 0 1px 20px rgba(14,20,16,0.06);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
}

/* Logo */
.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  transition: opacity 0.2s;
  text-transform: uppercase;
}
.logo:hover { opacity: 0.6; }
.logo span  { color: var(--moss); font-weight: 500; }

/* Nav links */
nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

nav ul li a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(14,20,16,0.55);
  text-decoration: none;
  transition: color 0.15s ease;
  position: relative;
  cursor: pointer;
  user-select: none;
  padding: 4px 0;
}
nav ul li a:hover { color: var(--ink); }

/* Clean dot indicator on hover */
nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--moss);
  border-radius: 2px;
  transition: width 0.25s ease;
}
nav ul li a:hover::after { width: 100%; }

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ── Hamburger button — hidden on desktop ── */
.hamburger {
  display: none;          /* shown via @media below */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.15s;
  flex-shrink: 0;
}
.hamburger:hover { background: var(--light-gray); }

.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

/* Animated to X when open */
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile menu drawer ── */
.mobile-menu {
  position: fixed;
  top: 60px; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--warm-gray);
  padding: 0 20px 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  box-shadow: 0 12px 40px rgba(14,20,16,0.1);
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
  visibility: visible;
}

.mobile-menu a {
  display: block;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--light-gray);
  cursor: pointer;
  transition: color 0.15s;
}
.mobile-menu a:hover { color: var(--moss); }
.mobile-menu a:last-of-type { border-bottom: none; }

.mobile-menu-cta {
  margin-top: 16px;
  width: 100%;
  padding: 14px;
  background: var(--forest);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s;
}
.mobile-menu-cta:hover { background: var(--moss); }

/* Cart icon button */
.cart-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  border-radius: 10px;
  transition: all 0.15s;
  background: transparent;
}
.cart-icon:hover { background: rgba(26,58,42,0.06); }
.cart-icon svg {
  color: var(--ink);
  transition: transform 0.15s;
}
.cart-icon:hover svg {
  transform: scale(1.05);
}

.cart-badge {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  background: var(--forest);
  color: white;
  border-radius: 9px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(26,58,42,0.3);
}


/* ============================================================
   7. COMPONENTS — Cart Sidebar
   ============================================================ */

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;           /* always flex so transitions fire */
  visibility: hidden;
  pointer-events: none;
}

.cart-overlay.open {
  visibility: visible;
  pointer-events: all;
}

/* Dark backdrop — fades in separately */
.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14,20,16,0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.28s ease;   /* was 0.5s — snappier */
}
.cart-overlay.open .cart-backdrop { opacity: 1; }

/* Sliding panel */
.cart-panel {
  position: absolute;
  top: 0; right: 0;
  width: 100%;
  max-width: 480px;
  height: 100%;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transform: translateX(105%);      /* slightly off-screen so shadow isn't visible before slide */
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1); /* was 0.55s */
  box-shadow: -24px 0 80px rgba(14,20,16,0.15);
  will-change: transform;
}
.cart-overlay.open .cart-panel { transform: translateX(0); }

.cart-header {
  padding: 28px 32px;
  border-bottom: 1px solid var(--warm-gray);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.cart-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 400;
}

.cart-close {
  width: 36px; height: 36px;
  border: 1px solid var(--warm-gray);
  border-radius: var(--radius-sm);
  background: none;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}
.cart-close:hover { background: var(--light-gray); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px;
}

/* Custom scrollbar for cart */
.cart-items::-webkit-scrollbar       { width: 4px; }
.cart-items::-webkit-scrollbar-track { background: transparent; }
.cart-items::-webkit-scrollbar-thumb { background: var(--warm-gray); border-radius: 2px; }

.cart-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #f0ede8;
  position: relative;
}

.cart-item-img {
  width: 72px; height: 72px;
  background: #f8f7f5;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--forest);
  overflow: hidden;
  border: 1px solid #e8e4de;
}
.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.cart-item-name  { font-weight: 600; font-size: 14px; margin-bottom: 2px; color: #222; line-height: 1.3; }
.cart-item-sub   { font-size: 11px; color: #999; font-weight: 400; }
.cart-item-price { font-family: 'Cormorant Garamond', serif; font-size: 20px; margin-top: 8px; color: #1a3a2a; font-weight: 500; }

.cart-item-remove {
  position: absolute;
  top: 16px;
  right: 0;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  color: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.cart-item-remove:hover {
  background: #fee2e2;
  color: #dc2626;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.qty-btn {
  width: 28px; height: 28px;
  border: 1px solid var(--warm-gray);
  border-radius: var(--radius-sm);
  background: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}
.qty-btn:hover { background: var(--light-gray); }

.qty-num {
  font-size: 14px;
  font-weight: 500;
  min-width: 20px;
  text-align: center;
}

/* Empty cart state */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--mid-gray);
}
.cart-empty-icon  { font-size: 48px; margin-bottom: 16px; }
.cart-empty-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 8px;
}
.cart-empty-sub { font-size: 14px; font-weight: 300; }

/* Cart footer / totals */
.cart-footer {
  padding: 24px 32px;
  border-top: 1px solid var(--warm-gray);
  background: var(--cream);
  flex-shrink: 0;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cart-subtotal-label {
  font-size: 13px;
  color: var(--mid-gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.cart-subtotal-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
}

.checkout-btn {
  width: 100%;
  padding: 18px;
  background: var(--forest);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition-fast);
  margin-bottom: 10px;
}
.checkout-btn:hover { background: var(--moss); }

.cart-shipping {
  font-size: 12px;
  color: var(--mid-gray);
  text-align: center;
}


/* ============================================================
   8. COMPONENTS — Cards (Product, Stack, Testimonial)
   ============================================================ */

/* ── Product Card ── */
.product-card {
  background: var(--white);
  border: 1px solid var(--warm-gray);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s ease,
              box-shadow 0.22s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(14,20,16,0.1);
}

.product-img {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  position: relative;
}

.product-bottle-mini {
  width: 80px;
  height: 140px;
  background: linear-gradient(145deg, var(--forest) 0%, var(--moss) 100%);
  border-radius: 10px 10px 16px 16px;
  position: relative;
  box-shadow: 0 20px 40px rgba(26,58,42,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.product-card:hover .product-bottle-mini { transform: translateY(-4px) scale(1.03); }

.product-bottle-mini::after {
  content: '';
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  width: 32px; height: 20px;
  background: var(--ink);
  border-radius: 4px 4px 0 0;
}

.mini-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 0 8px;
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

.product-info     { padding: 24px; }
.product-category {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--moss);
  font-weight: 500;
  margin-bottom: 8px;
}
.product-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 8px;
  line-height: 1.2;
}
.product-tagline {
  font-size: 13px;
  color: var(--mid-gray);
  margin-bottom: 20px;
  font-weight: 300;
  line-height: 1.5;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--warm-gray);
}
.product-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  color: var(--ink);
}

/* ── Stack Card (homepage grid) ── */
.stack-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  border: 1px solid var(--warm-gray);
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.stack-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(14,20,16,0.1);
}


.stack-card-header {
  height: 240px;
  display: flex;
  align-items: flex-end;
  padding: 0;
  position: relative;
  overflow: hidden;
  margin: 0;
  flex-shrink: 0;
  background: #1a3a2a;
}

/* Stack colour themes */
.sc-muscle { background: linear-gradient(135deg, #1a3a2a, #2d5a3d); }
.sc-sleep  { background: linear-gradient(135deg, #1a1a2e, #2d2a4a); }
.sc-health { background: linear-gradient(135deg, #2a3a1a, #4a5a2d); }
.sc-focus  { background: linear-gradient(135deg, #3a2a1a, #6b4a2d); }

.stack-card-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 60%);
}

.stack-tag {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.15);
  padding: 5px 12px;
  border-radius: 100px;
  position: relative;
  z-index: 1;
}

.stack-card-body {
  padding: 24px 24px 20px;
  background: var(--white);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.stack-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.2;
}
.stack-desc {
  font-size: 13px;
  color: var(--mid-gray);
  line-height: 1.6;
  margin-bottom: 16px;
  font-weight: 300;
  flex: 1;
}

.stack-ingredients {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}
.ingredient-tag {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--moss);
  background: rgba(45,90,61,0.08);
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 500;
}

.stack-price         { display: flex; align-items: center; justify-content: space-between; }
.price-val           { font-family: 'Cormorant Garamond', serif; font-size: 26px; color: var(--ink); }
.price-period        { font-size: 12px; color: var(--mid-gray); }

/* ── Stack Detail Card (Stacks page) ── */
.stack-detail-card {
  background: var(--white);
  border: 1px solid var(--warm-gray);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s ease,
              box-shadow 0.22s ease;
}
.stack-detail-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 56px rgba(14,20,16,0.12);
}

.sdc-header {
  min-height: 220px;
  padding: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

/* Fallback gradients */
.sdc-muscle { background: linear-gradient(135deg, #0d2018, #1a3a2a); }
.sdc-sleep  { background: linear-gradient(135deg, #0d0d1f, #1a1a35); }
.sdc-health { background: linear-gradient(135deg, #1a2a0d, #2a3a18); }
.sdc-focus  { background: linear-gradient(135deg, #2a1a0d, #3d2a18); }
.sdc-gut    { background: linear-gradient(135deg, #0d1a12, #1a3a22); }

/* Background image */
.sdc-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform 0.5s ease;
}
.stack-detail-card:hover .sdc-bg-img { transform: scale(1.03); }

/* Gradient overlay */
.sdc-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(14,20,16,0.25) 0%, rgba(14,20,16,0.8) 100%);
}

/* Text content */
.sdc-header-content {
  position: relative; z-index: 2;
  padding: 28px 36px;
  width: 100%;
}

.sdc-tag {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
  display: block;
  font-weight: 500;
}
.sdc-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 400;
  color: white;
  margin-bottom: 8px;
  line-height: 1.15;
}
.sdc-for {
  font-size: 13px;
  color: rgba(255,255,255,0.68);
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 10px;
}
.sdc-result {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sdc-body { padding: 36px 48px 48px; }
.sdc-includes       { margin-bottom: 28px; }
.sdc-includes-title {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--mid-gray);
  margin-bottom: 14px;
}
.includes-list        { display: flex; flex-direction: column; gap: 8px; }
.include-item         { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); }
.include-dot          { width: 6px; height: 6px; background: var(--moss); border-radius: 50%; flex-shrink: 0; }

.sdc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--warm-gray);
}
.sdc-price { font-family: 'Cormorant Garamond', serif; font-size: 32px; }

/* ── Testimonial Card ── */
.testimonial-card {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 40px;
  border: 1px solid var(--warm-gray);
}

.stars     { display: flex; gap: 4px; margin-bottom: 20px; }
.star      { color: var(--accent); font-size: 16px; }

.testimonial-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 28px;
  font-style: italic;
}

.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--moss);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: white;
}
.author-name { font-weight: 600; font-size: 14px; }
.author-info { font-size: 12px; color: var(--mid-gray); }

/* ── Research Card (Science page) ── */
.research-card {
  padding: 36px;
  border: 1px solid var(--warm-gray);
  border-radius: var(--radius-sm);
  transition: box-shadow 0.3s;
}
.research-card:hover { box-shadow: 0 12px 32px rgba(14,20,16,0.08); }

.research-icon  { font-size: 32px; margin-bottom: 16px; }
.research-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  margin-bottom: 12px;
}
.research-desc  { font-size: 14px; color: var(--mid-gray); line-height: 1.7; font-weight: 300; }
.research-ref   {
  font-size: 11px;
  color: var(--moss);
  margin-top: 16px;
  font-family: 'DM Mono', monospace;
}


/* ============================================================
   9. COMPONENTS — Forms & Inputs
   ============================================================ */

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 16px 20px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border var(--transition-fast);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input:focus        { border-color: rgba(255,255,255,0.4); }

/* Slider (AI Advisor) */
.slider-container  { margin-bottom: 32px; }
.slider-labels     { display: flex; justify-content: space-between; font-size: 12px; color: var(--mid-gray); margin-bottom: 8px; }
.slider-input {
  width: 100%;
  height: 4px;
  appearance: none;
  background: var(--warm-gray);
  border-radius: 100px;
  outline: none;
  cursor: pointer;
}
.slider-input::-webkit-slider-thumb {
  appearance: none;
  width: 20px; height: 20px;
  background: var(--moss);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(45,90,61,0.4);
}
.slider-val {
  text-align: center;
  margin-top: 12px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  color: var(--ink);
}


/* ============================================================
   10. COMPONENTS — Toast Notification
   ============================================================ */

.toast {
  position: fixed;
  bottom: 40px; right: 40px;
  background: var(--forest);
  color: white;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.4s ease;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.toast.show { transform: translateY(0); opacity: 1; }


/* ============================================================
   11. COMPONENTS — Chat Widget (FAB + Popup)
   ============================================================ */

/* ── Chat FAB ── */
.chat-fab {
  position: fixed;
  bottom: 32px; left: 32px;
  z-index: 3000;
  height: 50px;
  padding: 0 20px 0 14px;
  background: var(--forest);
  border-radius: 25px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(26,58,42,0.38), 0 1px 4px rgba(26,58,42,0.15);
  display: flex;
  align-items: center;
  gap: 9px;
  transition: transform 0.2s, box-shadow 0.2s;
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.chat-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(26,58,42,0.45), 0 2px 6px rgba(26,58,42,0.15);
}
.chat-fab-icon {
  width: 30px; height: 30px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fab-badge {
  position: absolute;
  top: -4px; right: -4px;
  width: 16px; height: 16px;
  background: #4ade80;
  border-radius: 50%;
  border: 2px solid var(--forest);
}

/* ── Chat Window ── */
.chat-window {
  position: fixed;
  bottom: 96px; left: 32px;
  z-index: 3000;
  width: 370px; height: 540px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 20px 64px rgba(14,20,16,0.18), 0 2px 12px rgba(14,20,16,0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.88) translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.22s ease;
  transform-origin: bottom left;
  border: 1px solid rgba(14,20,16,0.08);
}
.chat-window.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}
/* ── Header ── */
.chat-win-header {
  background: var(--forest);
  padding: 14px 14px 14px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  cursor: grab;
  user-select: none;
}
.chat-win-header:active { cursor: grabbing; }

.chat-drag-handle {
  position: absolute;
  top: 7px; left: 50%; transform: translateX(-50%);
  width: 32px; height: 3px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
}

.chat-avatar {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.13);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  color: white;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.1);
}
.chat-win-name   { font-size: 13px; font-weight: 600; color: white; line-height: 1.3; }
.chat-win-sub    { font-size: 10px; color: rgba(255,255,255,0.5); margin-top: 1px; }
.chat-win-status { font-size: 10px; color: #86efac; display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.chat-win-status::before {
  content: '';
  width: 5px; height: 5px;
  background: #4ade80;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.chat-win-actions { margin-left: auto; display: flex; gap: 4px; }
.chat-win-btn {
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 28px; height: 28px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
}
.chat-win-btn:hover { background: rgba(255,255,255,0.2); }

/* keep old alias working */
.chat-win-close { background: rgba(255,255,255,0.1); border: none; color: white;
  width: 28px; height: 28px; border-radius: 7px; cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
.chat-win-close:hover { background: rgba(255,255,255,0.2); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar       { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--warm-gray); border-radius: 2px; }

/* Individual message bubble */
.msg {
  max-width: 85%;
  animation: fadeUp 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.msg.user { align-self: flex-end; align-items: flex-end; }
.msg.ai   { align-self: flex-start; align-items: flex-start; }

.msg-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.6;
}
.msg.user .msg-bubble { background: var(--forest); color: white; border-radius: 16px 16px 4px 16px; }
.msg.ai   .msg-bubble { background: var(--light-gray); color: var(--ink); border-radius: 16px 16px 16px 4px; }

.msg-time { font-size: 10px; color: var(--mid-gray); padding: 0 4px; }

/* Typing indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 14px 16px;
  background: var(--light-gray);
  border-radius: 16px 16px 16px 4px;
  width: fit-content;
}
.typing-dot {
  width: 6px; height: 6px;
  background: var(--mid-gray);
  border-radius: 50%;
  animation: typingBounce 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

/* Chat input area */
.chat-input-area {
  padding: 12px 16px 16px;
  border-top: 1px solid var(--warm-gray);
  background: var(--white);
  flex-shrink: 0;
}

.chat-quick-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }

.quick-btn {
  font-size: 11px;
  padding: 5px 12px;
  border: 1px solid var(--warm-gray);
  border-radius: 100px;
  background: none;
  cursor: pointer;
  color: var(--ink);
  transition: all var(--transition-fast);
  white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
}
.quick-btn:hover { border-color: var(--moss); color: var(--moss); background: rgba(45,90,61,0.05); }

.chat-input-row { display: flex; gap: 8px; align-items: flex-end; }

.chat-input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--warm-gray);
  border-radius: 10px;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  resize: none;
  outline: none;
  transition: border var(--transition-fast);
  line-height: 1.5;
  max-height: 100px;
  min-height: 40px;
  background: var(--white);
  color: var(--ink);
}
.chat-input:focus         { border-color: var(--moss); }
.chat-input::placeholder  { color: var(--mid-gray); }

.chat-send {
  width: 40px; height: 40px;
  flex-shrink: 0;
  background: var(--forest);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
  color: white;
}
.chat-send:hover     { background: var(--moss); }
.chat-send:disabled  { background: var(--warm-gray); cursor: not-allowed; }

.chat-disclaimer {
  font-size: 10px;
  color: var(--mid-gray);
  text-align: center;
  margin-top: 8px;
  line-height: 1.4;
}


/* ============================================================
   12. PAGE — Homepage
   ============================================================ */

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--ink);
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(14,20,16,0.45) 0%, rgba(14,20,16,0.35) 40%, rgba(14,20,16,0.55) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 40px;
  max-width: 100%;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Dark overlay over video so text is readable */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,16,12,0.55) 0%,
    rgba(10,16,12,0.45) 60%,
    rgba(10,16,12,0.7) 100%
  );
  z-index: 1;
}

.hero--fullwidth {
  min-height: 100vh;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 40px 100px;
  max-width: 900px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 32px;
  backdrop-filter: blur(8px);
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 300;
  line-height: 1.12;
  margin-bottom: 20px;
  max-width: 700px;
  color: white;
  text-shadow: 0 2px 24px rgba(0,0,0,0.4);
}
.hero h1 em { font-style: italic; color: rgba(255,255,255,0.88); }

.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.88);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 560px;
  font-weight: 300;
  text-align: center;
}

.hero-ctas { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: center; margin-bottom: 0; }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.2);
  justify-content: center;
}
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  font-weight: 400;
  color: white;
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: var(--mid-gray);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Hero visual panel */
.hero-visual {
  height: 100%;
  min-height: 600px;
  background: var(--forest);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(45,90,61,0.6) 0%, rgba(26,58,42,0.9) 100%);
}

.hero-product-showcase {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Bottle illustration */
.product-bottle {
  width: 160px; height: 260px;
  background: linear-gradient(145deg, #f5f2ed 0%, #e8e4df 50%, #d4cfc8 100%);
  border-radius: 16px 16px 24px 24px;
  position: relative;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
}
.product-bottle::after {
  content: '';
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 28px;
  background: #d4cfc8;
  border-radius: 6px 6px 0 0;
}
.bottle-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px; font-weight: 400;
  color: var(--forest); letter-spacing: 0.06em;
  text-align: center; line-height: 1.3;
}
.bottle-sub {
  font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mid-gray); text-align: center;
}

/* Floating info cards in hero */
.hero-floating-card {
  position: absolute;
  background: rgba(250,250,248,0.95);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}
.card-1 { bottom: 180px; left: -30px; }
.card-2 { top: 180px; right: -30px; }

.floating-label { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mid-gray); margin-bottom: 4px; }
.floating-val   { font-family: 'Cormorant Garamond', serif; font-size: 22px; color: var(--ink); font-weight: 400; }
.floating-sub   { font-size: 11px; color: var(--moss); font-weight: 500; }

/* How it works */
.how-it-works { padding: var(--space-3xl) 0; background: var(--white); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--warm-gray);
  border: 1px solid var(--warm-gray);
}

.step-card {
  background: var(--white);
  padding: 56px 48px;
  position: relative;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 12px rgba(14,20,16,0.06);
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
}
.step-card:hover {
  background: var(--white);
  box-shadow: 0 8px 28px rgba(14,20,16,0.11);
  transform: translateY(-4px);
}

.step-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 80px;
  font-weight: 300;
  color: var(--warm-gray);
  line-height: 1;
  margin-bottom: 24px;
  display: block;
}

.step-icon {
  width: 56px; height: 56px;
  background: var(--forest);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.step-icon svg { width: 26px; height: 26px; color: white; fill: none; stroke: white; stroke-width: 1.5; }

.step-title { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 400; margin-bottom: 12px; line-height: 1.2; }
.step-desc  { font-size: 14px; color: var(--mid-gray); line-height: 1.7; font-weight: 300; }

/* AI Feature Section */
.ai-feature {
  padding: var(--space-3xl) 0;
  background: var(--forest);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.ai-feature::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(200,169,110,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.ai-feature-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.ai-feature .section-label { color: var(--mist); }
.ai-feature .section-title { color: var(--white); margin-bottom: 24px; }
.ai-feature-desc            { font-size: 16px; color: var(--mist); line-height: 1.8; margin-bottom: 40px; font-weight: 300; }

/* AI feature — copy proof points */
.ai-feature-proof {
  display: flex; gap: 32px; margin: 28px 0 36px;
}
.ai-proof-item { display: flex; flex-direction: column; gap: 4px; }
.ai-proof-num  { font-family: 'Cormorant Garamond', serif; font-size: 36px; font-weight: 300; color: white; line-height: 1; }
.ai-proof-label { font-size: 12px; color: rgba(255,255,255,0.5); font-weight: 300; max-width: 140px; line-height: 1.4; }

.btn-light {
  background: white; color: var(--forest);
  border: none; border-radius: 6px;
  padding: 15px 28px; font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: background 0.15s, transform 0.1s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-light:hover { background: var(--cream); transform: translateY(-1px); }

/* AI demo card */
.ai-demo-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(16px);
}

/* Header */
.ai-demo-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px; padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ai-avatar {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--moss) 0%, #4ade80 100%);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  position: relative; flex-shrink: 0;
}

.ai-avatar-pulse {
  width: 10px; height: 10px;
  background: white; border-radius: 50%;
  animation: pulse 2s infinite;
}

.ai-name    { font-weight: 600; font-size: 13px; color: white; }
.ai-tagline {
  font-size: 11px; color: rgba(255,255,255,0.45);
  display: flex; align-items: center; gap: 5px; margin-top: 2px;
}

.ai-status-dot {
  width: 6px; height: 6px; background: #4ade80;
  border-radius: 50%; flex-shrink: 0;
  animation: pulse 2s infinite;
}

.ai-match-pill {
  margin-left: auto;
  font-size: 11px; font-weight: 700;
  color: #4ade80;
  background: rgba(74,222,128,0.12);
  border: 1px solid rgba(74,222,128,0.25);
  padding: 4px 10px; border-radius: 100px;
  white-space: nowrap;
}

/* Health signals */
.ai-signals {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 18px;
}

.ai-signal {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 10px;
  border: 1px solid transparent;
}

.ai-signal--ok    { background: rgba(74,222,128,0.07); border-color: rgba(74,222,128,0.15); }
.ai-signal--warn  { background: rgba(200,169,110,0.1); border-color: rgba(200,169,110,0.2); }
.ai-signal--alert { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.15); }

.ai-signal-icon { font-size: 16px; flex-shrink: 0; }
.ai-signal-body { flex: 1; min-width: 0; }
.ai-signal-label { font-size: 10px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.06em; }
.ai-signal-val   { font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.85); margin-top: 1px; }

/* AI thinking animation */
.ai-thinking {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 10px;
}

.ai-thinking-dot {
  width: 5px; height: 5px;
  background: rgba(255,255,255,0.4); border-radius: 50%;
  animation: typingBounce 1.2s infinite;
}
.ai-thinking-dot:nth-child(2) { animation-delay: 0.15s; }
.ai-thinking-dot:nth-child(3) { animation-delay: 0.3s; }

.ai-thinking span {
  font-size: 10px; color: rgba(255,255,255,0.3);
  letter-spacing: 0.08em; text-transform: uppercase;
  font-family: 'DM Mono', monospace;
}

/* AI message */
.ai-message {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; padding: 16px 18px;
  font-size: 13px; color: rgba(255,255,255,0.78);
  line-height: 1.7; margin-bottom: 16px; font-weight: 300;
  font-style: italic;
}

/* Stack preview — varied per time of day */
.ai-stack-preview { display: flex; flex-direction: column; gap: 8px; }

.stack-item-preview {
  display: flex; align-items: center; gap: 12px;
  border-radius: 10px; padding: 11px 14px;
  border: 1px solid transparent;
}

.sip--morning { background: rgba(200,169,110,0.08); border-color: rgba(200,169,110,0.18); }
.sip--workout { background: rgba(45,90,61,0.25);    border-color: rgba(45,90,61,0.4); }
.sip--evening { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }

.stack-dot        { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-morning      { background: var(--accent); box-shadow: 0 0 6px rgba(200,169,110,0.5); }
.dot-workout      { background: #4ade80; box-shadow: 0 0 6px rgba(74,222,128,0.4); }
.dot-evening      { background: rgba(255,255,255,0.4); }

.stack-item-info  { flex: 1; min-width: 0; }
.stack-item-name  { font-size: 13px; font-weight: 500; color: white; }
.stack-item-why   { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 2px; }
.stack-item-time  { font-size: 10px; color: rgba(255,255,255,0.35); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }

/* Featured Stacks Section */
.featured-stacks { padding: var(--space-3xl) 0; background: var(--cream); }
.stacks-grid     { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 60px; }

/* Best Sellers Section */
.best-sellers  { padding: var(--space-3xl) 0; background: var(--light-gray); }
.products-row  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 60px; }

/* Science & Trust Section */
.science-section { padding: var(--space-3xl) 0; background: var(--white); }
.science-inner   { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

.science-pillars { display: flex; flex-direction: column; gap: 2px; margin-top: 48px; }
.pillar {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--warm-gray);
  background: var(--white);
  transition: background 0.25s, transform 0.25s;
}
.pillar:hover { background: var(--cream); transform: translateX(6px); }

.pillar-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  background: var(--cream);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.pillar-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.pillar-desc  { font-size: 13px; color: var(--mid-gray); line-height: 1.6; font-weight: 300; }

.science-visual {
  position: relative;
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 60px 40px;
  border: 1px solid var(--warm-gray);
}
.science-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.sci-stat {
  text-align: center;
  padding: 32px 16px;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--warm-gray);
}
.sci-num   { font-family: 'Cormorant Garamond', serif; font-size: 48px; font-weight: 300; color: var(--forest); line-height: 1; }
.sci-label { font-size: 12px; color: var(--mid-gray); margin-top: 8px; letter-spacing: 0.04em; }

/* Testimonials Section */
.testimonials      { padding: var(--space-3xl) 0; background: var(--white); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 60px; }

/* Newsletter */
.newsletter { padding: 100px 0; background: var(--forest); text-align: center; color: var(--white); }
.newsletter h2 { color: var(--white); margin-bottom: 16px; }
.newsletter p  { color: var(--mist); font-size: 16px; margin-bottom: 40px; font-weight: 300; }

/* Footer */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.6);
  padding: 60px 0 40px;
}
footer .logo { color: var(--white); }
footer .logo span { color: var(--moss); }

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 32px;
}
.footer-brand p  { font-size: 13px; line-height: 1.7; max-width: 280px; font-weight: 300; }

.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: white;
  font-weight: 500;
  margin-bottom: 20px;
  font-family: 'DM Sans', sans-serif;
}
.footer-col ul    { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color var(--transition-fast);
  font-weight: 300;
  cursor: pointer;
}
.footer-col ul li a:hover { color: white; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}


/* ============================================================
   13. PAGE — Shop
   ============================================================ */

.page-header {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--warm-gray);
  background: var(--cream);
}
.page-header h1 { font-size: 52px; }
.page-header p  { font-size: 16px; color: var(--mid-gray); margin-top: 12px; font-weight: 300; }

.shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  padding: 48px 0 120px;
}

.filter-group  { margin-bottom: 36px; }
.filter-title {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--ink);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--warm-gray);
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  font-size: 14px;
  color: var(--mid-gray);
  transition: color var(--transition-fast);
}
.filter-item:hover        { color: var(--ink); }
.filter-item.active       { color: var(--moss); font-weight: 500; }

.filter-check {
  width: 16px; height: 16px;
  border: 1.5px solid var(--warm-gray);
  border-radius: 2px;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}
.filter-item.active .filter-check              { background: var(--moss); border-color: var(--moss); }
.filter-item.active .filter-check::after       { content: '✓'; font-size: 10px; color: white; font-weight: 600; }

.shop-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}


/* ============================================================
   14. PAGE — AI Advisor
   ============================================================ */

.advisor-page { background: var(--cream); }

.advisor-hero {
  text-align: center;
  padding: 72px 0 52px;
  background: var(--forest);
  color: white;
  transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
}
/* Hide hero once quiz is started */
.advisor-hero.hidden {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  opacity: 0;
}
.advisor-hero .section-label { color: var(--mist); }
.advisor-hero h1              { color: white; font-size: clamp(40px, 5vw, 64px); }
.advisor-hero p               { color: var(--mist); font-size: 17px; margin-top: 16px; font-weight: 300; max-width: 560px; margin-left: auto; margin-right: auto; }

.advisor-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 40px 100px;
  min-height: calc(100vh - 68px - 200px); /* push question to centre of viewport */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Progress bar */
.progress-bar-wrap {
  display: flex; align-items: center; gap: 14px; margin-bottom: 48px;
}
.progress-bar-track {
  flex: 1; height: 3px; background: var(--light-gray); border-radius: 100px; overflow: hidden;
}
.progress-bar-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--forest), var(--moss));
  border-radius: 100px;
  transition: width 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.progress-counter {
  font-size: 11px; font-weight: 600; color: var(--mid-gray);
  letter-spacing: 0.06em; white-space: nowrap;
  min-width: 44px; text-align: right;
  font-family: 'DM Mono', monospace;
}

/* Question card */
.question-card {
  background: var(--white);
  border: 1px solid var(--warm-gray);
  border-radius: 8px;
  padding: 48px;
  animation: questionSlide 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.question-num {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--moss);
  font-weight: 500;
  margin-bottom: 12px;
}
.question-text { font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 400; margin-bottom: 32px; line-height: 1.25; }

/* Answer option grids */
.options-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 32px; }
.options-col  { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }

.option-btn {
  padding: 18px 20px;
  border: 1.5px solid var(--warm-gray);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.option-btn:hover    { border-color: var(--moss); background: rgba(45,90,61,0.04); transform: translateY(-2px); }
.option-btn.selected { border-color: var(--moss); background: rgba(45,90,61,0.08); transform: translateY(-1px); }

.option-emoji { font-size: 24px; margin-bottom: 8px; display: block; }
.option-label { font-size: 14px; font-weight: 500; }
.option-sub   { font-size: 12px; color: var(--mid-gray); margin-top: 2px; }

.option-btn-full {
  padding: 16px 20px;
  border: 1.5px solid var(--warm-gray);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  width: 100%;
}
.option-btn-full:hover    { border-color: var(--moss); transform: translateX(4px); }
.option-btn-full.selected { border-color: var(--moss); background: rgba(45,90,61,0.08); transform: translateX(4px); }

/* Nav buttons inside question card */
.question-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.btn-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: none;
  border: 1.5px solid var(--warm-gray);
  cursor: pointer;
  color: var(--mid-gray);
  transition: all 0.15s;
  flex-shrink: 0;
  font-size: 16px;
}
.btn-back:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--cream);
}

.btn-next {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 24px;
  border-radius: 10px;
  background: var(--forest);
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-next:hover  { background: var(--moss); }
.btn-next:active { transform: scale(0.98); }

/* Results card */
.results-card {
  background: var(--white);
  border: 1px solid var(--warm-gray);
  border-radius: 8px;
  padding: 48px;
  animation: fadeUp 0.5s ease;
}

.results-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--warm-gray);
}
.results-header h2 { font-size: 36px; margin-bottom: 8px; }
.results-header p  { font-size: 14px; color: var(--mid-gray); font-weight: 300; }

.protocol-section  { margin-bottom: 32px; }
.protocol-time {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--moss);
  font-weight: 500;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--light-gray);
}

.protocol-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--light-gray);
}
.protocol-item:last-child { border-bottom: none; }

.protocol-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  background: var(--cream);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.protocol-name   { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.protocol-reason { font-size: 13px; color: var(--mid-gray); line-height: 1.5; font-weight: 300; }

.results-cta {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--warm-gray);
  text-align: center;
}
.btn-cta-full {
  width: 100%;
  padding: 20px;
  background: var(--forest);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition-fast);
  margin-bottom: 12px;
}
.btn-cta-full:hover { background: var(--moss); }
.results-note { font-size: 12px; color: var(--mid-gray); }

/* Loading state */
.loading-card {
  background: var(--white);
  border: 1px solid var(--warm-gray);
  border-radius: 8px;
  padding: 80px 48px;
  text-align: center;
  animation: fadeUp 0.4s ease;
}
.loading-spinner {
  width: 48px; height: 48px;
  border: 2px solid var(--warm-gray);
  border-top-color: var(--moss);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 24px;
}
.loading-title { font-family: 'Cormorant Garamond', serif; font-size: 28px; margin-bottom: 12px; }
.loading-sub   { font-size: 14px; color: var(--mid-gray); }


/* ============================================================
   15. PAGE — Stacks
   ============================================================ */

.stacks-page-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  padding: 60px 0 120px;
}
/* 5th stack spans full width */
.stacks-page-grid .stack-detail-card:last-child {
  grid-column: 1 / -1;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
}


/* ============================================================
   16. PAGE — Science
   ============================================================ */

.science-page { background: var(--white); }

.science-hero {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--forest), var(--moss));
  color: white;
  text-align: center;
}
.science-hero h1 { color: white; font-size: 60px; }
.science-hero p  { color: var(--mist); font-size: 17px; margin-top: 16px; font-weight: 300; max-width: 560px; margin-left: auto; margin-right: auto; }

.science-content { padding: 80px 0 120px; }

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 48px 0;
}


/* ============================================================
   17. PAGE — Product Detail
   ============================================================ */

.product-page-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 60px 0 120px;
  align-items: start;
}

.product-main-img {
  position: sticky;
  top: 100px;
  height: 560px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--warm-gray);
}

.product-main-bottle {
  width: 140px; height: 240px;
  background: linear-gradient(145deg, var(--forest) 0%, var(--moss) 100%);
  border-radius: 14px 14px 20px 20px;
  position: relative;
  box-shadow: 0 40px 80px rgba(26,58,42,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}
.product-main-bottle::after {
  content: '';
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  width: 50px; height: 24px;
  background: var(--ink);
  border-radius: 4px 4px 0 0;
}
.main-bottle-name { font-family: 'Cormorant Garamond', serif; font-size: 20px; color: white; text-align: center; line-height: 1.3; }
.main-bottle-sub  { font-size: 10px; color: rgba(255,255,255,0.6); letter-spacing: 0.1em; text-transform: uppercase; text-align: center; }

.product-detail h1      { font-size: 48px; margin-bottom: 12px; }
.product-detail-sub     { font-size: 17px; color: var(--mid-gray); margin-bottom: 32px; font-weight: 300; }

.product-rating { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.rating-num     { font-size: 14px; color: var(--mid-gray); }

.product-price-lg { font-family: 'Cormorant Garamond', serif; font-size: 40px; color: var(--ink); margin-bottom: 8px; }

/* Subscription toggle */
.subscription-options { margin-bottom: 32px; }

.sub-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1.5px solid var(--warm-gray);
  border-radius: 6px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.sub-option.selected { border-color: var(--moss); background: rgba(45,90,61,0.04); }

.radio-circle {
  width: 18px; height: 18px;
  border: 1.5px solid var(--warm-gray);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}
.sub-option.selected .radio-circle { border-color: var(--moss); background: var(--moss); box-shadow: inset 0 0 0 3px white; }

.sub-label { font-size: 14px; font-weight: 500; flex: 1; }
.sub-badge { font-size: 11px; background: var(--accent-light); color: var(--ink); padding: 3px 10px; border-radius: 100px; font-weight: 500; }

.add-to-cart-btn {
  width: 100%;
  padding: 20px;
  background: var(--forest);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition-fast);
  margin-bottom: 12px;
}
.add-to-cart-btn:hover { background: var(--moss); }

/* Product info tabs */
.product-tabs { margin-top: 60px; }

.tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--warm-gray);
  margin-bottom: 32px;
}

.tab-btn {
  padding: 14px 24px;
  border: none;
  background: none;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mid-gray);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--transition-fast);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
}
.tab-btn.active { color: var(--ink); border-bottom-color: var(--ink); }

.tab-content        { display: none; }
.tab-content.active { display: block; }

.benefit-list { display: flex; flex-direction: column; gap: 16px; }

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--light-gray);
}
.benefit-check {
  width: 22px; height: 22px;
  flex-shrink: 0;
  background: rgba(45,90,61,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--moss);
  margin-top: 1px;
}
.benefit-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.benefit-desc  { font-size: 13px; color: var(--mid-gray); line-height: 1.6; font-weight: 300; }


/* ============================================================
   18. ANIMATIONS & TRANSITIONS
   ============================================================ */

/* ── Keyframes ── */

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes questionSlide {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%           { transform: translateY(-5px); opacity: 1; }
}

@keyframes badgePop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.5); }
  70%  { transform: scale(0.85); }
  100% { transform: scale(1); }
}

@keyframes gentleBob {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

/* ── Hero entrance stagger ── */
.hero-badge  { animation: heroFadeUp 0.7s 0.1s both ease; }
.hero h1     { animation: heroFadeUp 0.8s 0.25s both ease; }
.hero-sub    { animation: heroFadeUp 0.8s 0.4s both ease; }
.hero-ctas   { animation: heroFadeUp 0.8s 0.55s both ease; }
.hero-stats  { animation: heroFadeUp 0.8s 0.7s both ease; }
.hero-visual { animation: heroFadeIn 1.2s 0.3s both ease; }

/* Floating hero cards gentle bob */
.card-1 { animation: heroFadeUp 0.8s 0.8s both ease, gentleBob 5s 1.5s ease-in-out infinite !important; }
.card-2 { animation: heroFadeUp 0.8s 1s   both ease, gentleBob 5s 2s   ease-in-out infinite !important; }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(18px);    /* reduced from 28px — less travel = faster feel */
  transition: opacity 0.38s ease,
              transform 0.38s ease; /* was 0.65s */
}
.reveal.visible         { opacity: 1; transform: translateY(0); }
.reveal-delay-1         { transition-delay: 0.06s; }  /* tighter stagger */
.reveal-delay-2         { transition-delay: 0.12s; }
.reveal-delay-3         { transition-delay: 0.18s; }
.reveal-delay-4         { transition-delay: 0.24s; }

/* ── Cart badge pop ── */
.cart-badge.pop { animation: badgePop 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97); }

/* ── Cart items slide in ── */
@keyframes cartItemIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.cart-item { animation: cartItemIn 0.35s var(--transition-smooth) both; }


/* ============================================================
   19. RESPONSIVE
   ============================================================ */


/* Multi-select option check indicator */
.option-btn { position: relative; }

.option-check {
  position: absolute;
  top: 8px; right: 8px;
  width: 20px; height: 20px;
  background: var(--forest);
  color: white;
  border-radius: 50%;
  font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.option-btn.selected .option-check {
  opacity: 1;
  transform: scale(1);
}

/* Question hint text */
.question-hint {
  font-size: 12px;
  color: var(--moss);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.question-hint::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--moss);
  border-radius: 50%;
}


/* ── Hero video section ── */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video-placeholder {
  width: 100%;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0e1410 0%, #1a3a2a 50%, #0e1410 100%);
  position: relative;
  overflow: hidden;
}

/* Subtle grid pattern overlay */
.hero-video-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-video-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.hero-video-icon {
  opacity: 0.7;
  transition: opacity 0.2s;
  cursor: pointer;
}
.hero-video-icon:hover { opacity: 1; }

.hero-video-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  font-weight: 500;
}

/* Actual video when added */
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0; left: 0;
}

@media (max-width: 1024px) {
  .hero-content         { padding: 80px 24px 72px; }
  .hero-video-placeholder { height: 100%; }
  .ai-feature-inner     { grid-template-columns: 1fr; }
  .stacks-grid          { grid-template-columns: repeat(2, 1fr); }
  .products-row         { grid-template-columns: repeat(2, 1fr); }
  .science-inner        { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner         { grid-template-columns: 1fr 1fr; }
  .shop-layout          { grid-template-columns: 1fr; }
  .shop-sidebar         { display: none; }
  .shop-products-grid   { grid-template-columns: repeat(2, 1fr); }
  .stacks-page-grid     { grid-template-columns: 1fr; }
  .product-page-layout  { grid-template-columns: 1fr; }
  .product-main-img     { position: static; }
  .research-grid        { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid    { grid-template-columns: 1fr; }
}

/* ── TABLET ── */
@media (max-width: 768px) {
  .container,
  .container-sm       { padding: 0 20px; }

  /* Nav — hide desktop links, show hamburger */
  nav                 { padding: 0 20px; }
  nav ul              { display: none; }
  .nav-ai-btn         { display: none; }   /* hide "Start AI Analysis" text button */
  .hamburger          { display: flex; }

  /* Hero */
  .hero-content       { padding: 52px 20px 48px; }
  .hero h1            { font-size: clamp(36px, 9vw, 52px); }
  .hero-sub           { font-size: 15px; }
  .hero-stats         { flex-wrap: wrap; gap: 24px; padding-top: 28px; margin-top: 36px; }
  .stat-num           { font-size: 28px; }

  /* Sections */
  .steps-grid         { grid-template-columns: 1fr; }
  .step-card          { padding: 36px 28px; }
  .stacks-grid        { grid-template-columns: 1fr; }
  /* products-row CSS moved to dedicated section below */
  .section-title      { font-size: clamp(28px, 7vw, 44px); margin-bottom: 40px; }

  /* How it works */
  .how-it-works       { padding: 60px 0; }
  .ai-feature         { padding: 60px 0; }
  .featured-stacks    { padding: 60px 0; }
  .best-sellers       { padding: 60px 0; }
  .testimonials       { padding: 60px 0; }
  .science-section    { padding: 60px 0; }
  .newsletter         { padding: 56px 0; }

  /* Steps grid — flatten border-grid effect on 1 column */
  .steps-grid {
    gap: 16px;
    background: transparent;
    border: none;
  }
  .step-card {
    border: none;
    box-shadow: 0 4px 20px rgba(14,20,16,0.18);
    min-height: 360px;
  }
  .step-card:hover { transform: none; box-shadow: 0 4px 20px rgba(14,20,16,0.18); }
  .step-content { padding: 28px 24px; }
  .step-content .step-title { font-size: 22px; }

  /* Science section */
  .science-visual   { padding: 32px 24px; }
  .science-pillars  { margin-top: 28px; gap: 0; }
  .pillar           { padding: 14px 12px; }
  .pillar:hover     { transform: none; }
  .sci-stat         { padding: 22px 12px; }
  .sci-num          { font-size: 38px; }

  /* AI feature demo card */
  .ai-demo-card       { padding: 24px; }

  /* Shop */
  .shop-products-grid { grid-template-columns: 1fr; }

  /* Advisor */
  .advisor-container  { padding: 24px 20px 60px; min-height: calc(100vh - 60px - 160px); }
  .advisor-hero       { padding: 52px 0 40px; }
  .question-card      { padding: 28px 20px; }
  .question-text      { font-size: 24px; }
  .options-grid       { grid-template-columns: 1fr; }

  /* Science */
  .research-grid      { grid-template-columns: 1fr; }
  .science-hero h1    { font-size: 36px; }
  .science-content    { padding: 48px 0 72px; }

  /* Stacks page */
  .sdc-header         { padding: 32px 28px; }
  .sdc-body           { padding: 24px 28px 32px; }
  .sdc-name           { font-size: 28px; }

  /* Product page */
  .product-detail h1  { font-size: 36px; }

  /* Results page */
  .ag-results-grid    { grid-template-columns: 1fr; gap: 32px; }
  .ag-results-left    { position: static; }
  .ag-stack-title     { font-size: 28px; }
  .ag-results         { max-width: 100%; }

  /* Footer */
  .newsletter-form    { flex-direction: column; }
  .footer-inner       { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom      { flex-direction: column; gap: 8px; text-align: center; }

  /* Chat widget */
  .chat-window        { width: calc(100vw - 24px); left: 12px; bottom: 84px; height: 500px; }
  .chat-fab           { left: 16px; bottom: 16px; }
  .toast              { bottom: 16px !important; right: 16px !important; left: 16px; right: auto !important; }
}

/* ── MOBILE ── */
@media (max-width: 480px) {
  /* Nav + page offset */
  nav                 { height: 60px; }
  .page               { padding-top: 60px; }
  .logo               { font-size: 22px; }
  .cart-icon          { width: 36px; height: 36px; }

  /* Hero */
  .hero-content       { padding: 44px 16px 40px; }
  .hero h1            { font-size: clamp(32px, 10vw, 44px); }
  .hero-ctas          { flex-direction: column; }
  .btn-lg             { width: 100%; text-align: center; padding: 15px 20px; }
  .hero-stats         { gap: 20px; }

  /* Stack cards */
  .stack-card-body    { padding: 20px; }
  .stack-name         { font-size: 20px; }
  .sdc-header         { padding: 24px 20px; }
  .sdc-body           { padding: 20px 20px 24px; }

  /* Advisor */
  .advisor-container  { padding: 16px 16px 48px; min-height: calc(100vh - 60px - 120px); }
  .question-card      { padding: 22px 16px; }
  .question-text      { font-size: 22px; margin-bottom: 24px; }
  .btn-next           { padding: 12px 24px; }
  .progress-bar-wrap  { margin-bottom: 32px; }

  /* Product */
  .product-main-img   { height: 300px; }
  .product-detail h1  { font-size: 30px; }

  /* Results */
  .ag-bottles         { gap: 6px; }
  .ag-bottle-inner,
  .ag-bottle-more     { width: 56px; height: 92px; }
  .ag-bottle-name     { font-size: 8px; }
  .ag-stack-visual    { padding: 24px 20px 20px; }
  .ag-supp-row        { padding: 14px 16px; }
  .ag-order-box       { padding: 18px 16px; }
  .ag-sub-opt         { padding: 13px 14px; }
  .ag-cta-btn         { padding: 16px; }
  .supp-tooltip       { width: min(280px, calc(100vw - 40px)); }

  /* Science */
  .science-stat-grid  { grid-template-columns: 1fr 1fr; gap: 12px; }
  .sci-num            { font-size: 32px; }
  .science-visual     { padding: 24px 16px; }

  /* How it works */
  .step-card  { min-height: 300px; }
  .step-content { padding: 22px 18px; }
  .step-content .step-title { font-size: 20px; }

  /* Footer */
  .footer-inner       { padding: 0 0 36px; }
  footer              { padding: 48px 0 32px; }
}


/* ============================================================
   ADVISOR CHAT PHASE — inline chat within the questionnaire
   ============================================================ */

/* ── Advisor chat — clean minimal redesign ── */
.ac-wrap {
  background: var(--white);
  border: 1px solid var(--warm-gray);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Top bar */
.ac-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--warm-gray);
}

.ac-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--moss);
  display: flex;
  align-items: center;
  gap: 7px;
}

.ac-dot {
  width: 6px; height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

.ac-back {
  font-size: 12px;
  color: var(--mid-gray);
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.04em;
  transition: color 0.15s;
}
.ac-back:hover { color: var(--ink); }

/* Messages */
.ac-msgs {
  flex: 1;
  min-height: 240px;
  max-height: 300px;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}
.ac-msgs::-webkit-scrollbar       { width: 3px; }
.ac-msgs::-webkit-scrollbar-track { background: transparent; }
.ac-msgs::-webkit-scrollbar-thumb { background: var(--warm-gray); border-radius: 2px; }

/* Quick chips */
.ac-quick {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 24px 16px;
}

.ac-chip {
  font-size: 12px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  color: var(--forest);
  background: rgba(45,90,61,0.07);
  border: 1px solid rgba(45,90,61,0.15);
  border-radius: 100px;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.ac-chip:hover {
  background: rgba(45,90,61,0.12);
  border-color: var(--moss);
}

/* Input row */
.ac-input-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  padding: 0 24px 16px;
}

.ac-input {
  flex: 1;
  padding: 11px 14px;
  border: 1.5px solid var(--warm-gray);
  border-radius: 10px;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  resize: none;
  outline: none;
  min-height: 42px;
  max-height: 100px;
  background: var(--white);
  color: var(--ink);
  line-height: 1.5;
  transition: border-color 0.15s;
}
.ac-input:focus { border-color: var(--moss); }
.ac-input::placeholder { color: var(--mid-gray); }

.ac-send {
  width: 42px; height: 42px;
  flex-shrink: 0;
  background: var(--forest);
  border: none; border-radius: 10px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.ac-send:hover    { background: var(--moss); }
.ac-send:disabled { background: var(--light-gray); cursor: not-allowed; }

.ac-disclaimer {
  font-size: 10px;
  color: var(--mid-gray);
  text-align: center;
  padding: 0 24px 14px;
  margin: 0;
  line-height: 1.5;
}

/* Keep old msg bubble styles working */
.advisor-chat-msgs { min-height: 200px; }

/* ============================================================
   TYPING ANIMATION — used in advisor chat + chat widget
   ============================================================ */

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%           { transform: translateY(-5px); opacity: 1; }
}

/* Science description paragraph inside stack detail cards */
.sdc-science {
  font-size: 13px;
  color: var(--mid-gray);
  line-height: 1.75;
  margin-bottom: 24px;
  font-weight: 300;
}


/* ============================================================
   SUPPLEMENT INFO BUTTON & TOOLTIP
   ============================================================ */

/* The little "i" button next to supplement name */
.info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--warm-gray);
  color: var(--mid-gray);
  font-size: 10px;
  font-weight: 700;
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  border: none;
  cursor: pointer;
  margin-left: 6px;
  vertical-align: middle;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
  position: relative;
  top: -1px;
}
.info-btn:hover {
  background: var(--moss);
  color: white;
}

/* Tooltip popup */
.protocol-name {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  position: relative;
}

.supp-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 500;
  width: 300px;
  background: var(--white);
  border: 1px solid var(--warm-gray);
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(14,20,16,0.15);
  padding: 18px;
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.supp-tooltip.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.supp-tooltip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--light-gray);
}

.supp-tooltip-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
}

.supp-tooltip-close {
  width: 24px; height: 24px;
  border: 1px solid var(--warm-gray);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  color: var(--mid-gray);
  transition: background 0.15s;
  flex-shrink: 0;
}
.supp-tooltip-close:hover { background: var(--light-gray); }

.supp-tooltip-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.5;
}

.supp-tooltip-label {
  font-weight: 600;
  color: var(--moss);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 1px;
}

.supp-tooltip-evidence {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--light-gray);
  font-size: 11px;
  color: var(--mid-gray);
  font-style: italic;
  line-height: 1.5;
}

/* Fix protocol-item layout so tooltip is positioned correctly */
.protocol-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--light-gray);
  position: relative;     /* needed for tooltip absolute positioning */
}
.protocol-item:last-child { border-bottom: none; }

.protocol-item-body {
  flex: 1;
  min-width: 0;
}

.protocol-price-tag {
  font-size: 12px;
  color: var(--mid-gray);
  font-weight: 400;
  margin-left: 6px;
}

/* ============================================================
   TOOLTIP — shared across pages
   ============================================================ */

.supp-tooltip {
  position: absolute;
  top: calc(100% + 8px); left: 0;
  z-index: 800; width: 280px;
  background: var(--white);
  border: 1px solid var(--warm-gray);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(14,20,16,0.13);
  padding: 16px;
  opacity: 0; transform: translateY(-4px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease;
}
.supp-tooltip.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }
.supp-tooltip-header  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--light-gray); }
.supp-tooltip-name    { font-family: 'Cormorant Garamond', serif; font-size: 16px; color: var(--ink); }
.supp-tooltip-close   { width: 20px; height: 20px; border: 1px solid var(--warm-gray); border-radius: 50%; background: none; cursor: pointer; font-size: 13px; color: var(--mid-gray); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.12s; }
.supp-tooltip-close:hover { background: var(--light-gray); }
.supp-tooltip-row     { display: grid; grid-template-columns: 65px 1fr; gap: 4px 8px; margin-bottom: 7px; font-size: 12px; line-height: 1.5; }
.supp-tooltip-label   { font-weight: 600; color: var(--moss); font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; padding-top: 2px; }
.supp-tooltip-evidence { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--light-gray); font-size: 11px; color: var(--mid-gray); font-style: italic; line-height: 1.5; }

/* Info i button */
.bs-info-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--light-gray); color: var(--mid-gray);
  font-size: 10px; font-weight: 700; font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  border: none; cursor: pointer;
  transition: background 0.12s, color 0.12s; flex-shrink: 0;
  position: relative; top: -1px;
}
.bs-info-btn:hover { background: var(--moss); color: white; }

/* Restart link */
.rs-restart {
  background: none; border: none; cursor: pointer;
  font-size: 12px; color: var(--mid-gray); text-decoration: underline;
  font-family: 'DM Sans', sans-serif;
}
.rs-restart:hover { color: var(--ink); }


/* ============================================================
   CHECKOUT OVERLAY
   Two column: sticky visual left · scrollable right
   Header stays on top (z-index: 998 < header 1000)
   ============================================================ */

.checkout-overlay {
  position: fixed;
  top: 68px; left: 0; right: 0; bottom: 0;
  z-index: 998;
  background: #f7f6f3;
  overflow-y: auto;
  overflow-x: hidden;
  display: block;
  visibility: hidden;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
  pointer-events: none;
}
.checkout-overlay.open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* ── Page header bar ── */
.co-page-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 48px;
  background: rgba(247,246,243,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--warm-gray);
}
.co-page-title {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.co-page-eyebrow {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--forest);
  background: rgba(45,90,61,0.08);
  border: 1px solid rgba(45,90,61,0.18);
  padding: 3px 10px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
}
.co-page-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
}
.co-page-score { display: none; }
.co-score-ring-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
}
.co-score-ring-wrap svg { width: 46px; height: 46px; }
.co-score-num {
  position: absolute;
  font-size: 11px;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: -0.02em;
}
.co-score-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--moss);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Main checkout two-column grid ── */
.co-checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 48px 80px;
  align-items: start;
}

/* ── LEFT: Cards panel ── */
.co-cards-panel {
  padding-right: 56px;
  border-right: 1px solid var(--warm-gray);
}
.co-cards-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}
.co-cards-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
  margin: 0;
}
.co-cards-count {
  font-size: 12px;
  color: var(--mid-gray);
  font-weight: 500;
}
.co-cards-match {
  font-size: 11px;
  font-weight: 600;
  color: var(--forest);
  background: rgba(45,90,61,0.08);
  border: 1px solid rgba(45,90,61,0.16);
  padding: 3px 10px;
  border-radius: 100px;
  margin-left: 10px;
  vertical-align: middle;
}

/* Why recommended toggle */
.co-why-toggle {
  font-size: 11px;
  color: var(--mid-gray);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  margin-top: 6px;
  font-family: 'DM Sans', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.12s;
}
.co-why-toggle:hover { color: var(--ink); }
.co-why-toggle::before { content: '+ '; font-size: 12px; font-weight: 600; }
.co-why-toggle.open::before { content: '− '; }
.co-why-body {
  display: none;
  font-size: 12px;
  color: var(--mid-gray);
  line-height: 1.6;
  margin-top: 6px;
  padding: 8px 10px;
  background: var(--cream);
  border-radius: 6px;
  font-weight: 300;
}
.co-why-body.co-why-open { display: block; }

/* Supplement card */
.co-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 12px;
  border-radius: 10px;
  border: 1px solid rgba(14,20,16,0.07);
  margin-bottom: 8px;
  background: var(--white);
  box-shadow: 0 1px 6px rgba(14,20,16,0.04);
  transition: box-shadow 0.2s, transform 0.2s;
}
.co-card:last-child { margin-bottom: 0; }
.co-card:hover {
  box-shadow: 0 4px 16px rgba(14,20,16,0.08);
  transform: translateY(-1px);
}
.co-card:hover .co-remove-btn { opacity: 1; }

.co-card-img-wrap {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--warm-gray);
  display: flex;
  align-items: center;
  justify-content: center;
}
.co-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.co-card-img-fb {
  font-size: 14px;
  font-weight: 700;
  color: var(--forest);
  font-family: 'DM Sans', sans-serif;
  background: rgba(26,58,42,0.06);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
}

.co-card-body {
  flex: 1;
  min-width: 0;
}
.co-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.co-card-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

/* Time badge */
.co-time-badge {
  font-size: 10px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 100px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: rgba(14,20,16,0.05);
  color: var(--mid-gray);
  border: 1px solid rgba(14,20,16,0.09);
}
.co-time--morning, .co-time--workout, .co-time--evening {}

/* Benefit tag */
.co-benefit-tag {
  font-size: 10px;
  font-weight: 500;
  padding: 3px 7px;
  border-radius: 100px;
  background: rgba(14,20,16,0.05);
  color: var(--mid-gray);
  border: 1px solid rgba(14,20,16,0.09);
  white-space: nowrap;
}

.co-card-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.co-card-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  font-weight: 400;
  color: var(--ink);
  white-space: nowrap;
}
.co-card-mo {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: var(--mid-gray);
}

/* ── Daily Protocol ── */
.co-protocol-section {
  margin-top: 40px;
  padding: 28px 0 0;
  border-top: 1px solid var(--warm-gray);
}
.co-protocol-head {
  margin-bottom: 20px;
}
.co-protocol-heading {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
  margin-bottom: 2px;
}
.co-protocol-sub {
  font-size: 12px;
  color: var(--mid-gray);
}
.co-protocol-groups {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.co-protocol-group {
  flex: 1;
  min-width: 130px;
  background: var(--cream);
  border: 1px solid var(--warm-gray);
  border-radius: 12px;
  padding: 16px;
}
.co-protocol-time {
  font-size: 11px;
  font-weight: 700;
  color: var(--mid-gray);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.co-protocol-pills {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.co-protocol-pill {
  font-size: 12px;
  color: var(--ink);
  padding: 6px 10px;
  background: var(--white);
  border: 1px solid var(--warm-gray);
  border-radius: 6px;
  display: block;
  font-weight: 400;
  box-shadow: 0 1px 3px rgba(14,20,16,0.05);
}

/* ── RIGHT: Sticky summary panel ── */
.co-summary-panel {
  padding-left: 40px;
  align-self: stretch;
}
.co-summary-sticky {
  position: sticky;
  top: 80px;
  background: var(--white);
  border: 1.5px solid var(--warm-gray);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 4px 24px rgba(14,20,16,0.07);
}

/* Summary header */
.co-sum-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 6px;
}
.co-sum-goal {
  font-size: 12px;
  font-weight: 600;
  color: var(--forest);
  background: rgba(45,90,61,0.08);
  border: 1px solid rgba(45,90,61,0.15);
  padding: 5px 11px;
  border-radius: 100px;
}
.co-sum-ai-badge {
  font-size: 11px;
  color: var(--mid-gray);
  font-weight: 500;
}

/* Price block */
.co-sum-price-block {
  margin-bottom: 20px;
}
.co-sum-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.co-sum-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1;
  display: inline-block;
  transition: transform 0.14s ease;
}
.co-sum-per-mo {
  font-size: 14px;
  color: var(--mid-gray);
  font-weight: 400;
}
.co-sum-saving {
  font-size: 12px;
  font-weight: 600;
  color: var(--moss);
  margin-top: 5px;
  min-height: 16px;
}

/* Divider */
.co-sum-divider {
  height: 1px;
  background: var(--warm-gray);
  margin: 18px 0;
}

/* Detail rows */
.co-sum-details {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 4px;
}
.co-sum-detail {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.4;
}
.co-sum-detail-icon {
  flex-shrink: 0;
  font-size: 14px;
  width: 20px;
  text-align: center;
}
.co-sum-detail .co-check {
  font-size: 12px;
  color: var(--moss);
  font-weight: 700;
}

/* Billing toggle */
.co-billing-toggle {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.co-billing-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--warm-gray);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
  user-select: none;
  background: none;
  font-family: 'DM Sans', sans-serif;
  width: 100%;
  text-align: left;
}
.co-billing-opt:hover      { border-color: var(--mid-gray); }
.co-billing-opt--on        { border-color: var(--forest); background: rgba(26,58,42,0.03); }
.co-billing-radio {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--warm-gray);
  flex-shrink: 0;
  transition: all 0.15s;
}
.co-billing-opt--on .co-billing-radio {
  border-color: var(--forest);
  background: var(--forest);
  box-shadow: inset 0 0 0 3.5px white;
}
.co-billing-body { flex: 1; min-width: 0; }
.co-billing-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.co-billing-desc {
  font-size: 11px;
  color: var(--mid-gray);
  margin-top: 1px;
}
.co-billing-best {
  font-size: 10px;
  font-weight: 700;
  color: var(--white);
  background: var(--forest);
  padding: 2px 8px;
  border-radius: 100px;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

/* Secure note */
.co-sum-secure {
  text-align: center;
  font-size: 11px;
  color: var(--mid-gray);
  margin: 12px 0 0;
}

/* ── Responsive ── */
@media (max-width: 1000px) {
  .co-checkout-grid { grid-template-columns: 1fr; padding: 28px 32px 60px; }
  .co-cards-panel   { padding-right: 0; border-right: none; border-bottom: 1px solid var(--warm-gray); padding-bottom: 40px; margin-bottom: 40px; }
  .co-summary-panel { padding-left: 0; }
  .co-summary-sticky { position: static; }
  .co-page-header   { padding: 12px 28px; }
}
@media (max-width: 600px) {
  .checkout-overlay { top: 60px; }
  .co-checkout-grid { padding: 20px 20px 60px; }
  .co-page-header   { padding: 10px 20px; }
  .co-page-name     { font-size: 15px; }
  .co-sum-price     { font-size: 40px; }
  .co-protocol-groups { gap: 12px; }
  .co-protocol-group  { min-width: 100%; }
}

/* ── LEFT: sticky visual panel ── */
.co-visual {
  background: var(--forest);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.co-visual-bg-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.55;
}

.co-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(14,20,16,0.3) 0%, rgba(14,20,16,0.75) 100%);
}

/* Full-bleed image placeholder — green tinted */
.co-visual-img {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #1a3a2a 0%, #2d5a3d 60%, #1a3a2a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.co-visual-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.25);
}
.co-visual-img-placeholder svg { opacity: 0.3; }
.co-visual-img-placeholder span { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }

/* Overlay gradient so text reads over image */
.co-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14,20,16,0.85) 0%, rgba(14,20,16,0.2) 50%, transparent 100%);
  pointer-events: none;
}

/* Stats on the visual */
.co-visual-content {
  position: relative;
  z-index: 2;
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.co-visual-eyebrow {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
  font-weight: 600;
}

.co-visual-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 300;
  color: white;
  line-height: 1.2;
}
.co-visual-headline strong { font-weight: 400; font-style: italic; color: var(--mist); }

/* Result stats */
.co-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.co-stat-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.co-stat-pct {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 300;
  color: white;
  line-height: 1;
  min-width: 80px;
}

.co-stat-icon { font-size: 20px; flex-shrink: 0; }

.co-stat-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1.4;
  font-weight: 300;
}
.co-stat-desc strong { color: white; font-weight: 500; }

/* Match score pill on visual */
.co-match-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  padding: 8px 16px;
  width: fit-content;
}
.co-match-pct {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 300; color: white;
}
.co-match-lbl {
  font-size: 11px; color: rgba(255,255,255,0.6);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.co-match-dot {
  width: 7px; height: 7px; background: #4ade80;
  border-radius: 50%; animation: pulse 2s infinite;
}

/* ── RIGHT: scrollable content ── */
.co-right {
  overflow-y: auto;
  background: var(--white);
  display: flex;
  flex-direction: column;
}
.co-right::-webkit-scrollbar       { width: 4px; }
.co-right::-webkit-scrollbar-thumb { background: var(--warm-gray); border-radius: 2px; }

.co-right-inner {
  padding: 48px 56px 80px;
  max-width: 720px;
}

/* Back button */
.co-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--mid-gray);
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  padding: 0;
  margin-bottom: 40px;
  transition: color 0.12s;
  letter-spacing: 0.02em;
}
.co-back:hover { color: var(--ink); }

/* Headline */
.co-headline {
  margin-bottom: 36px;
}
.co-headline-eyebrow {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 600; color: var(--moss); margin-bottom: 10px;
}
.co-headline-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 300; color: var(--ink);
  line-height: 1.15; margin-bottom: 10px;
}
.co-headline-sub {
  font-size: 14px; color: var(--mid-gray);
  line-height: 1.7; font-weight: 300;
  font-style: italic;
}

/* Goal tags */
.co-goal-tags {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 40px;
}
.co-goal-tag {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  background: rgba(45,90,61,0.07);
  border: 1px solid rgba(45,90,61,0.15);
  border-radius: 100px;
  font-size: 12px; font-weight: 500; color: var(--forest);
}

/* ── Supplement list ── */
.co-supp-section { margin-bottom: 40px; }

.co-supp-section-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--warm-gray);
  margin-bottom: 4px;
}

.co-supp-label {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 700; color: var(--mid-gray);
}

.co-supp-count {
  font-size: 11px; color: var(--mid-gray);
}

/* Individual supplement row — expandable */
.co-supp-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--light-gray);
  cursor: default;
  position: relative;
  transition: background 0.1s;
}
.co-supp-row:last-child { border-bottom: none; }

.co-supp-num {
  font-size: 12px; font-weight: 600;
  color: var(--mid-gray);
  min-width: 20px;
  flex-shrink: 0;
}

.co-supp-icon {
  width: 32px; height: 32px;
  background: rgba(26,58,42,0.06);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--forest);
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.02em;
}

.co-supp-info { flex: 1; min-width: 0; }

.co-supp-name {
  font-size: 14px; font-weight: 500; color: var(--ink);
  display: flex; align-items: center; gap: 6px;
  position: relative;
}

.co-supp-benefit {
  font-size: 12px; color: var(--mid-gray);
  margin-top: 2px; font-weight: 300;
  /* dotted line effect like bioniq */
  border-bottom: 1px dotted var(--warm-gray);
  padding-bottom: 0;
  display: inline;
}

.co-supp-right {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}

.co-supp-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px; color: var(--mid-gray);
  white-space: nowrap;
}

.co-remove-btn {
  width: 24px; height: 24px;
  border: 1.5px solid var(--warm-gray);
  border-radius: 6px; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--mid-gray);
  opacity: 0;
  transition: border-color 0.15s, color 0.15s, opacity 0.15s;
  flex-shrink: 0;
}
.co-remove-btn:hover { border-color: #e74c3c; color: #e74c3c; }

/* Add supplement */
.co-add-row {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 0;
  border-top: 1px dashed var(--warm-gray);
  margin-top: 4px;
}

.co-add-toggle {
  display: flex; align-items: center; gap: 8px;
  background: none; border: none;
  font-size: 13px; font-weight: 500; color: var(--moss);
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: color 0.12s; padding: 0;
}
.co-add-toggle:hover, .co-add-toggle.active { color: var(--forest); }

.co-drawer {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.3s ease, opacity 0.2s ease;
}
.co-drawer.open { max-height: 360px; opacity: 1; }

.co-drawer-search {
  width: 100%; padding: 10px 14px; margin-top: 8px;
  border: 1.5px solid var(--warm-gray); border-radius: 8px;
  background: var(--light-gray); font-size: 13px;
  font-family: 'DM Sans', sans-serif; outline: none; color: var(--ink);
}
.co-drawer-search:focus { border-color: var(--moss); background: white; }
.co-drawer-search::placeholder { color: var(--mid-gray); }

.co-drawer-list {
  max-height: 280px; overflow-y: auto; margin-top: 4px;
  border: 1px solid var(--warm-gray); border-radius: 10px;
  background: var(--white);
}
.co-drawer-list::-webkit-scrollbar       { width: 4px; }
.co-drawer-list::-webkit-scrollbar-thumb { background: var(--warm-gray); border-radius: 2px; }

.co-drawer-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-bottom: 1px solid var(--light-gray);
  transition: background 0.1s;
}
.co-drawer-row:last-child { border-bottom: none; }
.co-drawer-row:hover      { background: var(--cream); }

.co-drawer-info { flex: 1; min-width: 0; }
.co-drawer-name { font-size: 13px; font-weight: 500; color: var(--ink); }
.co-drawer-cat  { font-size: 11px; color: var(--mid-gray); margin-top: 1px; }
.co-drawer-price { font-family: 'Cormorant Garamond', serif; font-size: 15px; color: var(--mid-gray); white-space: nowrap; flex-shrink: 0; }
.co-drawer-add {
  padding: 6px 12px; background: var(--forest); color: white;
  border: none; border-radius: 6px; font-size: 11px; font-weight: 500;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: background 0.12s; white-space: nowrap; flex-shrink: 0;
}
.co-drawer-add:hover    { background: var(--moss); }
.co-drawer-add:disabled { opacity: 0.4; cursor: default; }

/* ── Plan selector ── */
.co-plan-section {
  margin-bottom: 36px;
}

.co-plan-label {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 700; color: var(--mid-gray); margin-bottom: 16px;
}

.co-plan-opts {
  display: flex; flex-direction: column; gap: 12px;
}

.co-plan-opt {
  display: flex; align-items: center; gap: 18px;
  padding: 20px 22px;
  border: 1.5px solid var(--warm-gray);
  border-radius: 14px; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  position: relative; user-select: none;
}
.co-plan-opt:hover     { border-color: var(--mid-gray); }
.co-plan-opt--on       { border-color: var(--forest); background: rgba(26,58,42,0.03); }

.co-plan-radio {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--warm-gray); flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.co-plan-opt--on .co-plan-radio {
  border-color: var(--forest); background: var(--forest);
  box-shadow: inset 0 0 0 4px white;
}

.co-plan-body { flex: 1; }
.co-plan-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.co-plan-desc { font-size: 12px; color: var(--mid-gray); margin-top: 3px; font-weight: 300; }

.co-plan-price {
  text-align: right; flex-shrink: 0;
}
.co-plan-price-main {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px; color: var(--ink); font-weight: 300; line-height: 1;
}
.co-plan-price-sub { font-size: 11px; color: var(--mid-gray); margin-top: 2px; }
.co-plan-price-old { font-size: 13px; color: var(--mid-gray); text-decoration: line-through; }

.co-plan-save-badge {
  position: absolute; top: -10px; right: 20px;
  background: var(--forest); color: white;
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  padding: 3px 10px; border-radius: 100px;
}

/* ── Trust icons ── */
.co-trust {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 32px;
}

.co-trust-item {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 12px 16px;
  background: var(--cream);
  border-radius: 10px; border: 1px solid var(--warm-gray);
  flex: 1; min-width: 80px;
}
.co-trust-icon { font-size: 18px; }
.co-trust-lbl  { font-size: 10px; font-weight: 600; text-align: center; color: var(--ink); letter-spacing: 0.03em; line-height: 1.3; }

/* ── Order summary ── */
.co-summary {
  border-top: 1px solid var(--warm-gray);
  padding-top: 28px;
  margin-bottom: 28px;
  display: flex; flex-direction: column; gap: 12px;
}

.co-summary-line {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px;
}
.co-summary-line-label { color: var(--mid-gray); font-weight: 500; }
.co-summary-line-val   { color: var(--ink); }

.co-total-line {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 12px; border-top: 1px solid var(--warm-gray);
  font-size: 13px; font-weight: 600;
}
.co-total-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px; color: var(--ink); font-weight: 300;
  transition: transform 0.14s ease; display: inline-block;
}
.co-per-mo { font-size: 13px; color: var(--mid-gray); font-family: 'DM Sans', sans-serif; margin-left: 2px; }

/* ── CTA ── */
.co-cta {
  width: 100%; padding: 18px;
  background: var(--forest); color: white;
  border: none; border-radius: 12px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background 0.15s, transform 0.1s;
  margin-bottom: 16px;
}
.co-cta:hover  { background: var(--moss); }
.co-cta:active { transform: scale(0.99); }

/* ── AI Chat ── */
.co-ai-section {
  margin-top: 36px;
  padding: 24px;
  border-radius: 16px;
  background: rgba(26,58,42,0.03);
  border: 1px solid rgba(26,58,42,0.1);
}

.co-ai-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(26,58,42,0.08);
}

.co-ai-dot {
  width: 8px; height: 8px; background: #4ade80;
  border-radius: 50%; animation: pulse 2s infinite; flex-shrink: 0;
}

.co-ai-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.co-ai-sub   { font-size: 12px; color: var(--mid-gray); margin-top: 1px; font-family: 'DM Mono', monospace; }

.co-ai-msgs {
  background: var(--cream);
  border-radius: 12px;
  padding: 16px;
  min-height: 60px; max-height: 260px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px;
  scroll-behavior: smooth;
  margin-bottom: 12px;
}
.co-ai-msgs::-webkit-scrollbar       { width: 3px; }
.co-ai-msgs::-webkit-scrollbar-thumb { background: var(--warm-gray); border-radius: 2px; }

.co-msg      { display: flex; animation: fadeUp 0.2s ease; }
.co-msg-ai   { justify-content: flex-start; }
.co-msg-user { justify-content: flex-end; }

.co-msg-bubble {
  max-width: 90%; padding: 10px 14px; border-radius: 12px;
  font-size: 13px; line-height: 1.65;
}
.co-msg-ai   .co-msg-bubble { background: var(--white); color: var(--ink); border-radius: 12px 12px 12px 3px; box-shadow: 0 1px 4px rgba(14,20,16,0.06); }
.co-msg-user .co-msg-bubble { background: var(--forest); color: white; border-radius: 12px 12px 3px 12px; }

.co-ai-quick {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px;
  transition: opacity 0.3s;
}

.co-quick {
  font-size: 11px; padding: 5px 11px;
  border: 1px solid var(--warm-gray); border-radius: 100px;
  background: var(--white); color: var(--ink);
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: border-color 0.12s, color 0.12s; white-space: nowrap;
}
.co-quick:hover { border-color: var(--moss); color: var(--moss); }

.co-ai-input-row {
  display: flex; gap: 8px; align-items: flex-end;
}

.co-ai-input {
  flex: 1; padding: 10px 14px;
  border: 1.5px solid var(--warm-gray); border-radius: 10px;
  background: var(--white); color: var(--ink);
  font-size: 13px; font-family: 'DM Sans', sans-serif;
  resize: none; outline: none;
  min-height: 40px; max-height: 90px; line-height: 1.5;
  transition: border-color 0.12s; cursor: text;
}
.co-ai-input:focus        { border-color: var(--moss); }
.co-ai-input::placeholder { color: var(--mid-gray); }

.co-ai-send {
  width: 38px; height: 38px; background: var(--forest);
  border: none; border-radius: 10px; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.12s;
}
.co-ai-send:hover    { background: var(--moss); }
.co-ai-send:disabled { background: var(--warm-gray); cursor: not-allowed; }

.co-ai-disc {
  font-size: 10px; color: var(--mid-gray);
  text-align: center; margin-top: 8px;
}



/* ── Stack Tier Selector ── */
.co-tier-section {
  margin-bottom: 24px;
}

.co-tier-opts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.co-tier-opt {
  position: relative;
  padding: 18px 20px;
  border: 1.5px solid var(--warm-gray);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}
.co-tier-opt:hover    { border-color: var(--mid-gray); }
.co-tier-opt--on      { border-color: var(--forest); background: rgba(26,58,42,0.03); }

.co-tier-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.co-tier-radio {
  width: 18px; height: 18px;
  border: 1.5px solid var(--warm-gray);
  border-radius: 50%; flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.co-tier-opt--on .co-tier-radio {
  border-color: var(--forest);
  background: var(--forest);
  box-shadow: inset 0 0 0 4px white;
}

.co-tier-name {
  font-size: 14px; font-weight: 600; color: var(--ink); flex: 1;
}

.co-tier-price-wrap { display: flex; align-items: baseline; gap: 2px; flex-shrink: 0; }
.co-tier-price      { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 300; color: var(--ink); }
.co-tier-mo         { font-size: 11px; color: var(--mid-gray); }

.co-tier-desc {
  font-size: 12px; color: var(--mid-gray);
  line-height: 1.5; font-weight: 300;
  padding-left: 30px;
  margin-bottom: 10px;
}

.co-tier-pills {
  display: flex; gap: 6px; flex-wrap: wrap;
  padding-left: 30px;
}
.co-tier-pills span {
  font-size: 10px; font-weight: 500;
  color: var(--moss);
  background: rgba(45,90,61,0.08);
  padding: 3px 9px;
  border-radius: 100px;
}

.co-tier-badge {
  position: absolute;
  top: -10px; right: 16px;
  background: var(--forest); color: white;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 100px;
}

/* ── Old checkout responsive (replaced by new rules above) ── */
@media (max-width: 600px) {
  .supp-tooltip { width: min(270px, calc(100vw - 32px)); }
}



/* ============================================================
   BEFORE/AFTER TIMELINE
   ============================================================ */

.timeline-section {
  padding: 100px 0 80px;
  background: var(--white);
  overflow: hidden;
}

.section-sub {
  font-size: 16px;
  color: var(--mid-gray);
  font-weight: 300;
  margin-top: -24px;
  margin-bottom: 64px;
  text-align: center;
}

.timeline-track {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 860px;
  margin: 0 auto;
}

/* Central vertical line */
.timeline-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--warm-gray) 10%, var(--warm-gray) 90%, transparent);
}

/* Each node */
.timeline-node {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  align-items: center;
  gap: 0;
  margin-bottom: 48px;
  position: relative;
}

/* Left nodes: card on left, dot center, empty right */
.timeline-node .timeline-card { grid-column: 1; grid-row: 1; margin-right: 28px; }
.timeline-node .timeline-dot  { grid-column: 2; grid-row: 1; justify-self: center; }

/* Right nodes: empty left, dot center, card right */
.timeline-node--right .timeline-card { grid-column: 3; grid-row: 1; margin-left: 28px; margin-right: 0; }
.timeline-node--right .timeline-dot  { grid-column: 2; grid-row: 1; justify-self: center; }

.timeline-dot {
  width: 16px; height: 16px;
  background: var(--forest);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--forest);
  z-index: 2;
  flex-shrink: 0;
}

.timeline-dot--gold {
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 20px rgba(200,169,110,0.3);
}

.timeline-card {
  background: var(--cream);
  border: 1px solid var(--warm-gray);
  border-radius: 16px;
  padding: 28px 32px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.timeline-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(14,20,16,0.08);
}

.timeline-card--gold {
  background: linear-gradient(135deg, #fdf9f0 0%, #faf4e4 100%);
  border-color: rgba(200,169,110,0.3);
}

.timeline-week {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--moss);
  margin-bottom: 8px;
}

.timeline-title {
  font-size: 22px;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.2;
}

.timeline-body {
  font-size: 14px;
  color: var(--mid-gray);
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 14px;
}

.timeline-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.timeline-tags span {
  font-size: 11px;
  font-weight: 500;
  color: var(--forest);
  background: rgba(26,58,42,0.07);
  padding: 4px 10px;
  border-radius: 100px;
}

@media (max-width: 768px) {
  .timeline-line  { left: 20px; }
  .timeline-node,
  .timeline-node--right {
    grid-template-columns: 40px 1fr;
    margin-bottom: 32px;
  }
  .timeline-node .timeline-dot,
  .timeline-node--right .timeline-dot { grid-column: 1; }
  .timeline-node .timeline-card,
  .timeline-node--right .timeline-card { grid-column: 2; margin: 0 0 0 16px; }
}


/* ============================================================
   TESTIMONIALS — UPGRADED
   ============================================================ */

.testimonial-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.testimonial-result {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--forest);
  letter-spacing: 0.02em;
}

.author-stack {
  font-size: 11px;
  color: var(--moss);
  font-weight: 500;
  margin-top: 3px;
  background: rgba(45,90,61,0.08);
  padding: 2px 8px;
  border-radius: 100px;
  display: inline-block;
}


/* ============================================================
   AI LOADING — Dramatic animation
   ============================================================ */

.ai-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 40px;
  text-align: center;
  animation: fadeUp 0.3s ease both;
}

.ai-loading-ring {
  position: relative;
  width: 120px; height: 120px;
  margin-bottom: 32px;
}

.ai-ring-svg {
  width: 120px; height: 120px;
  transform: rotate(0deg);
}

#aiRingProgress {
  /* Animated by JS requestAnimationFrame — no CSS transition */
  stroke-dashoffset: 314;
  transition: none;
}

.ai-loading-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.1); }
}

.ai-loading-title {
  font-size: 28px;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 10px;
}

.ai-loading-step {
  font-size: 13px;
  color: var(--mid-gray);
  margin-bottom: 20px;
  height: 20px;
  line-height: 20px;
  overflow: hidden;
  font-style: italic;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: opacity 0.18s ease;
}

.ai-loading-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 32px;
}

.ai-dot {
  width: 6px; height: 6px;
  background: var(--moss);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite;
}
.ai-dot:nth-child(2) { animation-delay: 0.2s; }
.ai-dot:nth-child(3) { animation-delay: 0.4s; }

.ai-loading-steps-track {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 340px;
  text-align: left;
}

.ai-step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--mid-gray);
  opacity: 0.4;
  transition: opacity 0.3s ease, color 0.3s ease;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 300;
}

.ai-step-item.active {
  opacity: 1;
  color: var(--ink);
  background: var(--cream);
  font-weight: 500;
}

.ai-step-item.done {
  opacity: 0.7;
  color: var(--moss);
}

.ai-step-check {
  font-size: 13px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  color: var(--moss);
}


/* ============================================================
   MOBILE BOTTOM NAV BAR
   ============================================================ */

.bottom-nav {
  display: none; /* shown only on mobile */
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1001;
  background: rgba(250,250,248,0.96);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--warm-gray);
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
  justify-content: space-around;
  align-items: center;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 10px;
  color: var(--mid-gray);
  transition: color 0.15s, background 0.15s;
  font-family: 'DM Sans', sans-serif;
  min-width: 56px;
}

.bottom-nav-item span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.bottom-nav-item svg { transition: transform 0.15s; }
.bottom-nav-item:hover { color: var(--forest); }
.bottom-nav-item:hover svg { transform: translateY(-1px); }

.bottom-nav-item.active {
  color: var(--forest);
}
.bottom-nav-item.active span { font-weight: 700; }

/* AI button in center — special treatment */
.bottom-nav-item--ai {
  margin-top: -16px;
}

.bottom-nav-ai-ring {
  width: 48px; height: 48px;
  background: var(--forest);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(26,58,42,0.35);
  transition: transform 0.15s, box-shadow 0.15s;
  border: 3px solid var(--white);
}
.bottom-nav-item--ai:hover .bottom-nav-ai-ring,
.bottom-nav-item--ai.active .bottom-nav-ai-ring {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(26,58,42,0.45);
}

.bottom-nav-badge {
  position: absolute;
  top: -4px; right: -4px;
  width: 16px; height: 16px;
  background: var(--accent);
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--white);
}

/* Show bottom nav on mobile, hide hamburger */
@media (max-width: 768px) {
  .bottom-nav  { display: flex; }
  /* Give pages extra bottom padding so content clears nav */
  .page        { padding-bottom: 80px; }
}


/* ── Existing supplements — text input below grid ── */
.existing-text-wrap {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--warm-gray);
}

.existing-text-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--mid-gray);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.existing-text-input-row {
  display: flex;
  gap: 10px;
}

.existing-text-input {
  flex: 1;
  padding: 11px 16px;
  border: 1.5px solid var(--warm-gray);
  border-radius: 10px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s;
}
.existing-text-input:focus {
  border-color: var(--moss);
}
.existing-text-input::placeholder {
  color: var(--mid-gray);
  font-weight: 300;
}


/* ============================================================
   HOW IT WORKS — upgraded step cards with image areas
   ============================================================ */

.section-intro {
  font-size: 16px;
  color: var(--mid-gray);
  font-weight: 300;
  text-align: left;
  max-width: 520px;
  margin: 0 0 56px;
  line-height: 1.7;
}

/* Image placeholder area */
.step-img-wrap {
  margin: -32px -32px 28px;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

.step-img {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

.step-img--1 { background: #e8e4df; }
.step-img--2 { background: #1a3a2a; }
.step-img--3 { background: #e8e4df; }

.step-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.step-card:hover .step-img img {
  transform: scale(1.04);
}

/* CSS illustrations inside image area */
.step-img-illustration {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 0 28px;
}

/* Step 1 — quiz lines */
.step-ill-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.step-ill-line {
  height: 10px;
  background: var(--warm-gray);
  border-radius: 100px;
}

.step-ill-line--selected {
  background: var(--forest);
  position: relative;
}
.step-ill-line--selected::after {
  content: '✓';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 8px;
  color: white;
}

/* Step 2 — AI pulse */
.step-ill-ai {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.step-ill-pulse {
  width: 44px; height: 44px;
  background: rgba(200,169,110,0.2);
  border-radius: 50%;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.step-ill-pulse::before {
  content: '✦';
  font-size: 18px;
  color: var(--accent);
  animation: iconPulse 2s infinite;
}
.step-ill-pulse::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(200,169,110,0.3);
  animation: pulse 2s infinite;
}

.step-ill-ai-lines {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
}

.step-ill-ai-line {
  height: 8px;
  width: var(--w, 80%);
  background: rgba(255,255,255,0.15);
  border-radius: 100px;
  animation: shimmer 2s var(--d, 0s) infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 0.8; }
}

/* Step 3 — protocol timeline */
.step-ill-protocol {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.step-ill-time {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
}

.step-ill-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.step-ill-time span { flex: 1; }

.step-ill-pills {
  display: flex;
  gap: 4px;
}

.step-ill-pill {
  width: 16px; height: 28px;
  background: var(--forest);
  border-radius: 100px;
  opacity: 0.7;
}

/* Badge below illustration */
.step-ill-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
}

.step-img--1 .step-ill-badge { background: rgba(26,58,42,0.1); color: var(--forest); }
.step-img--2 .step-ill-badge { background: rgba(200,169,110,0.15); color: var(--accent); }
.step-img--3 .step-ill-badge { background: rgba(26,58,42,0.1); color: var(--forest); }

/* Step tag at bottom */
.step-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--moss);
  margin-top: 12px;
  letter-spacing: 0.04em;
}
.step-tag::before {
  content: '→';
}



/* ============================================================
   HOW IT WORKS — editorial alternating layout
   ============================================================ */

.hiw-header {
  text-align: left;
  margin-bottom: 80px;
}

.hiw-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

.hiw-row--flip { direction: rtl; }
.hiw-row--flip > * { direction: ltr; }

/* Text side */
.hiw-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 80px 80px 120px;
  background: var(--white);
}

.hiw-row--flip .hiw-text {
  padding: 80px 120px 80px 80px;
}

.hiw-num {
  font-size: 72px;
  font-weight: 300;
  color: var(--light-gray);
  line-height: 1;
  margin-bottom: 16px;
  display: block;
  letter-spacing: -2px;
}

.hiw-title {
  font-size: 36px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hiw-desc {
  font-size: 16px;
  color: var(--mid-gray);
  line-height: 1.75;
  font-weight: 300;
  max-width: 420px;
  margin-bottom: 28px;
}

.hiw-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--moss);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Image side */
.hiw-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

.hiw-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}

.hiw-row:hover .hiw-img {
  transform: scale(1.03);
}

/* Responsive */
@media (max-width: 900px) {
  .hiw-row,
  .hiw-row--flip {
    grid-template-columns: 1fr;
    direction: ltr;
    min-height: auto;
  }

  .hiw-img-wrap { height: 300px; }

  .hiw-text,
  .hiw-row--flip .hiw-text {
    padding: 48px 32px;
  }

  .hiw-num   { font-size: 52px; }
  .hiw-title { font-size: 28px; }
}

@media (max-width: 600px) {
  .hiw-img-wrap { height: 240px; }
  .hiw-text,
  .hiw-row--flip .hiw-text { padding: 36px 24px; }
  .hiw-title { font-size: 24px; }
  .hiw-desc  { font-size: 14px; }
}



/* ============================================================
   STEP CARDS — image background with text overlay
   ============================================================ */

.step-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 480px;
  cursor: default;
  background: #1a3a2a;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Full-bleed background image */
.step-bg-img {
  position: absolute;
  top: -1px; left: -1px;
  right: -1px; bottom: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}
.step-card:hover .step-bg-img {
  transform: scale(1.04);
}

/* Gradient overlay — dark at bottom for text readability */
.step-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14,20,16,0.15) 0%,
    rgba(14,20,16,0.25) 40%,
    rgba(14,20,16,0.85) 100%
  );
  transition: background 0.3s ease;
}
.step-card:hover .step-overlay {
  background: linear-gradient(
    to bottom,
    rgba(14,20,16,0.2) 0%,
    rgba(14,20,16,0.3) 40%,
    rgba(14,20,16,0.9) 100%
  );
}

/* Text — anchored to bottom */
.step-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 36px 32px;
  z-index: 2;
}

.step-content .step-num {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.step-content .step-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 300;
  color: white;
  line-height: 1.2;
  margin-bottom: 10px;
}

.step-content .step-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 16px;
  max-width: 340px;
}

.step-content .step-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--mist);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 0;
}
.step-content .step-tag::before { content: '→'; }
.stack-card-header {
  height: 240px;
  display: flex;
  align-items: flex-end;
  padding: 0;
  position: relative;
  overflow: hidden;
  margin: 0;
  flex-shrink: 0;
  background: #1a3a2a;
}

/* Gradient backgrounds — replace with images later */
.sc-muscle { background: linear-gradient(135deg, #0d2018 0%, #1a3a2a 60%, #2d5a3d 100%); }
.sc-sleep  { background: linear-gradient(135deg, #0d0d1f 0%, #1a1a35 60%, #252050 100%); }
.sc-health { background: linear-gradient(135deg, #1a2a0d 0%, #2a3a18 60%, #3d5225 100%); }
.sc-focus  { background: linear-gradient(135deg, #2a1a0d 0%, #3d2a18 60%, #5c3d25 100%); }

/* Large emoji placeholder — centred in header */
.sc-img-placeholder {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -60%);
  font-size: 52px;
  opacity: 0.25;
  filter: grayscale(0.3);
  pointer-events: none;
  user-select: none;
}

.sc-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
  display: block;
}

.stack-card:hover .sc-bg-img {
  transform: scale(1.05);
}

/* Dark gradient at bottom so text is readable */
.sc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.6) 100%);
}

/* Text content at bottom of header */
.sc-header-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 18px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sc-result {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
  letter-spacing: 0.04em;
}




/* ============================================================
   TESTIMONIALS — animated, asymmetric
   ============================================================ */

/* Header with global stats */
.results-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 56px;
}

.results-global-stats { display: flex; flex-direction: column; gap: 20px; }

.rgs-item {}
.rgs-num {
  font-size: 40px; font-weight: 300; color: var(--ink);
  line-height: 1; margin-bottom: 4px;
}
.rgs-label { font-size: 12px; color: var(--mid-gray); font-weight: 400; margin-bottom: 8px; }

.rgs-bar {
  height: 3px; background: var(--light-gray);
  border-radius: 100px; overflow: hidden;
}
.rgs-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--forest), var(--moss));
  border-radius: 100px;
  transition: width 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Asymmetric grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  align-items: start;
}

.testimonials-col { display: flex; flex-direction: column; gap: 20px; }

/* Card base */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--warm-gray);
  border-radius: 16px;
  padding: 32px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(14,20,16,0.08);
  transform: translateY(-2px);
}

/* Featured card */
.testimonial-card--featured {
  background: var(--forest);
  border-color: transparent;
  padding: 40px;
}
.testimonial-card--featured .tc-quote  { color: rgba(255,255,255,0.88); }
.testimonial-card--featured .author-name { color: white; }
.testimonial-card--featured .author-info { color: rgba(255,255,255,0.5); }
.testimonial-card--featured .author-stack { color: var(--mist); }
.testimonial-card--featured .tc-stars { color: var(--accent); }

/* Result badge */
.tc-result-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  padding: 5px 12px; border-radius: 100px;
  margin-bottom: 20px;
}
.tc-result-badge--green {
  background: rgba(45,90,61,0.1);
  color: var(--moss);
}
.tc-result-badge--blue {
  background: rgba(59,130,246,0.08);
  color: #3b82f6;
}

/* Quote */
.tc-quote {
  font-size: 16px; line-height: 1.7;
  color: var(--ink); font-weight: 300;
  margin-bottom: 24px; font-style: italic;
}

/* Week timeline */
.tc-timeline {
  display: flex; align-items: center;
  margin-bottom: 28px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.07);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
}

.tc-week {
  display: flex; flex-direction: column;
  align-items: center; gap: 4px; flex: 1;
}

.tc-week-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
}
.tc-week-dot--done   { background: var(--mist); }
.tc-week-dot--active {
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74,222,128,0.2);
  animation: pulse 2s infinite;
}

.tc-week-line { flex: 1; height: 1px; background: rgba(255,255,255,0.15); margin: 0 4px; }
.tc-week-label { font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.5); letter-spacing: 0.06em; }
.tc-week-note  { font-size: 10px; color: rgba(255,255,255,0.4); text-align: center; }

/* Progress bars */
.tc-progress { margin-bottom: 20px; }
.tc-progress-label {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--mid-gray); margin-bottom: 6px;
}
.tc-progress-val { font-weight: 600; color: var(--moss); }
.tc-progress-track {
  height: 4px; background: var(--light-gray);
  border-radius: 100px; overflow: hidden;
}
.tc-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--forest), var(--moss));
  border-radius: 100px;
  transition: width 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s;
}

/* Author */
.testimonial-author {
  display: flex; align-items: center; gap: 12px;
}

.author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px; color: white; flex-shrink: 0;
  font-weight: 400;
}
.author-avatar--sarah  { background: linear-gradient(135deg, #667eea, #764ba2); }
.author-avatar--marcus { background: linear-gradient(135deg, #1a3a2a, #2d5a3d); }
.author-avatar--linh   { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }

.author-name  { font-size: 13px; font-weight: 600; color: var(--ink); }
.author-info  { font-size: 11px; color: var(--mid-gray); margin-top: 1px; }
.author-stack {
  font-size: 10px; font-weight: 600; color: var(--moss);
  background: rgba(45,90,61,0.08);
  padding: 2px 8px; border-radius: 100px;
  display: inline-block; margin-top: 3px;
}

.tc-stars {
  margin-left: auto; font-size: 13px;
  color: var(--accent); flex-shrink: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .results-header  { grid-template-columns: 1fr; gap: 36px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonials-col  { gap: 16px; }
}



/* ── Testimonials override (clean simple version) ── */
.testimonials { padding: var(--space-3xl) 0; background: var(--white); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--warm-gray);
  border-radius: 16px;
  padding: 32px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(14,20,16,0.07);
  transform: translateY(-2px);
}
.testimonial-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.testimonial-result {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--forest);
}
.stars { color: var(--accent); font-size: 13px; letter-spacing: 2px; }
.testimonial-text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  font-weight: 300;
  font-style: italic;
  margin-bottom: 22px;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px; color: white; flex-shrink: 0;
}
.author-avatar--sarah  { background: linear-gradient(135deg, #667eea, #764ba2); }
.author-avatar--marcus { background: linear-gradient(135deg, #1a3a2a, #2d5a3d); }
.author-avatar--linh   { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.author-name  { font-size: 13px; font-weight: 600; color: var(--ink); }
.author-info  { font-size: 11px; color: var(--mid-gray); margin-top: 1px; }
.author-stack {
  font-size: 10px; font-weight: 600; color: var(--moss);
  background: rgba(45,90,61,0.08);
  padding: 2px 8px; border-radius: 100px;
  display: inline-block; margin-top: 3px;
}

/* ── Mobile improvements ── */
@media (max-width: 768px) {
  .testimonials-grid { grid-template-columns: 1fr; gap: 14px; }
  .testimonial-card  { padding: 24px 20px; }
  .stacks-grid       { grid-template-columns: 1fr 1fr !important; gap: 12px; }
  /* products-row handled separately for each context */
  .steps-grid        { grid-template-columns: 1fr !important; }
  .hero-ctas         { flex-direction: column; }
  .hero-ctas .btn-lg { width: 100%; text-align: center; justify-content: center; }
  .hero-stats        { gap: 20px; flex-wrap: wrap; }
  .ai-feature-inner  { grid-template-columns: 1fr !important; gap: 36px; }
  .science-inner     { grid-template-columns: 1fr !important; gap: 36px; }
  .footer-inner      { grid-template-columns: 1fr !important; gap: 24px; }
  .newsletter-form   { flex-direction: column; }
  .results-header    { grid-template-columns: 1fr !important; gap: 28px; }
}

@media (max-width: 480px) {
  .stacks-grid       { grid-template-columns: 1fr !important; }
  /* products-row handled separately */
  .hero h1           { font-size: clamp(28px, 10vw, 40px); }
  .stack-card-body   { padding: 16px 14px 18px; }
  .testimonial-card  { padding: 20px 16px; }
}

/* ── Bottom nav — hidden everywhere (removed from design) ── */
.bottom-nav { display: none !important; }

/* ── Quiz mobile fixes ── */
@media (max-width: 768px) {
  .advisor-page         { padding-bottom: 0; }
  .advisor-container    { padding: 16px 16px 40px; min-height: calc(100vh - 64px); }
  .advisor-hero         { padding: 32px 20px 24px; }
  .advisor-hero h1      { font-size: clamp(28px, 8vw, 40px); }

  .progress-bar-wrap    { margin-bottom: 28px; }

  .question-card        { padding: 24px 18px 28px; border-radius: 12px; }
  .question-num         { font-size: 10px; margin-bottom: 8px; }
  .question-text        { font-size: 22px; margin-bottom: 20px; line-height: 1.3; }

  /* Grid options — 2 columns on mobile */
  .options-grid         { grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; }
  .option-btn           { padding: 14px 10px; border-radius: 8px; }
  .option-emoji         { font-size: 20px; margin-bottom: 4px; }
  .option-label         { font-size: 12px; }
  .option-sub           { font-size: 10px; }

  /* List options */
  .options-col          { gap: 8px; margin-bottom: 20px; }
  .option-btn-full      { padding: 13px 16px; font-size: 13px; }

  /* Slider */
  .slider-container     { padding: 0; }
  .slider-val           { font-size: 28px; }

  /* Nav buttons */
  .question-nav         { gap: 12px; margin-top: 4px; }
  .btn-next             { flex: 1; padding: 14px 20px; font-size: 12px; }
  .btn-back             { font-size: 12px; padding: 14px 0; }

  /* Existing supplements text input */
  .existing-text-wrap   { margin-top: 14px; }
  .existing-text-input  { font-size: 13px; padding: 10px 12px; }

  /* Hint text */
  .question-hint        { font-size: 11px; margin-bottom: 10px; }
}

@media (max-width: 480px) {
  .advisor-container    { padding: 16px 12px 40px; }
  .question-card        { padding: 20px 14px 22px; }
  .question-text        { font-size: 19px; }

  /* 1 column on very small screens */
  .options-grid         { grid-template-columns: 1fr 1fr; gap: 6px; }
  .option-btn           { padding: 12px 8px; }
  .option-emoji         { font-size: 18px; }
  .option-label         { font-size: 11px; }
  .option-sub           { display: none; }

  .btn-next             { padding: 13px 16px; font-size: 11px; }
}

/* ── Fix q12 existing-text / Continue button overlap on mobile ── */
@media (max-width: 768px) {
  .ac-msgs         { min-height: 180px; max-height: 220px; }
  .ac-top          { padding: 14px 16px; }
  .ac-msgs         { padding: 14px 16px; }
  .ac-quick        { padding: 0 16px 12px; gap: 5px; }
  .ac-chip         { font-size: 11px; padding: 5px 10px; }
  .ac-input-row    { padding: 0 16px 12px; }
  .ac-disclaimer   { padding: 0 16px 12px; }
  .ac-input        { font-size: 12px; }

  /* existing supplements text — prevent overlap */
  .existing-text-wrap { margin-top: 12px; padding-top: 12px; }
  .question-card       { padding-bottom: 24px !important; }
}

/* ── Q12 fix: existing text input doesn't overlap continue button ── */
.question-card {
  display: flex;
  flex-direction: column;
}
.question-nav {
  margin-top: auto;
  padding-top: 20px;
}
@media (max-width: 768px) {
  .advisor-container {
    overflow-y: auto;
  }
  .question-card {
    padding-bottom: 28px !important;
  }
  .sdc-header-content { padding: 20px 24px; }
  .sdc-name           { font-size: 26px; }
  .sdc-for            { font-size: 12px; }
}

/* ── Loading animation mobile fix ── */
@media (max-width: 768px) {
  .ai-loading          { padding: 36px 20px; }
  .ai-loading-title    { font-size: 22px; }
  .ai-loading-step     { font-size: 12px; height: 20px; line-height: 20px; }
  .ai-loading-steps-track { max-width: 100%; }
  .ai-step-item        { font-size: 12px; padding: 6px 10px; }
  .ai-loading-ring     { width: 100px; height: 100px; margin-bottom: 24px; }
  .ai-ring-svg         { width: 100px; height: 100px; }
  .ai-loading-icon     { font-size: 28px; }
}

/* ── Subscribe saving label ── */
#subSavingLabel { transition: opacity 0.2s ease; }

/* ── Checkout pricing consistency ── */
.co-tier-price { transition: all 0.14s ease; }
.co-total-val  { transition: all 0.14s ease; }

/* ── Checkout visual — redesigned ── */
.co-visual-content {
  position: relative;
  z-index: 2;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 36px;
  height: 100%;
}

/* Match ring */
.cov-match {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cov-match-ring {
  position: relative;
  flex-shrink: 0;
}
.cov-match-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-weight: 400;
  color: white;
}
.cov-match-label {
  font-size: 13px;
  font-weight: 600;
  color: white;
}
.cov-match-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  margin-top: 3px;
  letter-spacing: 0.02em;
}

/* Headline */
.cov-eyebrow {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  font-weight: 600;
  margin-bottom: 10px;
}
.cov-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 300;
  color: white;
  line-height: 1.15;
  margin-bottom: 10px;
}
.cov-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Stats row */
.cov-stats {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.cov-stat {
  flex: 1;
  text-align: center;
}
.cov-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 300;
  color: white;
  line-height: 1;
  margin-bottom: 4px;
}
.cov-stat-label {
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.cov-stat-div {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.12);
}

@media (max-width: 768px) {
  .co-visual-content   { padding: 32px 24px; gap: 24px; }
  .cov-title           { font-size: 28px; }
  .cov-stat-num        { font-size: 22px; }
}

/* ── Checkout visual background image ── */
.co-visual-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.co-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14,20,16,0.55) 0%,
    rgba(14,20,16,0.65) 60%,
    rgba(14,20,16,0.85) 100%
  );
  z-index: 1;
}

/* ensure content is above overlay */
.co-visual .co-visual-content { z-index: 2; }

/* ── Language selector ── */
.lang-selector {
  position: relative;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  color: rgba(14,20,16,0.5);
  background: none;
  border: 1px solid rgba(14,20,16,0.12);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lang-current:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--white);
  border: 1px solid rgba(14,20,16,0.08);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(14,20,16,0.08);
  overflow: hidden;
  display: none;
  min-width: 80px;
  z-index: 1001;
}
.lang-menu.open { display: block; }

.lang-opt {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(14,20,16,0.5);
  text-decoration: none;
  transition: all 0.1s;
  font-family: 'DM Sans', sans-serif;
}
.lang-opt:hover  { background: var(--cream); color: var(--ink); }
.lang-opt.active { color: var(--forest); background: rgba(26,58,42,0.05); }

@media (max-width: 768px) {
  .lang-selector { display: none; }
}

/* ── Checkout mobile — compact visual panel ── */
@media (max-width: 768px) {
  .checkout-overlay {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    top: 60px;
  }

  .co-visual {
    min-height: 180px;
    max-height: 200px;
  }

  .co-visual-content {
    padding: 20px 20px;
    gap: 14px;
    justify-content: flex-end;
  }

  /* Hide stats row on mobile — saves space */
  .cov-stats { display: none; }

  /* Compact match + headline */
  .cov-match { gap: 12px; }
  .cov-match-label { font-size: 12px; }
  .cov-match-sub   { font-size: 10px; }
  .cov-title       { font-size: 24px; margin-bottom: 4px; }
  .cov-sub         { font-size: 11px; }
  .cov-eyebrow     { margin-bottom: 6px; }

  /* Right side — full height, scrollable */
  .co-right { overflow-y: auto; }
  .co-right-inner { padding: 20px 16px 48px; }

  .co-headline-title { font-size: 20px; }
  .co-plan-row       { flex-direction: column; gap: 8px; }
  .co-tier-opts      { gap: 8px; }
  .co-tier-opt       { padding: 14px; }
  .co-tier-name      { font-size: 13px; }
  .co-tier-price     { font-size: 18px; }
  .co-plan-opts      { gap: 8px; }
  .co-plan-opt       { padding: 12px 14px; }
  .co-trust          { gap: 10px; }
  .co-trust-item     { gap: 4px; }
  .co-cta            { padding: 15px; font-size: 13px; }
}

@media (max-width: 480px) {
  .co-visual         { min-height: 150px; max-height: 170px; }
  .co-right-inner    { padding: 16px 14px 40px; }
  .co-supp-row       { padding: 12px 10px; }
  .co-supp-name      { font-size: 13px; }
  .co-plan-name      { font-size: 13px; }
  .co-total-val      { font-size: 26px; }
}

/* Old cart notification removed — using .cn-modal styles below */

/* Hide scrollbar on products-row mobile */
@media (max-width: 600px) {
  .products-row::-webkit-scrollbar { display: none; }
  .products-row { -ms-overflow-style: none; scrollbar-width: none; }
}

/* ── Product page redesign ── */
.prod-pg-wrap {
  display: grid;
  grid-template-columns: 420px 1fr;
  min-height: calc(100vh - 64px);
  background: #fff;
}

/* LEFT PANEL — clean white like FutuNatura */
.prod-pg-left {
  background: #fff;
  border-right: 1px solid #eee;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: sticky;
  top: 64px;
  height: fit-content;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}

.prod-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 500;
  color: #888;
  cursor: pointer !important;
  font-family: 'DM Sans', sans-serif;
  transition: color 0.15s;
  padding: 0 0 20px 0;
  -webkit-appearance: none;
  position: relative;
  z-index: 10;
  min-height: 44px;
  width: fit-content;
}
.prod-back-btn:hover { color: #333; }

.prod-img-box {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #ffffff 0%, #f8f8f8 100%);
  border-radius: 20px;
  border: 1px solid #eee;
  padding: 40px;
  min-height: 380px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}
.prod-img-initials {
  font-family: 'Cormorant Garamond', serif;
  font-size: 72px;
  font-weight: 300;
  color: var(--forest);
  line-height: 1;
  letter-spacing: 0.04em;
}
.prod-img-brand {
  font-size: 10px;
  color: #999;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 12px;
}

/* Hide quick facts - they clutter the design */
.prod-quick-facts {
  display: none;
}
.prod-fact-pill {
  display: none;
}

/* RIGHT PANEL */
.prod-pg-right {
  padding: 40px 52px 80px;
  max-width: 700px;
}

.prod-cat-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 12px;
  display: block;
}

.prod-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 3.5vw, 46px);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.prod-subtitle {
  font-size: 15px;
  color: #666;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 520px;
}

/* Key bullets — clean list with teal dots like FutuNatura */
.prod-bullets {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 24px;
  padding: 0;
  border: none;
}
.prod-bullet {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 400;
  color: #333;
  line-height: 1.5;
  padding: 8px 0;
}
.prod-bullet:last-child {
  /* no border change needed */
}
.prod-bullet-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2aa89a; /* Teal like FutuNatura */
  flex-shrink: 0;
  margin-top: 5px;
}

/* Buy row */
.prod-buy-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
  margin-top: 24px;
}
.prod-price {
  font-family: 'Space Grotesk', 'DM Sans', sans-serif;
  font-size: 48px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1;
  letter-spacing: -0.03em;
}
.prod-add-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 36px;
  height: 58px;
  background: linear-gradient(135deg, var(--forest) 0%, #1e4a35 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 14px rgba(26, 58, 42, 0.25);
}
.prod-add-btn:hover  { 
  transform: translateY(-3px); 
  box-shadow: 0 8px 25px rgba(26, 58, 42, 0.35);
}
.prod-add-btn:active { transform: scale(0.97); }

/* Trust row */
.prod-trust-row {
  display: flex;
  gap: 0;
  font-size: 11px;
  color: var(--mid-gray);
  font-weight: 500;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--warm-gray);
  flex-wrap: wrap;
  gap: 16px;
  letter-spacing: 0.02em;
}

/* Tabs — clean non-scrolling design */
.prod-tabs { margin-bottom: 32px; }
.prod-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.prod-tab {
  font-size: 13px;
  font-weight: 500;
  color: var(--mid-gray);
  background: #f5f3f0;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.15s;
}
.prod-tab:hover { 
  background: #ebe8e4;
  color: var(--ink); 
}
.prod-tab.active {
  background: var(--forest);
  color: white;
}
.prod-tab-content { display: none; }
.prod-tab-content.active { display: block; }

.prod-tab-content p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
  font-weight: 300;
  margin-bottom: 14px;
}

.prod-nutrition-table { width: 100%; margin-top: 16px; border-collapse: collapse; }
.prod-nutrition-table tr { border-bottom: 1px solid var(--warm-gray); }
.prod-nutrition-table td { padding: 8px 0; font-size: 13px; font-weight: 300; color: var(--ink); }
.prod-nutrition-table td:last-child { text-align: right; color: var(--mid-gray); }

.prod-warning-box {
  background: rgba(200,169,110,0.08);
  border: 1px solid rgba(200,169,110,0.25);
  border-radius: 10px;
  padding: 18px 20px;
}
.prod-warning-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.prod-warning-text {
  font-size: 13px;
  color: var(--mid-gray);
  line-height: 1.75;
  font-weight: 300;
}

.prod-cert-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.prod-cert-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(26,58,42,0.07);
  color: var(--forest);
}

/* AI banner */
.prod-ai-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: var(--forest);
  border-radius: 12px;
  color: white;
  margin-top: 8px;
}
.prod-ai-icon { font-size: 18px; color: var(--accent); flex-shrink: 0; }
.prod-ai-title { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.prod-ai-sub { font-size: 12px; color: rgba(255,255,255,0.55); line-height: 1.4; }
.prod-ai-btn {
  margin-left: auto;
  flex-shrink: 0;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.prod-ai-btn:hover { background: rgba(255,255,255,0.18); }

/* Mobile */
@media (max-width: 860px) {
  .prod-pg-wrap { grid-template-columns: 1fr; }
  .prod-pg-left {
    position: static;
    height: auto;
    max-height: none;
    padding: 16px 20px;
    border-right: none;
    border-bottom: 1px solid #e8e4de;
    gap: 12px;
  }
  .prod-img-box {
    min-height: 200px;
    padding: 20px;
  }
  .prod-img-box .prod-img-real {
    max-height: 160px;
  }
  .prod-img-initials { font-size: 48px; }
  .prod-img-brand { display: none; }
  .prod-pg-right { padding: 24px 20px 80px; }
  .prod-title { font-size: 28px; }
  .prod-subtitle { font-size: 14px; }
  .prod-price { font-size: 38px; }
  .prod-add-btn { height: 50px; }
  .prod-trust-row { gap: 12px; flex-wrap: wrap; }
  .prod-ai-banner { flex-wrap: wrap; gap: 12px; }
  .prod-bullets { margin-bottom: 20px; }
  .prod-bullet { font-size: 14px; padding: 8px 0; }
}


/* Safari back button fix */
.prod-back-btn {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer !important;
}

/* ══════════════════════════════════════════════════════════════════
   PRODUCT PAGE REDESIGN — Clean, modern look
   ══════════════════════════════════════════════════════════════════ */

/* Left panel - cleaner */
.prod-pg-left {
  background: #fafaf8;
  border-right: 1px solid #e8e4de;
}

.prod-img-box {
  background: #fff;
  border: 1px solid #e8e4de;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Bullet points */
.prod-bullet {
  padding: 12px 0;
  font-size: 14px;
  font-weight: 400;
  color: #333;
}
.prod-bullet-dot {
  width: 8px;
  height: 8px;
  background: var(--forest);
  border-radius: 50%;
}

/* Premium intro text */
.prod-intro {
  font-size: 16px;
  font-weight: 500;
  color: var(--forest);
  line-height: 1.65;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

/* Benefits list */
.prod-benefits-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.prod-benefit-block {
  background: #fafaf8;
  border-radius: 10px;
  padding: 18px 20px;
}

.prod-benefit-title {
  font-size: 14px;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.prod-benefit-title::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--forest);
  border-radius: 50%;
  flex-shrink: 0;
}

.prod-benefit-desc {
  font-size: 13px;
  color: #555;
  line-height: 1.7;
  font-weight: 400;
  padding-left: 14px;
}

/* Tab content */
.prod-tab-content p {
  font-size: 14px;
  line-height: 1.8;
  color: #444;
  font-weight: 400;
}
.prod-tab-content p strong {
  font-weight: 600;
  color: #222;
}

/* Trust row */
.prod-trust-row {
  gap: 16px;
  font-size: 12px;
  color: #666;
  border-bottom: 1px solid #e8e4de;
  padding-bottom: 20px;
  margin-bottom: 28px;
}

/* Buy section */
.prod-buy-row {
  margin-bottom: 16px;
}
.prod-add-btn {
  background: var(--forest);
  border-radius: 10px;
  font-size: 13px;
  letter-spacing: 0.05em;
  height: 52px;
}
.prod-add-btn:hover {
  background: #1f4a35;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26,58,42,0.25);
}

/* AI banner */
.prod-ai-banner {
  background: linear-gradient(135deg, var(--forest) 0%, #1a4530 100%);
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 12px;
}

/* Mobile */
@media (max-width: 860px) {
  .prod-tabs-nav {
    gap: 6px;
  }
  .prod-tab {
    font-size: 12px;
    padding: 8px 12px;
  }
  .prod-intro {
    font-size: 15px;
  }
  .prod-benefit-block {
    padding: 14px 16px;
  }
  .prod-benefit-title {
    font-size: 13px;
  }
  .prod-benefit-desc {
    font-size: 12px;
  }
}

/* ══════════════════════════════════════════════════════════════════
   PRODUCT IMAGES — Real product photos
   ══════════════════════════════════════════════════════════════════ */

/* Shop grid product images */
.product-img-real {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.3s ease;
}
.product-card:hover .product-img-real {
  transform: scale(1.05);
}

/* Product page image */
.prod-img-box .prod-img-real {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  border-radius: 8px;
}

/* Mobile adjustments */
@media (max-width: 860px) {
  .prod-img-box .prod-img-real {
    max-height: 180px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   CART NOTIFICATION POPUP - Premium Animated Version
   ═══════════════════════════════════════════════════════════════ */

.cn-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(14, 20, 16, 0.45);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cn-overlay.show {
  opacity: 1;
}

.cn-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9) translateY(30px);
  width: 520px;
  max-width: calc(100vw - 32px);
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 30px 100px rgba(14, 20, 16, 0.22), 0 15px 50px rgba(14, 20, 16, 0.12);
  z-index: 9999;
  font-family: 'DM Sans', sans-serif;
  overflow: hidden;
  opacity: 0;
  transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cn-modal.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) translateY(0);
}

.cn-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 28px;
  background: linear-gradient(135deg, #eef5f0 0%, #dce9df 100%);
  border-bottom: 1px solid #c5d9ca;
}

.cn-check-wrap {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--moss) 0%, var(--forest) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cnPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
  box-shadow: 0 4px 12px rgba(26, 58, 42, 0.3);
}
.cn-check-icon {
  color: white;
  width: 20px;
  height: 20px;
}

@keyframes cnPop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

.cn-header-text {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: var(--forest);
  letter-spacing: -0.01em;
}

.cn-close {
  background: none;
  border: none;
  font-size: 26px;
  color: var(--mist);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: all 0.15s;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}
.cn-close:hover {
  color: var(--forest);
  background: rgba(26, 58, 42, 0.08);
}

.cn-body {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px 28px;
}

.cn-product-img {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--white), var(--cream));
  border: 1px solid var(--warm-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--forest);
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(14, 20, 16, 0.06);
  animation: cnSlideIn 0.4s ease 0.15s both;
}
@keyframes cnSlideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}
.cn-product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.cn-product-info {
  flex: 1;
  min-width: 0;
  animation: cnSlideIn 0.4s ease 0.2s both;
}

.cn-product-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 8px;
}

.cn-product-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.cn-ai-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--accent-light) 0%, #dcc68a 100%);
  color: #6b5520;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

.cn-shipping-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--cream);
  border-top: 1px solid var(--warm-gray);
  border-bottom: 1px solid var(--warm-gray);
  font-size: 14px;
  color: var(--forest);
}
.cn-shipping-bar svg {
  color: var(--moss);
}
.cn-shipping-bar strong {
  color: var(--forest);
  font-weight: 700;
}

.cn-buttons {
  display: flex;
  gap: 12px;
  padding: 24px 28px;
}

.cn-btn {
  flex: 1;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
  border: none;
}

.cn-btn-secondary {
  background: var(--cream);
  color: var(--ink);
  border: 1.5px solid var(--warm-gray);
}
.cn-btn-secondary:hover {
  background: var(--warm-gray);
  transform: translateY(-1px);
}

.cn-btn-primary {
  background: var(--forest);
  color: white;
  box-shadow: 0 4px 14px rgba(26, 58, 42, 0.25);
}
.cn-btn-primary:hover {
  background: var(--moss);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 58, 42, 0.35);
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE IMPROVEMENTS - Best Sellers swipe & Shop 2 columns
   ═══════════════════════════════════════════════════════════════ */

/* Best Sellers horizontal swipe on mobile */
@media (max-width: 768px) {
  .best-sellers .products-row {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding: 0 16px 16px 16px;
    margin: 0 -16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .best-sellers .products-row::-webkit-scrollbar {
    display: none;
  }
  
  /* Fixed width cards that show all content */
  .best-sellers .products-row .product-card {
    flex: 0 0 260px;
    min-width: 260px;
    max-width: 260px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
  }
  
  /* Constrain image container */
  .best-sellers .products-row .product-img {
    height: 180px;
    min-height: 180px;
    max-height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f7f5;
  }
  
  /* Constrain actual image */
  .best-sellers .products-row .product-img-real {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 16px;
  }
  
  /* Product info section */
  .best-sellers .products-row .product-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  
  .best-sellers .products-row .product-category {
    font-size: 9px;
    margin-bottom: 6px;
  }
  
  .best-sellers .products-row .product-name {
    font-size: 18px;
    margin-bottom: 6px;
    line-height: 1.2;
  }
  
  .best-sellers .products-row .product-tagline {
    font-size: 12px;
    margin-bottom: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
  }
  
  .best-sellers .products-row .product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #eee;
    margin-top: auto;
  }
  
  .best-sellers .products-row .product-price {
    font-size: 22px;
  }
  
  .best-sellers .products-row .btn-sm {
    padding: 10px 16px;
    font-size: 11px;
  }
  
  /* Shop grid - 2 columns on mobile */
  .shop-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .shop-products-grid .product-card {
    display: flex;
    flex-direction: column;
  }
  .shop-products-grid .product-img {
    height: 140px;
    min-height: 140px;
    max-height: 140px;
    overflow: hidden;
  }
  .shop-products-grid .product-img-real {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
  }
  .shop-products-grid .product-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .shop-products-grid .product-name {
    font-size: 14px;
    margin-bottom: 4px;
  }
  .shop-products-grid .product-tagline {
    font-size: 11px;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
    flex: 1;
  }
  .shop-products-grid .product-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: auto;
  }
  .shop-products-grid .product-price {
    font-size: 20px;
  }
  .shop-products-grid .btn-sm {
    width: 100%;
    text-align: center;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .cn-modal {
    width: calc(100vw - 24px);
    border-radius: 16px;
  }
  .cn-body {
    padding: 20px;
    gap: 14px;
  }
  .cn-product-img {
    width: 70px;
    height: 70px;
  }
  .cn-buttons {
    flex-direction: column;
    padding: 16px 20px;
    gap: 10px;
  }
}

/* ============================================================
   CHECKOUT PAGE — Premium Multi-step
   ============================================================ */
.ck-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 24px 112px;
}

.page#page-checkout {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(45,90,61,.10), transparent 34%),
    radial-gradient(circle at top right, rgba(200,169,110,.12), transparent 30%),
    linear-gradient(180deg, #faf8f4 0%, #f4f0ea 100%);
}
.page#page-checkout::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255,255,255,.34) 0%, rgba(255,255,255,0) 32%),
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.30), transparent 42%);
  pointer-events: none;
}

/* ── Progress Bar ── */
.ck-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  padding: 16px 28px 10px;
  position: relative;
  border: 1px solid rgba(26,58,42,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 14px 40px rgba(14,20,16,.05);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.ck-progress::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.55), rgba(255,255,255,0) 40%, rgba(200,169,110,.08));
  pointer-events: none;
}
.ck-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 110px;
}
.ck-step span {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--mid-gray);
  transition: color .3s;
  margin-top: 2px;
}
.ck-step.active span,
.ck-step.done span { color: var(--forest); font-weight: 600; }
.ck-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(26,58,42,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--mid-gray);
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.95), rgba(255,255,255,.78) 40%, rgba(240,235,226,.95) 100%);
  transition: all .35s cubic-bezier(.4,0,.2,1);
  font-family: 'DM Sans', sans-serif;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 10px 24px rgba(14,20,16,.06);
}
.ck-step.active .ck-dot {
  border-color: rgba(26,58,42,.18);
  background: linear-gradient(135deg, var(--forest), #234b35);
  color: white;
  box-shadow: 0 0 0 5px rgba(26,58,42,.10), 0 14px 30px rgba(26,58,42,.18);
  animation: ckDotPulse 2.2s ease-in-out infinite;
}
.ck-step.done .ck-dot {
  border-color: rgba(26,58,42,.16);
  background: linear-gradient(135deg, #234b35, var(--forest));
  color: white;
}
.ck-line {
  flex: 1;
  height: 6px;
  background:
    linear-gradient(90deg, rgba(26,58,42,.14) 0%, rgba(26,58,42,.06) 50%, rgba(200,169,110,.18) 100%);
  background-size: 200% 100%;
  background-position: 0% 0%;
  max-width: 160px;
  transition: background .4s, transform .4s;
  margin: 0 -4px;
  margin-top: -14px;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.ck-line.done {
  background: linear-gradient(90deg, var(--forest), #4c8a63, var(--accent), var(--forest));
  background-size: 240% 100%;
  animation: ckLineFlow 4.5s linear infinite;
}

.ck-progress-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 24px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(26,58,42,.08);
  color: var(--mid-gray);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(14,20,16,.04);
  backdrop-filter: blur(10px);
}
.ck-progress-caption-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--forest), var(--accent));
  box-shadow: 0 0 0 4px rgba(26,58,42,.08);
  flex-shrink: 0;
}

.ck-back-chip {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1400;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(26,58,42,.14);
  background: rgba(250,250,248,.86);
  color: var(--ink);
  box-shadow: 0 18px 60px rgba(14,20,16,.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px) scale(.98);
  transition: opacity .28s ease, transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease;
}
.ck-back-chip.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.ck-back-chip:hover {
  box-shadow: 0 22px 70px rgba(14,20,16,.2);
  transform: translateY(-1px) scale(1.01);
}
.ck-back-chip-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--forest), var(--moss));
  color: white;
  font-weight: 700;
  flex-shrink: 0;
}
.ck-back-chip-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.ck-back-chip-text strong {
  font-size: 13px;
  font-weight: 700;
}
.ck-back-chip-text small {
  font-size: 10px;
  color: var(--mid-gray);
  margin-top: 2px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ── Header ── */
.ck-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.ck-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -.03em;
}
.ck-actions { display: flex; gap: 12px; }
.ck-btn-outline {
  padding: 13px 28px;
  border: 1.5px solid rgba(26,58,42,.12);
  background: rgba(255,255,255,.74);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: .03em;
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s, transform .2s;
  backdrop-filter: blur(12px);
}
.ck-btn-outline:hover { border-color: var(--forest); color: var(--forest); transform: translateY(-1px); }
.ck-btn-primary {
  padding: 13px 32px;
  border: none;
  background: linear-gradient(135deg, var(--forest), #224b35);
  color: white;
  font-size: 13px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 12px 32px rgba(26,58,42,.18);
}
.ck-btn-primary:hover { background: linear-gradient(135deg, #224b35, var(--moss)); transform: translateY(-1px); box-shadow: 0 16px 36px rgba(26,58,42,.24); }

/* ── Cart Table ── */
.ck-table {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 1px 3px rgba(0,0,0,.03);
  overflow: hidden;
}
.ck-table-head {
  display: flex;
  align-items: center;
  padding: 14px 28px;
  font-size: 10px;
  font-weight: 700;
  color: var(--mid-gray);
  text-transform: uppercase;
  letter-spacing: .1em;
  border-bottom: 1px solid rgba(0,0,0,.05);
  background: rgba(245,242,237,.4);
}
.ck-cart-row {
  display: flex;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(0,0,0,.04);
  transition: background .15s;
}
.ck-cart-row:last-child { border-bottom: none; }
.ck-cart-row:hover { background: rgba(245,242,237,.3); }
.ck-cart-img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-right: 20px;
  flex-shrink: 0;
}
.ck-cart-img img { width: 100%; height: 100%; object-fit: contain; }
.ck-cart-info { flex: 3; display: flex; align-items: center; }
.ck-cart-name { font-weight: 600; font-size: 15px; color: var(--ink); letter-spacing: -.01em; }
.ck-cart-sub { font-size: 12px; color: var(--mid-gray); margin-top: 3px; }
.ck-cart-price {
  flex: 1;
  text-align: center;
  font-size: 14px;
  color: var(--mid-gray);
}
.ck-cart-qty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.ck-qty-btn {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--warm-gray);
  border-radius: 6px;
  background: var(--white);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid-gray);
  transition: all .15s;
}
.ck-qty-btn:hover { border-color: var(--forest); color: var(--forest); }
.ck-qty-num { font-size: 15px; font-weight: 600; min-width: 24px; text-align: center; }
.ck-cart-total {
  flex: 1;
  text-align: right;
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
}
.ck-cart-remove { width: 40px; display: flex; justify-content: center; }
.ck-cart-remove button {
  background: none;
  border: none;
  font-size: 16px;
  color: var(--mid-gray);
  cursor: pointer;
  padding: 6px;
  transition: all .2s;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ck-cart-remove button:hover { color: var(--red); background: rgba(192,57,43,.06); }

/* ── Totals bar ── */
.ck-totals {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
}
.ck-totals-row {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 20px 28px;
  background: rgba(255,255,255,.82);
  border-radius: 16px;
  border: 1px solid rgba(26,58,42,.08);
  box-shadow: 0 16px 40px rgba(14,20,16,.06);
  backdrop-filter: blur(10px);
}
.ck-totals-row span:first-child {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
}
.ck-totals-row .serif {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  color: var(--forest);
}

/* ── Promo code row ── */
.ck-totals {
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.ck-promo-row {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.ck-promo-input-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
}
.ck-promo-input {
  padding: 10px 14px;
  border: 1.5px solid rgba(26,58,42,.15);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  background: var(--white, #fafaf8);
  outline: none;
  width: 160px;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: border-color .15s;
}
.ck-promo-input:focus { border-color: var(--forest, #1a3a2a); }
.ck-promo-input:disabled { opacity: .6; background: #f0f0ee; }
.ck-promo-btn {
  padding: 10px 18px;
  background: var(--forest, #1a3a2a);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s;
}
.ck-promo-btn:hover { background: #2d5a3d; }
.ck-promo-msg {
  font-size: 12px;
  min-height: 16px;
}
.ck-totals-row + .ck-totals-row {
  margin-top: 4px;
}

/* ── Step 2: Two-column layout ── */
.ck-two-col {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}
.ck-form-col { display: flex; flex-direction: column; gap: 0; }
.ck-form-section {
  background:
    linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(249,247,242,.88) 100%);
  border-radius: 18px;
  border: 1px solid rgba(26,58,42,.08);
  box-shadow: 0 18px 50px rgba(14,20,16,.07);
  padding: 30px;
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
}
.ck-form-heading {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 18px;
  color: var(--ink);
}
.ck-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ck-form-row--3 { grid-template-columns: 1.2fr 0.8fr 1fr; }
.ck-field { margin-bottom: 16px; }
.ck-field.has-error label { color: var(--red); }
.ck-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--mid-gray);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}
.ck-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid rgba(26,58,42,.12);
  border-radius: 8px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.ck-input:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 4px rgba(26,58,42,.08);
}
.ck-input.is-invalid {
  border-color: var(--red);
  background: rgba(192,57,43,.03);
  box-shadow: 0 0 0 3px rgba(192,57,43,.10);
}
.ck-input.is-invalid:focus {
  box-shadow: 0 0 0 4px rgba(192,57,43,.14);
}
.ck-input::placeholder { color: var(--mid-gray); opacity: .5; }
select.ck-input { appearance: auto; cursor: pointer; }
textarea.ck-input { resize: vertical; }
.ck-field-error {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--red);
  min-height: 16px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .2s ease, transform .2s ease;
}
.ck-field.has-error .ck-field-error {
  opacity: 1;
  transform: translateY(0);
}

/* ── Payment Method ── */
.ck-payment-options { display: flex; flex-direction: column; gap: 10px; }
.ck-payment-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1.5px solid rgba(26,58,42,.10);
  border-radius: 16px;
  cursor: pointer;
  transition: all .2s;
  background: rgba(255,255,255,.72);
}
.ck-payment-opt.selected {
  border-color: var(--forest);
  background: linear-gradient(180deg, rgba(26,58,42,.03), rgba(26,58,42,.01));
  box-shadow: 0 0 0 4px rgba(26,58,42,.06);
}
.ck-pay-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--warm-gray);
  position: relative;
  flex-shrink: 0;
  transition: all .2s;
}
.ck-payment-opt.selected .ck-pay-radio { border-color: var(--forest); }
.ck-payment-opt.selected .ck-pay-radio::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--forest);
}
.ck-payment-opt span { font-size: 14px; font-weight: 600; flex: 1; }
.ck-pay-icons { display: flex; gap: 8px; align-items: center; }
.ck-pay-note {
  font-size: 12px;
  color: var(--mid-gray);
  margin-top: 14px;
  line-height: 1.5;
}
.ck-pay-note::before { content: '🔒 '; }

/* ── Order Summary ── */
.ck-summary-col { position: sticky; top: 80px; }
.ck-summary-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(247,244,238,.88));
  border-radius: 18px;
  border: 1px solid rgba(26,58,42,.08);
  box-shadow: 0 18px 50px rgba(14,20,16,.08);
  padding: 30px;
  backdrop-filter: blur(10px);
}
.ck-summary-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -.01em;
}
.ck-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  font-size: 13px;
  line-height: 1.4;
}
.ck-summary-item-name { max-width: 72%; color: var(--ink); }
.ck-summary-item-qty {
  display: inline-block;
  color: var(--mid-gray);
  font-weight: 600;
  margin-right: 6px;
  min-width: 22px;
}
.ck-summary-divider {
  height: 1px;
  background: var(--warm-gray);
  margin: 14px 0;
  opacity: .5;
}
.ck-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 14px;
  color: var(--mid-gray);
}
.ck-summary-total {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  padding: 12px 0 4px;
}
.ck-summary-total .serif {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  color: var(--forest);
}
.ck-summary-card--premium {
  position: relative;
}
.ck-summary-card--premium::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(200,169,110,.12), transparent 35%, rgba(26,58,42,.05));
  pointer-events: none;
}

/* ── Secure badge ── */
.ck-secure-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding: 12px;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(26,58,42,.08);
  border-radius: 999px;
  font-size: 11px;
  color: var(--mid-gray);
  letter-spacing: .03em;
  box-shadow: 0 12px 28px rgba(14,20,16,.05);
  backdrop-filter: blur(10px);
}
.ck-secure-badge svg { flex-shrink: 0; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .ck-wrap { padding: 20px 16px 100px; }
  .ck-header { flex-direction: column; align-items: stretch; gap: 8px; margin-bottom: 20px; }
  .ck-title { font-size: 24px; }
  .ck-table-head { display: none; }
  .ck-cart-row { flex-wrap: wrap; gap: 10px; padding: 16px; }
  .ck-cart-info { flex: 1 1 100%; }
  .ck-cart-price { flex: 1; text-align: left; font-size: 13px; }
  .ck-cart-qty { flex: 0; }
  .ck-cart-total { flex: 0; min-width: 60px; }

  /* Form + summary stack vertically; summary comes second */
  .ck-two-col { grid-template-columns: 1fr; gap: 20px; }
  .ck-summary-col { position: static; order: 2; }
  .ck-form-col { order: 1; }

  /* Summary card on mobile — compact */
  .ck-summary-card { padding: 20px; border-radius: 16px; }
  .ck-summary-title { font-size: 15px; margin-bottom: 14px; }
  .ck-summary-row { font-size: 13px; }
  .ck-summary-total { font-size: 15px; }

  /* Form sections */
  .ck-form-section { padding: 20px; border-radius: 16px; margin-bottom: 14px; }
  .ck-form-heading { font-size: 15px; margin-bottom: 14px; }
  .ck-form-row { grid-template-columns: 1fr; }
  .ck-field input, .ck-field select, .ck-field textarea { font-size: 16px; } /* prevent iOS zoom */

  /* Actions */
  .ck-actions { width: 100%; gap: 10px; }
  .ck-btn-outline, .ck-btn-primary { flex: 1; text-align: center; padding: 14px 16px; font-size: 14px; }
  .ck-btn-primary { order: -1; } /* CTA first on mobile */

  /* Sticky place order at bottom */
  .ck-place-order-wrap {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    padding: 14px 16px;
    background: rgba(247,246,243,0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--warm-gray);
    z-index: 100;
  }
  #ckPlaceOrderBtn { width: 100%; padding: 16px; font-size: 15px; }

  .ck-back-chip {
    top: auto;
    bottom: 16px;
    left: 16px;
    right: 16px;
    justify-content: center;
  }
}

/* Checkout stepper override - lighter premium journey rail */
.ck-progress-shell {
  position: relative;
  margin: 0 auto 28px;
  padding: 18px 22px 22px;
  border-radius: 28px;
  border: 1px solid rgba(26,58,42,.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(252,249,244,.86)),
    linear-gradient(135deg, rgba(255,255,255,.55), rgba(200,169,110,.06));
  box-shadow: 0 24px 56px rgba(14,20,16,.06);
  backdrop-filter: blur(16px);
  overflow: hidden;
}
.ck-progress-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(255,255,255,.78), transparent 24%),
    radial-gradient(circle at 100% 0%, rgba(200,169,110,.14), transparent 26%);
  pointer-events: none;
}
.ck-progress-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.ck-progress-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(26,58,42,.05);
  border: 1px solid rgba(26,58,42,.08);
  color: var(--forest);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.ck-progress-stage {
  font-size: 12px;
  color: var(--mid-gray);
  letter-spacing: .04em;
}
.ck-progress {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
}
.ck-progress::before { display: none; }

/* Journey step classes (used in HTML) */
.ck-journey-step {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  background: none;
  border: none;
  padding: 0;
  cursor: default;
  font-family: inherit;
}
.ck-journey-step:not([disabled]) { cursor: pointer; }
.ck-journey-step span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ck-journey-step span strong {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .02em;
}
.ck-journey-step span small {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mid-gray);
}
.ck-journey-step.is-active span strong,
.ck-journey-step.is-done span strong { color: var(--forest); }
.ck-journey-step.is-active span small,
.ck-journey-step.is-done span small { color: var(--forest); }
.ck-journey-dot {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  border: 2px solid var(--warm-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--mid-gray);
  background: var(--white);
  transition: all .35s cubic-bezier(.4,0,.2,1);
  font-family: 'DM Sans', sans-serif;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 12px 26px rgba(14,20,16,.06);
}
.ck-journey-step.is-active .ck-journey-dot {
  border-color: var(--forest);
  background: var(--forest);
  color: white;
  box-shadow: 0 0 0 6px rgba(26,58,42,.10), 0 18px 36px rgba(26,58,42,.18);
}
.ck-journey-step.is-done .ck-journey-dot {
  border-color: var(--forest);
  background: var(--forest);
  color: white;
}
.ck-journey-line {
  flex: 1;
  height: 3px;
  background: var(--warm-gray);
  max-width: 180px;
  min-width: 24px;
  margin: 0 18px;
  transition: background .4s;
  border-radius: 2px;
}
.ck-journey-line.is-done { background: var(--forest); }

/* Legacy aliases */
.ck-step {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.ck-step span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 0;
}
.ck-step span strong {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .02em;
}
.ck-step span small {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mid-gray);
}
.ck-step.active span strong,
.ck-step.done span strong,
.ck-step.active span small,
.ck-step.done span small { color: var(--forest); }
.ck-dot {
  width: 44px;
  height: 44px;
  font-size: 13px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 12px 26px rgba(14,20,16,.06);
  flex-shrink: 0;
}
.ck-step.active .ck-dot {
  box-shadow: 0 0 0 6px rgba(26,58,42,.10), 0 18px 36px rgba(26,58,42,.18);
}
.ck-line {
  height: 3px;
  max-width: 180px;
  margin: 0 18px;
}
.ck-progress-caption,
.ck-back-chip {
  display: none !important;
}

@media (max-width: 768px) {
  .ck-progress-shell {
    padding: 14px 16px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
  }
  /* Collapse topline to a single row — badge left, stage right */
  .ck-progress-topline {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
  }
  .ck-progress-stage { font-size: 11px; }

  /* Journey rail — dots only, no text labels */
  .ck-progress {
    justify-content: center;
    gap: 0;
  }
  .ck-journey-step { gap: 0; }
  .ck-journey-step span { display: none; }           /* hide text labels */
  .ck-journey-dot {
    width: 34px; height: 34px; min-width: 34px;
    font-size: 12px;
  }
  .ck-journey-line {
    flex: 1;
    max-width: none;
    min-width: 24px;
    margin: 0 6px;
  }

  /* Below the dots: show active step name as caption */
  .ck-progress-stage-mobile {
    display: block;
    text-align: center;
    font-size: 11px;
    color: var(--mid-gray);
    margin-top: 10px;
    letter-spacing: .04em;
  }

  /* Legacy aliases */
  .ck-step { gap: 0; }
  .ck-step span { display: none; }
  .ck-dot { width: 34px; height: 34px; font-size: 12px; }
  .ck-line { flex: 1; max-width: none; min-width: 24px; margin: 0 6px; }
}

@keyframes ckDotPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(26,58,42,.12); }
  50% { box-shadow: 0 0 0 8px rgba(26,58,42,.04); }
}

@keyframes ckLineFlow {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

@keyframes ckPageLift {
  from { opacity: 0; transform: translateY(14px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

#page-checkout.ck-enter .ck-progress,
#page-checkout.ck-enter .ck-header,
#page-checkout.ck-enter .ck-form-section,
#page-checkout.ck-enter .ck-summary-card,
#page-checkout.ck-enter .ck-secure-badge {
  animation: ckPageLift .58s cubic-bezier(.2,.8,.2,1) both;
}
#page-checkout.ck-enter .ck-progress { animation-delay: 0s; }
#page-checkout.ck-enter .ck-header { animation-delay: .04s; }
#page-checkout.ck-enter .ck-form-section:nth-of-type(1) { animation-delay: .08s; }
#page-checkout.ck-enter .ck-form-section:nth-of-type(2) { animation-delay: .12s; }
#page-checkout.ck-enter .ck-form-section:nth-of-type(3) { animation-delay: .16s; }
#page-checkout.ck-enter .ck-summary-card { animation-delay: .12s; }
#page-checkout.ck-enter .ck-secure-badge { animation-delay: .18s; }

/* ============================================================
   LEGAL PAGES — Terms, Privacy, Cookie Policy
   ============================================================ */
.legal-wrap { max-width:760px; margin:0 auto; padding:48px 24px 100px; }
.legal-back { background:none; border:none; font-size:14px; font-weight:600; color:var(--forest); cursor:pointer; font-family:'DM Sans',sans-serif; padding:0; margin-bottom:32px; display:inline-flex; align-items:center; gap:4px; transition:opacity .2s; }
.legal-back:hover { opacity:.7; }
.legal-title { font-family:'Cormorant Garamond',serif; font-size:40px; font-weight:400; color:var(--ink); margin-bottom:8px; }
.legal-updated { font-size:13px; color:var(--mid-gray); margin-bottom:40px; }
.legal-section { margin-bottom:32px; }
.legal-section h2 { font-size:16px; font-weight:700; color:var(--ink); margin-bottom:12px; letter-spacing:-.01em; }
.legal-section p { font-size:14px; line-height:1.75; color:#555; margin-bottom:10px; }
.legal-section strong { color:var(--ink); }
@media(max-width:640px) { .legal-wrap{padding:32px 16px 80px;} .legal-title{font-size:30px;} }

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie-banner { position:fixed; bottom:0; left:0; right:0; z-index:9999; padding:0 20px 20px; opacity:0; transform:translateY(100%); transition:opacity .4s, transform .4s cubic-bezier(.4,0,.2,1); pointer-events:none; }
.cookie-banner.is-visible { opacity:1; transform:translateY(0); pointer-events:auto; }
.cookie-inner { max-width:720px; margin:0 auto; background:var(--white); border-radius:16px; border:1px solid rgba(0,0,0,.06); box-shadow:0 -4px 40px rgba(14,20,16,.12); padding:24px 28px; display:flex; align-items:flex-start; gap:24px; backdrop-filter:blur(20px); }
.cookie-text { flex:1; }
.cookie-title { font-family:'Cormorant Garamond',serif; font-size:20px; font-weight:400; color:var(--ink); margin-bottom:8px; }
.cookie-text p { font-size:13px; line-height:1.6; color:var(--mid-gray); margin:0 0 8px; }
.cookie-link { background:none; border:none; padding:0; font-size:12px; font-weight:600; color:var(--forest); cursor:pointer; text-decoration:underline; text-underline-offset:2px; font-family:inherit; }
.cookie-link:hover { color:var(--moss); }
.cookie-actions { display:flex; flex-direction:column; gap:8px; flex-shrink:0; }
.cookie-btn { padding:11px 22px; border-radius:8px; font-size:13px; font-weight:600; font-family:'DM Sans',sans-serif; cursor:pointer; transition:all .2s; white-space:nowrap; }
.cookie-btn-outline { background:var(--white); border:1.5px solid var(--warm-gray); color:var(--ink); }
.cookie-btn-outline:hover { border-color:var(--forest); color:var(--forest); }
.cookie-btn-accept { background:var(--forest); border:1.5px solid var(--forest); color:white; }
.cookie-btn-accept:hover { background:var(--moss); border-color:var(--moss); }
.cookie-details { max-width:720px; margin:-8px auto 0; background:var(--white); border:1px solid rgba(0,0,0,.06); border-top:none; border-radius:0 0 16px 16px; padding:20px 28px; box-shadow:0 8px 24px rgba(14,20,16,.06); }
.cookie-detail-row { display:flex; align-items:center; justify-content:space-between; padding:14px 0; border-bottom:1px solid rgba(0,0,0,.04); }
.cookie-detail-row:last-of-type { border-bottom:none; }
.cookie-detail-info { flex:1; padding-right:20px; }
.cookie-detail-info strong { display:block; font-size:13px; font-weight:600; color:var(--ink); margin-bottom:2px; }
.cookie-detail-info small { font-size:12px; color:var(--mid-gray); line-height:1.5; }
.cookie-toggle-always { font-size:11px; font-weight:600; color:var(--forest); letter-spacing:.04em; white-space:nowrap; }
.cookie-toggle { position:relative; display:inline-block; width:44px; height:24px; flex-shrink:0; cursor:pointer; }
.cookie-toggle input { opacity:0; width:0; height:0; position:absolute; }
.cookie-toggle-track { position:absolute; inset:0; background:var(--warm-gray); border-radius:12px; transition:background .2s; }
.cookie-toggle-track::after { content:''; position:absolute; top:2px; left:2px; width:20px; height:20px; background:white; border-radius:50%; box-shadow:0 1px 3px rgba(0,0,0,.15); transition:transform .2s; }
.cookie-toggle input:checked + .cookie-toggle-track { background:var(--forest); }
.cookie-toggle input:checked + .cookie-toggle-track::after { transform:translateX(20px); }
.cookie-detail-actions { display:flex; justify-content:flex-end; padding-top:14px; }
@media(max-width:640px) { .cookie-banner{padding:0 12px 12px;} .cookie-inner{flex-direction:column;padding:20px;gap:16px;} .cookie-actions{flex-direction:row;width:100%;} .cookie-btn{flex:1;text-align:center;padding:12px 14px;} .cookie-details{padding:16px 20px;} }

/* ============================================================
   CHECKOUT JOURNEY — ck-journey-* classes (Codex HTML)
   ============================================================ */
.ck-journey-step { display:flex; align-items:center; gap:14px; min-width:0; background:none; border:none; padding:0; cursor:default; font-family:inherit; }
.ck-journey-step:not([disabled]) { cursor:pointer; }
.ck-journey-step span { display:flex; flex-direction:column; gap:4px; }
.ck-journey-step span strong { font-size:12px; font-weight:700; color:var(--ink); letter-spacing:.02em; }
.ck-journey-step span small { font-size:10px; letter-spacing:.12em; text-transform:uppercase; color:var(--mid-gray); }
.ck-journey-step.is-active span strong, .ck-journey-step.is-done span strong { color:var(--forest); }
.ck-journey-step.is-active span small, .ck-journey-step.is-done span small { color:var(--forest); }
.ck-journey-dot { width:44px; height:44px; min-width:44px; border-radius:50%; border:2px solid var(--warm-gray); display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; color:var(--mid-gray); background:var(--white); transition:all .35s cubic-bezier(.4,0,.2,1); font-family:'DM Sans',sans-serif; flex-shrink:0; box-shadow:inset 0 1px 0 rgba(255,255,255,.85), 0 12px 26px rgba(14,20,16,.06); }
.ck-journey-step.is-active .ck-journey-dot { border-color:var(--forest); background:var(--forest); color:white; box-shadow:0 0 0 6px rgba(26,58,42,.10), 0 18px 36px rgba(26,58,42,.18); }
.ck-journey-step.is-done .ck-journey-dot { border-color:var(--forest); background:var(--forest); color:white; }
.ck-journey-line { flex:1; height:3px; background:var(--warm-gray); max-width:180px; min-width:24px; margin:0 18px; transition:background .4s; border-radius:2px; }
.ck-journey-line.is-done { background:var(--forest); }
@media(max-width:768px) { .ck-journey-step{gap:10px;} .ck-journey-step span strong{font-size:11px;} .ck-journey-step span small{font-size:9px; letter-spacing:.09em;} .ck-journey-dot{width:38px;height:38px;min-width:38px;font-size:12px;} .ck-journey-line{max-width:120px;margin:0 12px;} }

/* ============================================================
   STACK DETAIL PAGE
   ============================================================ */
.stack-pg-img-box {
  padding: 0 !important;
  overflow: hidden;
  background: var(--charcoal);
}
.stack-pg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}
.stack-pg-result-pill {
  margin-top: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest);
  background: rgba(45,90,61,0.08);
  border: 1px solid rgba(45,90,61,0.18);
  border-radius: 20px;
  padding: 7px 14px;
  text-align: center;
}
.stack-pg-includes-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 10px;
}
.stack-pg-includes-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stack-pg-include-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s;
  border: 1px solid transparent;
}
.stack-pg-include-item:hover {
  background: rgba(45,90,61,0.06);
  border-color: rgba(45,90,61,0.12);
}
.stack-pg-include-item span {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.stack-pg-include-price {
  flex: 0 !important;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px !important;
  font-weight: 400 !important;
  color: var(--mid-gray) !important;
  white-space: nowrap;
}
.stack-pg-include-arrow {
  color: var(--mid-gray);
  flex-shrink: 0;
}
.stack-pg-science-block {
  margin-top: 28px;
  padding: 24px;
  background: rgba(245,242,237,0.7);
  border-radius: 12px;
  border: 1px solid var(--warm-gray);
}
.stack-pg-science-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 10px;
}
.stack-pg-science-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
  font-weight: 300;
  margin: 0;
}
