/* Public pages share the homepage palette, Nunito scale and controls. */
:where(.sup-wrap, .school-layout) :where(h1, h2, p) { margin: 0; }
:where(.sup-wrap, .school-layout) em { font-style: normal; }
:where(.sup-wrap, .school-layout) button,
:where(.sup-wrap, .school-layout) input,
:where(.sup-wrap, .school-layout) textarea,
:where(.sup-wrap, .school-layout) select { font: inherit; }
:where(.sup-wrap, .school-layout) button:focus-visible,
:where(.sup-wrap, .school-layout) input:focus-visible,
:where(.sup-wrap, .school-layout) textarea:focus-visible,
:where(.sup-wrap, .school-layout) select:focus-visible { outline: 2px solid #127caf; outline-offset: 3px; }

/* Schools: retain the interactive classroom, within the shared page shell. */
.school-layout { max-width: 1060px; margin: auto; padding: 0 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
#stage { position: sticky; top: 0; align-self: start; height: calc(100dvh - 88px); min-height: 460px; display: flex; align-items: center; justify-content: center; }
#stageSvg { width: 100%; max-height: 100%; overflow: visible; }
#askchip { position: absolute; left: 50%; top: 12%; transform: translateX(-50%); width: 100%; padding: 16px; background: var(--soft); border: 1px solid #d1eab9; border-radius: 12px; opacity: 0; transition: opacity .5s; pointer-events: none; }
#askchip .q { font-size: 18px; line-height: 1.5; }
#askchip .a { margin-top: 8px; color: var(--darkgreen); font-size: 15px; line-height: 1.5; }
#askchip b { font-weight: 700; }
#cap { position: absolute; left: 0; right: 0; bottom: 32px; text-align: center; color: var(--muted); font-size: 15px; line-height: 1.5; transition: opacity .4s; }
#cap b { color: var(--darkgreen); font-weight: 700; }
#story { min-width: 0; }
.beat { min-height: calc(100dvh - 88px); display: flex; flex-direction: column; justify-content: center; padding: 64px 0; }
.beat .kicker { margin-bottom: 16px; color: var(--muted); font-size: 15px; line-height: 1.5; font-weight: 700; }
.beat h1, .beat h2 { margin-bottom: 16px; }
.beat p { color: var(--muted); font-size: 18px; line-height: 1.5; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s, transform .9s; }
.reveal.in { opacity: 1; transform: none; }
.proof { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.pcard { padding: 16px 0; border-bottom: 1px solid var(--line); }
.pcard .big { font-size: 24px; line-height: 1.4; font-weight: 800; color: var(--darkgreen); }
.pcard .src { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.stat { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); }
.stat b { font-weight: 700; color: var(--darkgreen); }
.btn, .sup-submit { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 24px; border: 0; border-bottom: 4px solid var(--darkgreen); border-radius: 12px; background: var(--green); color: #fff; font-size: 19px; line-height: 1.4; font-weight: 900; text-decoration: none; cursor: pointer; }
.btn { margin-top: 24px; }
.btn:hover, .sup-submit:hover:not(:disabled) { background: var(--darkgreen); }
.dot { transition: fill .65s, opacity .65s, transform .55s; }
#fan line { transition: opacity .75s, stroke .6s; }
#teacher, #kg { transition: opacity .6s; }
#kg * { transition: opacity .55s, fill .55s; }
.pulse { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* Support: the same reading width and form hierarchy as our legal pages. */
.sup-wrap { max-width: 760px; margin: auto; padding: 48px 32px 64px; overflow-wrap: break-word; }
.sup-intro { margin-top: 16px; color: var(--muted); font-size: 18px; line-height: 1.5; }
.sup-rule { height: 1px; background: var(--line); margin: 32px 0; }
.sup-toggle { display: flex; gap: 12px; margin: 32px 0; }
.sup-toggle button { flex: 1; min-height: 52px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--muted); font-weight: 600; cursor: pointer; }
.sup-toggle button:hover { border-color: #d1eab9; color: var(--ink); }
.sup-toggle button.active { border-color: var(--green); background: var(--soft); color: var(--ink); }
.sup-grid { display: grid; gap: 24px; }
.sup-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sup-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; min-width: 0; }
.sup-label { color: var(--ink); font-size: 18px; line-height: 1.5; font-weight: 600; }
.sup-label .opt { color: var(--muted); font-size: 15px; font-weight: 400; }
.sup-field { width: 100%; min-width: 0; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); padding: 12px; }
.sup-field::placeholder, .sup-phone input::placeholder { color: var(--muted); }
textarea.sup-field { resize: vertical; }
.sup-field:hover, .sup-phone:hover { border-color: #d1eab9; }
.sup-phone { min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.sup-phone:focus-within { outline: 2px solid #127caf; outline-offset: 3px; }
.sup-phone .cc { color: var(--muted); }
.sup-phone input { min-width: 0; width: 100%; padding: 12px 0; border: 0; background: transparent; color: var(--ink); }
.sup-phone input:focus-visible { outline: 0; }
.sup-flexend { display: flex; gap: 12px; align-items: flex-end; }
.sup-submit { width: 100%; margin-top: 8px; font-size: 19px; font-weight: 900; }
.sup-mini, .sup-linkbtn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px; border-radius: 12px; border: 1px solid #d1eab9; background: #fff; color: var(--ink); font-weight: 600; cursor: pointer; }
.sup-mini:hover:not(:disabled), .sup-linkbtn:hover:not(:disabled) { background: var(--soft); }
.sup-mini-solid { background: var(--green); color: #fff; border-color: var(--darkgreen); }
.sup-mini-solid:hover:not(:disabled) { background: var(--darkgreen); }
.sup-wrap button:disabled, .sup-wrap input:disabled { opacity: .5; cursor: not-allowed; }
.sup-attach { width: 100%; min-height: 52px; padding: 12px 16px; border: 1px dashed #d1eab9; border-radius: 12px; background: #fff; color: var(--darkgreen); cursor: pointer; }
.sup-attach:hover { background: var(--soft); }
.sup-filebox { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.sup-filebox img { width: 48px; height: 48px; object-fit: cover; border-radius: 12px; }
.sup-filebox .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.sup-err { margin-top: 8px; color: #dc2626; font-size: 15px; line-height: 1.5; }
.sup-hint { color: var(--muted); font-size: 15px; line-height: 1.5; }
.sup-otp { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.sup-otp .between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sup-verified { margin-left: 8px; color: var(--darkgreen); font-size: 15px; }
.sup-contact { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.sup-contact a { color: var(--darkgreen); text-underline-offset: 3px; }
.sup-done-title { color: var(--darkgreen); font-size: 24px; line-height: 1.4; font-weight: 800; }
#done { margin-top: 32px; }
#doneBody { margin-bottom: 24px; }
.hidden { display: none !important; }

@media (max-width: 820px) {
  .school-layout { display: block; }
  #stage { z-index: 3; height: 280px; min-height: 0; background: #fff; border-bottom: 1px solid var(--line); }
  #stageSvg { height: 100%; width: 100%; }
  #askchip { top: auto; bottom: 16px; }
  #askchip .q { font-size: 15px; }
  #cap { display: none; }
  .beat { min-height: auto; padding: 64px 0; }
}
@media (max-width: 720px) {
  .school-layout { padding: 0 24px; }
  .sup-wrap { padding: 32px 24px 48px; }
}
@media (max-width: 560px) {
  .sup-grid.two { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sup-toggle button { padding: 12px; }
  .sup-flexend { flex-wrap: wrap; }
  .sup-flexend .sup-phone, .sup-flexend .sup-field { flex-basis: 100%; }
  #stage { height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .reveal, .dot, #fan line, #teacher, #kg, #kg *, #askchip, #cap { transition: none; }
  .pulse { animation: none; }
}
