/* ── Reset & Base ──────────────────────────────────────────────────────────── */
*{box-sizing:border-box;margin:0;padding:0}
/* M154: this used to be a full standalone :root token block, hand-duplicated
   from shared.css's own (with real drift — every "-soft" tint here was 0x18
   alpha vs shared.css's 0x22, about 30% more transparent than everywhere
   else in the app). Now that landing.html loads shared.css first, only the
   one genuinely landing-specific token (marketing-only bronze/silver/gold
   plan-tier color, not part of the app's shared vocabulary) stays local. */
:root{
  --bronze:#cd7f32;
}
html{scroll-behavior:smooth}
body{background:var(--bg);color:var(--text);font-family:var(--font-body);line-height:1.6}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}

/* ── Navbar ────────────────────────────────────────────────────────────────── */
.navbar{position:fixed;top:0;left:0;right:0;z-index:100;background:rgba(13,17,23,.92);backdrop-filter:blur(12px);border-bottom:1px solid var(--border);padding:.75rem 1.5rem;display:flex;align-items:center;justify-content:space-between}
.navbar-brand{display:flex;align-items:center;gap:.55rem;font-family:var(--font-display);font-size:1.15rem;font-weight:700}
.navbar-brand span{font-size:1.35rem}
.navbar-links{display:flex;align-items:center;gap:.5rem}
.nav-link{padding:.4rem .85rem;border-radius:8px;font-size:.85rem;font-weight:500;color:var(--text-muted);transition:color .2s}
.nav-link:hover{color:var(--text)}
.nav-cta{background:var(--accent);color:#0d1117;padding:.4rem 1.1rem;border-radius:8px;font-size:.85rem;font-weight:700;transition:opacity .2s}
.nav-cta:hover{opacity:.85}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
/* Split hero: two decorative photo columns flanking a login card, à la
   Strava's own homepage — adapted to this app's dark theme (a stark white
   center card would clash with every section below it) and swapping
   social-login buttons for the app's actual username/password auth, since
   there's no social login here. Side images disappear entirely below 900px
   (see Responsive section) rather than stacking, so a phone never pays for
   two hero photos it can't usefully show. */
.hero-split{min-height:100vh;display:grid;grid-template-columns:1fr minmax(340px,460px) 1fr;padding-top:64px}
.hero-split-img{position:relative;overflow:hidden;background:linear-gradient(135deg,var(--surface) 0%,var(--bg) 100%)}
.hero-split-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:none}
.hero-split-img img[src]:not([src=""]){display:block}
.hero-split-center{display:flex;align-items:center;justify-content:center;padding:2.5rem 1.5rem;background:var(--bg)}
.hero-split-card{width:100%;max-width:400px}
.hero-split-card h1{font-family:var(--font-display);font-size:clamp(1.9rem,4vw,2.4rem);font-weight:900;line-height:1.2;margin-bottom:.75rem}
.hero-split-card h1 em{font-style:normal;color:var(--accent)}
.hero-sub{font-size:.95rem;color:var(--text-muted);margin-bottom:1.5rem;line-height:1.6}
.hero-login-intro{font-size:.85rem;color:var(--text-dim);margin-bottom:.9rem}
.hero-login-form{display:flex;flex-direction:column;gap:.6rem}
.hero-login-form input{padding:.75rem 1rem;border-radius:10px;border:1px solid var(--border);background:var(--surface);color:var(--text);font-size:.95rem;font-family:inherit}
.hero-login-form input:focus{outline:none;border-color:var(--accent)}
.hero-login-alert{font-size:.82rem;color:var(--red);background:#ff6b6b18;border:1px solid var(--red);border-radius:8px;padding:.5rem .75rem}
.btn-primary{display:inline-block;background:var(--accent);color:#0d1117;padding:.75rem 2rem;border-radius:99px;font-weight:700;font-size:1rem;transition:all .2s;border:2px solid var(--accent);text-align:center;cursor:pointer}
.btn-primary:hover{background:transparent;color:var(--accent)}
.hero-login-btn{width:100%;font-size:.95rem;padding:.8rem 1rem}
.hero-login-btn:disabled{opacity:.6;cursor:default}
.hero-signup-link{margin-top:1.1rem;text-align:center;font-size:.88rem;color:var(--text-muted)}
.hero-signup-link a{color:var(--accent);font-weight:700}
.hero-pricing-link{margin-top:.4rem;text-align:center;font-size:.82rem}
.hero-pricing-link a{color:var(--text-dim)}
.hero-pricing-link a:hover{color:var(--text-muted)}
.hero-terms{margin-top:1.5rem;text-align:center;font-size:.72rem;color:var(--text-dim);line-height:1.6}

/* ── Section wrapper ──────────────────────────────────────────────────────── */
section{padding:5rem 1.5rem}
.section-inner{max-width:1100px;margin:0 auto}
.section-label{font-size:.73rem;font-weight:700;text-transform:uppercase;letter-spacing:.12em;color:var(--teal);margin-bottom:.6rem}
.section-title{font-family:var(--font-display);font-size:clamp(1.7rem,4vw,2.5rem);font-weight:800;line-height:1.25;margin-bottom:1rem}
.section-sub{font-size:1rem;color:var(--text-muted);max-width:600px;margin-bottom:2.5rem;line-height:1.65}

/* ── How it Works ─────────────────────────────────────────────────────────── */
.hiw-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem}
.hiw-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.75rem;position:relative;overflow:hidden}
.hiw-card::before{content:attr(data-step);position:absolute;top:-.1rem;right:.85rem;font-family:var(--font-display);font-size:4.5rem;font-weight:900;color:var(--border);line-height:1;pointer-events:none}
.hiw-icon{font-size:2.25rem;margin-bottom:.85rem}
.hiw-card h3{font-weight:700;font-size:1.05rem;margin-bottom:.45rem}
.hiw-card p{color:var(--text-muted);font-size:.9rem;line-height:1.6}

/* ── Features ─────────────────────────────────────────────────────────────── */
.feat-section{background:var(--surface)}
.feat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:1.25rem}
.feat-card{background:var(--bg);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.5rem;transition:border-color .2s}
.feat-card:hover{border-color:var(--teal)}
.feat-icon{font-size:2rem;margin-bottom:.75rem}
.feat-card h3{font-weight:700;font-size:1rem;margin-bottom:.4rem}
.feat-card p{color:var(--text-muted);font-size:.87rem;line-height:1.6;margin-bottom:.75rem}
.feat-tag{display:inline-block;font-size:.72rem;font-weight:700;padding:.2rem .6rem;border-radius:99px}
.feat-tag.bronze{background:#cd7f3222;color:var(--bronze);border:1px solid #cd7f3244}
.feat-tag.silver{background:var(--purple-soft);color:var(--purple);border:1px solid var(--purple)}
.feat-tag.gold{background:var(--accent-soft);color:var(--accent);border:1px solid var(--accent)}
.feat-tag.free{background:var(--green-soft);color:var(--green);border:1px solid var(--green)}

/* ── Science ───────────────────────────────────────────────────────────────── */
.science-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem}
.sci-card{border-radius:var(--radius-lg);padding:1.75rem;border:1px solid var(--border)}
.sci-card:nth-child(1){background:var(--teal-soft);border-color:var(--teal)}
.sci-card:nth-child(2){background:var(--purple-soft);border-color:var(--purple)}
.sci-card:nth-child(3){background:var(--accent-soft);border-color:var(--accent)}
.sci-icon{font-size:2.25rem;margin-bottom:.85rem}
.sci-card h3{font-weight:700;font-size:1.05rem;margin-bottom:.45rem}
.sci-card p{font-size:.9rem;line-height:1.6;color:var(--text-muted)}

/* ── Plans ─────────────────────────────────────────────────────────────────── */
.plans-section{background:var(--surface)}
.plans-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:1rem;margin-top:2.5rem}
.plan-card{background:var(--bg);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.6rem 1.35rem;display:flex;flex-direction:column;transition:border-color .3s,transform .2s;position:relative}
.plan-card:hover{transform:translateY(-2px)}
.plan-card.highlighted{border-color:var(--purple);background:linear-gradient(135deg,var(--bg),#1a1632)}
.plan-badge-pop{position:absolute;top:-.65rem;left:50%;transform:translateX(-50%);background:var(--purple);color:#fff;font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;padding:.2rem .75rem;border-radius:99px;white-space:nowrap}
.plan-name{font-weight:800;font-size:1.05rem;margin-bottom:.2rem}
.plan-price{font-family:var(--font-display);font-size:2.1rem;font-weight:900;line-height:1;margin-bottom:.75rem}
.plan-tagline{font-size:.82rem;color:var(--text-muted);margin-bottom:1rem;line-height:1.45;min-height:40px}
.plan-divider{height:1px;background:var(--border);margin-bottom:1rem}
.plan-features{list-style:none;font-size:.82rem;display:flex;flex-direction:column;gap:.45rem;flex:1;margin-bottom:1.2rem}
.plan-features li::before{content:"✓";color:var(--green);font-weight:700;margin-right:.45rem}
.plan-features li.na{color:var(--text-dim)}
.plan-features li.na::before{content:"—";color:var(--text-dim)}
.plan-cta{display:block;text-align:center;padding:.65rem 1rem;border-radius:10px;font-weight:700;font-size:.87rem;transition:all .2s;margin-top:auto}
.plan-cta.accent{background:var(--accent);color:#0d1117}
.plan-cta.accent:hover{opacity:.85}
.plan-cta.ghost{border:2px solid var(--border);color:var(--text)}
.plan-cta.ghost:hover{border-color:var(--teal);color:var(--teal)}
.plan-cta.purple{background:var(--purple);color:#fff}
.plan-cta.purple:hover{opacity:.85}
.plan-note{text-align:center;margin-top:1.5rem;font-size:.8rem;color:var(--text-dim)}

/* ── Testimonials ─────────────────────────────────────────────────────────── */
.test-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:1.25rem;margin-top:2rem}
.test-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.5rem;display:flex;flex-direction:column;gap:.75rem}
.test-stars{color:var(--accent);font-size:1rem;letter-spacing:.1em}
.test-text{font-size:.92rem;line-height:1.65;color:var(--text);font-style:italic;flex:1}
.test-author{display:flex;align-items:center;gap:.65rem}
.test-avatar{width:38px;height:38px;border-radius:50%;background:linear-gradient(135deg,var(--teal),var(--purple));display:flex;align-items:center;justify-content:center;font-weight:800;font-size:1rem;flex-shrink:0}
.test-name{font-weight:700;font-size:.9rem}
.test-meta{font-size:.78rem;color:var(--text-muted)}
.test-plan{display:inline-block;font-size:.7rem;font-weight:700;padding:.15rem .5rem;border-radius:99px;margin-left:.4rem}
.test-plan.silver{background:var(--purple-soft);color:var(--purple)}
.test-plan.gold{background:var(--accent-soft);color:var(--accent)}
.test-plan.bronze{background:#cd7f3222;color:var(--bronze)}

/* ── Final CTA ────────────────────────────────────────────────────────────── */
.final-cta{background:linear-gradient(135deg,#0a1220,#12101e);border-top:1px solid var(--border);text-align:center;padding:5rem 1.5rem}
.final-cta h2{font-family:var(--font-display);font-size:clamp(1.8rem,4vw,2.8rem);font-weight:900;margin-bottom:1rem}
.final-cta h2 em{color:var(--accent);font-style:normal}
.final-cta p{color:var(--text-muted);font-size:1rem;max-width:500px;margin:0 auto 1.75rem}

/* ── Footer ───────────────────────────────────────────────────────────────── */
footer{background:var(--surface);border-top:1px solid var(--border);padding:1.5rem;text-align:center;font-size:.8rem;color:var(--text-dim)}
footer a{color:var(--text-muted);margin:0 .6rem}
footer a:hover{color:var(--text)}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media(max-width:900px){
  .hero-split{grid-template-columns:1fr;min-height:0}
  .hero-split-img{display:none}
  .hero-split-center{padding:5.5rem 1.5rem 3rem}
}
@media(max-width:600px){
  .navbar-links .nav-link{display:none}
  .plans-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:420px){
  .plans-grid{grid-template-columns:1fr}
}
