/* Public landing page shown at the homepage while the members wall is up.
   See index.html for what this page may and may not contain.

   Standalone by necessity: this file is served as a static asset, outside the
   React app and outside Tailwind, so the tokens below are a deliberate copy of
   the subset of src/index.css this page uses. Keep it a SUBSET — if it starts
   growing toward the real thing, that is the signal the page belongs in React
   after all. */

:root {
  /* Brand hue — every purple is hsl(var(--brand-h) …). UAE=255. */
  --brand-h: 255;
  --background: 40 20% 97%;
  --foreground: 30 10% 15%;
  --card: 40 15% 100%;
  --primary: var(--brand-h) 22% 65%;
  --secondary: 40 20% 94%;
  --muted: 35 12% 91%;
  --muted-foreground: 30 5% 46%;
  --border: 35 12% 88%;

  --color-bg: hsl(var(--background));
  --color-fg: hsl(var(--foreground));
  --color-card: hsl(var(--card));
  --color-primary: hsl(var(--primary));
  --color-muted: hsl(var(--muted));
  --color-muted-fg: hsl(var(--muted-foreground));
  --color-border: hsl(var(--border));
  --color-hero-lilac: hsl(var(--brand-h) 30% 75%);
  --color-brand-deep: hsl(var(--brand-h) 22% 56%);
  --color-star: #f59e0b;

  --accent-mots-c: 195 28% 70%;
  --accent-retatrutide: 15 30% 78%;
  --accent-cjc-ipa: 85 35% 68%;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-pill: 9999px;
  --radius-card: 12px;
  --radius-card-lg: 16px;
  --glow-sm: 0 4px 14px -4px hsl(var(--primary) / 0.3);
  --glow-md: 0 8px 25px -5px hsl(var(--primary) / 0.35);
  --glow-lg: 0 12px 40px -8px hsl(var(--primary) / 0.4);
  --gloss: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0) 60%);
  --dur-base: 240ms;
  --container-max: 1400px;
  --content-max: 896px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* `display` declarations below would otherwise beat the UA's [hidden] rule, and
   the rating pill and FAQ answers both rely on [hidden] to stay collapsed. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* ── Side curtains ─────────────────────────────────────────────────────────
   Copied from src/components/home/SideCurtains.tsx. A second copy that will
   drift from the React one; that is the accepted cost of this page being
   static. If the drapes ever change there, change them here too. */
@keyframes blobLeft  { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-14px); } 70% { transform: translateY(10px); } }
@keyframes blobRight { 0%, 100% { transform: translateY(0); } 35% { transform: translateY(12px); } 68% { transform: translateY(-12px); } }

.wl-curtains {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1100px;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.8;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 28%, transparent 56%);
  mask-image: linear-gradient(to bottom, #000 0, #000 28%, transparent 56%);
}
@media (prefers-reduced-motion: reduce) { .bpm-blob { animation: none !important; } }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.wl-page { position: relative; overflow-x: clip; }
/* Sections paint above the curtains. Excluding .wl-curtains is load-bearing:
   a blanket `.wl-page > *` also matches the curtain layer and overrides its
   `position: absolute`, which drops 1100px of empty flow above the hero. */
.wl-page > *:not(.wl-curtains) { position: relative; z-index: 2; }

.wl-glow {
  position: absolute;
  top: 18%; left: 50%;
  width: min(720px, 90vw); height: 420px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, hsl(var(--primary) / 0.22), transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.wl-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  height: 64px;
  padding: 0 clamp(16px, 4vw, 32px);
  background: hsl(40 15% 100% / 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid hsl(35 15% 82% / 0.4);
}
.wl-header img { height: 30px; width: auto; display: block; }

/* ── Hero: tagline + rating ──────────────────────────────────────────────── */
.hq-top { position: relative; z-index: 2; padding-top: 72px; margin-bottom: 40px; }
.hq-tagline {
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--color-muted-fg); text-align: center; margin: 24px 0 4px;
}
.hq-rating {
  display: flex; justify-content: center; align-items: center; gap: 6px;
  width: fit-content; margin: 0 auto;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: hsl(var(--secondary) / 0.4);
  font-size: 12px;
}
.hq-rating strong { font-weight: 600; }
.hq-rating > span { color: var(--color-muted-fg); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hq-hero {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 16px 16px;
  margin-top: -32px;
  min-height: calc(100svh - 160px);
}
.hq-hero-in { position: relative; z-index: 1; max-width: 896px; width: 100%; margin: 0 auto; text-align: center; }
.wl-glow {
  position: absolute; top: 38%; left: 50%;
  width: min(900px, 90vw); height: min(900px, 90vw);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, hsl(var(--brand-h) 30% 70% / 0.12) 0%, hsl(var(--brand-h) 20% 60% / 0.04) 50%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.hq-h1 { font-size: 64px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; max-width: 768px; margin: 0 auto; }
.hq-h1-accent { display: inline-block; color: var(--color-hero-lilac); text-shadow: 0 1px 2px rgba(255, 255, 255, 0.15); padding-bottom: 4px; }
.hq-sub { margin: 24px auto 0; max-width: 576px; font-size: 20px; line-height: 1.625; color: var(--color-muted-fg); }
.hq-sub strong { color: var(--color-fg); font-weight: 600; }
.hq-cta { margin-top: 32px; display: flex; justify-content: center; }
.hq-gap { position: relative; height: 412px; display: flex; align-items: center; justify-content: center; }
/* Collapses to nothing when no review quotes are configured, so the hero does
   not leave 412px of empty space below the CTA. */
.hq-gap:empty { height: 48px; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.wl-btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 16px 32px;
  font-family: var(--font-sans); font-size: 16px; font-weight: 500; line-height: 1.5;
  color: #fff;
  border: 0; border-radius: var(--radius-pill);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  background: var(--color-primary);
  box-shadow: var(--glow-md);
  transition: transform var(--dur-base) ease, opacity var(--dur-base) ease;
}
.wl-btn::before {
  content: ""; position: absolute; inset: 0;
  background: var(--gloss); pointer-events: none; border-radius: inherit;
}
.wl-btn > * { position: relative; z-index: 1; display: inline-flex; align-items: center; }
.wl-btn:hover { opacity: 0.9; transform: scale(1.05); }
.wl-btn:active { transform: scale(0.97); }
.wl-btn-brand { background: var(--color-hero-lilac); }
.wl-btn-sm { padding: 10px 20px; font-size: 14px; }
@media (prefers-reduced-motion: reduce) {
  .wl-btn:hover, .wl-btn:active { transform: none; }
}

/* ── Hero review spotlight ───────────────────────────────────────────────── */
@keyframes wl-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hv-spot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hv-spot-card {
  width: min(460px, 88vw);
  padding: 28px 30px;
  border-radius: 24px;
  background: hsl(40 15% 100% / 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid hsl(35 15% 82% / 0.3);
  box-shadow: 0 24px 60px -24px hsl(var(--primary) / 0.35);
  text-align: left;
  animation: wl-rise 0.5s ease-out both;
  /* The quotes run from roughly 95 to 180 characters, so without a floor the
     card changes height on every rotation and drags the dots up and down with
     it. Fixed floor + the author row pinned to the bottom means only the words
     change. */
  display: flex;
  flex-direction: column;
  min-height: 264px;
}
.hv-spot-card p { margin: 14px 0 20px; font-size: 20px; line-height: 1.45; font-weight: 500; letter-spacing: -0.01em; color: var(--color-fg); }
.hv-spot-card .hv-spot-who { margin-top: auto; }
.hv-spot-who { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.hv-spot-who strong { font-weight: 600; }
.hv-spot-who > span:not(.hv-spot-av) { color: var(--color-muted-fg); }
.hv-spot-av {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--color-hero-lilac); color: #fff;
  display: grid; place-items: center; font-weight: 600; font-size: 13px;
  flex-shrink: 0;
}
.hv-spot-dots { display: flex; gap: 8px; }
.hv-spot-dots button {
  width: 8px; height: 8px; border-radius: 4px; border: 0; padding: 0;
  background: hsl(var(--brand-h) 20% 80%);
  cursor: pointer;
  transition: all var(--dur-base);
}
.hv-spot-dots button[data-on="true"] { width: 24px; background: var(--color-brand-deep); }
@media (prefers-reduced-motion: reduce) { .hv-spot-card { animation: none; } }

/* ── Standards ───────────────────────────────────────────────────────────── */
.hq-std-sec { position: relative; z-index: 1; padding: 64px 16px; }
.hq-std {
  max-width: 1200px; margin: 0 auto;
  background: #F9F8F6;
  border-radius: 24px;
  padding: clamp(32px, 4vw, 64px) clamp(24px, 4.5vw, 80px);
  box-shadow: 0 1px 3px rgba(28, 27, 30, 0.04), 0 12px 40px rgba(28, 27, 30, 0.06);
  transition: box-shadow var(--dur-base);
}
.hq-std:hover { box-shadow: 0 1px 3px rgba(28, 27, 30, 0.04), 0 20px 50px rgba(28, 27, 30, 0.1); }
.hq-std-head { text-align: center; margin-bottom: clamp(26px, 3vw, 48px); }
.hq-std-kicker {
  font-size: clamp(11px, 0.9vw, 13px); font-weight: 600; letter-spacing: 0.16em;
  color: #8478A8; text-transform: uppercase; margin-bottom: 14px;
}
.hq-std-head h2 {
  font-size: clamp(24px, 3.2vw, 44px); font-weight: 600; color: #1C1B1E;
  letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance;
}
.hq-std-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: #fff; border: 1px solid #EEEBE6; border-radius: 18px; overflow: hidden;
}
.hq-std-cell { padding: clamp(20px, 2.6vw, 44px) clamp(12px, 2vw, 48px); text-align: center; }
.hq-std-cell + .hq-std-cell { border-left: 1px solid #EBE8E3; }
.hq-std-cell i { display: block; width: 6px; height: 6px; border-radius: 50%; background: #8478A8; margin: 0 auto 8px; }
.hq-std-t { font-size: clamp(14px, 1.4vw, 20px); font-weight: 600; color: #1C1B1E; letter-spacing: -0.015em; margin-bottom: 6px; }
.hq-std-b { font-size: clamp(12px, 1.05vw, 15px); line-height: 1.6; color: #6E6A72; max-width: 340px; margin: 0 auto; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.hq-faq-sec { position: relative; z-index: 1; padding: 80px 16px 32px; max-width: 1400px; margin: 0 auto; }
.hq-faq-title { text-align: center; font-size: clamp(24px, 4vw, 60px); font-weight: 600; letter-spacing: -0.025em; margin-bottom: 80px; }
.hq-faq { max-width: 672px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.hq-faq-item { border: 1px solid hsl(var(--border) / 0.5); border-radius: 8px; padding: 0 16px; background: var(--color-card); }
.hq-faq-item button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 0; border: 0; background: none;
  font: inherit; font-size: 14px; font-weight: 500; color: var(--color-fg);
  text-align: left; cursor: pointer;
}
.hq-faq-item button svg { flex-shrink: 0; transition: transform 200ms; }
.hq-faq-item button[aria-expanded="true"] svg { transform: rotate(180deg); }
.hq-faq-item p { font-size: 14px; color: var(--color-muted-fg); line-height: 1.625; padding-bottom: 12px; }
.hq-faq-more { margin-top: 24px; text-align: center; }
.hq-faq-more a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 16px; font-weight: 500; color: var(--color-primary); text-decoration: none;
}
.hq-faq-more a:hover { color: var(--color-brand-deep); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.wl-footer { position: relative; z-index: 1; background: hsl(30 15% 8%); color: hsl(35 10% 95%); margin-top: 48px; }
.wl-footer a { color: hsl(35 10% 75%); text-decoration: none; font-size: 15px; }
.wl-footer a:hover { color: #fff; }
.wl-footer img { height: 72px; width: auto; margin: -16px 0 -12px -8px; }
.wl-footer-in {
  max-width: 1200px; margin: 0 auto;
  padding: 64px 24px 48px;
  display: grid; grid-template-columns: 1.4fr minmax(280px, 420px);
  justify-content: space-between; gap: 64px;
}
.wl-fcol { display: flex; flex-direction: column; gap: 12px; }
.wl-fcol h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px; color: #fff; }
.wl-frow { display: flex; align-items: center; gap: 10px; }
.wl-fbottom {
  border-top: 1px solid hsl(35 10% 18%);
  max-width: 1200px; margin: 0 auto;
  padding: 20px 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: hsl(35 10% 60%);
}

/* ── Breakpoints (mirroring the prototype's) ─────────────────────────────── */
@media (max-width: 900px) {
  .hq-std-grid { grid-template-columns: 1fr; }
  .hq-std-cell + .hq-std-cell { border-left: 0; border-top: 1px solid #EBE8E3; }
  .wl-footer-in { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 767px) {
  .hv-spot-card { padding: 20px; border-radius: 18px; min-height: 196px; }
  .hv-spot-card p { font-size: 15px; margin: 10px 0 14px; }
  .hv-spot-who { font-size: 12px; }
  .hv-spot-av { width: 26px; height: 26px; font-size: 11px; }
}
@media (max-width: 640px) {
  .hq-top { padding-top: 24px; margin-bottom: 16px; }
  .hq-tagline { font-size: 10px; margin-top: 8px; }
  .hq-rating { font-size: 10px; }
  .hq-hero { min-height: 0; margin-top: 0; padding: 16px 16px 8px; justify-content: flex-start; }
  .hq-h1 { font-size: 32px; max-width: 300px; }
  .hq-sub { font-size: 13px; margin-top: 16px; max-width: 300px; }
  .hq-cta { margin-top: 20px; }
  .hq-cta .wl-btn { padding: 12px 24px; font-size: 14px; }
  .hq-gap { height: auto; padding: 28px 0 8px; }
  .hq-gap:empty { height: 8px; padding: 0; }
  .hq-std-sec { padding: 40px 16px; }
  .hq-faq-sec { padding: 48px 16px 24px; }
  .hq-faq-title { margin-bottom: 32px; }
  .hq-faq-item button { font-size: 13px; }
  .hq-faq-item p { font-size: 13px; }
  .hq-faq-more a { font-size: 14px; }
  .wl-footer img { height: 56px; }
}

/* ── Reveal-on-scroll ────────────────────────────────────────────────────── */
.wl-reveal { opacity: 0; transform: translateY(30px); transition: opacity 700ms ease-out, transform 700ms ease-out; }
.wl-reveal.is-in { opacity: 1; transform: none; }
/* No JS, or reduced motion: never leave content invisible. */
.no-js .wl-reveal { opacity: 1; transform: none; transition: none; }
@media (prefers-reduced-motion: reduce) {
  .wl-reveal { opacity: 1; transform: none; transition: none; }
}
