/* Mobile-first. System fonts only: no font download, nothing to delay the first paint. */
:root {
  --bg: #ffffff;
  --text: #15171c;
  --muted: #5b6170;
  --line: #e4e6eb;
  --panel: #f5f6f8;
  --accent: #e4572e;
  --accent-text: #ffffff;
  --accent-press: #c8431d;
  --ok: #1f8a4c;
  --radius: 14px;
  --gutter: 16px;
  --max: 720px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    17px/1.55 system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  /* Room for the sticky mobile button so it never covers the footer. */
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Top ---------- */
.brand {
  padding: 12px var(--gutter);
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--line);
}

.hero {
  padding: 20px 0 12px;
  text-align: center;
}
.eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 7vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.sub {
  margin: 0 auto;
  max-width: 34em;
  color: var(--muted);
  font-size: 17px;
  text-wrap: pretty;
}

/* Experiment variants: the control shows until PostHog says otherwise (see page.js). */
[data-ab-variant]:not([data-ab-variant="control"]) {
  display: none;
}

/* ---------- Video ---------- */
/* Named vsl-frame because TrackPlay's own container uses class="video".
   TrackPlay's embed sizes itself (its div carries the aspect ratio), so this only frames it.
   Edge to edge on phones, rounded on wider screens. */
.vsl-frame {
  margin: 16px calc(-1 * var(--gutter)) 0;
  background: #000;
  overflow: hidden;
}
@media (min-width: 600px) {
  .vsl-frame {
    margin: 20px 0 0;
    border-radius: var(--radius);
  }
}
.video-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  color: #9aa0ad;
  font-size: 15px;
}
.sound-hint {
  margin: 10px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Call to action ---------- */
.cta-block {
  padding: 20px 0 8px;
  text-align: center;
}
.cta-block[hidden],
.gated[hidden] {
  display: none;
}
.revealed {
  animation: rise 0.45s ease-out both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .revealed {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

.btn {
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 18px 20px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgb(228 87 46 / 0.32);
  -webkit-tap-highlight-color: transparent;
}
.btn:active {
  background: var(--accent-press);
  transform: translateY(1px);
}
.btn:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
}
.btn small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.9;
}
.trust {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Content below the button ---------- */
section.block {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
h2 {
  margin: 0 0 14px;
  font-size: clamp(22px, 5.6vw, 30px);
  line-height: 1.2;
  text-wrap: balance;
}
.checks {
  margin: 0;
  padding: 0;
  list-style: none;
}
.checks li {
  position: relative;
  padding: 8px 0 8px 32px;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 13px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ok)
    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='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}
.quote {
  margin: 0 0 14px;
  padding: 16px;
  background: var(--panel);
  border-radius: var(--radius);
}
.quote p {
  margin: 0 0 8px;
}
.quote footer {
  font-size: 14px;
  color: var(--muted);
}
.guarantee {
  padding: 18px;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
}
details {
  border-bottom: 1px solid var(--line);
}
summary {
  padding: 14px 28px 14px 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  position: relative;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 12px;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
}
details[open] summary::after {
  content: "–";
}
details p {
  margin: 0 0 14px;
  color: var(--muted);
}

/* ---------- Sticky mobile button ---------- */
.sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgb(255 255 255 / 0.96);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.25s ease-out;
}
.sticky.show {
  transform: none;
}
.sticky .btn {
  padding: 14px 16px;
  font-size: 17px;
  box-shadow: none;
}
@media (min-width: 900px) {
  .sticky {
    display: none;
  }
}

/* ---------- Footer ---------- */
.legal {
  padding: 24px 0 8px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.legal a {
  color: inherit;
}
.legal nav a {
  margin: 0 8px;
}

/* ---------- Simple pages (thank-you, legal) ---------- */
.page {
  padding: 32px 0;
}
.page h1 {
  font-size: clamp(26px, 7vw, 36px);
}
