/* ============================================================================
   Smile Taxi — Waitlist FOMO. Использует токены из ../assets/css/style.css
   (--brand-navy, --brand-gold, --radius, .btn, .card, .lang-switch, .container).
   ============================================================================ */

.wl-page { background: radial-gradient(1200px 600px at 50% -10%, var(--brand-navy-2), var(--bg)) fixed; }
.is-hidden { display: none !important; }

.wl-main { padding: 28px 16px 64px; }
.wl-screen { max-width: 560px; margin: 0 auto; }

/* ---------- Hero illustration (Screen A) ---------- */
/* DESIGNER NOTE: hero.png = transparent PNG with 5 passenger archetypes.
   Sits above the form to immediately set brand mood.
   Fades into page background at the bottom via CSS mask. */
.wl-hero-illustration {
  width: 100%;
  max-width: 560px;
  margin: 0 auto -20px;   /* negative margin pulls form slightly under illustration */
  text-align: center;
  pointer-events: none;   /* decorative only */
}
.wl-hero-img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  margin: 0 auto;
  /* Fade bottom edge into page background for seamless blend */
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
}
@media (max-width: 420px) {
  .wl-hero-img { max-height: 180px; }
}

/* ---------- Hero ---------- */
.wl-hero { text-align: center; }
.wl-kicker {
  display: inline-block; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  font-size: 12px; color: var(--accent); background: rgba(212,175,55,.1);
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; margin-bottom: 14px;
}
.wl-h1 { font-size: clamp(26px, 6vw, 40px); line-height: 1.1; margin: 0 0 12px; }
.wl-sub { color: var(--muted); font-size: 16px; margin: 0 auto 22px; max-width: 460px; }

/* ---------- FOMO counter ---------- */
.wl-fomo { text-align: center; padding: 18px; margin-bottom: 18px; }
.wl-fomo-line { font-size: 15px; color: var(--text); }
.wl-fomo-total { color: var(--accent); font-size: 18px; }
.wl-fomo-bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); margin: 12px 0 8px; overflow: hidden; }
.wl-fomo-bar > span { display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .9s ease; }
.wl-fomo-left { font-size: 13px; color: var(--muted); }
.wl-fomo-left strong { color: var(--err); font-size: 15px; }

/* ---------- Forms ---------- */
.wl-form { text-align: left; padding: 20px; margin-bottom: 14px; }
.wl-label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.wl-phone-row { display: flex; align-items: stretch; border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden; background: rgba(255,255,255,.04); }
.wl-phone-prefix { display: flex; align-items: center; padding: 0 14px; font-weight: 700;
  color: var(--accent); background: rgba(212,175,55,.08); border-right: 1px solid var(--border); }
.wl-phone-row input { flex: 1; border: 0; background: transparent; color: var(--text);
  font-size: 18px; letter-spacing: .06em; padding: 14px; outline: none; }
.wl-returning-hint { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }

.wl-consent { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 16px; font-size: 13px; color: var(--muted); }
.wl-consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: 0 0 auto; }
.wl-consent a { color: var(--accent); }

.wl-cta { font-size: 17px; padding: 15px; }
.wl-trust { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; margin-top: 14px; }
.wl-trust span { font-size: 12px; color: var(--muted); }
.wl-trust span::before { content: "✓"; color: var(--accent); margin-right: 5px; }

/* ---------- OTP ---------- */
.wl-otp-title { margin: 0 0 6px; font-size: 20px; text-align: center; }
.wl-otp-sub { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.wl-otp-sub strong { color: var(--text); }
.wl-otp-input { display: block; width: 100%; text-align: center; font-size: 34px; letter-spacing: 18px;
  padding: 14px 14px 14px 32px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: rgba(255,255,255,.04); color: var(--text); margin-bottom: 16px; }
.wl-otp-actions { display: flex; justify-content: space-between; margin-top: 14px; }
.wl-link { background: none; border: 0; color: var(--accent); font-size: 14px; cursor: pointer; padding: 4px; }
.wl-link:disabled { color: var(--muted); cursor: default; }
.wl-stub-note { margin-top: 14px; padding: 10px 12px; border-radius: var(--radius-sm);
  background: rgba(251,191,36,.12); border: 1px dashed var(--warn); color: var(--warn); font-size: 13px; text-align: center; }

/* ---------- Dashboard ---------- */
.wl-dash { display: grid; gap: 16px; }
.wl-rank { text-align: center; padding: 26px 20px; position: relative; }
.wl-rank-label { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.wl-rank-number { font-size: clamp(40px, 12vw, 64px); font-weight: 800; line-height: 1; margin: 8px 0 4px;
  color: var(--accent); }
.wl-rank-number #wl-rank { transition: opacity .2s; }

.wl-tier-badge { display: inline-block; margin-top: 8px; padding: 6px 16px; border-radius: 999px;
  font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 13px;
  color: var(--on-accent); background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

.wl-track { margin-top: 20px; }
.wl-needed { margin: 0 0 12px; font-size: 15px; color: var(--text); }
.wl-needed strong { color: var(--accent); font-size: 17px; }
.wl-progress { height: 12px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.wl-progress > span { display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .6s cubic-bezier(.2,.8,.2,1); }

/* Tier milestones row */
.wl-milestones { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; }
.wl-ms { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 4px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: rgba(255,255,255,.03); opacity: .5; transition: opacity .3s, border-color .3s, background .3s; }
.wl-ms.is-done { opacity: 1; border-color: var(--accent); background: rgba(212,175,55,.12); }
.wl-ms-name { font-size: 12px; font-weight: 700; }
.wl-ms-at { font-size: 11px; color: var(--muted); }
.wl-ms.is-done .wl-ms-at { color: var(--accent); }

.wl-unlocked { text-align: center; padding: 22px; border-color: var(--accent);
  background: linear-gradient(180deg, rgba(212,175,55,.12), var(--panel)); }
.wl-unlocked-emoji { font-size: 40px; }
.wl-unlocked h2 { margin: 8px 0 6px; font-size: 21px; }
.wl-unlocked p { margin: 0; color: var(--muted); }

/* ---------- Share ---------- */
.wl-share { padding: 22px; }
.wl-share-title { margin: 0 0 6px; font-size: 19px; }
.wl-share-sub { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.wl-link-row { display: flex; gap: 8px; margin-bottom: 14px; }
.wl-link-row input { flex: 1; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: rgba(255,255,255,.04); color: var(--text); padding: 12px; font-size: 13px; }
.wl-link-row .btn { white-space: nowrap; }
.wl-share-btns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.wl-share-btn { display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
  padding: 12px 8px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: rgba(255,255,255,.04); color: var(--text); font-size: 13px; font-weight: 600; text-decoration: none; }
.wl-share-btn:hover { border-color: var(--accent); }

/* ---------- Perks ---------- */
.wl-perks { padding: 22px; }
.wl-perks-title { margin: 0 0 14px; font-size: 19px; }
.wl-perks-list { margin: 0; padding: 0; list-style: none; counter-reset: perk; display: grid; gap: 14px; }
.wl-perks-list li { position: relative; padding-left: 40px; }
.wl-perks-list li::before { counter-increment: perk; content: counter(perk);
  position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
  color: var(--on-accent); background: var(--accent); font-size: 14px; }
.wl-perks-list li strong { display: block; margin-bottom: 3px; }
.wl-perks-list li span { color: var(--muted); font-size: 14px; }

.wl-stub-sim { display: block; margin: 4px auto 0; text-align: center; }

@media (max-width: 420px) {
  .wl-share-btns { grid-template-columns: 1fr; }
  .wl-otp-input { letter-spacing: 12px; padding-left: 24px; }
}
