/* ==========================================================================
   COMMBLUE EDUCATION — edu.css
   The agency lives in the dark. The schools division works in daylight.

   Same DNA — Space Grotesk / Inter / IBM Plex Mono / Instrument Serif,
   brackets, redaction bars, sourced-and-dated captions, the dead pixel —
   executed as a light theme. Almost all of it is a token swap on top of
   main.css; only the handful of places where main.css hard-codes a dark
   value, plus the components that exist only here, are restated below.
   ========================================================================== */

:root {
  /* --- surfaces: paper, not void ------------------------------------- */
  --void: #f7f9fc;
  --void-lift: #eef2f8;
  --depth: #ffffff;
  --depth-2: #e8edf5;
  --hairline: #e2e8f0;
  --hairline-hi: #cbd5e1;

  /* --- ink ------------------------------------------------------------ */
  --text-hi: #0a1628;
  --text-mid: #3d4654;
  --text-lo: #5b6472; /* 5.67:1 on paper, 5.98:1 on white */
  /* main.css gives the serif whisper a pale value tuned for Void. Left
     unswapped it landed at 1.48:1 on paper — the light theme needs its own. */
  --text-serif: #4e5867; /* 6.83:1 on paper */
  --text-dim: #94a3b8; /* 2.43:1 — non-informational marks only */

  /* Electric is unchanged, and on paper it clears AA at any size:
     5.23:1 on #F7F9FC, 5.51:1 on white. */
  --signal-text: var(--electric-500);

  --grid-line: rgba(10, 22, 40, 0.05);
  --scanline: rgba(10, 22, 40, 0.04);
  --grain-opacity: 0.03;
  --focus-ring: 0 0 0 2px #f7f9fc, 0 0 0 4px var(--electric-500);

  /* In light, depth is shadow rather than a darker panel. */
  --shadow-card: 0 1px 2px rgba(10, 22, 40, 0.04), 0 8px 24px rgba(10, 22, 40, 0.06);
  --shadow-lift: 0 2px 4px rgba(10, 22, 40, 0.05), 0 18px 48px rgba(10, 22, 40, 0.1);
  --chat-shadow: var(--shadow-card);
}

/* Grain: screen blending vanishes on paper, so this one flips to multiply. */
body::after {
  mix-blend-mode: multiply;
}

/* Fully opaque, like the dark theme — nothing scrolls through the bar.
   --surface-page is already Paper here, so this only needs to exist to
   beat the old translucent override out of the cascade. */
.nav {
  background: var(--surface-page);
}

/* --------------------------------------------------------------------------
   PANELS IN DAYLIGHT
   -------------------------------------------------------------------------- */
.card,
.price,
.principle,
.scope-list,
.dash__panel,
.plate {
  background: var(--depth);
  box-shadow: var(--shadow-card);
}
.card:hover {
  background: var(--depth);
  box-shadow: var(--shadow-lift);
}
.price--lead {
  background: var(--depth);
  box-shadow: var(--shadow-lift);
}
.section--band .card,
.section--band .statstrip > * {
  background: var(--depth);
}
.serp__bar--title {
  background: #c9d6ea;
}

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.hero--edu .hero__h1 {
  font-size: clamp(38px, 6.2vw, 92px);
  max-width: 17ch;
}
.hero--edu .hero__grid {
  align-items: center;
}
.edu-eyebrow {
  max-width: none;
}
.chat--edu {
  width: 100%;
}

/* --------------------------------------------------------------------------
   STAT CARDS — the squeeze, in daylight
   -------------------------------------------------------------------------- */
.statgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-5);
}
.statgrid .metric {
  background: var(--depth);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  box-shadow: var(--shadow-card);
  padding: var(--space-6);
}
/* Plain-language headline first, the explanation underneath. The number is
   the hook; this is the sentence that tells you why it matters. */
.metric__head {
  margin-top: var(--space-4);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(17px, 1.5vw, 20px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-hi);
}
.metric__head + .metric__label {
  margin-top: var(--space-3);
  color: var(--text-mid);
}

/* --------------------------------------------------------------------------
   SOURCE MAP — whose voice is it
   -------------------------------------------------------------------------- */
.srcmap__nodes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
}
.srcmap__nodes li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
  background: var(--depth);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 8px 12px;
}
.srcmap__nodes li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--electric-500);
  flex: 0 0 auto;
}
.srcmap__lines {
  display: block;
  width: 100%;
  height: clamp(44px, 6vw, 88px);
}
.srcmap__lines line {
  stroke: var(--hairline-hi);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.srcmap__answer {
  justify-self: center;
  background: var(--depth);
  border: 1px solid var(--electric-500);
  border-radius: 6px;
  box-shadow: var(--shadow-card);
  padding: var(--space-5) var(--space-7);
  text-align: center;
  display: grid;
  gap: 6px;
}
.srcmap__pct {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 46px);
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--text-hi);
}

/* --------------------------------------------------------------------------
   TIMELINE — twelve months, drawn by the scroll
   -------------------------------------------------------------------------- */
.timeline__rail {
  position: relative;
  height: 3px;
  background: var(--hairline);
  border-radius: 2px;
  margin: var(--space-8) 0 var(--space-4);
}
.timeline__seg {
  position: absolute;
  top: 0;
  height: 3px;
  border-radius: 2px;
}
/* Months 1–2 solid, months 3–12 as a dashed stroke. */
.timeline__seg--a {
  left: 0;
  width: 17%;
  background: var(--electric-500);
}
.timeline__seg--b {
  left: 17%;
  right: 0;
  background-image: repeating-linear-gradient(
    to right,
    var(--electric-500) 0 10px,
    transparent 10px 18px
  );
}
/* The wipe that follows the scroll. Only ever covers the rail, never text. */
.timeline__veil {
  position: absolute;
  top: -4px;
  bottom: -4px;
  right: 0;
  left: 0;
  background: var(--void);
  transform-origin: right center;
}
.timeline__ticks {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-8);
}
.timeline__ticks li {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-xs);
  letter-spacing: var(--ls-mono-wide);
  text-transform: uppercase;
  color: var(--text-lo);
}
.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}
.tl-phase {
  background: var(--depth);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--electric-500);
  border-radius: 6px;
  box-shadow: var(--shadow-card);
  padding: var(--space-7) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.tl-phase--b {
  border-top-style: dashed;
}
.tl-phase h3 {
  font-size: var(--fs-heading);
  line-height: var(--lh-display-loose);
}
.tl-phase > p {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body);
  color: var(--text-lo);
}
.tl-phase .bullets li {
  color: var(--text-mid);
}

/* --------------------------------------------------------------------------
   DASHBOARD MOCK — a product frame, clearly labelled as a demo
   -------------------------------------------------------------------------- */
.dash-mock {
  background: var(--depth);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.dash-mock__chrome {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 10px 14px;
  background: var(--void-lift);
  border-bottom: 1px solid var(--border-subtle);
}
.dash-mock__dots {
  display: inline-flex;
  gap: 6px;
}
.dash-mock__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--hairline-hi);
}
.dash-mock__url {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-xs);
  letter-spacing: 0.08em;
  color: var(--text-lo);
  background: var(--depth);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 4px 12px;
  /* the workspace URL is deliberately unreadable in a public mock */
  filter: blur(2.2px);
  user-select: none;
}
.dash-mock__body {
  padding: clamp(20px, 2.6vw, 32px);
  display: grid;
  gap: var(--space-6);
}
.dash-mock__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-6);
  align-items: center;
}
.dash-mock__score {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(46px, 6vw, 76px);
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--text-hi);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.dash-mock__score span {
  font-size: 0.4em;
  color: var(--signal-text);
}
.dash-mock__delta {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #0f7b4f; /* 4.6:1 on white */
  background: #e6f5ee;
  border-radius: 999px;
  padding: 4px 10px;
  align-self: center;
}
.donut {
  position: relative;
  width: 118px;
  height: 118px;
  flex: 0 0 auto;
}
.donut svg {
  transform: rotate(-90deg);
  display: block;
}
.donut__track {
  fill: none;
  stroke: var(--depth-2);
  stroke-width: 14;
}
.donut__arc {
  fill: none;
  stroke: var(--electric-500);
  stroke-width: 14;
  stroke-linecap: butt;
}
.donut__val {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.04em;
  color: var(--text-hi);
}
.engines {
  display: grid;
  gap: var(--space-3);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-5);
}
.engines li {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 42px;
  gap: var(--space-4);
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.06em;
  color: var(--text-mid);
}
.engines .bar__track {
  height: 8px;
  border-radius: 4px;
  background: var(--depth-2);
  outline: 0;
}
.engines .bar__fill {
  border-radius: 4px;
}
.engines b {
  font-weight: 400;
  text-align: right;
  color: var(--text-hi);
}
.qlist {
  display: grid;
  border-top: 1px solid var(--border-subtle);
}
.qlist li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 11px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: var(--fs-mono-xs);
  letter-spacing: 0.06em;
  color: var(--text-lo);
}
.qlist span {
  text-transform: lowercase;
}
.qlist b {
  font-weight: 400;
  white-space: nowrap;
  text-transform: uppercase;
}
.qlist b.is-win {
  color: var(--signal-text);
}
.qlist b.is-gap {
  color: #9a3412; /* 5.0:1 on white */
}

/* --------------------------------------------------------------------------
   DOCUMENT PAGES — privacy policy and anything else that is just prose
   -------------------------------------------------------------------------- */
.nav--simple .nav__inner {
  gap: var(--space-4);
}
.doc {
  padding: var(--section-y-tight) 0 var(--section-y);
}
.doc__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.doc h1 {
  font-size: clamp(34px, 5vw, 64px);
  letter-spacing: var(--ls-display-tight);
  line-height: 1;
  margin-bottom: var(--space-4);
}
.doc__date {
  padding-bottom: var(--space-7);
  border-bottom: var(--rule);
}
.doc h2 {
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: var(--ls-display);
  line-height: var(--lh-display-loose);
  margin: var(--space-8) 0 var(--space-4);
}
.doc p {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
  color: var(--text-mid);
}
.doc p + p {
  margin-top: var(--space-4);
}
.doc a:not(.link-mono) {
  color: var(--electric-500);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.doc__back {
  margin-top: var(--space-9);
  padding-top: var(--space-6);
  border-top: var(--rule);
}
.footer--min {
  padding-top: var(--space-7);
}
.footer--min .footer__legal {
  border-top: 0;
}

/* --------------------------------------------------------------------------
   FOOTER — same cropped wordmark, daylight values
   -------------------------------------------------------------------------- */
/* Same deep grey as the dark theme: on paper it stops being a ghost and
   reads as a deliberate sign-off, which is the point of the new spec. */
.footer__mark-text {
  color: #252c3a;
}
.footer__division {
  margin-top: var(--space-5);
  max-width: 40ch;
}

/* --------------------------------------------------------------------------
   MOTION — medium. Fades, slides, counters, a timeline that draws itself.
   No pinning, no cinematic scrub. Every from-state is set by edu.js at
   runtime, never here, so with no JS the page is simply complete.
   -------------------------------------------------------------------------- */
.edu-anim .chat--edu .chat__typing {
  display: inline-flex;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .timeline {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .dash-mock__top {
    grid-template-columns: minmax(0, 1fr);
  }
  .srcmap__lines {
    display: none;
  }
  .srcmap__answer {
    justify-self: start;
    margin-top: var(--space-5);
  }
  .engines li {
    grid-template-columns: 72px minmax(0, 1fr) 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .timeline__veil {
    display: none;
  }
}
