/* Styles for the home-page variant exploration (/a/, /b/, /c/, /variants/).
   Loaded on top of styles.css, only on variant pages. Everything here reuses
   the v2 sticker tokens; delete this file when a winner is promoted. */

/* Variant B carries body.try for the embedded demo; keep the home dot-grid
   background so all three variants share the same canvas. */
body.variant {
  background:
    radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.08) 1px, transparent 0) 0 0 / 22px 22px,
    var(--v2-paper);
}

/* two-column hero (A + B) ---------------------------------------------------- */

.var-hero {
  position: relative;
  margin: 32px 0 64px;
  padding: 36px 30px;
  border: 4px solid var(--v2-ink);
  border-radius: 24px;
  background: var(--v2-paper);
  box-shadow: var(--v2-shadow);
  display: grid;
  grid-template-columns: minmax(360px, 1.05fr) minmax(340px, 0.95fr);
  gap: 32px;
  align-items: start;
}
@media (max-width: 960px) {
  .var-hero { grid-template-columns: 1fr; padding: 30px 22px; }
}

/* Keep the two hero CTAs on one line inside the ~500px column. */
.var-hero .v2-cta { padding: 13px 16px; font-size: 0.93rem; }

.var-display {
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  gap: 10px 14px;
}

.var-subhead { margin-bottom: 22px; }

.var-trust {
  margin: 0;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.9;
}
/* Tokens ("FREE 3-DAY TRIAL") wrap as units, never mid-phrase. */
.var-trust span { white-space: nowrap; }
.var-trust-sub {
  margin: 6px 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
}
.var-trust-sub a { color: inherit; }

/* poke-able face card (A) */
.var-poke {
  display: block;
  width: 100%;
  padding: 18px 18px 12px;
  /* The light-blue card from the V4 draft's hero demo — Josef's pick over
     the plain white the variants used. */
  background: var(--v2-cyan);
  border: 4px solid var(--v2-ink);
  border-radius: 18px;
  box-shadow: var(--v2-shadow-sm);
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.var-poke:hover { transform: translate(-2px, -2px); box-shadow: var(--v2-shadow); }
.var-poke:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--v2-ink); }
.var-poke .v2-demo-svg { width: 100%; height: auto; display: block; }
.var-poke-hint {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 12px;
  background: var(--v2-yellow);
  border: 3px solid var(--v2-ink);
  border-radius: 999px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.8rem;
  font-weight: 700;
}
/* The base .v2-beep pulses with opacity 0 most of the cycle; the poke pop
   must force it visible for its whole run. JS removes .poked on animationend
   so the ambient pulse resumes. */
.var-poke.poked .v2-beep { animation: var-beep-pop 0.45s ease; opacity: 1; }
@keyframes var-beep-pop {
  0% { opacity: 1; transform: scale(0.4) rotate(-10deg); }
  40% { opacity: 1; transform: scale(1.35) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
@media (prefers-reduced-motion: reduce) {
  .var-poke.poked .v2-beep { animation: none; }
}

/* compact centered hero (C) -------------------------------------------------- */

.var-hero-compact {
  position: relative;
  margin: 32px 0 64px;
  padding: 44px 28px 40px;
  border: 4px solid var(--v2-ink);
  border-radius: 24px;
  background: var(--v2-paper);
  box-shadow: var(--v2-shadow);
  text-align: center;
}
.var-hero-compact .var-display { justify-content: center; }
.var-hero-compact .var-subhead { margin-left: auto; margin-right: auto; }
.var-cta-center { justify-content: center; }

/* shared small caption ------------------------------------------------------- */

.var-note {
  margin: 14px 0 0;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: #555;
  max-width: 640px;
}

/* the numbers (C) ------------------------------------------------------------ */

.var-numbers { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .var-numbers { grid-template-columns: 1fr; } }
.var-numbers .v2-stat-label { text-transform: none; letter-spacing: 0; }

/* receipts window (A + C) ---------------------------------------------------- */

.var-window {
  max-width: 560px;
  background: #fff;
  border: 4px solid var(--v2-ink);
  border-radius: 16px;
  box-shadow: var(--v2-shadow);
  overflow: hidden;
}
.var-window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: var(--v2-paper);
  border-bottom: 3px solid var(--v2-ink);
}
.var-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--v2-ink); }
.var-dot.red { background: var(--v2-pink); }
.var-dot.yellow { background: var(--v2-yellow); }
.var-dot.green { background: var(--v2-lime); }
.var-window-title {
  margin-left: 8px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.8rem;
  font-weight: 800;
}
.var-window-body { padding: 18px; }
.var-window-stats {
  display: grid;
  /* auto-fit + a small floor so the mono values can't force the page wide
     on phones — cells wrap to 2+1 / stacked instead. */
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.var-window-stats div {
  padding: 10px 12px;
  border: 3px solid var(--v2-ink);
  border-radius: 10px;
  background: var(--v2-paper);
  text-align: center;
}
.var-window-stats strong {
  display: block;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 1.3rem;
  font-weight: 900;
}
.var-window-stats small {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #555;
}
.var-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 120px;
  padding: 0 4px;
}
.var-chart span {
  flex: 1;
  height: var(--h, 50%);
  background: var(--v2-yellow);
  border: 3px solid var(--v2-ink);
  border-radius: 6px 6px 0 0;
  position: relative;
}
.var-chart span.today { background: var(--v2-lime); }
.var-chart span i {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-style: normal;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.7rem;
  font-weight: 700;
}
.var-receipts-section .var-chart { margin-bottom: 26px; }

/* habit pills (A + B) -------------------------------------------------------- */

.var-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.var-pill {
  display: inline-block;
  padding: 10px 16px;
  background: #fff;
  border: 3px solid var(--v2-ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--v2-ink);
  color: var(--v2-ink);
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.var-pill:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--v2-ink);
  color: var(--v2-ink);
}

/* compare cards (C) ---------------------------------------------------------- */

.var-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}
.var-compare-card {
  padding: 18px;
  background: #fff;
  border: 3.5px solid var(--v2-ink);
  border-radius: 14px;
  box-shadow: var(--v2-shadow-sm);
  transform: rotate(var(--rot, 0deg));
}
.var-compare-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.var-compare-card p { margin: 0; font-weight: 600; }
.var-compare-win { background: var(--v2-lime); box-shadow: var(--v2-shadow); }

/* clips rail (C) — future UGC media strip ------------------------------------ */

.var-clips-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 6px 4px 18px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.var-clips-rail:focus-visible { outline: 3px solid var(--v2-pink); outline-offset: 4px; }
.var-clip {
  flex: 0 0 190px;
  margin: 0;
  scroll-snap-align: start;
}
.var-clip-frame {
  aspect-ratio: 9 / 16;
  display: grid;
  place-items: center;
  gap: 6px;
  align-content: center;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0 14px, transparent 14px 28px),
    #17171a;
  border: 3.5px solid var(--v2-ink);
  border-radius: 14px;
  box-shadow: var(--v2-shadow-sm);
}
.var-clip-emoji { font-size: 2.2rem; filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.6)); }
.var-clip-tag {
  padding: 4px 10px;
  background: var(--v2-pink);
  color: #fff;
  border: 2.5px solid var(--v2-ink);
  border-radius: 999px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.var-clip-caption {
  margin: 8px 2px 0;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.8rem;
  font-weight: 700;
}

/* variant D: Loom walkthrough placeholder (var-poke styling, minus the button) */

.var-video-card {
  display: block;
  width: 100%;
  padding: 18px;
  background: #fff;
  border: 4px solid var(--v2-ink);
  border-radius: 18px;
  box-shadow: var(--v2-shadow-sm);
}
.var-video-card .var-poke-hint {
  display: block;
  margin: 12px auto 0;
  width: fit-content;
  max-width: 100%;
  text-align: center;
}
.var-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  gap: 10px;
  align-content: center;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0 14px, transparent 14px 28px),
    #17171a;
  border: 3.5px solid var(--v2-ink);
  border-radius: 14px;
  overflow: hidden;
}
.var-video-play {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  padding-left: 6px;
  border-radius: 50%;
  background: var(--v2-pink);
  color: #fff;
  border: 4px solid var(--v2-ink);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.55);
  font-size: 1.6rem;
}

/* variant D: gentle attention nudge on the try-in-browser CTA ---------------- */

/* A light "hey, this is clickable" pulse: one small tilt every 3.5s.
   Used on the compact header pill, where the boop hand won't fit. */
.var-cta-nudge { animation: var-nudge 3.5s ease-in-out infinite; }
.var-cta-nudge:hover { animation: none; }
@keyframes var-nudge {
  0%, 16%, 100% { transform: none; }
  4% { transform: rotate(-1.5deg) scale(1.03); }
  8% { transform: rotate(1.5deg) scale(1.03); }
  12% { transform: rotate(-0.5deg) scale(1.01); }
}
@media (prefers-reduced-motion: reduce) {
  .var-cta-nudge { animation: none; }
}

/* The boop: every 6s a finger rises from below the try CTA, pokes it, and
   the button squishes on contact — the product's own gesture, pointed at
   the action we want. Both animations share one 6s clock so the contact
   frame (~72%) stays in sync. */
.var-boop { position: relative; animation: var-boop-btn 6s ease-in-out infinite; }
.var-boop:hover { animation: none; }
.var-boop .var-boop-hand {
  position: absolute;
  right: -16px;
  bottom: -30px;
  font-size: 2rem;
  line-height: 1;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.3));
  transform: translate(6px, 12px) rotate(10deg);
  animation: var-boop-hand 6s ease-in-out infinite;
}
@keyframes var-boop-hand {
  0%, 55%, 100% { opacity: 0; transform: translate(6px, 12px) rotate(10deg); }
  62% { opacity: 1; transform: translate(2px, 2px) rotate(5deg); }
  70% { opacity: 1; transform: translate(-3px, -16px) rotate(0deg); }
  74% { opacity: 1; transform: translate(-3px, -11px) rotate(3deg); }
  84% { opacity: 0; transform: translate(6px, 12px) rotate(10deg); }
}
@keyframes var-boop-btn {
  0%, 68%, 80%, 100% { transform: none; }
  72% { transform: scale(0.95) rotate(-1deg); }
  76% { transform: scale(1.05); }
}
.var-boop:hover .var-boop-hand { animation: none; opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .var-boop { animation: none; }
  .var-boop .var-boop-hand { animation: none; opacity: 0; }
}

/* variant D: auto-scrolling clips marquee (cards duplicated 2x in markup) ---- */

.var-clips-marquee {
  overflow: hidden;
  padding: 6px 0 4px;
  /* Fade the cut-off cards at both edges so the loop reads as intentional. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
}
.var-clips-track {
  display: flex;
  width: max-content;
  animation: var-clips-scroll 60s linear infinite;
}
.var-clips-track .var-clip { margin-right: 16px; flex: 0 0 190px; }
.var-clips-marquee:hover .var-clips-track { animation-play-state: paused; }
@keyframes var-clips-scroll {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .var-clips-track { animation: none; }
  .var-clips-marquee {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .var-clips-marquee::-webkit-scrollbar { display: none; }
}

/* Long-form small print (science note): prose, not the mono caption style. */
.var-note-prose {
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: #444;
  max-width: 720px;
  line-height: 1.55;
}

/* Variant pages: give the shared FAQ heading the same scale as the other
   section headings instead of the plain default. */
body.variant .faq > h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* Variant pages: let the header nav wrap cleanly on small screens. */
body.variant .site-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
body.variant .site-header nav a { margin-left: 0; }
/* The wrapped header is ~3 rows tall on phones — don't pin it there. */
@media (max-width: 720px) {
  body.variant .site-header { position: static; }
}

/* variant D: HRT science section --------------------------------------------- */

.var-loop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
}
.var-loop-chip {
  padding: 8px 14px;
  background: #fff;
  border: 3px solid var(--v2-ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--v2-ink);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.var-loop-beep { background: var(--v2-pink); color: #fff; }
.var-loop-win { background: var(--v2-lime); }
.var-loop-arrow { font-weight: 900; font-size: 1.1rem; }
.var-science-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.var-science-card {
  padding: 20px;
  background: #fff;
  border: 3.5px solid var(--v2-ink);
  border-radius: 14px;
  box-shadow: var(--v2-shadow-sm);
  transform: rotate(var(--rot, 0deg));
}
.var-science-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.var-science-card p { margin: 0; font-weight: 600; }

/* variant D: closing CTA card ------------------------------------------------- */

.var-final {
  padding: 40px 28px;
  background: var(--v2-paper);
  border: 4px solid var(--v2-ink);
  border-radius: 24px;
  box-shadow: var(--v2-shadow);
  text-align: center;
}
.var-final h2 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.var-final p { margin: 0 0 24px; font-weight: 700; }
.var-final .v2-cta-row { margin-bottom: 0; }

/* variant D: compact header CTAs (base.html {{ header_cta }} slot) ----------- */

.site-header nav .v2-cta-mini {
  display: inline-block;
  margin-left: 14px;
  padding: 7px 12px;
  border: 2.5px solid var(--v2-ink);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--v2-ink);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.site-header nav .v2-cta-mini:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--v2-ink);
  border-bottom-color: var(--v2-ink);
}
/* The theme's nav-link rule (body.home .site-header nav a) outranks the
   mini-CTA selector above and swaps its bottom border for the 2px
   transparent underline slot — slicing the outline open above the shadow.
   Re-assert the button box at higher specificity. */
body.home .site-header nav a.v2-cta-mini,
body.home .site-header nav a.v2-cta-mini:hover {
  padding: 7px 12px;
  border: 2.5px solid var(--v2-ink);
  font-size: 0.8rem;
}
.v2-cta-mini-primary { background: var(--v2-pink); color: #fff !important; }
.v2-cta-mini-demo { background: var(--v2-cyan); color: var(--v2-ink) !important; }

/* variant B hero demo column ------------------------------------------------- */

.var-hero-try .var-hero-demo { min-width: 0; }

/* /variants/ chooser --------------------------------------------------------- */

.var-chooser { margin: 48px 0; }
.var-chooser h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.var-chooser > p { font-weight: 600; max-width: 640px; }
.var-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.var-choice {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  background: #fff;
  border: 4px solid var(--v2-ink);
  border-radius: 16px;
  box-shadow: var(--v2-shadow-sm);
  color: var(--v2-ink);
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.var-choice:hover { transform: translate(-2px, -2px); box-shadow: var(--v2-shadow); color: var(--v2-ink); }
.var-choice-key {
  align-self: flex-start;
  padding: 6px 14px;
  background: var(--v2-yellow);
  border: 3px solid var(--v2-ink);
  border-radius: 10px;
  font-family: ui-monospace, Menlo, monospace;
  font-weight: 900;
}
.var-choice:nth-child(2) .var-choice-key { background: var(--v2-cyan); }
.var-choice:nth-child(3) .var-choice-key { background: var(--v2-lime); }
.var-choice-name { font-size: 1.25rem; font-weight: 900; text-transform: uppercase; }
.var-choice-blurb { font-weight: 600; font-size: 0.92rem; color: #444; }

/* ---------------------------------------------------------------------------
   Additions for the promoted home page (variant D → /).
   --------------------------------------------------------------------------- */

/* SCIENCE gets highlighted inside the normal section grammar: same kicker
   sticker as every other section, scaled up past the headline text so the
   word leads without turning into a billboard. Sized in em so it tracks the
   h2 across breakpoints. */
body.home .var-science-section .v2-h2 { text-transform: none; }
body.home .v2-kicker.var-kicker-science {
  font-size: 1.05em;
  padding: 6px 18px;
  border-width: 3px;
  border-radius: 10px;
  box-shadow: var(--v2-shadow-sm);
  transform: rotate(-2deg);
}

/* Belt and braces: the clips section ships with the `hidden` attribute until
   real creator embeds exist; make sure no display rule can resurrect it. */
.var-clips-section[hidden] { display: none !important; }
