/* ============================================================================
   landing.css — per-niche public marketing landing page.
   Reuses the dashboard palette (champagne gold, forest green, cream paper) from
   styles.css and a per-niche --niche-accent set by landing.js at runtime.
   No em or en dashes anywhere in this file (brand rule).
   ============================================================================ */

:root {
  /* Fallback accent until landing.js sets --niche-accent from pack.accentColor.
     ApexRun brand: warm gold (#c89b3c) + deep royal purple — matches the public
     apexrunai.com site (was Scruples gold/forest; reconciled in /godsite Wave 3). */
  --niche-accent: #c89b3c;
  --lp-accent-ink: #1f1208;
  --lp-forest: #2e1065;
  --lp-forest-2: #4c1d95;
  --lp-cream: #F8FAFB;
  --lp-paper: #FFFFFF;
  --lp-line: #E2E8F0;
  --lp-text: #0F172A;
  --lp-muted: #64748B;
  --lp-muted-2: #94A3B8;
  --lp-radius: 16px;
  --lp-radius-sm: 10px;
  --lp-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --lp-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --lp-shadow: 0 4px 14px rgba(15, 23, 42, .07), 0 2px 6px rgba(15, 23, 42, .05);
  --lp-shadow-lg: 0 18px 50px rgba(11, 18, 32, .18), 0 6px 18px rgba(15, 23, 42, .08);
}

.lp-body {
  margin: 0;
  font-family: var(--lp-sans);
  color: var(--lp-text);
  background: var(--lp-cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
.lp-body * { box-sizing: border-box; }

/* Keyboard focus ring (WCAG 2.4.7) — only shows for keyboard users, not mouse
   clicks; added in /godsite Wave 3. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--niche-accent);
  outline-offset: 2px;
  border-radius: 4px;
}
/* Loading state for demo CTA buttons (paired with aria-busy in landing.js). */
.lp-btn[aria-busy="true"] { cursor: progress; opacity: .7; }

/* ---------- Buttons ---------- */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--lp-sans);
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  white-space: nowrap;
}
.lp-btn:hover { transform: translateY(-1px); }
.lp-btn:disabled { opacity: .55; cursor: default; transform: none; }
.lp-btn--primary {
  background: var(--niche-accent);
  color: var(--lp-accent-ink);
  box-shadow: var(--lp-shadow);
}
.lp-btn--primary:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, .18); }
.lp-btn--audit {
  background: linear-gradient(135deg, var(--lp-forest-2), var(--lp-forest));
  color: #fff;
}

/* ---------- Sticky top bar ---------- */
.lp-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 28px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--lp-line);
}
.lp-topbar__brand { display: inline-flex; align-items: center; gap: 11px; }
.lp-topbar__logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--niche-accent);
  color: var(--lp-accent-ink);
  font-family: var(--lp-serif);
  font-weight: 600;
  font-size: 19px;
}
.lp-topbar__name { font-family: var(--lp-serif); font-size: 19px; font-weight: 600; }

/* ---------- Main layout ---------- */
.lp-main { max-width: 1120px; margin: 0 auto; padding: 0 24px 80px; }
.lp-section { margin-top: 64px; }
.lp-section__title {
  font-family: var(--lp-serif);
  font-weight: 500;
  font-size: clamp(24px, 3.4vw, 34px);
  letter-spacing: -.01em;
  margin: 0 0 24px;
  color: var(--lp-forest);
}

/* ---------- Hero ---------- */
.lp-hero {
  margin-top: 40px;
  padding: 44px 40px;
  border-radius: var(--lp-radius);
  background:
    radial-gradient(120% 140% at 12% 0%, rgba(255, 255, 255, .9), rgba(248, 250, 251, .6) 60%),
    var(--lp-paper);
  border: 1px solid var(--lp-line);
  box-shadow: var(--lp-shadow-lg);
  border-top: 4px solid var(--niche-accent);
}
.lp-hero__eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--niche-accent);
  margin-bottom: 14px;
}
.lp-hero__headline {
  font-family: var(--lp-serif);
  font-weight: 500;
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.06;
  letter-spacing: -.02em;
  margin: 0 0 16px;
  color: var(--lp-forest);
  max-width: 18ch;
}
.lp-hero__sub {
  font-size: 17px;
  color: var(--lp-muted);
  max-width: 60ch;
  margin: 0 0 26px;
}
.lp-hero__cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.lp-hero__demo-msg { font-size: 13.5px; color: #9A3412; }

/* ---------- Trust spine (under the hero) ---------- */
.lp-trust {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  padding: 16px 22px;
  border-radius: var(--lp-radius-sm);
  background: var(--lp-paper);
  border: 1px solid var(--lp-line);
  box-shadow: var(--lp-shadow);
}
.lp-trust__item {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-muted);
}
.lp-trust__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--niche-accent);
}

/* ---------- ROI calculator ---------- */
.lp-roi__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.lp-roi__controls {
  background: var(--lp-paper);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius);
  padding: 26px 26px 10px;
  box-shadow: var(--lp-shadow);
}
.lp-slider { margin-bottom: 22px; }
.lp-slider__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 9px;
}
.lp-slider__label { font-size: 14px; font-weight: 600; color: var(--lp-text); }
.lp-slider__val {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--lp-forest);
  font-size: 14px;
}
.lp-slider__input {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  /* >=24px interactive/touch target via vertical padding hit-area; the visible
     track is drawn by background-clip on the content box. */
  height: 6px;
  min-height: 24px;
  padding: 9px 0;
  background:
    linear-gradient(90deg, var(--niche-accent) 0 var(--fill, 50%), #E7E2D4 var(--fill, 50%)) content-box;
  background-clip: content-box;
  border-radius: 999px;
  outline: none;
}
.lp-slider__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--niche-accent);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
  cursor: pointer;
}
.lp-slider__input::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--niche-accent);
  border: 2px solid #fff;
  cursor: pointer;
}
.lp-roi__results {
  background: linear-gradient(160deg, var(--lp-forest-2), var(--lp-forest));
  color: #fff;
  border-radius: var(--lp-radius);
  padding: 26px;
  box-shadow: var(--lp-shadow-lg);
}
.lp-roi__line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
}
.lp-roi__val { color: #fff; font-variant-numeric: tabular-nums; font-size: 16px; }
.lp-roi__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 15px;
  color: rgba(255, 255, 255, .9);
}
.lp-roi__big {
  font-family: var(--lp-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--niche-accent);
  font-variant-numeric: tabular-nums;
}
.lp-roi__total--year .lp-roi__big { color: #fff; font-size: 30px; }
.lp-roi__how {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--lp-muted-2);
  max-width: 70ch;
}

/* ---------- Pillar grid ---------- */
.lp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}
.lp-card {
  background: var(--lp-paper);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius);
  padding: 24px;
  box-shadow: var(--lp-shadow);
  border-top: 3px solid var(--niche-accent);
}
.lp-card__head { display: flex; gap: 14px; align-items: flex-start; }
.lp-card__ico {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--lp-cream);
  border: 1px solid var(--lp-line);
}
.lp-card__label {
  font-family: var(--lp-serif);
  font-weight: 600;
  font-size: 20px;
  margin: 0;
  color: var(--lp-forest);
}
.lp-card__tagline { margin: 2px 0 0; font-size: 13.5px; color: var(--niche-accent); font-weight: 600; }
.lp-card__desc { margin: 16px 0 6px; font-size: 14px; color: var(--lp-muted); }
.lp-group { margin-top: 16px; }
.lp-group__label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lp-muted-2);
  margin-bottom: 8px;
}
.lp-group__list { list-style: none; margin: 0; padding: 0; }
.lp-feat {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 7px 0;
}
.lp-feat--muted { opacity: .72; }
.lp-feat__ico { flex-shrink: 0; font-size: 16px; line-height: 1.4; width: 20px; text-align: center; }
.lp-feat__body { display: flex; flex-direction: column; gap: 2px; }
.lp-feat__name { font-size: 14px; font-weight: 600; color: var(--lp-text); }
.lp-feat__benefit { font-size: 12.5px; color: var(--lp-muted); }
.lp-chip {
  align-self: flex-start;
  margin-top: 3px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 999px;
}
.lp-chip--roadmap { background: #EEF2F6; color: var(--lp-muted); }
.lp-chip--partner { background: #FBF3E2; color: #8A6A1F; }

/* ---------- Final CTA ---------- */
.lp-finalcta {
  margin-top: 72px;
  text-align: center;
  padding: 48px 32px;
  border-radius: var(--lp-radius);
  background: var(--lp-paper);
  border: 1px solid var(--lp-line);
  box-shadow: var(--lp-shadow);
}
.lp-finalcta p { color: var(--lp-muted); margin: 0 auto 22px; max-width: 52ch; }
.lp-finalcta__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Errors ---------- */
.lp-error {
  max-width: 640px;
  margin: 80px auto;
  text-align: center;
  font-size: 16px;
  color: var(--lp-muted);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .lp-btn:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .lp-roi__grid { grid-template-columns: 1fr; }
  .lp-hero { padding: 32px 24px; }
  .lp-topbar { padding: 10px 16px; }
  .lp-main { padding: 0 16px 64px; }
}
