/* ─────────────────────────────────────────────────────────────────────────────
   Luntrack landing page — what a logged-OUT visitor sees at luntrack.com.
   Signed-in visitors never reach it: index.html's init() goes straight to the
   app, exactly as before.

   Everything here is namespaced under .lp- so it cannot collide with the app
   shell that lives in the same document. Colours come from theme.css tokens,
   so the landing restyles itself along with the rest of the site.
   ───────────────────────────────────────────────────────────────────────── */

#landing {
  position: fixed; inset: 0; z-index: 190;
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-base);
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { #landing { scroll-behavior: auto; } }

.lp {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  /* The whole page is measured off one rhythm unit so the vertical spacing
     stays proportional when it shrinks to a phone. */
  --lp-gap: clamp(64px, 9vw, 128px);
  --lp-pad: clamp(18px, 5vw, 32px);
  --lp-max: 1160px;
}
.lp-wrap { max-width: var(--lp-max); margin: 0 auto; padding-inline: var(--lp-pad); }

/* ── Ambient background ──────────────────────────────────────────────────────
   Two fixed layers: a purple aurora and a masked grid. Fixed rather than
   scrolling so the content moves over a stable field instead of dragging the
   whole gradient with it. */
.lp-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.lp-bg::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 900px 620px at 12% -5%, rgba(124,103,245,0.28) 0%, transparent 62%),
    radial-gradient(ellipse 760px 560px at 92% 12%, rgba(124,103,245,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 700px 500px at 50% 108%, rgba(124,103,245,0.14) 0%, transparent 65%);
}
.lp-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(124,103,245,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,103,245,0.10) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 100%);
          mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 100%);
}
.lp-content { position: relative; z-index: 1; }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.lp-nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: rgba(8,7,14,0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.lp-nav.is-stuck { border-bottom-color: var(--border); background: rgba(8,7,14,0.9); }
.lp-nav-inner {
  max-width: var(--lp-max); margin: 0 auto; padding: 14px var(--lp-pad);
  display: flex; align-items: center; gap: 12px;
}
.lp-brand { display: flex; align-items: center; gap: 9px; margin-right: auto; text-decoration: none; }
.lp-brand-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--purple-200);
  box-shadow: 0 0 10px 2px var(--accent-glow);
  animation: lp-pulse 2.8s ease-in-out infinite;
}
@keyframes lp-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.85); } }
.lp-brand-name { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 18px; letter-spacing: -.2px; color: var(--text-primary); }
.lp-nav-links { display: flex; gap: 4px; }
.lp-nav-links a {
  padding: 8px 13px; border-radius: var(--radius-full);
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.62);
  text-decoration: none; transition: color .18s, background .18s;
}
.lp-nav-links a:hover { color: var(--text-primary); background: var(--bg-elevated); }
@media (max-width: 860px) { .lp-nav-links { display: none; } }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border: 1px solid transparent; border-radius: var(--radius-full);
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 500;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .16s ease, box-shadow .22s ease, background .2s, border-color .2s;
}
.lp-btn:active { transform: scale(.975); }
.lp-btn-primary {
  background: linear-gradient(135deg, #8f7bff 0%, var(--accent) 55%, #6248d8 100%);
  color: #fff; box-shadow: 0 8px 26px rgba(124,103,245,0.34), inset 0 1px 0 rgba(255,255,255,0.22);
}
.lp-btn-primary:hover { box-shadow: 0 12px 36px rgba(124,103,245,0.5), inset 0 1px 0 rgba(255,255,255,0.28); }
.lp-btn-ghost { background: var(--bg-elevated); border-color: var(--border-strong); color: var(--text-primary); }
.lp-btn-ghost:hover { background: var(--bg-hover); border-color: var(--accent); }
.lp-btn-lg { padding: 15px 30px; font-size: 16.5px; }
/* On a narrow phone the two pill buttons crowd the logo out. Log in becomes a
   plain text link rather than disappearing: someone who ALREADY has an account
   and opens luntrack.com on their phone must still have a way in, and hiding
   the only sign-in control behind "Get started" is how that user gets stuck. */
@media (max-width: 520px) {
  .lp-nav .lp-btn-ghost {
    background: none; border-color: transparent; padding: 12px 10px;
    color: rgba(255,255,255,0.72);
  }
  .lp-nav .lp-btn-ghost:hover { background: none; border-color: transparent; color: #fff; }
  .lp-nav .lp-btn-primary { padding: 12px 18px; }
  .lp-nav-inner { gap: 4px; }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.lp-hero { padding-top: clamp(48px, 8vw, 96px); padding-bottom: var(--lp-gap); text-align: center; }
.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; margin-bottom: 26px;
  background: var(--accent-soft); border: 1px solid rgba(124,103,245,0.28);
  border-radius: var(--radius-full);
  font-size: 13px; font-weight: 500; color: var(--purple-200);
}
.lp-eyebrow b {
  background: var(--accent); color: #fff; font-weight: 700; font-size: 11px;
  letter-spacing: .5px; text-transform: uppercase;
  padding: 3px 8px; border-radius: var(--radius-full);
}
.lp-h1 {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(38px, 7.2vw, 76px); line-height: 1.03; letter-spacing: -2px;
  margin: 0 0 22px;
}
.lp-h1 .lp-grad {
  background: linear-gradient(115deg, #ffffff 0%, var(--purple-200) 45%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lp-lead {
  max-width: 620px; margin: 0 auto 34px;
  font-size: clamp(16px, 2.1vw, 19px); line-height: 1.62;
  color: rgba(255,255,255,0.66);
}
.lp-cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.lp-cta-note { margin-top: 16px; font-size: 13.5px; color: rgba(255,255,255,0.42); }

/* App Store badge, drawn rather than shipped as an image so it stays sharp. */
.lp-appstore {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 10px 20px 10px 17px; border-radius: var(--radius-full);
  background: rgba(255,255,255,0.05); border: 1px solid var(--border-strong);
  color: var(--text-primary); text-decoration: none;
  transition: background .2s, border-color .2s, transform .16s;
}
.lp-appstore:hover { background: var(--bg-hover); border-color: rgba(255,255,255,0.3); }
.lp-appstore:active { transform: scale(.975); }
.lp-appstore i { font-size: 25px; }
.lp-appstore span { display: block; font-size: 10px; line-height: 1.25; color: rgba(255,255,255,0.55); letter-spacing: .3px; }
.lp-appstore strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.2; }

/* ── Compact feature grid ────────────────────────────────────────────────────
   Replaces the four full-width screenshot blocks: the hero already showed the
   product, so this only has to say what is in it. */
.lp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
@media (max-width: 900px) { .lp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .lp-grid { grid-template-columns: 1fr; } }
.lp-card {
  padding: 26px 24px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition: border-color .2s, transform .2s;
}
.lp-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.lp-card i {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; margin-bottom: 16px; border-radius: 13px;
  background: var(--accent-soft); border: 1px solid rgba(124,103,245,0.3);
  color: var(--purple-200); font-size: 17px;
}
.lp-card h3 { font-size: 17px; font-weight: 600; margin: 0 0 7px; letter-spacing: -.3px; }
.lp-card p { font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,0.58); margin: 0; }

/* ── Trust strip ─────────────────────────────────────────────────────────── */
.lp-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.lp-strip div { background: var(--solid-surface); padding: 22px 14px; text-align: center; }
.lp-strip b {
  display: block; font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(20px, 3vw, 28px); letter-spacing: -.5px; margin-bottom: 4px;
}
.lp-strip span { font-size: 12.5px; color: rgba(255,255,255,0.5); }
@media (max-width: 640px) { .lp-strip { grid-template-columns: repeat(2, 1fr); } }

/* ── Section heads ───────────────────────────────────────────────────────── */
.lp-section { padding-block: var(--lp-gap); }
.lp-kicker {
  display: block; font-size: 12.5px; font-weight: 600; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--purple-300); margin-bottom: 14px;
}
.lp-h2 {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(28px, 4.6vw, 46px); line-height: 1.12; letter-spacing: -1.2px;
  margin: 0 0 16px;
}
.lp-sub { font-size: clamp(15px, 1.9vw, 17.5px); line-height: 1.65; color: rgba(255,255,255,0.6); margin: 0; }
.lp-center { text-align: center; }
.lp-center .lp-sub { max-width: 620px; margin-inline: auto; }

/* ── Steps ───────────────────────────────────────────────────────────────── */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
@media (max-width: 780px) { .lp-steps { grid-template-columns: 1fr; } }
.lp-step {
  position: relative; padding: 30px 26px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); backdrop-filter: blur(12px);
}
.lp-step-n {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 42px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.4px rgba(124,103,245,0.5);
  margin-bottom: 16px;
}
.lp-step h3 { font-size: 18px; font-weight: 600; margin: 0 0 8px; letter-spacing: -.3px; }
.lp-step p { font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,0.58); margin: 0; }

/* ── Pricing ─────────────────────────────────────────────────────────────── */
.lp-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; align-items: start; }
@media (max-width: 880px) { .lp-plans { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }
.lp-plan {
  padding: 30px 26px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.lp-plan.is-featured {
  border-color: rgba(124,103,245,0.55);
  background: linear-gradient(180deg, rgba(124,103,245,0.13) 0%, var(--bg-card) 55%);
  box-shadow: 0 20px 60px rgba(124,103,245,0.16);
}
.lp-plan-tag {
  display: inline-block; margin-bottom: 14px; padding: 4px 11px;
  border-radius: var(--radius-full); background: var(--accent); color: #fff;
  font-size: 10.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
}
.lp-plan h3 { font-family: 'Syne', sans-serif; font-size: 21px; font-weight: 800; margin: 0 0 6px; }
.lp-price { display: flex; align-items: baseline; gap: 5px; margin-bottom: 22px; }
.lp-price b { font-family: 'Syne', sans-serif; font-size: 40px; font-weight: 800; letter-spacing: -1.5px; }
.lp-price span { font-size: 14px; color: rgba(255,255,255,0.45); }
.lp-plan ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 11px; }
.lp-plan li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.5; color: rgba(255,255,255,0.7); }
.lp-plan li i { color: var(--accent); font-size: 13px; margin-top: 3px; }
.lp-plan .lp-btn { width: 100%; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.lp-faq { max-width: 760px; margin: 48px auto 0; display: grid; gap: 12px; }
.lp-faq details {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  transition: border-color .2s;
}
.lp-faq details[open] { border-color: var(--border-strong); }
.lp-faq summary {
  padding: 19px 22px; cursor: pointer; list-style: none;
  font-size: 16px; font-weight: 500;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after {
  content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  font-size: 12px; color: var(--purple-300); transition: transform .22s ease; flex-shrink: 0;
}
.lp-faq details[open] summary::after { transform: rotate(180deg); }
.lp-faq p { margin: 0; padding: 0 22px 20px; font-size: 15px; line-height: 1.65; color: rgba(255,255,255,0.62); }

/* ── Final CTA ───────────────────────────────────────────────────────────── */
.lp-final {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(52px, 8vw, 88px) var(--lp-pad);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(124,103,245,0.35);
  background: linear-gradient(160deg, rgba(124,103,245,0.2) 0%, rgba(124,103,245,0.05) 50%, transparent 100%), var(--solid-card);
}
.lp-final::before {
  content: ''; position: absolute; left: 50%; top: -40%; transform: translateX(-50%);
  width: 700px; height: 500px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(124,103,245,0.32) 0%, transparent 70%);
  filter: blur(50px); pointer-events: none;
}
.lp-final > * { position: relative; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.lp-footer { border-top: 1px solid var(--border); margin-top: var(--lp-gap); padding-block: 44px 34px; }
.lp-footer-top { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; margin-bottom: 34px; }
.lp-footer-blurb { max-width: 300px; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.48); margin: 14px 0 0; }
.lp-footer-cols { display: flex; flex-wrap: wrap; gap: clamp(28px, 6vw, 72px); }
.lp-footer-col h4 { font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255,255,255,0.4); margin: 0 0 14px; }
.lp-footer-col a { display: block; font-size: 14.5px; color: rgba(255,255,255,0.66); text-decoration: none; margin-bottom: 10px; transition: color .18s; }
.lp-footer-col a:hover { color: var(--purple-200); }
.lp-socials { display: flex; gap: 10px; margin-top: 18px; }
.lp-socials a {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-elevated); border: 1px solid var(--border);
  color: rgba(255,255,255,0.7); font-size: 15px; text-decoration: none;
  transition: background .18s, color .18s, border-color .18s, transform .16s;
}
.lp-socials a:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--purple-200); transform: translateY(-2px); }
.lp-footer-bottom {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 13px; color: rgba(255,255,255,0.38);
}

/* ── Scroll reveal ───────────────────────────────────────────────────────── */
.lp-reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.lp-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .lp-reveal { opacity: 1; transform: none; transition: none; }
  .lp-brand-dot { animation: none; }
}
