/* Public landing page (public/js/pages/landing.js). Everything is scoped to .landing. */

/* Fredoka's @font-face is in app.css. */

html.landing-page { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html.landing-page { scroll-behavior: auto; } }

.landing {
  --lp-ink: #16171d;
  --lp-paper: #f5f5f7;
  --lp-grey: #f3f4f6;
  --lp-line: #e3e5ea;
  --lp-body: #4a4c58;
  --lp-soft: #c9cbd6;
  --lp-faint: #9a9caa;
  --lp-yellow: #f5c542;
  --lp-coral: #ff6b4a;
  --lp-rust: #b8452c;
  --lp-display: 'Fredoka', var(--font);
  color: var(--lp-ink);
  background: var(--lp-grey);
  font: 17px/1.55 var(--font);
  overflow-x: hidden;
}
.landing h1, .landing h2, .landing h3 { font-family: var(--lp-display); font-weight: 600; margin: 0; }
.landing h2 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.08; letter-spacing: -0.01em; }
.landing h3 { font-size: 22px; line-height: 1.25; }
.landing p { margin: 0; }
.landing a { color: inherit; }
.landing svg { width: 1em; height: 1em; flex-shrink: 0; }

.lp-wrap { max-width: 1120px; margin: 0 auto; }
.lp-section { padding: 96px 20px; }
.lp-section.grey { background: var(--lp-grey); }
.lp-section.white { background: #fff; }
.lp-section.dark, .lp-hero, .lp-footer { background: var(--lp-ink); color: var(--lp-paper); }
.lp-eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lp-rust); margin-bottom: 12px !important; }
.dark .lp-eyebrow { color: var(--lp-yellow); }
.lp-hi { color: var(--lp-yellow); }
.narrow { max-width: 720px; }
.lp-body { margin-top: 20px !important; font-size: 18px; line-height: 1.6; color: var(--lp-body); }
.dark .lp-body { color: var(--lp-soft); }
.lp-body.strong { color: var(--lp-paper); font-weight: 600; }
.lp-center { text-align: center; max-width: 640px; margin: 0 auto; }
.lp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lp-coral); display: inline-block; }

/* Buttons */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 14px;
  font-weight: 700; font-size: 17px; text-decoration: none; border: 1.5px solid transparent;
}
.lp-btn svg { width: 18px; height: 18px; }
.lp-btn.accent { background: var(--lp-yellow); color: var(--lp-ink); }
.lp-btn.accent:hover { background: #ffd35c; }
.lp-btn.outline { border-color: #4a4c5a; color: var(--lp-paper); }
.lp-btn.outline:hover { border-color: var(--lp-soft); }
.lp-btn.dark { background: var(--lp-ink); color: var(--lp-paper); }
.lp-btn.dark:hover { background: #2b2d38; }
.lp-btn.light { background: var(--lp-paper); color: var(--lp-ink); }
.lp-btn.sm { min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 15px; }
.lp-btn.block { display: flex; width: 100%; margin-top: auto; }

/* Logo tiles: the logo has black outlines, so it sits on a light tile on dark grounds. */
.lp-logo { display: inline-flex; align-items: center; justify-content: center; background: var(--lp-paper); flex-shrink: 0; }
.lp-logo img { display: block; height: 84%; width: auto; }
.lp-logo.sm { width: 48px; height: 48px; border-radius: 12px; }
.lp-logo.md { width: 56px; height: 56px; border-radius: 14px; }
.lp-logo.lg { width: 220px; height: 220px; border-radius: 36px; }

/* Hero */
.lp-hero { padding: 0 20px 88px; }
.lp-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.lp-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--lp-display); font-weight: 600; font-size: 22px; }
/* The BotBuilders wordmark: their brand pixel font (Minecraftia), blue with a black outline. Only for the name itself. */
@font-face { font-family: 'Minecraftia'; src: url('/fonts/minecraftia.ttf') format('truetype'); font-display: swap; }
.bb-wordmark { font-family: 'Minecraftia', ui-monospace, monospace; font-weight: 400; font-size: 24px; line-height: 1; padding-top: 0.3em; color: #18a0f0; -webkit-text-stroke: 4px #0b0b0c; paint-order: stroke fill; letter-spacing: 0.02em; }
.lp-navlinks { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; font-size: 15px; font-weight: 600; }
.lp-navlinks > a:not(.lp-btn) { color: var(--lp-soft); text-decoration: none; padding: 10px 0; }
.lp-navlinks > a:not(.lp-btn):hover { color: var(--lp-paper); }
.lp-split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.lp-split > * { flex: 1 1 420px; min-width: 0; }
.lp-hero .lp-split { padding-top: 48px; }
.lp-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid #3a3c48; border-radius: 999px; font-size: 14px; color: var(--lp-soft); margin-bottom: 28px; }
.lp-hero h1 { font-size: clamp(46px, 6.4vw, 80px); line-height: 0.98; letter-spacing: -0.01em; }
.lp-lead { margin-top: 28px !important; font-size: 20px; color: var(--lp-soft); max-width: 520px; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.lp-fine { margin-top: 22px !important; font-size: 14px; color: var(--lp-faint); }

/* Editor illustration */
.lp-mock { background: #22232b; border: 1px solid #34363f; border-radius: 22px; padding: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.lp-mock-bar { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 14px; font-size: 13px; color: var(--lp-faint); font-weight: 600; }
.lp-lights { display: flex; gap: 7px; }
.lp-lights span { width: 11px; height: 11px; border-radius: 50%; background: #4a4c5a; }
.lp-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--lp-coral); }
.lp-stage { position: relative; background: #2d6a5f; border-radius: 14px; aspect-ratio: 16 / 10; overflow: hidden; }
.lp-floor { position: absolute; inset: auto 0 0 0; height: 30%; background: #24574e; }
.lp-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lp-tag { position: absolute; left: 12px; top: 12px; background: rgba(22, 23, 29, 0.75); color: var(--lp-paper); font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 8px; }
.lp-mock-controls { display: flex; align-items: center; gap: 12px; padding: 14px 4px 10px; }
.lp-capture { display: inline-flex; width: 46px; height: 46px; border-radius: 50%; background: var(--lp-coral); color: #fff; align-items: center; justify-content: center; flex-shrink: 0; }
.lp-capture svg { width: 22px; height: 22px; }
.lp-cap-title { font-size: 13px; color: var(--lp-soft); font-weight: 600; }
.lp-cap-sub { font-size: 12px; color: #8a8c9a; }
.lp-chip { font-size: 12px; font-weight: 600; color: var(--lp-soft); border: 1px solid #4a4c5a; padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
.lp-chip.dark { color: var(--lp-ink); border-color: #c9ccd4; font-size: 13px; }
.lp-chip.solid { background: var(--lp-ink); color: var(--lp-paper); border-color: var(--lp-ink); font-size: 14px; padding: 9px 14px; border-radius: 10px; }
.lp-frames { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.lp-frame { aspect-ratio: 4 / 3; background: #2d6a5f; border-radius: 6px; display: flex; align-items: flex-end; padding: 4px; }
.lp-frame span { width: 10px; height: 16px; background: var(--lp-yellow); border-radius: 2px; }
.lp-frame.on { outline: 2px solid var(--lp-yellow); outline-offset: 1px; }

/* Feature cards */
.lp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; margin-top: 56px; }
.lp-card { background: #fff; border-radius: 20px; padding: 30px; border: 1px solid var(--lp-line); }
.lp-card h3 { margin-top: 22px; }
.lp-card p { margin-top: 10px; color: var(--lp-body); }
.lp-icon { display: inline-flex; width: 52px; height: 52px; border-radius: 14px; background: var(--lp-ink); color: var(--lp-yellow); align-items: center; justify-content: center; flex-shrink: 0; }
.lp-icon svg { width: 26px; height: 26px; }
.lp-icon.sm { width: 44px; height: 44px; border-radius: 12px; }
.lp-icon.sm svg { width: 22px; height: 22px; }

/* Steps */
.lp-steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.lp-steps li { border-top: 3px solid var(--lp-ink); padding-top: 24px; }
.lp-step-no { font-family: var(--lp-display); font-weight: 600; font-size: 56px; line-height: 1; }
.lp-steps h3 { margin-top: 18px; }
.lp-steps p { margin-top: 10px; color: var(--lp-body); }

/* Classrooms */
.lp-points { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.lp-points li { display: flex; gap: 16px; align-items: flex-start; }
.lp-points h3 { font-family: var(--font); font-weight: 700; font-size: 19px; }
.lp-points p { margin-top: 4px; font-size: 16px; color: var(--lp-body); }
.lp-class { background: #fff; border: 1px solid var(--lp-line); border-radius: 22px; padding: 24px; box-shadow: 0 24px 60px rgba(22, 23, 29, 0.1); display: flex; flex-direction: column; gap: 10px; }
.lp-class-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.lp-class-title { font-family: var(--lp-display); font-weight: 600; font-size: 22px; }
.lp-student { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--lp-grey); }
.lp-thumb { width: 64px; aspect-ratio: 4 / 3; border-radius: 8px; flex-shrink: 0; display: flex; align-items: flex-end; padding: 4px 4px 6px; }
.lp-student-name { font-weight: 700; font-size: 16px; }
.lp-student-sub { font-size: 13px; color: #5a5c68; }

/* Story */
.lp-story { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.lp-story > div { flex: 1 1 520px; min-width: 0; }
.lp-textlink { display: inline-block; margin-top: 28px; color: var(--lp-yellow) !important; font-weight: 700; text-underline-offset: 4px; }

/* Pricing */
.lp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 64px; align-items: stretch; }
.lp-plan { position: relative; background: #fff; border: 1px solid var(--lp-line); border-radius: 24px; padding: 32px 28px; display: flex; flex-direction: column; gap: 20px; }
.lp-plan.featured { background: var(--lp-ink); color: var(--lp-paper); border-color: var(--lp-ink); }
.lp-badge { position: absolute; top: -14px; left: 28px; background: var(--lp-yellow); color: var(--lp-ink); font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.lp-plan-blurb { margin-top: 4px !important; font-size: 15px; color: #5a5c68; }
.lp-plan.featured .lp-plan-blurb { color: var(--lp-soft); }
.lp-price-row { display: flex; align-items: baseline; gap: 8px; font-size: 15px; color: #5a5c68; }
.lp-plan.featured .lp-price-row { color: var(--lp-faint); }
.lp-price { font-family: var(--lp-display); font-weight: 600; font-size: 52px; line-height: 1; color: var(--lp-ink); }
.lp-plan.featured .lp-price { color: var(--lp-yellow); }
.lp-plan ul { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.45; color: var(--lp-body); }
.lp-plan.featured ul { color: var(--lp-soft); }
.lp-plan li { display: flex; gap: 10px; align-items: flex-start; }
.lp-plan li svg { width: 18px; height: 18px; margin-top: 2px; color: var(--lp-rust); stroke-width: 2.6; }
.lp-plan.featured li svg { color: var(--lp-yellow); }
.lp-plan strong { color: var(--lp-ink); }
.lp-plan.featured strong { color: var(--lp-paper); }
.lp-note { margin-top: 28px !important; text-align: center; font-size: 15px; color: #5a5c68; }

/* FAQ */
.lp-faq { max-width: 820px; }
.lp-faq dl { margin: 32px 0 0; }
.lp-faq dl > div { border-top: 1px solid #dfe1e6; padding: 24px 0; }
.lp-faq dl > div:last-child { border-bottom: 1px solid #dfe1e6; }
.lp-faq dt { font-weight: 700; font-size: 20px; }
.lp-faq dd { margin: 8px 0 0; color: var(--lp-body); }

/* Footer */
.lp-footer { padding: 88px 20px 40px; }
.lp-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-bottom: 64px; border-bottom: 1px solid #34363f; }
.lp-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; font-size: 14px; color: var(--lp-faint); }
.lp-foot-brand { display: flex; align-items: center; gap: 14px; }
.lp-foot-links { display: flex; flex-wrap: wrap; gap: 20px; }
.lp-foot-links a { color: var(--lp-soft); padding: 10px 0; }

.landing :focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

@media (max-width: 600px) {
  .lp-section { padding: 72px 16px; }
  .lp-hero { padding: 0 16px 64px; }
  .lp-footer { padding: 64px 16px 32px; }
  .lp-split, .lp-story { gap: 40px; }
  .lp-split > * { flex-basis: 100%; }
  .lp-logo.lg { width: 140px; height: 140px; border-radius: 26px; }
  .lp-navlinks { gap: 16px; }
  .lp-actions .lp-btn { flex: 1 1 100%; }
}
