/* V3TR4 Leads — v1 single-screen sales page.
   One job: website + email + count → pay. Everything else lives on /how. */

:root {
  --bg: #070b12;
  --ink: #eff5f0;
  --muted: #93a3b0;
  --mint: #5ee39b;
  --mint-deep: #2fbf78;
  --teal: #2dd4bf;
  --card: rgba(255, 255, 255, 0.045);
  --card-line: rgba(255, 255, 255, 0.09);
  --field: rgba(4, 8, 14, 0.6);
  --field-line: rgba(255, 255, 255, 0.14);
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 "Instrument Sans", "Space Grotesk", sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* ---- ambient background video (Seedance loop) ---- */
.bgvideo {
  position: fixed; inset: 0; z-index: -2; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 1.2s ease-out;
}
.bgvideo.live { opacity: 0.55; }
.bgvideo.live ~ .aurora { opacity: 0.35; }

/* ---- ambient aurora (fallback + poster) ---- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; filter: blur(70px); }
.aurora i {
  position: absolute; border-radius: 50%; opacity: 0.5; display: block;
  animation: drift 26s ease-in-out infinite alternate;
}
.aurora i:nth-child(1) {
  width: 55vw; height: 55vw; left: -12vw; top: -18vw;
  background: radial-gradient(circle, rgba(94, 227, 155, 0.5), transparent 65%);
}
.aurora i:nth-child(2) {
  width: 48vw; height: 48vw; right: -14vw; top: 4vh;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.34), transparent 65%);
  animation-duration: 32s; animation-delay: -8s;
}
.aurora i:nth-child(3) {
  width: 50vw; height: 50vw; left: 22vw; bottom: -28vw;
  background: radial-gradient(circle, rgba(27, 100, 255, 0.28), transparent 65%);
  animation-duration: 38s; animation-delay: -16s;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(6vw, 5vh, 0) scale(1.18); }
}

/* ---- chrome ---- */
.bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(20px, 4vw, 48px);
}
.wordmark {
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 19px;
  color: var(--ink); text-decoration: none; letter-spacing: 0.01em;
}
.wordmark span { color: var(--mint); }
.ghost {
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 8px 16px; border: 1px solid var(--card-line); border-radius: 999px;
  transition: color 0.2s, border-color 0.2s;
}
.ghost:hover, .ghost:focus-visible { color: var(--ink); border-color: var(--mint-deep); }

/* ---- stage ---- */
.stage {
  flex: 1; display: grid; align-items: center; align-content: center;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.9fr);
  gap: clamp(28px, 5vw, 72px);
  padding: 12px clamp(20px, 5vw, 72px) 28px;
  max-width: 1180px; margin: 0 auto; width: 100%;
}

.pitch { position: relative; }
.pitch::before {
  content: ""; position: absolute; inset: -18% -10%; z-index: -1;
  background: radial-gradient(ellipse at 42% 52%, rgba(4, 7, 12, 0.72), transparent 72%);
  pointer-events: none;
}
.pitch h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.5rem, 5.6vw, 4.3rem);
  line-height: 1.04; letter-spacing: -0.025em; font-weight: 700;
  margin: 0 0 18px; text-wrap: balance;
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.pitch h1 em {
  font-style: normal; color: var(--mint);
  text-shadow: 0 0 34px rgba(94, 227, 155, 0.45);
}
.sub {
  color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.13rem); max-width: 42ch;
  margin: 0;
  animation: rise 0.7s 0.08s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.notice {
  margin-top: 18px; padding: 10px 16px; border-radius: 10px; font-size: 14px;
  background: rgba(94, 227, 155, 0.08); border: 1px solid rgba(94, 227, 155, 0.3);
  color: var(--ink); width: fit-content;
}

/* ---- order card ---- */
.order-card {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 32px);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 0 0 1px rgba(94, 227, 155, 0.06),
    0 24px 70px rgba(0, 0, 0, 0.5),
    0 0 90px rgba(94, 227, 155, 0.07);
  animation: rise 0.7s 0.16s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

label {
  display: block; font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 7px;
}
input[type="text"], input[type="email"] {
  width: 100%; padding: 13px 15px; margin-bottom: 18px;
  background: var(--field); color: var(--ink);
  border: 1px solid var(--field-line); border-radius: 11px;
  font: 500 16px "Instrument Sans", sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input[type="text"]::placeholder, input[type="email"]::placeholder { color: #66757f; }
input[type="text"]:focus, input[type="email"]:focus {
  outline: none; border-color: var(--mint-deep);
  box-shadow: 0 0 0 3px rgba(94, 227, 155, 0.15);
}

.count-head { display: flex; align-items: baseline; justify-content: space-between; }
.count-head output {
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 26px;
  color: var(--mint); font-variant-numeric: tabular-nums; line-height: 1;
}
input[type="range"] {
  width: 100%; margin: 12px 0 6px; appearance: none; -webkit-appearance: none;
  height: 6px; border-radius: 999px; background: var(--slider-track, rgba(255,255,255,0.12));
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--mint); border: none;
  box-shadow: 0 0 0 5px rgba(94, 227, 155, 0.18), 0 0 18px rgba(94, 227, 155, 0.55);
  transition: transform 0.15s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--mint); border: none;
  box-shadow: 0 0 0 5px rgba(94, 227, 155, 0.18), 0 0 18px rgba(94, 227, 155, 0.55);
}
input[type="range"]:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
.per-lead {
  margin: 0 0 20px; font-size: 13.5px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.cta {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 16px 20px; border: none; border-radius: 13px; cursor: pointer;
  background: linear-gradient(135deg, var(--mint) 0%, var(--teal) 130%);
  color: #05130b;
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 18px;
  letter-spacing: 0.005em;
  box-shadow: 0 10px 34px rgba(94, 227, 155, 0.28);
  transition: transform 0.16s, box-shadow 0.16s, filter 0.16s;
}
.cta:hover, .cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(94, 227, 155, 0.4);
  filter: brightness(1.05);
}
.cta:active { transform: translateY(0); }
.cta:disabled { filter: saturate(0.4) brightness(0.85); cursor: wait; transform: none; }
.cta-price {
  font-variant-numeric: tabular-nums; font-size: 20px;
  padding-left: 14px; border-left: 1.5px solid rgba(5, 19, 11, 0.25);
}

.error {
  margin: 12px 0 0; font-size: 14px; color: #ff9d90;
  background: rgba(224, 90, 74, 0.1); border: 1px solid rgba(224, 90, 74, 0.35);
  border-radius: 9px; padding: 9px 13px;
}
.fine { margin: 14px 0 0; font-size: 12px; color: #8595a2; line-height: 1.55; }
.fine a { color: #8fa5b3; }

.spinner {
  display: inline-block; width: 15px; height: 15px; vertical-align: -2px;
  border: 2px solid rgba(5, 19, 11, 0.3); border-top-color: #05130b;
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- footer ---- */
.legal { font-size: 12px; color: #7d8c99; gap: 16px; flex-wrap: wrap; }
.legal a { color: #7e909d; text-decoration: none; }
.legal a:hover, .legal a:focus-visible { color: var(--ink); }

/* ---- consent (PECR) ---- */
.consent {
  position: fixed; left: 18px; bottom: 18px; z-index: 10; max-width: 420px;
  display: none; flex-direction: column; gap: 12px;
  background: #0d141f; border: 1px solid var(--card-line); border-radius: 13px;
  padding: 16px 18px; font-size: 13.5px; color: var(--muted);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}
.consent.show { display: flex; }
.consent a { color: var(--mint); }
.consent .actions { display: flex; gap: 10px; }
.consent-btn {
  padding: 7px 16px; border-radius: 999px; cursor: pointer; font: 600 13.5px "Instrument Sans", sans-serif;
  background: transparent; color: var(--ink); border: 1px solid var(--field-line);
}
.consent-btn.accept { background: var(--mint); color: #05130b; border-color: var(--mint); }

/* ---- responsive: form directly under headline, still no thinking ---- */
@media (max-width: 860px) {
  input[type="range"] { height: 8px; padding: 14px 0; background-clip: content-box; }
  input[type="range"]::-webkit-slider-thumb { width: 30px; height: 30px; }
  input[type="range"]::-moz-range-thumb { width: 30px; height: 30px; }
  .stage { grid-template-columns: 1fr; gap: 26px; padding-top: 4px; align-content: start; }
  .pitch { position: relative; }
.pitch::before {
  content: ""; position: absolute; inset: -18% -10%; z-index: -1;
  background: radial-gradient(ellipse at 42% 52%, rgba(4, 7, 12, 0.72), transparent 72%);
  pointer-events: none;
}
.pitch h1 { font-size: clamp(2.2rem, 9vw, 2.9rem); }
  .sub { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .aurora i, .spinner { animation: none !important; }
  .pitch h1, .sub, .order-card { animation: none !important; }
  .cta, .ghost, input, .cta:hover { transition: none !important; transform: none !important; }
}
