/* Landing page (src/pages/index.astro) only. No other site CSS is loaded on that page. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy: #1d2b45;
  --navy-deep: #121c30;
  --ink: #1f2a37;
  --muted: #55606f;
  --purple: #5a47b8;
  --purple-soft: #c3b5ff;
  --teal: #2d8a86;
  --line: #e3e5ec;
  --paper: #f6f5f1;
  --font: "Inter", "Segoe UI", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.lp-shell { width: min(1280px, 100% - 2 * var(--gutter)); margin: 0 auto; }

/* Buttons */
.lp-btn { display: inline-block; background: var(--purple); color: #fff; font-weight: 700; font-size: 17px; padding: 15px 28px; border-radius: 10px; }
.lp-btn:hover { background: #4a39a3; }
.lp-btn-small { font-size: 15px; padding: 10px 20px; }
.lp-link { font-weight: 600; font-size: 17px; color: var(--purple); border-bottom: 1px solid currentColor; }

/* Sections and shared type */
.lp-section { padding: clamp(64px, 9vw, 120px) 0; }
.lp-eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--purple); margin-bottom: 20px; }
.lp-h1 { font-size: clamp(40px, 5.2vw, 76px); line-height: 1.04; font-weight: 800; letter-spacing: -.03em; color: var(--navy); max-width: 19ch; }
.lp-h1 span { display: block; color: var(--purple); }
.lp-h2 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.1; font-weight: 800; letter-spacing: -.025em; color: var(--navy); max-width: 22ch; }
.lp-lead { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.55; color: var(--muted); max-width: 62ch; margin-top: 24px; }

/* 1. Why */
.lp-why { padding-top: clamp(40px, 5vw, 64px); }
.lp-only { margin-top: clamp(36px, 4vw, 56px); font-size: 15px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
.lp-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 18px; }
.lp-pillar { border-top: 3px solid var(--purple); padding-top: 20px; }
.lp-pillar:nth-child(2) { border-color: var(--teal); }
.lp-pillar:nth-child(3) { border-color: #357caa; }
.lp-pillar:nth-child(4) { border-color: #a95b43; }
.lp-pillar h3 { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.lp-pillar p { font-size: 16px; color: var(--muted); }

/* 2. How effective (dark band) */
.lp-effect { background: var(--navy-deep); color: #fff; }
.lp-effect .lp-eyebrow { color: var(--purple-soft); }
.lp-effect .lp-h2 { color: #fff; }
.lp-effect .lp-lead { color: #c4ccd9; }
.lp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: clamp(40px, 5vw, 64px); }
.lp-stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 28px 24px; }
.lp-stat strong { display: block; font-size: clamp(36px, 3.4vw, 52px); font-weight: 800; letter-spacing: -.02em; line-height: 1; color: #fff; margin-bottom: 14px; white-space: nowrap; }
.lp-stat em { font-style: normal; font-size: .5em; color: var(--purple-soft); vertical-align: middle; }
.lp-stat span { font-size: 16px; color: #c4ccd9; }
.lp-reach { margin-top: 40px; font-size: 18px; color: #c4ccd9; max-width: 80ch; }
.lp-reach strong { color: #fff; }

/* 3. Client references */
.lp-refs { background: var(--paper); }
.lp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(40px, 5vw, 64px); }
.lp-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.lp-card-tag { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--teal); }
.lp-card h3 { font-size: 22px; line-height: 1.25; font-weight: 700; color: var(--navy); }
.lp-card p { font-size: 16px; color: var(--muted); }
.lp-card .lp-card-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 600; color: var(--ink); }
.lp-note { margin-top: 18px; font-size: 14px; color: var(--muted); }
.lp-cta { margin-top: clamp(48px, 6vw, 72px); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.lp-cta h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 700; color: var(--navy); }
.lp-cta-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

/* Laptop and tablet */
@media (max-width: 1100px) {
  .lp-pillars, .lp-stats { grid-template-columns: repeat(2, 1fr); }
  .lp-cards { grid-template-columns: 1fr; }
}

/* Phone */
@media (max-width: 640px) {
  .lp-pillars, .lp-stats { grid-template-columns: 1fr; }
  .lp-stat strong { white-space: normal; }
}

/* ---------- How it works page (src/pages/how-it-works.astro) ---------- */
.lp-more { margin-top: 28px; font-size: 18px; color: var(--muted); }

.hw-h1 { font-size: clamp(36px, 4.2vw, 60px); }
.hw-accent { color: var(--purple); }
.hw-back-line { margin-top: 28px; }
.hw-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hw-figure { margin: 0; }
.hw-figure svg { display: block; width: 100%; height: auto; }
.hw-figure figcaption, .hw-cap { margin-top: 12px; font-size: 13px; color: var(--muted); }
.hw-wide { margin-top: clamp(32px, 4vw, 48px); border-radius: 22px; overflow: hidden; box-shadow: 0 16px 42px rgba(22,44,73,.09); }

.hw-paths, .hw-evidence { background: var(--paper); }

/* Estimated vs reconstructed (dark band) */
.hw-compare { background: var(--navy-deep); color: #fff; }
.hw-compare .lp-eyebrow { color: var(--purple-soft); }
.hw-compare .lp-h2 { color: #fff; }
.hw-questions { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.hw-questions div { border-radius: 16px; padding: 24px 28px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.hw-questions div:last-child { background: rgba(195,181,255,.14); border-color: rgba(195,181,255,.4); }
.hw-questions span { display: block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #9aa5b6; margin-bottom: 8px; }
.hw-questions strong { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.3; }
.hw-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.hw-col { padding: 24px 28px; border-top: 3px solid #5d6878; }
.hw-col-us { border-color: var(--purple-soft); }
.hw-col h3 { font-size: 20px; margin-bottom: 12px; }
.hw-col ol { margin: 0 0 16px; padding-left: 20px; color: #dfe4ec; font-size: 17px; line-height: 1.7; }
.hw-col p { color: #c4ccd9; font-size: 16px; }

/* Hard to copy */
.hw-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: clamp(40px, 5vw, 56px); }
.hw-item { border-top: 3px solid var(--purple); padding-top: 18px; }
.hw-item:nth-child(2) { border-color: var(--teal); }
.hw-item:nth-child(3) { border-color: #357caa; }
.hw-item:nth-child(4) { border-color: #a95b43; }
.hw-num { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.hw-item h3 { font-size: 20px; line-height: 1.3; color: var(--navy); margin-bottom: 10px; }
.hw-item p { font-size: 16px; color: var(--muted); }
.hw-item .hw-num { font-size: 13px; }
.hw-minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.hw-minis figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.hw-minis svg { display: block; width: 100%; height: auto; }
.hw-minis figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* Reconciliation bar */
.hw-recon { margin-top: 32px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; }
.hw-recon-head { display: flex; justify-content: space-between; font-size: 15px; color: var(--muted); }
.hw-recon-head strong { color: var(--navy); font-size: 22px; margin-left: 6px; }
.hw-recon-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin: 14px 0 10px; }
.hw-recon-bar i:nth-child(1) { background: #2d8a86; }
.hw-recon-bar i:nth-child(2) { background: var(--purple); }
.hw-recon-bar i:nth-child(3) { background: #d4834d; }
.hw-recon-bar i:nth-child(4) { background: #9aa5b6; }
.hw-recon-keys { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); }

/* Deployment Q&A */
.hw-faq { margin: 28px 0 0; }
.hw-faq dt { font-size: 18px; font-weight: 700; color: var(--navy); margin-top: 20px; }
.hw-faq dd { margin: 6px 0 0; font-size: 17px; color: var(--muted); }

.hw-close { padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.hw-close .lp-cta { margin-top: 0; }

@media (max-width: 1100px) {
  .hw-split, .hw-questions, .hw-columns { grid-template-columns: 1fr; }
  .hw-grid4 { grid-template-columns: repeat(2, 1fr); }
  .hw-wide { overflow-x: auto; }
  .hw-wide svg { min-width: 760px; }
}
@media (max-width: 640px) {
  .hw-grid4, .hw-minis { grid-template-columns: 1fr; }
}
