.hero-slider {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
  background: #eaf5ef;
  position: relative;
}

.hero-slide-track {
  display: flex;
  width: 100%;
  transition: transform 0.6s ease;
  will-change: transform;
}

.hero-slide {
  flex: 0 0 100%;
  min-height: 540px;
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Ken Burns slow zoom on active slide */
.hero-slide.is-active {
  animation: kenburns 8s ease-in-out forwards;
}

@keyframes kenburns {
  0% {
    background-size: 100%;
  }

  100% {
    background-size: 110%;
  }
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(24, 24, 24, 0.58) 0%, rgba(24, 24, 24, 0.28) 45%, rgba(24, 24, 24, 0.08) 100%);
  z-index: 1;
}

.hero-slide-overlay {
  min-height: 540px;
  width: min(1430px, 100%);
  margin: 0 auto;
  padding: 90px 15px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.hero-slide-copy {
  width: min(80%, 920px);
  text-align: left;
}

.hero-slide-overlay h1,
.hero-slide-overlay h2 {
  margin: 0;
  color: #ffffff;
  max-width: 750px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  line-height: 1.06;
  opacity: 0;
  transform: translateY(20px);
  animation: heroTextIn 0.8s 0.3s cubic-bezier(.16, 1, .3, 1) forwards;
}

.hero-slide-overlay p {
  color: #f4f4f4;
  font-size: 17px;
  line-height: 29px;
  max-width: 700px;
  opacity: 0;
  transform: translateY(16px);
  animation: heroTextIn 0.8s 0.5s cubic-bezier(.16, 1, .3, 1) forwards;
}

@keyframes heroTextIn {
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-slider-controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 3;
  padding: 0 12px;
}

.hero-nav {
  pointer-events: auto;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #1c1d1d;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.hero-nav:hover {
  background: #ffffff;
  transform: scale(1.05);
}

.hero-slider-pagination {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-dot.is-active {
  width: 28px;
  border-radius: 20px;
  background: #ffffff;
}

.hero-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.metric {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: var(--radius);
  padding: 16px;
}

.metric strong {
  display: block;
  font-size: 22px;
  line-height: 27px;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--brand-1);
}

.metric span {
  font-size: 14px;
  color: var(--muted);
  line-height: 21px;
}

.trust-strip {
  background: transparent;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.trust-card {
  background: linear-gradient(180deg, #ffffff 0%, #f4faf6 100%);
  border: 1px solid rgba(45, 106, 79, 0.18);
  border-radius: 14px;
  padding: 18px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
  transition: transform 0.35s cubic-bezier(.16, 1, .3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.trust-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px rgba(31, 35, 41, 0.1), 0 0 0 1px rgba(45, 106, 79, 0.25);
  border-color: rgba(45, 106, 79, 0.4);
}

.trust-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-1-light) 100%);
  box-shadow: 0 10px 20px rgba(45, 106, 79, 0.25);
}

.trust-icon svg {
  width: 30px;
  height: 30px;
}

.trust-card h4 {
  margin: 0 0 4px;
  font-size: 20px;
  line-height: 1.25;
}

.product-carousel {
  position: relative;
}

.product-carousel-viewport {
  overflow: hidden;
}

.product-carousel-track {
  display: flex;
  transition: transform 0.55s ease;
  will-change: transform;
}

.product-carousel-item {
  flex: 0 0 calc(100% / 3);
  min-width: calc(100% / 3);
  padding: 0 10px;
}

.product-carousel-item .card {
  height: 100%;
}

.product-carousel-controls {
  display: inline-flex;
  gap: 8px;
}

.product-carousel-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--brand-1);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.product-carousel-btn:hover {
  transform: translateY(-1px);
  background: var(--brand-1);
  color: #ffffff;
}

.product-carousel-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.testimonial-card {
  text-align: center;
}

.testimonial-card p {
  margin-top: 0;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 17px;
  line-height: 30px;
  color: var(--text);
}

.testimonial-card .meta strong {
  color: var(--text);
  font-size: 14px;
}

.ticker-strip {
  overflow: hidden;
  background: var(--brand-1);
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 14px 0 !important;
}

.ticker-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marquee-scroll 25s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-strip p {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0 40px;
  flex-shrink: 0;
}

/* Category card styling */
.section .store-grid .card .card-body .kicker {
  margin-bottom: 8px;
}

/* Subscription plan cards */
.plan-card .price {
  font-size: 24px;
}

/* Community section */
.community-section {
  background: linear-gradient(135deg, #eaf5ef 0%, #FDF8F4 100%);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.community-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(45, 106, 79, 0.06);
  pointer-events: none;
}

/* Stats counter row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 40px 0;
}

.stat-block {
  text-align: center;
  padding: 24px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(45, 106, 79, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--brand-1);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat-number .suffix {
  font-size: 0.7em;
}

.stat-desc {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

/* How it works section */
.how-it-works {
  counter-reset: step;
}

.step-card {
  position: relative;
  padding-left: 64px;
  min-height: 60px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
}

.step-card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-1-light));
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-card h4 {
  margin: 0 0 4px;
  font-size: 18px;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 24px;
}

@media (min-width: 780px) {
  .hero-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .trust-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .stats-row {
    grid-template-columns: repeat(4, 1fr);
  }

  .age-stage-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .ingredient-grid {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
  }
}

/* ============================================================
   Age Stage Navigator
   ============================================================ */
.age-stage-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
}

.age-stage-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  text-decoration: none;
  color: var(--text);
}

.age-stage-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-1-light);
  color: var(--text);
}

.age-stage-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--accent-soft);
  color: var(--brand-1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: background 0.3s, color 0.3s;
}

.age-stage-card:hover .age-stage-icon {
  background: var(--brand-1);
  color: #fff;
}

.age-stage-card h4 {
  margin: 0 0 4px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.age-stage-card .meta {
  margin: 0;
}

.age-stage-label {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 14px;
  border-radius: 50px;
  background: var(--brand-1-soft);
  color: var(--brand-1);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* ============================================================
   Ingredient Transparency Section
   ============================================================ */
.ingredient-grid {
  display: grid;
  gap: 40px;
}

.ingredient-copy h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 28px;
  font-weight: 800;
  margin: 12px 0 8px;
}

.ingredient-checklist {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.ingredient-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid rgba(232, 224, 216, 0.5);
}

.ingredient-checklist li:last-child {
  border-bottom: 0;
}

.ingredient-badge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ingredient-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 24px 16px;
  background: var(--surface-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--brand-1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ingredient-badge:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.ingredient-badge span {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

@media (max-width: 979px) {

  .hero-slide,
  .hero-slide-overlay {
    min-height: 430px;
  }

  .hero-slide-overlay {
    padding: 58px 18px;
  }

  .hero-slide-copy {
    width: 100%;
  }

  .hero-nav {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .product-carousel-item {
    flex: 0 0 100%;
    min-width: 100%;
    padding: 0;
  }
}