/* ============================================================================
   OnLearn — Landing-only cinematic layer.
   Layers on tokens.css; does not redefine app.css. Borrows usekaya.ai structure
   (stage bands, oversized display type, pill CTAs, scroll reveals) in OnLearn's
   violet→cyan identity. Progressive enhancement: reveals only hide when <html>
   has .lp-js (added by islands/landing.js); reduced-motion shows final state.
   ========================================================================== */

.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 (Kaya signature) ---- */
.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; }

/* ---- 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 ---- */
.lp-section { padding: var(--sp-24) 0; }
.lp-section--tight { padding: var(--sp-20) 0; }
.lp-sec-head { margin-bottom: var(--sp-10); max-width: 28ch; }

/* ---- 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: 18ch; margin-inline: auto; }
.lp-hero__sub { font-size: var(--fs-lg); color: var(--text-muted); max-width: 56ch; margin: var(--sp-6) auto var(--sp-8); line-height: 1.5; }
.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: rgba(255,255,255,.05); 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; }

/* ---- meet your AI mentor (Kaya 'This is Amber' layout, generic) ---- */
.lp-mentor { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--sp-8); text-align: center; }
.lp-mentor__side { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.75rem, 4vw, 3rem); color: var(--text); margin: 0; text-align: right; }
.lp-mentor__side--r { text-align: left; }
.lp-mentor__orb {
  width: clamp(160px, 22vw, 280px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 32% 30%, rgba(124,58,237,.55), rgba(6,182,212,.25) 60%, transparent 72%);
  border: 1px solid var(--border-strong); box-shadow: var(--glow-violet); color: #fff;
}
.lp-mentor__orb i, .lp-mentor__orb svg { width: 44px; height: 44px; }
.lp-mentor__pitch { display: block; max-width: 60ch; margin: var(--sp-8) auto 0; text-align: center; color: var(--text-muted); font-size: var(--fs-lg); line-height: 1.6; }
@media (max-width: 640px) {
  .lp-mentor { grid-template-columns: 1fr; }
  .lp-mentor__side, .lp-mentor__side--r { text-align: center; }
}
@media (prefers-reduced-motion: no-preference) {
  .lp-mentor__orb { animation: float-soft 6s var(--ease) infinite; }
}

/* ---- how it works ---- */
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.lp-step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-8); }
.lp-step__no { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--text-faint); }
.lp-step__ic { width: 48px; height: 48px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border-strong); color: var(--violet-300); margin: var(--sp-4) 0; }
.lp-step h3 { margin: 0 0 var(--sp-2); }
.lp-step p { color: var(--text-muted); margin: 0; line-height: 1.55; }
@media (max-width: 820px) { .lp-steps { grid-template-columns: 1fr; } }

/* ---- outcome stats ---- */
.lp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); padding: var(--sp-10); }
.lp-stat { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); text-align: center; }
.lp-stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 5vw, var(--fs-4xl)); line-height: 1; }
.lp-stat__lbl { font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); }
@media (max-width: 640px) { .lp-stats { grid-template-columns: repeat(2, 1fr); } }

/* ---- track showcase ---- */
.lp-tracks { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
.lp-track { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-8); 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-track:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow-2); }
.lp-track__ic { width: 48px; height: 48px; 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-track h3 { margin: var(--sp-2) 0 0; font-size: var(--fs-xl); }
.lp-track p { color: var(--text-muted); margin: 0; line-height: 1.55; }
.lp-track__build { font-size: var(--fs-sm); }
.lp-track__build span { color: var(--text-faint); font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; }
.lp-track .btn { align-self: flex-start; margin-top: auto; }
@media (max-width: 820px) { .lp-tracks { grid-template-columns: 1fr; } }

/* ---- interactive tutor demo (scripted) ---- */
.lp-chat { max-width: 720px; margin-inline: auto; 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-4); }
.lp-msg { display: flex; flex-direction: column; gap: 4px; max-width: 80%; }
.lp-msg--user { align-self: flex-end; align-items: flex-end; }
.lp-msg--ai { align-self: flex-start; }
.lp-msg__who { font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); }
.lp-msg__txt { padding: 10px var(--sp-4); border-radius: var(--r-md); line-height: 1.5; }
.lp-msg--user .lp-msg__txt { background: var(--grad); color: #fff; }
.lp-msg--ai .lp-msg__txt { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
.has-js .lp-chat[data-typewriter] .lp-msg { opacity: 0; }
.has-js .lp-chat[data-typewriter] .lp-msg.is-shown { opacity: 1; transition: opacity .3s var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .has-js .lp-chat[data-typewriter] .lp-msg { opacity: 1 !important; } }

/* ---- 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, .lp-mentor__orb { animation: none; }
}
