/* ── AlphaWhisper landing (v77.83) ─────────────────────────────────
   Dark space theme, deliberately opposite of the light product UI so
   product screenshots detonate on screen. Mobile-first, 44pt targets,
   reduced-motion respected in landing.js. */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --lp-bg: #05060f;
  --lp-bg2: #0a0d1f;
  --lp-panel: rgba(15, 19, 40, 0.72);
  --lp-border: rgba(124, 137, 255, 0.16);
  --lp-text: #e8eaf6;
  --lp-dim: #8b93b8;
  --lp-green: #22c55e;
  --lp-red: #ef4444;
  --lp-gold: #fbbf24;
  --lp-violet: #7c3aed;
  --lp-violet2: #a855f7;
  --lp-blue: #38bdf8;
  --lp-mono: 'JetBrains Mono', ui-monospace, monospace;
  --lp-sans: 'Inter', -apple-system, system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body.lp {
  background: var(--lp-bg);
  color: var(--lp-text);
  font-family: var(--lp-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ─────────────────────────────────────────────────────────── */
.lp-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 40px);
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
  background: linear-gradient(180deg, rgba(5,6,15,0.92), rgba(5,6,15,0.55) 70%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lp-logo {
  display: flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 16px; color: var(--lp-text);
  text-decoration: none; letter-spacing: -0.01em;
}
.lp-logo-mark {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 8px;
  font-size: 12px; font-weight: 900;
  background: linear-gradient(135deg, var(--lp-violet), var(--lp-violet2));
  box-shadow: 0 0 18px rgba(124,58,237,0.55);
}
.lp-logo-ai { color: var(--lp-violet2); }
.lp-nav-links { display: flex; align-items: center; gap: clamp(10px, 2.5vw, 26px); }
.lp-nav-links a {
  color: var(--lp-dim); text-decoration: none;
  font-size: 13.5px; font-weight: 600;
  padding: 10px 2px;   /* generous tap target */
  transition: color 0.15s;
}
.lp-nav-links a:hover { color: var(--lp-text); }
.lp-nav-cta {
  color: #fff !important;
  background: linear-gradient(90deg, var(--lp-violet), var(--lp-violet2));
  padding: 10px 18px !important;
  border-radius: 999px;
  box-shadow: 0 0 22px rgba(124,58,237,0.45);
}
@media (max-width: 720px) {
  .lp-nav-links a:not(.lp-nav-cta):not(.lp-nav-signin) { display: none; }
}

/* ── Hero ────────────────────────────────────────────────────────── */
.lp-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 110px clamp(16px, 5vw, 48px) 60px;
  overflow: hidden;
}
#rain-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.lp-hero-content {
  position: relative; z-index: 2;
  max-width: 780px; text-align: center;
}
.lp-hero-lines { min-height: 3.6em; }
.lp-hl {
  font-size: clamp(30px, 6vw, 58px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.12;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.lp-hl.on { opacity: 1; transform: none; }
.lp-hl-2 { color: var(--lp-gold); text-shadow: 0 0 34px rgba(251,191,36,0.35); }
.lp-hl-3 { background: linear-gradient(90deg, var(--lp-violet2), var(--lp-blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-hero-sub {
  margin: 22px auto 30px;
  max-width: 620px;
  color: var(--lp-dim);
  font-size: clamp(14.5px, 1.8vw, 17px);
  opacity: 0; transition: opacity 0.8s ease 0.2s;
}
.lp-hero-sub.on { opacity: 1; }

/* Waitlist form */
.lp-wl-form {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.7s ease 0.35s, transform 0.7s ease 0.35s;
}
.lp-wl-form.on { opacity: 1; transform: none; }
.lp-wl-form input[type="email"], .lp-wl-form select {
  height: 50px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--lp-border);
  background: rgba(10, 13, 31, 0.85);
  color: var(--lp-text);
  font-size: 15px;
  font-family: var(--lp-sans);
  min-width: 0;
}
.lp-wl-form input[type="email"] { flex: 1 1 240px; max-width: 320px; }
.lp-wl-form select { flex: 0 1 175px; appearance: none; -webkit-appearance: none; cursor: pointer; }
.lp-wl-form input:focus, .lp-wl-form select:focus {
  outline: none; border-color: var(--lp-violet2);
  box-shadow: 0 0 0 3px rgba(168,85,247,0.22);
}
.lp-btn-primary {
  height: 50px;
  padding: 0 26px;
  border: none; border-radius: 12px;
  background: linear-gradient(90deg, var(--lp-violet), var(--lp-violet2));
  color: #fff; font-size: 15px; font-weight: 800;
  font-family: var(--lp-sans);
  cursor: pointer;
  box-shadow: 0 0 26px rgba(124,58,237,0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.lp-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 36px rgba(124,58,237,0.7); }
.lp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.lp-wl-note { margin-top: 14px; font-size: 12.5px; color: var(--lp-dim); min-height: 1.4em; }
.lp-wl-note.ok { color: var(--lp-green); font-weight: 700; }
.lp-wl-note.err { color: var(--lp-red); font-weight: 700; }
.lp-hero-scroll {
  display: inline-block; margin-top: 42px;
  color: var(--lp-dim); text-decoration: none; font-size: 13px; font-weight: 600;
  padding: 10px;
}
.lp-scroll-arrow { display: inline-block; animation: lp-bob 1.6s ease-in-out infinite; }
@keyframes lp-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ── Chapters ────────────────────────────────────────────────────── */
.lp-ch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(60px, 10vh, 120px) clamp(16px, 5vw, 48px);
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.lp-ch.on { opacity: 1; transform: none; }
.lp-ch-rev .lp-ch-copy { order: 2; }
.lp-ch-rev .lp-ch-visual { order: 1; }
.lp-ch-kicker {
  font-family: var(--lp-mono);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--lp-violet2);
  margin-bottom: 14px;
}
.lp-ch h2 {
  font-size: clamp(24px, 3.6vw, 38px);
  font-weight: 900; letter-spacing: -0.02em; line-height: 1.15;
  margin-bottom: 16px;
}
.lp-ch p { color: var(--lp-dim); font-size: 15px; margin-bottom: 12px; }
.lp-ch p b, .lp-ch li b { color: var(--lp-text); }
.lp-ch-try { color: var(--lp-text) !important; }
.lp-ch-points { list-style: none; margin-top: 16px; display: grid; gap: 10px; }
.lp-ch-points li {
  color: var(--lp-dim); font-size: 14px;
  padding-left: 18px; position: relative;
}
.lp-ch-points li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--lp-violet2);
  box-shadow: 0 0 10px rgba(168,85,247,0.8);
}

/* Holo panels */
.lp-holo {
  background: var(--lp-panel);
  border: 1px solid var(--lp-border);
  border-radius: 18px;
  padding: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 70px rgba(0,0,0,0.5), 0 0 40px rgba(124,58,237,0.08) inset;
  transform-style: preserve-3d;
  will-change: transform;
}
.lp-holo-head {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--lp-mono);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--lp-dim);
  margin-bottom: 12px;
}
.lp-holo-dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--lp-green);
  box-shadow: 0 0 10px rgba(34,197,94,0.9);
  animation: lp-pulse 2s ease-in-out infinite;
}
@keyframes lp-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* Radar mock cards */
.lp-mock-card {
  background: rgba(8, 10, 24, 0.85);
  border: 1px solid var(--lp-border);
  border-left: 3px solid var(--lp-green);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.lp-mock-dim { opacity: 0.62; border-left: 3px dashed var(--lp-gold); }
.lp-mock-row1 { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.lp-mock-sym { font-family: var(--lp-mono); font-weight: 800; font-size: 16px; }
.lp-mock-badge {
  font-size: 10px; font-weight: 800; letter-spacing: 0.04em;
  padding: 3px 9px; border-radius: 999px;
}
.lp-mock-badge.up { background: var(--lp-green); color: #04120a; }
.lp-mock-badge.coiled { background: rgba(251,191,36,0.9); color: #451a03; }
.lp-mock-score {
  margin-left: auto; font-family: var(--lp-mono); font-size: 12px; font-weight: 800;
  background: rgba(251,191,36,0.15); color: var(--lp-gold);
  padding: 2px 9px; border-radius: 999px;
}
.lp-mock-cue { font-size: 11.5px; color: var(--lp-blue); margin-bottom: 7px; }
.lp-mock-driver {
  font-size: 11px; color: var(--lp-dim);
  background: rgba(255,255,255,0.04);
  border-radius: 6px; padding: 4px 8px; margin-top: 4px;
}

/* Gravity well canvas */
.lp-holo-well { padding-bottom: 10px; }
#well-canvas {
  display: block; width: 100%; height: 320px;
  border-radius: 12px;
  touch-action: none;
  cursor: grab;
}
#well-canvas.grabbing { cursor: grabbing; }

/* Whisper feed */
.lp-feed {
  font-family: var(--lp-mono);
  font-size: 12px;
  min-height: 250px;
  display: flex; flex-direction: column; gap: 9px;
}
.lp-feed-line {
  padding: 8px 11px;
  background: rgba(8, 10, 24, 0.85);
  border: 1px solid var(--lp-border);
  border-radius: 9px;
  color: var(--lp-dim);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.lp-feed-line.on { opacity: 1; transform: none; }
.lp-feed-line .t { color: var(--lp-violet2); margin-right: 8px; }
.lp-feed-line.sig { border-color: rgba(34,197,94,0.4); color: var(--lp-text); }
.lp-dot-live { background: var(--lp-gold); box-shadow: 0 0 10px rgba(251,191,36,0.9); }

/* Pulse mock */
.lp-mock-pulse { display: grid; gap: 10px; }
.lp-mock-stance {
  background: rgba(8, 10, 24, 0.85);
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px; color: var(--lp-text);
}
.lp-mock-tag {
  display: inline-block;
  font-size: 10px; font-weight: 800; letter-spacing: 0.05em;
  background: rgba(34,197,94,0.16); color: var(--lp-green);
  border-radius: 999px; padding: 3px 9px; margin-right: 8px;
}
.lp-mock-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.lp-mock-chips span {
  font-size: 11px; font-weight: 600; color: var(--lp-dim);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--lp-border);
  border-radius: 999px; padding: 4px 11px;
}
.lp-mock-focus {
  font-family: var(--lp-mono); font-size: 11.5px;
  color: var(--lp-gold);
  background: rgba(251,191,36,0.07);
  border: 1px dashed rgba(251,191,36,0.35);
  border-radius: 10px; padding: 9px 12px;
}

/* ── Sections: diff / who / faq / big CTA ────────────────────────── */
.lp-sec-title {
  text-align: center;
  font-size: clamp(22px, 3.4vw, 34px);
  font-weight: 900; letter-spacing: -0.02em;
  margin-bottom: clamp(26px, 4vh, 44px);
}
.lp-diff, .lp-who, .lp-faq {
  max-width: 1120px; margin: 0 auto;
  padding: clamp(50px, 8vh, 90px) clamp(16px, 5vw, 48px);
}
.lp-diff-grid, .lp-who-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.lp-diff-card, .lp-who-card {
  background: var(--lp-panel);
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  padding: 22px 20px;
}
.lp-diff-icon { font-size: 26px; margin-bottom: 12px; }
.lp-diff-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.lp-diff-card p, .lp-who-card p { color: var(--lp-dim); font-size: 13.5px; }
.lp-who-badge {
  display: inline-block;
  font-family: var(--lp-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--lp-violet2);
  background: rgba(124,58,237,0.12);
  border-radius: 999px; padding: 4px 12px; margin-bottom: 12px;
}
.lp-faq { max-width: 760px; }
.lp-faq details {
  background: var(--lp-panel);
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  padding: 0 18px;
  margin-bottom: 10px;
}
.lp-faq summary {
  cursor: pointer;
  font-weight: 700; font-size: 14.5px;
  padding: 15px 0;
  list-style: none;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: '+'; float: right; color: var(--lp-violet2); font-weight: 800; }
.lp-faq details[open] summary::after { content: '−'; }
.lp-faq details p { color: var(--lp-dim); font-size: 13.5px; padding-bottom: 16px; }

.lp-wl-big {
  text-align: center;
  padding: clamp(60px, 10vh, 110px) clamp(16px, 5vw, 48px);
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(124,58,237,0.18), transparent),
    var(--lp-bg2);
}
.lp-wl-big h2 { font-size: clamp(26px, 4.4vw, 44px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 12px; }
.lp-wl-big > p { color: var(--lp-dim); margin-bottom: 26px; }
.lp-wl-form-big { opacity: 1; transform: none; }

/* ── Footer ──────────────────────────────────────────────────────── */
.lp-footer {
  border-top: 1px solid var(--lp-border);
  padding: 44px clamp(16px, 5vw, 48px) calc(30px + env(safe-area-inset-bottom, 0px));
  background: #04050c;
}
.lp-footer-grid {
  max-width: 1120px; margin: 0 auto 30px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 26px;
}
.lp-footer-brand p { color: var(--lp-dim); font-size: 13px; margin-top: 10px; }
.lp-footer-col h4 {
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--lp-dim);
  margin-bottom: 12px;
}
.lp-footer-col a {
  display: block;
  color: var(--lp-dim); text-decoration: none;
  font-size: 13.5px; padding: 5px 0;
}
.lp-footer-col a:hover { color: var(--lp-text); }
.lp-footer-legal { max-width: 1120px; margin: 0 auto; border-top: 1px solid rgba(124,137,255,0.08); padding-top: 20px; }
.lp-footer-legal p { color: var(--lp-dim); font-size: 12px; margin-bottom: 8px; }
.lp-disclaimer { font-size: 11px !important; opacity: 0.75; line-height: 1.6; }

/* ── Static subpages (docs / contact / legal) ────────────────────── */
.lp-page {
  max-width: 760px; margin: 0 auto;
  padding: 120px clamp(16px, 5vw, 48px) 70px;
}
.lp-page h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 900; letter-spacing: -0.02em; margin-bottom: 8px; }
.lp-page .lp-updated { color: var(--lp-dim); font-size: 12.5px; margin-bottom: 30px; font-family: var(--lp-mono); }
.lp-page h2 { font-size: 19px; font-weight: 800; margin: 30px 0 10px; }
.lp-page h3 { font-size: 15.5px; font-weight: 800; margin: 20px 0 8px; }
.lp-page p, .lp-page li { color: var(--lp-dim); font-size: 14.5px; margin-bottom: 10px; }
.lp-page ul, .lp-page ol { padding-left: 22px; margin-bottom: 14px; }
.lp-page b { color: var(--lp-text); }
.lp-page a { color: var(--lp-violet2); }
.lp-contact-form { display: grid; gap: 12px; max-width: 460px; margin-top: 22px; }
.lp-contact-form input, .lp-contact-form textarea {
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid var(--lp-border);
  background: rgba(10, 13, 31, 0.85);
  color: var(--lp-text);
  font-size: 14.5px; font-family: var(--lp-sans);
}
.lp-contact-form textarea { min-height: 130px; resize: vertical; }
.lp-contact-form input:focus, .lp-contact-form textarea:focus {
  outline: none; border-color: var(--lp-violet2);
  box-shadow: 0 0 0 3px rgba(168,85,247,0.22);
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 880px) {
  .lp-ch { grid-template-columns: 1fr; gap: 26px; }
  .lp-ch-rev .lp-ch-copy { order: 1; }
  .lp-ch-rev .lp-ch-visual { order: 2; }
  .lp-diff-grid, .lp-who-grid { grid-template-columns: 1fr; }
  .lp-footer-grid { grid-template-columns: 1fr 1fr; }
  #well-canvas { height: 270px; }
}
@media (max-width: 480px) {
  .lp-wl-form input[type="email"] { max-width: none; flex-basis: 100%; }
  .lp-wl-form select { flex: 1 1 auto; }
  .lp-footer-grid { grid-template-columns: 1fr; }
}

/* ── Reduced motion ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lp-hl, .lp-hero-sub, .lp-wl-form, .lp-ch { transition: none; opacity: 1; transform: none; }
  .lp-scroll-arrow, .lp-holo-dot { animation: none; }
}
