/* Front pages (#/welcome, #/teachers) — loaded after app.css and design.css.
 *
 * The student front page is laid out like a product site: a sticky top bar with section links,
 * a centred hero with the real app below it, a numbers band, a bento grid of features, a dark
 * band for the AI tutor, then HP, subjects, audiences, reviews, pricing, FAQ and a full footer.
 * The teacher page shares the header, footer, section rhythm and steps. Everything takes its
 * colours from the tokens, so light, paper and dark themes all work.
 */

.lp { --lp-w: 1180px; background: var(--canvas); }
.lp-main { max-width: var(--lp-w); padding: 0 clamp(16px, 4vw, 32px); }
.lp-body { flex: 1; display: block; width: 100%; }

/* ---------- header ---------- */
.lp-head {
  position: sticky; top: 0; z-index: 40; padding: 0;
  background: color-mix(in srgb, var(--canvas) 80%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-mid), background var(--dur-mid);
}
.lp-head.is-scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--surface) 86%, transparent); }
.lp-head__inner { max-width: var(--lp-w); height: 64px; padding: 0 clamp(16px, 4vw, 32px); gap: 24px; }
.lp-brand { font-size: 1.2rem; font-weight: 800; letter-spacing: -.025em; }
.lp-brand img { width: 28px; height: 28px; }
.lp-nav { display: none; }
/* Six links plus language, log-in and the button need about 1100px; from 960px they ran past the right
   edge (by up to 45px in English). Below this the sections are reached by scrolling, as on a phone. */
@media (min-width: 1120px) {
  .lp-nav { display: flex; align-items: center; gap: 2px; margin-right: auto; margin-left: 12px; }
}
.lp-nav__link {
  padding: 7px 12px; border-radius: 8px; font-size: calc(14.5px * var(--fs-scale, 1)); font-weight: 550;
  color: var(--ink-soft); text-decoration: none; white-space: nowrap;
  transition: color var(--dur-fast), background var(--dur-fast);
}
@media (hover: hover) { .lp-nav__link:hover { color: var(--ink); background: var(--surface-sunk); } }
.lp-head__actions { gap: 10px; }
.lp-head__login { font-size: calc(14.5px * var(--fs-scale, 1)); font-weight: 600; color: var(--ink); text-decoration: none; padding: 7px 10px; border-radius: 8px; }
@media (hover: hover) { .lp-head__login:hover { background: var(--surface-sunk); } }
.lp-lang { border-radius: 8px; border-color: var(--line); padding: 6px 10px; }
.lp-cta__short { display: none; }
@media (max-width: 520px) {
  /* "Logga in" stays visible on a phone: someone coming back has no other way in from here. The button
     takes its short label and the bar its tighter spacing to make the room. */
  .lp-head__inner { gap: 8px; }
  .lp-head__actions { gap: 6px; }
  .lp-head__login { padding: 7px 8px; white-space: nowrap; }
  .lp-cta__long { display: none; }
  .lp-cta__short { display: inline; }
}
@media (max-width: 360px) {
  .lp-head__inner { padding: 0 12px; }
  .lp-head__actions { gap: 2px; }
  .lp-head__login { padding: 7px 6px; font-size: calc(14px * var(--fs-scale, 1)); }
  .lp-lang { padding: 6px 8px; }
}

/* ---------- hero (student front page) ---------- */
.lp--home .lp-hero {
  display: block; text-align: center;
  padding: clamp(48px, 8vw, 88px) 0 0;
}
.lp--home .lp-hero::before {
  top: -64px; bottom: 30%;
  background:
    radial-gradient(38% 50% at 50% 0%, color-mix(in srgb, var(--brand) 20%, transparent), transparent 72%),
    radial-gradient(30% 40% at 85% 30%, color-mix(in srgb, var(--c-grape) 12%, transparent), transparent 70%),
    radial-gradient(30% 40% at 12% 35%, color-mix(in srgb, var(--c-sky) 12%, transparent), transparent 70%);
}
.lp--home .lp-hero::after {
  top: -64px; bottom: 35%;
  -webkit-mask-image: radial-gradient(60% 70% at 50% 20%, #000 10%, transparent 70%);
          mask-image: radial-gradient(60% 70% at 50% 20%, #000 10%, transparent 70%);
}
.lp--home .lp-hero__copy { max-width: 860px; margin: 0 auto; }
.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  padding: 5px 12px 5px 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  font-size: calc(13.5px * var(--fs-scale, 1)); font-weight: 600; color: var(--ink-soft); text-decoration: none;
}
@media (hover: hover) { .lp-eyebrow:hover { border-color: var(--line-strong); color: var(--ink); } }
/* On a phone it takes two lines: split them evenly, not one word left alone on the second. */
.lp-eyebrow > span:not(.lp-eyebrow__dot) { text-wrap: balance; }
.lp-eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok-bright); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok-bright) 22%, transparent); }
.lp-eyebrow svg { color: var(--ink-faint); }
.lp--home .lp-h1 { font-size: clamp(2.6rem, 6.6vw, 4.6rem); line-height: 1.02; letter-spacing: -.045em; }
.lp-h1__accent {
  background: linear-gradient(92deg, var(--brand) 0%, var(--c-grape) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp--home .lp-lead { margin: 22px auto 0; max-width: 40em; font-size: clamp(1.03rem, 1.4vw, 1.18rem); }
.lp--home .lp-cta { justify-content: center; margin-top: 32px; }
.lp--home .lp-cta .btn svg { margin-left: 2px; }
.lp-checks {
  list-style: none; margin: 22px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px;
  font-size: calc(14px * var(--fs-scale, 1)); font-weight: 500; color: var(--ink-soft);
}
.lp-checks li { display: inline-flex; align-items: center; gap: 6px; }
.lp-checks svg { color: var(--ok); stroke-width: 2.4; }
@media (max-width: 520px) {
  .lp--home .lp-cta .btn { flex: 1 1 100%; justify-content: center; }
  .lp-checks { display: grid; grid-template-columns: 1fr 1fr; text-align: left; justify-items: start; max-width: 340px; margin-inline: auto; }
}

/* The stage: the real app, with the playable card over its corner on wide screens. */
.lp-stage { position: relative; margin: clamp(40px, 6vw, 64px) auto 0; max-width: 1080px; text-align: left; }
.lp-stage__shot {
  margin: 0; border-radius: 16px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 30px 60px -20px rgba(16, 24, 40, .25), 0 0 0 8px color-mix(in srgb, var(--surface) 55%, transparent);
}
.lp-stage__shot img { display: block; width: 100%; height: auto; }
.lp-stage__card { max-width: 440px; }
.lp-stage .lp-q { box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 24px 48px -16px rgba(16, 24, 40, .28); }
@media (min-width: 900px) {
  .lp-stage__card { position: absolute; z-index: 3; right: -28px; bottom: -48px; width: 400px; }
  .lp-stage { margin-bottom: 48px; }
}
@media (max-width: 899.98px) {
  .lp-stage__shot { display: none; }
  .lp-stage__card { margin: 0 auto; }
}
@media (min-width: 1080px) {
  .lp-stage .lp-badge--hint { top: 18%; left: -36px; right: auto; transform: rotate(-2deg); }
  .lp-stage .lp-badge--repeat { bottom: 22%; left: -24px; transform: rotate(1.5deg); }
}

/* ---------- numbers band ---------- */
.lp-stats { margin-top: clamp(56px, 8vw, 96px); }
.lp-stats__inner {
  margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-card);
}
.lp-stat { padding: 24px 26px; display: flex; flex-direction: column-reverse; gap: 4px; }
.lp-stat + .lp-stat { border-left: 1px solid var(--line); }
.lp-stat dd { margin: 0; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; }
.lp-stat dt { font-size: calc(14px * var(--fs-scale, 1)); line-height: 1.4; color: var(--ink-soft); }
@media (max-width: 760px) {
  .lp-stats__inner { grid-template-columns: 1fr 1fr; }
  .lp-stat:nth-child(3) { border-left: 0; }
  .lp-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .lp-stat { padding: 18px; }
}

/* ---------- section scaffolding ---------- */
.lp-sec { padding: clamp(64px, 9vw, 112px) 0 0; }
.lp-sechead { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.lp-sechead--center { margin-left: auto; margin-right: auto; text-align: center; }
.lp-sechead--center .lp-sub { margin-left: auto; margin-right: auto; }
.lp-eyebrow-text { margin: 0 0 12px; font-size: calc(13px * var(--fs-scale, 1)); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.lp-h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; text-wrap: balance; }
.lp-sub { font-size: 1.075rem; line-height: 1.65; }
.lp-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 20px;
  font-weight: 650; font-size: calc(15px * var(--fs-scale, 1)); color: var(--brand-ink); text-decoration: none;
}
@media (hover: hover) { .lp-more:hover { text-decoration: underline; text-underline-offset: 3px; } }
.lp-more svg { transition: transform var(--dur-fast); }
.lp-more:hover svg { transform: translateX(2px); }

/* ---------- bento ---------- */
.lp-bento { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lp-tile {
  display: flex; flex-direction: column; gap: 22px; min-width: 0;
  padding: 26px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card);
}
.lp-tile--wide { grid-column: span 2; }
@media (min-width: 961px) {
  .lp-tile--wide { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: 32px; }
  .lp-tile--wide .lp-tile__art { margin-top: 0; }
}
.lp-tile .lp-levels { margin-top: 14px; }
.lp-tile h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; margin: 0 0 8px; }
.lp-tile p { margin: 0; color: var(--ink-soft); line-height: 1.6; font-size: .98rem; }
.lp-tile__art { margin-top: auto; }
.lp-tile .lp-curve, .lp-tile .lp-src { box-shadow: none; }
.lp-tile .lp-curve { padding: 16px; }
@media (max-width: 960px) {
  .lp-bento { grid-template-columns: 1fr 1fr; }
  .lp-tile--wide { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .lp-bento { grid-template-columns: 1fr; }
}

/* progress art */
.lp-prog { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.lp-prog__cap { margin: 0 0 2px; font-size: calc(12px * var(--fs-scale, 1)); font-weight: 600; color: var(--ink-faint); }
.lp-prog__row { display: grid; grid-template-columns: 88px 1fr 44px; align-items: center; gap: 10px; font-size: calc(13.5px * var(--fs-scale, 1)); font-weight: 550; }
.lp-prog__row i { height: 8px; border-radius: 99px; background: var(--surface-sunk); overflow: hidden; }
.lp-prog__row b { display: block; height: 100%; border-radius: inherit; }
.lp-prog__row b.is-ok { background: var(--ok-bright); }
.lp-prog__row b.is-mid { background: var(--brand-bright); }
.lp-prog__row b.is-low { background: var(--retry); }
.lp-prog__pct { text-align: right; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* chat art (bento tile + AI band) */
.lp-chat { display: flex; flex-direction: column; gap: 14px; }
.lp-chat__msgs { display: flex; flex-direction: column; gap: 12px; }
.lp-chat .lp-chat__me {
  align-self: flex-end; max-width: 85%; margin: 0;
  padding: 10px 14px; border-radius: 14px 14px 4px 14px;
  background: var(--brand); color: #fff; font-size: calc(14px * var(--fs-scale, 1)); line-height: 1.45;
}
.lp-chat__bot { display: flex; gap: 10px; align-items: flex-start; }
.lp-chat__avatar { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-ink); }
.lp-chat .lp-chat__bot > div { padding: 12px 14px; border-radius: 4px 14px 14px 14px; background: var(--surface-sunk); font-size: calc(14px * var(--fs-scale, 1)); line-height: 1.55; color: var(--ink); }
.lp-chat .lp-chat__bot p { margin: 0; color: var(--ink); font-size: calc(14px * var(--fs-scale, 1)); line-height: 1.55; }
.lp-chat__chip { display: inline-block; margin-top: 10px; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line-strong); font-size: calc(12.5px * var(--fs-scale, 1)); font-weight: 600; color: var(--brand-ink); background: var(--surface); }
.lp-tile .lp-chat__bot p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- AI band ---------- */
.lp-band {
  margin-top: clamp(72px, 10vw, 120px);
  background:
    radial-gradient(50% 80% at 90% 10%, color-mix(in srgb, var(--brand) 30%, transparent), transparent 70%),
    radial-gradient(40% 60% at 0% 100%, color-mix(in srgb, var(--c-grape) 18%, transparent), transparent 70%),
    var(--canvas);
  color: var(--ink);
}
.lp-band__inner {
  max-width: var(--lp-w); margin: 0 auto; padding: clamp(64px, 9vw, 104px) clamp(16px, 4vw, 32px);
  display: grid; gap: 48px; align-items: center;
}
@media (min-width: 960px) { .lp-band__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 72px; } }
.lp-band .lp-eyebrow-text { color: var(--brand-bright); }
.lp-band .lp-sub { color: var(--ink-soft); margin-top: 16px; }
.lp-band .btn { margin-top: 32px; }
.lp-band__art {
  padding: 20px; border-radius: 18px; background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
}
.lp-chat__modes { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-chat__modes span {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px;
  background: var(--surface-sunk); font-size: calc(12.5px * var(--fs-scale, 1)); font-weight: 600; color: var(--ink-soft);
}
.lp-chat__modes span:first-child { background: var(--brand-tint); color: var(--brand-ink); }
.lp-chat__input {
  display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px;
  border: 1px solid var(--line-strong); border-radius: 12px; color: var(--ink-faint); font-size: calc(14px * var(--fs-scale, 1));
}
.lp-chat__input span { flex: 1; }
.lp-chat__input b { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--brand); color: #fff; }

.lp-points { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.lp-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 1rem; font-weight: 500; color: var(--ink); }
.lp-points svg { flex: none; margin-top: 3px; padding: 2px; box-sizing: content-box; border-radius: 50%; background: var(--ok-tint); color: var(--ok-ink); stroke-width: 2.6; }

/* ---------- split (HP) ---------- */
.lp-split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .lp-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; } }
.lp-split__art { padding: 26px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.lp-split .btn { margin-top: 28px; }
.lp-sheet__cell { border-color: var(--line); border-radius: 10px; }
.lp-split .lp-sheet__cell { padding: 10px; }
.lp-split .lp-sheet__bubbles { flex-wrap: nowrap; gap: 3px; }
.lp-split .lp-sheet__bubbles span { width: 17px; height: 17px; font-size: calc(12px * var(--fs-scale, 1)); flex: none; }

/* ---------- subjects ---------- */
.lp-subjgrid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.lp-subjgrid li {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
  font-weight: 600; font-size: calc(15px * var(--fs-scale, 1)); box-shadow: var(--shadow-card);
}
.lp-subjgrid__ic { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--subj-tint); color: var(--subj-ink); }
.lp-levelrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 20px; }
.lp-levelrow .lp-more { margin-top: 0; }
.lp-levels { margin: 0; }
.lp-levels li { border-radius: 8px; }

/* ---------- audiences ---------- */
.lp-auds { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.lp-aud { padding: 26px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.lp-aud__ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-ink); margin-bottom: 18px; }
.lp-aud h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; margin: 0 0 8px; }
.lp-aud p { margin: 0; color: var(--ink-soft); line-height: 1.6; flex: 1; }

/* ---------- reviews ---------- */
.lp-review { border-radius: 16px; box-shadow: var(--shadow-card); }

/* ---------- pricing ---------- */
.lp-plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); max-width: 860px; margin: 0 auto; }
.lp-plan { display: flex; flex-direction: column; padding: 30px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.lp-plan--main { border: 2px solid var(--brand); box-shadow: 0 24px 48px -24px color-mix(in srgb, var(--brand) 55%, transparent); }
.lp-plan__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lp-plan h3 { margin: 0; font-size: 1.15rem; font-weight: 700; }
.lp-plan__badge { padding: 4px 10px; border-radius: 999px; background: var(--brand-tint); color: var(--brand-ink); font-size: calc(12.5px * var(--fs-scale, 1)); font-weight: 700; }
.lp-plan__badge.is-muted { background: var(--surface-sunk); color: var(--ink-soft); }
.lp-plan__price { margin: 18px 0 20px; display: flex; align-items: baseline; gap: 6px; }
.lp-plan__price b { font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.lp-plan__price span { color: var(--ink-faint); font-weight: 500; }
.lp-plan__list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 11px; flex: 1; }
.lp-plan__list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.lp-plan__list svg { flex: none; margin-top: 3px; color: var(--ok); stroke-width: 2.6; }
.lp-plan__body { margin: 0 0 28px; color: var(--ink-soft); line-height: 1.6; flex: 1; }
.lp-plan .btn { justify-content: center; }

/* ---------- FAQ ---------- */
.lp-faqsec { display: grid; gap: 0 72px; }
@media (min-width: 960px) {
  .lp-faqsec { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: start; }
  .lp-faqsec > .lp-more { grid-column: 1; grid-row: 2; align-self: start; margin-top: 0; }
  .lp-faqsec > .lp-faq { grid-column: 2; grid-row: 1 / span 2; }
}
.lp-faq { border-top: 1px solid var(--line); }
.lp-faq__item { border-bottom: 1px solid var(--line); }
.lp-faq__item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 2px; font-weight: 650; font-size: 1.05rem; letter-spacing: -.01em;
}
.lp-faq__item summary::-webkit-details-marker { display: none; }
.lp-faq__item summary svg { flex: none; color: var(--ink-faint); transition: transform var(--dur-mid) var(--ease-out); }
.lp-faq__item[open] summary svg { transform: rotate(45deg); }
.lp-faq__item p { margin: 0; padding: 0 40px 22px 2px; color: var(--ink-soft); line-height: 1.65; }

/* ---------- closer ---------- */
.lp--home .lp-closer, .lp-closer {
  margin: clamp(72px, 10vw, 120px) 0 clamp(56px, 8vw, 96px);
  padding: clamp(36px, 5vw, 56px); border: 0; border-radius: 24px;
  background:
    radial-gradient(60% 120% at 100% 0%, color-mix(in srgb, var(--c-grape) 45%, transparent), transparent 70%),
    linear-gradient(135deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 70%, #0B1330) 100%);
  color: #fff;
}
.lp-closer .lp-h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); }
.lp-closer .lp-sub { color: rgba(255, 255, 255, .82); }
.lp-closer .btn { background: #fff; color: #10204A; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .4); }
@media (hover: hover) { .lp-closer .btn:hover { background: #EEF2FF; } }
.lp-closer__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
@media (min-width: 820px) { .lp-closer__cta { align-items: flex-end; } }
.lp-closer .lp-teachnote { color: rgba(255, 255, 255, .78); margin: 0; }
.lp-closer .lp-teachnote a { color: #fff; }

/* ---------- footer ---------- */
.lp-foot { padding: 0; background: var(--surface); border-top: 1px solid var(--line); }
.lp-foot__inner {
  max-width: var(--lp-w); padding: 56px clamp(16px, 4vw, 32px) 40px;
  display: grid; gap: 40px; align-items: start; justify-content: stretch;
  font-size: calc(14.5px * var(--fs-scale, 1));
}
@media (min-width: 900px) { .lp-foot__inner { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 72px; } }
.lp-foot__brand { font-size: 1.1rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.lp-foot__brand img { width: 24px; height: 24px; }
.lp-foot__about p { margin: 12px 0 18px; color: var(--ink-soft); line-height: 1.6; }
.lp-foot__cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.lp-foot__col h4 { margin: 0 0 12px; font-size: calc(13px * var(--fs-scale, 1)); font-weight: 700; letter-spacing: .02em; color: var(--ink); }
.lp-foot__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.lp-foot__col a { color: var(--ink-soft); text-decoration: none; }
@media (hover: hover) { .lp-foot__col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; } }
.lp-foot__base {
  width: calc(100% - 2 * clamp(16px, 4vw, 32px)); max-width: calc(var(--lp-w) - 2 * clamp(16px, 4vw, 32px));
  margin: 0 auto; padding: 20px 0 28px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  border-top: 1px solid var(--line); font-size: calc(13px * var(--fs-scale, 1)); color: var(--ink-faint);
}

/* ---------- teacher page: same polish on its shared pieces ---------- */
.lp-hero__art .lp-q, .teach-q { border-radius: 16px; }
.lp-row__art > * { border-radius: 16px; }
.lp-step { border-top-width: 1px; border-top-color: var(--line-strong); }
.lp-step__n { font-weight: 800; }

/* ---------- trust ---------- */
.lp-trustgrid {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-card); overflow: hidden;
}
.lp-trustgrid li { display: flex; gap: 14px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-trustgrid li:nth-child(3n) { border-right: 0; }
.lp-trustgrid li:nth-last-child(-n+3) { border-bottom: 0; }
.lp-trustgrid__ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--ok-tint); color: var(--ok-ink); }
.lp-trustgrid h3 { margin: 0 0 4px; font-size: 1rem; font-weight: 700; letter-spacing: -.01em; }
.lp-trustgrid p { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--ink-soft); }
@media (max-width: 900px) {
  .lp-trustgrid { grid-template-columns: 1fr 1fr; }
  .lp-trustgrid li, .lp-trustgrid li:nth-child(3n), .lp-trustgrid li:nth-last-child(-n+3) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .lp-trustgrid li:nth-child(2n) { border-right: 0; }
  .lp-trustgrid li:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 560px) {
  .lp-trustgrid { grid-template-columns: 1fr; }
  .lp-trustgrid li, .lp-trustgrid li:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .lp-trustgrid li:last-child { border-bottom: 0; }
}

/* The eyebrow is --brand blue, 4.0:1 on the dark ground: the lighter blue clears 4.5:1 there. */
:root[data-theme="dark"] .lp-eyebrow-text { color: var(--brand-bright); }
/* The app always sets data-theme ("system" included), so :not([data-theme]) alone never matched. */
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .lp-eyebrow-text, :root[data-theme="system"] .lp-eyebrow-text { color: var(--brand-bright); } }

/* Touch screens: finger-sized tap areas on the front pages. The header controls, the "read more" links and
   the social icons get an invisible hit area (nothing moves); the footer link lists get 44px rows,
   since 9px between 17px-tall links left nothing to grow into. */
@media (pointer: coarse) {
  .lp-brand, .lp-head__login, .lp-lang, .lp-head__cta, .lp-foot__social-link, .lp-more { position: relative; }
  :is(.lp-brand, .lp-head__login, .lp-lang, .lp-head__cta, .lp-foot__social-link, .lp-more)::after { content: ""; position: absolute; }
  .lp-brand::after { inset: -8px; }
  :is(.lp-head__login, .lp-lang, .lp-head__cta)::after { inset: -4px 0; }
  .lp-foot__social-link::after { inset: -5px -3px; }
  .lp-more::after { inset: -3px 0; }
  .lp-foot__col ul { gap: 0; }
  .lp-foot__col a { display: block; padding-block: 11px; }
  .lp-foot__col h4 { margin-bottom: 2px; }
}
