/* k12-home.css
   Copyright © 2026 LexPro. All rights reserved.

   Carline's home (sites/k12/pages/home/). Each block is one Flutter section
   in app/lib/web/site/sections/directions/a/; the numbers are its. */

/* ---- The cover (ed_hero.dart) ---- */
.cover {
  position: relative; background: var(--ed-paper);
  --cover-h: clamp(560px, calc(100vh - 64px), 980px);
  /* 96px at most: the column stops growing at 640px (44vw), and "safer car
     line." with its indent needs about 6.7 of these across, so a bigger
     headline would wrap to three lines on a wide window. */
  --hero: clamp(52px, min(6.6vw, calc(var(--cover-h) * .135)), 96px);
}
.cover__title { display: flex; flex-direction: column; align-items: flex-start; color: var(--ed-navy); }
.cover__lead, .cover__line {
  font-size: var(--hero-size); line-height: 1; letter-spacing: -0.045em; font-weight: 400;
}
.cover__line { font-weight: 800; }
.cover__lede { font-weight: 500; line-height: 1.3; letter-spacing: -0.2px; color: var(--ed-ink); }
.cover__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cover__still img { display: block; }
.cover__scene { position: relative; overflow: hidden; }
.island__view { position: absolute; inset: 0; opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.island.is-live .island__view { opacity: 1; }

/* Wide: the drawing fills a box as tall as the window, the words over it. */
@media (min-width: 901px) {
  /* At least the window's height, taller when the words need it (1.4.12). */
  .cover { min-height: var(--cover-h); overflow: hidden; --hero-size: var(--hero); }
  .cover__scene { position: absolute; inset: 0; container-type: size; }
  /* The drawing (1440×760 in a 2160×1160 still, bottom right) fits the box
     and sits on its bottom edge, right-aligned: EdCarLineScene(height:). */
  .cover__still img {
    position: absolute; right: 0; bottom: 0; max-width: none; height: auto;
    width: calc(min(100cqw / 1440, 100cqh / 760) * 2160);
  }
  .cover__words { position: relative; z-index: 1; padding-top: calc(var(--cover-h) * .05); padding-bottom: 24px; pointer-events: none; }
  .cover__column { width: min(44vw, 640px); pointer-events: auto; }
  .cover__kicker { margin-bottom: 20px; }
  .cover__line { padding-left: calc(var(--hero) * .9); }
  .cover__lede { margin: 22px 0 20px; font-size: clamp(19px, 1.6vw, 24px); }
}
/* Narrow: the words, then the drawing at its own proportions. */
@media (max-width: 900px) {
  .cover { --hero-size: clamp(56px, 9vw, 80px); }
  .cover__words { padding-top: 36px; }
  .cover__kicker { margin-bottom: 20px; }
  .cover__lede { margin: 22px 0 20px; font-size: clamp(19px, 1.6vw, 24px); }
  .cover__scene { margin-top: 24px; aspect-ratio: 1440 / 760; }
  .cover__still img { position: absolute; right: 0; bottom: 0; width: 150%; max-width: none; height: auto; }
}
@media (max-width: 719.98px) {
  .cover__scene { aspect-ratio: 390 / 470; }
  .cover__still img { position: static; width: 100%; }
}
@media (max-width: 600px) {
  .cover { --hero-size: clamp(40px, 11.5vw, 56px); }
  .cover__words { padding-top: 20px; }
  .cover__kicker { margin-bottom: 14px; }
  .cover__lede { margin: 16px 0 14px; font-size: 18px; }
  .cover__scene { margin-top: 14px; }
  .cover__actions .btn { --btn-h: 44px; --btn-pad: 18px; --btn-fs: 15px; }
}

/* ---- From the bell to the last car (ed_bell.dart) ---- */
.bell__title {
  margin: 36px 0 48px; font-size: clamp(54px, 10.4vw, 148px); line-height: .92; font-weight: 800;
  letter-spacing: -0.045em; color: var(--ed-paper);
}
.bell__steps { margin-top: 88px; border-bottom: 1px solid var(--ed-rule-on-dark); }
.bell__step { padding: 36px 0; border-top: 1px solid var(--ed-rule-on-dark); }
.bell__numeral { font-size: clamp(64px, 7.4vw, 112px); }
.bell__step-title {
  padding-top: 10px; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; font-weight: 700;
  letter-spacing: -0.02em; color: var(--ed-paper);
}
.bell__step-body { padding-top: 14px; font-size: 18px; line-height: 1.6; font-weight: 400; color: var(--ed-on-dark); }
@media (max-width: 900px) {
  .bell__title { margin: 24px 0 28px; }
  .bell__steps { margin-top: 56px; }
  .bell__step { padding: 28px 0; }
  .bell__step-title, .bell__step-body { padding-top: 0; }
}

/* ---- A screen for each job (ed_screens.dart) ---- */
.screens { background: var(--ed-coral); padding: var(--ed-band-pad) 0; container-type: inline-size; color: var(--ed-navy-deep); }
.screens__title {
  margin-top: 24px; font-size: clamp(38px, 4.6vw, 66px); line-height: 1; font-weight: 800; letter-spacing: -0.045em;
}
.screens__rule { margin-top: 40px; }
.screens__board-title { margin-top: 20px; font-size: 24px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.screens__board-body { margin-top: 10px; font-size: 18px; line-height: 1.6; font-weight: 400; }
.screens__more { margin-top: 18px; color: var(--ed-navy-deep); }
.screens__board { overflow: hidden; }
.screens__board img { max-width: none; height: auto; }
@media (min-width: 901px) {
  .screens__inner {
    --measure: min(100cqw, 1320px);
    --col: calc((var(--measure) - 2 * var(--ed-gutter) - 11 * var(--ed-col-gap)) / 12);
    display: flex; align-items: center;
    padding-left: calc((100cqw - var(--measure)) / 2 + var(--ed-gutter));
  }
  .screens__text { flex: none; width: calc(5 * var(--col) + 4 * var(--ed-col-gap)); margin-right: calc(var(--col) + 2 * var(--ed-col-gap)); }
  .screens__board { flex: 1; min-width: 0; }
  .screens__board img { width: max(1000px, 72cqw); }
}
@media (max-width: 900px) {
  .screens__text { max-width: 1320px; margin: 0 auto; padding: 0 var(--ed-gutter); }
  .screens__rule { margin-top: 28px; }
  .screens__board { margin-top: 44px; margin-left: var(--ed-gutter); }
  .screens__board img { width: max(620px, 150cqw); }
}
/* On a phone the narrow board is shown whole: cropped at this width it cut
   the names mid-word and read as broken (site review 2026-11-14). */
@media (max-width: 599px) {
  .screens__board { margin-right: var(--ed-gutter); }
  .screens__board img { width: 100%; max-width: 100%; }
}

/* ---- HOLD ALL and the other holds (ed_holds.dart) ---- */
.holds__giant {
  font-size: clamp(72px, 13.4vw, 196px); line-height: .86; font-weight: 800; letter-spacing: -0.045em; color: var(--ed-red);
}
.holds__intro { padding-bottom: 14px; }
.holds__chip {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 8px 14px;
  background: var(--ed-red); color: var(--ed-paper);
  font-size: 13px; line-height: 1.3; font-weight: 800; letter-spacing: 2.2px; text-transform: uppercase;
}
.holds__pair { margin-top: 96px; }
.holds__title {
  margin-top: 20px; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; font-weight: 700;
  letter-spacing: -0.02em; color: var(--ed-ink);
}
.holds__body { margin-top: 14px; font-size: 18px; line-height: 1.6; font-weight: 400; }
.holds__report { margin-top: 120px; }
.holds__stat-cell { container-type: inline-size; }
.holds__stat {
  font-family: var(--font-numeral); font-weight: 800; line-height: .9; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums; color: var(--ed-navy);
  font-size: min(clamp(110px, 21vw, 270px), calc(100cqw / var(--stat-em)));
}
.holds__stat-bar { width: 42%; height: 14px; margin-top: 10px; background: var(--ed-coral); }
.holds__report-title { margin-top: 14px; }
.holds__report .holds__body { margin-top: 12px; }
@media (max-width: 900px) {
  .holds__intro { padding-bottom: 0; }
  .holds__pair { margin-top: 64px; }
  .holds__report { margin-top: 72px; }
}

/* ---- Parents (ed_parents.dart) ---- */
.parents-spread { position: relative; --photo-h: clamp(520px, 54vw, 760px); min-height: var(--photo-h); }
.parents-spread__photo {
  position: absolute; inset: 0; background-color: var(--ed-navy-deep);
  background-image:
    /* Dark enough behind the 13px white "For parents" kicker for 4.5:1 at its worst pixel
       (measured 6.9:1; the old .4 at 55% left it at 4.3:1, axe "needs review", 2026-11-17). */
    linear-gradient(to bottom, rgba(12, 29, 58, 0) 20%, rgba(12, 29, 58, .55) 48%, rgba(12, 29, 58, .94) 100%),
    url("/site-assets/images/hero/kids-crossing-to-school.jpg");
  background-size: cover; background-position: center 45%;
}
.parents-spread__words { position: relative; padding-top: calc(var(--photo-h) * .5); padding-bottom: 64px; }
.parents-spread__title {
  margin-top: 22px; font-size: clamp(40px, 6.4vw, 92px); line-height: .98; font-weight: 800;
  letter-spacing: -0.045em; color: var(--ed-paper);
}
.parents { padding-top: 72px; }
.parents__point { padding-right: 24px; }
.parents__numeral {
  font-family: var(--font-numeral); font-size: 44px; line-height: .9; font-weight: 800; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums; color: var(--ed-coral-ink); margin-bottom: 16px;
}
.parents__title { margin-top: 18px; font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; color: var(--ed-ink); }
.parents__body { margin-top: 10px; font-size: 18px; line-height: 1.6; font-weight: 400; }
.parents__more { margin-top: 40px; }
@media (max-width: 900px) {
  .parents-spread { --photo-h: 460px; }
  /* The words start higher on a narrow screen (42% down), where the desktop gradient is still
     light: the kicker measured 2.0:1 at 390px and 3.3:1 at 820px; with this, 8.3 and 10.2. */
  .parents-spread__photo {
    background-image:
      linear-gradient(to bottom, rgba(12, 29, 58, .1) 0%, rgba(12, 29, 58, .72) 34%, rgba(12, 29, 58, .94) 100%),
      url("/site-assets/images/hero/kids-crossing-to-school.jpg");
  }
  .parents-spread__words { padding-top: calc(var(--photo-h) * .42); padding-bottom: 36px; }
  .parents { padding-top: 48px; }
  .parents__point { padding-right: 0; }
}

/* ---- Privacy (ed_privacy.dart) ---- */
.privacy__head { margin-top: 28px; }
.privacy__title {
  font-size: clamp(40px, 6.2vw, 90px); line-height: .98; font-weight: 800; letter-spacing: -0.045em; color: var(--ed-paper);
}
.privacy__lede { font-size: 18px; line-height: 1.6; font-weight: 400; color: var(--ed-on-dark); }
.privacy__rules { margin-top: 80px; border-bottom: 1px solid var(--ed-rule-on-dark); }
.privacy__rule { padding: 30px 0; border-top: 1px solid var(--ed-rule-on-dark); }
.privacy__rule-title {
  font-size: clamp(28px, 3.4vw, 46px); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; color: var(--ed-paper);
}
.privacy__rule-body { padding-top: 8px; font-size: 18px; line-height: 1.6; font-weight: 400; color: var(--ed-on-dark); }
.privacy__more { margin-top: 32px; color: var(--ed-paper); }
.privacy__rule-link { margin-top: 16px; color: var(--ed-paper); }
@media (max-width: 900px) {
  .privacy__rules { margin-top: 52px; }
  .privacy__rule { padding: 24px 0; }
  .privacy__rule-body { padding-top: 0; }
}

/* ---- Radios beside the product (ed_compare.dart) ---- */
.compare__head { margin-top: 24px; }
.compare__table, .compare__lists { margin-top: 64px; }
.compare__heading {
  font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; color: var(--ed-muted);
}
.compare__heading--ours { color: var(--ed-ink); }
.compare__headings { margin-bottom: 20px; }
.compare__row { padding: 20px 0; border-top: 1px solid var(--ed-rule); }
.compare__row:last-child { border-bottom: 1px solid var(--ed-rule); }
.compare__line { display: flex; align-items: flex-start; gap: 14px; font-size: 19px; line-height: 1.6; font-weight: 400; color: var(--ed-muted); }
.compare__line--ours { font-weight: 600; color: var(--ed-ink); }
.compare__mark { flex: none; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-top: 3px; }
.compare__line:not(.compare__line--ours) .compare__mark::before { content: ""; width: 14px; height: 2px; background: var(--ed-muted); }
.compare__line--ours .compare__mark { border-radius: 50%; background: var(--ed-coral); color: var(--ed-navy-deep); }
.compare__lists { display: none; }
.compare__list + .compare__list { margin-top: 40px; }
.compare__list .compare__heading { margin-bottom: 12px; }
.compare__list li { padding: 14px 0; border-top: 1px solid var(--ed-rule); }
@media (max-width: 900px) {
  .compare__table { display: none; }
  .compare__lists { display: block; margin-top: 40px; }
}

/* ---- Works with your systems (ed_systems.dart) ---- */
.systems__head { margin-top: 24px; }
.systems__lede { font-size: 18px; line-height: 1.6; font-weight: 400; }
.systems__sources { margin-top: 64px; border-bottom: 1px solid var(--ed-navy); }
.systems__source { padding: 26px 0; border-top: 1px solid var(--ed-navy); }
.systems__name { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; color: var(--ed-ink); }
.systems__body { font-size: 17px; line-height: 1.6; font-weight: 400; }
.systems__tag { font-size: 12px; line-height: 1.3; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ed-navy); }
.systems__tag--self { color: var(--ed-coral-ink); }
.systems__plan { margin-top: 6px; font-size: 15px; line-height: 1.6; font-weight: 600; color: var(--ed-navy); }
.systems__notes { margin-top: 24px; }
.systems__small { font-size: 15px; line-height: 1.6; font-weight: 400; color: var(--ed-muted); }
.systems__small--fine { font-size: 13px; }
.systems__more { margin-top: 12px; }
@media (max-width: 900px) {
  .systems__sources { margin-top: 40px; }
  .systems__source { padding: 20px 0; }
}

/* ---- Questions schools ask (ed_systems.dart) ---- */
.questions__head { margin-top: 24px; margin-bottom: 56px; }
.questions__title { font-size: clamp(30px, 3.6vw, 50px); line-height: 1.05; font-weight: 800; letter-spacing: -0.045em; color: var(--ed-ink); }
.questions__links { display: flex; flex-wrap: wrap; column-gap: 28px; row-gap: 4px; }
.questions__row { margin-bottom: 40px; }
.questions__q { margin-top: 18px; font-size: 23px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; color: var(--ed-ink); }
.questions__a { margin-top: 10px; font-size: 17px; line-height: 1.6; font-weight: 400; }
@media (max-width: 900px) { .questions__head { margin-bottom: 36px; } }

/* ---- The trial (ed_trial.dart) ---- */
.trial { color: var(--ed-navy-deep); }
.trial__bars { display: flex; flex-direction: column; align-items: flex-end; }
.trial__bar { display: block; height: 22px; margin-bottom: 10px; border-radius: 20px; }
.trial__bar--1 { width: 260px; background: var(--ed-navy-deep); }
.trial__bar--2 { width: 190px; background: var(--ed-paper); }
.trial__bar--3 { width: 120px; background: #ffc21a; }
.trial .ed-row:first-of-type { margin-top: 28px; }
.trial__title { font-size: clamp(44px, 7.8vw, 116px); line-height: .96; font-weight: 800; letter-spacing: -0.045em; color: var(--ed-navy-deep); }
.trial__rule { margin: 56px 0 28px; }
.trial__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trial__pricing { margin-top: 18px; color: var(--ed-navy-deep); }
@media (max-width: 900px) {
  .trial__bar { height: 14px; }
  .trial__bar--1 { width: 150px; }
  .trial__bar--2 { width: 110px; }
  .trial__bar--3 { width: 70px; }
  .trial .ed-row:first-of-type { margin-top: 20px; }
  .trial__rule { margin: 36px 0 28px; }
}
