/* ==========================================================================
   SugarControl — Clinical Calm design system
   Palette: #0B3D55 (deep clinical navy), #12809E (teal), #E8F4F4 (mist),
            #FF7A59 (warm coral CTA), #1A1A1A (ink), #FFFFFF
   Type: Montserrat (display/headings), Open Sans (body)
   ========================================================================== */

:root {
  --navy: #0B3D55;
  --teal: #12809E;
  --teal-light: #63B7C9;
  --mist: #EAF5F5;
  --coral: #FF7A59;
  --coral-dark: #E85C3A;
  --ink: #1A2530;
  --ink-soft: #4A5A66;
  --white: #FFFFFF;
  --border: #DCE9EA;

  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  --container: 1180px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 61, 85, 0.10);
  --shadow-lg: 0 20px 50px rgba(11, 61, 85, 0.16);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 16px;
}

h1 { font-size: 28px; font-weight: 800; }
h2 { font-size: 24px; text-align: center; }
h3 { font-size: 19px; }

p { margin: 0 0 14px; color: var(--ink-soft); }

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

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 56px 0; }
.section h2 { margin-bottom: 12px; }
.section-subnote {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 15px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  width: 100%;
  text-align: center;
}
@media (min-width: 576px) { .btn { width: auto; } }

.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(255, 122, 89, 0.35);
}
.btn-primary:hover { transform: scale(1.05); box-shadow: 0 12px 28px rgba(255, 122, 89, 0.45); background: var(--coral-dark); }
.btn-primary:active { transform: scale(0.98); }

.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-outline:hover { transform: scale(1.05); background: var(--teal); color: var(--white); }
.btn-outline:active { transform: scale(0.98); }

.btn-lg { font-size: 17px; padding: 16px 34px; }

.pulse { animation: pulseGlow 2.4s ease-in-out infinite; }
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 8px 20px rgba(255, 122, 89, 0.35); }
  50% { box-shadow: 0 8px 30px rgba(255, 122, 89, 0.6); }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease, padding 0.3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow); }

.navbar {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--navy);
}
.brand span { color: var(--coral); }

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 600;
}
.hamburger span {
  display: block;
  height: 3px;
  width: 26px;
  background: var(--navy);
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  position: fixed;
  top: 0;
  right: -100%;
  height: 100vh;
  width: 78%;
  max-width: 320px;
  background: var(--white);
  box-shadow: -10px 0 30px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
  padding: 40px;
  transition: right 0.35s ease;
  z-index: 550;
}
.nav-links.open { right: 0; }
.nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--navy);
}
.nav-cta-wrap { width: 100%; }

@media (min-width: 768px) {
  .hamburger { display: none; }
  .nav-links {
    position: static;
    height: auto;
    width: auto;
    max-width: none;
    flex-direction: row;
    align-items: center;
    box-shadow: none;
    padding: 0;
    gap: 32px;
  }
  .nav-link { font-size: 15px; }
  .nav-cta-wrap { width: auto; }
  .nav-cta { padding: 10px 24px; min-height: 40px; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--mist) 0%, var(--white) 100%);
  padding: 40px 0 56px;
  overflow: hidden;
}
.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}
@media (min-width: 768px) {
  .hero-grid { flex-direction: row; gap: 48px; }
  .hero-media, .hero-content { flex: 1; }
}

.hero-media { position: relative; text-align: center; }
.hero-media img {
  max-width: 280px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  animation: floatBottle 4.5s ease-in-out infinite;
  filter: drop-shadow(0 25px 25px rgba(11,61,85,0.25));
}
@media (min-width: 768px) { .hero-media img { max-width: 380px; } }

@keyframes floatBottle {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-16px); }
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(18,128,158,0.25) 0%, rgba(18,128,158,0) 70%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 1;
  animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--teal);
  background: var(--mist);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.hero-microcopy {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 14px;
}

/* ---------- Grids ---------- */
.grid-4, .grid-3, .grid-2 {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 576px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Why choose cards ---------- */
.badge-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.badge-card:hover { transform: scale(1.05) rotate(1deg); box-shadow: var(--shadow-lg); }
.badge-card img { margin: 0 auto 16px; }

/* ---------- Split sections ---------- */
.split {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}
@media (min-width: 768px) {
  .split { flex-direction: row; gap: 48px; }
  .split-text, .split-media { flex: 1; }
  #what-is .split { flex-direction: row-reverse; }
}
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- What is (bg) ---------- */
.what-is { background: var(--mist); }

/* ---------- Accordion ---------- */
.accordion { max-width: 760px; margin: 0 auto; }
.accordion-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--white);
}
.accordion-header {
  width: 100%;
  min-height: 56px;
  background: var(--white);
  border: none;
  text-align: left;
  padding: 16px 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.accordion-icon { color: var(--coral); font-size: 20px; transition: transform 0.3s ease; }
.accordion-item.active .accordion-icon { transform: rotate(45deg); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 20px;
}
.accordion-item.active .accordion-panel { padding: 0 20px 18px; }
.accordion-panel p { margin: 0; font-size: 15px; }

/* ---------- Reviews ---------- */
.reviews { background: var(--white); }
.review-card {
  background: var(--mist);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
}
.review-avatar {
  width: 68px; height: 68px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  border: 3px solid var(--white);
  box-shadow: var(--shadow);
}
.stars { color: var(--coral); font-size: 18px; margin-bottom: 10px; }
.review-name { font-weight: 600; color: var(--navy); margin-top: 10px; font-size: 14px; }

/* ---------- Pricing ---------- */
.pricing { background: linear-gradient(180deg, var(--navy) 0%, #0E4A65 100%); }
.pricing h2, .pricing .section-subnote { color: var(--white); }
.pricing .section-subnote { color: #BFE0E8; }

.timer-wrap { text-align: center; margin-bottom: 34px; }
.timer-label { color: #BFE0E8; font-size: 15px; margin-bottom: 8px; }
.timer {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  letter-spacing: 0.03em;
  color: var(--white);
  background: rgba(255,255,255,0.1);
  border: 2px solid var(--coral);
  border-radius: 14px;
  padding: 10px 28px;
}
@media (min-width: 768px) { .timer { font-size: 44px; padding: 12px 40px; } }

.price-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.price-card-featured {
  background: var(--mist);
  border: 3px solid var(--coral);
  transform: scale(1.02);
}
.price-label {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(18,128,158,0.1);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.price-card-featured .price-label { color: var(--coral); background: rgba(255,122,89,0.12); }
.supply { font-size: 13px; color: var(--ink-soft); margin-bottom: 14px; }
.price-card img:not(.payment-logos) { max-width: 140px; margin: 0 auto 16px; }
.price { font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--navy); margin-bottom: 4px; }
.strike { text-decoration: line-through; color: #9AA9B2; font-weight: 500; font-size: 16px; margin-right: 6px; }
.per-bottle { font-size: 13px; color: var(--ink-soft); margin-bottom: 14px; }
.badges-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 14px; }
.mini-badge {
  display: inline-block;
  background: var(--mist);
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.price-card .btn { margin-bottom: 14px; }
.payment-logos { max-width: 160px; margin: 0 auto; opacity: 0.85; }
.rating-strip { max-width: 220px; margin: 40px auto 0; }

/* ---------- Bonus ---------- */
.bonus-card {
  background: var(--mist);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.bonus-card img { border-radius: 10px; margin-bottom: 14px; }

/* ---------- Evidence ---------- */
.disclaimer-small { font-size: 13px; color: var(--ink-soft); text-align: center; max-width: 640px; margin: 24px auto 0; }

/* ---------- Guarantee ---------- */
.guarantee { background: var(--mist); }

/* ---------- Benefits ---------- */
.benefits-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.benefits-list li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  font-weight: 600;
  color: var(--navy);
  font-size: 15px;
}

/* ---------- Final CTA ---------- */
.final-cta {
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
  text-align: center;
}
.final-cta h2, .final-cta p { color: var(--white); }
.final-cta .strike { color: rgba(255,255,255,0.6); }
.final-cta-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.final-cta-img { max-width: 240px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #CBD9DF; padding: 48px 0 20px; }
.footer-grid { display: flex; flex-direction: column; gap: 32px; }
@media (min-width: 768px) { .footer-grid { flex-direction: row; justify-content: space-between; } }
.footer-brand { color: var(--white); font-size: 20px; }
.footer-brand span { color: var(--coral); }
.disclaimer-text { font-size: 13px; max-width: 420px; color: #A9BEC8; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.legal-link { font-size: 14px; color: #CBD9DF; }
.legal-link:hover { color: var(--white); text-decoration: underline; }
.link-separator { color: #4A6470; }
.social-icons { display: flex; gap: 14px; font-size: 20px; }
.copyright { text-align: center; font-size: 13px; color: #7E96A1; margin: 32px 0 0; }

@media (max-width: 767px) {
  .footer-legal-links, .social-icons { justify-content: center; }
  .footer-col { text-align: center; }
  .disclaimer-text { margin: 0 auto; }
}

/* ---------- Scroll to top ---------- */
#scrollTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--white);
  border: none;
  font-size: 22px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 400;
}
#scrollTopBtn.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Popup ---------- */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 37, 48, 0.5);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 900;
  padding: 16px;
}
.popup-overlay.show { display: flex; }
@media (min-width: 768px) { .popup-overlay { align-items: center; } }

.popup-box {
  background: var(--white);
  border-radius: 16px;
  padding: 28px 24px;
  max-width: 380px;
  width: 100%;
  position: relative;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: popupIn 0.35s ease;
}
@keyframes popupIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.popup-eyebrow { color: var(--teal); font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  font-size: 24px;
  color: var(--ink-soft);
  cursor: pointer;
}

/* ---------- Scroll reveal ---------- */
.reveal, .reveal-img, .reveal-stagger {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view, .reveal-img.in-view, .reveal-stagger.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger:nth-child(1) { transition-delay: 0s; }
.reveal-stagger:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger:nth-child(4) { transition-delay: 0.3s; }

/* ---------- Responsive type scale ---------- */
@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  h3 { font-size: 22px; }
}
@media (min-width: 1024px) {
  h1 { font-size: 46px; }
  h2 { font-size: 34px; }
}

input, select, textarea { font-size: 16px; }
