/* BioPeak — Join the Waitlist page. */

#site-header { position: sticky; top: 0; z-index: 50; }

.wl-section { padding: var(--space-10) var(--gutter); }
.wl-inner { max-width: var(--container-xl); margin: 0 auto; }
.wl-alt { background: var(--cream-50); }

.wl-sec-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--space-8);
  align-items: start;
}
.wl-sec-head { position: sticky; top: 116px; }
.wl-sec-head h2 {
  font-size: var(--text-xl);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  margin: 0;
  max-width: 18ch;
  text-wrap: pretty;
}
.wl-rule { width: 48px; height: 2px; background: var(--sage); margin-bottom: var(--space-4); }

.wl-eyebrow {
  font-size: var(--text-2xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: var(--space-3);
}

.wl-link {
  display: inline-block;
  margin-top: var(--space-5);
  font-size: var(--text-md);
  font-weight: var(--fw-medium);
  color: var(--forest);
  text-decoration: none;
  border-bottom: 1.5px solid var(--sage);
  padding-bottom: 2px;
  transition: color 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.wl-link:hover { color: var(--forest-400); }

/* ---- Hero ---- */
.wl-hero {
  background: var(--forest);
  padding: var(--space-9) var(--gutter) var(--space-10);
}
.wl-hero-inner {
  max-width: var(--container-xl);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-8);
  align-items: center;
}
.wl-hero-eyebrow {
  font-size: var(--text-2xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin: 0 0 var(--space-5);
}
.wl-hero-display {
  font-size: clamp(2.5rem, 4.6vw, 4.3rem);
  line-height: 1.06;
  font-weight: var(--fw-bold);
  letter-spacing: -0.025em;
  color: var(--cream);
  margin: 0 0 var(--space-6);
  max-width: 15ch;
  text-wrap: balance;
}
.wl-hero h1 {
  font-size: var(--text-lg);
  font-weight: var(--fw-medium);
  line-height: 1.5;
  color: var(--cream);
  margin: 0 0 var(--space-4);
  max-width: 38ch;
  text-wrap: balance;
}
.wl-hero-sub {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-on-dark-muted);
  margin: 0 0 var(--space-6);
  max-width: 52ch;
  text-wrap: pretty;
}
.wl-hero-link {
  display: inline-block;
  font-size: var(--text-md);
  font-weight: var(--fw-medium);
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1.5px solid var(--sage);
  padding-bottom: 2px;
  transition: color 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.wl-hero-link:hover { color: var(--taupe-300, #cfc8c0); }
.wl-hero-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  max-height: 560px;
  display: block;
}

/* ---- After you join (three numbered steps) ---- */
.wl-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-7) var(--space-8);
}
.wl-step-num {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  letter-spacing: 0.2em;
  color: var(--sage);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--taupe-300);
}
.wl-step h3 {
  font-size: var(--text-md);
  font-weight: var(--fw-semibold);
  color: var(--text-strong);
  margin: 0 0 var(--space-3);
}
.wl-step p {
  margin: 0;
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-body);
}
.wl-steps-note {
  margin: var(--space-7) 0 0;
  border-top: 1px solid var(--taupe-300);
  padding-top: var(--space-5);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--text-body);
  max-width: 62ch;
}

/* ---- Photo band ---- */
.wl-band { line-height: 0; background: var(--forest); }
.wl-band-slot {
  width: 100%;
  height: clamp(320px, 52vh, 560px);
  display: block;
}

/* ---- The form ---- */
.wl-form { max-width: 720px; }
.wl-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}
.wl-form-full { grid-column: 1 / -1; }
.wl-form-actions {
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}
.wl-form-small {
  margin: 0;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--text-muted);
  max-width: 52ch;
}
.wl-form-done { max-width: 62ch; }
.wl-form-done h3 {
  font-size: var(--text-xl);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  margin: 0 0 var(--space-3);
}
.wl-form-done p {
  margin: 0;
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--text-body);
}

/* ---- Routing line (quiet, centered) ---- */
.wl-routing {
  padding: var(--space-9) var(--gutter);
  text-align: center;
}
.wl-routing-inner {
  max-width: 640px;
  margin: 0 auto;
  border-top: 1px solid var(--taupe-300);
  padding-top: var(--space-6);
}
.wl-routing p {
  margin: 0;
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--text-body);
  text-wrap: pretty;
}
.wl-routing p a {
  color: var(--forest);
  font-weight: var(--fw-medium);
  text-decoration: none;
  border-bottom: 1.5px solid var(--sage);
  padding-bottom: 1px;
  transition: color 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.wl-routing p a:hover { color: var(--forest-400); }

/* ---- Scroll reveals ---- */
.bp-motion [data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 560ms cubic-bezier(0.65, 0, 0.35, 1),
    transform 560ms cubic-bezier(0.65, 0, 0.35, 1);
  transition-delay: calc(var(--reveal-i, 0) * 130ms);
}
.bp-motion [data-reveal].is-in { opacity: 1; transform: none; }
@media print {
  .bp-motion [data-reveal] { opacity: 1; transform: none; }
}
.bp-motion [data-reveal] .wl-rule {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 650ms cubic-bezier(0.65, 0, 0.35, 1) 120ms;
}
.bp-motion [data-reveal].is-in .wl-rule { transform: scaleX(1); }

/* ---- Mobile ---- */
@media (max-width: 900px) {
  .wl-section { padding: var(--space-8) var(--gutter); }
  .wl-sec-grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .wl-sec-head { position: static; }
  .wl-hero { padding: var(--space-8) var(--gutter); }
  .wl-hero-inner { grid-template-columns: 1fr; gap: var(--space-7); }
  .wl-hero-display { font-size: clamp(2.2rem, 9vw, 3rem); }
  .wl-hero-photo { aspect-ratio: 4 / 3; max-height: 420px; }
  .wl-steps { grid-template-columns: 1fr; gap: var(--space-5); }
  .wl-band-slot { height: clamp(240px, 38vh, 360px); }
  .wl-form-grid { grid-template-columns: 1fr; }
  .wl-form-actions button { width: 100%; }
  .wl-routing { padding: var(--space-8) var(--gutter); }
}
