/* ====================================================================
   VSL FUNNEL — SHARED STYLES
   Used across all pages. Edit design tokens in :root to rebrand.
   ==================================================================== */

/* ---- Design tokens ------------------------------------------------ */
:root {
  --funnel-bg:      oklch(0.96 0.02 260);      /* page background          */
  --video-bg:       oklch(0.22 0.02 262);      /* dark card background     */
  --video-shadow:   oklch(0.45 0.18 268 / 0.35);
  --track-bg:       oklch(0.32 0.02 262);
  --primary:        oklch(0.51 0.24 268);      /* accent / progress fill   */
  --primary-hover:  oklch(0.56 0.26 268);
  --badge-bg:       oklch(0.746 0.16 232.661); /* live-viewers chip        */
  --muted:          oklch(0.5 0.02 262);       /* footer / subtle text     */
  --card-bg:        #fff;
  --card-border:    oklch(0.92 0.01 260);
  --success:        oklch(0.65 0.2 145);       /* green for checkmarks     */
  --warning:        oklch(0.78 0.18 85);       /* amber for urgency        */
  --danger:         oklch(0.6 0.22 25);        /* red for errors           */
  --text:           #0f172a;
  --text-secondary: #475569;
  --radius:         12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Montserrat, ui-sans-serif, system-ui, sans-serif;
  background: var(--funnel-bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

main { min-height: 100vh; min-height: 100dvh; }

.shell  { margin: 0 auto; width: 100%; max-width: 64rem; padding: 0 16px; }
.stage  { min-height: 100dvh; }
@media (min-width: 640px) { .stage { min-height: 0; } }

/* ---- Cards -------------------------------------------------------- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: 0 4px 24px -6px rgba(0,0,0,.08);
}
@media (min-width: 640px) { .card { padding: 48px 40px; } }

/* ---- Video card (VSL page) ---------------------------------------- */
.video-card {
  background: var(--video-bg);
  box-shadow: 0 18px 40px -18px var(--video-shadow);
}
.video-wrap { position: relative; overflow: hidden; }
.video-box  { position: relative; width: 100%; background: var(--video-bg); }

/* ---- CTA button (shared) ------------------------------------------ */
.cta-btn {
  display: block;
  width: 100%;
  padding: 18px 32px;
  border: none;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-family: inherit;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, transform .1s;
  box-shadow: 0 8px 24px -6px color-mix(in oklch, var(--primary) 50%, transparent);
}
.cta-btn:hover { background: var(--primary-hover); transform: translateY(-1px); }
.cta-btn:active { transform: translateY(0); }
.cta-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.cta-sub {
  display: block; text-align: center;
  margin-top: 10px; font-size: 12px; font-weight: 600;
  color: var(--text-secondary);
}

/* ---- Pulsing CTA wrapper (attention) ------------------------------ */
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--primary) 40%, transparent); }
  50%      { box-shadow: 0 0 0 10px transparent; }
}
.cta-pulse { animation: cta-pulse 2s ease-in-out infinite; border-radius: var(--radius); }

/* ---- Spots / scarcity badge --------------------------------------- */
.spots-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 9999px;
  background: color-mix(in oklch, var(--warning) 15%, transparent);
  border: 1.5px solid var(--warning);
  color: oklch(0.4 0.12 85);
  font-size: 13px; font-weight: 700;
}
.spots-badge .dot {
  height: 8px; width: 8px; border-radius: 50%;
  background: var(--warning);
  animation: blink 1.2s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ---- Live-viewers badge ------------------------------------------- */
.live-badge {
  position: absolute; left: 50%; top: 12px;
  transform: translateX(-50%); z-index: 20;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 9999px;
  background: var(--badge-bg); color: #fff;
  font-size: 12px; font-weight: 800; letter-spacing: .02em;
  box-shadow: 0 10px 25px -8px rgba(0,0,0,.4);
  white-space: nowrap;
}
.ping { position: relative; display: inline-flex; height: 8px; width: 8px; }
.ping .wave {
  position: absolute; inset: 0; border-radius: 9999px; background: #fff;
  opacity: .75; animation: ping 1.4s cubic-bezier(0,0,.2,1) infinite;
}
.ping .dot { position: relative; display: inline-flex; height: 8px; width: 8px; border-radius: 9999px; background: #fff; }
@keyframes ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }
.live-badge svg { height: 14px; width: 14px; display: block; }

/* ---- Form elements ------------------------------------------------ */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; margin-bottom: 6px;
  font-size: 13px; font-weight: 700; color: var(--text);
}
.form-input {
  display: block; width: 100%;
  padding: 14px 16px; border: 2px solid var(--card-border);
  border-radius: var(--radius); background: #fff;
  font-family: inherit; font-size: 16px; color: var(--text);
  transition: border-color .15s;
  outline: none;
}
.form-input:focus { border-color: var(--primary); }
.form-input.is-error { border-color: var(--danger); }
.form-error {
  margin-top: 6px; font-size: 12px; font-weight: 600;
  color: var(--danger); display: none;
}
.form-input.is-error + .form-error { display: block; }

.form-row {
  display: flex; gap: 12px;
}
.form-row .form-input { flex: 1; }
.form-row .prefix {
  flex: 0 0 100px; text-align: center;
}

/* ---- Phone input (country code + number) -------------------------- */
.phone-row { display: flex; gap: 0; }
.phone-prefix {
  flex: 0 0 auto; min-width: 90px;
  padding: 14px 12px; border: 2px solid var(--card-border);
  border-right: none; border-radius: var(--radius) 0 0 var(--radius);
  background: oklch(0.97 0.005 260); font-family: inherit; font-size: 16px;
  font-weight: 600; color: var(--text); outline: none; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' fill='none' stroke='%23475569' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  padding-right: 28px;
}
.phone-prefix:focus { border-color: var(--primary); }
.phone-number {
  flex: 1;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ---- OTP code inputs ---------------------------------------------- */
.otp-row {
  display: flex; justify-content: center; gap: 12px;
  margin: 24px 0;
}
.otp-digit {
  width: 56px; height: 64px;
  border: 2px solid var(--card-border);
  border-radius: var(--radius);
  background: #fff; text-align: center;
  font-family: inherit; font-size: 28px; font-weight: 800;
  color: var(--text); outline: none;
  transition: border-color .15s;
}
.otp-digit:focus { border-color: var(--primary); }

/* ---- Step indicator ------------------------------------------------ */
.steps {
  display: flex; justify-content: center; gap: 8px;
  margin-bottom: 28px;
}
.step-dot {
  height: 8px; border-radius: 9999px;
  background: var(--card-border);
  transition: all .3s ease;
}
.step-dot.active { width: 32px; background: var(--primary); }
.step-dot:not(.active) { width: 8px; }

/* ---- Trust signals / bullet list ---------------------------------- */
.trust-list { list-style: none; padding: 0; margin: 24px 0; }
.trust-list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0; font-size: 14px; font-weight: 600;
  color: var(--text-secondary);
}
.trust-list .check {
  flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px;
  border-radius: 50%; background: color-mix(in oklch, var(--success) 15%, transparent);
  display: grid; place-items: center;
}
.trust-list .check svg { width: 12px; height: 12px; color: var(--success); }

/* ---- Section headings --------------------------------------------- */
.section-title {
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 900; line-height: 1.15;
  text-align: center; margin: 0 0 8px;
}
.section-sub {
  font-size: 15px; font-weight: 500;
  color: var(--text-secondary);
  text-align: center; margin: 0 0 28px;
}

/* ---- Footer ------------------------------------------------------- */
footer {
  margin-top: 32px;
  padding: 64px 32px 40px;
  text-align: center;
}
@media (min-width: 640px) { footer { padding-top: 0; } }
.foot-links {
  display: flex; justify-content: center; gap: 24px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--muted);
}
.foot-links a { color: inherit; text-decoration: none; }
.foot-copy { margin-top: 12px; font-size: 11px; font-weight: 700; color: var(--muted); }
.foot-disclaimer {
  margin: 12px auto 0; max-width: 42rem;
  font-size: 10px; line-height: 1.6;
  color: color-mix(in oklch, var(--muted) 80%, transparent);
}

/* ---- Utility ------------------------------------------------------ */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mb-2  { margin-bottom: 8px; }
.mb-4  { margin-bottom: 16px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
