:root {
  --purple: #6f1fb5;
  --purple-deep: #3c146a;
  --magenta: #d91cc3;
  --magenta-soft: #f7daf5;
  --green: #73b72e;
  --green-deep: #4f8a20;
  --ink: #21192b;
  --muted: #685f70;
  --line: #ece4f2;
  --paper: #ffffff;
  --soft: #f8f5fa;
  --shadow: 0 20px 60px rgba(72, 28, 108, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background: var(--paper);
}

body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  user-select: none;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--purple);
  border-radius: var(--radius);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(111, 31, 181, 0.12);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  width: 170px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  color: #fff;
  text-decoration: none;
  font-weight: 850;
  line-height: 1.1;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--purple), var(--magenta));
  box-shadow: 0 14px 30px rgba(111, 31, 181, 0.24);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(111, 31, 181, 0.3);
}

.button-small {
  min-height: 42px;
  padding: 11px 16px;
  font-size: 0.92rem;
}

.button-secondary {
  color: var(--purple-deep);
  background: #fff;
  border: 1px solid rgba(111, 31, 181, 0.2);
  box-shadow: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 54px;
  background:
    radial-gradient(circle at 78% 12%, rgba(217, 28, 195, 0.16), transparent 36%),
    radial-gradient(circle at 10% 88%, rgba(115, 183, 46, 0.13), transparent 34%),
    linear-gradient(180deg, #fff, #fbf6fd 78%, #fff);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: 48px;
}

.rating-pill,
.eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 14px;
  color: var(--purple);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rating-pill {
  padding: 8px 12px;
  color: var(--purple-deep);
  background: var(--magenta-soft);
  border: 1px solid rgba(217, 28, 195, 0.2);
  border-radius: 999px;
  letter-spacing: 0;
  text-transform: none;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(2.5rem, 7vw, 4.05rem);
  line-height: 0.96;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.05rem);
  line-height: 1.05;
}

h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.2;
}

.hero-subhead {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.trust-badges {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
  max-width: 680px;
}

.trust-badges span {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  text-align: center;
  color: var(--purple-deep);
  font-size: 0.84rem;
  font-weight: 850;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-product {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 500px;
}

.product-glow {
  position: absolute;
  width: min(480px, 86vw);
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(111, 31, 181, 0.16), rgba(217, 28, 195, 0.18), rgba(115, 183, 46, 0.13));
  border-radius: 50%;
  filter: blur(6px);
}

.hero-product img {
  position: relative;
  width: min(430px, 88vw);
  height: auto;
  filter: drop-shadow(0 30px 40px rgba(60, 20, 106, 0.2));
}

.hero-note {
  position: absolute;
  right: 4%;
  bottom: 12%;
  width: min(210px, 48vw);
  padding: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-note strong,
.hero-note span {
  display: block;
}

.hero-note strong {
  color: var(--purple);
  font-size: 1.05rem;
}

.hero-note span {
  color: var(--muted);
  font-size: 0.88rem;
}

.marquee {
  overflow: hidden;
  color: #fff;
  background: linear-gradient(90deg, var(--purple-deep), var(--purple), var(--magenta));
}

.marquee-track {
  width: max-content;
  display: flex;
  gap: 34px;
  padding: 15px 0;
  animation: marquee 28s linear infinite;
}

.marquee span {
  font-weight: 850;
  white-space: nowrap;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.section {
  padding: 84px 0;
}

.section:nth-of-type(odd) {
  background: var(--soft);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 46px;
  align-items: center;
}

.split p,
.section-heading p,
.guarantee p,
.final-cta p {
  color: var(--muted);
  font-size: 1.04rem;
}

.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--purple);
  font-weight: 850;
}

.formula-card,
.price-card,
.ingredient-card,
.review-card,
.icon-grid article,
.timeline article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(72, 28, 108, 0.08);
}

.formula-card {
  overflow: hidden;
}

.formula-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.formula-card ul {
  margin: 0;
  padding: 22px 24px 24px;
  color: var(--muted);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 34px 22px 24px;
  text-align: center;
}

.price-card.featured {
  border-color: rgba(217, 28, 195, 0.42);
  transform: translateY(-10px);
  box-shadow: 0 24px 70px rgba(111, 31, 181, 0.18);
}

.save-badge,
.ribbon {
  position: absolute;
  top: 14px;
  padding: 7px 10px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  border-radius: 999px;
}

.save-badge {
  left: 14px;
  background: var(--purple);
}

.ribbon {
  right: 14px;
  background: var(--magenta);
}

.ribbon.green {
  background: var(--green-deep);
}

.price-card img {
  width: min(280px, 100%);
  height: 230px;
  object-fit: contain;
  margin: 16px 0 12px;
}

.per-bottle {
  margin: 12px 0 4px;
  color: var(--purple);
  font-size: 2.55rem;
  font-weight: 950;
  line-height: 1;
}

.per-bottle span {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 750;
}

.total,
.regular,
.shipping,
.guarantee-line {
  margin: 3px 0;
  color: var(--muted);
}

.shipping {
  color: var(--green-deep);
  font-weight: 900;
}

.price-card .button {
  width: 100%;
  margin-top: 18px;
}

.guarantee-line {
  margin-top: 12px;
  font-size: 0.88rem;
}

.ingredient-grid,
.review-grid,
.icon-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ingredient-card {
  min-height: 220px;
  padding: 22px;
}

.ingredient-card p,
.review-card p,
.timeline p {
  color: var(--muted);
}

.ingredient-card.image-card {
  overflow: hidden;
  padding: 0;
}

.ingredient-card.image-card img {
  width: 100%;
  height: 142px;
  object-fit: cover;
}

.ingredient-card.image-card h3,
.ingredient-card.image-card p {
  margin-left: 22px;
  margin-right: 22px;
}

.ingredient-card.image-card h3 {
  margin-top: 20px;
}

.ingredient-card.image-card p {
  margin-bottom: 22px;
}

.icon-grid article {
  min-height: 126px;
  padding: 20px;
}

.icon-grid span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  background: var(--green);
  border-radius: 50%;
}

.review-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-card {
  padding: 24px;
}

.stars {
  margin: 0 0 12px;
  color: #f2a900;
  letter-spacing: 0;
}

.review-card span {
  display: inline-flex;
  padding: 7px 10px;
  color: var(--purple-deep);
  font-size: 0.8rem;
  font-weight: 900;
  background: var(--magenta-soft);
  border-radius: 999px;
}

.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

th,
td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: #fff;
  background: var(--purple);
  font-size: 1.05rem;
}

th:first-child {
  background: linear-gradient(135deg, var(--purple), var(--magenta));
}

td:first-child {
  color: var(--purple-deep);
  font-weight: 850;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.timeline article {
  padding: 22px;
}

.timeline span {
  color: var(--magenta);
  font-weight: 950;
}

.guarantee-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 42px;
  color: #fff;
  background: linear-gradient(135deg, var(--purple-deep), var(--purple), var(--magenta));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.guarantee-panel .eyebrow,
.guarantee-panel p {
  color: #fff;
}

.guarantee-panel .button {
  flex: 0 0 auto;
  color: var(--purple-deep);
  background: #fff;
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
}

details {
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

summary {
  min-height: 60px;
  display: flex;
  align-items: center;
  padding: 16px 20px;
  font-weight: 900;
  cursor: pointer;
}

details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.final-cta {
  padding: 72px 0;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(rgba(60, 20, 106, 0.78), rgba(111, 31, 181, 0.78)),
    url("assets/SlimMetrix-6-front.webp") center / contain no-repeat,
    var(--purple-deep);
}

.final-cta .shell {
  max-width: 780px;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.86);
}

.site-footer {
  padding: 36px 0 96px;
  color: #fff;
  background: #1f1429;
}

.footer-disclaimer {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.footer-links button {
  padding: 0;
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
  text-decoration: underline;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 28px rgba(60, 20, 106, 0.15);
  backdrop-filter: blur(16px);
}

.mobile-cta span {
  color: var(--purple-deep);
  font-weight: 950;
}

.modal-overlay,
.exit-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(24, 14, 33, 0.62);
}

.modal-overlay[hidden],
.exit-overlay[hidden] {
  display: none;
}

.modal,
.exit-modal {
  position: relative;
  width: min(640px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  padding: 30px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.24);
}

.modal h2,
.exit-modal h2 {
  padding-right: 34px;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
}

.modal p,
.exit-modal p {
  color: var(--muted);
}

.modal-close,
.exit-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  color: var(--ink);
  font-size: 1.7rem;
  line-height: 1;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.exit-modal {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.exit-modal img {
  width: 190px;
  height: 190px;
  object-fit: contain;
}

.small-print {
  font-size: 0.8rem;
}

@media (max-width: 960px) {
  .hero-grid,
  .split,
  .guarantee-panel {
    grid-template-columns: 1fr;
  }

  .pricing-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .price-card.featured {
    transform: none;
  }

  .ingredient-grid,
  .icon-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guarantee-panel {
    display: grid;
    padding: 30px 22px;
  }

  .guarantee-panel .button {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .nav {
    min-height: 66px;
  }

  .brand img {
    width: 142px;
  }

  .nav-links,
  .site-header .button {
    display: none;
  }

  .hero {
    padding: 42px 0 36px;
  }

  .hero-grid {
    gap: 28px;
  }

  .hero-subhead {
    font-size: 1.03rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .trust-badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-product {
    min-height: 390px;
  }

  .hero-note {
    right: 0;
    bottom: 4%;
  }

  .section {
    padding: 58px 0;
  }

  .ingredient-grid,
  .icon-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .mobile-cta {
    display: flex;
  }

  .exit-modal {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .exit-modal img {
    margin: 0 auto;
  }
}

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