/* The sign-in page (index.html) and the features page (welcome.html). Colours come only from the app's tokens
   (app.css), so both pages follow light and dark mode; layout falls to one column on phones. */
.lp { --lp-grad-a: var(--brand); --lp-grad-b: var(--net); }
.lp main { padding-top: 0; }
.lp-band { position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background: radial-gradient(900px 420px at 12% -10%, var(--brand-soft), transparent 70%), radial-gradient(700px 380px at 95% 10%, var(--diff-extra-bg), transparent 70%), var(--bg); }
.lp-hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 44px; align-items: center; padding-top: 56px; padding-bottom: 52px; }   /* (the .wrap keeps its side gutter) */
.lp-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-2); font-size: var(--fs-sm); font-weight: 600; box-shadow: var(--shadow-1); }
.lp-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok-solid); box-shadow: 0 0 0 4px var(--ok-bg); }
.lp-h1 { font-size: clamp(2rem, 4.2vw, 3.15rem); line-height: 1.08; letter-spacing: -.035em; margin: 18px 0 14px; }
.lp-h1 em { font-style: normal; background: linear-gradient(90deg, var(--lp-grad-a), var(--lp-grad-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-sub { font-size: 1.12rem; color: var(--muted); max-width: 560px; margin: 0 0 22px; }
.lp-points { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.lp-points li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.lp-points b { color: var(--ink); }
.lp-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--mod-bg); color: var(--mod-text); }
.lp-ic svg { width: 18px; height: 18px; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.lp-note { font-size: var(--fs-sm); color: var(--muted); margin-top: 12px; }

/* sign-in card */
.lp-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow-pop); }
.lp-card h2 { font-size: 1.4rem; margin: 0 0 6px; }
.lp-card .g-box { margin: 18px 0 8px; }
.lp-trust { display: grid; gap: 8px; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--ink-2); list-style: none; }
.lp-trust li::before { content: '✓'; color: var(--ok-text); font-weight: 700; margin-right: 8px; }

/* the exam-console picture with a line being typed */
.lp-mock { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--x-border); background: var(--x-page); box-shadow: var(--shadow-pop); }
.lp-mock-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; background: var(--x-bar); color: var(--x-bar-ink); font-size: var(--fs-sm); font-weight: 600; }
.lp-mock-bar span { font-variant-numeric: tabular-nums; opacity: .9; }
.lp-mock-body { padding: 16px; display: grid; gap: 12px; }
.lp-mock-text { background: var(--x-box); border: 1px solid var(--x-border); padding: 12px 14px; color: var(--x-ink); font-size: 15px; line-height: 1.7; min-height: 92px; }
.lp-mock-type { background: var(--x-box); border: 1px solid var(--x-border); padding: 10px 14px; color: var(--x-ink); font-size: 15px; min-height: 46px; }
.lp-caret { display: inline-block; width: 2px; height: 1.1em; vertical-align: -2px; background: var(--brand); margin-left: 1px; animation: lpBlink 1s steps(1) infinite; }
@keyframes lpBlink { 50% { opacity: 0; } }
.lp-mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lp-mock-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.lp-mock-stats b { display: block; font-size: 1.25rem; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.lp-mock-stats small { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.lp-mock-stats .g b { color: var(--speed); } .lp-mock-stats .n b { color: var(--net); } .lp-mock-stats .a b { color: var(--acc); }
.lp-float { position: absolute; right: -10px; bottom: 18px; transform: rotate(-2deg); background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; box-shadow: var(--shadow-pop); font-size: var(--fs-sm); max-width: 220px; }
.lp-float .kbd { margin: 0 2px; }

/* sections */
.lp-section { padding: 56px 0 8px; }
.lp-section > .wrap > h2, .lp-h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); letter-spacing: -.025em; margin: 0 0 8px; }
.lp-lead { color: var(--muted); font-size: 1.05rem; max-width: 680px; margin: 0 0 26px; }
.lp-kicker { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-text); margin: 0 0 8px; }
.lp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 28px; }
.lp-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-1); }
.lp-stat b { display: block; font-size: 1.85rem; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lp-stat span { color: var(--muted); font-size: var(--fs-sm); }

.lp-mods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lp-mod { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow-1); overflow: hidden; }
.lp-mod::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--mod); }
.lp-mod .step { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mod-text); }
.lp-mod h3 { margin: 6px 0 8px; }
.lp-mod p { margin: 0; color: var(--ink-2); font-size: var(--fs-sm); }
.lp-mod .count { display: inline-block; margin-top: 12px; padding: 3px 10px; border-radius: var(--r-pill); background: var(--mod-bg); color: var(--mod-text); font-size: var(--fs-xs); font-weight: 700; }

.lp-split { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 36px; align-items: center; }
.lp-split.rev { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.lp-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.lp-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; }
.lp-list b { display: block; color: var(--ink); }
.lp-list span { color: var(--muted); font-size: var(--fs-sm); }
.lp-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow-1); min-width: 0; }
.lp-panel h3 { font-size: 1rem; margin: 0 0 10px; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.lp-panel h3 .tag { font-weight: 600; }
.lp-keytbl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.lp-keytbl > div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--surface-2); }
.lp-keytbl small { display: block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.lp-keytbl .w small { color: var(--bad-text); } .lp-keytbl .s small { color: var(--warn-text); } .lp-keytbl .f small { color: var(--ok-text); }
.lp-keytbl p { margin: 4px 0; display: flex; justify-content: space-between; gap: 6px; font-size: var(--fs-sm); }
.lp-keytbl p span { color: var(--muted); font-variant-numeric: tabular-nums; }

.lp-steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lp-steps > div { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 20px 18px 62px; box-shadow: var(--shadow-1); }
.lp-steps > div::before { counter-increment: s; content: counter(s); position: absolute; left: 18px; top: 18px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: var(--brand-ink); font-weight: 800; }
.lp-steps b { display: block; margin-bottom: 4px; }
.lp-steps span { color: var(--ink-2); font-size: var(--fs-sm); }

.lp-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.lp-rule { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.lp-rule b { display: block; } .lp-rule span { color: var(--muted); font-size: var(--fs-sm); }

/* plans */
.lp-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.lp-plan { position: relative; display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 20px 20px; box-shadow: var(--shadow-1); }
.lp-plan.best { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow-pop); }
.lp-plan .ribbon { position: absolute; top: -11px; left: 18px; padding: 3px 10px; border-radius: var(--r-pill); background: var(--brand); color: var(--brand-ink); font-size: var(--fs-xs); font-weight: 800; letter-spacing: .04em; }
.lp-plan h3 { margin: 0; font-size: 1.1rem; }
.lp-plan .price { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-top: 6px; }
.lp-plan .price s { font-size: 1rem; font-weight: 600; color: var(--faint); margin-left: 6px; letter-spacing: 0; }
.lp-plan .per { color: var(--muted); font-size: var(--fs-sm); }
.lp-plan .blurb { color: var(--ink-2); font-size: var(--fs-sm); margin: 6px 0 12px; }
.lp-plan .btn { margin-top: auto; }
.lp-plan .save { align-self: flex-start; padding: 2px 9px; border-radius: var(--r-pill); background: var(--ok-bg); color: var(--ok-text); font-size: var(--fs-xs); font-weight: 700; }
.lp-reward { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 14px; margin: 0 0 18px;
  background: linear-gradient(90deg, var(--pb-bg), var(--surface)); border: 1px solid var(--line); color: var(--ink); }
.lp-reward b { color: var(--pb-text); }

.lp-faq { display: grid; gap: 10px; max-width: 860px; }
.lp-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.lp-faq summary { font-weight: 650; }
.lp-faq p { color: var(--ink-2); margin: 8px 0 2px; }
.lp-final { margin: 56px 0 0; padding: 34px; border-radius: 20px; text-align: center; color: var(--brand-ink);
  background: linear-gradient(120deg, var(--lp-grad-a), var(--lp-grad-b)); box-shadow: var(--shadow-pop); }
.lp-final h2 { color: inherit; margin: 0 0 8px; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.lp-final p { margin: 0 0 18px; opacity: .92; }
.lp-final .btn { background: var(--surface); color: var(--ink); border-color: transparent; }
.lp-sample { font-size: var(--fs-xs); color: var(--muted); }

@media (max-width: 960px) {
  .lp-mods, .lp-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .lp-hero, .lp-split, .lp-split.rev { grid-template-columns: 1fr; gap: 28px; }
  .lp-hero { padding-top: 36px; padding-bottom: 34px; }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-float { display: none; }
}
@media (max-width: 560px) {
  .lp-mods, .lp-plans { grid-template-columns: 1fr; }
  .lp-keytbl { grid-template-columns: 1fr; }
  .lp-card { padding: 20px; }
  .lp-final { padding: 26px 18px; }
}
@media (prefers-reduced-motion: reduce) { .lp-caret { animation: none; } }
