/* ===== Production site: bottle-matched brand + combined mechanics ===== */

/* Brand tokens sampled from the Super Eco label: deep navy "D-MANNOSE", band blue,
   orange-red "Super Eco", on the warm linen of the product photography. */
:root {
  --navy: #14234F;
  --navy-2: #1B2F66;
  --navy-3: #1D3A80;
  --orange: #E0501F;
  --orange-2: #F2733F;
  --orange-ink: #C4421A;
  --bg: #F7F3EB;
  --bg-soft: #F1EBDF;
  --border: #E6DDCC;
  --text: #1C2238;
  --text-muted: #5F5B52;
  --ff-head: 'Figtree', 'Segoe UI', sans-serif;
  --ff-body: 'Figtree', 'Segoe UI', sans-serif;
  --ff-label: 'Barlow Condensed', 'Arial Narrow', sans-serif;
}

body { font-size: 16.5px; }
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -.01em; }

/* Condensed label face, as in "15-DAY SUPPLY" on the bottle */
.eyebrow, .sku-meta, .sku-badge, .quiz-result-title, .config-summary-label, .hero-chip {
  font-family: var(--ff-label);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1.2px;
}
.eyebrow { font-size: 15px; color: var(--orange-ink); }
.sku-meta { font-size: 15px; color: var(--orange-ink); }
.sku-badge { font-size: 13.5px; }
.sku-badge-featured { background: var(--orange-ink); }
.text-orange, .acc-icon, .quiz-result-title, .scene-caption { color: var(--orange-ink); }
.science .eyebrow { color: var(--orange-2); }
.hero-blob { background: radial-gradient(circle, rgba(255, 196, 150, .55) 0%, transparent 70%); }
.brand-mark img { display: block; width: 40px; height: 40px; }
.brand-text { font-weight: 600; }
.brand-text strong { font-weight: 800; }

/* Hero: the two real product photos, staggered */
.hero-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; position: relative; }
.hero-pair figure {
  margin: 0; position: relative; overflow: hidden; border-radius: 22px; box-shadow: var(--shadow);
  aspect-ratio: 3 / 4.3; background: var(--bg-soft);
}
.hero-pair figure:nth-child(2) { margin-top: 40px; animation-delay: -3s; }
.hero-pair img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform: scale(1.22); transform-origin: 50% 62%; }
.nw { white-space: nowrap; }
.hero-chip {
  position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.94); color: var(--navy);
  font-size: 14px; padding: 6px 12px; border-radius: 999px;
}
@media (max-width: 760px) {
  .hero-pair { gap: 10px; }
  .hero-pair figure:nth-child(2) { margin-top: 24px; }
  .hero-chip { font-size: 12.5px; left: 8px; bottom: 8px; padding: 5px 10px; }
}

/* Pack cards: show each real photo whole instead of cropping a composite */
.sku-media { aspect-ratio: 4 / 5; }
.sku-img { transform: none; object-position: 50% 62%; }
.sku-img-7, .sku-img-15 { transform-origin: center; object-position: 50% 62%; }

/* Vitamin C card with the orange-slice crop */
.vitc-card { max-width: 720px; margin: 0 auto; overflow: hidden; padding: 0; text-align: left; }
.vitc-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 0%; display: block; }
.vitc-card .vitc-body { padding: 24px 28px 28px; }
.vitc-card h3 { font-size: 22px; margin-bottom: 8px; }
.sticky-bar-info .sb-orange { color: var(--orange-ink); }

/* Hero float + glow (Momentum) */
.float-slow { animation: floatSlow 6s ease-in-out infinite; }
@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.btn-glow { position: relative; }
.btn-glow::after {
  content: ""; position: absolute; inset: -4px; border-radius: 999px;
  background: inherit; opacity: .5; filter: blur(10px); z-index: -1;
  animation: btnPulse 2.4s ease-in-out infinite;
}
@keyframes btnPulse {
  0%, 100% { opacity: .35; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.08); }
}
.floating-wa { position: fixed; }
.floating-wa-ring {
  position: absolute; inset: 0; border-radius: 50%; background: var(--whatsapp);
  animation: ringPulse 2.2s ease-out infinite; z-index: -1;
}
@keyframes ringPulse {
  0% { transform: scale(1); opacity: .55; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* Steps line-draw connector (Momentum) */
.steps-connected { position: relative; }
.steps-line { position: absolute; top: 27px; left: 0; width: 100%; height: 40px; z-index: 0; display: none; }
@media (min-width: 981px) { .steps-line { display: block; } }
.steps-line path.animate { animation: drawLine 1.4s ease forwards; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }

/* Sticky mobile order bar (Momentum) */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -10px 30px -18px rgba(16,35,74,.35);
  padding: 12px 16px; display: none; align-items: center; justify-content: space-between; gap: 12px;
  transform: translateY(100%); transition: transform .3s ease;
}
.sticky-bar.visible { transform: translateY(0); }
.sticky-bar-info { display: flex; flex-direction: column; line-height: 1.25; }
.sticky-bar-info strong { font-family: var(--ff-head); font-size: 14px; color: var(--navy); }
.sticky-bar-info span { font-size: 11.5px; color: var(--text-muted); }
.sticky-bar .btn { flex-shrink: 0; }
@media (max-width: 760px) {
  .sticky-bar { display: flex; }
  body { padding-bottom: 74px; }
}

/* Bacteria / D-Mannose animated scene (Story) */
.scene-wrap { background: var(--bg-soft); border-radius: 24px; padding: 20px; }
.scene { width: 100%; height: auto; }
.scene-wall { fill: #d8e3fb; stroke: var(--navy-3); stroke-width: 2; transition: fill .5s ease; }
.scene-caption { font: 700 11px var(--ff-head); fill: var(--orange); letter-spacing: .5px; }
.scene-bacteria { transition: transform .8s cubic-bezier(.34,1.4,.64,1), opacity .6s ease; }
.scene-bacteria circle { fill: #d1483a; transition: fill .6s ease, stroke .6s ease, stroke-width .6s ease; }
.scene-bacteria line { stroke: #d1483a; stroke-width: 2.5; stroke-linecap: round; transition: stroke .6s ease, opacity .6s ease; }
.scene-bacteria.b1 { transform: translate(40px, 40px); }
.scene-bacteria.b2 { transform: translate(70px, 90px); }
.scene-bacteria.b3 { transform: translate(35px, 140px); }
.scene-bacteria.b4 { transform: translate(90px, 175px); }
.scene[data-state="1"] .b1 { transform: translate(150px, 40px); }
.scene[data-state="1"] .b2 { transform: translate(170px, 90px); }
.scene[data-state="1"] .b3 { transform: translate(150px, 140px); }
.scene[data-state="1"] .b4 { transform: translate(175px, 175px); }
.scene[data-state="2"] .b1 { transform: translate(120px, 40px); }
.scene[data-state="2"] .b2 { transform: translate(140px, 90px); }
.scene[data-state="2"] .b3 { transform: translate(120px, 140px); }
.scene[data-state="2"] .b4 { transform: translate(145px, 175px); }
.scene[data-state="2"] .scene-bacteria circle { fill: var(--orange); stroke: #ffd7bd; stroke-width: 4; }
.scene[data-state="2"] .scene-bacteria line { opacity: 0; }
.scene[data-state="3"] .scene-bacteria { transform: translate(-40px, 260px) !important; opacity: 0; }
.scene[data-state="3"] .scene-wall { fill: #c7f3e2; }

.story-layout { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 981px) { .story-layout { grid-template-columns: .85fr 1.15fr; } }

/* Quiz (Story mechanic, canonical navy/orange colors) */
.quiz-card {
  max-width: 620px; margin: 0 auto; background: var(--bg-soft); border-radius: 26px;
  padding: 36px 30px; position: relative; overflow: hidden;
}
.quiz-q { font-family: var(--ff-head); font-weight: 700; font-size: 19px; color: var(--navy); text-align: center; margin-bottom: 22px; }
.quiz-opts { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 520px) { .quiz-opts { flex-direction: row; } }
.quiz-opt {
  flex: 1; padding: 16px 18px; border-radius: 14px; border: 2px solid var(--border); background: #fff;
  font-family: var(--ff-body); font-weight: 700; font-size: 14.5px; color: var(--navy); cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.quiz-opt:hover { border-color: var(--orange); transform: translateY(-2px); background: #fff7f2; }
.quiz-result { text-align: center; position: relative; }
.quiz-result-title { display: block; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--orange); margin-bottom: 6px; }
.quiz-result h3 { font-size: 24px; margin-bottom: 8px; animation: resultPop .5s cubic-bezier(.34,1.56,.64,1); }
.quiz-result p { color: var(--text-muted); margin-bottom: 18px; }
@keyframes resultPop { 0% { transform: scale(.7); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.quiz-restart {
  display: block; margin: 12px auto 0; background: none; border: none; color: var(--text-muted);
  font-weight: 700; font-size: 13px; text-decoration: underline; cursor: pointer;
}
.quiz-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.quiz-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: background .2s ease, transform .2s ease; }
.quiz-dot.active { background: var(--orange); transform: scale(1.3); }
.quiz-burst { position: absolute; top: -10px; left: 50%; width: 0; height: 0; pointer-events: none; }
.quiz-burst span { position: absolute; width: 8px; height: 8px; border-radius: 2px; opacity: 0; background: var(--orange); }
.quiz-burst span:nth-child(3) { background: var(--navy-3); }
.quiz-burst span:nth-child(5) { background: var(--orange-2); }
.quiz-burst.fire span { animation: burstFly .9s ease-out forwards; }
.quiz-burst span:nth-child(1) { --tx: -60px; --ty: -70px; }
.quiz-burst span:nth-child(2) { --tx: -20px; --ty: -90px; }
.quiz-burst span:nth-child(3) { --tx: 20px; --ty: -85px; }
.quiz-burst span:nth-child(4) { --tx: 60px; --ty: -65px; }
.quiz-burst span:nth-child(5) { --tx: -40px; --ty: -50px; }
.quiz-burst span:nth-child(6) { --tx: 40px; --ty: -55px; }
@keyframes burstFly { 0% { opacity: 1; transform: translate(0, 0) rotate(0deg); } 100% { opacity: 0; transform: translate(var(--tx), var(--ty)) rotate(220deg); } }

.or-divider { display: flex; align-items: center; gap: 14px; max-width: 620px; margin: 30px auto; color: var(--text-muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* Configurator (Premium mechanic, canonical colors) */
.config-grid { max-width: none; width: 100%; }
.config-card { cursor: pointer; border: 2px solid var(--border); transition: border-color .2s ease, transform .2s ease; }
.config-card:hover { transform: translateY(-3px); }
.config-card.selected { border-color: var(--orange); box-shadow: var(--shadow); }
.config-radio { display: flex; align-items: center; gap: 10px; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--text-muted); }
.config-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; position: relative; }
.config-card.selected .config-dot { border-color: var(--orange); }
.config-card.selected .config-dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--orange); }
.config-card.selected .config-radio { color: var(--navy); }
.config-summary {
  max-width: 620px; margin: 24px auto 0; background: var(--navy); color: #eafaf6; border-radius: 18px;
  padding: 22px 26px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow);
  position: sticky; bottom: 16px;
}
.config-summary-label { font-size: 11.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #ffd9c9; }
.config-summary-body strong { display: block; font-family: var(--ff-head); font-size: 19px; margin-bottom: 4px; }
.config-summary-body p { font-size: 13px; color: #bcd8d4; }

.pack-area { position: relative; }
@media (max-width: 760px) { .config-summary { bottom: 88px; } }

/* Safety callout (calm, static) */
.safety-callout {
  max-width: 720px; margin: 0 auto; background: var(--bg); border: 1px solid var(--border);
  border-left: 4px solid var(--navy-3); border-radius: var(--radius-sm); padding: 26px 30px; text-align: left;
}
.safety-callout h2 { font-size: 22px; margin-bottom: 10px; }
.safety-callout p { color: var(--text-muted); margin-bottom: 16px; }

/* Trust facts strip (Real Proof, no testimonials) */
.trust-facts { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin-top: 24px; }
.trust-fact { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; color: var(--navy-2); background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; }

/* Evidence table (science page) */
.evidence-table { width: 100%; border-collapse: collapse; margin-top: 24px; }
.evidence-table th, .evidence-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: top; }
.evidence-table th { font-family: var(--ff-head); color: var(--navy); font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; }
.evidence-table td:first-child { font-weight: 700; color: var(--navy-2); }

/* Safety list page */
.safety-list { max-width: 720px; margin: 24px auto 0; display: flex; flex-direction: column; gap: 14px; }
.safety-list-item { display: flex; gap: 14px; align-items: flex-start; background: var(--bg); border-radius: var(--radius-sm); padding: 16px 20px; }
.safety-list-item .num { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }

/* Evidence stats: three fixed figures, big and readable */
.science-wrap .science-copy { max-width: 760px; }
.stat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.stat-tile {
  position: relative; overflow: hidden; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.18); border-radius: 20px; padding: 32px 26px 26px;
}
.stat-tile::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: var(--orange); }
.stat-num {
  display: flex; align-items: baseline; gap: 6px; color: #fff; font-family: var(--ff-head); font-weight: 800;
  font-size: clamp(56px, 6.4vw, 84px); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.stat-unit { font-size: .38em; font-weight: 700; letter-spacing: 0; color: var(--orange-2); }
.science .stat-label {
  margin: 18px 0 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.16);
  font-size: 16px; line-height: 1.5; color: #E3E9F8;
}
.stat-label::first-letter { text-transform: uppercase; }
@media (max-width: 860px) {
  .stat-tiles { grid-template-columns: 1fr; gap: 14px; margin-top: 32px; }
  .stat-tile { padding: 28px 22px 22px; }
  .stat-num { font-size: 60px; }
}

/* Sources list */
.sources-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.sources-list a { color: var(--navy-2); text-decoration: underline; text-underline-offset: 2px; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  .float-slow, .btn-glow::after, .floating-wa-ring, .scene-bacteria { animation: none !important; transition: none !important; }
}
