/* padho.ai — For Schools: the story scrolls beside a pinned class of 35. Chrome comes from site.css. */
.schools-page {
  --schools-morph: 600ms;
  --schools-top: calc(var(--masthead-height) + 24px);
}
.school-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 64px;
}
.school-stage {
  position: sticky;
  top: var(--schools-top);
  align-self: start;
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(100dvh - var(--schools-top) - 32px);
  min-height: 460px;
  margin-top: 32px;
  padding: 32px;
  border-radius: var(--landing-card-radius);
  background: var(--landing-cream);
}
#stageSvg {
  width: 100%;
  max-height: 100%;
  overflow: visible;
}
#stageSvg text {
  font-family: var(--font-sans);
  font-weight: 500;
}
#stageSvg .teacher-label {
  letter-spacing: .15em;
}
.dot {
  transition: fill var(--schools-morph),opacity var(--schools-morph),transform var(--schools-morph) var(--ease-move);
}
.fan line,.kg,.school-stage circle {
  transition: opacity var(--schools-morph),stroke var(--schools-morph);
}
.pulse {
  animation: schools-pulse 1.8s ease-in-out infinite;
}
@keyframes schools-pulse {
  50% {
    opacity: .45;
  }
}
.ask-chip {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  padding: 16px;
  border: var(--stroke-default) solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-screen) var(--ease-move);
}
.ask-q {
  font-size: var(--text-h3);
  line-height: var(--text-h3--line-height);
}
.ask-a {
  margin-top: 8px;
  color: var(--color-text-muted);
  font-size: var(--text-body-sm);
  line-height: var(--text-body-sm--line-height);
}
.ask-a b {
  color: var(--color-danger-text);
  font-weight: 600;
}
.stage-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  color: var(--color-text-muted);
  font-size: var(--text-body-sm);
  line-height: var(--text-body-sm--line-height);
  text-align: center;
  transition: opacity var(--duration-screen);
}
.stage-caption b {
  color: var(--color-text);
  font-weight: 600;
}

.beat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100dvh - var(--schools-top));
  padding-block: 64px;
}
.kicker {
  margin-bottom: 16px;
  color: var(--color-text-muted);
  font-size: var(--text-overline);
  line-height: var(--text-overline--line-height);
  font-weight: var(--text-overline--font-weight);
  letter-spacing: var(--text-overline--letter-spacing);
  text-transform: uppercase;
}
.beat h1,.beat h2 {
  margin-bottom: 16px;
  color: var(--color-text);
  font-weight: 600;
}
.beat h1 {
  font-size: var(--landing-heading);
  line-height: var(--landing-heading-leading);
  letter-spacing: var(--landing-heading-tracking);
}
.beat h2 {
  font-size: 40px;
  line-height: 46px;
  letter-spacing: -1px;
}
.beat em {
  font-style: normal;
  color: var(--color-brand-vermilion);
}
.beat p:not(.kicker) {
  color: var(--color-text-muted);
  font-size: 18px;
  line-height: 28px;
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--schools-morph) var(--ease-enter),transform var(--schools-morph) var(--ease-enter);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.proof {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.proof li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 24px;
  border: var(--stroke-default) solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}
.proof strong {
  font-size: var(--text-h1);
  line-height: var(--text-h1--line-height);
  font-weight: 600;
}
.proof span {
  color: var(--color-text-muted);
  font-size: var(--text-body-sm);
  line-height: var(--text-body-sm--line-height);
}
.button.walkthrough {
  align-self: flex-start;
  margin-top: 24px;
  padding-inline: 32px;
}

@media(max-width:1023px) {
  .schools-page {
    --schools-top: var(--masthead-height);
  }
  .school-layout {
    display: block;
  }
  /* Narrow screens pin a shorter stage under the masthead; its shadow paints the page colour above it so
   * the story never shows through the gap while it scrolls underneath. */
  .school-stage {
    z-index: 3;
    height: 300px;
    min-height: 0;
    margin-top: 16px;
    padding: 16px;
    box-shadow: 0 calc(-1*var(--schools-top)) 0 var(--color-surface);
  }
  .ask-chip {
    top: auto;
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 12px;
  }
  .ask-q {
    font-size: var(--text-body);
    line-height: var(--text-body--line-height);
  }
  .stage-caption {
    display: none;
  }
  .beat {
    min-height: 70dvh;
    padding-block: 48px;
  }
}
@media(max-width:639px) {
  .schools-page {
    --schools-top: calc(var(--masthead-height) + 12px);
  }
  .school-stage {
    height: 240px;
    margin-top: 12px;
    padding: 8px;
  }
  /* Short enough to sit over the teacher row, clear of the three stuck rows above it. */
  .ask-chip {
    bottom: 8px;
    left: 8px;
    right: 8px;
    padding: 8px 12px;
  }
  .ask-q {
    font-size: var(--text-body-sm);
    line-height: var(--text-body-sm--line-height);
  }
  .ask-a {
    margin-top: 2px;
    font-size: var(--text-caption);
    line-height: var(--text-caption--line-height);
  }
  .beat h2 {
    font-size: 26px;
    line-height: 32px;
    letter-spacing: -.5px;
  }
  .beat p:not(.kicker) {
    font-size: var(--text-body);
    line-height: var(--text-body--line-height);
  }
  .proof strong {
    font-size: var(--text-h2);
    line-height: var(--text-h2--line-height);
  }
}
@media(prefers-reduced-motion:reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}
