:root {
  /* ════════════════════════════════════════════════════
     THEME — SLATE BLUE + SAGE
     Primary brand:  #8FAAB3  (muted teal-blue)
     Deep ink:       #2F454C  (deep slate)
     Soft surfaces:  #D1DAD6  (sage-grey)  /  #EAEFED (mist)
     Accents (sparingly): #C19A6B (camel) / #E8CA44 (gold) / #F6EBB8 (cream)
     ════════════════════════════════════════════════════ */

  /* ── BRAND CORE ──────────────────────────── */
  --primary: #8FAAB3;
  --primary-dark: #2F454C;
  --primary-soft: #D1DAD6;
  --primary-softer: #EAEFED;
  --primary-cream: #EAEFED;
  --primary-peach: #D1DAD6;

  /* ── TEXT INKS ─────────────────────────────── */
  --ink: #2F454C;
  --text: #2F454C;
  --muted: #5d717a;

  /* ── SURFACES & LINES ─────────────────────── */
  --bg: #ffffff;
  --line: #D1DAD6;
  --line-dashed: #c3cfcb;

  /* ── ACCENT COLORS (use sparingly for highlights) ─
     camel  = warm tan accent for select headings/borders
     gold   = vivid yellow highlight for emphasized words
     cream  = pale cream for very subtle wash backgrounds */
  --accent-camel: #C19A6B;
  --accent-gold: #E8CA44;
  --accent-cream: #F6EBB8;
  --accent-red: #C19A6B;
  /* legacy alias → camel */
  --accent-green: #8FAAB3;
  --accent-green-d: #2F454C;

  /* ── NAV LINK (inactive state) ──────────────
     Was #2F454C99 (60% alpha) which read too translucent against the
     beige navbar. Full-opacity dark slate is the deeper "gray-tone"
     reading we wanted. */
  --nav-inactive: #2F454C;

  /* ── NEW-LAUNCH GRADIENT BASE ────────────── */
  --blue-1: #8FAAB3;
  --blue-2: #D1DAD6;
  --blue-3: #EAEFED;

  /* ── SHADOW TINTS ─────────────────────────── */
  --shadow-primary-soft: rgba(143, 170, 179, 0.18);
  --shadow-primary-mid: rgba(47, 69, 76, 0.30);
  --shadow-primary-strong: rgba(47, 69, 76, 0.35);
  --shadow-green: rgba(143, 170, 179, 0.30);
  --shadow-card-rest: rgba(0, 0, 0, 0.04);
  --shadow-img-drop: rgba(0, 0, 0, 0.12);
  --shadow-hero-drop: #00000025;
  --shadow-section4: #2F454C36;

  /* ── GLOWS & OVERLAYS ─────────────────────── */
  --glow-pink: rgba(209, 218, 214, 0.55);
  --highlight-bright: rgba(255, 255, 255, 0.9);
  --highlight-clear: rgba(255, 255, 255, 0);

  /* ── ACCENT BORDER (semi-transparent primary) ─ */
  --border-primary: rgba(143, 170, 179, 0.45);

  /* ── FONT FAMILIES ──────────────────────────
     • Paytone One → Google-loaded display face (headings)
     • Circular Std → user-uploaded (body / UI) — placeholder @font-face below
     • Benguiat    → user-uploaded (decorative / hero) — placeholder @font-face below */
  --font-display: "Paytone One", "Outfit", sans-serif;
  --font-body: "Circular Std", sans-serif;
  --font-decor: "Benguiat", "Outfit", serif;
}

/* ── Local font placeholders ───────────────────────────────
   Drop the actual font files into /Demo_FrontEnd/fonts/ with
   the exact filenames below and these declarations will
   pick them up automatically. */
/* Circular Std Book — single file covering the whole weight range.
   The user only provided Book weight, so we register it across the
   100-900 spectrum and let the browser synthesize bolder requests
   (font-synthesis is enabled on body elements below). */
@font-face {
  font-family: "Circular Std";
  src: url("./fonts/Circular%20Std%20Book.woff2") format("woff2"),
    url("./fonts/Circular%20Std%20Book.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Benguiat Regular — same trick. The SS uses Benguiat italic for the
   highlighted words; we register the regular file under both styles
   so the browser uses it for any italic request and synthesizes the
   slant. */
@font-face {
  font-family: "Benguiat";
  src: url("./fonts/Benguiat%20Regular.woff2") format("woff2"),
    url("./fonts/Benguiat%20Regular.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Benguiat";
  src: url("./fonts/Benguiat%20Regular.woff2") format("woff2"),
    url("./fonts/Benguiat%20Regular.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  background-color: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

a {
  text-decoration: none;
  display: inline-block;
}

img {
  width: 100%;
}

/* Brand logo — */
.logo-img {
  display: block;
  width: 150px;
  height: 36px;
  background: var(--primary-dark);
  -webkit-mask: url('./images/header_logo.webp') no-repeat left center / contain;
  mask: url('./images/header_logo.webp') no-repeat left center / contain;
}

@media (max-width: 990px) {
  .logo-img {
    width: 120px;
    height: 30px;
  }
}

/* ============ NAV LINKS ============*/
.nav-link {
  color: var(--primary-dark);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.nav-link:hover {
  color: var(--primary-dark);
  opacity: 0.7;
}

.nav-link.active {
  color: var(--primary-dark);
  border-bottom-color: var(--primary-dark);
}

/* ============ HEADER ICONS (user + cart) ============*/
.icon-btn {
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--primary-dark);
  font-size: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  transition: opacity 0.25s ease;
}

.icon-btn:hover {
  opacity: 0.7;
}

.cart-btn {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #E1465A;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.7rem;
  line-height: 18px;
  text-align: center;
}

.site-header {
  box-shadow: 0 1px 0 rgba(47, 69, 76, 0.06);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ============ "Shop Now" SIDE TAB — part of section 3 ============
   Absolute-positioned inside .benefits-section.  Uses the
   `left: 50%; margin-left: -50vw` trick to break OUT of section 3's
   left padding AND out of #main's max-width 1440px constraint, so
   the tab touches the VIEWPORT's left edge exactly (no spacing).
   Scrolls naturally with section 3 (not fixed to viewport). */
.shop-now-tab {
  position: absolute;
  /* Pull to viewport's true left edge regardless of section padding
     or #main centring on wide screens.  Math: tab anchored at 50%
     of section's content box, then pulled -50vw left = viewport x 0
     for any viewport width. */
  left: 50%;
  margin-left: -50vw;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 130px;
  background: var(--primary-dark);
  /* Only right side rounded — left side touches viewport edge. */
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(47, 69, 76, 0.22);
  transition: background 0.25s ease, transform 0.25s ease;
}

.shop-now-tab:hover {
  background: var(--accent-camel);
  transform: translateY(-50%) translateX(2px);
}

.shop-now-tab span {
  transform: rotate(-90deg);
  white-space: nowrap;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  color: #fff;
}

@media (max-width: 990px) {
  /* Smaller on phones so it doesn't crowd the screen. */
  .shop-now-tab {
    width: 32px;
    height: 110px;
  }
  .shop-now-tab span {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
  }
}

.heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 6.5vw, 5.85rem);
  color: var(--primary-dark);
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 1.4rem;
}

.heading-accent {
  color: var(--accent-camel);
}

.heading-accent--gold {
  color: var(--accent-gold);
}

/* ── HERO HEADLINE */
#section1 h1.hero-headline {
  font-family: var(--font-body);
  font-size: clamp(2.6rem, 9vw, 7.5rem);
  font-weight: 900;
  -webkit-text-stroke: 0.6px currentColor;
  line-height: 0.95;
  letter-spacing: -0.015em;
  text-transform: none;
  color: var(--primary);
  margin: 0 auto 1.6rem;
  max-width: 1200px;
  position: relative;
  z-index: 2;
}

#section1 h1.hero-headline .hero-serif {
  font-family: var(--font-decor);
  font-style: italic;
  font-weight: 400;
  color: var(--primary);
  -webkit-text-stroke: 0;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  font-weight: 600;
  line-height: 1.55;
  color: var(--primary-dark);
  margin: 0;
  position: relative;
  z-index: 2;
}

#section2 .heading {
  font-size: clamp(2.25rem, 5vw, 4rem);
}

/* hero image  */
#hero-product {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) rotate(-8deg);
  top: 14vh;
  width: 28vw;
  max-width: 480px;
  filter: drop-shadow(8px 35px 6px var(--shadow-hero-drop));
  z-index: 9;
  will-change: transform;
  cursor: pointer;
  display: block;
  /* No `transition: transform`.  GSAP scrubs the transform property
     frame-by-frame during Phase A + B (and the slider's IN/OUT
     timeline).  A CSS transition on `transform` would try to interpolate
     between every scrub frame, which on mobile reads as a vibrating /
     shrinking bottle (the bottle "lags behind" the scroll because each
     new value triggers a 0.4s tween before the next frame overrides it).
     Filter transition kept — it's only touched on hover, not on scroll. */
  transition: filter 0.4s ease;
}

#hero-product img {
  display: block;
  width: 100%;
  transition: transform 0.4s ease;
}

#hero-product:hover img {
  transform: scale(1.04);
}

/* section 4  */
#section4 img {
  border: 10px solid var(--bg);
  box-shadow: 0 0 30px var(--shadow-section4);
  position: absolute;
  transform-origin: center center;
}

#section4 .img1 {
  max-width: 260px;
  top: 12%;
  left: 3%;
  transform: rotate(15deg);
}

#section4 .img2 {
  max-width: 470px;
  top: 22%;
  right: 4%;
  transform: rotate(14deg);
}

#section4 .img3 {
  max-width: 340px;
  bottom: 12%;
  left: 10%;
  transform: rotate(-12deg);
}

/* glow circle uses blur filter */
.glow-circle {
  background: var(--glow-pink);
  filter: blur(60px);
}

.new-product-section {
  background: linear-gradient(135deg, var(--blue-1), var(--blue-2), var(--blue-3));
  transition: background 0.9s ease;
}

/* ============ PRODUCT CARDS (Section 5) ============ */
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 20px var(--shadow-card-rest);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.45s ease,
    border-color 0.3s ease;
  position: relative;
  opacity: 0;
  transform: translateY(24px);
  animation: product-rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* staggered entrance */
.product-card:nth-child(1) {
  animation-delay: 0.05s;
}

.product-card:nth-child(2) {
  animation-delay: 0.12s;
}

.product-card:nth-child(3) {
  animation-delay: 0.19s;
}

.product-card:nth-child(4) {
  animation-delay: 0.26s;
}

.product-card:nth-child(5) {
  animation-delay: 0.33s;
}

.product-card:nth-child(6) {
  animation-delay: 0.4s;
}

.product-card:nth-child(7) {
  animation-delay: 0.47s;
}

.product-card:nth-child(8) {
  animation-delay: 0.54s;
}

@keyframes product-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px var(--shadow-primary-soft);
  border-color: var(--border-primary);
}

/* media well — fixed aspect ratio so every image sits in the same box */
.product-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, var(--primary-softer) 0%, var(--primary-cream) 60%, var(--primary-peach) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-media::before {
  /* soft radial highlight behind the product */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 55%, var(--highlight-bright) 0%, var(--highlight-clear) 55%);
  pointer-events: none;
}

.product-media img {
  width: auto;
  max-width: 82%;
  max-height: 82%;
  object-fit: contain;
  filter: drop-shadow(6px 14px 10px var(--shadow-img-drop));
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  z-index: 1;
}

.product-card:hover .product-media img {
  transform: scale(1.08) rotate(-2deg);
}

.product-card:hover .product-media img {
  animation: product-float 2.4s ease-in-out infinite;
}

@keyframes product-float {

  0%,
  100% {
    transform: scale(1.08) translateY(0) rotate(-2deg);
  }

  50% {
    transform: scale(1.08) translateY(-6px) rotate(-2deg);
  }
}

/* badge (Bestseller / New) */
.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--bg);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 999px;
  box-shadow: 0 4px 12px var(--shadow-primary-mid);
}

.product-badge.badge-new {
  background: linear-gradient(135deg, var(--accent-green), var(--accent-green-d));
  box-shadow: 0 4px 12px var(--shadow-green);
}

/* body */
.product-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  text-align: left;
}

.product-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.2;
}

.product-sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px dashed var(--line-dashed);
}

.product-price {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--primary);
}

.product-cta {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--text);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.product-cta:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  transform: rotate(90deg) scale(1.08);
  box-shadow: 0 8px 18px var(--shadow-primary-strong);
}

/* mobile tuning for product cards */
@media (max-width: 640px) {
  .product-media {
    aspect-ratio: 4 / 3;
  }

  .product-name {
    font-size: 1rem;
  }

  .product-price {
    font-size: 1.2rem;
  }
}

/* product-content span (colored word) */
.product-content h2 span {
  color: var(--accent-red);
}

/* marquee track width auto */
.marquee-track {
  width: max-content;
}

/* cta hover */
.cta:hover {
  background: var(--bg);
  color: var(--accent-red);
  transform: scale(1.05);
}

/* ============ HAMBURGER + MOBILE MENU ============ */
#hamburger {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
}

#hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

#hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#hamburger.open span:nth-child(2) {
  opacity: 0;
}

#hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

#mobileMenu.open {
  opacity: 1;
  pointer-events: auto;
}

/* =============================================
   MOBILE / SMALL TABLET OVERRIDES
   Mirror of the (max-width: 990px) GSAP arm in demo.js.
   ============================================= */
@media (max-width: 990px) {

  #hero-product {
    width: 42vw;
    max-width: 280px;
    top: 26vh;
  }

  /* ── SECTION SPACING ────────*/

  /* Section 3 content  */
  #section3 .content {
    margin-left: 0;
  }

  #section3 video {
    margin: 0 auto;
    display: block;
  }

  /* Section 4:  */
  #section4 {
    min-height: auto;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  #section4 img,
  #section4 .img1,
  #section4 .img2,
  #section4 .img3 {
    position: static;
    transform: none;
    border-width: 4px;
    max-width: 75vw;
    width: 100%;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
  }

  @media (max-width: 767px) {
    #section4 img {

      max-width: 100%;
    }
  }

  /* Section 5 — remove excess top/bottom padding */
  #section5 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  /* New launch section — py-16 + mt-8 = big gap before problems */
  #new-launch {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
    margin-top: 0 !important;
  }

}

#section1 {
  position: relative;
}

/* SIMPLE HERO HEADING  */
.hero-glass-heading {
  position: relative;
  z-index: 1;
  margin-top: 0;
}

.hero-glass-heading .glass,
.hero-glass-heading .glass * {
  color: inherit;
  -webkit-text-stroke: 0;
  text-shadow: none;
}

/* Mobile heading sizing for the new hero. */
@media (max-width: 990px) {
  #section1 h1.hero-headline {
    font-size: clamp(2.2rem, 11vw, 4rem);
  }

  .hero-sub {
    font-size: clamp(0.85rem, 2.6vw, 1rem);
    position: absolute;
    bottom: 8vh;
    left: 1.5rem;
    right: 1.5rem;
    margin: 0 auto;
    text-align: center;
  }
}

@media (max-width: 480px) {
  #section1 h1.hero-headline {
    font-size: clamp(1.9rem, 13vw, 2.8rem);
  }
}


/* ── 2. PRODUCT-CARD BENEFITS OVERLAY ──── */

.product-benefits {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: linear-gradient(160deg,
      rgba(222, 24, 24, 0.35) 0%,
      rgba(168, 16, 16, 0.55) 100%);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    /* top sheen   */
    inset 0 -1px 0 rgba(0, 0, 0, 0.08),
    /* bottom rim  */
    0 18px 35px rgba(168, 16, 16, 0.18);
  /* lift shadow */
  color: #fff;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  opacity: 0;
  transform: translateY(20%);
  transition:
    opacity 0.4s ease,
    transform 0.55s cubic-bezier(.2, .8, .2, 1);
  pointer-events: none;
  overflow: hidden;
}

.product-benefits::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(8px);
}

.product-card:hover .product-benefits {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Benefits heading inside the glass overlay */
.benefits-heading {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 18px;
  position: relative;
  padding-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.benefits-heading::after {
  /* subtle frosted underline accent */
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.2));
  border-radius: 2px;
}

/* The 3 benefit points */
.product-benefits ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.product-benefits li {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  font-weight: 500;
}

.product-benefits li::before {
  /* glassy check-mark — translucent disc with bright edge */
  content: '✓';
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  font-weight: 700;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}


/* =================================================================
   SECTION 2 — BANNER IMAGE VARIANT
   Replaces the old 3-feature card grid. The banner image fills the
   section width with a subtle theme wash behind it.
   ================================================================= */
.section2-banner {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-softer), var(--primary-soft));
}

.section2-banner img {
  display: block;
  width: 100%;
  max-height: 85vh;
  object-fit: cover;
  object-position: center bottom;
}

@media (max-width: 640px) {
  .section2-banner img {
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
  }
}


/* =================================================================
   BENEFITS SECTION 
   ================================================================= */
.benefits-section {
  position: relative;
  background: var(--bg);
  color: var(--ink);
  /* min-height: 100vh ensures the section fills the viewport while
     pinned, so the slide swap never reveals empty white below it. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6vw 5vw 4vw;
}

/* ── "Shop Now" vertical side-tab.  Now lives inside .benefits-media so
   it anchors to the BOTTLE's vertical centre on every breakpoint (works
   for both the desktop absolute-centred media and the mobile flex-
   stacked media).  Horizontally it's pulled out of its containing
   block with `left: calc(-50vw + 50%)`:
       • 50% resolves to half of .benefits-media's width.  Media's
         horizontal centre always lands at 50vw because #main is
         centred via mx-auto, so subtracting 50vw and adding 50%-of-
         media puts the tab's left edge exactly at viewport x = 0.
       • Works identically on desktop (media is 480px absolute-centred)
         and mobile (media is auto-width stacked, slot-sized). */
.benefits-shop-now {
  position: absolute;
  left: calc(-50vw + 50%);
  top: 50%;
  background: var(--primary-dark, #2F454C);
  color: #fff;
  padding: 1.4rem 0.55rem;
  /* Border-radius syntax follows the PRE-rotation box, so we round the
     LEFT corners here so they appear on the visual RIGHT after the
     180deg rotate (i.e. the rounded edge sticks out into the section). */
  border-radius: 6px 0 0 6px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  z-index: 6;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: translateY(-50%) rotate(180deg);
  transition: background 0.25s ease, transform 0.25s ease;
  cursor: pointer;
  user-select: none;
}

.benefits-shop-now:hover {
  background: var(--primary-darker, #243a40);
  transform: translateY(-50%) rotate(180deg) translateX(-2px);
}

.benefits-title {
  font-family: 'DM Sans', var(--font-body);
  font-weight: 900;
  font-size: clamp(2.1rem, 3.8vw, 3.3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--primary-dark);
  text-align: center;
  max-width: 1100px;
  margin: 0 auto 1.25vw;
  -webkit-text-stroke: 0.8px currentColor;
}

.benefits-grid {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  min-height: 60vh;
}

.benefits-text {
  position: absolute;
  top: 50%;
  right: calc(50% + 310px);
  transform: translateY(-50%);
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  z-index: 1;
}

.benefits-name {
  margin: 0;
  font-size: 0;
}

.benefits-name-mark {
  display: inline-block;
  font-family: var(--font-decor, 'Benguiat', serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  color: var(--primary-dark);
  padding: 0.1em 0.45em;
  background: rgba(244, 226, 178, 0.55);
  border-radius: 0.45em;
  box-shadow: 0 0 24px 8px rgba(244, 226, 178, 0.45);
  letter-spacing: 0.01em;
}

.benefits-headline {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(1.55rem, 2.1vw, 1.95rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--primary-dark);
  margin: 0;
  -webkit-text-stroke: 0.5px currentColor;
}

.benefits-body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.1vw, 1.1rem);
  font-weight: 500;
  line-height: 1.55;
  color: var(--primary-dark);
  opacity: 0.85;
  margin: 0;
  max-width: 280px;
}

.benefits-media {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.benefit-slot {
  position: relative;
  width: 480px;
  aspect-ratio: 4 / 5;
}

#hero-product.in-slot {
  position: absolute !important;
  inset: 0 !important;
  top: auto !important;
  left: 20% !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(13deg) !important;
  /* Kill the wrapper's CSS `transition: transform 0.4s ease` while in
     slot.  Without this, the moment pinHero clears the inline transform
     (Phase B's translate) and lets the rule's `rotate(13deg) !important`
     take over, the browser interpolates between them over 0.4s — which
     READS as the bottle "jumping" into the landing area instead of
     locking instantly to Phase B's final pixel-perfect position.  With
     transition disabled the visual handoff between Phase B's last
     frame and the in-slot CSS is invisible. */
  transition: none !important;
  filter: drop-shadow(0 24px 36px rgba(47, 69, 76, 0.20));
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

#hero-product.in-slot img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  transform: none;
  transition: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.benefits-grid .benefit-pills {
  list-style: none;
  padding: 0;
  margin: 0;
  position: absolute;
  /* Pills' BACKGROUND extends behind the bottle (rounded left edge
     hidden by bottle's higher z-index) but the TEXT inside each pill
     is pushed past the bottle's right edge via a chunky left padding
     on `.benefit-pills li` below.  Math:
       • bottle wrapper extends to grid_50% + 336 (slot.right + 96px overhang)
       • pills.left at grid_50% + 240 ≈ slot's right edge
       • pill background overlaps bottle by 96px (the overhang)
       • pill's left padding (4.5rem ≈ 72px) plus the 96px overlap
         pushes text to ~grid_50% + 312 — past the visible bottle edge
       This gives the "pills emerge from behind the bottle" look WITHOUT
       hiding any of the pill's text behind the bottle. */
  left: calc(50% + 240px);
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 1;
}

.benefit-pills li {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--primary-dark);
  background: var(--primary-softer);
  border-radius: 999px;
  /* Heavy left padding (≈104px) is what produces the "background
     emerges from behind the bottle" look — pill.left sits at the
     slot's right edge and the next 104px of pill is background-only
     (covered by the bottle's 96px overhang).  Without this padding
     the text itself would be covered by the bottle. */
  padding: 0.75rem 0.75rem 0.75rem 6.5rem;
  display: flex;
  align-items: center;
  /* No `justify-content: space-between` — `.pill-text` below uses
     `flex: 1` to fill the space between the padding and the tick,
     and `text-align: center` centres the label inside that space.
     Result: text is horizontally centred in the visible portion of
     each pill, easy to read, while the tick stays on the far right. */
  gap: 1rem;
}

/* Text container fills the remaining horizontal space and centres
   the label inside it.  `display: block` makes the otherwise-inline
   <span> a proper block-level box so `text-align: center` applies
   reliably across browsers (without it, some engines treat the span
   as inline for text-alignment purposes even when it's a flex item).
   `min-width: 0` lets the flex item shrink below its content's
   intrinsic width if needed, preventing overflow with long labels. */
.benefit-pills .pill-text {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  text-align: center;
}

.benefit-pills .pill-tick {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.benefit-pills .pill-tick img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Breakpoint raised from 990 → 1199 so iPad portrait (768) + landscape
   (1024) and small laptops (1024–1199) get this stacked layout — the
   desktop 3-column layout was too cramped on those widths and made the
   pills too narrow to fit their full text.  Desktop 3-column reserved
   for ≥1200 viewports.  Matches the matchMedia breakpoint in home.js. */
@media (max-width: 1199px) {
  .benefits-section {
    /* `100svh` (small viewport height) so the pinned section doesn't
       flex on iOS/Android URL-bar movements (vh changes mid-scroll).
       Browsers without svh fall back to the vh line above. */
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    /* `flex-start` (not `center`) so content sits anchored at the TOP
       of the section.  Each slide swap changes text wrapping (pill
       length, headline, body) → element heights change → with
       `center`, flexbox re-centered the whole stack on every change
       and the section visibly jittered up/down on each scroll tick.
       With `flex-start`, only the empty space below the stack changes
       — the visible content stays put.  Desktop keeps `center`. */
    justify-content: flex-start;
    padding: 6vw 5vw 6vw;
    margin-bottom: 8vw;
  }

  /* Media becomes a positioning context on mobile so the absolute-
     positioned Shop Now tab anchors to the bottle (this element)
     instead of escaping up to .benefits-section. */
  .benefits-grid .benefits-media {
    position: relative;
  }

  /* Lock each pill row to a fixed height so swapping slide text doesn't
     re-wrap to 2 lines on some slides (and stay 1 line on others) —
     differing wrap counts changed pill column height, which was the
     other source of the section jittering between slides. */
  .benefit-pills li {
    min-height: 44px;
    align-items: center;
  }

  .benefits-title {
    font-size: clamp(1.7rem, 5.5vw, 2.2rem);
    margin-bottom: 4vw;
  }

  .benefits-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
    min-height: 0;
  }

  .benefits-text,
  .benefits-grid .benefit-pills,
  .benefits-media {
    position: static;
    transform: none;
    left: auto;
    right: auto;
    top: auto;
    width: auto;
    max-width: 100%;
  }

  .benefits-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    order: 2;
    max-width: 420px;
  }

  .benefits-body {
    max-width: 420px;
  }

  .benefits-media {
    order: 1;
  }

  .benefit-slot {
    /* Slot trimmed 320→260 so bottle + text + 4 pills fit inside the
       100vh pinned box on typical phones (≈640–740pt tall). */
    width: 260px;
    max-width: 75vw;
    margin: 0 auto;
  }

  /* Mobile: bottle centered in the slot (desktop offsets it 20% right
     so it spills past the right edge, anchoring against the pills
     column — that layout doesn't apply on the stacked mobile view,
     where centering reads correctly).  Phase B's mobile arm also
     zeroes its `x` for the same reason. */
  #hero-product.in-slot {
    left: 0 !important;
  }

  /* Smaller side-tab on phones — vertical height stays comfortable
     without dominating the small viewport. */
  .benefits-shop-now {
    padding: 1rem 0.45rem;
    font-size: 0.78rem;
  }

  .benefits-grid .benefit-pills {
    order: 3;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    gap: 0.4rem;
  }

  .benefit-pills li {
    font-size: 0.88rem;
    padding: 0.55rem 0.55rem 0.55rem 1rem;
  }

  .benefit-pills .pill-tick {
    width: 28px;
    height: 28px;
    font-size: 0.72rem;
  }
}

@media (max-width: 480px) {
  .benefits-section {
    padding: 4vw 4vw 4vw;
  }

  .benefits-title {
    font-size: clamp(1.4rem, 6.5vw, 1.8rem);
    margin-bottom: 2vw;
  }

  .benefit-slot {
    width: 200px;
    max-width: 60vw;
  }

  .benefits-grid {
    gap: 1rem;
  }

  .benefit-pills li {
    font-size: 0.82rem;
    padding: 0.45rem 0.45rem 0.45rem 0.9rem;
  }
}


/* =================================================================
   SECTION 4 — SHOP ("Our Products")
   ================================================================= */
.shop-section {
  padding: 8vw 3vw 8vw;
  background: var(--bg);
}

.shop-header {
  max-width: var(--max-shell, 1440px);
  margin: 0 auto 2.5rem;
}

.shop-title {
   font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(2.1rem, 3.8vw, 3.3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--primary-dark);
  margin: 0 0 0.9rem;
  -webkit-text-stroke: 0.8px currentColor;
}

.shop-title-mark {
  display: inline-block;
  font-family: var(--font-decor, 'Benguiat', serif);
  font-style: italic;
  font-weight: 400;
  color: var(--primary-dark);
  padding: 0.05em 0.4em;
  background: rgba(244, 226, 178, 0.55);
  border-radius: 0.4em;
  box-shadow: 0 0 24px 8px rgba(244, 226, 178, 0.45);
  letter-spacing: 0.01em;
  -webkit-text-stroke: 0;
}

.shop-subtitle {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  line-height: 1.55;
  color: #5a6b6f;
  max-width: 980px;
  margin: 0;
}

.shop-grid {
  width: 100%;
  max-width: var(--max-shell, 1440px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: start;
}

/* "Shop all" */
.shop-card--all {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.75rem;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  aspect-ratio: 1 / 1;
  background: #e7ebe6;
}

.shop-all-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.4rem, 2vw, 2.2rem);
  color: var(--primary-dark);
}

/* ── Product tile */
.prod-tile {
  position: relative;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.prod-tile-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  overflow: hidden;
  background: #e7ebe6;
}

.prod-tile--orange .prod-tile-media {
  background: radial-gradient(circle at 50% 30%, #f6cda0 0%, #e9d6c0 55%, #d8d4c8 100%);
}

.prod-tile--blue .prod-tile-media {
  background: radial-gradient(circle at 50% 30%, #aecde4 0%, #c8d6dd 55%, #d2d3cf 100%);
}

.prod-tile--red .prod-tile-media {
  background: radial-gradient(circle at 50% 30%, #f0a9a4 0%, #e1cac4 55%, #d3d1cc 100%);
}

.prod-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 8% 12%;
  box-sizing: border-box;
}

.prod-tile-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  background: #2DA34A;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  padding: 0.35rem 0.8rem;
  border-radius: 0.45rem;
}

.prod-tile-wish {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 0.6rem;
  background: #fff;
  color: #e1465a;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.prod-tile-info {
  padding: 0 0.15rem;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.prod-tile-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.prod-tile-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--primary-dark);
}

.prod-tile-price {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--primary-dark);
}

.prod-tile-cart {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 0.7rem;
  background: var(--accent-camel, #C19A6B);
  color: #fff;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* Tablet (large) — 3 columns so the layout still feels generous. */
@media (max-width: 1100px) {
  .shop-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .shop-card--all {
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 820px) {
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 720px) {
  .shop-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    max-width: 420px;
    padding: 0 1rem;
  }

  .shop-card--all {
    aspect-ratio: 16 / 5;
    padding: 1.25rem;
  }

  .prod-tile-wish {
    width: 38px;
    height: 38px;
  }

  .prod-tile-cart {
    width: 44px;
    height: 44px;
  }
}

/* =================================================================
   SECTION 5 — OUR INGREDIENTS */
.ingredients-section {
  /* padding: 6vw 0 8vw; */
  background: var(--bg);
  overflow: hidden;
}

.ingredients-header {
  max-width: 1320px;
  margin: 0 auto 2.5rem;
  /* padding: 0 5vw; */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.ingredients-title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.9vw, 2.6rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--primary-dark);
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.ingredients-title-mark {
  display: inline-block;
  font-family: var(--font-decor, 'Benguiat', serif);
  font-style: italic;
  font-weight: 400;
  color: var(--primary-dark);
  padding: 0.05em 0.4em;
  background: rgba(244, 226, 178, 0.55);
  border-radius: 0.4em;
  box-shadow: 0 0 24px 8px rgba(244, 226, 178, 0.45);
  letter-spacing: 0.01em;
  white-space: nowrap;
  -webkit-text-stroke: 0;
}

.ingredients-cta {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--primary-dark);
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  flex: 0 0 auto;
}

.ingredients-cta:hover {
  background: var(--primary-dark);
  color: #fff;
  border-color: var(--primary-dark);
  transform: translateY(-2px);
}

.ingredients-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex: 0 0 auto;
}

.ingredients-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--primary-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ingredients-arrow:hover {
  background: var(--primary-dark);
  color: #fff;
  border-color: var(--primary-dark);
  transform: translateY(-2px);
}

.ingredients-arrow:active {
  transform: scale(0.96);
}

@media (max-width: 640px) {

  .ingredients-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 0 5vw;
  }

  /* On phones the user drags the carousel with a finger (touch handler
     in home.js), so the prev/next arrows are redundant clutter — hide
     them here. */
  .ingredients-controls {
    display: none;
  }

  .ingredients-cta {
    font-size: 0.85rem;
    padding: 0.65rem 1.2rem;
  }
}

.ingredients-marquee {
  width: 100%;
  overflow: hidden;
  padding: 0;
  touch-action: pan-y;
}

.ingredients-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  will-change: transform;
}

.ingredient-card {
  position: relative;
  flex: 0 0 auto;
  width: 320px;
  height: 440px;
  min-width: 320px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--primary-soft);
  isolation: isolate;
}

.ingredient-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.ingredient-card:hover img {
  transform: scale(1.06);
}

.ingredient-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.4rem 1.5rem 1.6rem;
  background: linear-gradient(180deg, rgba(47, 69, 76, 0) 0%, rgba(47, 69, 76, 0.92) 35%);
  color: #fff;
  transform: translateY(100%);
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.ingredient-card:hover .ingredient-overlay {
  transform: translateY(0);
}

.ingredient-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.15;
  margin: 0 0 0.4rem;
  overflow: hidden;
}

.ingredient-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  opacity: 0.92;
  overflow: hidden;
}

@media (max-width: 560px) {
  .ingredient-card {
    width: 260px;
    height: 380px;
  }
}


/* =================================================================
   SECTION WHY — "Why Svitch?" + "How it fuels you?"
   ================================================================= */
.why-section {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: var(--bg);
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  overflow: hidden;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}

.why-left {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 3vw 3vw 3vw 5vw;
}

.why-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.why-tint {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(143, 170, 179, 0.55) 0%, rgba(47, 69, 76, 0.55) 100%);
  z-index: 1;
}

.why-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 400px;
  padding: 2.4rem 2.4rem;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(47, 69, 76, 0.18);
  color: var(--primary-dark);
}

.why-title {
  font-family: 'DM Sans', var(--font-body);
  font-weight: 900;
  font-size: clamp(1.85rem, 2.8vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1.2rem;
  color: var(--primary-dark);
  text-align: center;
  -webkit-text-stroke: 0.7px currentColor;
}

.why-accent {
  color: var(--primary-dark);
}

.why-rule {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--primary-dark);
  margin: 0 0 2.2rem;
  border-radius: 1px;
  opacity: 0.85;
}

.why-body {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
  font-weight: 500;
  line-height: 1.7;
  color: var(--primary-dark);
  margin: 0 0 2.2rem;
  text-align: center;
}

.why-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  padding: 1rem 1.8rem;
  background: var(--accent-camel);
  color: #fff;
  border-radius: 14px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition:
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.why-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(47, 69, 76, 0.22);
}

.why-right {
  background: var(--primary-softer);
  padding: 4vw 3vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 560px;
}

.why-right-title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--primary-dark);
  margin: 0 0 1.8rem;
}

.why-right-accent {
  color: var(--accent-camel);
}

.fuel-circle-wrapper {
  position: relative;
  width: clamp(260px, 26vw, 380px);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fuel-circle-glow {
  position: absolute;
  inset: 6%;
  border-radius: 18px;
  background: rgba(193, 154, 107, 0.24);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.fuel-image-box {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  z-index: 2;
}

.fuel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fuel-text {
  margin: 2rem auto 1.2rem;
  font-family: var(--font-decor);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.5;
  color: var(--primary-dark);
  text-align: center;
  max-width: 380px;
  min-height: 5.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.fuel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fuel-dots li {
  position: relative;
  width: 22px;
  height: 22px;
  background: transparent;
  cursor: pointer;
  list-style: none;
}

.fuel-dots li::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: rgba(47, 69, 76, 0.28);
  transition: background 0.25s ease, transform 0.25s ease;
}

.fuel-dots li:hover::after {
  background: rgba(47, 69, 76, 0.55);
}

.fuel-dots li.is-active::after {
  background: var(--primary-dark);
  transform: scale(1.2);
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes spinReverse {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(-360deg);
  }
}

@media (max-width: 990px) {
  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-left,
  .why-right {
    min-height: 620px;
  }

  .why-left {
    align-items: flex-end;
    justify-content: center;
    padding: 6vw 5vw 2.5rem;
  }

  .why-content {
    width: 100%;
    max-width: 460px;
    padding: 2.4rem 1.6rem;
  }
}

.product-card:hover .product-media img {
  animation: none;
}


/* =================================================================
   SECTION STORIES 
   ================================================================= */
.stories-section {
  width: 100%;
  background: var(--bg);
  padding: 7vw 0 6vw;
  overflow: hidden;
}

.stories-header {
  max-width: 1320px;
  margin: 0 auto 3rem;
  /* padding: 0 5vw; */
}

.stories-title {
  /* Match section 3's .benefits-title sharp display style — DM Sans
     real 900 + text-stroke — for consistency with the other section
     headings. Alignment stays LEFT (matches the reference SS). */
   font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(2.1rem, 3.8vw, 3.3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--primary-dark);
  margin: 0;
  -webkit-text-stroke: 0.8px currentColor;
}

/* Desktop default: hide the mobile-only break, show the desktop break.
   Mobile rule inside @media (max-width: 640px) below flips this so the
   title cleanly wraps as 2 lines on phones. */
.stories-title .br-mobile {
  display: none;
}

.stories-title-mark {
  display: inline-block;
  font-family: var(--font-decor, 'Benguiat', serif);
  font-style: italic;
  font-weight: 400;
  color: var(--primary-dark);
  padding: 0.05em 0.4em;
  background: rgba(244, 226, 178, 0.55);
  border-radius: 0.4em;
  box-shadow: 0 0 24px 8px rgba(244, 226, 178, 0.45);
  letter-spacing: 0.01em;
  white-space: nowrap;
  -webkit-text-stroke: 0;
}

.stories-marquee {
  width: 100%;
  overflow: hidden;
}

.stories-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  will-change: transform;
  align-items: stretch;
  padding: 1rem 0;
}

.story-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 0 0 auto;
  height: 380px;
}

/* ── BASE tile ─────────────────────────────────────────────────── */
.story-tile {
  flex: 0 0 auto;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
}

.story-tile>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-tile--sage {
  background: var(--primary);
}

.story-tile--dark {
  background: var(--primary-dark);
}

.story-tile--soft {
  background: #d8dcdc;
}

.story-tile--gold {
  background: var(--accent-gold);
}

.story-tile--red {
  background: #b81f1f;
}

.story-tile--lg {
  width: 380px;
  height: 380px;
}

/* large square */
.story-tile--rect {
  width: 320px;
  height: 380px;
}

/* tall rect */
.story-tile--sq {
  width: 220px;
  height: 220px;
}

/* medium square in col */
.story-tile--sq-sm {
  width: 220px;
  height: 144px;
}

.story-tile--quote {
  width: 280px;
  height: 380px;
  /* match large-square / track height */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.6rem;
  text-align: center;
}

.story-tile--quote p {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1vw, 1.05rem);
  line-height: 1.45;
  font-weight: 500;
  color: var(--primary-dark);
  margin: 0;
  max-width: 26ch;
}

.story-tile--quote-light p {
  color: #fff;
}

@media (max-width: 560px) {

  .story-col {
    height: 280px;
  }

  .story-tile--lg {
    width: 280px;
    height: 280px;
  }

  .story-tile--rect {
    width: 220px;
    height: 280px;
  }

  .story-tile--quote {
    width: 220px;
    height: 280px;
  }

  .story-tile--sq,
  .story-tile--sq-sm {
    width: 160px;
  }

  .story-tile--sq {
    height: 160px;
  }

  .story-tile--sq-sm {
    height: 104px;
  }
}

.stories-marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.stories-track {
  display: flex;
  width: max-content;
  gap: 20px;

  animation: storyScroll 28s linear infinite;

  will-change: transform;
  transform: translate3d(0,0,0);
}

#stories,
.stories-section {
  content-visibility: auto;
  contain-intrinsic-size: 1000px;
}

@keyframes storyScroll {

  from {
    transform: translate3d(0,0,0);
  }

  to {
    transform: translate3d(-50%,0,0);
  }

}

.stories-marquee:hover .stories-track {
  animation-play-state: paused;
}

@media (max-width: 991px) {

  .stories-track {
    animation-duration: 45s;
  }

   .story-tile:hover {
    transform: none;
  }

  .story-tile:hover img {
    transform: none;
  }
}

.story-tile,
.story-tile img,
.stories-track {
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
}


/* =================================================================
   FOOTER — sage-mist tile, 3-col layout (brand • nav • social)
   ================================================================= */
.site-footer {
  width: 100%;
  background: var(--primary-softer);
  padding: 4rem 0 2.5rem;
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 5vw;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  column-gap: 3rem;
  row-gap: 1.6rem;
  align-items: start;
}

.footer-brand {
  max-width: 380px;
  grid-row: 1 / span 2;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 1.25rem;
}

.footer-logo .logo-img {
  width: 320px;
  height: 80px;
  background: #0a0a0a !important;
  /* Footer uses footer_logo.webp; header keeps header_logo.webp via the
     base .logo-img rule. Overriding only the mask source here. */
  -webkit-mask: url('./images/footer_logo.webp') no-repeat left center / contain;
  mask: url('./images/footer_logo.webp') no-repeat left center / contain;
}

@media (max-width: 990px) {
  .footer-logo .logo-img {
    width: 240px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .footer-logo .logo-img {
    width: 200px;
    height: 50px;
  }
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.6;
  color: #0a0a0a;
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 2.5rem;
  row-gap: 0.8rem;
  align-self: end;
}

.footer-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: #381D0A;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-link:hover {
  color: var(--accent-camel);
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  align-self: start;
  justify-self: center;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #381D0A;
  font-size: 1rem;
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer-social-link:hover {
  color: var(--accent-camel);
  transform: translateY(-2px);
}

@media (max-width: 990px) {
  .footer-inner {
    grid-template-columns: 1fr;
    row-gap: 2rem;
    text-align: center;
    justify-items: center;
  }

  .footer-brand {
    grid-row: auto;
  }

  .footer-nav {
    flex-wrap: wrap;
    column-gap: 1.5rem;
    row-gap: 0.6rem;
    align-self: auto;
  }

  .footer-social {
    align-self: auto;
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .product-benefits {
    padding: 18px 16px;
  }

  .benefits-heading {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  .product-benefits li {
    font-size: 0.82rem;
    gap: 8px;
  }
}


/* ── 3. FOOTER SOCIAL ICONS ─── */
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.05rem;
  text-decoration: none;
  transition:
    background 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 4px 10px var(--shadow-primary-soft);
}

.social-link:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px var(--shadow-primary-mid);
}

/* keep icons crisp at the chosen size — FA renders via web font */
.social-link i {
  font-size: 1rem;
  line-height: 1;
}


/* =================================================================
   GLOBAL POLISH — smoothness + mobile responsive overrides
   ================================================================= */

/* ── Prevent any layout from pushing horizontal scroll on phones ── */
html,
body {
  overflow-x: hidden;
}

.stories-track,
.ingredients-track {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: weight style;
  -webkit-font-synthesis: weight style;
}

.shop-title,
.stories-title,
.ingredients-title,
.why-right-title,
.why-title,
.benefits-title,
.benefits-eyebrow,
.prod-tile-price,
.shop-all-label {
  font-weight: 900;
  -webkit-text-stroke: 0.5px currentColor;
}

.shop-title,
.stories-title,
.ingredients-title,
.why-right-title,
.why-title,
.benefits-title {
  font-size: clamp(1.85rem, 3.3vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

@media (max-width: 640px) {

  .shop-title,
  .stories-title,
  .ingredients-title,
  .why-right-title,
  .why-title,
  .benefits-title,
  .benefits-eyebrow,
  .prod-tile-price,
  .shop-all-label {
    -webkit-text-stroke: 0.3px currentColor;
  }

  #section1 h1.hero-headline {
    -webkit-text-stroke: 0.35px currentColor;
  }
}

.prod-tile-name,
.benefit-pills li,
.ingredient-name,
.benefits-sub,
.fuel-text,
.footer-link,
.hero-sub {
  font-weight: 700;
}

.why-body,
.ingredient-desc,
.story-tile--quote p,
.shop-sub,
.footer-tagline,
.benefit-pills li,
.ingredients-cta {
  font-weight: 600;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}


@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .ingredients-track,
  .stories-track,
  .benefit-card,
  #hero-product {
    transform: none !important;
  }
}

@media (max-width: 990px) {

  /* Header gets tighter so it doesn't dominate the viewport */
  header {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }

  #section1 {
    padding-left: 4vw;
    padding-right: 4vw;
  }

  .ingredient-card {
    width: 290px;
    height: 400px;
  }

  .story-col {
    height: 320px;
  }

  .story-tile--lg {
    width: 320px;
    height: 320px;
  }

  .story-tile--rect {
    width: 260px;
    height: 320px;
  }

  .story-tile--quote {
    width: 250px;
    height: 320px;
  }

  .story-tile--sq,
  .story-tile--sq-sm {
    width: 200px;
  }

  .story-tile--sq {
    height: 184px;
  }

  .story-tile--sq-sm {
    height: 120px;
  }

  .story-tile--quote p {
    font-size: 0.95rem;
  }

  /* Stories title takes a touch less space */
  .stories-section {
    padding: 8vw 0 7vw;
  }

  .stories-header {
    padding: 0 5vw;
  }

  /* On phones, break the stories title BEFORE "and" so it reads as a
     clean 2-liner ("Stories from our scientists," / "and members like
     you") instead of the desktop break (after "and") which on narrow
     screens leaves "and" stranded on its own line. */
  .stories-title .br-mobile {
    display: initial;
  }
  .stories-title .br-desktop {
    display: none;
  }
}


@media (max-width: 640px) {

  .benefits-stage {
    height: 56vh;
    max-height: 460px;
  }

  .benefit-card {
    padding: 1rem 1rem 1.25rem;
  }

  .benefit-pills li {
    font-size: 0.88rem;
    padding: 0.55rem 0.6rem 0.55rem 1rem;
  }

  .benefit-pills .pill-tick {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
  }

  .why-content {
    padding: 2.5rem 1.25rem;
  }

  .why-title {
    font-size: clamp(1.55rem, 6.5vw, 2rem);
  }

  .why-body {
    font-size: 0.9rem;
  }

  .why-right {
    padding: 6vw 5vw 7vw;
    min-height: auto;
  }

  .why-right-title {
    font-size: clamp(1.55rem, 6.5vw, 2rem);
    margin-bottom: 1.25rem;
  }

  .shop-section {
    padding: 9vw 5vw 10vw;
  }

  .shop-title {
    font-size: clamp(1.55rem, 6.5vw, 2rem);
  }

  .ingredient-card {
    width: 240px;
    height: 340px;
  }

  .ingredient-name {
    font-size: 1.15rem;
  }

  .ingredient-desc {
    font-size: 0.85rem;
  }

  .stories-section {
    padding: 9vw 0 8vw;
  }

  .stories-title {
    font-size: clamp(1.55rem, 6.5vw, 2rem);
  }

  .story-col {
    height: 240px;
  }

  .story-tile--lg {
    width: 240px;
    height: 240px;
  }

  .story-tile--rect {
    width: 200px;
    height: 240px;
  }

  .story-tile--quote {
    width: 200px;
    height: 240px;
    min-height: 0;
    padding: 1.1rem 1.2rem;
  }

  .story-tile--sq,
  .story-tile--sq-sm {
    width: 150px;
  }

  .story-tile--sq {
    height: 138px;
  }

  .story-tile--sq-sm {
    height: 86px;
  }

  .story-tile--quote p {
    font-size: 0.85rem;
    line-height: 1.4;
    max-width: 22ch;
  }

  .site-footer {
    padding: 3rem 0 2rem;
  }

  .footer-inner {
    gap: 1.5rem;
  }

  .footer-nav {
    grid-template-columns: 1fr;
    row-gap: 0.7rem;
  }

  .footer-link {
    font-size: 0.92rem;
  }
}

@media (max-width: 420px) {
  .benefits-stage {
    height: 52vh;
    max-height: 420px;
  }

  .why-cta {
    padding: 0.65rem 1.4rem;
    font-size: 0.85rem;
  }

  .ingredient-card {
    width: 220px;
    height: 320px;
  }

  .story-col {
    height: 210px;
  }

  .story-tile--lg {
    width: 210px;
    height: 210px;
  }

  .story-tile--rect {
    width: 180px;
    height: 210px;
  }

  .story-tile--quote {
    width: 180px;
    height: 210px;
    min-height: 0;
  }

  /* sq + sq-sm stacked col fits inside the 210px col height
     (118 + 16 gap + 76 = 210).  Without these the tiles inherited
     the 640px values (138 + 16 + 86 = 240) and overflowed the col
     by 30px on small phones — cuts/visible gap bug. */
  .story-tile--sq,
  .story-tile--sq-sm {
    width: 130px;
  }
  .story-tile--sq {
    height: 118px;
  }
  .story-tile--sq-sm {
    height: 72px;
  }
}


/* =================================================================
   HERO BACKGROUND IMAGE
   ================================================================= */
.hero-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #EEF3F0 url('./images/Banner_1.webp');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 990px) {
  .hero-bg-layer {
    background-size: 100% auto;
    background-position: center top;
    opacity: 0.6;
  }
}

@media (max-width: 767px) {
  .hero-bg-layer {
    background-size: 170% auto;
    background-position: center top;
    opacity: 0.6;
  }
}

@media (max-width: 640px) {
  .hero-bg-layer {
    background-size: 160% auto;
    background-position: center center;
    opacity: 0.6;
  }
}

@media (max-width: 990px) {

  .benefits-section .benefits-inner {
    height: auto;
    min-height: 88vh;
  }

  .benefits-section {
    padding-top: 8vh;
  }
}

@media (max-width: 640px) {

  .fuel-text {
    margin-top: 1.5rem;
    padding: 0.7rem 1.1rem 0.85rem;
    font-size: 0.92rem;
  }

  .prod-tile-cart {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .story-tile--quote p {
    font-size: 0.82rem;
    line-height: 1.38;
  }
}

@media (max-width: 420px) {

  .prod-tile-info {
    padding: 0 0.15rem;
  }

  .prod-tile-name {
    font-size: 0.95rem;
  }

  .prod-tile-price {
    font-size: 1.1rem;
  }
}