/* ── LANDING PAGE ──────────────────────────────────────────────────────────
   Marketing page shown at "/" for signed-out visitors. Reuses main.css's
   design tokens (--bg, --surface, --accent, etc.) so it stays in sync with
   the in-app theme automatically; everything below is layout/decoration
   specific to this one page. */

body.landing { overflow-x: hidden; }

.landing .btn.lg { padding: 12px 22px; font-size: 14px; }
.landing a.btn { text-decoration: none; }

/* ── NAV ─────────────────────────────────────────────────────────────────── */
.l-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,246,243,0.7); backdrop-filter: blur(10px) saturate(1.4);
  border-bottom: 0.5px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
[data-theme="dark"] .l-nav { background: rgba(17,17,16,0.7); }
.l-nav.scrolled { border-bottom-color: var(--border); box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.l-nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.l-brand { font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: -.3px; }
.l-brand em { color: var(--accent); font-style: normal; }
.l-nav-links { display: flex; gap: 28px; }
.l-nav-links a {
  color: var(--text-2); text-decoration: none; font-size: 13.5px; font-weight: 500;
  transition: color .15s;
}
.l-nav-links a:hover { color: var(--accent); }
.l-nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* ── SHARED SECTION RHYTHM ───────────────────────────────────────────────── */
.l-section { max-width: 1180px; margin: 0 auto; padding: 96px 28px; }
.l-section-head { max-width: 620px; margin: 0 auto 56px; text-align: center; }
.l-kicker {
  font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase;
  letter-spacing: .1em; margin-bottom: 10px;
}
.l-section-head h2, .l-score-copy h2, .l-cta-banner h2 {
  font-size: 34px; font-weight: 800; line-height: 1.15; letter-spacing: -.5px;
  color: var(--text); margin-bottom: 14px;
}
.l-section-head p { font-size: 16px; color: var(--text-2); line-height: 1.6; }

/* ── HERO ────────────────────────────────────────────────────────────────── */
.l-hero { position: relative; padding: 64px 28px 40px; overflow: hidden; }
.l-hero-inner {
  max-width: 1180px; margin: 0 auto; position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
}
.l-eyebrow {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600;
  color: var(--accent); background: var(--accent-dim); border-radius: 20px;
  padding: 6px 14px; margin-bottom: 22px;
}
.l-eyebrow svg { width: 14px; height: 14px; stroke-width: 2; }
.l-hero-copy h1 {
  font-size: 52px; font-weight: 800; line-height: 1.08; letter-spacing: -1.3px;
  color: var(--text); margin-bottom: 22px;
}
.l-hero-copy h1 em { color: var(--accent); font-style: normal; }
.l-sub { font-size: 17px; line-height: 1.65; color: var(--text-2); max-width: 480px; margin-bottom: 30px; }
.l-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.l-cta-row .btn svg { width: 15px; height: 15px; }
.l-trust-row { display: flex; flex-wrap: wrap; gap: 18px; }
.l-trust-row span {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px;
  color: var(--text-muted); font-weight: 500;
}
.l-trust-row svg { width: 14px; height: 14px; stroke-width: 2; color: var(--text-muted); }

/* Floating gradient blobs — slow, subtle, decorative only (aria-hidden) */
.l-blob {
  position: absolute; border-radius: 50%; filter: blur(60px); z-index: 1;
  opacity: .35; pointer-events: none;
}
.l-blob-1 { width: 420px; height: 420px; background: var(--accent); top: -140px; left: -120px; }
.l-blob-2 { width: 360px; height: 360px; background: var(--purple); top: 40px; right: -140px; opacity: .25; }
.l-blob-3 { width: 300px; height: 300px; background: var(--green); bottom: -160px; left: 30%; opacity: .2; }
[data-theme="dark"] .l-blob { opacity: .22; }

/* ── HERO MOCKUP CARD ────────────────────────────────────────────────────── */
.l-hero-visual { position: relative; }
.l-mockup {
  background: var(--surface); border: 0.5px solid var(--border); border-radius: 20px;
  padding: 20px; box-shadow: 0 24px 60px rgba(20,20,18,0.12), 0 4px 16px rgba(20,20,18,0.06);
}
[data-theme="dark"] .l-mockup { box-shadow: 0 24px 60px rgba(0,0,0,0.45), 0 4px 16px rgba(0,0,0,0.3); }
.l-mockup-topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.l-mockup-dots { display: flex; gap: 5px; }
.l-mockup-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--surface-2); }
.l-mockup-title { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.l-mockup-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 16px; }
.l-mockup-kpi { background: var(--surface-1); border-radius: 12px; padding: 12px 14px; }
.l-mockup-kpi-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 5px; }
.l-mockup-kpi-value { font-size: 19px; font-weight: 700; color: var(--text); }
.l-mockup-kpi-value.pos { color: var(--green); }
.l-mockup-kpi-value.accent { color: var(--accent); }
.l-mockup-chart {
  background: var(--surface-1); border-radius: 12px; padding: 12px; margin-bottom: 14px;
  height: 100px;
}
.l-mockup-chart svg { width: 100%; height: 100%; }
.l-chart-line { stroke-dasharray: 500; stroke-dashoffset: 500; }
.l-mockup-ring { position: absolute; bottom: 20px; right: 20px; display: flex; align-items: center; justify-content: center; }
.l-mockup-ring .l-ring-label {
  position: absolute; font-size: 14px; font-weight: 800; color: var(--green);
}

/* Floating badge cards over the mockup */
.l-float-card {
  position: absolute; display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 0.5px solid var(--border); border-radius: 12px;
  padding: 10px 14px; font-size: 12.5px; font-weight: 600; color: var(--text);
  box-shadow: 0 10px 30px rgba(20,20,18,0.12); white-space: nowrap;
}
.l-float-card svg { width: 15px; height: 15px; stroke-width: 2; color: var(--accent); flex-shrink: 0; }
.l-float-1 { top: -18px; right: -18px; }
.l-float-2 { bottom: 60px; left: -30px; }

/* ── LOGO / FEATURE STRIP ────────────────────────────────────────────────── */
.l-strip {
  max-width: 1180px; margin: 40px auto 0; padding: 22px 28px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
  border-top: 0.5px solid var(--border); border-bottom: 0.5px solid var(--border);
  font-size: 12.5px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .05em;
}

/* ── FEATURE GRID ────────────────────────────────────────────────────────── */
.l-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.l-feature-card {
  background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
  transition: transform .2s ease, box-shadow .2s ease;
}
.l-feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(20,20,18,0.09); }
.l-feature-icon {
  width: 42px; height: 42px; border-radius: 11px; background: var(--accent-dim);
  color: var(--accent); display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.l-feature-icon svg { width: 21px; height: 21px; stroke-width: 2; }
.l-feature-card h3 { font-size: 15.5px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.l-feature-card p { font-size: 13.5px; color: var(--text-2); line-height: 1.55; }

/* ── HEALTH SCORE SECTION ────────────────────────────────────────────────── */
.l-score-section {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.l-score-visual { display: flex; justify-content: center; }
.l-score-card {
  background: var(--surface); border: 0.5px solid var(--border); border-radius: 22px;
  padding: 36px 32px; box-shadow: 0 20px 50px rgba(20,20,18,0.1), 0 4px 14px rgba(20,20,18,0.05);
  width: 100%; max-width: 380px;
}
.l-score-ring-big { position: relative; width: 180px; height: 180px; margin: 0 auto 28px; }
.l-score-ring-inner {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.l-score-num { font-size: 42px; font-weight: 800; color: var(--text); line-height: 1; }
.l-score-den { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.l-score-pillars { display: flex; flex-direction: column; gap: 12px; }
.l-pillar-row { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--text-2); }
.l-pillar-row span { width: 120px; flex-shrink: 0; font-weight: 500; }
.l-pillar-track { flex: 1; height: 7px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.l-pillar-fill { height: 100%; border-radius: 5px; width: 0%; transition: width 1s ease; }
.l-score-copy h2 { max-width: 460px; }
.l-score-copy p { font-size: 15.5px; color: var(--text-2); line-height: 1.65; margin-bottom: 24px; max-width: 460px; }

/* ── HOW IT WORKS ────────────────────────────────────────────────────────── */
.l-steps { display: flex; align-items: flex-start; gap: 0; }
.l-step { flex: 1; text-align: center; padding: 0 16px; }
.l-step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff;
  font-size: 17px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.l-step h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.l-step p { font-size: 13.5px; color: var(--text-2); line-height: 1.55; }
.l-step-line { flex: 0 0 60px; height: 2px; background: var(--border); margin-top: 22px; }

/* ── FINAL CTA BANNER ────────────────────────────────────────────────────── */
.l-cta-banner {
  max-width: 1180px; margin: 0 auto 96px; padding: 64px 40px; text-align: center;
  background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 100%);
  border-radius: 28px; color: #fff;
}
.l-cta-banner h2 { color: #fff; }
.l-cta-banner p { font-size: 16px; color: rgba(255,255,255,0.85); margin-bottom: 28px; }
.l-cta-banner .btn.primary { background: #fff; color: var(--accent); border-color: #fff; }
.l-cta-banner .btn.primary:hover { opacity: .92; }

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.l-footer {
  max-width: 1180px; margin: 0 auto; padding: 32px 28px 56px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  border-top: 0.5px solid var(--border);
}
.l-footer-links { display: flex; gap: 20px; }
.l-footer-links a { color: var(--text-2); text-decoration: none; font-size: 13px; font-weight: 500; }
.l-footer-links a:hover { color: var(--accent); }
.l-footer-note { font-size: 12px; color: var(--text-muted); }

/* ── SCROLL-REVEAL BASE STATE (GSAP overrides these on load) ────────────── */
[data-reveal] { opacity: 0; transform: translateY(24px); }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .l-hero-inner { grid-template-columns: 1fr; }
  .l-hero-visual { order: -1; max-width: 480px; margin: 0 auto; }
  .l-feature-grid { grid-template-columns: 1fr 1fr; }
  .l-score-section { grid-template-columns: 1fr; text-align: center; }
  .l-score-copy p { margin-left: auto; margin-right: auto; }
  .l-pillar-row span { width: 100px; }
  .l-nav-links { display: none; }
}

@media (max-width: 700px) {
  .l-hero-copy h1 { font-size: 36px; }
  .l-section { padding: 64px 20px; }
  .l-section-head h2, .l-score-copy h2, .l-cta-banner h2 { font-size: 26px; }
  .l-feature-grid { grid-template-columns: 1fr; }
  .l-steps { flex-direction: column; gap: 28px; }
  .l-step-line { display: none; }
  .l-cta-banner { padding: 48px 24px; border-radius: 20px; }
  .l-float-card { display: none; }
  .l-nav-actions .btn:not(.primary) { display: none; }
}

@media (max-width: 420px) {
  .l-hero-copy h1 { font-size: 30px; }
  .l-mockup-kpis { grid-template-columns: 1fr 1fr; }
  .l-mockup-kpi:last-child { grid-column: span 2; }
}
