/* === LANDING — uses platform design tokens from styles.css ===
   Migrated tokens:
     --lp-accent / --green        → --accent
     --green-dark                 → --accent-deep
     --text-primary               → --ink
     --text-secondary             → --ink-soft
     --text-muted                 → --ink-faint
     --bg-card                    → --surface
     --bg-offset                  → --surface-alt
     --border                     → --hairline
     --border-strong              → --hairline-dark
   Landing keeps its own dark hero bg + large display sizes that don't
   map to the platform tokens.
*/
.lp-body {
  /* dark hero / final section stays bespoke */
  --lp-dark: #0F1A14;
  /* legacy aliases so inline styles in landing.html keep working */
  --green: var(--accent);
  --green-dark: var(--accent-deep);
  --text-primary: var(--ink);
  --text-secondary: var(--ink-soft);
  --text-muted: var(--ink-faint);
  --bg-card: var(--surface);
  --bg-offset: var(--surface-alt);
  --border: var(--hairline);
  --border-strong: var(--hairline-dark);
  --bg-dark: var(--lp-dark);

  color: var(--ink);
  font-family: var(--font-body);
}

/* Marketing surface — override platform's body-lock so the page scrolls,
   and apply the same wash gradient used in the platform body. */
html:has(body.lp-body),
body.lp-body {
  height: auto;
  overflow: visible;
  overflow-y: auto;
}
.lp-body {
  min-height: 100vh;
  background: var(--bg);
  background-image:
    radial-gradient(at 18% 12%, rgba(22,178,115,0.20) 0px, transparent 55%),
    radial-gradient(at 88% 4%, rgba(45,197,138,0.18) 0px, transparent 50%),
    radial-gradient(at 72% 92%, rgba(14,152,98,0.22) 0px, transparent 55%),
    radial-gradient(at 8% 88%, rgba(34,211,238,0.10) 0px, transparent 50%);
  background-attachment: fixed;
}

/* === EARNINGS SIMULATOR (card uses platform .card-ish styling) === */
.sim-card {
  display: flex; flex-direction: column; gap: 20px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.sim-body { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.sim-sliders {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px 12px; align-items: center;
}
.sim-label {
  font-size: 12px; font-weight: 600; color: var(--ink-faint);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.sim-val {
  font-size: 15px; font-weight: 700; color: var(--ink);
  min-width: 48px; text-align: right; font-variant-numeric: tabular-nums;
}
.sim-slider {
  --track-fill: var(--accent);
  --track-pct: 50%;
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 3px;
  background: var(--hairline);
  outline: none;
}
.sim-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(15,40,28,0.20);
  cursor: grab;
}
.sim-slider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(15,40,28,0.20);
  cursor: grab;
}
.sim-slider:active::-webkit-slider-thumb { cursor: grabbing; }
.sim-slider:active::-moz-range-thumb { cursor: grabbing; }
.sim-hero { text-align: center; }
.sim-hero-label {
  font-size: 12px; font-weight: 600; color: var(--ink-faint);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px;
}
.sim-hero-amount {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 800; color: var(--accent-deep); line-height: 1.1;
  letter-spacing: -0.5px;
}
.sim-hero-sub { font-size: 13px; color: var(--ink-faint); margin-top: 4px; }
.sim-breakdown {
  background: var(--surface-alt); border-radius: var(--r-card-sm); padding: 12px 16px;
}
.sim-bk-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--ink-soft); padding: 4px 0;
}
.sim-bk-row span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }
.sim-bk-fee span:first-child { color: var(--ink-faint); }
.sim-bk-fee span:last-child { color: var(--ink-faint); font-weight: 400; }
.sim-bk-divider { height: 1px; background: var(--hairline); margin: 6px 0; }
.sim-bk-total span:first-child { font-weight: 700; color: var(--ink); }
.sim-bk-total span:last-child { font-weight: 800; color: var(--accent-deep); }

/* === LANDING PAGE === */

/* Nav */
.lp-nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--hairline);
}
.lp-nav-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.lp-logo {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800; letter-spacing: -0.8px; color: var(--ink);
}
.lp-logo-sm { font-size: 16px; }
.lp-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  display: inline-block; margin-left: 2px; vertical-align: baseline;
  box-shadow: 0 0 12px rgba(22,178,115,0.5);
}
.lp-nav-signin {
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
  text-decoration: none; padding: 6px 14px;
  border: 1px solid var(--hairline-dark);
  border-radius: var(--r-card-sm);
  background: var(--surface);
  transition: all 0.15s;
}
.lp-nav-signin:hover { box-shadow: var(--shadow-card); transform: translateY(-1px); }

/* Hero — dark, bold */
.lp-hero {
  padding: 80px 24px 72px; text-align: center;
  background: var(--lp-dark);
  position: relative; overflow: hidden;
}
.lp-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(22,178,115,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.lp-hero-inner { max-width: 640px; margin: 0 auto; position: relative; }
.lp-badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  color: var(--accent); background: rgba(22,178,115,0.14);
  border: 1px solid rgba(22,178,115,0.28);
  padding: 5px 14px; border-radius: var(--r-pill); margin-bottom: 24px;
  letter-spacing: 0.4px; text-transform: uppercase;
}
.lp-h1 {
  font-family: var(--font-display);
  font-size: 50px; font-weight: 900; letter-spacing: -2px;
  line-height: 1.05; color: #fff; margin-bottom: 20px;
}
.lp-subtitle {
  font-size: 17px; line-height: 1.6; color: #94a3b8;
  max-width: 500px; margin: 0 auto 36px;
}
.lp-subtitle strong { color: var(--accent); }
.lp-cta-group {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.lp-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 32px; border-radius: var(--r-card-sm);
  font-size: 15px; font-weight: 700; text-decoration: none;
  background: var(--grad-primary, var(--accent)); color: #fff;
  transition: transform 200ms var(--spring), box-shadow 240ms var(--ease);
  cursor: pointer; border: none; font-family: inherit;
  box-shadow: var(--shadow-grad);
  position: relative; overflow: hidden;
}
.lp-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -10px rgba(22,178,115,0.55); }
.lp-trust-line {
  font-size: 12px; color: #64748b; margin-top: 16px;
}

/* Sections */
.lp-section { padding: 72px 24px; }
.lp-section-alt { background: var(--surface-alt); }
.lp-section-inner { max-width: 800px; margin: 0 auto; }
.lp-section-title {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 900; letter-spacing: -1px;
  color: var(--ink); margin-bottom: 36px; text-align: center;
}

/* The Deal — split card */
.lp-deal {
  display: flex; align-items: stretch; gap: 0;
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--hairline);
}
.lp-deal-col {
  flex: 1; padding: 36px 28px;
  display: flex; flex-direction: column;
  transition: box-shadow 0.3s ease;
}
.lp-deal-you { background: var(--lp-dark); color: #fff; }
.lp-deal-us { background: var(--surface); }
.lp-deal-you:hover { box-shadow: inset 0 0 40px rgba(255,255,255,0.04); }
.lp-deal-us:hover { box-shadow: inset 0 0 40px rgba(22,178,115,0.05); }
.lp-deal-header {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.2px; margin-bottom: 20px; opacity: 0.55;
}
.lp-deal-items {
  display: flex; flex-direction: column; gap: 8px; flex: 1;
}
.lp-deal-item {
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  padding: 6px 0; border-bottom: 1px solid var(--hairline);
}
.lp-deal-item:last-child { border-bottom: none; }
.lp-deal-you .lp-deal-item {
  color: #fff; border-color: rgba(255,255,255,0.1);
}
.lp-deal-big {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 900; letter-spacing: -0.5px;
  padding: 10px 0;
}
.lp-deal-footer {
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--hairline);
  font-size: 14px; color: var(--ink-faint);
}
.lp-deal-footer strong {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 900; letter-spacing: -0.3px;
}
.lp-deal-you .lp-deal-footer {
  border-color: rgba(255,255,255,0.1); color: rgba(255,255,255,0.55);
}
.lp-deal-you .lp-deal-footer strong { color: var(--accent); }
.lp-deal-us .lp-deal-footer strong { color: var(--ink); }
.lp-deal-divider {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 1px; position: relative; background: var(--hairline);
}
.lp-deal-divider-line { flex: 1; width: 1px; background: var(--hairline); }
.lp-deal-divider-vs {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: #fff;
  flex-shrink: 0;
  box-shadow: var(--shadow-grad);
}
.lp-deal-note {
  text-align: center; font-size: 13px; color: var(--ink-faint);
  margin-top: 20px; font-weight: 400;
}

/* Lifecycle */
.lp-lifecycle {
  display: flex; align-items: center; justify-content: center;
  gap: 4px; flex-wrap: wrap;
}
.lp-lifecycle-step {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 14px; border-radius: var(--r-card-sm); flex: 1; min-width: 0;
  border: 1px solid var(--hairline); background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lp-lifecycle-step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}
.lp-lifecycle-you {
  border-color: var(--lp-dark); background: var(--lp-dark);
}
.lp-lifecycle-auto {
  border-color: rgba(22,178,115,0.35); background: var(--accent-soft);
}
.lp-lifecycle-num {
  width: 28px; height: 28px; border-radius: 50%;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  background: var(--hairline); color: var(--ink-soft);
}
.lp-lifecycle-you .lp-lifecycle-num { background: rgba(255,255,255,0.15); color: #fff; }
.lp-lifecycle-auto .lp-lifecycle-num { background: var(--accent); color: #fff; }
.lp-lifecycle-label {
  font-size: 12px; font-weight: 600; color: var(--ink-soft);
}
.lp-lifecycle-you .lp-lifecycle-label { color: #fff; }
.lp-lifecycle-auto .lp-lifecycle-label { color: var(--accent-deep); }
.lp-lifecycle-arrow {
  font-size: 16px; color: var(--ink-faint); margin: 0 2px; flex-shrink: 0;
}
.lp-lifecycle-legend {
  display: flex; justify-content: center; gap: 16px; margin-top: 20px;
}
.lp-lifecycle-tag {
  font-size: 12px; font-weight: 600; padding: 3px 10px;
  border-radius: 6px;
}
.lp-lifecycle-tag-you {
  background: var(--lp-dark); color: #fff;
}
.lp-lifecycle-tag-auto {
  background: var(--accent-soft); color: var(--accent-deep);
  border: 1px solid rgba(22,178,115,0.28);
}

/* Steps */
.lp-steps { display: flex; flex-direction: column; gap: 24px; max-width: 520px; margin: 0 auto; }
.lp-step { display: flex; gap: 16px; align-items: flex-start; }
.lp-step-num {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--lp-dark); color: #fff;
  font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card);
}
.lp-step-content h3 {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700; color: var(--ink); margin: 0 0 4px;
  letter-spacing: -0.3px;
}
.lp-step-content p {
  font-size: 14px; line-height: 1.55; color: var(--ink-soft); margin: 0;
}

/* Zero risk */
.lp-risk-points {
  max-width: 580px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 20px;
}
.lp-risk-point {
  font-size: 14px; line-height: 1.6; color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card-sm);
  padding: 16px 20px;
  box-shadow: var(--shadow-card);
}
.lp-risk-point strong {
  color: var(--ink); font-weight: 700;
}

/* Proof */
.lp-proof-note {
  text-align: center; font-size: 13px; color: var(--ink-faint); margin-top: 16px;
}

/* Final CTA — dark */
.lp-section-final {
  background: var(--lp-dark);
  position: relative; overflow: hidden;
}
.lp-section-final::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(22,178,115,0.14) 0%, transparent 70%);
  pointer-events: none;
}
.lp-final { text-align: center; position: relative; }
.lp-final-h2 {
  font-family: var(--font-display);
  font-size: 34px; font-weight: 900; letter-spacing: -1.2px;
  color: #fff; margin-bottom: 12px;
}
.lp-final-sub {
  font-size: 15px; color: #94a3b8; margin-bottom: 32px;
}
.lp-section-final .lp-trust-line { color: #64748b; }

/* Footer */
.lp-footer {
  border-top: 1px solid var(--hairline); padding: 24px;
  background: var(--surface);
}
.lp-footer-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.lp-footer-text { font-size: 12px; color: var(--ink-faint); }

/* Scroll-triggered reveal animations */
.lp-reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.lp-reveal-d1 { transition-delay: 0.08s; }
.lp-reveal-d2 { transition-delay: 0.16s; }
.lp-reveal-d3 { transition-delay: 0.24s; }
.lp-visible {
  opacity: 1; transform: translateY(0);
}

/* Hero stagger */
.lp-hero .lp-reveal { opacity: 0; transform: translateY(16px); animation: lp-hero-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.lp-hero .lp-reveal-d1 { animation-delay: 0.1s; }
.lp-hero .lp-reveal-d2 { animation-delay: 0.2s; }
.lp-hero .lp-reveal-d3 { animation-delay: 0.3s; }
@keyframes lp-hero-in {
  to { opacity: 1; transform: translateY(0); }
}

/* CTA shimmer */
.lp-cta::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transition: none;
}
.lp-cta:hover::after {
  animation: lp-shimmer 0.5s ease forwards;
}
@keyframes lp-shimmer {
  to { left: 120%; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .lp-reveal, .lp-hero .lp-reveal { opacity: 1; transform: none; animation: none; transition: none; }
  .lp-cta::after { animation: none; }
}

/* Landing responsive */
@media (max-width: 768px) {
  .sim-body { grid-template-columns: 1fr; gap: 16px; }

  .lp-nav-inner { padding: 10px 16px; }
  .lp-logo { font-size: 18px; }
  .lp-nav-signin { font-size: 12px; padding: 6px 12px; }

  .lp-hero { padding: 48px 16px 44px; }
  .lp-h1 { font-size: 32px; letter-spacing: -1.2px; }
  .lp-subtitle { font-size: 15px; margin-bottom: 28px; }

  .lp-cta-group { width: 100%; }
  .lp-cta {
    width: 100%; min-height: 52px; font-size: 16px;
    padding: 14px 20px; border-radius: var(--r-card-sm); box-sizing: border-box;
  }

  .lp-section { padding: 48px 16px; }
  .lp-section-title { font-size: 24px; margin-bottom: 28px; }

  .lp-deal { flex-direction: column; }
  .lp-deal-col { padding: 24px 20px; }
  .lp-deal-divider {
    flex-direction: row; width: 100%; height: 1px;
  }
  .lp-deal-divider-line { flex: 1; height: 1px; width: auto; }

  .lp-lifecycle {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  }
  .lp-lifecycle-arrow { display: none; }
  .lp-lifecycle-step { padding: 14px 8px; }
  .lp-lifecycle-label { font-size: 12px; }
  .lp-lifecycle-num { width: 24px; height: 24px; font-size: 12px; }

  .lp-steps { gap: 20px; }
  .lp-step-num { width: 32px; height: 32px; font-size: 14px; flex-shrink: 0; }
  .lp-step-content h3 { font-size: 15px; }
  .lp-step-content p { font-size: 13px; }

  .lp-final-h2 { font-size: 26px; letter-spacing: -0.8px; }
  .lp-final-sub { font-size: 14px; }

  .lp-footer { padding: 20px 16px; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .lp-footer-inner { flex-direction: column; align-items: flex-start; gap: 6px; }

  .lp-risk-points { gap: 14px; }
  .lp-risk-point { font-size: 13px; padding: 14px 16px; }

  .lp-deal-big { font-size: 20px; }
  .lp-deal-footer strong { font-size: 18px; }
  .lp-deal-item { font-size: 13px; }
}
