/* SUNDUST — black & white science, with a watermelon-gradient pulse. */
:root {
  --ink: #0b0b0b;
  --paper: #ffffff;
  --soft: #f4f4f1;
  --muted: #6d6d6a;
  --line: #e4e4e0;
  --line-dark: #262626;
  --grad: linear-gradient(90deg, #ff2d55 0%, #ff6a1f 32%, #ffc21a 64%, #2fbf4a 100%);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.eyebrow {
  font: 600 12px/1 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--grad); border-radius: 2px; }
.serif { font-family: var(--serif); font-weight: 400; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -0.02em; }
h1 { font: 400 clamp(52px, 8vw, 112px)/0.92 var(--serif); letter-spacing: -0.03em; }
h2 { font: 400 clamp(40px, 5.4vw, 72px)/0.98 var(--serif); }
h3 { font: 600 20px/1.25 var(--sans); letter-spacing: -0.01em; }
em { font-style: italic; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 30px; border-radius: 999px;
  font: 600 15px/1 var(--sans); letter-spacing: 0.01em; text-decoration: none;
  border: 1.5px solid var(--ink); transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--paper); position: relative; isolation: isolate; }
.btn-dark::after {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; z-index: -1;
  background: var(--grad); opacity: 0; filter: blur(14px); transition: opacity .25s ease;
}
.btn-dark:hover::after { opacity: .55; }
.btn-light { background: transparent; color: var(--ink); }
.btn-light:hover { background: var(--ink); color: var(--paper); }
.on-dark .btn-light { color: var(--paper); border-color: var(--paper); }
.on-dark .btn-light:hover { background: var(--paper); color: var(--ink); }
.btn-white { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* Review badge */
.reviews-badge { display: inline-flex; align-items: center; gap: 12px; padding: 9px 16px 9px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 14px; }
.stars-row { position: relative; display: inline-flex; line-height: 0; }
.stars-row svg { width: 17px; height: 17px; margin-right: 2px; }
.stars-base svg { fill: #dcdcd7; }
.stars-fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; display: flex; }
.stars-fill svg { fill: var(--ink); flex: none; }
.reviews-text { color: #444; }
.hero-reviews { margin-bottom: 26px; }
.reviews-text b { color: var(--ink); }

/* Announcement ticker */
.ticker { background: var(--ink); color: var(--paper); overflow: hidden; font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.ticker-track { display: flex; gap: 48px; padding: 12px 0; width: max-content; animation: scroll 38s linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; gap: 48px; white-space: nowrap; }
.ticker-track span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font: 800 22px/1 var(--sans); letter-spacing: .22em; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.logo-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 18px rgba(255,106,31,.6); }
.logo-mark { width: 26px; height: 26px; }
.footer .logo-mark { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 34px; font-size: 15px; font-weight: 500; }
.nav-links a { text-decoration: none; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--grad); transition: right .25s ease; }
.nav-links a:hover::after { right: 0; }
.nav .btn { height: 44px; padding: 0 22px; font-size: 14px; }

/* Hero */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { margin: 24px 0 28px; }
.hero-sub { font-size: 20px; line-height: 1.5; color: #333; max-width: 470px; margin: 0 0 36px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-proof { display: flex; align-items: center; gap: 14px; margin-top: 40px; font-size: 14px; color: var(--muted); }
.stars { letter-spacing: 2px; color: var(--ink); }

.stage {
  position: relative; aspect-ratio: 1 / 1.05; border-radius: 32px;
  background: var(--soft); display: grid; place-items: center; overflow: hidden;
}
.stage::before {
  content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 200deg, #ff2d55, #ff6a1f, #ffc21a, #2fbf4a, #ff2d55);
  filter: blur(70px); opacity: .55; animation: spin 18s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.stage img { position: relative; width: 66%; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px) rotate(-1.5deg); } }
.gummy {
  position: absolute; width: 38px; aspect-ratio: 1; border-radius: 9px;
  background: linear-gradient(145deg, #ff5a76, #e0123d); box-shadow: inset 0 -6px 10px rgba(0,0,0,.18), inset 0 4px 8px rgba(255,255,255,.35), 0 12px 24px rgba(224,18,61,.3);
  animation: float 7s ease-in-out infinite;
}
.g1 { top: 12%; left: 10%; transform: rotate(-18deg); }
.g2 { top: 20%; right: 9%; width: 30px; animation-delay: -2s; }
.g3 { bottom: 14%; left: 14%; width: 28px; animation-delay: -4s; }
.g4 { bottom: 10%; right: 16%; width: 42px; animation-delay: -1s; }
.stage.photo::before { display: none; }
.stage.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: none; }

/* Full-bleed sunlight banner */
.banner { position: relative; height: clamp(360px, 46vw, 620px); overflow: hidden; display: flex; align-items: center; }
.banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.banner-copy { position: relative; }
.banner-copy h2 { margin-top: 18px; max-width: 520px; }
.banner-copy .eyebrow { color: #555; }

/* Photo gallery under the timeline */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 88px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--soft); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 16px; bottom: 16px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  padding: 9px 14px; border-radius: 999px; font: 600 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
}

.stage-tag {
  position: absolute; left: 22px; bottom: 22px; background: var(--paper); border-radius: 999px;
  padding: 10px 16px; font: 600 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.stage-tag i { width: 8px; height: 8px; border-radius: 50%; background: #2fbf4a; box-shadow: 0 0 0 4px rgba(47,191,74,.18); }

/* Stats strip */
.stats { border-block: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 40px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font: 400 52px/1 var(--serif); letter-spacing: -.02em; margin-bottom: 10px; }
.stat span { font-size: 14px; color: var(--muted); }

/* Sections */
section { position: relative; }
.section { padding: 128px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 64px; }
.section-head h2 { max-width: 720px; margin-top: 18px; }
.section-head p { max-width: 360px; color: var(--muted); margin: 0; }

/* Dark science block */
.on-dark { background: var(--ink); color: var(--paper); }
.on-dark .eyebrow, .on-dark .section-head p { color: #a3a3a0; }
.molecules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.molecule { background: var(--ink); padding: 40px 34px 44px; position: relative; transition: background .3s ease; }
.molecule:hover { background: #121212; }
.molecule .dose { font: 400 64px/1 var(--serif); margin: 34px 0 6px; letter-spacing: -.02em; }
.molecule .unit { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #a3a3a0; }
.molecule p { color: #bdbdb9; margin: 22px 0 0; font-size: 16px; }
.molecule .bar { height: 3px; border-radius: 3px; background: var(--grad); width: 44px; transition: width .4s ease; }
.molecule:hover .bar { width: 100%; }
.molecule .tag { position: absolute; top: 40px; right: 34px; font: 500 12px/1 ui-monospace, Menlo, monospace; color: #7b7b78; }
.science-note { margin-top: 28px; font-size: 13px; color: #8a8a87; }

/* Timeline */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; padding-top: 44px; }
.timeline::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--line); border-radius: 3px; }
.timeline::after { content: ""; position: absolute; top: 0; left: 0; height: 3px; width: 0; background: var(--grad); border-radius: 3px; transition: width 1.8s cubic-bezier(.2,.7,.2,1); }
.timeline.in::after { width: 100%; }
.step { position: relative; }
.step::before { content: ""; position: absolute; top: -52px; left: 0; width: 19px; height: 19px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); }
.step .when { font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.step h3 { font: 400 40px/1.05 var(--serif); margin: 14px 0 14px; letter-spacing: -.01em; }
.step p { color: #444; margin: 0; max-width: 340px; }
.swatches { display: flex; gap: 6px; margin-top: 22px; }
.swatches i { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(0,0,0,.06); }

/* Quiz band */
.quiz-band { padding: 0 0 128px; }
.quiz-card {
  border-radius: 36px; padding: 80px 64px; position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center;
}
.quiz-card::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 480px; aspect-ratio: 1; border-radius: 50%;
  background: var(--grad); filter: blur(90px); opacity: .45;
}
.quiz-card h2 { position: relative; margin: 18px 0 20px; }
.quiz-card p { position: relative; color: #bdbdb9; max-width: 520px; margin: 0 0 34px; }
.quiz-card .btn { position: relative; }
.quiz-preview { position: relative; display: grid; gap: 10px; }
.quiz-preview div {
  border: 1px solid #333; border-radius: 16px; padding: 18px 20px; display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.03); font-size: 15px; transition: border-color .2s, transform .2s;
}
.quiz-preview div:hover { border-color: #888; transform: translateX(-4px); }
.quiz-preview i { width: 26px; height: 26px; border-radius: 50%; flex: none; }

/* Shop */
.shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.shop-media { position: sticky; top: 100px; }
.shop-media .stage { aspect-ratio: 1; }
.plan-list { display: grid; gap: 10px; margin: 32px 0 24px; }
.plan {
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center;
  border: 1px solid var(--line); border-radius: 0; padding: 22px 24px; cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease; background: var(--paper);
}
.plan:hover { border-color: #a9a9a5; }
.plan input { appearance: none; width: 18px; height: 18px; border: 1px solid #a9a9a5; border-radius: 50%; margin: 0; display: grid; place-items: center; }
.plan input:checked { border-color: var(--ink); }
.plan input:checked::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.plan:has(input:checked) { border-color: var(--ink); background: #fbfaf8; }
.plan .pill { border-radius: 0; }
.plan-name { font-weight: 600; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan-desc { font-size: 14px; color: var(--muted); margin-top: 3px; }
.plan-price { text-align: right; font-weight: 600; }
.plan-price s { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }
.pill { font: 700 10px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; color: var(--ink); background: var(--grad); }
.pill-outline { background: transparent; border: 1px solid var(--ink); }
.shop .btn-dark { width: 100%; height: 62px; font-size: 16px; }
.renew-note { font-size: 13px; color: var(--muted); margin: 14px 0 0; text-align: center; }
.perks { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; font-size: 15px; }
.perks li { display: flex; gap: 10px; align-items: center; }
.perks li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.shop h2 { font-size: clamp(40px, 4.6vw, 60px); margin: 16px 0 16px; }
.shop .lede { color: #444; margin: 0; }

/* Compare */
.compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { padding: 22px 20px; text-align: center; border-bottom: 1px solid var(--line); }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { font: 600 13px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.compare thead th.us { color: var(--ink); }
/* The SUNDUST column: warm tint, gradient cap, gradient checks */
.compare td.us { background: #fff3ea; font-weight: 600; border-bottom-color: #f6dccb; }
.compare thead th.us { background: #fff3ea; border-radius: 18px 18px 0 0; position: relative; overflow: hidden; }
.compare thead th.us::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad); }
.compare tbody tr:last-child td.us { border-radius: 0 0 18px 18px; }
.compare td.us .yes { background: linear-gradient(135deg, #ff2d55, #ff6a1f 55%, #ffb21a); color: var(--paper); box-shadow: 0 4px 12px rgba(255,106,31,.35); }
.yes { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 14px; }
.no { color: #b4b4b0; font-size: 20px; }

/* FAQ */
.faq { max-width: 860px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 28px 0; display: flex; justify-content: space-between; gap: 24px; font: 400 28px/1.2 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 30px/1 var(--sans); transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 28px; color: #444; max-width: 700px; }

/* Footer */
.footer { padding: 96px 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 64px; border-bottom: 1px solid var(--line-dark); }
.footer .logo { color: var(--paper); font-size: 26px; }
.footer p, .footer a { color: #a3a3a0; font-size: 15px; text-decoration: none; }
.footer a:hover { color: var(--paper); }
.footer h4 { margin: 0 0 18px; font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--paper); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.signup { display: flex; margin-top: 24px; border: 1px solid #333; border-radius: 999px; padding: 5px; max-width: 380px; }
.signup input { flex: 1; background: none; border: 0; color: var(--paper); padding: 0 16px; font: inherit; font-size: 15px; outline: none; min-width: 0; }
.signup .btn { height: 44px; padding: 0 20px; }
.disclaimer { font-size: 12px !important; line-height: 1.6; color: #77777a !important; margin: 32px 0 0; max-width: 900px; }
.footer { overflow: hidden; }
.footer-word { font: 800 clamp(48px, 15vw, 280px)/.8 var(--sans); letter-spacing: .06em; margin: 72px 0 0; text-align: center; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero { padding: 40px 0 72px; }
  .hero-grid, .shop-grid, .quiz-card { grid-template-columns: 1fr; }
  .shop-media { position: static; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .molecules, .timeline { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; margin-top: 56px; }
  .gallery figure:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .banner { height: 420px; align-items: flex-start; padding-top: 48px; }
  .banner > img { object-position: 78% center; }
  .timeline { padding-top: 0; padding-left: 40px; gap: 48px; }
  .timeline::before, .timeline::after { top: 0; bottom: 0; left: 8px; right: auto; width: 3px; height: auto; }
  .timeline::after { height: 0; transition: height 1.8s cubic-bezier(.2,.7,.2,1); }
  .timeline.in::after { height: 100%; width: 3px; }
  .step::before { top: 4px; left: -41px; }
  .section { padding: 88px 0; }
  .section-head { flex-direction: column; align-items: start; margin-bottom: 44px; }
  .quiz-card { padding: 56px 28px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
  .compare th, .compare td { padding: 16px 8px; font-size: 14px; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .perks { grid-template-columns: 1fr; }
  .stat { padding: 28px 16px; }
  .stat b { font-size: 40px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .faq summary { font-size: 22px; }
}
