/* Landing page. Layered on top of app.css so the product mockups can reuse the
   real component classes (.choice, .league-row, .prompt…) — they're live UI, not
   images, which means they can never drift from the actual product. */

body.lp {
  background-image:
    radial-gradient(1200px 700px at 8% -8%, rgba(124,92,255,.20), transparent 62%),
    radial-gradient(900px 600px at 96% 4%, rgba(53,200,232,.12), transparent 58%);
  overflow-x: hidden;
}

.lp a { color: inherit; text-decoration: none; }

/* ── Scroll reveal ─────────────────────────────────────────────────────── */
/* Content is visible by DEFAULT. The hidden state only applies under
   `html.reveal-on`, which an inline script in <head> sets when it has confirmed
   JS and IntersectionObserver are both available. If anything goes wrong —
   script blocked, JS error, observer never firing — the page still reads.
   Never make text depend on JS to become visible. */
.reveal-on [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.16,.8,.3,1), transform .7s cubic-bezier(.16,.8,.3,1);
  will-change: opacity, transform;
}
.reveal-on [data-reveal].in { opacity: 1; transform: none; }

/* Motion is decoration here — never a prerequisite for reading the page. */
@media (prefers-reduced-motion: reduce) {
  .reveal-on [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .shot-float, .lp-orb, .lp-marquee-track, .lp-dot { animation: none !important; }
  html { scroll-behavior: auto !important; }
}

html { scroll-behavior: smooth; }

/* ── Header ────────────────────────────────────────────────────────────── */
.lp-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 26px;
  padding: 14px 30px;
  background: rgba(15,17,23,.55);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, padding .3s;
}
.lp-header.stuck {
  background: rgba(15,17,23,.88);
  border-bottom-color: var(--line);
  padding: 9px 30px;
}

.lp-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -.3px; }
.lp-logo .mark, .lp-logo .mark-img {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: grid; place-items: center; font-size: 19px;
  background: linear-gradient(145deg, #1a2744, #0d1526);
  box-shadow: 0 4px 14px rgba(232,57,46,.35);
}
.lp-logo .mark-img { background: none; box-shadow: 0 4px 14px rgba(232,57,46,.35); object-fit: cover; }

.lp-nav { display: flex; gap: 4px; margin-left: 14px; }
.lp-nav a {
  padding: 8px 14px; border-radius: 10px;
  font-size: 14.5px; font-weight: 600; color: var(--muted);
  transition: background .15s, color .15s;
}
.lp-nav a:hover { background: var(--surface); color: var(--text); }

.lp-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lp-signin { font-size: 14.5px; font-weight: 650; color: var(--muted); padding: 8px 6px; }
.lp-signin:hover { color: var(--text); }
.lp-cta { padding: 10px 20px; font-size: 14.5px; }

.lp-menu { position: relative; display: none; }
.lp-menu-btn {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: var(--surface); border: 1px solid var(--line);
}
.lp-menu-btn span {
  display: block; width: 18px; height: 2px; border-radius: 2px;
  background: var(--text); transition: transform .18s, opacity .18s;
}
.lp-menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.lp-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.lp-menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.lp-menu-panel {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 120; width: min(240px, calc(100vw - 28px));
  background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: 16px; box-shadow: var(--shadow);
  padding: 10px; display: flex; flex-direction: column; gap: 2px;
}
.lp-menu-panel[hidden] { display: none !important; }
.lp-menu-panel a {
  padding: 12px 14px; border-radius: 10px;
  font-size: 15px; font-weight: 650; color: var(--muted);
}
.lp-menu-panel a:hover { background: var(--surface); color: var(--text); }
.lp-menu-signin { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; }
.lp-menu-cta { margin-top: 6px; justify-content: center; text-align: center; }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.lp-hero { position: relative; padding: 70px 30px 0; overflow: hidden; }
.lp-hero-inner {
  position: relative; z-index: 2;
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}

.lp-orb {
  position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none;
  animation: drift 18s ease-in-out infinite;
}
.orb-a { width: 460px; height: 460px; background: rgba(124,92,255,.30); top: -120px; left: -140px; }
.orb-b { width: 380px; height: 380px; background: rgba(53,200,232,.18); top: 120px; right: -120px; animation-delay: -7s; }
.orb-c { width: 520px; height: 520px; background: rgba(124,92,255,.22); top: -180px; left: 50%; transform: translateX(-50%); }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(30px, -26px) scale(1.08); }
}
.orb-c { animation: none; }

.lp-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border-radius: 999px; margin-bottom: 22px;
  background: var(--surface); border: 1px solid var(--line-2);
  font-size: 13px; font-weight: 650; color: var(--muted);
}
.lp-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--good);
  box-shadow: 0 0 0 0 rgba(53,208,127,.6); animation: ping 2.2s ease-out infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(53,208,127,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(53,208,127,0); }
  100% { box-shadow: 0 0 0 0 rgba(53,208,127,0); }
}

.lp-hero h1 {
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.06; letter-spacing: -2px; font-weight: 850;
  margin-bottom: 20px; color: #fff;
}
.lp-grad {
  background: linear-gradient(100deg, var(--brand-2), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-count { white-space: nowrap; }
.lp-count b { font-variant-numeric: tabular-nums; color: var(--gold); }

.lp-sub { font-size: 17.5px; line-height: 1.6; color: var(--muted); max-width: 520px; }
.lp-sub-short { display: none; }
.lp-sub-full { display: block; }
.lp-mobile-only { display: none; }

.lp-hero-cta { display: flex; gap: 12px; margin: 30px 0 20px; flex-wrap: wrap; align-items: center; }
.lp-big { padding: 16px 30px; font-size: 16px; }
.lp-textlink {
  font-size: 15px; font-weight: 700; color: var(--muted);
  transition: color .15s;
}
.lp-textlink:hover { color: var(--text); }

.lp-trust { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--faint); }

/* Fake browser frame — the "screenshots" */
.shot {
  border-radius: 16px; overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.03) inset;
}
.shot-chrome {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px; background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.shot-chrome i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.shot-chrome i:first-child { background: #ff5f57; }
.shot-chrome i:nth-child(2) { background: #febc2e; }
.shot-chrome i:nth-child(3) { background: #28c840; }
.shot-chrome span { margin-left: 10px; font-size: 11.5px; color: var(--faint); }
.shot-body { padding: 20px; }
.shot-body.center { text-align: center; }
.shot-h { font-size: 19px; margin: 8px 0 6px; letter-spacing: -.4px; }
.shot-p { font-size: 14px; color: var(--muted); margin-bottom: 16px; }

.shot-float { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-12px) } }

.shot-verdict {
  margin-top: 14px; padding: 13px 15px; border-radius: var(--r);
  display: flex; flex-direction: column; gap: 4px; text-align: left;
}
.shot-verdict.wrong { background: #2c1119; border: 1px solid rgba(255,92,114,.4); }
.shot-verdict b { color: var(--bad); font-size: 15px; }
.shot-verdict .jp { font-size: 15px; }
.shot-verdict i { font-style: italic; font-size: 12.5px; color: var(--muted); }

/* Scrolling phrase strip */
.lp-marquee {
  margin-top: 60px; padding: 16px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.lp-marquee-track {
  display: flex; gap: 42px; width: max-content;
  animation: marquee 42s linear infinite;
}
.lp-marquee-track span {
  font-family: var(--jp); font-size: 21px; color: var(--faint); white-space: nowrap;
}
@keyframes marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* ── Stats strip ───────────────────────────────────────────────────────── */
.lp-stats {
  max-width: 940px; margin: 60px auto 0; padding: 0 30px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center;
}
.lp-stat b {
  display: block; font-size: 40px; font-weight: 850; letter-spacing: -1.5px;
  background: linear-gradient(160deg, var(--text), var(--muted));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.lp-stat span { font-size: 13px; color: var(--faint); }

/* ── Sections ──────────────────────────────────────────────────────────── */
.lp-section { max-width: 1180px; margin: 0 auto; padding: 100px 30px 0; }
.lp-narrow { max-width: 820px; }
.lp-head { text-align: center; margin-bottom: 48px; }
.lp-eyebrow {
  display: inline-block; margin-bottom: 12px;
  font-size: 12px; font-weight: 750; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--brand-2);
}
.lp-section h2 { font-size: clamp(27px, 3.4vw, 38px); letter-spacing: -1.1px; line-height: 1.15; }
.lp-lead { font-size: 17px; line-height: 1.65; color: var(--muted); margin-top: 14px; }

/* Comparison */
.lp-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.lp-col { padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.lp-col h3 { font-size: 15px; margin-bottom: 14px; }
.lp-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.lp-col li { font-size: 14.5px; color: var(--muted); padding-left: 26px; position: relative; line-height: 1.45; }
.bad-col li::before { content: '✕'; position: absolute; left: 0; color: var(--bad); font-weight: 800; }
.good-col { border-color: rgba(53,208,127,.35); background: linear-gradient(160deg, rgba(53,208,127,.08), transparent); }
.good-col li::before { content: '✓'; position: absolute; left: 0; color: var(--good); font-weight: 800; }

/* Steps */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lp-step {
  padding: 28px 24px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); position: relative;
}
.lp-step-n {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 12px; margin-bottom: 16px;
  background: linear-gradient(145deg, var(--brand), #4b31c9);
  font-weight: 850; font-size: 17px;
}
.lp-step h3 { font-size: 17px; margin-bottom: 8px; letter-spacing: -.3px; }
.lp-step p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* Alternating features */
.lp-feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  margin-bottom: 90px;
}
.lp-feature.reverse .lp-feature-copy { order: 2; }
.lp-tag {
  display: inline-block; margin-bottom: 14px; padding: 5px 13px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line-2);
  font-size: 12.5px; font-weight: 700; color: var(--brand-2);
}
.lp-feature h3 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.9px; line-height: 1.2; margin-bottom: 14px; }
.lp-feature p { font-size: 15.5px; line-height: 1.65; color: var(--muted); margin-bottom: 12px; }
.lp-note {
  font-size: 13.5px !important; color: var(--faint) !important;
  border-left: 2px solid var(--line-2); padding-left: 13px;
}

/* Mini feature grid */
.lp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 10px; }
.lp-mini {
  padding: 24px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .2s, border-color .2s;
}
.lp-mini:hover { transform: translateY(-4px); border-color: var(--line-2); }
.lp-mini-ico { font-size: 27px; display: block; margin-bottom: 12px; }
.lp-mini h4 { font-size: 16px; margin-bottom: 7px; letter-spacing: -.3px; }
.lp-mini p { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* Curriculum path */
.lp-path { display: flex; flex-direction: column; gap: 8px; }
.lp-path-row {
  display: grid; grid-template-columns: 46px 190px 1fr; gap: 14px; align-items: center;
  padding: 14px 18px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .18s, border-color .18s;
}
.lp-path-row:hover { transform: translateX(5px); border-color: var(--brand); }
.lp-path-ico {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line-2);
  font-family: var(--jp); font-size: 17px;
}
.lp-path-row b { font-size: 15px; }
.lp-path-row i { font-style: normal; font-size: 13.5px; color: var(--faint); }

/* Tracks */
.lp-tracks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-track {
  position: relative; padding: 26px 24px;
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  transition: transform .2s, border-color .2s;
}
.lp-track:hover { transform: translateY(-4px); border-color: var(--line-2); }
.lp-track.featured {
  border-color: var(--brand);
  background: linear-gradient(165deg, rgba(124,92,255,.13), var(--surface) 65%);
}
.lp-track.soon { opacity: .72; border-style: dashed; }
.lp-track-flag {
  position: absolute; top: -11px; left: 24px;
  padding: 4px 12px; border-radius: 999px;
  background: linear-gradient(145deg, var(--brand), #4b31c9);
  font-size: 11px; font-weight: 800; letter-spacing: .4px;
}
.lp-track-ico { font-size: 30px; display: block; margin-bottom: 12px; }
.lp-track h3 { font-size: 18px; letter-spacing: -.4px; margin-bottom: 4px; }
.lp-track-line { font-size: 13px !important; color: var(--brand-2) !important; font-weight: 650; margin-bottom: 10px !important; }
.lp-track p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* Pricing */
.lp-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); gap: 18px; justify-content: center; }
.lp-plan {
  position: relative; padding: 28px 22px;
  border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.lp-plan.featured {
  border-color: var(--brand);
  background: linear-gradient(165deg, rgba(124,92,255,.13), var(--surface) 60%);
  box-shadow: 0 20px 50px rgba(124,92,255,.16);
}
.lp-plan-flag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 5px 15px; border-radius: 999px; white-space: nowrap;
  background: linear-gradient(145deg, var(--brand), #4b31c9);
  font-size: 11.5px; font-weight: 800; letter-spacing: .5px;
}
.lp-plan h3 { font-size: 19px; margin-bottom: 6px; }
.lp-plan-tag { font-size: 13px; color: var(--faint); margin: 0 0 14px; }
.lp-price { font-size: 38px; font-weight: 850; letter-spacing: -2px; margin-bottom: 8px; }
.lp-price span { font-size: 14px; font-weight: 600; color: var(--faint); letter-spacing: 0; }
.lp-plan .plan-list { margin-bottom: 24px; flex: 1; }
.lp-plan-note { margin-top: 12px; text-align: center; line-height: 1.5; }

/* Apps coming soon */
.lp-apps .lp-head { margin-bottom: 28px; }
.lp-store-row {
  display: flex; flex-wrap: wrap; gap: 18px;
  justify-content: center; align-items: center;
}
.lp-store-badge {
  position: relative; opacity: .88;
  filter: grayscale(.15);
  user-select: none;
}
.lp-store-badge img { display: block; height: 53px; width: auto; }
.lp-soon {
  position: absolute; top: -10px; right: -8px;
  padding: 4px 9px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line-2);
  font-size: 11px; font-weight: 800; letter-spacing: .3px; color: var(--gold);
  box-shadow: 0 6px 16px rgba(0,0,0,.35);
}
.lp-apps-note { text-align: center; margin-top: 22px; max-width: 420px; margin-left: auto; margin-right: auto; }
.lp-install-steps {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  max-width: 640px; margin: 28px auto 0; text-align: left;
}
.lp-install-steps div {
  padding: 16px 18px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line);
}
.lp-install-steps strong { display: block; margin-bottom: 6px; font-size: 14px; }
.lp-install-steps p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
@media (max-width: 560px) {
  .lp-install-steps { grid-template-columns: 1fr; }
}

/* FAQ */
.lp-faq { display: flex; flex-direction: column; gap: 10px; }
.lp-faq details {
  border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
  overflow: hidden;
}
.lp-faq summary {
  padding: 17px 20px; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 15.5px;
  display: flex; align-items: center; gap: 12px;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after {
  content: '+'; margin-left: auto; font-size: 20px; color: var(--faint);
  transition: transform .25s;
}
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq summary:hover { background: var(--surface-2); }
.lp-faq p { padding: 0 20px 18px; font-size: 14.5px; line-height: 1.65; color: var(--muted); }

/* Final CTA */
.lp-final {
  position: relative; overflow: hidden;
  margin-top: 40px; padding: 56px 30px 72px;
  text-align: center; border-top: 1px solid var(--line);
}
/* Must stay absolute — `.lp-final > div` used to override position:absolute and
   leave the 420px orb in normal flow (huge empty gap above the CTA). */
.lp-final > .lp-orb {
  position: absolute;
  width: 420px; height: 420px;
  top: -160px; left: 50%;
  transform: translateX(-50%);
  opacity: .75;
  margin: 0;
  z-index: 0;
}
.lp-final > .lp-final-copy {
  position: relative; z-index: 2; max-width: 640px; margin: 0 auto;
}
.lp-final h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -1.4px; margin-bottom: 14px; }
.lp-final .lp-lead { margin-bottom: 30px; }

/* Footer */
.lp-footer { border-top: 1px solid var(--line); padding: 34px 30px 50px; }
.lp-foot-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
}
.lp-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.lp-footer nav a { font-size: 14px; color: var(--muted); }
.lp-footer nav a:hover { color: var(--text); }
.lp-foot-inner .tiny { margin-left: auto; font-family: var(--jp); }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .lp-hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .lp-feature { grid-template-columns: 1fr; gap: 30px; margin-bottom: 64px; }
  .lp-feature.reverse .lp-feature-copy { order: 0; }
  .lp-grid, .lp-steps, .lp-tracks { grid-template-columns: 1fr 1fr; }
  .lp-plans { grid-template-columns: minmax(0, 360px); gap: 28px; }
}

@media (max-width: 860px) {
  .lp-nav { display: none; }
  .lp-signin, .lp-cta { display: none; }
  .lp-menu { display: block; }
  .lp-logo span { display: inline; }
}

@media (max-width: 720px) {
  .lp-header { padding: 11px 16px; gap: 12px; }
  .lp-hero { padding: 36px 16px 0; }
  .lp-desk-only { display: none !important; }
  .lp-mobile-only { display: inline-flex; }
  .lp-sub-full { display: none; }
  .lp-sub-short {
    display: block;
    font-size: 16px; line-height: 1.45;
    max-width: none; margin-bottom: 0;
  }
  .lp-hero h1 {
    font-size: clamp(32px, 9vw, 42px);
    letter-spacing: -1.4px;
    margin-bottom: 12px;
  }
  .lp-section { padding: 72px 16px 0; }
  .lp-stats { grid-template-columns: repeat(2, 1fr); gap: 26px; padding: 0 16px; }
  .lp-compare, .lp-grid, .lp-steps, .lp-tracks { grid-template-columns: 1fr; }
  .lp-path-row { grid-template-columns: 38px 1fr; }
  .lp-path-row i { grid-column: 2; }
  .lp-final { padding: 44px 16px 56px; margin-top: 28px; }
  .lp-foot-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .lp-foot-inner .tiny { margin-left: 0; }
  .lp-hero-cta { flex-direction: column; align-items: stretch; gap: 14px; margin: 22px 0 0; }
  .lp-hero-cta .btn { width: 100%; }
  .lp-textlink { justify-content: center; text-align: center; }
  .shot-body { padding: 14px; }
  .lp-hero-shot { display: none; }
}
