/* ==========================================================
   HappieGut — site styles
   Palette: teal (brand) · yellow (buttons only) · white · ink
   ========================================================== */

:root {
  --teal: #0E7C86;
  --teal-dark: #0A5A62;
  --teal-light: #E3F4F5;
  --yellow: #F5C518;
  --yellow-dark: #D9A800;
  --gold: #856400;              /* small labels on light backgrounds (readable) */
  --ink: #14181A;
  --ink-soft: #445558;
  --mist: #BFE3E6;              /* soft text on dark teal */
  --white: #FFFFFF;
  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(14, 30, 32, .10);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --container: 1180px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--ink); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { color: var(--ink-soft); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section[id] { scroll-margin-top: 96px; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; color: var(--teal-dark); }
h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 16px; }
h3 { font-size: 22px; margin-bottom: 8px; }
.center { text-align: center; }
.why h2.center { max-width: 640px; margin-left: auto; margin-right: auto; }

.eyebrow { display: block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 30px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: 15px; cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-primary:hover { background: var(--yellow-dark); transform: translateY(-2px); }
.btn-outline { border-color: var(--teal); color: var(--teal-dark); }
.btn-outline:hover { background: var(--teal); color: var(--white); }
.btn-outline-light { border-color: rgba(255, 255, 255, .8); color: var(--white); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .15); }
.btn-sm { padding: 10px 22px; font-size: 14px; }

.tab-btn {
  padding: 10px 22px; border-radius: 999px; border: 2px solid var(--teal-light);
  background: var(--white); color: var(--ink-soft);
  font: 700 14px var(--font-body); cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.tab-btn:hover { border-color: var(--teal); color: var(--teal-dark); }
.tab-btn.active { background: var(--teal); color: var(--white); border-color: var(--teal); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--teal-dark);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { background: rgba(10, 90, 98, .96); backdrop-filter: blur(10px); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 60px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--white); font-weight: 600; font-size: 15px; white-space: nowrap;
  padding: 8px 14px; border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.main-nav a:hover { background: rgba(255, 255, 255, .12); color: var(--yellow); }
.main-nav a.active { color: var(--yellow); background: rgba(255, 255, 255, .08); }
.header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }

/* ---------- Hero ----------
   Desktop: full banner, never cropped (a blurred copy fills extra width);
   the headline slides up in a glass bar on hover or keyboard focus. */
.hero {
  position: relative; display: flex; justify-content: center;
  height: min(56.28vw, calc(100vh - 84px));
  height: min(56.28vw, calc(100svh - 84px));
  min-height: 320px; overflow: hidden; isolation: isolate; outline: none;
  background: var(--teal-dark);
}
.hero-backdrop {
  position: absolute; inset: -60px; z-index: -1; opacity: .9;
  background: url("../images/hero-blur.jpg") center / cover no-repeat;
  filter: blur(40px) saturate(1.15) brightness(1.05);
}
.hero-frame {
  position: relative; height: 100%; max-width: 100%; aspect-ratio: 1672 / 941; overflow: hidden;
  box-shadow: 0 0 80px rgba(0, 0, 0, .18);
  animation: heroIntro 1.4s var(--ease) both;
}
.hero-frame picture { display: block; width: 100%; height: 100%; }
.hero-img { width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 55%; transition: transform 1.4s var(--ease); }
.hero-frame::after {
  content: ''; position: absolute; inset: auto 0 0; height: 45%; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(6, 40, 44, .45));
  opacity: 0; transition: opacity .6s ease;
}
.hero-panel {
  position: absolute; z-index: 2;
  left: clamp(16px, 2.5%, 40px); right: clamp(16px, 2.5%, 40px); bottom: clamp(16px, 3.5%, 36px);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px;
  padding: 20px 28px; border-radius: 22px; color: var(--white);
  background: linear-gradient(100deg, rgba(8, 52, 57, .9), rgba(10, 90, 98, .8));
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
  opacity: 0; transform: translateY(calc(100% + 40px)); pointer-events: none;
  transition: transform .75s var(--ease), opacity .45s ease;
}
.hero-panel-text > *, .hero-actions { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .6s var(--ease); }
.hero .eyebrow { color: #FCE9A8; font-size: 12px; margin-bottom: 6px; }
.hero-title { font-size: clamp(24px, 2.6vw, 38px); color: var(--white); line-height: 1.1; margin-bottom: 6px; }
.hero-title span { color: var(--yellow); }
.hero-sub { color: #DFF3F4; font-size: 15px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }
.hero-actions .btn { padding: 13px 26px; }

.hero:is(:hover, :focus-visible, :has(:focus-visible)) .hero-panel { opacity: 1; transform: none; pointer-events: auto; }
.hero:is(:hover, :focus-visible, :has(:focus-visible)) :is(.hero-panel-text > *, .hero-actions) { opacity: 1; transform: none; }
.hero:hover .hero-panel-text > :nth-child(1) { transition-delay: .12s; }
.hero:hover .hero-panel-text > :nth-child(2) { transition-delay: .2s; }
.hero:hover .hero-panel-text > :nth-child(3) { transition-delay: .28s; }
.hero:hover .hero-actions { transition-delay: .36s; }
.hero:is(:hover, :focus-visible) .hero-img { transform: scale(1.04); }
.hero:is(:hover, :focus-visible) .hero-frame::after { opacity: 1; }

.hero-hint {
  position: absolute; z-index: 3; left: 50%; bottom: clamp(16px, 5%, 44px); transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px;
  background: rgba(10, 90, 98, .88); color: var(--white);
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18); pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
  animation: hintIn .6s 1.2s ease backwards;
}
.hero-hint i { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); animation: pulse 1.8s infinite; }
.hint-touch { display: none; }
.hero:is(:hover, :focus-visible, :has(:focus-visible)) .hero-hint { opacity: 0; transform: translate(-50%, 10px); }

/* ---------- Shop: product list ---------- */
.shop { padding: 80px 0 70px; background: linear-gradient(180deg, var(--teal-light), var(--white) 70%); }
.shop-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 36px; }
.shop-head h2 { margin-bottom: 0; }
.shop-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.shop-card {
  --cols: 5;
  flex: 0 0 calc((100% - (var(--cols) - 1) * 22px) / var(--cols));
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border-radius: 22px;
  border: 1px solid rgba(10, 90, 98, .08);
  box-shadow: 0 8px 26px rgba(10, 58, 62, .08);
  transition: transform .35s var(--ease), box-shadow .35s ease;
}
.shop-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(10, 58, 62, .16); }
.shop-card.is-hidden { display: none; }
.shop-card.pop { animation: popIn .45s var(--ease) both; }
.shop-media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #F4F7F7; }
.shop-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s ease, transform .8s var(--ease); }
.shop-img-alt { opacity: 0; }
.shop-card:hover .shop-img { transform: scale(1.05); }
.shop-card:hover .shop-img-alt { opacity: 1; transform: scale(1.05); }
.shop-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 5px 10px; border-radius: 999px; background: var(--yellow); color: var(--ink);
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}
.shop-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.shop-cat { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.shop-title { font: 700 16.5px/1.3 var(--font-body); color: var(--ink); margin-bottom: 6px; }
.shop-title a:hover { color: var(--teal); }
.shop-size { display: inline-block; vertical-align: middle; margin-left: 2px; padding: 2px 8px; border-radius: 999px; background: var(--teal-light); color: var(--teal-dark); font-size: 12px; font-weight: 600; }
.shop-desc { flex: 1; font-size: 13.5px; line-height: 1.5; margin-bottom: 14px; }
.shop-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.shop-price { font: 700 24px var(--font-head); color: var(--teal-dark); }
.shop-buy { padding: 10px 18px; white-space: nowrap; }
.shop-more { text-align: center; margin-top: 40px; }

/* ---------- Stats ---------- */
.leader { padding: 80px 0 60px; text-align: center; }
.leader-text { font-family: var(--font-head); font-size: clamp(20px, 2.6vw, 28px); color: var(--teal-dark); max-width: 760px; margin: 0 auto 48px; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-card { padding: 28px 16px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.stat-number { display: block; font: 700 36px var(--font-head); color: var(--teal-dark); }
.stat-label { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }

/* ---------- Intro + ranges ---------- */
.intro { padding: 100px 0 90px; overflow-x: clip; }
.intro-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center; margin-bottom: 110px; }
.intro-copy h2 { margin-bottom: 20px; }
.intro-copy p { margin-bottom: 16px; }
.intro-media { position: relative; isolation: isolate; }
.intro-media picture { display: block; }
.intro-media::before { content: ''; position: absolute; inset: 8% -6% -6% 8%; z-index: -1; border-radius: 36px; background: var(--teal-light); }
.intro-media img { width: 100%; height: auto; aspect-ratio: 1000 / 1200; object-fit: cover; border-radius: 28px; box-shadow: 0 30px 60px rgba(10, 58, 62, .18); }
.intro-badge {
  position: absolute; left: -28px; bottom: 44px;
  display: flex; align-items: center; gap: 12px; padding: 14px 20px;
  border-radius: 18px; background: var(--white); box-shadow: 0 16px 40px rgba(10, 58, 62, .16);
  animation: floaty 5s ease-in-out infinite;
}
.intro-badge strong { font: 600 34px/1 var(--font-head); color: var(--teal-dark); }
.intro-badge span { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--ink-soft); }

.range-head { margin-bottom: 40px; }
.split-range { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 40px; margin-bottom: 56px; }
.range-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border-radius: 26px; box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s ease;
}
.range-card:hover { transform: translateY(-8px); box-shadow: 0 28px 60px rgba(10, 58, 62, .18); }
.range-media { position: relative; overflow: hidden; aspect-ratio: 9 / 16; background: var(--teal-light); }
.range-media picture, .range-media img { display: block; width: 100%; height: 100%; }
.range-media img { object-fit: cover; transition: transform 1s var(--ease); }
.range-card:hover .range-media img { transform: scale(1.05); }
.range-cta {
  position: absolute; left: 50%; bottom: 20px; transform: translate(-50%, 16px); opacity: 0;
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px;
  background: var(--yellow); color: var(--ink); font-weight: 700; font-size: 14px; white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
  transition: opacity .35s ease, transform .45s var(--ease);
}
.range-cta svg { width: 16px; height: 16px; transition: transform .3s ease; }
.range-card:is(:hover, :focus-visible) .range-cta { opacity: 1; transform: translate(-50%, 0); }
.range-card:hover .range-cta svg { transform: translateX(3px); }
.range-info { padding: 22px 26px 26px; }
.range-tag { display: inline-block; margin-bottom: 10px; padding: 4px 10px; border-radius: 999px; background: var(--teal-light); color: var(--teal-dark); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.range-info h3 { font-size: 24px; margin-bottom: 6px; }
.range-info p { font-size: 15px; }
.intro-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; padding: 0 24px; }

/* ---------- Why HappieGut ---------- */
.why { padding: 90px 0; background: var(--teal-light); }
.infographic { display: flex; align-items: center; gap: 24px; margin: 40px 0; padding: 32px; border-radius: var(--radius); background: var(--teal-dark); color: var(--white); }
.infographic-icon { font-size: 48px; flex-shrink: 0; }
.infographic-tag { display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.infographic-text p { color: #DFF3F4; font-size: 17px; }
.why-copy { max-width: 820px; margin: 0 auto 50px; text-align: center; font-size: 16.5px; }
.compare { padding: 32px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.compare-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; align-items: center; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--teal-light); }
.compare-row:last-child { border-bottom: none; }
.compare-head { padding-bottom: 18px; font-size: 14px; font-weight: 700; color: var(--teal-dark); }
.compare-label { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.compare-bar { position: relative; height: 22px; border-radius: 999px; background: var(--teal-light); overflow: hidden; }
.compare-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: linear-gradient(90deg, var(--teal), var(--yellow)); }
.compare-bar b { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 11.5px; font-weight: 700; color: var(--ink); }

/* ---------- Science ---------- */
.science { padding: 90px 0; }
.science-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.science-single { grid-template-columns: 1fr; max-width: 860px; }
.science-copy p { margin-bottom: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-dark); color: var(--white); }
.footer-newsletter { background: var(--teal); }
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 44px; padding-bottom: 44px; }
.newsletter-copy h3 { color: var(--white); font-size: 26px; margin-bottom: 6px; }
.newsletter-copy p { color: #DFF3F4; font-size: 15px; }
.newsletter-form { display: flex; width: 100%; max-width: 460px; padding: 6px; border-radius: 999px; background: var(--white); box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
.newsletter-form input { flex: 1; min-width: 0; padding: 12px 18px; border: none; outline: none; background: transparent; font: 15px var(--font-body); color: var(--ink); }
.newsletter-form button { padding: 12px 26px; border: none; border-radius: 999px; background: var(--yellow); color: var(--ink); font: 700 15px var(--font-body); white-space: nowrap; cursor: pointer; transition: background .2s ease; }
.newsletter-form button:hover { background: var(--yellow-dark); }

.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; padding-top: 64px; padding-bottom: 56px; }
.footer-logo img { height: 96px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 300px; margin-bottom: 22px; color: var(--mist); font-size: 14.5px; line-height: 1.7; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); color: var(--white);
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.footer-social svg { width: 18px; height: 18px; }
.footer-social a:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); transform: translateY(-2px); }
.footer-col h4 { position: relative; margin-bottom: 22px; padding-bottom: 12px; font: 700 13px var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--white); }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 28px; height: 3px; border-radius: 3px; background: var(--yellow); }
.footer-col a { display: block; margin-bottom: 12px; color: var(--mist); font-size: 14.5px; transition: color .2s ease, transform .2s ease; }
.footer-col a:hover { color: var(--yellow); transform: translateX(3px); }
.footer-contact a, .footer-contact span { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; color: var(--mist); font-size: 14.5px; }
.footer-contact svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--yellow); }
.footer-bottom { background: rgba(0, 0, 0, .18); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; font-size: 13.5px; }
.footer-bottom p, .footer-legal a { color: #9CCBD0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-legal a:hover { color: var(--yellow); }

/* ---------- WhatsApp chat button ---------- */
.wa-float {
  position: fixed; z-index: 90;
  right: calc(20px + env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom));
  display: flex; align-items: center; height: 60px; padding: 0 14px;
  border-radius: 999px; background: #25D366; color: #fff;
  box-shadow: 0 10px 28px rgba(37, 211, 102, .45), 0 4px 10px rgba(0, 0, 0, .15);
  transition: transform .25s ease, box-shadow .25s ease;
  animation: waIn .6s 1s var(--ease) backwards;
}
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #25D366; pointer-events: none; animation: waPulse 2.2s ease-out infinite; }
.wa-float svg { width: 32px; height: 32px; flex-shrink: 0; }
.wa-label { max-width: 0; overflow: hidden; white-space: nowrap; font-size: 15px; font-weight: 700; transition: max-width .4s ease, margin .4s ease; }
.wa-float:is(:hover, :focus-visible) { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(37, 211, 102, .55), 0 6px 14px rgba(0, 0, 0, .18); }
.wa-float:is(:hover, :focus-visible) .wa-label { max-width: 140px; margin: 0 6px 0 10px; }
.wa-float:hover::before { animation: none; opacity: 0; }

/* ---------- Scroll reveal (script.js adds these classes) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Animations ---------- */
@keyframes heroIntro { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
@keyframes hintIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(245, 197, 24, .7); } 70%, 100% { box-shadow: 0 0 0 10px rgba(245, 197, 24, 0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes sheetUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes floaty { 50% { transform: translateY(-8px); } }
@keyframes waIn { from { opacity: 0; transform: scale(.5) translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes waPulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.45); opacity: 0; } }

/* ==========================================================
   Responsive
   ========================================================== */
@media (hover: none) { .range-cta { opacity: 1; transform: translate(-50%, 0); } }

@media (max-width: 1180px) { .shop-card { --cols: 3; } }
@media (max-width: 1100px) { .hero-sub { display: none; } }

/* Tablet */
@media (max-width: 960px) {
  /* header: logo + Shop Now on one row, swipeable menu below */
  .header-inner { height: auto; flex-wrap: wrap; row-gap: 4px; padding-top: 10px; }
  .logo-img { height: 48px; }
  .main-nav {
    order: 3; width: 100%; padding: 4px 0 12px;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent);
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { font-size: 14px; padding: 7px 14px; }
  section[id] { scroll-margin-top: 130px; }

  .intro { padding: 70px 0; }
  .intro-grid, .science-grid { grid-template-columns: 1fr; }
  .intro-grid { gap: 48px; margin-bottom: 80px; }
  .intro-media { width: 100%; max-width: 520px; margin: 0 auto; }
  .intro-badge { left: 12px; bottom: 24px; }
  .split-range { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .compare-row { grid-template-columns: 1fr; gap: 8px; }
  .compare-head span:not(:first-child) { display: none; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 40px; }
  .newsletter-inner { flex-direction: column; align-items: flex-start; }
  .newsletter-form { max-width: 100%; }
}

/* Phones and touch tablets: no hover, so the headline sits in a panel under the banner */
@media (max-width: 700px), (hover: none) and (max-width: 1366px) {
  .hero { display: block; height: auto; min-height: 0; }
  .hero-backdrop, .hero-hint, .hero-frame::after { display: none; }
  .hero-frame { height: auto; max-width: none; aspect-ratio: auto; overflow: visible; box-shadow: none; animation: none; }
  .hero-frame picture { height: auto; aspect-ratio: 1672 / 941; overflow: hidden; animation: heroIntro 1.2s var(--ease) both; }
  .hero:is(:hover, :focus-visible) .hero-img { transform: none; }
  .hero-panel {
    position: relative; inset: auto; margin-top: -28px;
    padding: 32px max(24px, calc((100% - 1132px) / 2)) 40px;
    border: none; border-radius: 26px 26px 0 0; background: var(--teal-dark);
    -webkit-backdrop-filter: none; backdrop-filter: none;
    box-shadow: 0 -12px 30px rgba(0, 0, 0, .12);
    opacity: 1; transform: none; pointer-events: auto;
    animation: sheetUp .8s .25s var(--ease) both;
  }
  .hero-panel-text > *, .hero-actions { opacity: 1; transform: none; animation: fadeUp .7s var(--ease) both; }
  .hero-panel-text > :nth-child(1) { animation-delay: .4s; }
  .hero-panel-text > :nth-child(2) { animation-delay: .5s; }
  .hero-panel-text > :nth-child(3) { animation-delay: .6s; display: block; }
  .hero-actions { animation-delay: .7s; }
  .hero-title { font-size: clamp(32px, 6vw, 44px); }
  .hero-sub { font-size: 16px; }
}

/* Phones */
@media (max-width: 700px) {
  .hero-frame picture { aspect-ratio: 753 / 941; }
  .hero-panel { flex-direction: column; align-items: stretch; gap: 22px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-title span { display: block; }

  .shop { padding: 56px 0 50px; }
  .shop-head { margin-bottom: 24px; }
  .shop-grid { gap: 14px; }
  .shop-card { flex-basis: calc((100% - 14px) / 2); border-radius: 18px; }
  .shop-card:hover { transform: none; }
  .shop-body { padding: 12px 12px 14px; }
  .shop-title { font-size: 14.5px; }
  .shop-desc { display: none; }
  .shop-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .shop-price { font-size: 20px; }
  .shop-buy { width: 100%; }
  .shop-badge { top: 8px; left: 8px; padding: 4px 8px; font-size: 10px; }

  .leader { padding: 56px 0 40px; }
  .stats-row { gap: 12px; }
  .stat-card { padding: 20px 10px; }
  .stat-number { font-size: 30px; }
  .stat-label { display: block; font-size: 12.5px; line-height: 1.35; }

  .intro-media::before { inset: 6% -3% -4% 6%; }
  .split-range {
    display: flex; justify-content: flex-start; gap: 16px;
    margin: 0 -24px 40px; padding: 4px 24px 18px; scroll-padding: 0 24px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .split-range::-webkit-scrollbar { display: none; }
  .range-card { flex: 0 0 80%; scroll-snap-align: start; }
  .range-card:hover { transform: none; }
  .range-info h3 { font-size: 21px; }

  .why, .science { padding: 64px 0; }
  .compare { padding: 22px 18px; }
  .compare-head { display: none; }
  .compare-row > .compare-bar { margin-left: 104px; overflow: visible; }
  .compare-row > .compare-bar::before { position: absolute; left: -104px; top: 50%; transform: translateY(-50%); width: 96px; font-size: 11.5px; font-weight: 600; line-height: 1.2; color: var(--ink-soft); }
  .compare-row > .compare-bar:nth-child(2)::before { content: 'HappieGut'; color: var(--teal-dark); font-weight: 700; }
  .compare-row > .compare-bar:nth-child(3)::before { content: 'Fermented foods'; }
  .compare-row > .compare-bar:nth-child(4)::before { content: 'Supplements'; }

  /* WhatsApp button appears once you scroll, so it never covers the hero buttons */
  .wa-float {
    height: 54px; padding: 0 12px;
    right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom));
    opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; animation: none;
    transition: opacity .35s ease, transform .35s ease;
  }
  .wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
  .wa-float svg { width: 30px; height: 30px; }
}

@media (max-width: 560px) {
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }
  .newsletter-form button { padding: 12px 18px; }
  .intro-cta .btn { width: 100%; }
}

@media (max-width: 380px) {
  .compare-row > .compare-bar { margin-left: 92px; }
  .compare-row > .compare-bar::before { left: -92px; width: 86px; font-size: 11px; }
  .stat-number { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
