/*
 * Alfolio landing page — marketing-specific CSS.
 *
 * Layered on top of styles.css + components.css. All colours/spacing/radii
 * reference the existing --theme-* tokens defined in styles.css; no new
 * design tokens are introduced here.
 *
 * Token mapping (prototype --al-* → app --theme-*):
 *   --al-bg-darkest  → --theme-bg-darkest  (#081229)
 *   --al-bg-dark     → --theme-bg-dark     (#0f3459)
 *   --al-bg-dark-mid → --theme-bg-dark-mid (#1a3149)
 *   --al-bg-medium   → --theme-bg-medium   (#1b4a79)
 *   --al-text-light  → --theme-text-light  (#ffffff)
 *   --al-text-muted  → --theme-text-muted  (#a0aec0)
 *   --al-positive    → --theme-positive    (#10b981)
 *   --al-negative    → --theme-negative    (#ef4444)
 *   --al-link        → --theme-link        (#60a5fa)
 *   --al-primary     → --theme-primary     (#3b82f6)
 *   --al-success     → --theme-success     (#16a34a)
 */

/* ====== Page shell ====== */
.lp-body {
  margin: 0;
  background: var(--theme-bg-dark);
  color: var(--theme-text-light);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

/* Scope inside .lp so we don't bleed into the app */
.lp { color: var(--theme-text-light); }
.lp section { position: relative; }
.lp .container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

.lp h1, .lp h2, .lp h3, .lp h4 { color: var(--theme-text-light); margin: 0; }
.lp a { color: inherit; text-decoration: none; }
.lp a:hover { text-decoration: none; }

/* ====== Top marketing nav ====== */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
  padding: 0 32px;
  background: rgba(8, 18, 41, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lp-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}
.lp-nav__brand svg { width: 24px; height: 24px; color: #fff; }

.lp-nav__links {
  display: flex;
  gap: 22px;
  margin-left: 12px;
}
.lp-nav__links a {
  color: var(--theme-text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.lp-nav__links a:hover { color: #fff; }

.lp-nav__spacer { flex: 1; }

.lp-nav__cta {
  display: flex;
  gap: 10px;
  align-items: center;
}
/* WCAG 2.5.5 AA minimum hit-target is 24x24 px; we aim for 36 to
   match the broader convention. The base `.btn` from components.css
   renders at 35 px tall — bump the marketing-nav buttons by 1 px
   without touching the in-app button styles. */
.lp-nav__cta .btn { min-height: 36px; }

/* Status pill in the top-right of the nav. The .btn-ghost / .btn-secondary
   come from the app's existing components.css so they automatically match
   in-app styling. */
.lp-pill-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--theme-positive);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.lp-pill-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--theme-positive);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Collapse the nav links on narrow screens — keep brand + CTAs. */
@media (max-width: 800px) {
  .lp-nav__links { display: none; }
  .lp-pill-status { display: none; }
}

/* ====== Section header (shared) ====== */
.lp-section {
  padding: 96px 0;
  position: relative;
}
.lp-section--tight { padding: 64px 0; }

.lp-section__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--theme-link);
  margin: 0 0 14px;
}
.lp-section__title {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  color: #fff;
  text-wrap: balance;
}
.lp-section__lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--theme-text-muted);
  max-width: 60ch;
  margin: 0;
  text-wrap: pretty;
}

/* ====== Inputs (marketing form fields) ======
   Light dark-themed input, matches the dark-input pattern in
   components.css but is scoped via the .lp-input class so the
   landing page doesn't depend on the app's form classes. */
.lp-input {
  height: 44px;
  padding: 0 14px;
  background: var(--theme-bg-darkest);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.lp-input::placeholder { color: var(--theme-text-muted); }
.lp-input:focus {
  border-color: var(--theme-link);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
}

/* CTA row helper (button + input or two buttons side-by-side). */
.lp-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.lp-cta-row .btn-lg {
  padding: 14px 22px;
  font-size: 15px;
}

/* ====== Final CTA ====== */
.lp-finalcta {
  padding: 88px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.lp-finalcta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at center,
              rgba(96, 165, 250, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.lp-finalcta__inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}
.lp-finalcta h2 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: #fff;
  text-wrap: balance;
}
.lp-finalcta p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--theme-text-muted);
  margin: 0 0 32px;
  text-wrap: pretty;
}
.lp-finalcta__fineprint {
  font-size: 12px;
  color: var(--theme-text-muted);
  margin-top: 18px !important;
}

/* Re-assert the `hidden` HTML attribute under our scope — without this,
   classes like `.lp-cta-row { display: flex }` win on specificity and
   keep the element visible. Applies to everything inside .lp. */
.lp [hidden] { display: none !important; }

/* Beta-signup result messages (success/error) — inline below the form. */
.lp-signup-msg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 20px auto 0;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  max-width: 480px;
}
.lp-signup-msg--ok {
  background: rgba(16, 185, 129, 0.12);
  color: var(--theme-positive);
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.lp-signup-msg--ok svg { flex-shrink: 0; }
.lp-signup-msg--err {
  background: rgba(239, 68, 68, 0.10);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.25);
  justify-content: center;
}

/* ====== Footer ====== */
.lp-footer {
  padding: 48px 0 36px;
  background: var(--theme-bg-darkest);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.lp-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 800px) {
  .lp-footer__top { grid-template-columns: 1fr 1fr; }
}

.lp-footer__brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
}
.lp-footer__brand svg { color: #fff; }

.lp-footer__tag {
  font-size: 13px;
  color: var(--theme-text-muted);
  line-height: 1.55;
  max-width: 28ch;
  margin: 0;
}

.lp-footer__col h4 {
  font-size: 11px;
  font-weight: 600;
  color: var(--theme-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
}
.lp-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.lp-footer__col li a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 400;
  transition: color 0.15s ease;
  /* Bump tap-target size to satisfy WCAG 2.5.5 AA minimum (24x24).
     The link's text is only 16-17px tall on its own; with vertical
     padding the clickable area grows without disturbing visual
     spacing — the parent `gap: 9px` already absorbs it. */
  display: inline-block;
  padding: 4px 0;
}
.lp-footer__col li a:hover { color: #fff; }

.lp-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: var(--theme-text-muted);
}

/* ====== Hero ====== */
.lp-hero {
  padding: 64px 0 40px;
  overflow: hidden;
  position: relative;
}
.lp-hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  height: 600px;
  width: 60%;
  background: radial-gradient(ellipse at top right,
              rgba(96, 165, 250, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.lp-hero__inner {
  display: grid;
  gap: 56px;
  align-items: center;
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
}
@media (max-width: 1100px) {
  .lp-hero__inner { grid-template-columns: 1fr; gap: 40px; }
}

.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  border-radius: 999px;
  background: var(--theme-bg-darkest);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--theme-text-muted);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 22px;
}
.lp-eyebrow__chip {
  background: var(--theme-bg-medium);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lp-h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: #fff;
  text-wrap: balance;
}
.lp-h1 em {
  font-style: normal;
  color: var(--theme-positive);
  font-weight: 700;
}

.lp-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--theme-text-muted);
  margin: 0 0 32px;
  max-width: 50ch;
  text-wrap: pretty;
}

/* Hero "See how it works" ghost CTA — different from .btn-ghost
   to support the inline play-dot graphic. */
.lp-secondary-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.lp-secondary-cta:hover { color: var(--theme-link); }

.lp-play-dot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  color: var(--theme-bg-darkest);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lp-trust-row {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.lp-trust-row__label {
  font-size: 11px;
  color: var(--theme-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.lp-broker-row {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.lp-broker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
}
.lp-broker__dot {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--theme-bg-medium);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

/* ====== Browser frame (used by hero + all 3 feature visuals) ====== */
.lp-frame-wrap { position: relative; }

.lp-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--theme-bg-darkest);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6),
              0 0 0 1px rgba(255, 255, 255, 0.03);
}
.lp-frame__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #050c1d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.lp-frame__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.lp-frame__addr {
  flex: 1;
  margin: 0 12px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  font-size: 11px;
  color: var(--theme-text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.lp-frame__body { background: var(--theme-bg-dark); position: relative; }

/* Body variant that hosts a real screenshot (Phase 4). The <img>
   scales to fill the frame; aspect ratio is preserved by the
   intrinsic width/height attrs the screenshot pipeline emits. */
.lp-frame__body--img { padding: 0; line-height: 0; }
.lp-mock-img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}

/* Floating annotation callouts (over hero frame) */
.lp-callout {
  position: absolute;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--theme-bg-darkest);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  z-index: 2;
}
.lp-callout__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--theme-link);
  color: var(--theme-bg-darkest);
  font-size: 12px;
  font-weight: 700;
}
@media (max-width: 1100px) {
  .lp-callout { display: none; }   /* the callout positions assume the frame has horizontal breathing room — hide on narrow screens */
}

/* ====== Hero dashboard mock ====== */
.lp-hero-dash { padding: 18px 22px 22px; }
.lp-hero-dash__top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 4px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 16px;
}
.lp-hero-dash__brand { font-size: 14px; font-weight: 600; color: #fff; }
.lp-hero-dash__crumb { font-size: 12px; color: var(--theme-text-muted); margin-left: 4px; }
.lp-hero-dash__sync { font-size: 11px; color: var(--theme-text-muted); }
.lp-spacer { flex: 1; }

.lp-avatar-stack { display: inline-flex; }
.lp-avatar-stack > * {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--theme-bg-medium);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  border: 2px solid var(--theme-bg-darkest);
  margin-left: -8px;
}
.lp-avatar-stack > *:first-child { margin-left: 0; }

.lp-stats-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  background: var(--theme-bg-medium);
  padding: 14px 16px;
  border-radius: 10px;
}
.lp-stat__label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
  margin-bottom: 4px;
}
.lp-stat__val {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.lp-stat__val.pos { color: var(--theme-positive); }

/* Chart card (used inside hero dashboard + feature mocks) */
.lp-chart-card {
  background: var(--theme-bg-darkest);
  border-radius: 10px;
  padding: 14px 16px;
}
.lp-chart-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.lp-chart-card__title { font-size: 13px; color: #fff; font-weight: 600; }

.lp-range {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  background: var(--theme-bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
}
.lp-range__opt {
  font-size: 11px;
  color: var(--theme-text-muted);
  padding: 3px 8px;
  border-radius: 4px;
}
.lp-range__opt.is-active { background: var(--theme-bg-medium); color: #fff; }

.lp-line-chart { width: 100%; height: 170px; display: block; }

.lp-chart-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--theme-text-muted);
  margin-top: 10px;
  flex-wrap: wrap;
  gap: 8px;
}
.lp-chart-card__foot .pos { color: var(--theme-positive); font-weight: 600; }

.lp-hero-dash__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.lp-acc-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lp-acc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--theme-bg-dark-mid);
  border-radius: 8px;
}
.lp-acc-row__main { flex: 1; min-width: 0; }
.lp-acc-row__name {
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lp-acc-row__who { font-size: 10px; color: var(--theme-text-muted); margin-top: 1px; }
.lp-acc-row__num { text-align: right; }
.lp-acc-row__val { font-size: 12px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.lp-acc-row__pct { font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lp-acc-row__pct.pos { color: var(--theme-positive); }
.lp-acc-row__pct.neg { color: var(--theme-negative); }

.lp-donut-wrap { display: flex; gap: 14px; align-items: center; }
.lp-donut { flex-shrink: 0; }
.lp-donut-legend {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.lp-donut-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.lp-donut-legend li span:nth-child(2) {
  flex: 1;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lp-donut-legend .num {
  color: var(--theme-text-muted);
  font-variant-numeric: tabular-nums;
}
.lp-donut-legend__sw {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ====== Problem strip ====== */
.lp-problem { background: var(--theme-bg-darkest); }

.lp-problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
@media (max-width: 900px) {
  .lp-problem-grid { grid-template-columns: 1fr; }
}

.lp-problem-card {
  background: var(--theme-bg-dark);
  border-radius: 12px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.lp-problem-card__num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--theme-text-muted);
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 18px;
  display: block;
}
.lp-problem-card__title {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.3;
}
.lp-problem-card__body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--theme-text-muted);
  margin: 0;
}
.lp-problem-card__vis {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.lp-problem-card__vis-label {
  font-size: 12px;
  color: var(--theme-text-muted);
}
.lp-stale-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--theme-negative);
  display: inline-block;
}

/* Mock pill (used in hero broker row + problem cards) */
.mock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--theme-bg-medium);
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  font-weight: 500;
}
.mock-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--theme-positive);
}
.mock-pill--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--theme-text-muted);
}

/* ====== Feature blocks (reusable) ====== */
.lp-feature {
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.lp-feature--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); }
.lp-feature--flip .lp-feature__copy { order: 2; }
@media (max-width: 1000px) {
  .lp-feature, .lp-feature--flip { grid-template-columns: 1fr; gap: 40px; }
  .lp-feature--flip .lp-feature__copy { order: 0; }
}

.lp-feature__copy h3 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  color: #fff;
  text-wrap: balance;
}
.lp-feature__copy p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--theme-text-muted);
  margin: 0 0 24px;
  text-wrap: pretty;
}
.lp-feature__bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lp-feature__bullets li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}
.lp-feature__bullets li svg {
  flex-shrink: 0;
  color: var(--theme-positive);
  margin-top: 2px;
}

/* ====== Feature mocks — shared helpers ====== */
.lp-cons-body, .lp-strat-body, .lp-opt-body { padding: 22px; }

.lp-cons-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.lp-cons-head h4 {
  margin: 0;
  font-size: 16px;
  color: #fff;
  font-weight: 600;
}

.lp-mute-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--theme-bg-dark-mid);
  color: var(--theme-text-muted);
  font-size: 11px;
  font-weight: 500;
}

/* ====== Consolidated-view feature table ====== */
.lp-cons-table-wrap {
  background: var(--theme-bg-darkest);
  border-radius: 10px;
  overflow: hidden;
}
.lp-cons-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.92);
}
.lp-cons-table th,
.lp-cons-table td {
  text-align: left;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.lp-cons-table th {
  font-size: 10px;
  font-weight: 600;
  color: var(--theme-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.02);
}
.lp-cons-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.lp-cons-table .pos { color: var(--theme-positive); font-weight: 600; }
.lp-cons-table .neg { color: var(--theme-negative); font-weight: 600; }
.lp-cons-table tbody tr:last-child td { border-bottom: 0; }

.lp-wrapper-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--theme-bg-medium);
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.04em;
}

.lp-sync-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.lp-sync-badge--ok {
  background: rgba(16, 185, 129, 0.14);
  color: var(--theme-positive);
}
.lp-sync-badge--warn {
  background: rgba(217, 119, 6, 0.18);
  color: #f59e0b;
}

.lp-cons-foot {
  margin-top: 14px;
  padding: 12px;
  background: var(--theme-bg-dark-mid);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--theme-text-muted);
}
.lp-cons-foot strong { color: #fff; font-weight: 600; }

/* ====== Strategy simulator mock ====== */
.lp-strat-inputs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.lp-strat-input {
  background: var(--theme-bg-dark-mid);
  padding: 10px 14px;
  border-radius: 8px;
}
.lp-strat-input__label {
  font-size: 10px;
  color: var(--theme-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  margin-bottom: 4px;
}
.lp-strat-input__val {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.lp-strat-chart {
  background: var(--theme-bg-darkest);
  border-radius: 12px;
  padding: 14px 18px;
}
.lp-strat-chart__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #fff;
  font-weight: 600;
}
.lp-strat-chart__head .lp-mute { font-size: 11px; color: var(--theme-text-muted); font-weight: 400; margin-left: auto; }
.lp-strat-chart__svg { display: block; width: 100%; height: 280px; }

.lp-strat-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.lp-strat-result {
  background: var(--theme-bg-darkest);
  padding: 12px 14px;
  border-radius: 8px;
}
.lp-strat-result__val {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.lp-strat-result__val.pos { color: var(--theme-positive); }
.lp-strat-result__val.neg { color: var(--theme-negative); }

/* ====== Optimizer mock ====== */
.lp-opt-legend {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--theme-text-muted);
  font-weight: 400;
  margin-left: auto;
}
.lp-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}

.lp-opt-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.lp-opt-card {
  background: var(--theme-bg-darkest);
  padding: 12px 16px;
  border-radius: 8px;
}
.lp-opt-card--current { border: 1px solid rgba(242, 142, 43, 0.3); }
.lp-opt-card--rec     { border: 1px solid rgba(16, 185, 129, 0.4); }

.lp-opt-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.lp-opt-card__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.lp-opt-card--current .lp-opt-card__title { color: #f28e2b; }
.lp-opt-card__title.pos { color: var(--theme-positive); }

.lp-opt-card__stats {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.lp-opt-card__num {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.lp-opt-card__num.pos { color: var(--theme-positive); }

/* ====== Discover & compare feature (screener mock) ====== */
.lp-screener-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  align-items: center;
}
.lp-screener-search,
.lp-screener-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--theme-bg-dark-mid);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}
.lp-screener-search {
  background: var(--theme-bg-darkest);
  color: var(--theme-text-muted);
  min-width: 130px;
}
.lp-screener-filter__x {
  color: var(--theme-text-muted);
  margin-left: 2px;
}
.lp-screener-filter--add {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  color: var(--theme-text-muted);
}

/* ====== Collections feature (custom-ETF mock) ====== */
.lp-coll-body { padding: 22px; }

.lp-coll-legend {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--theme-text-muted);
  font-weight: 400;
}

.lp-coll-holdings { margin-top: 14px; }
.lp-coll-holdings__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #fff;
  font-weight: 600;
  margin-bottom: 10px;
}
.lp-coll-holdings__head .lp-mute {
  font-size: 11px;
  color: var(--theme-text-muted);
  font-weight: 400;
}
.lp-coll-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lp-coll-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--theme-bg-dark-mid);
  border-radius: 8px;
  font-size: 12px;
}
.lp-coll-row__name {
  flex: 1;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lp-coll-row__w {
  font-weight: 600;
  color: var(--theme-text-muted);
  font-variant-numeric: tabular-nums;
}
.lp-coll-row--more {
  justify-content: center;
  color: var(--theme-text-muted);
  font-style: italic;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  background: transparent;
}

/* ====== How it works ====== */
.lp-how { background: var(--theme-bg-darkest); }

.lp-how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
@media (max-width: 900px) {
  .lp-how-grid { grid-template-columns: 1fr; }
}

.lp-how-card {
  position: relative;
  background: var(--theme-bg-dark);
  border-radius: 12px;
  padding: 32px 28px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.lp-how-card__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--theme-bg-medium);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-bottom: 22px;
}
.lp-how-card__title { font-size: 18px; font-weight: 600; color: #fff; margin: 0 0 8px; }
.lp-how-card__body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--theme-text-muted);
  margin: 0 0 18px;
}
.lp-how-card__art {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ====== Trust strip ====== */
.lp-trust {
  padding: 56px 0;
  background: var(--theme-bg-dark);
  border-block: 1px solid rgba(255, 255, 255, 0.04);
}
.lp-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .lp-trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .lp-trust-grid { grid-template-columns: 1fr; }
}

.lp-trust-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.lp-trust-item__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--theme-bg-darkest);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--theme-link);
  border: 1px solid rgba(96, 165, 250, 0.18);
}
.lp-trust-item__title { font-size: 14px; font-weight: 600; color: #fff; margin: 0 0 4px; }
.lp-trust-item__body {
  font-size: 13px;
  line-height: 1.5;
  color: var(--theme-text-muted);
  margin: 0;
}

/* ====== Video walkthrough placeholder ====== */
.lp-video__frame {
  position: relative;
  margin-top: 48px;
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(ellipse at center,
              rgba(27, 74, 121, 0.45) 0%, rgba(8, 18, 41, 0.95) 70%);
  background-color: var(--theme-bg-darkest);
  border: 1px solid rgba(255, 255, 255, 0.08);
  aspect-ratio: 16 / 9;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-video__silhouette {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
}
.lp-video__play {
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: #fff;
  color: var(--theme-bg-darkest);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
  cursor: not-allowed;
  opacity: 0.85;   /* slightly dim since the asset doesn't exist yet */
}
.lp-video__play:not(:disabled):hover { transform: scale(1.05); cursor: pointer; opacity: 1; }
.lp-video__chap {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  z-index: 2;
}
.lp-video__chap-btn {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(8, 18, 41, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 500;
}

/* ====== FAQ ====== */
.lp-faq { background: var(--theme-bg-darkest); }

.lp-faq-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lp-faq-item {
  background: var(--theme-bg-dark);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.lp-faq-item summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  list-style: none;
}
.lp-faq-item summary::-webkit-details-marker { display: none; }
.lp-faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-left: auto;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a0aec0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") center/contain no-repeat;
  transition: transform 0.2s ease;
}
.lp-faq-item[open] summary::after { transform: rotate(180deg); }
.lp-faq-item__body {
  padding: 0 24px 22px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--theme-text-muted);
  margin: 0;
}

/* ====== Focus rings (a11y) ====== */
.lp a:focus-visible,
.lp button:focus-visible,
.lp .btn:focus-visible,
.lp-input:focus-visible,
.lp-faq-item summary:focus-visible {
  outline: 2px solid var(--theme-link);
  outline-offset: 2px;
}
