/* ===========================================================================
   LeadFuel marketing funnel — LAYOUT ONLY.

   This file holds funnel structure (hero / sections / grid / steps / footer).
   ALL colour, font, radius and brand tokens come from intake.css (the onboard
   design system) via its :root --vars, and flip automatically in light mode
   through theme.css. Keep this file app-agnostic — every string lives in
   marketing.py — so it can be copied verbatim onto sibling apps.
   =========================================================================== */

/* The funnel is a long scrolling document, not the fixed-height chat shell, so
   relax the body height intake.css sets to 100% and let the page grow. */
html, body.lp-body { height: auto; min-height: 100%; }
html { scroll-behavior: smooth; }

.lp-wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* ── Header ─────────────────────────────────────────────────────────────────
   Reuses onboard .hdr/.brand. Just make it a full-width sticky bar (the chat
   header was constrained to the #app column, which the funnel doesn't use). */
.lp-hdr {
  position: sticky; top: 0; z-index: 20;
  max-width: 1040px; margin: 0 auto;
  background: var(--bg);
}
.brand { text-decoration: none; }
.lp-login {
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  text-decoration: none; padding: 6px 4px; transition: color .15s;
}
.lp-login:hover { color: var(--text); }
/* Header CTA: the .start-btn pill, but inline-size instead of full-width. */
.start-btn.lp-nav-cta {
  display: inline-block; width: auto;
  padding: 10px 18px; font-size: 13px;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.lp-hero {
  padding: 88px 0 64px;
  background:
    radial-gradient(1100px 460px at 50% -10%, var(--brand-soft), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.lp-hero-inner { text-align: center; max-width: 820px; margin: 0 auto; }
.lp-eyebrow {
  display: inline-block; margin: 0 0 18px; padding: 6px 14px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft);
  border: 1px solid rgba(225, 11, 11, 0.30); border-radius: 999px;
}
.lp-h1 {
  margin: 0 0 18px; font-size: 52px; line-height: 1.08;
  font-weight: 800; letter-spacing: -.02em; color: var(--text);
}
.lp-sub {
  margin: 0 auto 32px; max-width: 640px;
  font-size: 19px; line-height: 1.6; color: var(--text-muted);
}
.lp-cta-row { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; }
/* Primary CTA reuses .start-btn — just make it inline + a touch larger. */
.start-btn.lp-cta-primary {
  display: inline-block; width: auto;
  padding: 14px 30px; font-size: 16px;
}
.lp-cta-secondary {
  display: inline-block; padding: 14px 24px;
  font-size: 16px; font-weight: 700; letter-spacing: .02em;
  color: var(--text); text-decoration: none;
  background: transparent; border: 1px solid var(--border-strong);
  border-radius: 10px; transition: border-color .15s, color .15s;
}
.lp-cta-secondary:hover { border-color: var(--brand); color: var(--brand); }

/* ── Proof line ─────────────────────────────────────────────────────────── */
.lp-proof { padding: 28px 0; border-bottom: 1px solid var(--border); }
.lp-proof-label {
  text-align: center; margin: 0; max-width: 760px; margin: 0 auto;
  font-size: 15px; letter-spacing: .01em;
  color: var(--text-muted); font-weight: 600;
}

/* ── Sections ───────────────────────────────────────────────────────────── */
.lp-section { padding: 72px 0; }
.lp-section-alt {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.lp-h2 {
  text-align: center; margin: 0 0 44px;
  font-size: 32px; font-weight: 800; letter-spacing: -.01em; color: var(--text);
}

/* ── Feature cards — eyebrow kicker + title + body + CTA, on the onboard
      elevated surface (--bg-elevated / --border / --radius). ─────────────── */
.lp-cards {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.lp-card {
  display: flex; flex-direction: column;
  padding: 26px 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color .15s, transform .15s;
}
.lp-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.lp-card-eyebrow {
  margin: 0 0 12px; font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand);
}
.lp-card-title { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: var(--text); }
.lp-card-body { margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: var(--text-muted); }
.lp-card-link {
  margin-top: auto; align-self: flex-start;
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
  color: var(--brand); text-decoration: none; transition: opacity .15s;
}
.lp-card-link:hover { opacity: .7; }

/* ── Capability / proof band — honest chips ─────────────────────────────── */
.lp-band {
  list-style: none; margin: 0 auto; padding: 0; max-width: 880px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.lp-chip {
  padding: 10px 18px; font-size: 14px; font-weight: 600;
  color: var(--text); background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: 999px;
}
.lp-chip::before { content: "✓"; color: var(--brand); font-weight: 800; margin-right: 8px; }

/* ── FAQ — native <details>/<summary>, styled in brand ──────────────────── */
.lp-faq-wrap { max-width: 760px; }
.lp-faq { display: grid; gap: 12px; }
.lp-faq-item {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0 22px; overflow: hidden;
  transition: border-color .15s;
}
.lp-faq-item[open] { border-color: var(--border-strong); }
.lp-faq-q {
  list-style: none; cursor: pointer; padding: 18px 0;
  font-size: 16px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.lp-faq-q::-webkit-details-marker { display: none; }
.lp-faq-q::after {
  content: "+"; flex: none; color: var(--brand);
  font-size: 22px; font-weight: 400; line-height: 1; transition: transform .2s;
}
.lp-faq-item[open] .lp-faq-q::after { transform: rotate(45deg); }
.lp-faq-a { margin: 0 0 18px; color: var(--text-muted); font-size: 15px; line-height: 1.6; }

/* ── How it works ───────────────────────────────────────────────────────── */
.lp-steps {
  list-style: none; margin: 0 auto; padding: 0; max-width: 760px;
  display: grid; gap: 24px;
}
.lp-step { display: flex; gap: 18px; align-items: flex-start; }
.lp-step-num {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 17px;
  color: #fff; background: var(--user-bg);
  box-shadow: 0 2px 12px rgba(225, 11, 11, 0.3);
}
.lp-step-title { margin: 4px 0 6px; font-size: 19px; font-weight: 700; color: var(--text); }
.lp-step-body { margin: 0; color: var(--text-muted); line-height: 1.6; }

/* ── Final CTA band ─────────────────────────────────────────────────────── */
.lp-final {
  padding: 80px 0;
  background:
    radial-gradient(900px 360px at 50% 120%, var(--brand-soft), transparent 70%),
    var(--bg);
}
.lp-final-inner.welcome {
  text-align: center; max-width: 680px; margin: 0 auto; padding: 44px 40px;
}
.lp-final-line { margin: 0 0 12px; font-size: 34px; font-weight: 800; letter-spacing: -.01em; color: var(--text); }
.lp-final-sub { margin: 0 0 28px; color: var(--text-muted); font-size: 18px; line-height: 1.6; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.lp-footer { background: var(--bg-elevated); border-top: 1px solid var(--border); padding: 44px 0; }
.lp-footer-inner { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
.lp-footer-col { display: flex; flex-direction: column; gap: 8px; }
.lp-footer-logo { height: 24px; }
.lp-footer-col a { color: var(--text-muted); text-decoration: none; font-size: 14px; transition: color .15s; }
.lp-footer-col a:hover { color: var(--brand); }
.lp-footer-head {
  font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-faint); font-weight: 700; margin-bottom: 2px;
}
.lp-footer-copy { margin: 6px 0 0; color: var(--text-faint); font-size: 14px; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .lp-h1 { font-size: 36px; }
  .lp-sub { font-size: 17px; }
  .lp-hero { padding: 60px 0 48px; }
  .lp-section, .lp-final { padding: 52px 0; }
  .lp-h2 { font-size: 26px; margin-bottom: 32px; }
  .lp-final-line { font-size: 27px; }
  .lp-cta-row { flex-direction: column; }
  .start-btn.lp-cta-primary, .lp-cta-secondary { width: 100%; text-align: center; }
  .lp-footer-inner { gap: 28px; }
}
