/* ----------------------------------------------------------------------------
 * The landing page.
 *
 * Shares the app's colour tokens so the two feel like one product, then sets
 * its own rhythm: bigger type, more air, made to be read on a phone in a school
 * corridor.
 *
 * ⚠ EVERY SIZE, SPACE AND RADIUS IS A TOKEN from system.css, which must load
 * first. This file had fifteen ad-hoc font sizes, three radii and thirty-five
 * spacing values of its own on 8 Oct 2026 — and it is the FIRST page anybody
 * sees, so it was the worst place in the product to be improvising. A new raw
 * value here is a bug, not a style choice.
 *
 * ⚠ EVERYTHING IS SCOPED UNDER .landing. `.band` means something else in the
 * app — the four sections of the home screen — and these rules load after
 * system.css, so an unscoped `.band` here would quietly reach into the app if
 * the two stylesheets were ever loaded together.
 * -------------------------------------------------------------------------- */

body.landing { background: var(--card); }
.landing .wrap { max-width: 760px; }

/* --- hero ------------------------------------------------------------- */
.landing .hero {
  background: linear-gradient(165deg, #0e4a36 0%, var(--brand) 58%, #2a9771 100%);
  color: var(--on-brand);
  padding: var(--s-6) 0 var(--s-7);
}
.landing .logo {
  display: flex; align-items: center; gap: var(--s-3);
  font-weight: var(--w-bold); font-size: var(--t-base); letter-spacing: -0.01em;
  margin-bottom: var(--s-6);
}
.landing .logo img { border-radius: var(--r-md); display: block; }

.landing .hero h1 {
  font-size: var(--t-display);
  line-height: var(--lh-tight);
  letter-spacing: -0.025em;
  margin: 0 0 var(--s-4);
  font-weight: var(--w-bold);
}
.landing .lede {
  font-size: var(--t-base); line-height: var(--lh-body); margin: 0 0 var(--s-5);
  color: rgb(255 255 255 / 0.88); max-width: 34em;
}
.landing .lede strong { color: var(--on-brand); font-weight: var(--w-bold); }

.landing .hero-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.landing .btn-big {
  display: inline-flex; align-items: center; justify-content: center;
  padding: var(--s-4) var(--s-5); border-radius: var(--r-md);
  font-size: var(--t-base); font-weight: var(--w-bold);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  font-family: inherit; min-height: var(--s-7);
  /* ⚠ The press has to answer before the page does. Without this the button is
   * a picture of a button until the next page loads. */
  transition: transform var(--d-instant) var(--ease-out),
              box-shadow var(--d-quick) var(--ease-out);
}
.landing .hero .btn-primary { background: #fff; color: var(--on-light-brand); box-shadow: var(--e-2); }
.landing .btn-ghost {
  background: transparent; color: var(--on-brand);
  border-color: rgb(255 255 255 / 0.55);
}
.landing .btn-big:active { transform: translateY(1px); }
.landing .hero-note {
  font-size: var(--t-sm); color: rgb(255 255 255 / 0.72); margin: var(--s-4) 0 0;
}
.landing .hero-note strong { color: var(--on-brand); }

/* --- bands ------------------------------------------------------------ */
.landing .band { padding: var(--s-7) var(--gutter); }
.landing .band-alt { background: var(--bg); }
.landing .band > h2 {
  font-size: var(--t-xl); line-height: var(--lh-tight); letter-spacing: -0.02em;
  margin: 0 0 var(--s-3); font-weight: var(--w-bold);
}
.landing .band > p {
  font-size: var(--t-base); line-height: var(--lh-body);
  color: var(--ink-2); margin: 0 0 var(--s-5); max-width: 38em;
}
.landing .aside {
  font-size: var(--t-sm); line-height: var(--lh-snug);
  color: var(--ink-3); font-style: italic; margin-top: var(--s-5);
}

/* --- the evidence grid ------------------------------------------------ */
.landing .schools { display: grid; gap: var(--s-3); }
.landing .school {
  background: var(--card); border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--r-md); padding: var(--s-4);
}
.landing .school h3 {
  margin: 0 0 var(--s-1); font-size: var(--t-base); font-weight: var(--w-bold);
}
.landing .school p {
  margin: 0; font-size: var(--t-sm); color: var(--ink-2); line-height: var(--lh-snug);
}

/* --- features --------------------------------------------------------- */
.landing .feature { margin-bottom: var(--s-5); }
.landing .feature:last-child { margin-bottom: 0; }
/* ⚠ A step above the body text rather than the fifth of a step it was (1.05rem
 * against 1rem), which is not a heading, it is a typo you cannot see. */
.landing .feature h3 {
  margin: 0 0 var(--s-2); font-size: var(--t-md); line-height: var(--lh-snug);
  font-weight: var(--w-bold); color: var(--brand-ink);
}
.landing .feature p {
  margin: 0; color: var(--ink-2); line-height: var(--lh-body); max-width: 38em;
}

/* --- install steps ---------------------------------------------------- */
.landing .steps { display: grid; gap: var(--s-4); }
.landing .step {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--s-4);
}
.landing .step h3 {
  margin: 0 0 var(--s-3); font-size: var(--t-md); font-weight: var(--w-bold);
}
.landing .step ol { margin: 0; padding-left: var(--s-5); color: var(--ink-2); }
.landing .step li { margin: var(--s-2) 0; line-height: var(--lh-snug); }

/* --- the honesty section --------------------------------------------- */
.landing .honest { display: grid; gap: var(--s-5); }
.landing .honest h3 {
  margin: 0 0 var(--s-2); font-size: var(--t-md); font-weight: var(--w-bold);
}
.landing .honest ul { margin: 0; padding-left: var(--s-5); color: var(--ink-2); }
.landing .honest li { margin: var(--s-2) 0; line-height: var(--lh-body); }
/* Reads it / doesn't, told apart at a glance rather than by reading the heading. */
.landing .honest > div:first-child h3 { color: var(--ok-ink); }
.landing .honest > div:last-child h3 { color: var(--overdue); }

.landing .cta { text-align: center; }
.landing .cta h2 { margin-bottom: var(--s-2); }
.landing .cta p { margin-left: auto; margin-right: auto; }
.landing .cta .btn-primary { background: var(--brand); color: var(--on-brand); }

.landing .foot { padding-bottom: var(--s-6); }

@media (min-width: 620px) {
  .landing .hero { padding: var(--s-7) 0 var(--s-8); }
  .landing .hero h1 { font-size: var(--t-display-lg); }
  .landing .lede { font-size: var(--t-md); }
  .landing .schools { grid-template-columns: 1fr 1fr; }
  .landing .steps { grid-template-columns: 1fr 1fr; }
  .landing .honest { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
  .landing .band { padding: var(--s-8) var(--gutter); }
}

/* --- "tell me when you reach my school" ------------------------------------
 * ⚠ The only form on the landing page. It has to look like something a parent
 * fills in on a phone in thirty seconds, which means big targets and no
 * cleverness.
 */
.landing .interest { max-width: 30rem; }
.landing .interest-row { display: block; margin-bottom: var(--s-4); }
.landing .interest-row > span {
  display: block;
  font-size: var(--t-sm);
  font-weight: var(--w-semi);
  color: var(--ink);
  margin-bottom: var(--s-1);
}
.landing .interest-row small {
  font-weight: var(--w-normal);
  color: var(--ink-3);
  margin-left: var(--s-1);
}
.landing .interest-row select,
.landing .interest-row input {
  width: 100%;
  box-sizing: border-box;
  /* ⚠ Never below 1rem. iOS zooms the whole page when a field smaller than
   * 16px takes focus, and the parent is then pinched out on a form. */
  font-size: var(--t-base);
  font-family: inherit;
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--card);
  color: var(--ink);
  min-height: var(--s-7);
}
.landing .interest-row select:focus-visible,
.landing .interest-row input:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}
/* ⚠ The whole row is the target, not the 16px box. A consent tick that is hard
 * to hit is a consent tick people mis-hit. */
.landing .interest-consent {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  padding: var(--s-3);
  margin-bottom: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--card);
  cursor: pointer;
  font-size: var(--t-sm);
  line-height: var(--lh-snug);
  color: var(--ink-2);
}
.landing .interest-consent input {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  margin: 0;
  accent-color: var(--brand);
}
.landing .interest-note {
  font-size: var(--t-sm);
  color: var(--ink-3);
  margin: var(--s-3) 0 0;
}
.landing .interest-done {
  font-size: var(--t-md);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  border-radius: var(--r-md);
  padding: var(--s-4);
  margin: 0;
}
