/* =========================================================
   WellNest — Main Stylesheet
   Design: Modern Pinterest-friendly, Clean & Professional
   ========================================================= */

/* ─── CSS Custom Properties ─── */
:root {
  /* Colors */
  --clr-cream:       #faf8f5;
  --clr-cream-dark:  #f3efe8;
  --clr-white:       #ffffff;
  --clr-ink:         #1a1714;
  --clr-ink-light:   #4a4540;
  --clr-ink-muted:   #8c8380;

  /* Sleep palette — deep indigo/lavender */
  --clr-sleep-dark:  #1e1b4b;
  --clr-sleep-mid:   #312e81;
  --clr-sleep-light: #a5b4fc;
  --clr-sleep-pale:  #eef2ff;
  --clr-sleep-tag:   #6366f1;

  /* Gut palette — sage green */
  --clr-gut-dark:    #14532d;
  --clr-gut-mid:     #166534;
  --clr-gut-light:   #86efac;
  --clr-gut-pale:    #f0fdf4;
  --clr-gut-tag:     #16a34a;

  /* Accent */
  --clr-accent:      #e8826a;
  --clr-gold:        #c9a86c;

  /* Typography */
  --ff-display:      'Cormorant Garamond', Georgia, serif;
  --ff-body:         'DM Sans', system-ui, sans-serif;

  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-lg:   1.125rem;
  --fs-xl:   1.25rem;
  --fs-2xl:  1.5rem;
  --fs-3xl:  2rem;
  --fs-4xl:  2.5rem;
  --fs-5xl:  3.25rem;
  --fs-6xl:  4.5rem;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 5rem;

  /* Layout */
  --container-max: 1200px;
  --radius-sm:     0.5rem;
  --radius-md:     1rem;
  --radius-lg:     1.5rem;
  --radius-xl:     2rem;
  --radius-pill:   100px;

  /* Shadows */
  --shadow-xs:  0 1px 3px rgba(0,0,0,0.06);
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.12);
  --shadow-xl:  0 16px 60px rgba(0,0,0,0.14);

  /* Transitions */
  --transition-fast:   0.15s ease;
  --transition-base:   0.25s ease;
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset & Base ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--clr-ink);
  background-color: var(--clr-cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ─── Layout Utilities ─── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-xl);
}

.section-gap { padding-block: var(--space-3xl); }

/* ─── Typography ─── */
.section-eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-ink-muted);
  margin-bottom: var(--space-sm);
}
.section-eyebrow.light { color: rgba(255,255,255,0.6); }
.section-eyebrow.sleep-color { color: var(--clr-sleep-tag); }
.section-eyebrow.gut-color { color: var(--clr-gut-tag); }

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(var(--fs-3xl), 4vw, var(--fs-5xl));
  font-weight: 600;
  line-height: 1.15;
  color: var(--clr-ink);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: var(--fs-lg);
  color: var(--clr-ink-light);
  max-width: 56ch;
  margin-inline: auto;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--clr-sleep-mid);
  color: #fff;
  box-shadow: 0 4px 20px rgba(49, 46, 129, 0.35);
}
.btn-primary:hover {
  background: var(--clr-sleep-dark);
  box-shadow: 0 6px 28px rgba(49, 46, 129, 0.45);
}

.btn-secondary {
  background: rgba(255,255,255,0.9);
  color: var(--clr-ink);
  border: 1.5px solid rgba(0,0,0,0.1);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  background: #fff;
  box-shadow: var(--shadow-md);
}

.btn-glow {
  background: #fff;
  color: var(--clr-sleep-dark);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.4);
}
.btn-glow:hover {
  background: var(--clr-sleep-pale);
  box-shadow: 0 4px 20px rgba(255,255,255,0.3);
}

.btn-glow-green {
  background: #fff;
  color: var(--clr-gut-dark);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.4);
}
.btn-glow-green:hover {
  background: var(--clr-gut-pale);
  box-shadow: 0 4px 20px rgba(255,255,255,0.3);
}

.btn-sleep-cta {
  background: linear-gradient(135deg, var(--clr-sleep-mid), #4f46e5);
  color: #fff !important;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.4);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-base);
}
.btn-sleep-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.5);
}

.btn-gut-cta {
  background: linear-gradient(135deg, var(--clr-gut-mid), #15803d);
  color: #fff !important;
  box-shadow: 0 4px 18px rgba(22, 163, 74, 0.4);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-base);
}
.btn-gut-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(22, 163, 74, 0.5);
}

.btn-capture {
  background: linear-gradient(135deg, #e8826a, #c96a4a);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-base);
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(232, 130, 106, 0.4);
  transition: all var(--transition-base);
  white-space: nowrap;
}
.btn-capture:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(232, 130, 106, 0.5);
}

/* ─── NAVIGATION ─── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled {
  background: rgba(250, 248, 245, 0.98);
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 0.9rem var(--space-xl);
  gap: var(--space-xl);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

/* SVG Logo — header (colour version) */
.nav-logo-img {
  height: 46px;
  width: auto;
  display: block;
  /* Subtle lift on hover */
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}
.nav-logo:hover .nav-logo-img {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* SVG Logo — footer (white background so logo is fully visible on dark footer) */
.footer-logo-img {
  height: 46px;
  width: auto;
  display: block;
  background: #ffffff;
  padding: 6px 14px 6px 10px;
  border-radius: 10px;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}
.footer-logo:hover .footer-logo-img {
  opacity: 0.9;
  transform: translateY(-1px);
}

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

.nav-link {
  padding: 0.4rem 0.85rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--clr-ink-light);
  border-radius: var(--radius-pill);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.nav-link:hover {
  color: var(--clr-ink);
  background: rgba(0,0,0,0.05);
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.25rem;
  background: var(--clr-sleep-mid);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(49,46,129,0.25);
  transition: all var(--transition-base);
  margin-left: var(--space-sm);
}
.nav-cta-btn:hover {
  background: var(--clr-sleep-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(49,46,129,0.35);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-ink);
  border-radius: 2px;
  transition: all var(--transition-base);
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px;
  background: var(--clr-cream);
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
}
.shape-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #a5b4fc, transparent);
  top: -100px; right: -150px;
}
.shape-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #86efac, transparent);
  bottom: -50px; left: -100px;
  opacity: 0.2;
}
.shape-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--clr-accent), transparent);
  top: 50%; left: 35%;
  opacity: 0.12;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: var(--space-3xl) var(--space-xl);
  position: relative;
  z-index: 1;
}

/* Hero Text */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--clr-sleep-tag);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-lg);
}
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--clr-sleep-tag);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(var(--fs-4xl), 6vw, var(--fs-6xl));
  font-weight: 600;
  line-height: 1.05;
  color: var(--clr-ink);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}
.hero-title em {
  font-style: italic;
  color: var(--clr-sleep-tag);
}

.hero-subtitle {
  font-size: var(--fs-lg);
  color: var(--clr-ink-light);
  max-width: 42ch;
  margin-bottom: var(--space-xl);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  flex-direction: column;
}
.trust-item strong {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--clr-ink);
  line-height: 1.2;
}
.trust-item span {
  font-size: var(--fs-xs);
  color: var(--clr-ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.trust-divider {
  width: 1px;
  height: 32px;
  background: rgba(0,0,0,0.1);
}

/* Hero Visual */
.hero-visual-col {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-card-stack {
  position: relative;
  width: 320px;
  height: 420px;
}

.hero-card {
  position: absolute;
  background: var(--clr-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  width: 240px;
}

.hero-card--back {
  top: 30px; left: 0;
  transform: rotate(-6deg);
  opacity: 0.85;
  z-index: 1;
}
.hero-card--front {
  top: 0; right: 0;
  transform: rotate(3deg);
  z-index: 2;
  transition: transform var(--transition-smooth);
}
.hero-card--front:hover {
  transform: rotate(0deg) scale(1.02);
}

.hcard-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  z-index: 2;
}
.hcard-badge.sleep {
  background: var(--clr-sleep-pale);
  color: var(--clr-sleep-tag);
}
.hcard-badge.gut {
  background: var(--clr-gut-pale);
  color: var(--clr-gut-tag);
}

.hcard-img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  padding: var(--space-md);
  background: var(--clr-cream);
}

.hcard-info {
  padding: var(--space-md);
}
.hcard-name {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-ink);
  margin-bottom: var(--space-xs);
}
.hcard-stars {
  color: #f59e0b;
  font-size: var(--fs-sm);
  letter-spacing: 1px;
}

.hero-float-pill {
  position: absolute;
  background: var(--clr-white);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--clr-ink);
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.pill-1 {
  bottom: 40px; left: -20px;
  animation: float-y 3s ease-in-out infinite;
}
.pill-1 i { color: var(--clr-sleep-tag); }
.pill-2 {
  top: 10px; right: -10px;
  animation: float-y 3s ease-in-out infinite 1.5s;
}
.pill-2 i { color: var(--clr-gut-tag); }

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

/* Hero Scroll Cue */
.hero-scroll-cue {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-xs);
  color: var(--clr-ink-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 2;
}
.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--clr-ink-muted);
  border-bottom: 2px solid var(--clr-ink-muted);
  transform: rotate(45deg);
  animation: bounce-arrow 1.5s ease infinite;
}
@keyframes bounce-arrow {
  0%, 100% { transform: rotate(45deg) translate(0,0); opacity: 0.4; }
  50% { transform: rotate(45deg) translate(4px, 4px); opacity: 1; }
}

/* ─── CATEGORY STRIP ─── */
.category-strip {
  background: var(--clr-white);
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: var(--space-lg) 0;
  position: sticky;
  top: 62px;
  z-index: 100;
}

.category-pills {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--clr-ink-light);
  border: 1.5px solid rgba(0,0,0,0.1);
  background: transparent;
  transition: all var(--transition-base);
  cursor: pointer;
}
.cat-pill:hover {
  border-color: var(--clr-sleep-tag);
  color: var(--clr-sleep-tag);
  background: var(--clr-sleep-pale);
}
.cat-pill.active {
  background: var(--clr-ink);
  color: #fff;
  border-color: var(--clr-ink);
}

/* ─── PRODUCT CARDS GRID ─── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.product-card {
  background: var(--clr-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  border: 1px solid rgba(0,0,0,0.05);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* AOS-like entrance */
.product-card[data-aos] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow var(--transition-smooth);
}
.product-card[data-aos].visible {
  opacity: 1;
  transform: translateY(0);
}
.product-card[data-aos].visible:hover {
  transform: translateY(-6px);
}

.product-card__img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--clr-cream);
  aspect-ratio: 4/3;
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--space-lg);
  transition: transform var(--transition-smooth);
}
.product-card:hover .product-card__img {
  transform: scale(1.05);
}

.product-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 27, 75, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}
.product-card:hover .product-card__overlay {
  opacity: 1;
}

.overlay-btn {
  padding: 0.65rem 1.4rem;
  background: #fff;
  color: var(--clr-ink);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: background var(--transition-fast);
}
.overlay-btn:hover {
  background: var(--clr-cream);
}

.card-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  z-index: 2;
}
.card-badge--hot {
  background: #fff3e0;
  color: #e65100;
}
.card-badge--new {
  background: var(--clr-gut-pale);
  color: var(--clr-gut-tag);
}

.product-card__body {
  padding: var(--space-lg);
}

.prod-category {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-sm);
}
.sleep-tag {
  background: var(--clr-sleep-pale);
  color: var(--clr-sleep-tag);
}
.gut-tag {
  background: var(--clr-gut-pale);
  color: var(--clr-gut-tag);
}

.prod-name {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--clr-ink);
  margin-bottom: var(--space-sm);
  line-height: 1.35;
}

.prod-desc {
  font-size: var(--fs-sm);
  color: var(--clr-ink-light);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prod-rating {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.stars { color: #f59e0b; font-size: var(--fs-sm); letter-spacing: 1px; }
.rating-count { font-size: var(--fs-xs); color: var(--clr-ink-muted); }

.prod-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(0,0,0,0.06);
}

.prod-price {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--clr-ink);
}

.btn-card {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all var(--transition-base);
  flex-shrink: 0;
}
.btn-card--sleep {
  background: var(--clr-sleep-pale);
  color: var(--clr-sleep-tag);
  border: 1.5px solid var(--clr-sleep-light);
}
.btn-card--sleep:hover {
  background: var(--clr-sleep-tag);
  color: #fff;
  border-color: var(--clr-sleep-tag);
  transform: translateY(-1px);
}
.btn-card--gut {
  background: var(--clr-gut-pale);
  color: var(--clr-gut-tag);
  border: 1.5px solid var(--clr-gut-light);
}
.btn-card--gut:hover {
  background: var(--clr-gut-tag);
  color: #fff;
  border-color: var(--clr-gut-tag);
  transform: translateY(-1px);
}

/* ─── EDITORIAL BANNERS ─── */
.editorial-banner {
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}

.sleep-banner {
  background: linear-gradient(135deg, var(--clr-sleep-dark) 0%, #2d2a6e 60%, #3730a3 100%);
  color: #fff;
}
.gut-banner {
  background: linear-gradient(135deg, var(--clr-gut-dark) 0%, #14532d 60%, #166534 100%);
  color: #fff;
}

.editorial-banner__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.editorial-title {
  font-family: var(--ff-display);
  font-size: clamp(var(--fs-3xl), 4vw, var(--fs-5xl));
  font-weight: 600;
  line-height: 1.1;
  color: #fff;
  margin-bottom: var(--space-lg);
}

.title-icon {
  margin-right: var(--space-sm);
  opacity: 0.8;
}

.editorial-desc {
  font-size: var(--fs-lg);
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  max-width: 50ch;
}

.editorial-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}
.editorial-features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-base);
  color: rgba(255,255,255,0.9);
}
.editorial-features li i {
  color: rgba(255,255,255,0.7);
  font-size: var(--fs-sm);
}

.right-align { order: 2; }
.gut-banner .editorial-banner__visual { order: 1; }
.gut-banner .editorial-banner__text { order: 2; }

/* Mosaic */
.editorial-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--space-sm);
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 360px;
}

.mosaic-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-smooth);
}
.mosaic-img:hover { transform: scale(1.04); }

.mosaic-large {
  grid-column: 1;
  grid-row: 1 / 3;
}
.mosaic-small-top { grid-column: 2; grid-row: 1; }
.mosaic-small-bot { grid-column: 2; grid-row: 2; }

/* ─── FEATURED PRODUCT CARDS ─── */
.featured-products {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.featured-product-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  background: var(--clr-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}
.featured-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.fp-img-col {
  position: relative;
  background: var(--clr-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  min-height: 300px;
}
.fp-img-col img {
  max-height: 240px;
  object-fit: contain;
  transition: transform var(--transition-smooth);
}
.featured-product-card:hover .fp-img-col img {
  transform: scale(1.04);
}

.fp-rank {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-sleep-tag);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 800;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}
.gut-rank {
  background: var(--clr-gut-tag);
}

.fp-content-col {
  padding: var(--space-xl) var(--space-2xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-md);
}

.fp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.fp-tag {
  padding: 0.2rem 0.7rem;
  background: var(--clr-sleep-pale);
  color: var(--clr-sleep-tag);
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.fp-tag-gut {
  background: var(--clr-gut-pale);
  color: var(--clr-gut-tag);
}

.fp-name {
  font-family: var(--ff-display);
  font-size: var(--fs-3xl);
  font-weight: 600;
  line-height: 1.2;
  color: var(--clr-ink);
}

.fp-rating {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.fp-description {
  font-size: var(--fs-base);
  color: var(--clr-ink-light);
  line-height: 1.7;
}

.fp-pros h4 {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--clr-ink);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.fp-pros ul {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.fp-pros ul li {
  font-size: var(--fs-sm);
  color: var(--clr-ink-light);
}

.fp-action-row {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(0,0,0,0.06);
}

.fp-price {
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--clr-ink);
}
.fp-price s {
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--clr-ink-muted);
  text-decoration: line-through;
  margin-left: var(--space-xs);
}

.affiliate-note {
  font-size: var(--fs-xs);
  color: var(--clr-ink-muted);
  font-style: italic;
}

/* ─── ABOUT / TRUST SECTION ─── */
.about-section { background: var(--clr-white); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.about-text p {
  font-size: var(--fs-base);
  color: var(--clr-ink-light);
  line-height: 1.8;
  margin-top: var(--space-md);
}
.about-text .section-title { text-align: left; }

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.pillar-card {
  background: var(--clr-cream);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.pillar-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  line-height: 1;
}
.pillar-card h3 {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--clr-ink);
  margin-bottom: var(--space-sm);
}
.pillar-card p {
  font-size: var(--fs-sm);
  color: var(--clr-ink-light);
  line-height: 1.65;
}

/* ─── EMAIL CAPTURE ─── */
.email-capture {
  position: relative;
  background: linear-gradient(135deg, #1a1714 0%, #2d1f12 50%, #1a1714 100%);
  padding: var(--space-3xl) 0;
  overflow: hidden;
}

.email-capture__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ec-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}
.ec-blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3), transparent);
  top: -100px; left: -100px;
}
.ec-blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.2), transparent);
  bottom: -100px; right: 0;
}

.email-capture__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Guide Mockup */
/* ── Guide Mockup ── */
.ec-guide-mockup {
  position: relative;
  flex-shrink: 0;
  padding-bottom: 10px;
}

/* Fanned page shadows behind the book */
.guide-page-fan {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 210px;
  height: 295px;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.1);
}
.guide-page-fan--1 {
  transform: translateX(-46%) rotate(5deg);
  z-index: 0;
}
.guide-page-fan--2 {
  transform: translateX(-54%) rotate(-5deg);
  z-index: 0;
}

.guide-book {
  display: flex;
  width: 230px;
  height: 310px;
  border-radius: var(--radius-md);
  box-shadow: 16px 12px 50px rgba(0,0,0,0.55), 0 2px 8px rgba(0,0,0,0.3);
  overflow: hidden;
  transform: perspective(700px) rotateY(-10deg) rotateX(3deg);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  position: relative;
  z-index: 2;
}
.guide-book:hover {
  transform: perspective(700px) rotateY(-5deg) rotateX(1deg) scale(1.03);
  box-shadow: 20px 16px 60px rgba(0,0,0,0.6);
}

.guide-spine {
  width: 22px;
  background: linear-gradient(180deg, #6366f1, #312e81, #1e1b4b);
  flex-shrink: 0;
  position: relative;
}
.guide-spine::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, rgba(255,255,255,0.15), transparent, rgba(255,255,255,0.08));
}

.guide-cover {
  flex: 1;
  background: linear-gradient(155deg, #2d2a6e 0%, #1e1b4b 50%, #13113a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem;
  text-align: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}
/* Subtle shimmer on cover */
.guide-cover::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(129,140,248,0.15), transparent);
  pointer-events: none;
}

.guide-cover-icon { font-size: 2.6rem; line-height: 1; }

.guide-cover-eyebrow {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
}

.guide-cover-title {
  font-family: var(--ff-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.guide-cover-sub {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}

.guide-lines {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  width: 100%;
  margin-top: 0.35rem;
}
.guide-lines span {
  display: block;
  height: 1.5px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}
.guide-lines span:first-child { width: 80%; margin: 0 auto; opacity: 0.7; }
.guide-lines span:nth-child(2) { width: 65%; margin: 0 auto; opacity: 0.5; }
.guide-lines span:nth-child(3) { width: 75%; margin: 0 auto; opacity: 0.4; }
.guide-lines span:last-child  { width: 50%; margin: 0 auto; opacity: 0.25; }

.guide-tag {
  position: absolute;
  top: -14px;
  right: -14px;
  background: linear-gradient(135deg, #e8826a, #c96a4a);
  color: #fff;
  font-weight: 800;
  font-size: var(--fs-sm);
  letter-spacing: 0.05em;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 18px rgba(232, 130, 106, 0.55);
  z-index: 3;
  animation: float-y 3s ease-in-out infinite;
}

/* ── Download Button ── */
.btn-guide-download {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  color: var(--clr-ink);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  text-decoration: none;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.9);
}
.btn-guide-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.btn-guide-download__icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--clr-sleep-mid), #4f46e5);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.btn-guide-download__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.btn-guide-download__text strong {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--clr-ink);
}
.btn-guide-download__text small {
  font-size: var(--fs-xs);
  color: var(--clr-ink-muted);
}
.btn-guide-download__arrow {
  color: var(--clr-sleep-tag);
  font-size: var(--fs-base);
  flex-shrink: 0;
  transition: transform var(--transition-base);
}
.btn-guide-download:hover .btn-guide-download__arrow {
  transform: translateX(4px);
}

/* ── Divider ── */
.guide-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.25rem 0;
}
.guide-divider::before,
.guide-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.12);
}
.guide-divider span {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
  letter-spacing: 0.04em;
}

/* form disclaimer icon */
.form-disclaimer i {
  font-size: 0.65rem;
  margin-right: 0.25rem;
  opacity: 0.6;
}

/* Email Content */
.ec-title {
  font-family: var(--ff-display);
  font-size: clamp(var(--fs-3xl), 4vw, var(--fs-5xl));
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
  margin-bottom: var(--space-md);
}
.ec-title em {
  font-style: italic;
  color: var(--clr-sleep-light);
}

.ec-subtitle {
  font-size: var(--fs-base);
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  max-width: 52ch;
}

.ec-benefits {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}
.ec-benefits li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.85);
}
.ec-benefits li i {
  color: var(--clr-sleep-light);
  font-size: var(--fs-xs);
}

/* Email Form */
.email-form__fields {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.form-field {
  flex: 1;
  min-width: 160px;
}
.form-field input {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: var(--fs-sm);
  font-family: var(--ff-body);
  backdrop-filter: blur(8px);
  transition: border-color var(--transition-base), background var(--transition-base);
  outline: none;
}
.form-field input::placeholder { color: rgba(255,255,255,0.45); }
.form-field input:focus {
  border-color: var(--clr-sleep-light);
  background: rgba(255,255,255,0.15);
}

.form-disclaimer {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.4);
}

.form-success {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: rgba(134, 239, 172, 0.15);
  border: 1px solid rgba(134, 239, 172, 0.3);
  border-radius: var(--radius-md);
  color: var(--clr-gut-light);
  font-size: var(--fs-base);
  font-weight: 500;
  margin-top: var(--space-md);
}
.form-success i { font-size: var(--fs-xl); }

/* ─── AFFILIATE DISCLAIMER BANNER ─── */
.affiliate-banner {
  background: #fef9c3;
  border-top: 1px solid #fde68a;
  border-bottom: 1px solid #fde68a;
  padding: var(--space-md) 0;
}
.affiliate-banner p {
  font-size: var(--fs-xs);
  color: #713f12;
  line-height: 1.6;
  text-align: center;
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--clr-ink);
  color: rgba(255,255,255,0.75);
  padding-top: var(--space-3xl);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

/* footer logo color handled by logo-white.svg */

.footer-tagline {
  font-size: var(--fs-sm);
  margin-top: var(--space-sm);
  color: rgba(255,255,255,0.5);
  max-width: 30ch;
}

.footer-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.footer-social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  color: rgba(255,255,255,0.7);
  font-size: var(--fs-base);
  transition: all var(--transition-base);
}
.footer-social a:hover {
  background: var(--clr-sleep-tag);
  color: #fff;
  transform: translateY(-2px);
}

.footer-links-group h4 {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-md);
}

.footer-links-group ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.footer-links-group ul a {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.65);
  transition: color var(--transition-fast);
}
.footer-links-group ul a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--space-lg) 0;
}
.footer-bottom p {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.35);
  text-align: center;
  line-height: 1.7;
}

/* ─── BACK TO TOP ─── */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 46px;
  height: 46px;
  background: var(--clr-sleep-mid);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-base), transform var(--transition-base);
  cursor: pointer;
}
.back-to-top:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--clr-sleep-dark);
  transform: translateY(-3px) !important;
}

/* ─── RESPONSIVE — Tablet ─── */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-block: 6rem 4rem;
  }
  .hero-title br { display: none; }
  .hero-subtitle { max-width: 50ch; margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-trust-bar { justify-content: center; }
  .hero-visual-col { display: none; }
  .hero-scroll-cue { display: none; }

  .editorial-banner__inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  .editorial-mosaic { height: 260px; }
  .right-align { order: unset; }
  .gut-banner .editorial-banner__visual { order: unset; }
  .gut-banner .editorial-banner__text { order: unset; }

  .featured-product-card {
    grid-template-columns: 220px 1fr;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
  .footer-brand { grid-column: 1 / -1; }

  .email-capture__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .ec-guide-mockup { display: none; }
  .ec-benefits li { justify-content: center; }
  .email-form__fields { justify-content: center; }
}

/* ─── RESPONSIVE — Mobile ─── */
@media (max-width: 768px) {
  .container { padding-inline: var(--space-lg); }

  /* Nav */
  .nav-links {
    display: none;
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    background: var(--clr-white);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-lg);
    gap: var(--space-xs);
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: var(--space-md); border-radius: var(--radius-md); }
  .nav-cta-btn { text-align: center; margin-left: 0; padding: var(--space-md); border-radius: var(--radius-md); }
  .nav-burger { display: flex; }

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

  /* Featured */
  .featured-product-card {
    grid-template-columns: 1fr;
  }
  .fp-img-col { min-height: 220px; }
  .fp-content-col { padding: var(--space-lg); }
  .fp-name { font-size: var(--fs-2xl); }
  .fp-action-row { flex-direction: column; align-items: flex-start; }

  /* Editorial */
  .editorial-mosaic { height: 200px; }

  /* Pillars */
  .about-pillars { grid-template-columns: 1fr; }

  /* Email form */
  .email-form__fields { flex-direction: column; }
  .form-field { min-width: 100%; }
  .btn-capture { width: 100%; justify-content: center; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }

  /* Section spacing */
  .section-gap { padding-block: var(--space-2xl); }
}

@media (max-width: 480px) {
  .cat-pill span { display: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
}
