:root {
  --bg: #faf7f5;
  --ink: #241c1a;
  --muted: #6f5e59;
  --rose: #c4898c;
  --rose-deep: #7d4e52;
  --line: rgba(36, 28, 26, 0.12);
  --shadow: 0 24px 70px rgba(70, 42, 38, 0.12);
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-padding-top: 76px;
}

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }

button, input { font: inherit; color: inherit; }

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

img, svg { display: block; max-width: 100%; }

::selection {
  background: #e7c8c4;
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--rose-deep);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 90;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 999px;
}

.skip:focus { top: 16px; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 12px;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 22px 32px;
  pointer-events: none;
  color: var(--ink);
}

.topbar-brand,
.footer-brand {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 0.02em;
  margin: 0;
}

.topbar-brand span,
.footer-brand span {
  font-style: italic;
}

.topbar-meta {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.scrub-track {
  position: relative;
  height: 800vh;
  height: 800dvh;
  background: var(--bg);
}

.scrub-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
}

#film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.film-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(250, 247, 245, 0.5) 0%, rgba(250, 247, 245, 0) 12%),
    linear-gradient(90deg, rgba(250, 247, 245, 0.34), rgba(250, 247, 245, 0) 14%, rgba(250, 247, 245, 0) 86%, rgba(250, 247, 245, 0.34)),
    radial-gradient(125% 85% at 50% 46%, transparent 52%, rgba(250, 247, 245, 0.46) 100%),
    linear-gradient(180deg, transparent 84%, #faf7f5 100%);
}

.beat {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.beat-place { pointer-events: none; }

.beat-inner { pointer-events: auto; }

.beat-hero .beat-place {
  position: absolute;
  left: 7vw;
  top: 18vh;
  top: 18dvh;
  width: min(640px, 46vw);
}

.beat-hero h1 {
  font-size: clamp(58px, 6vw, 96px);
  line-height: 0.88;
  letter-spacing: -0.03em;
  max-width: 9em;
}

.beat-hero h1 em {
  font-style: italic;
  font-weight: 500;
}

.lede {
  margin-top: 18px;
  max-width: 34ch;
  font-size: 18px;
  font-weight: 300;
  color: var(--ink);
}

.scroll-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-hint i {
  position: relative;
  width: 52px;
  height: 1px;
  background: rgba(36, 28, 26, 0.25);
  overflow: hidden;
}

.scroll-hint i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  background: var(--rose-deep);
  animation: hint 1.8s ease-in-out infinite;
}

@keyframes hint {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}

.beat-science .beat-place,
.beat-lift .beat-place {
  position: absolute;
  top: 50%;
  width: min(400px, 34vw);
  transform: translateY(-50%);
}

.beat-science .beat-place { left: 5.5vw; }
.beat-lift .beat-place { right: 5.5vw; }

.beat-science .beat-inner,
.beat-lift .beat-inner,
.beat-climax .beat-inner {
  opacity: 0;
}

.glass,
.sheet {
  background: rgba(250, 247, 245, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.glass {
  border-radius: 24px;
  padding: 28px 26px 24px;
}

.glass h2,
.checkout h2 {
  font-size: clamp(36px, 3.5vw, 54px);
  line-height: 0.94;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.glass p:last-child {
  color: var(--muted);
  font-size: 16px;
  max-width: 36ch;
}

.beat-climax .beat-place {
  position: absolute;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  width: min(540px, calc(100% - 32px));
  transform: translateX(-50%);
}

#climax-place[inert] { pointer-events: none; }

.checkout {
  border-radius: 28px;
  padding: 26px 24px 22px;
  text-align: center;
  max-height: calc(100dvh - 108px);
  overflow: auto;
}

.checkout .eyebrow { margin-bottom: 8px; }

.bundles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0 4px;
}

.bundles button {
  position: relative;
  text-align: left;
  border-radius: 18px;
  padding: 14px 14px 12px;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(36, 28, 26, 0.1);
  min-height: 96px;
}

.bundles button[aria-checked="true"] {
  background: #fff;
  border-color: var(--ink);
  box-shadow: 0 8px 24px rgba(36, 28, 26, 0.06);
}

.bundle-name {
  display: block;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
  margin-bottom: 6px;
}

.bundle-price {
  display: block;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.bundle-meta {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.save-chip {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--rose-deep);
  color: #fff;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  list-style: none;
  padding: 0;
  margin: 16px 0 14px;
}

.trust li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.trust svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--rose-deep);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.due {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}

.due strong {
  color: var(--ink);
  font-weight: 500;
}

.btn-fill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
}

.btn-fill:hover { background: #3a2d2a; }

.pill-anchor {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 40;
}

body:not(.is-ready) .pill-anchor {
  opacity: 0;
  pointer-events: none;
}

.buy-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  letter-spacing: 0.06em;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 16px 40px rgba(36, 28, 26, 0.28);
  white-space: nowrap;
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.2s ease;
}

.buy-pill:hover { background: #3a2d2a; }

.buy-pill.is-hidden {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e4b7b4;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-card { text-align: center; }

.loader-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 52px;
  line-height: 0.9;
}

.loader-track {
  width: 180px;
  height: 1px;
  margin: 22px auto 12px;
  background: rgba(36, 28, 26, 0.16);
}

.loader-track span {
  display: block;
  height: 100%;
  background: var(--rose-deep);
  transform: scaleX(0);
  transform-origin: left center;
}

.loader-note {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.howto {
  position: relative;
  padding: 96px 0 36px;
  background: var(--bg);
}

.wrap {
  width: min(1080px, calc(100% - 48px));
  margin-inline: auto;
}

.section-head { max-width: 640px; margin-bottom: 36px; }

.section-head h2,
.faq h2 {
  font-size: clamp(44px, 5vw, 68px);
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.section-lede {
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 300;
  max-width: 42ch;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 0;
  margin: 0;
}

.step {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.step-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(125, 78, 82, 0.08);
}

.step-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--rose-deep);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--rose);
  margin-bottom: 6px;
}

.step h3 {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 10px;
}

.step p:last-child {
  color: var(--muted);
  max-width: 32ch;
}

.site-footer {
  padding: 72px 0 108px;
  background: var(--bg);
}

.faq { margin-bottom: 64px; }

.faq-list { margin-top: 8px; }

.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-of-type { border-bottom: 1px solid var(--line); }

.faq-item summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.15;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 22px;
  color: var(--rose-deep);
  line-height: 1;
}

.faq-item[open] summary::after { content: "–"; }

.faq-item p {
  margin: 0 0 18px;
  max-width: 68ch;
  color: var(--muted);
}

.footer-base {
  display: grid;
  grid-template-columns: 1.4fr auto auto;
  gap: 24px;
  align-items: end;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.footer-note,
.legal,
.fine {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.footer-note { margin-top: 8px; max-width: 42ch; }

.btn-quiet {
  justify-self: start;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}

.legal { justify-self: end; text-align: right; }

dialog {
  width: min(480px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

dialog::backdrop {
  background: rgba(36, 28, 26, 0.42);
  backdrop-filter: blur(8px);
}

.dialog-sheet {
  position: relative;
  border-radius: 28px;
  padding: 28px 24px 22px;
  background: var(--bg);
  text-align: left;
}

.ingredients-sheet { width: min(560px, 100%); }

dialog .sheet h2 {
  font-size: clamp(36px, 5vw, 48px);
  line-height: 0.95;
  margin-bottom: 8px;
}

.dialog-lead {
  color: var(--muted);
  margin-bottom: 18px;
}

.icon-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(36, 28, 26, 0.06);
  font-size: 22px;
  line-height: 1;
}

.fields {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.field { display: grid; gap: 6px; }

.field span {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input {
  width: 100%;
  border: 1px solid rgba(36, 28, 26, 0.16);
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
}

.field.has-error input { border-color: #9a3d3d; }

.field .error {
  min-height: 0;
  color: #9a3d3d;
  font-size: 12px;
}

.field.has-error .error { min-height: 1em; }

.fine { margin-top: 12px; }

.success[hidden],
form[hidden] { display: none; }

.success p { margin-bottom: 12px; color: var(--muted); }

.success .btn-fill { margin-top: 8px; }

.ingredient-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: grid;
  gap: 14px;
}

.ingredient-list h3 {
  font-size: 28px;
  margin-bottom: 4px;
}

.ingredient-list p { color: var(--muted); }

@media (max-width: 860px) {
  .topbar { padding: 16px 18px; }
  .topbar-brand { font-size: 22px; }

  .beat-hero .beat-place {
    left: 20px;
    right: 20px;
    top: 13dvh;
    width: auto;
  }

  .beat-hero h1 { font-size: clamp(46px, 12vw, 68px); }

  .lede {
    max-width: 16ch;
    font-size: 15px;
  }

  .beat-science .beat-place,
  .beat-lift .beat-place {
    left: 16px;
    right: 16px;
    top: auto;
    bottom: 88px;
    width: auto;
    transform: none;
  }

  .glass { padding: 16px 16px 14px; }
  .glass h2 { font-size: 32px; }

  .steps,
  .footer-base { grid-template-columns: 1fr; }

  .legal { justify-self: start; text-align: left; }

  .wrap { width: min(1080px, calc(100% - 32px)); }

  .faq-item summary { font-size: 22px; }
}

@media (max-height: 740px) and (min-width: 861px) {
  .beat-hero .beat-place { top: 12dvh; }
  .beat-hero h1 { font-size: 64px; }
  .glass h2, .checkout h2 { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint i::after { animation: none; }
  .loader,
  .buy-pill { transition: none; }
}
