/* W97 / CLL-282: public teaser landing — gold-on-dark, Space Grotesk / Plus Jakarta Sans / JetBrains Mono.
   Orchestrated load motion + scroll reveals; everything disabled under prefers-reduced-motion.
   UXW2: tokens come from /assets/tokens.css (loaded by index.html first) — the single source. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: var(--fs-h3); line-height: 1.6; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-soft); }
::selection { background: rgba(220,181,86,.28); }

/* ── scroll progress ─────────────────────────────────────────── */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 60;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold)); transform-origin: 0 50%; transform: scaleX(0); }

/* ── nav ─────────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 50; display: flex; justify-content: space-between; align-items: center;
  padding: 16px clamp(20px, 4vw, 48px); background: rgba(10,10,15,.72); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.wordmark { font-family: var(--font-display); font-weight: 700; font-size:var(--fs-h1); color: var(--gold); letter-spacing: -.03em; text-decoration: none; }
.brand-mark { height: .95em; width: .95em; vertical-align: -.14em; margin-right: .3em; }
.wordmark.sm { font-size: var(--fs-h2); }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav .ghost { color: var(--muted); font-size: var(--fs-body); font-weight: 500; }
.nav .ghost:hover { color: var(--text); }

/* ── buttons ─────────────────────────────────────────────────── */
.btn-gold { display: inline-flex; align-items: center; justify-content: center; background: var(--gold); color: var(--on-gold);
  font-family: var(--font-display); font-weight: 600; border: none; border-radius: var(--r-sm); cursor: pointer;
  transition: background 160ms var(--ease), transform 160ms var(--ease); }
.btn-gold:hover { background: var(--gold-soft); color: var(--on-gold); transform: translateY(-1px); }
.btn-gold:active { background: var(--gold-deep); transform: translateY(0); }
.btn-gold.sm { padding: 9px 16px; font-size: var(--fs-body); min-height: 40px; }
.btn-gold.lg { padding: 15px 30px; font-size: var(--fs-h3); min-height: 52px; }
.btn-gold.block { width: 100%; }
.btn-gold[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-ghost { color: var(--muted); font-weight: 500; font-size: var(--fs-lead); padding: 12px 4px; }
.btn-ghost:hover { color: var(--text); }

/* ── hero ────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 92svh; display: flex; flex-direction: column; justify-content: center;
  overflow: clip; padding: 48px 20px 120px; }
.hero-glow { position: absolute; left: 50%; top: 38%; width: 900px; height: 900px; transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(220,181,86,.14) 0%, rgba(220,181,86,.05) 34%, transparent 62%); pointer-events: none; }
.hero-inner { position: relative; max-width: 880px; margin: 0 auto; text-align: center; }
.eyebrow { display: inline-block; font-family: var(--font-body); font-size: var(--fs-small); letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold); border: 1px solid rgba(220,181,86,.35); border-radius: var(--r-pill);
  padding: 7px 16px; margin-bottom: 28px; background: var(--gold-tint); }
.hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(42px, 7.2vw, 84px);
  line-height: 1.04; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-sub { max-width: 640px; margin: 26px auto 0; color: var(--muted); font-size: clamp(15px, 1.6vw, 18px); line-height: 1.7; }
.hero-cta { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 40px; flex-wrap: wrap; }
.hero-note { margin-top: 22px; font-family: var(--font-body); font-size: var(--fs-small); color: var(--muted); letter-spacing: .04em; }

/* waveform — a mastering-EQ silhouette in gold */
.wave { position: absolute; left: 0; right: 0; bottom: 0; height: 96px; display: flex; align-items: flex-end;
  justify-content: center; gap: 5px; padding: 0 20px; opacity: .9;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 28%, #000 78%, transparent); mask-image: linear-gradient(180deg, transparent, #000 28%, #000 78%, transparent); }
.wave i { width: 3px; border-radius:var(--r-sm); background: linear-gradient(180deg, var(--gold), rgba(220,181,86,.15));
  animation: eq 2.6s var(--ease) infinite alternate; }
@keyframes eq { from { transform: scaleY(.35); } to { transform: scaleY(1); } }

/* load orchestration */
.h-anim { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
body.loaded .h-anim { opacity: 1; transform: none; }
body.loaded .h-anim:nth-of-type(1) { transition-delay: 0ms; }
.hero-inner .h-anim:nth-child(1) { transition-delay: 60ms; }
.hero-inner .h-anim:nth-child(2) { transition-delay: 180ms; }
.hero-inner .h-anim:nth-child(3) { transition-delay: 330ms; }
.hero-inner .h-anim:nth-child(4) { transition-delay: 470ms; }
.hero-inner .h-anim:nth-child(5) { transition-delay: 590ms; }

/* ── sections ────────────────────────────────────────────────── */
main { position: relative; }
section { max-width: 1080px; margin: 0 auto; padding: clamp(72px, 10vw, 128px) clamp(20px, 4vw, 48px) 0; }
.kicker { font-family: var(--font-body); font-size: var(--fs-small); letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px; }
section > h2, .request-card h2 { font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 4.4vw, 44px); letter-spacing: -.025em; line-height: 1.12; }

/* pain chapters */
.pain { display: grid; grid-template-columns: 96px 1fr; gap: clamp(16px, 3vw, 40px); align-items: start;
  padding: clamp(36px, 5vw, 56px) 0; border-top: 1px solid var(--border); margin-top: clamp(28px, 4vw, 44px); }
.pain-n { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 40px); color: rgba(220,181,86,.4); line-height: 1.1; padding-top: 5px; }
.pain h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(21px, 2.9vw, 32px);
  letter-spacing: -.02em; line-height: 1.22; max-width: 26ch; }
.pain .answer { margin-top: 18px; color: var(--muted); font-size: clamp(15px, 1.5vw, 17px); max-width: 62ch; }
.pain .answer::before { content: ''; display: inline-block; width: 22px; height: 2px; background: var(--gold);
  margin-right: 10px; vertical-align: middle; }

/* beta framing */
.beta-lead { margin-top: 20px; color: var(--muted); font-size: clamp(15px, 1.6vw, 18px); max-width: 68ch; line-height: 1.7; }
.beta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.beta-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px 24px; }
.beta-card h4 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h3); margin-bottom: 10px; }
.beta-card p { color: var(--muted); font-size:var(--fs-body); line-height: 1.65; }

/* request form */
.request { padding-bottom: clamp(72px, 10vw, 128px); }
.request-card { position: relative; max-width: 620px; margin: 0 auto; background: var(--surface);
  border: 1px solid var(--border-strong); border-radius:var(--r-lg); padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.request-card::before { content: ''; position: absolute; inset: -1px; border-radius:var(--r-lg); pointer-events: none;
  background: linear-gradient(140deg, rgba(220,181,86,.22), transparent 32%, transparent 68%, rgba(220,181,86,.1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  padding: 1px; }
.request-sub { color: var(--muted); margin-top: 12px; font-size:var(--fs-lead); }
#beta-form { margin-top: 30px; display: flex; flex-direction: column; gap: 20px; }
.field label { display: block; font-size: var(--fs-small); font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px; }
.field input { width: 100%; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 13px 15px; color: var(--text); font-family: var(--font-body); font-size: var(--fs-lead); outline: none;
  min-height: 48px; transition: border-color 150ms, box-shadow 150ms; }
.field input::placeholder { color: var(--faint); }
.field input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(220,181,86,.22); }
.field input.invalid { border-color: var(--red); }
.hint { margin-top: 7px; font-size: var(--fs-small); color: var(--muted); }
.err { margin-top: 7px; font-size: var(--fs-body); color: var(--red); }
.err.summary { margin: 0; }
.checks { display: flex; flex-direction: column; gap: 12px; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { appearance: none; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: var(--r-sm);
  border: 1px solid var(--border-strong); background: var(--surface2); cursor: pointer; position: relative;
  transition: background 140ms, border-color 140ms; }
.check input:checked { background: var(--gold); border-color: var(--gold); }
.check input:checked::after { content: '✓'; position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--on-gold); font-size: var(--fs-body); font-weight: 700; }
.check input:focus-visible { box-shadow: 0 0 0 3px rgba(220,181,86,.28); outline: none; }
.check span { font-size: var(--fs-body); color: var(--muted); line-height: 1.55; }
.ver { font-family: var(--font-body); font-size: var(--fs-micro); color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { text-align: center; font-size: var(--fs-body); color: var(--muted); }

#request-success { text-align: center; padding: 24px 0 8px; }
.success-mark { width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-tint); border: 1px solid rgba(220,181,86,.4); color: var(--gold); font-size: var(--fs-figure); }

/* footer */
.foot { border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px;
  padding: 28px clamp(20px, 4vw, 48px) 40px; font-size: var(--fs-body); }
.foot .muted { color: var(--faint); }

/* scroll reveals */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── 375 ─────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .hero { min-height: 88svh; padding-bottom: 90px; }
  .hero-cta { flex-direction: column; gap: 14px; }
  .hero-cta .btn-gold.lg { width: 100%; max-width: 340px; }
  .pain { grid-template-columns: 1fr; gap: 8px; }
  .beta-grid { grid-template-columns: 1fr; }
  .nav .ghost { display: none; }
  .wave { height: 64px; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .h-anim, .reveal { opacity: 1 !important; transform: none !important; }
}
