/* ==========================================================================
   ClassConnect Online — Landing sections: hero, screenshot frames, trust strip,
   lesson story, showcase, toolbox, prepare, schools, plans, FAQ, talk to us.
   Builds on the tokens in portal.css (type scale, spacing, radii, shadows).
   ========================================================================== */

:root {
  --lp-board-bg: #22406A;
  --lp-board-bg-2: #2F5A8C;
  --lp-chalk: #FDFCF8;
  --lp-sun: #F5C242;
  --lp-coral: #C8452F;
  --lp-mint: #2FA58F;
  --lp-ease: var(--ease-out, cubic-bezier(.22, .8, .24, 1));
  --lp-bezel: #1B2A41;
}

/* ---------- Section rhythm: paper / soft tints / navy band ---------- */
.lp-band-harbour { background: var(--p-band-harbour); border-block: 1px solid var(--p-border); }
.lp-band-tide { background: var(--p-band-tide); border-block: 1px solid var(--p-border); }

/* ---------- Hero ---------- */
.portal-hero {
  background:
    radial-gradient(55% 65% at 95% 0%, rgba(245, 194, 66, .16), transparent 62%),
    radial-gradient(50% 60% at 0% 100%, rgba(141, 180, 232, .22), transparent 60%),
    var(--p-bg);
}
html.portal-dark .portal-hero {
  background:
    radial-gradient(55% 65% at 95% 0%, rgba(245, 194, 66, .07), transparent 62%),
    radial-gradient(50% 60% at 0% 100%, rgba(141, 180, 232, .10), transparent 60%),
    var(--p-bg);
}
.portal-hero-copy h1 { color: var(--p-primary); }
html.portal-dark .portal-hero-copy h1 { color: var(--p-ink); }

.lp-eyebrow-beta {
  display: inline-block;
  padding: 2px 8px;
  margin-right: 2px;
  border-radius: var(--r-pill);
  background: var(--p-pill-bg);
  color: var(--p-pill-ink);
  border: 1px solid color-mix(in srgb, var(--p-pill-ink) 22%, transparent);
  letter-spacing: .08em;
}

.lp-hero-signin { margin: 0 0 var(--sp-2); }
.lp-hero-signin a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 600;
  color: var(--p-primary);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--p-primary) 35%, transparent);
  text-underline-offset: 4px;
  border-radius: var(--r-xs);
}
.lp-hero-signin a:hover { text-decoration-color: currentColor; }
.lp-hero-signin a span { transition: transform .2s var(--lp-ease); }
.lp-hero-signin a:hover span { transform: translateX(3px); }
.lp-hero-note { margin: 0; font-size: .875rem; color: var(--p-muted); max-width: 46ch; }

/* ---------- Screenshot frames (smartboard bezel) ---------- */
.lp-shot {
  position: relative;
  margin: 0;
  padding: clamp(6px, .8vw, 12px);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, #24364F, var(--lp-bezel) 40%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), var(--sh-shot);
}
.lp-shot-hero { margin-bottom: clamp(8px, 1vw, 14px); }
/* Pen tray under the hero board */
.lp-shot-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  translate: -50% 0;
  width: 24%;
  height: clamp(6px, .7vw, 10px);
  border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, #2A3D58, #1B2A41);
  box-shadow: 0 6px 12px -6px rgb(14 23 38 / .45);
}
html.portal-dark .lp-shot {
  box-shadow: 0 0 0 1px rgba(141, 180, 232, .18), inset 0 1px 0 rgb(255 255 255 / .06), var(--sh-shot);
}

.lp-shot-screen {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--r-lg) - 10px);
  aspect-ratio: 16 / 10;
  /* Shown until (or if) the screenshot loads */
  background:
    radial-gradient(90% 80% at 15% 10%, rgba(255, 255, 255, .9), transparent 60%),
    linear-gradient(135deg, #FBF8F3 0%, #E6EEF8 55%, #C9D8EC 100%);
}
html.portal-dark .lp-shot-screen {
  background:
    radial-gradient(90% 80% at 15% 10%, rgba(141, 180, 232, .16), transparent 60%),
    linear-gradient(135deg, #1B2A41 0%, #16223A 60%, #0E1726 100%);
}
.lp-ar-16x10 { aspect-ratio: 16 / 10; }
.lp-ar-16x9 { aspect-ratio: 16 / 9; }
.lp-ar-4x3 { aspect-ratio: 4 / 3; }
.lp-ar-3x2 { aspect-ratio: 3 / 2; }
.lp-shot-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}
.lp-shot-screen img.is-missing { visibility: hidden; }

.lp-shot-sm {
  padding: clamp(4px, .5vw, 8px);
  border-radius: var(--r-md);
}
.lp-shot-sm .lp-shot-screen { border-radius: calc(var(--r-md) - 6px); }

/* ---------- Shared headings ---------- */
.lp-head { margin-bottom: clamp(32px, 4vw, 56px); }
.lp-sub { color: var(--p-muted); font-size: var(--fs-lead); line-height: 1.55; margin: 0; max-width: 58ch; }
.lp-head-split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: end;
}
.lp-head-split h2 { margin-bottom: 0; }

/* ---------- Reveal on scroll (only when JS has opted in) ---------- */
html.lp-js .lp-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .6s var(--lp-ease), transform .6s var(--lp-ease);
}
html.lp-js .lp-reveal.is-in,
html.lp-js :target .lp-reveal,
html.lp-js .lp-reveal:target { opacity: 1; transform: none; }

/* Hero is intentionally NOT animated: it is the first paint (LCP). */

/* ---------- Trust strip ---------- */
.lp-trust {
  background: var(--p-bg);
  border-bottom: 1px solid var(--p-border);
  padding: var(--sp-5) 0;
}
.lp-trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3) var(--sp-6);
}
.lp-trust-label {
  margin: 0;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--p-muted);
}
.lp-trust-logo {
  height: 48px;
  width: auto;
  display: block;
}
html.portal-dark .lp-trust-logo { filter: none; background: #FBF8F3; padding: 6px 12px; border-radius: 10px; box-sizing: content-box; }

/* ---------- Lesson story ---------- */
.lp-story {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}
.lp-board-wrap {
  position: sticky;
  top: 96px;
}
.lp-board {
  margin: 0;
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 90% at 0% 0%, var(--lp-board-bg-2), transparent 60%),
    var(--lp-board-bg);
  color: var(--lp-chalk);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), var(--sh-shot);
  overflow: hidden;
  border: clamp(6px, .8vw, 10px) solid var(--lp-bezel);
}
html.portal-dark .lp-board { box-shadow: 0 0 0 1px rgba(141, 180, 232, .18), var(--sh-shot); }
.lp-board-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  font-size: .78rem;
  font-weight: 600;
  background: rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.lp-board-brand { display: inline-flex; gap: 8px; align-items: center; opacity: .9; }
.lp-board-brand img { border-radius: 5px; }
.lp-board-clock { font-variant-numeric: tabular-nums; letter-spacing: .04em; opacity: .85; }

.lp-board-stage {
  position: relative;
  aspect-ratio: 16 / 10;
}
.lp-scene {
  position: absolute;
  inset: 0;
  padding: 18px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-auto-rows: minmax(0, 1fr);
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: scale(.985);
  transition: opacity .55s var(--lp-ease), transform .55s var(--lp-ease), visibility 0s .55s;
}
.lp-board[data-scene="0"] .lp-scene[data-s="0"],
.lp-board[data-scene="1"] .lp-scene[data-s="1"],
.lp-board[data-scene="2"] .lp-scene[data-s="2"],
.lp-board[data-scene="3"] .lp-scene[data-s="3"],
.lp-board[data-scene="4"] .lp-scene[data-s="4"] {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .55s var(--lp-ease), transform .55s var(--lp-ease), visibility 0s;
}

/* Widgets on the mini board */
.lp-w {
  background: rgba(253, 252, 248, .96);
  color: #1B2A41;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
  overflow: hidden;
  box-shadow: 0 10px 24px -18px rgba(0,0,0,.6);
}
.lp-w small {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6B6560;
}
.lp-w strong { font-family: var(--p-font-serif); font-weight: 600; line-height: 1.15; }
.lp-w span, .lp-w li, .lp-w p { font-size: .78rem; color: #44403C; }

.lp-w-hero { grid-row: span 2; justify-content: center; }
.lp-w-hero strong { font-size: clamp(1.2rem, 2.2vw, 1.75rem); margin: 4px 0 6px; }

.lp-w-timer { align-items: flex-start; position: relative; }
.lp-count {
  font-family: var(--p-font-sans) !important;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums;
  color: #22406A;
}
.lp-ring {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: conic-gradient(var(--lp-coral) calc(var(--p, .72) * 360deg), #EDE9E3 0);
  -webkit-mask: radial-gradient(circle, transparent 54%, #000 56%);
          mask: radial-gradient(circle, transparent 54%, #000 56%);
}
.lp-w-list ol, .lp-w-steps ul { margin: 2px 0 0; padding-left: 18px; display: grid; gap: 2px; }
.lp-w-steps ul { list-style: none; padding: 0; }
.lp-w-steps li::before { content: "○"; margin-right: 6px; color: #A8A29E; }
.lp-w-steps li.done { text-decoration: line-through; color: #8A847F; }
.lp-w-steps li.done::before { content: "●"; color: var(--lp-mint); }

.lp-w-traffic { grid-row: span 2; align-items: center; justify-content: center; }
.lp-lights {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: #292524;
  border-radius: 14px;
  margin: 6px 0;
}
.lp-lights i { width: 30px; height: 30px; border-radius: 50%; background: #44403C; transition: background .4s, box-shadow .4s; }
.lp-lights i:nth-child(1).on { background: var(--lp-coral); }
.lp-lights i:nth-child(2).on { background: var(--lp-sun); box-shadow: 0 0 18px var(--lp-sun); }
.lp-lights i:nth-child(3).on { background: var(--lp-mint); }

.lp-bars { display: flex; align-items: flex-end; gap: 4px; height: 100%; min-height: 40px; }
.lp-bars i {
  flex: 1;
  border-radius: 3px;
  background: var(--lp-mint);
  height: 30%;
  animation: lpBar 1.6s ease-in-out infinite;
}
.lp-bars i:nth-child(2n) { animation-delay: -.4s; }
.lp-bars i:nth-child(3n) { animation-delay: -.9s; }
.lp-bars i:nth-child(5n) { animation-delay: -1.2s; }
@keyframes lpBar { 0%, 100% { height: 22%; } 50% { height: 62%; } }

.lp-name { font-size: 1.5rem; color: #B53A26; }

.lp-w-groups { grid-row: span 2; }
.lp-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.lp-groups p { margin: 0; padding: 8px; border-radius: 8px; background: #F3EEE6; line-height: 1.35; }
.lp-groups b { display: block; font-size: .72rem; color: #22406A; }

.lp-w-poll { grid-column: span 1; grid-row: span 2; justify-content: center; }
.lp-poll { display: grid; gap: 10px; margin-top: 6px; }
.lp-poll p { margin: 0; display: grid; gap: 4px; }
.lp-poll i {
  display: block;
  height: 12px;
  border-radius: 6px;
  background: #EDE9E3;
  position: relative;
  overflow: hidden;
}
.lp-poll i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: #22406A;
  border-radius: 6px;
  transition: width 1s .25s var(--lp-ease);
}
.lp-poll p:nth-child(2) i::after { background: var(--lp-coral); }
.lp-v22 { --v: 22%; }
.lp-v64 { --v: 64%; }
.lp-v14 { --v: 14%; }
.lp-board[data-scene="3"] .lp-poll i::after { width: var(--v); }

.lp-w-qr { grid-row: span 2; align-items: center; justify-content: center; text-align: center; }
.lp-qr-icon {
  width: min(58%, 120px);
  height: auto;
  aspect-ratio: 1;
  margin-top: 8px;
  color: #1B2A41;
}

.lp-w-score p { margin: 0; display: flex; justify-content: space-between; font-size: .8rem; }
.lp-w-score span { color: var(--lp-sun); letter-spacing: 2px; text-shadow: 0 0 1px #A16207; }

/* Steps list */
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.lp-step {
  border-left: 2px solid var(--p-border-strong);
  padding: 18px 0 18px 22px;
  min-height: 26vh;
  transition: border-color .4s;
}
.lp-step:last-child { min-height: 0; }
.lp-step-btn {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  min-height: 44px;
  border-radius: 6px;
}
.lp-step-btn:focus-visible { outline: 2px solid var(--p-ink); outline-offset: 4px; }
.lp-time {
  font-variant-numeric: tabular-nums;
  font-size: .82rem;
  font-weight: 700;
  color: var(--p-muted);
  letter-spacing: .04em;
}
.lp-step-title {
  font-family: var(--p-font-serif);
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--p-ink-soft);
  transition: color .3s;
}
.lp-step p {
  margin: 8px 0 0;
  color: var(--p-muted);
  max-width: 44ch;
  transition: color .3s;
}
.lp-step.is-active { border-left-color: var(--p-accent-text); }
.lp-step.is-active .lp-time { color: var(--p-accent-text); }
.lp-step.is-active .lp-step-title { color: var(--p-ink); }
.lp-step.is-active p { color: var(--p-ink-soft); }

/* ---------- Product showcase (bento) ---------- */
.lp-bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.lp-bento-item { margin: 0; display: grid; gap: var(--sp-4); align-content: start; }
.lp-bento-wide { grid-column: 1 / -1; }
.lp-bento-item figcaption,
.lp-prepare-shot figcaption {
  font-family: var(--p-font-serif);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.25;
  color: var(--p-ink);
  max-width: 36ch;
  text-wrap: balance;
}

/* ---------- Toolbox index ---------- */
.lp-tool-index {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--p-border-strong);
}
.lp-tool-col {
  --tc: var(--p-primary);
  padding: 22px 20px 6px 0;
  border-right: 1px solid var(--p-border);
  border-top: 3px solid var(--tc);
  margin-top: -1px;
}
.lp-tool-col:nth-child(1) { --tc: #22406A; }
.lp-tool-col:nth-child(2) { --tc: #C8452F; }
.lp-tool-col:nth-child(3) { --tc: #0F6E63; }
.lp-tool-col:nth-child(4) { --tc: #A87A0E; }
.lp-tool-col:nth-child(5) { --tc: #2B6CB0; }
html.portal-dark .lp-tool-col:nth-child(1) { --tc: #8DB4E8; }
html.portal-dark .lp-tool-col:nth-child(2) { --tc: #F2A08F; }
html.portal-dark .lp-tool-col:nth-child(3) { --tc: #7FD6C6; }
html.portal-dark .lp-tool-col:nth-child(4) { --tc: #F5D27A; }
html.portal-dark .lp-tool-col:nth-child(5) { --tc: #9CC3F0; }
.lp-tool-col + .lp-tool-col { padding-left: 20px; }
.lp-tool-col:last-child { border-right: 0; }
.lp-tool-num {
  margin: 0 0 4px;
  font-family: var(--p-font-serif);
  font-style: italic;
  color: var(--tc);
  font-size: 1.05rem;
}
.lp-tool-col h3 {
  font-family: var(--p-font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 14px;
}
.lp-tool-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.lp-tool-col li {
  font-size: .93rem;
  color: var(--p-ink-soft);
  padding: 5px 0;
  border-bottom: 1px dashed var(--p-border);
}
.lp-tool-col li:last-child { border-bottom: 0; }

/* ---------- Prepare at home, teach at the board ---------- */
.lp-prepare {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.lp-prepare-shot { margin: 0; display: grid; gap: var(--sp-4); }
.lp-rows {
  list-style: none;
  margin: 0 0 var(--sp-5);
  padding: 0;
  border-top: 1px solid var(--p-border);
}
.lp-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: var(--sp-4);
  align-items: start;
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--p-border);
}
.lp-row-ico {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  color: var(--p-forest);
  background: var(--p-surface);
  border: 1px solid var(--p-border);
}
html.portal-dark .lp-row-ico { color: #7FD6C6; }
.lp-row h3 {
  font-family: var(--p-font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--p-ink);
}
.lp-row p { margin: 0; font-size: .95rem; color: var(--p-muted); max-width: 52ch; }

/* ---------- School leaders band ---------- */
.lp-schools {
  background:
    radial-gradient(50% 80% at 100% 0%, rgba(245, 194, 66, .14), transparent 60%),
    #22406A;
  color: #EEF5F0;
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}
html.portal-dark .lp-schools {
  background:
    radial-gradient(50% 80% at 100% 0%, rgba(245, 194, 66, .08), transparent 60%),
    #16223A;
  border-block: 1px solid var(--p-border);
}
.lp-schools::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 0 0 60px rgba(255,255,255,.025), 0 0 0 120px rgba(255,255,255,.02);
  pointer-events: none;
}
.lp-schools-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  position: relative;
}
.lp-schools h2 { color: #FFFFFF; }
.lp-schools-copy > p:not(.section-kicker) { color: rgba(238, 245, 240, .86); font-size: var(--fs-lead); max-width: 46ch; margin: 0; }
.lp-kicker-light { color: var(--p-sun); }
.lp-schools-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4) var(--sp-5); margin-top: var(--sp-6); }
.lp-schools .portal-btn:focus-visible,
.lp-link-light:focus-visible { outline-color: #FFFFFF; }
.lp-link-light {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: #FFFFFF;
  font-weight: 600;
  text-underline-offset: 4px;
  border-radius: var(--r-xs);
}
.lp-schools-list {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.16);
}
.lp-schools-list > div {
  padding: 22px 22px 22px 0;
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.lp-schools-list > div:nth-child(2n) { padding-left: 22px; border-left: 1px solid rgba(255,255,255,.16); }
.lp-schools-list dt {
  font-family: var(--p-font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 6px;
}
.lp-schools-list dd { margin: 0; color: rgba(238, 245, 240, .82); font-size: .95rem; }

/* ---------- Plans ---------- */
.lp-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  align-items: stretch;
}
.lp-plan {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: clamp(24px, 2.6vw, 32px);
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
}
.lp-plan-featured {
  border-color: color-mix(in srgb, var(--p-accent) 45%, var(--p-border));
  box-shadow: var(--sh-2);
  position: relative;
}
.lp-plan-featured::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 4px;
  border-radius: var(--r-md) var(--r-md) 0 0;
  background: var(--p-accent);
}
.lp-plan h3 {
  font-family: var(--p-font-serif);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  color: var(--p-ink);
}
.lp-plan-tag { margin: 0; color: var(--p-muted); font-size: .95rem; }
.lp-plan-list {
  list-style: none;
  margin: var(--sp-2) 0 var(--sp-5);
  padding: var(--sp-4) 0 0;
  border-top: 1px solid var(--p-border);
  display: grid;
  gap: var(--sp-3);
  flex: 1;
  align-content: start;
}
.lp-plan-list li {
  position: relative;
  padding-left: 26px;
  color: var(--p-ink-soft);
  font-size: .95rem;
  line-height: 1.5;
}
.lp-plan-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .45em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--p-forest);
  border-bottom: 2px solid var(--p-forest);
  rotate: -45deg;
}
html.portal-dark .lp-plan-list li::before { border-color: #7FD6C6; }
.lp-plans-note {
  margin: var(--sp-5) 0 0;
  text-align: center;
  font-size: .9rem;
  color: var(--p-muted);
}

/* ---------- FAQ ---------- */
.lp-faq-list { border-top: 1px solid var(--p-border-strong); }
.lp-faq-list details { border-bottom: 1px solid var(--p-border); }
.lp-faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  font-family: var(--p-font-serif);
  font-size: 1.22rem;
  font-weight: 600;
  position: relative;
  border-radius: 4px;
}
.lp-faq-list summary::-webkit-details-marker { display: none; }
.lp-faq-list summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  translate: 0 -50%;
  font-family: var(--p-font-sans);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--p-accent-text);
  transition: rotate .3s var(--lp-ease);
}
.lp-faq-list details[open] summary::after { rotate: 45deg; }
.lp-faq-list details p { margin: 0 0 22px; color: var(--p-ink-soft); max-width: 62ch; }
.lp-faq-list details a { color: var(--p-ink); font-weight: 600; text-underline-offset: 3px; }

/* ---------- Talk to us ---------- */
.lp-talk-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}
.lp-contact-rollout {
  margin-top: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--p-border);
}
.lp-contact-rollout h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--p-ink);
}
.lp-contact-rollout p { font-size: .95rem; }

/* ---------- Legal notes under forms ---------- */
.form-legal-note {
  margin: 12px 0 0;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--p-muted);
}
.form-legal-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .lp-tool-index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lp-tool-col:nth-child(3) { border-right: 0; }
  .lp-tool-col:nth-child(4) { padding-left: 0; }
  .lp-tool-col:nth-child(n+4) { margin-top: 18px; }
  .lp-schools-grid, .lp-head-split, .lp-prepare, .lp-talk-grid { grid-template-columns: 1fr; }
  .lp-plan-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .lp-shot-hero { max-width: 760px; width: 100%; margin-inline: auto; }
}
@media (max-width: 820px) {
  .lp-story { grid-template-columns: 1fr; gap: var(--sp-6); }
  /* Small screens: the board sits above the steps instead of sticking. */
  .lp-board-wrap { position: static; }
  .lp-step { min-height: 0; padding-block: 14px; }
}
@media (max-width: 760px) {
  .lp-board { border-width: 5px; }
  .lp-scene { padding: 10px; gap: 8px; }
  .lp-w { padding: 8px 10px; }
  .lp-ring { display: none; }
  .lp-w span, .lp-w li, .lp-w p { font-size: .66rem; }
  .lp-groups { gap: 4px; }
  .lp-groups p { padding: 5px; }
  .lp-bento { grid-template-columns: 1fr; }
  .lp-tool-index { grid-template-columns: 1fr 1fr; }
  .lp-tool-col, .lp-tool-col + .lp-tool-col { padding: 18px 12px 6px 0; border-right: 0; margin-top: 14px; }
  .lp-tool-col:nth-child(2n) { padding-left: 12px; border-left: 1px solid var(--p-border); }
  .lp-schools-list { grid-template-columns: 1fr; }
  .lp-schools-list > div:nth-child(2n) { padding-left: 0; border-left: 0; }
  .lp-trust-inner { gap: var(--sp-2) var(--sp-5); }
}

@media (prefers-reduced-motion: reduce) {
  html.lp-js .lp-reveal { opacity: 1; transform: none; transition: none; }
  .lp-bars i { animation: none; height: 40%; }
  .lp-scene, .lp-poll i::after { transition: none; }
}

/* ---------- UX-12: on small screens show the sign-in card before the explainer ---------- */
@media (max-width: 820px) {
  .editorial-split-auth > .portal-auth-card { order: -1; }
}

.lp-credit{display:block;margin-top:4px;font-size:.75rem;font-weight:400;opacity:.75}
.lp-credit a{color:inherit;text-decoration:underline}
