/* ============================================================
   Rosabella Beetroot Landing Page — Clean Scratch CSS v4
   Design tokens:
     Primary:    #c82184
     Black:      #000000
     Body text:  #636a7b
     Font:       'Libre Franklin', sans-serif
     Green ship: #4fbb4e
     Pink light: rgba(200,33,132,0.08)
============================================================ */

/* ── GLOBAL RESET & OVERFLOW GUARD ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  /* NOTE: Do NOT set overflow-x:hidden on html — it forces body to become the
     scroll container, which breaks position:sticky on child elements.
     Instead we clip overflow on individual sections below. */
}
body {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 18px;
  color: #636a7b;
  background: #fff;
  line-height: 1.6;
  /* Do NOT set overflow-x:hidden here either — same sticky-breaking side effect.
     Horizontal overflow is prevented by width:100% + max-width on all containers. */
  width: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── ANNOUNCEMENT BAR ── */
.ann-bar {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ann-bar em { color: #f5d000; font-style: normal; }

/* ── HEADER / LOGO ── */
.site-header {
  background: #fff;
  text-align: center;
  padding: 12px 20px 10px;
  border-bottom: 1px solid #f0f0f0;
  width: 100%;
}
.site-header img { height: 44px; width: auto; margin: 0 auto; }

/* ══════════════════════════════════════════
   HERO — sticky left, scrolling right
   Desktop: 50/50 grid
   Mobile:  single column
══════════════════════════════════════════ */
.hero-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
  width: 100%;
}

/* LEFT: sticky on desktop */
.hero-left {
  position: sticky;
  top: 40px;
  padding: 24px 0 30px;
  min-width: 0; /* prevent grid blowout */
  overflow: hidden; /* contain slider children */
  width: 100%;
}

/* RIGHT: scrolls normally */
.hero-right {
  padding: 24px 0 40px;
  min-width: 0; /* prevent grid blowout */
  width: 100%;
  /* NO overflow:hidden here — right column must scroll freely */
}

/* ── Product image slider ── */
.main-slider {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #f7f7f7;
  aspect-ratio: 1 / 1;
  width: 100%;
}
.slide-track {
  display: flex;
  transition: transform 0.35s ease;
  height: 100%;
  will-change: transform;
  /* Track is as wide as all slides combined, but clipped by parent overflow:hidden */
}
.slide {
  /* Each slide is exactly as wide as the slider container */
  flex-shrink: 0;
  width: 100%; /* 100% of the .main-slider container */
  height: 100%;
}
.slide img { width: 100%; height: 100%; object-fit: contain; }

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  color: #333;
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
  transition: background 0.2s;
  line-height: 1;
  flex-shrink: 0;
}
.slider-btn:hover { background: #fff; }
.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

.thumb-strip {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  width: 100%;
}
.thumb-strip::-webkit-scrollbar { height: 3px; }
.thumb-strip::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }
.thumb-strip img {
  width: 58px; height: 58px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.thumb-strip img.active { border-color: #c82184; }

/* ── Review card ── */
.review-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 16px 18px;
  margin-top: 14px;
  width: 100%;
}
.review-stars { color: #f5a623; font-size: 20px; margin-bottom: 8px; letter-spacing: 1px; }
.review-text { font-size: 13.5px; color: #444; line-height: 1.55; font-style: italic; }
.review-author {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.review-author-left { display: flex; align-items: center; gap: 10px; }
.review-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.review-name { font-size: 13px; font-weight: 700; color: #1a1a1a; }
.verified-badge { display: flex; align-items: center; gap: 5px; font-size: 13px; color: #636a7b; }
.verified-badge img { width: 18px; flex-shrink: 0; }

/* ── Hero right: badge tag ── */
.badge-tag {
  display: inline-block;
  background: #000;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.hero-title {
  font-size: 35px;
  font-weight: 700;
  color: #000;
  line-height: 1.2;
  margin-bottom: 14px;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 700;
  color: #000;
  margin-bottom: 10px;
}

.hero-desc {
  font-size: 18px;
  color: #636a7b;
  margin-bottom: 14px;
  line-height: 1.65;
}

.bullet-list { margin-bottom: 16px; }
.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 16px;
  color: #1a1a1a;
  margin-bottom: 7px;
}
.bullet-list li img { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }

.ship-line {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  color: #4fbb4e;
  font-weight: 600;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.ship-dot { width: 9px; height: 9px; background: #4fbb4e; border-radius: 50%; flex-shrink: 0; }

/* ── CTA Button ── */
.cta-btn {
  display: block;
  width: 100%;
  background: #c82184;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  padding: 17px 20px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  font-family: 'Libre Franklin', sans-serif;
  letter-spacing: 0.2px;
}
.cta-btn:hover { background: #a81870; transform: translateY(-1px); }

.delivery-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  font-size: 14px;
  color: #1a1a1a;
  flex-wrap: wrap;
}
.delivery-row span { display: flex; align-items: center; gap: 6px; }
.delivery-row img { width: 18px; flex-shrink: 0; }

.subscription-note {
  font-size: 14px;
  color: #636a7b;
  margin-top: 10px;
  line-height: 1.5;
}

/* ── Guarantee box ── */
.guarantee-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 16px;
  background: #fff;
}
.guarantee-box img { width: 56px; flex-shrink: 0; }
.guarantee-box h4 { font-size: 16px; font-weight: 700; color: #1a1a1a; margin-bottom: 4px; }
.guarantee-box p { font-size: 15px; color: #636a7b; line-height: 1.5; }

/* ── Product FAQ (inside hero right) ── */
.product-faq { margin-top: 18px; }
.faq-item { border-bottom: 1px solid rgba(26,26,26,0.12); }
.faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  color: #000;
  user-select: none;
  gap: 10px;
}
.faq-header .chevron {
  font-size: 20px;
  color: #636a7b;
  transition: transform 0.25s;
  flex-shrink: 0;
}
.faq-item.open .faq-header .chevron { transform: rotate(180deg); }

/* Grid-based accordion — no max-height lag */
.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}
.faq-item.open .faq-body {
  grid-template-rows: 1fr;
}
.faq-body-inner {
  overflow: hidden;
  padding: 0;
  font-size: 16px;
  color: #636a7b;
  line-height: 1.65;
  transition: padding 0.28s ease;
}
.faq-item.open .faq-body-inner { padding: 0 0 16px; }
.faq-body-inner p { margin-bottom: 10px; }
.faq-body-inner p:last-child { margin-bottom: 0; }

.check-list { margin: 8px 0 12px; }
.check-list li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 16px; color: #1a1a1a; margin-bottom: 6px;
}
.check-list li::before { content: '✅'; flex-shrink: 0; }
.purple-list { margin: 8px 0 12px; }
.purple-list li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 16px; color: #1a1a1a; margin-bottom: 6px;
}
.purple-list li::before { content: '🟣'; flex-shrink: 0; }

/* ══════════════════════════════════════════
   BADGE ICONS ROW
══════════════════════════════════════════ */
.badge-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  padding: 28px 20px;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  width: 100%;
}
.badge-icons img { height: 76px; width: auto; flex-shrink: 0; }

/* ══════════════════════════════════════════
   SHARED SECTION CONTAINER
══════════════════════════════════════════ */
.section-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.two-col img { border-radius: 8px; width: 100%; }

/* ══════════════════════════════════════════
   HIDDEN COST SECTION
   (light pink bg, text LEFT, image RIGHT)
══════════════════════════════════════════ */
.story-section {
  background: rgba(200,33,132,0.06);
  padding: 60px 0;
  width: 100%;
}
.story-section h2 { font-size: 30px; font-weight: 700; color: #000; margin-bottom: 18px; }
.story-section p { font-size: 18px; color: #636a7b; margin-bottom: 14px; line-height: 1.7; }
.story-section p:last-child { margin-bottom: 0; }

/* ══════════════════════════════════════════
   SIMPLE DAILY NUTRITION
   (white bg, image LEFT, text RIGHT)
══════════════════════════════════════════ */
.simple-daily {
  background: #fff;
  padding: 60px 0;
  width: 100%;
}
.simple-daily h2 { font-size: 30px; font-weight: 700; color: #000; margin-bottom: 14px; }
.simple-daily p { font-size: 18px; color: #636a7b; margin-bottom: 12px; line-height: 1.7; }
.simple-daily p:last-child { margin-bottom: 0; }
.green-list { margin-top: 10px; }
.green-list li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 16px; color: #1a1a1a; margin-bottom: 6px;
}
.green-list li::before { content: '🟢'; flex-shrink: 0; }

/* ══════════════════════════════════════════
   STATS SECTION
══════════════════════════════════════════ */
.stats-section {
  background: #fff;
  padding: 50px 0;
  text-align: center;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  width: 100%;
}
.stats-inner { max-width: 1000px; margin: 0 auto; padding: 0 20px; width: 100%; }
.stats-section h2 { font-size: 35px; font-weight: 700; color: #000; margin-bottom: 8px; }
.stats-section .sub { font-size: 18px; color: #636a7b; margin-bottom: 36px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.stat-item .pct {
  font-size: 48px;
  font-weight: 700;
  color: #c82184;
  line-height: 1;
  margin-bottom: 10px;
}
.stat-item p { font-size: 15px; color: #636a7b; line-height: 1.5; }
.stats-disclaimer {
  font-size: 15px;
  color: #636a7b;
  font-weight: 700;
  border-top: 1px solid #e8e8e8;
  padding-top: 16px;
  max-width: 800px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════
   ONE SIMPLE INGREDIENT
   (pink bg, text LEFT, diagram RIGHT)
══════════════════════════════════════════ */
.ingredient-section {
  background: rgba(200,33,132,0.06);
  padding: 60px 0;
  width: 100%;
}
.ingredient-section h2 { font-size: 30px; font-weight: 700; color: #000; margin-bottom: 14px; }
.ingredient-section p { font-size: 18px; color: #636a7b; margin-bottom: 12px; line-height: 1.7; }
.ingredient-section p:last-child { margin-bottom: 0; }
.dot-list { margin: 8px 0 16px 4px; }
.dot-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 16px; color: #1a1a1a; margin-bottom: 6px;
}
.dot-list li::before {
  content: '';
  width: 9px; height: 9px;
  background: #135e4a;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}
.ingredient-section h3 { font-size: 18px; font-weight: 700; color: #000; margin: 16px 0 10px; }
.feature-item { margin-bottom: 10px; font-size: 18px; color: #636a7b; line-height: 1.65; }
.feature-item strong { color: #000; }

/* ══════════════════════════════════════════
   FAQ SECTION (main)
══════════════════════════════════════════ */
.faq-section {
  background: #fff;
  padding: 50px 0;
  width: 100%;
}
.faq-inner { max-width: 820px; margin: 0 auto; padding: 0 20px; width: 100%; }
.faq-section h2 { font-size: 35px; font-weight: 700; color: #000; margin-bottom: 24px; text-align: center; }

/* FAQ items in main section: bordered box style */
.faq-section .faq-item {
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  background: #fff;
  padding: 0 18px;
  margin-bottom: 8px;
}
.faq-section .faq-header { font-size: 17px; padding: 15px 0; }
.faq-section .faq-item.open .faq-header { border-bottom: 1px solid #e8e8e8; }

/* ══════════════════════════════════════════
   BOTTOM CTA
══════════════════════════════════════════ */
.bottom-cta {
  padding: 40px 20px;
  text-align: center;
  background: #fff;
  width: 100%;
}
.bottom-cta-inner { max-width: 560px; margin: 0 auto; width: 100%; }
.guarantee-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 16px;
  color: #636a7b;
}
.guarantee-note img { width: 20px; flex-shrink: 0; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.site-footer {
  background: #fff;
  border-top: 1px solid #f0f0f0;
  padding: 30px 20px 40px;
  text-align: center;
  width: 100%;
}
.site-footer img { height: 40px; margin: 0 auto 10px; }
.site-footer .copyright { font-size: 15px; color: #636a7b; margin-bottom: 18px; }
.site-footer .disclaimer { font-size: 14px; color: #636a7b; max-width: 820px; margin: 0 auto; line-height: 1.65; }
.site-footer .disclaimer p { margin-bottom: 8px; }

/* ══════════════════════════════════════════
   STICKY MOBILE BAR
══════════════════════════════════════════ */
.sticky-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  padding: 12px 16px;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.12);
  z-index: 999;
  width: 100%;
}
.sticky-bar .cta-btn { font-size: 18px; padding: 14px 20px; }

/* ══════════════════════════════════════════
   RESPONSIVE — TABLET (≤960px)
══════════════════════════════════════════ */
@media (max-width: 960px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
    padding: 0 16px;
    gap: 0;
  }
  .hero-left {
    position: static;
    padding: 20px 0 0;
  }
  .hero-right { padding: 16px 0 30px; }

  .two-col {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  /* story: image comes first on mobile */
  .story-img { order: -1; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  .stats-section h2 { font-size: 28px; }
  .story-section h2,
  .simple-daily h2,
  .ingredient-section h2 { font-size: 26px; }
  .faq-section h2 { font-size: 28px; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — MOBILE (≤600px)
══════════════════════════════════════════ */
@media (max-width: 600px) {
  /* Announcement bar: allow wrapping on very small screens */
  .ann-bar {
    font-size: 12px;
    padding: 8px 12px;
    white-space: normal;
    line-height: 1.4;
  }

  .site-header img { height: 36px; }

  .hero-wrapper { padding: 0 12px; }
  .hero-title { font-size: 26px; }
  .hero-subtitle { font-size: 16px; }
  .hero-desc { font-size: 16px; }
  .bullet-list li { font-size: 15px; }

  .thumb-strip img { width: 48px; height: 48px; }

  .badge-icons { gap: 8px; padding: 20px 12px; }
  .badge-icons img { height: 58px; }

  .story-section,
  .simple-daily,
  .ingredient-section { padding: 40px 0; }
  .section-container { padding: 0 16px; }

  .story-section h2,
  .simple-daily h2,
  .ingredient-section h2 { font-size: 22px; }
  .story-section p,
  .simple-daily p,
  .ingredient-section p { font-size: 16px; }
  .feature-item { font-size: 16px; }

  .stats-section { padding: 36px 0; }
  .stats-inner { padding: 0 16px; }
  .stats-section h2 { font-size: 22px; }
  .stats-section .sub { font-size: 15px; margin-bottom: 24px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-item .pct { font-size: 36px; }
  .stat-item p { font-size: 13px; }
  .stats-disclaimer { font-size: 13px; }

  .faq-section { padding: 36px 0; }
  .faq-inner { padding: 0 16px; }
  .faq-section h2 { font-size: 24px; }
  .faq-section .faq-header { font-size: 15px; }
  .faq-body-inner { font-size: 15px; }

  .guarantee-box { flex-direction: column; gap: 10px; }
  .guarantee-box img { width: 44px; }

  .delivery-row { font-size: 13px; gap: 10px; }
  .subscription-note { font-size: 13px; }

  .bottom-cta { padding: 30px 16px; }
  .site-footer { padding-bottom: 80px; }

  .sticky-bar { display: block; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤400px)
══════════════════════════════════════════ */
@media (max-width: 400px) {
  .hero-title { font-size: 22px; }
  .badge-icons img { height: 46px; }
  .stat-item .pct { font-size: 30px; }
  .thumb-strip img { width: 40px; height: 40px; }
  .review-author { flex-direction: column; align-items: flex-start; }
}
