/* ============================================================================
   OnLearn — Landing-only layer (v2).
   Structure follows the onlearn-monorepo public page (hero + outcome stats,
   learner-logo strip, learning-journey fan, philosophy quote, feature grid,
   comparison, FAQ, closing CTA) re-skinned in the LMS identity: tokens.css
   violet→cyan, Manrope display type, pill CTAs, cinematic stage bands.
   Layers on tokens.css; does not redefine app.css.
   ========================================================================== */

.lp { --lp-stage: #080A0F; position: relative; }

/* ---- stage band (hero + closing CTA): near-black cinematic ---- */
.lp-stage { position: relative; background: var(--lp-stage); overflow: hidden; }
.lp-stage::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 78%;
  background: radial-gradient(60% 60% at 50% 0%, rgba(124,58,237,.30), transparent 70%),
              radial-gradient(50% 50% at 72% 28%, rgba(6,182,212,.18), transparent 70%);
  filter: blur(24px); pointer-events: none; z-index: 0;
}
.lp-stage > .container { position: relative; z-index: 1; }

/* ---- oversized display headings ---- */
.lp-display {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.5rem, 6.5vw, 5.5rem); line-height: 1.03; letter-spacing: -.035em;
  margin: 0;
}
.lp-display--sm { font-size: clamp(2rem, 4.5vw, 3.5rem); }
.lp-eyebrow {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .14em;
  font-size: var(--fs-xs); color: var(--text-muted); margin: 0 0 var(--sp-4);
}
.lp-eyebrow--grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-sec-sub { color: var(--text-muted); margin: var(--sp-4) 0 0; line-height: 1.55; }

/* ---- pill buttons (fully rounded) ---- */
.btn--pill { border-radius: var(--r-pill); }
.btn--pill.btn--glass { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.btn--pill.btn--glass:hover { background: var(--surface-2); border-color: var(--border-strong); }

/* ---- generous vertical rhythm + shared section header ----
   Uniform orientation (user decision, Aug 2026): every section is CENTERED —
   heads, subs, and content columns all share one axis, like the monorepo page. */
.lp-section { padding: var(--sp-24) 0; }
.lp-section--tight { padding: var(--sp-16) 0; }
.lp-sec-head { margin: 0 auto var(--sp-10); max-width: 60ch; text-align: center; }
.lp-sec-head .lp-sec-sub { margin-inline: auto; max-width: 52ch; }

/* ---- nav (sticky, blur) — reuses app.css .lp-nav; ensure z above stage aura ---- */
.lp-nav { position: sticky; top: 0; z-index: 40; }
.lp-nav__more { display: flex; align-items: center; gap: var(--sp-6); }
@media (max-width: 560px) {
  .lp-nav__links { gap: var(--sp-3); }
  .lp-nav__more { display: none; }
}

/* ---- hero ---- */
.lp-hero { padding: var(--sp-24) 0 var(--sp-20); text-align: center; }
.lp-hero .lp-display { max-width: 16ch; margin-inline: auto; }
.lp-hero__sub { font-size: var(--fs-lg); color: var(--text-muted); max-width: 62ch; margin: var(--sp-6) auto var(--sp-8); line-height: 1.55; }
.lp-hero__cta { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }
.lp-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--border-strong); font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: var(--sp-6); }
.lp-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); animation: live-dot 2s var(--ease) infinite; }

/* outcome stats inside the hero (monorepo trio: retention / speed / availability) */
.lp-herostats { display: flex; justify-content: center; gap: clamp(var(--sp-8), 7vw, var(--sp-20)); margin-top: var(--sp-16); flex-wrap: wrap; }
.lp-herostat { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); }
.lp-herostat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 4.5vw, 2.75rem); line-height: 1; }
.lp-herostat__lbl { font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); }

/* ---- learner-logo strip (monorepo moving strip, chip-backed for dark bg) ---- */
.lp-logos {
  overflow: hidden; margin-top: var(--sp-6);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.lp-logos__track { display: flex; align-items: center; gap: var(--sp-12); width: max-content; padding: var(--sp-2) 0; animation: lp-marquee 28s linear infinite; }
.lp-logos__track img {
  height: 40px; width: auto; padding: 7px 16px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.88);
  filter: grayscale(1); opacity: .72;
  transition: filter var(--dur-2) var(--ease), opacity var(--dur-2) var(--ease);
}
.lp-logos:hover .lp-logos__track { animation-play-state: paused; }
.lp-logos__track img:hover { filter: none; opacity: 1; }
@keyframes lp-marquee { to { transform: translateX(-50%); } }

/* ---- learning journey: the 5-card fan (monorepo flower, CSS-only) ---- */
.lp-fan { position: relative; height: 340px; }
.lp-fan__card {
  position: absolute; left: 50%; top: 8px; width: 232px; margin-left: -116px;
  background: linear-gradient(165deg, rgba(124,58,237,.14), var(--surface) 62%);
  border: 1px solid var(--border-strong); border-radius: var(--r-lg);
  padding: var(--sp-6); min-height: 280px; display: flex; flex-direction: column; gap: var(--sp-2);
  box-shadow: var(--shadow-2);
  transform: translate(calc(var(--i) * 30px), calc(var(--y, 0px) * .35)) rotate(calc(var(--i) * 2.5deg));
  transition: transform var(--dur-3) var(--ease-spring);
}
.lp-fan__card:nth-child(even) { background: linear-gradient(165deg, rgba(6,182,212,.13), var(--surface) 62%); }
.lp-fan__card:nth-child(1), .lp-fan__card:nth-child(5) { --y: 26px; z-index: 8; }
.lp-fan__card:nth-child(2), .lp-fan__card:nth-child(4) { --y: 9px; z-index: 9; }
.lp-fan__card:nth-child(3) { --y: 0px; z-index: 10; }
.lp-fan:hover .lp-fan__card, .lp-fan:focus-within .lp-fan__card {
  transform: translate(calc(var(--i) * 108%), var(--y, 0px)) rotate(calc(var(--i) * 3deg));
}
.lp-fan__ic { width: 44px; height: 44px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border-strong); color: var(--violet-300); }
.lp-fan__card:nth-child(even) .lp-fan__ic { color: var(--cyan-300); }
.lp-fan__no { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-faint); margin-top: var(--sp-2); }
.lp-fan__card h3 { margin: 0; font-size: var(--fs-lg); }
.lp-fan__card p { margin: 0; color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.5; }
@media (max-width: 1080px), (hover: none) {
  .lp-fan { height: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--sp-4); }
  .lp-fan__card { position: static; margin-left: 0; width: auto; min-height: 0; transform: none !important; }
}

/* ---- philosophy quote (same background as every other section — uniform) ---- */
.lp-quote { text-align: center; }
.lp-quote__ic { width: 40px; height: 40px; color: var(--accent-text); margin-bottom: var(--sp-5); }
.lp-quote blockquote {
  margin: 0 auto; max-width: 44ch;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem); line-height: 1.4; color: var(--text);
}
.lp-quote__by { font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .12em; color: var(--text-faint); margin: var(--sp-6) 0 0; }

/* ---- feature grid: what makes OnLearn different ---- */
.lp-diff { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.lp-diff__card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-3);
  transition: transform var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.lp-diff__card:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow-2); }
.lp-diff__ic { width: 44px; height: 44px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border-strong); color: var(--violet-300); }
.lp-diff__ic--cyan { color: var(--cyan-300); }
.lp-diff__card h3 { margin: 0; font-size: var(--fs-md); }
.lp-diff__card p { margin: 0; color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.55; }
@media (max-width: 1024px) { .lp-diff { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .lp-diff { grid-template-columns: 1fr; } }

/* ---- comparison: traditional vs OnLearn ---- */
.lp-compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); align-items: stretch; }
.lp-compare__col { border-radius: var(--r-lg); padding: var(--sp-8); border: 1px solid var(--border); background: var(--surface); }
.lp-compare__col h3 { margin: 0 0 var(--sp-5); font-size: var(--fs-lg); }
.lp-compare__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-4); }
.lp-compare__col li { display: flex; align-items: flex-start; gap: var(--sp-3); color: var(--text-muted); line-height: 1.45; }
.lp-compare__col li i, .lp-compare__col li svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.lp-compare__col--them li i, .lp-compare__col--them li svg { color: var(--danger); }
.lp-compare__col--us { border-color: rgba(52,211,153,.35); background: linear-gradient(180deg, rgba(52,211,153,.07), var(--surface) 70%); }
.lp-compare__col--us li { color: var(--text); }
.lp-compare__col--us li i, .lp-compare__col--us li svg { color: var(--success); }
@media (max-width: 820px) { .lp-compare { grid-template-columns: 1fr; } }

/* ---- FAQ (native details/summary) — centered column, readable left text ---- */
.lp-faq { max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; gap: var(--sp-3); text-align: left; }
.lp-faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.lp-faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  cursor: pointer; list-style: none; padding: var(--sp-5) var(--sp-6);
  font-weight: 600; color: var(--text);
}
.lp-faq__item summary::-webkit-details-marker { display: none; }
.lp-faq__item summary i, .lp-faq__item summary svg { width: 18px; height: 18px; flex: none; color: var(--text-faint); transition: transform var(--dur-2) var(--ease); }
.lp-faq__item[open] summary i, .lp-faq__item[open] summary svg { transform: rotate(180deg); color: var(--accent-text); }
.lp-faq__item[open] summary { border-bottom: 1px solid var(--border); }
.lp-faq__item p { margin: 0; padding: var(--sp-5) var(--sp-6); color: var(--text-muted); line-height: 1.6; }

/* ---- footer links ---- */
.lp-foot__links { display: flex; gap: var(--sp-5); }
.lp-foot__links a { color: var(--text-muted); font-size: var(--fs-sm); }
.lp-foot__links a:hover { color: var(--text); }
@media (max-width: 640px) { .lp-foot .spread { flex-direction: column; gap: var(--sp-4); text-align: center; } }

/* scroll-reveal + count-up are shared (elevate.css + shell.js). Landing only
   needs to silence its own ambient animations under reduced-motion. */
@media (prefers-reduced-motion: reduce) {
  .lp-tag .dot { animation: none; }
  .lp-logos__track { animation: none; }
  .lp-fan__card { transition: none; }
}
