/* Landing page (js/landing.js). Uses the colour tokens from styles.css, so dark mode works too. */
.app.is-landing { padding-block: 12px 0; gap: 0; }
.lp { display: flex; flex-direction: column; gap: clamp(56px, 9vw, 104px); }

/* Top bar */
.lp-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 6px; }
.lp-nav-links { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; }
.lp-navlink { font-weight: 600; font-size: 14px; color: var(--muted); padding: 8px 2px; }
.lp-navlink:hover { color: var(--ink); }
.lp-login { min-height: 40px; padding: 8px 16px; }
@media (max-width: 560px) { .lp-navlink { display: none; } }

/* Hero */
.lp-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-top: clamp(8px, 4vw, 40px); }
.lp-hero-text { display: flex; flex-direction: column; gap: 18px; }
.lp-hero h1 { font-size: clamp(34px, 5.6vw, 58px); line-height: 1.05; letter-spacing: -.03em; font-weight: 800; }
.lp-lead { font-size: clamp(16px, 1.8vw, 19px); line-height: 1.55; color: var(--muted); max-width: 34em; }
.lp-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.lp-cta .btn { flex: 0 1 auto; }
@media (max-width: 820px) { .lp-hero { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .lp-hero .lp-cta .btn { flex: 1 1 100%; } }

/* Phone preview */
.lp-phone { justify-self: center; width: min(100%, 340px); background: var(--surface); border: 1px solid var(--line); border-radius: 32px; padding: 18px 16px 20px;
  box-shadow: 0 1px 2px rgba(19, 28, 51, .06), 0 24px 60px -24px rgba(32, 72, 200, .35); display: flex; flex-direction: column; gap: 14px; transform: rotate(1.5deg); }
.lp-phone-top { display: flex; justify-content: space-between; align-items: center; }
.lp-dots { display: flex; gap: 4px; } .lp-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); display: block; }
.lp-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lp-kpis div { border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.lp-kpis b { font-family: var(--font-display); font-size: 22px; line-height: 1; }
.lp-kpis span { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.lp-rec { background: var(--accent-soft); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.lp-rec-topic { font-family: var(--font-display); font-size: 20px; }
.lp-btn { background: var(--accent); color: var(--accent-ink); border-radius: 10px; text-align: center; font-weight: 600; padding: 9px; font-size: 14px; }
.lp-rows { display: flex; flex-direction: column; gap: 9px; }
.lp-row { display: grid; grid-template-columns: 7.5em 1fr auto; gap: 8px; align-items: center; font-size: 12.5px; }
.lp-row b { font-variant-numeric: tabular-nums; }
.lp-chips { display: flex; gap: 6px; flex-wrap: wrap; }
@media (prefers-reduced-motion: no-preference) {
  .lp-phone { animation: lp-float 7s ease-in-out infinite; }
  @keyframes lp-float { 0%, 100% { transform: rotate(1.5deg) translateY(0); } 50% { transform: rotate(1.5deg) translateY(-8px); } }
}

/* Sections */
.lp-section { display: flex; flex-direction: column; gap: 26px; }
.lp-head { display: flex; flex-direction: column; gap: 8px; max-width: 40em; }
.lp-head h2 { font-size: clamp(24px, 3.4vw, 36px); line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
.lp-head p { font-size: 16px; }
.lp-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lp-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.lp-tile h3 { font-size: 17px; letter-spacing: -.01em; }
.lp-tile p { color: var(--muted); font-size: 14.5px; }
.lp-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: 0 0 auto; }
.lp-ic svg { width: 21px; height: 21px; }
@media (max-width: 900px) { .lp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .lp-tiles { grid-template-columns: 1fr; } }

/* For tutoring centers */
.lp-centers { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 4vw, 44px); }
.lp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.lp-split .lp-head { gap: 14px; }
.lp-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.lp-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.lp-list .lp-ic { width: 34px; height: 34px; border-radius: 10px; } .lp-list .lp-ic svg { width: 18px; height: 18px; }
.lp-board { border: 1px solid var(--line); border-radius: 18px; padding: 14px; background: var(--paper); display: flex; flex-direction: column; gap: 12px; overflow-x: auto; }
.lp-board-head { display: flex; gap: 8px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.lp-board .hm { font-size: 12.5px; table-layout: fixed; }
.lp-board .hm th { min-width: 0; font-size: 10.5px; padding: 4px 2px; overflow-wrap: anywhere; }
.lp-board .hm th.hm-name, .lp-board .hm td.hm-name { min-width: 0; width: 26%; background: var(--paper); overflow: hidden; text-overflow: ellipsis; }
.lp-board .hm td { padding: 7px 2px; }
@media (max-width: 900px) { .lp-split { grid-template-columns: 1fr; } }

/* Steps */
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: none; }
.lp-steps li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; }
.lp-steps b { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--font-display); font-size: 17px; }
.lp-steps span { padding-top: 6px; }
@media (max-width: 760px) { .lp-steps { grid-template-columns: 1fr; } }

/* Closing call to action and footer */
.lp-final { background: var(--accent-soft); border-radius: 24px; padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 44px); display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.lp-final h2 { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.02em; font-weight: 800; }
.lp-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); padding-block: 0 32px; margin-top: calc(-1 * clamp(28px, 5vw, 64px)); }

.auth-back { align-self: flex-start; }
