/* ==========================================================================
   RxChange — Waitlist / teaser landing page styles
   ========================================================================== */

/* ---------- Nav note ---------- */
.wl-nav-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}
.wl-nav-note .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ok);
}
@media (max-width: 640px) { .wl-nav-note { display: none; } }

/* ---------- Hero ---------- */
.wl-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 8vw, 112px);
}
.wl-hero__wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
@media (max-width: 960px) {
  .wl-hero__wrap { grid-template-columns: 1fr; gap: 40px; }
}

.wl-hero__title {
  font-size: clamp(40px, 6vw, 78px);
  line-height: 0.98;
}
.wl-hero__lede {
  margin-top: 22px;
  max-width: 56ch;
}

.wl-value {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.wl-value li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-3);
}
.wl-value li b { color: var(--ink); font-weight: 600; }
.wl-value li .c {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.wl-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.wl-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
}
.wl-trust-row span svg { color: var(--accent); }

/* ---------- Form card (commitment module) ---------- */
.wl-hero__form { position: relative; }
.wl-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--sh-4), var(--sh-glow);
  position: relative;
}
.wl-card__head { margin-bottom: 22px; }
.wl-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-ink);
  border: 1px solid var(--teal-100);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
  white-space: nowrap;
}
.wl-card__badge i[data-ic] { flex-shrink: 0; }
[data-theme="dark"] .wl-card__badge { border-color: rgba(45,212,191,0.18); }
.wl-card__title {
  font-size: clamp(22px, 2.4vw, 27px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.wl-card__sub {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-3);
  margin: 10px 0 0;
}

.wl-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.wl-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wl-field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}
.wl-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--panel);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.wl-input svg { color: var(--muted-2); flex-shrink: 0; }
.wl-input:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.wl-input:focus-within svg { color: var(--accent); }
.wl-input input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  min-width: 0;
}
.wl-input input::placeholder { color: var(--muted-2); }

.wl-field.has-error .wl-input {
  border-color: var(--crit);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
}
.wl-field.has-error .wl-input svg { color: var(--crit); }
.wl-err {
  font-size: 12px;
  color: var(--crit);
  font-weight: 500;
}

.wl-submit {
  width: 100%;
  margin-top: 6px;
  height: 52px;
}

.wl-microcopy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.wl-microcopy span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.wl-microcopy span svg { color: var(--accent); flex-shrink: 0; }

/* ---------- Confirmation state ---------- */
.wl-card--confirm {
  display: flex;
  flex-direction: column;
  animation: rise .5s var(--ease-emph) both;
}
.wl-confirm__check {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  display: grid; place-items: center;
  margin: 4px auto 18px;
  box-shadow: 0 0 0 6px rgba(16,185,129,0.16);
}
.wl-position {
  text-align: center;
  background: linear-gradient(180deg, var(--accent-tint), transparent);
  border: 1px solid var(--teal-200);
  border-radius: var(--r-3);
  padding: 20px;
  margin: 22px 0;
}
[data-theme="dark"] .wl-position { border-color: rgba(45,212,191,0.18); }
.wl-position__num {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
}
.wl-position__lbl {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 6px;
  font-weight: 500;
}

.wl-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  margin-bottom: 22px;
}
.wl-tl-step {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 13px;
  padding: 9px 0;
  position: relative;
}
.wl-tl-step::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 28px;
  bottom: -9px;
  width: 2px;
  background: var(--line);
}
.wl-tl-step:last-child::before { display: none; }
.wl-tl-step.is-done::before { background: var(--accent); }
.wl-tl-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--panel);
  display: grid; place-items: center;
  color: #fff;
  z-index: 1;
}
.wl-tl-dot span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--muted-2);
}
.wl-tl-step.is-done .wl-tl-dot { background: var(--accent); border-color: var(--accent); }
.wl-tl-step.is-current .wl-tl-dot { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.wl-tl-step.is-current .wl-tl-dot span { background: var(--accent); }
.wl-tl-body b { display: block; font-size: 14px; color: var(--ink); font-weight: 600; }
.wl-tl-body span { font-size: 12.5px; color: var(--muted); }

.wl-referral {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 18px;
}
.wl-referral__title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.wl-referral__title svg { color: var(--accent); }
.wl-referral p {
  font-size: 13px;
  color: var(--ink-3);
  margin: 6px 0 14px;
  line-height: 1.5;
}
.wl-referral__link {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: 6px 6px 6px 14px;
}
.wl-referral__url {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wl-copy-btn {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 7px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  transition: background .18s var(--ease);
}
.wl-copy-btn:hover { background: var(--accent-hover); }

.wl-reset {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  align-self: center;
}
.wl-reset:hover { color: var(--ink-2); }

/* ---------- Momentum strip ---------- */
.wl-momentum {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 36px 0;
}
.wl-momentum__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.wl-momentum__stat {
  text-align: center;
  padding: 0 12px;
  border-left: 1px solid var(--line);
}
.wl-momentum__stat:first-child { border-left: 0; }
.wl-momentum__stat .v {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.wl-momentum__stat .l {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.4;
}
@media (max-width: 720px) {
  .wl-momentum__grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .wl-momentum__stat { border-left: 0; }
}

/* ---------- Offer grid ---------- */
.wl-offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
}
@media (max-width: 860px) { .wl-offer-grid { grid-template-columns: 1fr; } }
.wl-offer-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: border-color .2s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.wl-offer-card:hover { border-color: var(--teal-300); box-shadow: var(--sh-2); transform: translateY(-2px); }
.wl-offer-card__ic {
  width: 48px; height: 48px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.wl-offer-card__when {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}
.wl-offer-card h4 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--ink);
}
.wl-offer-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-3);
  margin: 0;
}

/* ---------- How it works ---------- */
.wl-how {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  padding: clamp(32px, 4vw, 56px);
}
@media (max-width: 860px) { .wl-how { grid-template-columns: 1fr; gap: 32px; } }
.wl-how__steps {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wl-how__step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 18px;
  border-radius: var(--r-3);
  background: var(--panel);
  border: 1px solid var(--line);
}
.wl-how__step + .wl-how__step { margin-top: 0; }
.wl-how__n {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  width: 52px; height: 52px;
  border-radius: 11px;
  background: var(--accent-soft);
  display: grid; place-items: center;
}
.wl-how__step h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 5px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.wl-how__step p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-3);
  margin: 0;
}
