/* =============================================================================
 * Loxes AI — VSL landing page
 *
 * Deliberately committed to a dark theme (paid-social traffic, one page, one
 * action). Mobile-first: the overwhelming majority of Facebook/Instagram
 * clicks arrive on a phone held vertically.
 * ========================================================================== */

:root {
  --bg: #08090c;
  --bg-raised: #0f1116;
  --line: #1e222b;
  --text: #f2f4f8;
  --muted: #98a2b3;
  --accent: #5b8cff;
  --wa: #25d366;
  --wa-dark: #1da851;

  --w: 720px;
  --r: 14px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* Room for the sticky CTA so it never covers the last line of copy. */
  padding-bottom: env(safe-area-inset-bottom);
}

/* A soft glow behind the fold — depth without a background image request. */
body::before {
  content: "";
  position: fixed;
  inset: -20% 0 auto 0;
  height: 60vh;
  background: radial-gradient(60% 60% at 50% 0%, rgba(91, 140, 255, 0.14), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

img, video { max-width: 100%; display: block; }

/* Author `display` rules outrank the UA stylesheet's `[hidden] {display:none}`,
   so any class with a display value silently defeats the attribute. The whole
   page is gated on `hidden` (CTA reveal, conditional form fields) — make it
   win unconditionally. */
[hidden] { display: none !important; }

/* --- Top bar --------------------------------------------------------------- */

.topbar {
  position: relative;
  z-index: 1;
  padding: 16px 20px 4px;
  text-align: center;
}

.wordmark {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.wordmark-dot { color: var(--accent); }

/* --- Layout ---------------------------------------------------------------- */

.stage {
  position: relative;
  z-index: 1;
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 20px 40px;
}

/* --- Hero ------------------------------------------------------------------ */

/* Everything above the video is kept tight on purpose: on a 390×844 phone the
   player has to clear the fold, or a third of paid traffic never sees it. */
.hero { padding-top: 8px; text-align: center; }

.eyebrow {
  margin: 0 0 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.headline {
  margin: 0 0 10px;
  font-size: clamp(25px, 6.2vw, 42px);
  line-height: 1.13;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.headline em { font-style: normal; }

.headline .hl {
  color: var(--wa);
  white-space: nowrap;
}

.subhead {
  margin: 0 auto 18px;
  max-width: 34em;
  font-size: clamp(15px, 3.7vw, 17px);
  line-height: 1.45;
  color: var(--muted);
}

.subhead strong { color: var(--text); font-weight: 700; }

/* --- Player ---------------------------------------------------------------- */

.player {
  position: relative;
  margin: 0 0 22px;
  aspect-ratio: var(--player-ratio, 16 / 9);
  background: #000;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9);
}

.player video,
.player .player-embed,
.player .player-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: #fff;
  font: inherit;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.55));
  transition: opacity 0.25s ease;
}

/* Once they've opted into sound, the overlay is just in the way. */
.player[data-state="playing"] .player-overlay { opacity: 0; pointer-events: none; }

.play-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  position: relative;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.14);
}

.play-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #08090c;
}

.play-label {
  font-size: 15px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
}

.player-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.14);
}

.player-bar-fill {
  height: 100%;
  width: 0;
  background: var(--wa);
  transition: width 0.25s linear;
}

/* --- CTA ------------------------------------------------------------------- */

.cta-block { animation: rise 0.45s ease both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 22px;
  border-radius: 12px;
  background: var(--wa);
  color: #04240f;
  font-size: clamp(16px, 4.2vw, 18px);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 30px -8px rgba(37, 211, 102, 0.5);
  transition: transform 0.12s ease, background 0.2s ease;
}

.cta:hover { background: var(--wa-dark); color: #fff; }
.cta:active { transform: scale(0.985); }

.cta-icon { width: 24px; height: 24px; flex: none; }

.cta-sub {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* --- Proof ----------------------------------------------------------------- */

.proof { margin-top: 54px; }

.proof-title,
.how-title {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.stats {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
}

.stat {
  padding: 20px 18px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r);
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--wa);
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}

/* --- How it works ---------------------------------------------------------- */

.how { margin-top: 54px; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 15px;
  color: var(--muted);
}

.steps strong { display: block; color: var(--text); font-weight: 600; }

.step-n {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(91, 140, 255, 0.14);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

/* --- Closer ---------------------------------------------------------------- */

.closer {
  margin-top: 54px;
  padding: 28px 22px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r);
  text-align: center;
}

.closer-title {
  margin: 0 0 12px;
  font-size: clamp(21px, 5.2vw, 27px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.closer-body {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 16px;
}

/* --- Sticky CTA ------------------------------------------------------------ */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(8, 9, 12, 0), rgba(8, 9, 12, 0.94) 40%);
  animation: rise 0.45s ease both;
}

.cta-sticky { padding: 15px 20px; }

/* On a wide screen the inline CTAs are always visible — no bar needed. */
@media (min-width: 900px) {
  .sticky-cta { display: none; }
}

/* --- Footer ---------------------------------------------------------------- */

.foot {
  position: relative;
  z-index: 1;
  padding: 30px 20px 110px;
  text-align: center;
  font-size: 12px;
  color: #5b6472;
}

.foot p { margin: 0; }

@media (min-width: 900px) {
  .foot { padding-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
