/* Skoolwright landing page.
   Layout: one column of wide sections; the hero and "Who it's for" split copy and an illustration side by side.
   Look: the product's own warm ground and school navy, with a marigold highlight; Bricolage Grotesque for headings, Figtree for text.
   Every illustration rests in its finished state; animation only replays it (and is off with reduced motion). */
:root {
  --bg: #F7F5F2; --bg2: #EFEBE5; --surface: #FFFFFF; --ink: #1C1917; --muted: #57534E; --line: #E7E3DD;
  --navy: #1E3A8A; --navy-deep: #172C68; --on-navy: #FFFFFF; --link: #1E3A8A;
  --gold: #F2A900; --gold-soft: #FDF0CC; --on-gold: #1C1917;
  --teach: #B7791F; --teach-soft: #FDF0CC; --prin: #1D4ED8; --prin-soft: #E3EBFD;
  --mgmt: #6D28D9; --mgmt-soft: #EFE9FC; --par: #047857; --par-soft: #DDF5EA;
  --rose: #BE185D; --rose-soft: #FCE7F3; --sky: #0369A1; --sky-soft: #E0F2FE; --teal: #0F766E; --teal-soft: #CCFBF1;
  --ok: #15803D; --ok-soft: #DCFCE7; --warn: #B45309; --warn-soft: #FEF3C7; --off: #D6D1CA;
  --shadow: 0 18px 40px -22px rgba(28, 25, 23, .45);
  --display: "Bricolage Grotesque", Figtree, system-ui, sans-serif;
  --text: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11100E; --bg2: #181613; --surface: #1C1A17; --ink: #F5F5F4; --muted: #A8A29E; --line: #2E2A26;
    --navy: #9DB0E8; --navy-deep: #1B2D63; --on-navy: #0C0A09; --link: #B4C3EE;
    --gold: #F5C04A; --gold-soft: #3A2E10; --on-gold: #1C1917;
    --teach: #F5C04A; --teach-soft: #3A2E10; --prin: #93C5FD; --prin-soft: #172554;
    --mgmt: #C4B5FD; --mgmt-soft: #2E1065; --par: #6EE7B7; --par-soft: #052E1F;
    --rose: #F9A8D4; --rose-soft: #4A1030; --sky: #7DD3FC; --sky-soft: #0C2F45; --teal: #5EEAD4; --teal-soft: #0B3330;
    --ok: #86EFAC; --ok-soft: #14301F; --warn: #FCD34D; --warn-soft: #3A2A0C; --off: #3A3632;
    --shadow: 0 18px 40px -22px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #11100E; --bg2: #181613; --surface: #1C1A17; --ink: #F5F5F4; --muted: #A8A29E; --line: #2E2A26;
  --navy: #9DB0E8; --navy-deep: #1B2D63; --on-navy: #0C0A09; --link: #B4C3EE;
  --gold: #F5C04A; --gold-soft: #3A2E10; --on-gold: #1C1917;
  --teach: #F5C04A; --teach-soft: #3A2E10; --prin: #93C5FD; --prin-soft: #172554;
  --mgmt: #C4B5FD; --mgmt-soft: #2E1065; --par: #6EE7B7; --par-soft: #052E1F;
  --rose: #F9A8D4; --rose-soft: #4A1030; --sky: #7DD3FC; --sky-soft: #0C2F45; --teal: #5EEAD4; --teal-soft: #0B3330;
    --ok: #86EFAC; --ok-soft: #14301F; --warn: #FCD34D; --warn-soft: #3A2A0C; --off: #3A3632;
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.03em; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.05; font-weight: 800; }
h3 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.1; font-weight: 800; }
p { margin: 0; }
a { color: var(--link); }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--surface); padding: 8px 14px; border-radius: 10px; z-index: 20; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; padding: 13px 22px; min-height: 48px;
  font: 700 16px var(--text); text-decoration: none; background: var(--navy); color: var(--on-navy); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-sm { padding: 9px 16px; min-height: 40px; font-size: 15px; }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 11; background: var(--bg); }
.nav { display: flex; align-items: center; gap: 22px; padding-block: 14px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font: 800 21px/1 var(--display); letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.logo svg { width: 30px; height: 30px; }
.logo-bg { fill: var(--navy); } .logo-x { stroke: var(--bg); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; fill: none; } .logo-dot { fill: var(--gold); }
.links { display: flex; gap: 24px; margin-left: auto; }
.links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.links a:hover { color: var(--ink); }
.tog { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.tog svg { width: 18px; height: 18px; fill: currentColor; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-block: 48px 64px; }
.eyebrow, .kicker { font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kicker { margin-bottom: 12px; }
.hero h1 { font-size: clamp(44px, 6.6vw, 82px); line-height: .96; font-weight: 800; letter-spacing: -.04em; margin: 16px 0 22px; }
.hl { position: relative; white-space: nowrap; z-index: 0; }
.hl::after { content: ""; position: absolute; left: -3px; right: -5px; bottom: .05em; height: .27em; background: var(--gold); border-radius: 5px; z-index: -1; transform-origin: left; animation: swipe 1s .35s both cubic-bezier(.2, .8, .2, 1); }
@keyframes swipe { from { transform: scaleX(0); } }
.lead { font-size: 19px; color: var(--muted); max-width: 33em; margin-bottom: 30px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero art: phases set on #hero by main.js (data-phase = mess | gather | hub). At rest: hub. */
.hero-art { position: relative; aspect-ratio: 1 / .95; width: 100%; max-width: 540px; justify-self: center; container-type: inline-size; }
.hero-art > * { font-size: clamp(10px, 2.9cqi, 15px); }
.hero-art::before { content: ""; position: absolute; left: 50%; top: 50%; width: 62%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(closest-side, var(--gold-soft), transparent); opacity: .9; }
.hero-art::after { content: ""; position: absolute; left: 50%; top: 50%; width: 40%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: 2px dashed var(--line); }
.bit { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 1em; padding: .8em 1em; box-shadow: var(--shadow);
  width: 13em; transform: translate(0, 0) rotate(var(--r)) scale(1); transition: left .9s cubic-bezier(.6, 0, .3, 1), top .9s cubic-bezier(.6, 0, .3, 1), transform .9s cubic-bezier(.6, 0, .3, 1), opacity .6s .3s; }
.bit b { display: block; font-size: .95em; margin-bottom: .45em; }
.b-reg { left: 2%; top: 4%; --r: -6deg; }
.b-reg i { display: block; height: 1px; background: var(--line); margin: .55em 0; }
.b-reg i:nth-child(odd) { background: color-mix(in srgb, var(--warn) 45%, var(--line)); }
.b-xls { left: 56%; top: 0; --r: 5deg; width: 12em; }
.b-xls .cells { display: block; height: 4.2em; border-radius: .4em; background:
  linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 1.05em, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 2.4em 100%, var(--ok-soft); }
.b-grp { left: 0; top: 62%; --r: 4deg; width: 12em; }
.b-grp span { display: inline-block; background: var(--ok); color: var(--bg); border-radius: 99px; font-weight: 700; font-size: .78em; padding: .1em .6em; }
.b-note { left: 58%; top: 66%; --r: -4deg; width: 11.5em; background: var(--gold-soft); }
.b-note b { letter-spacing: .12em; }
.b-note span { font-size: .9em; color: var(--muted); }
.b-sticky { left: 33%; top: 40%; --r: 8deg; width: 9.5em; background: var(--gold); color: var(--on-gold); font-weight: 700; border: 0; }
.core { position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; translate: -50% -50%; filter: drop-shadow(0 18px 30px rgba(30, 58, 138, .35)); transition: transform .6s cubic-bezier(.3, 1.5, .5, 1), opacity .3s; z-index: 2; }
.core svg { width: 100%; height: 100%; display: block; }
.spokes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.spokes path { stroke: var(--line); stroke-width: .5; stroke-dasharray: 1.2 1.2; fill: none; vector-effect: non-scaling-stroke; stroke-width: 2; transition: opacity .5s; }
.who { position: absolute; display: flex; align-items: center; gap: .7em; background: var(--surface); border: 1px solid var(--line); border-radius: 1.1em; padding: .65em 1em .65em .65em; box-shadow: var(--shadow); white-space: nowrap; transition: transform .5s cubic-bezier(.3, 1.5, .5, 1), opacity .4s; z-index: 3; }
.who small { display: block; color: var(--muted); font-size: .78em; font-weight: 600; line-height: 1.2; }
.who b { font-size: .95em; line-height: 1.25; }
.av { width: 2.4em; height: 2.4em; border-radius: .8em; display: grid; place-items: center; font-weight: 800; font-size: .95em; flex: none; }
.av-t { background: var(--teach-soft); color: var(--teach); } .av-p { background: var(--prin-soft); color: var(--prin); }
.av-m { background: var(--mgmt-soft); color: var(--mgmt); } .av-g { background: var(--par-soft); color: var(--par); }
.w-t { left: 0; top: 7%; } .w-p { right: 0; top: 11%; } .w-m { left: 2%; bottom: 8%; } .w-g { right: 0; bottom: 12%; }

/* Phases */
.hero-art .bit { opacity: 0; transform: rotate(0) scale(.15); left: 40%; top: 42%; }
.hero-art[data-phase="mess"] .b-reg { left: 2%; top: 4%; } .hero-art[data-phase="mess"] .b-xls { left: 56%; top: 0; }
.hero-art[data-phase="mess"] .b-grp { left: 0; top: 62%; } .hero-art[data-phase="mess"] .b-note { left: 58%; top: 66%; }
.hero-art[data-phase="mess"] .b-sticky { left: 33%; top: 40%; }
.hero-art[data-phase="mess"] .bit { opacity: 1; transform: rotate(var(--r)) scale(1); transition-delay: 0s; animation: bob 3s ease-in-out infinite alternate; }
.hero-art[data-phase="mess"] .bit:nth-child(2) { animation-delay: -1s; } .hero-art[data-phase="mess"] .bit:nth-child(3) { animation-delay: -2s; }
@keyframes bob { to { translate: 0 -8px; } }
.hero-art[data-phase="mess"] .core { transform: scale(0); opacity: 0; }
.hero-art[data-phase="gather"] .core { transition-delay: .5s; }
.hero-art[data-phase="mess"] .who, .hero-art[data-phase="gather"] .who { transform: scale(.6); opacity: 0; }
.hero-art[data-phase="mess"] .spokes path, .hero-art[data-phase="gather"] .spokes path { opacity: 0; }
.hero-art[data-phase="hub"] .w-t { transition-delay: .1s; } .hero-art[data-phase="hub"] .w-p { transition-delay: .3s; }
.hero-art[data-phase="hub"] .w-m { transition-delay: .5s; } .hero-art[data-phase="hub"] .w-g { transition-delay: .7s; }
.hero-art[data-phase="hub"] .spokes path { animation: march 1.2s linear infinite; }
@keyframes march { to { stroke-dashoffset: -4.8; } }

/* "Replaces" strip */
.strip { border-block: 1px solid var(--line); background: var(--bg2); }
.strip-in { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; padding-block: 18px; font-weight: 600; color: var(--muted); }
.strip-in span { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); font-weight: 800; }

/* Sections */
.sec { padding-block: 96px 40px; }
section[id] { scroll-margin-top: 70px; }
.sec > h2 { max-width: 18em; }

/* Who it's for */
.aud-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 34px 0 30px; }
.at { border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 10px 18px; min-height: 44px; font: 700 16px var(--text); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.at::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.at-t { --c: var(--teach); } .at-p { --c: var(--prin); } .at-m { --c: var(--mgmt); } .at-g { --c: var(--par); }
.at[aria-selected="true"] { color: var(--ink); border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); }
[hidden] { display: none !important; }
.aud { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; min-height: 420px; }
.aud-copy p { color: var(--muted); margin: 14px 0 22px; font-size: 18px; max-width: 30em; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 7px; background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%2315803D' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.art { position: relative; aspect-ratio: 1 / .82; background: var(--bg2); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; container-type: inline-size; }
.art > * { font-size: clamp(10px, 2.8cqi, 15px); }

/* Replay helper: an element with --d animates in after that delay when its panel has .play */
.play .chip, .play .pin, .play .bub { animation: rise .55s var(--d, 0s) both cubic-bezier(.3, 1.4, .5, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.92); } }

/* Teachers: the dial fills as each saving lands */
.dial { position: absolute; left: 50%; top: 50%; width: 46%; translate: -50% -50%; transform: rotate(-90deg); overflow: visible; }
.dial-bg { fill: var(--surface); stroke: var(--line); stroke-width: 16; }
.dial-fg { fill: none; stroke: var(--teach); stroke-width: 16; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.play .dial-fg { animation: fill 3.2s .3s both cubic-bezier(.4, 0, .2, 1); }
@keyframes fill { from { stroke-dashoffset: 100; } }
.dial-mid { position: absolute; left: 50%; top: 50%; translate: -50% -50%; text-align: center; display: grid; }
.dial-mid b { font: 800 3.2em/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.dial-mid small { color: var(--muted); font-weight: 600; font-size: .85em; }
.dial-mid em { font-style: normal; font-size: .72em; color: var(--muted); margin-top: .3em; }
.chip { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 1em; padding: .55em .8em; display: flex; gap: .55em; align-items: center; font-weight: 700; font-size: .95em; box-shadow: var(--shadow); white-space: nowrap; }
.chip span { color: var(--ok); font-variant-numeric: tabular-nums; } .chip span::after { content: " min"; font-weight: 600; }
.chip i, .pin i { width: .75em; height: .75em; border-radius: 50%; display: block; flex: none; }
.ic-ops { background: #3B82F6; } .ic-conn { background: #10B981; } .ic-acad { background: #8B5CF6; } .ic-warn { background: #F59E0B; }
.c1 { left: 4%; top: 5%; --d: .4s; } .c2 { right: 4%; top: 15%; --d: 1.1s; } .c3 { left: 4%; bottom: 15%; --d: 1.8s; } .c4 { right: 4%; bottom: 5%; --d: 2.5s; }

/* Principal: the school's windows light up as classes report in */
.school { position: absolute; left: 4%; bottom: 6%; width: 58%; }
.roof { fill: var(--navy-deep); } .flag-pole { fill: var(--muted); } .flag { fill: var(--gold); }
.wall { fill: var(--surface); stroke: var(--line); stroke-width: 2; } .door { fill: var(--bg2); stroke: var(--line); stroke-width: 2; }
.wins rect { fill: var(--ok-soft); stroke: var(--ok); stroke-width: 1.5; rx: 5; }
.play .wins rect { animation: lit .4s var(--d) both; }
@keyframes lit { from { fill: var(--bg2); stroke: var(--line); } }
.wins rect.cover { fill: var(--warn-soft); stroke: var(--warn); }
.play .wins rect.cover { animation: cover 3.2s .2s both; }
@keyframes cover { 0%, 55% { fill: var(--bg2); stroke: var(--line); } 60%, 85% { fill: var(--warn-soft); stroke: var(--warn); } 100% { fill: var(--ok-soft); stroke: var(--ok); } }
.play .wins rect.cover { fill: var(--ok-soft); stroke: var(--ok); }
.pin { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: .9em; padding: .5em .8em; font-weight: 700; font-size: .9em; box-shadow: var(--shadow); display: flex; gap: .5em; align-items: center; white-space: nowrap; }
.p1 { left: 5%; top: 6%; --d: 2.4s; } .p2 { left: 9%; top: 19%; --d: 3.1s; }
.stack { position: absolute; right: 4%; top: 30%; width: 32%; display: grid; gap: .6em; }
.ap { background: var(--surface); border: 1px solid var(--line); border-radius: .9em; padding: .6em .7em; font-weight: 700; font-size: .82em; line-height: 1.25; box-shadow: var(--shadow); }
.ap span { display: block; margin-top: .35em; color: var(--ok); font-size: .9em; }
.ap span::before { content: "✓ "; }
.play .ap { animation: rise .5s var(--d) both; } .play .ap span { animation: stamp .35s calc(var(--d) + .6s) both cubic-bezier(.3, 1.8, .5, 1); }
@keyframes stamp { from { opacity: 0; transform: scale(1.8); } }
.ap:nth-child(1) { --d: 1s; } .ap:nth-child(2) { --d: 1.7s; } .ap:nth-child(3) { --d: 2.4s; }
.ap span { display: block; transform-origin: left; }

/* Management: schools with their own colours, figures rising; modules switched per school */
.art-mgmt { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 4%; padding: 6% 7% 31%; }
.campus { display: grid; justify-items: center; gap: .4em; text-align: center; }
.campus b { font-size: .85em; }
.campus svg { width: 70%; } .campus svg path { fill: var(--k); } .campus svg rect { fill: var(--surface); stroke: var(--k); stroke-width: 2; }
.k1 { --k: var(--prin); } .k2 { --k: var(--par); } .k3 { --k: var(--teach); }
.bars { display: flex; align-items: end; gap: 6%; height: 8em; width: 80%; }
.bars i { flex: 1; background: color-mix(in srgb, var(--k) 70%, transparent); border-radius: .35em .35em .1em .1em; height: var(--h); }
.play .bars i { animation: grow .9s var(--d) both cubic-bezier(.3, 1.2, .5, 1); transform-origin: bottom; }
@keyframes grow { from { transform: scaleY(0); } }
.k1 .bars i:nth-child(1) { --h: 40%; } .k1 .bars i:nth-child(2) { --h: 58%; } .k1 .bars i:nth-child(3) { --h: 72%; } .k1 .bars i:nth-child(4) { --h: 90%; }
.k2 .bars i:nth-child(1) { --h: 30%; } .k2 .bars i:nth-child(2) { --h: 48%; } .k2 .bars i:nth-child(3) { --h: 66%; } .k2 .bars i:nth-child(4) { --h: 78%; }
.k3 .bars i:nth-child(1) { --h: 20%; } .k3 .bars i:nth-child(2) { --h: 36%; } .k3 .bars i:nth-child(3) { --h: 50%; } .k3 .bars i:nth-child(4) { --h: 64%; }
.bars i:nth-child(1) { --d: .2s; } .bars i:nth-child(2) { --d: .4s; } .bars i:nth-child(3) { --d: .6s; } .bars i:nth-child(4) { --d: .8s; }
.summary { position: absolute; left: 7%; right: 7%; bottom: 6%; background: var(--surface); border: 1px solid var(--line); border-radius: 1em; padding: .7em 1em; display: flex; flex-wrap: wrap; gap: .3em 1.2em; align-items: baseline; box-shadow: var(--shadow); font-size: .85em; }
.summary b { flex-basis: 100%; font-size: .95em; color: var(--par); }
.summary span { color: var(--muted); font-weight: 600; } .summary em { font-style: normal; color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.play .summary { animation: rise .55s 1.4s both cubic-bezier(.3, 1.4, .5, 1); }

/* Parents: messages arrive on a phone */
.msgphone { position: absolute; left: 50%; top: 6%; width: 66%; height: 100%; translate: -50% 0; background: var(--surface); border: .55em solid var(--ink); border-bottom: 0; border-radius: 2.2em 2.2em 0 0; padding: .9em .8em; display: flex; flex-direction: column; gap: .5em; }
.mp-head { display: flex; gap: .6em; align-items: center; padding-bottom: .6em; border-bottom: 1px solid var(--line); }
.mp-head b { display: block; font-size: .85em; line-height: 1.2; } .mp-head small { color: var(--muted); font-size: .72em; }
.av-sch { background: var(--navy); color: var(--on-navy); width: 2.1em; height: 2.1em; }
.bub { background: var(--bg2); border-radius: .3em 1em 1em 1em; padding: .5em .75em; font-size: .76em; line-height: 1.35; max-width: 90%; }
.bub b { display: block; font-size: .95em; margin-bottom: .2em; }
.bub.mine { align-self: flex-end; background: var(--par-soft); color: var(--par); font-weight: 700; border-radius: 1em .3em 1em 1em; }
.reply { display: flex; gap: .4em; margin-top: .5em; } .reply i { font-style: normal; flex: 1; text-align: center; border: 1px solid var(--line); background: var(--surface); border-radius: .6em; padding: .2em; font-weight: 700; color: var(--link); }
.m1 { --d: .3s; } .m2 { --d: 1.2s; } .m3 { --d: 2.1s; } .m4 { --d: 3s; } .m5 { --d: 3.7s; }

/* A school day: on wide screens a sticky stage driven by scrolling; elsewhere a plain list */
.day { background: var(--navy-deep); color: #F5F5F4; padding-block: 96px; margin-top: 60px; }
.day .kicker { color: #C7D2F0; }
.day h2 { max-width: 16em; }
.sky { position: relative; margin: 36px 0 8px; height: 170px; }
.sky svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.arc, .arc-done { fill: none; stroke-width: 3; vector-effect: non-scaling-stroke; }
.arc { stroke: rgba(255, 255, 255, .18); stroke-dasharray: 2 8; }
.arc-done { stroke: #F5C04A; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 100)); stroke-linecap: round; }
.sun { position: absolute; width: 34px; height: 34px; border-radius: 50%; background: #F5C04A; translate: -50% -50%; box-shadow: 0 0 0 10px rgba(245, 192, 74, .18), 0 0 40px 10px rgba(245, 192, 74, .35); left: 97%; top: 91%; z-index: 2; }
.stop { position: absolute; translate: -50% -50%; font: 800 13px var(--display); color: #C7D2F0; background: var(--navy-deep); border: 2px solid rgba(255, 255, 255, .2); border-radius: 99px; padding: 2px 9px; transition: color .3s, border-color .3s, background .3s; }
.stop.past { color: #F5C04A; border-color: rgba(245, 192, 74, .5); }
.stop.on { color: #1C1917; background: #F5C04A; border-color: #F5C04A; }
.moments { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.moments li { border-top: 3px solid rgba(255, 255, 255, .14); padding-top: 14px; }
.moments time { font: 800 22px var(--display); color: #F5C04A; letter-spacing: -.02em; }
.moments b { display: block; margin: 4px 0 6px; font-size: 18px; line-height: 1.3; }
.moments span { color: #C9CCD6; font-size: 16px; line-height: 1.5; display: block; }
@media (min-width: 961px) {
  .day.scrolly { padding-block: 0; }
  .day.scrolly .day-track { height: 360vh; }
  .day.scrolly .day-stick { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
  .day.scrolly .day-stick > .wrap { width: 100%; }
  .day.scrolly .moments { display: grid; grid-template-columns: 1fr; min-height: 150px; }
  .day.scrolly .moments li { grid-area: 1 / 1; border: 0; padding: 0; display: grid; grid-template-columns: 150px 1fr; column-gap: 28px; align-items: start; max-width: 820px; margin: 0 auto;
    opacity: 0; transform: translateY(16px); transition: opacity .35s, transform .35s; }
  .day.scrolly .moments li.on { opacity: 1; transform: none; }
  .day.scrolly .moments time { font-size: 56px; line-height: 1; grid-row: span 2; text-align: right; }
  .day.scrolly .moments b { font: 800 30px/1.15 var(--display); letter-spacing: -.02em; margin: 0 0 8px; }
  .day.scrolly .moments span { font-size: 19px; }
}

/* Modules */
.mods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
.mod { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.mod:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--c); }
.mi { width: 46px; height: 46px; border-radius: 14px; background: var(--cs); color: var(--c); display: grid; place-items: center; }
.mi svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.mod:hover .mi svg { animation: wiggle .5s; }
@keyframes wiggle { 30% { transform: rotate(-8deg) scale(1.08); } 60% { transform: rotate(6deg); } }
.mod h3 { margin: 16px 0 2px; font-size: 22px; }
.mod > p { color: var(--muted); font-size: 15px; }
.mod ul { list-style: none; padding: 14px 0 0; margin: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 14.5px; font-weight: 600; }
.mod li { display: flex; gap: 8px; } .mod li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); margin-top: .55em; flex: none; }
.also { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.also div { border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; }
.also b { display: block; font-size: 17px; } .also span { color: var(--muted); font-size: 15px; }

/* Talk to us */
#talk { padding-block: 96px 80px; }
.talk { background: var(--navy-deep); color: #F5F5F4; border-radius: 32px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.kicker-on { color: #C7D2F0; }
.talk-copy > p { color: #D6DAE6; margin: 14px 0 24px; font-size: 18px; max-width: 30em; }
.plans { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.plans li { border: 1px solid rgba(255, 255, 255, .16); border-radius: 16px; padding: 12px 16px; color: #C9CCD6; }
.plans b { display: block; color: #FFFFFF; }
.form { background: var(--surface); color: var(--ink); border-radius: 22px; padding: 24px; display: grid; gap: 6px; }
.form label { font-weight: 700; font-size: 14px; margin-top: 8px; }
.form input, .form select { font: 500 16px var(--text); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 48px; width: 100%; }
.form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 8l4 4 4-4' fill='none' stroke='%2378716C' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.form input[aria-invalid="true"] { border-color: #DC2626; }
.form .btn { margin-top: 16px; width: 100%; }
.mail { margin-top: 22px; font-weight: 600; }
.mail a { color: #FFFFFF; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.form-note { font-size: 14px; color: var(--muted); min-height: 1.4em; }


/* Hero proof points */
.proof { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 700; font-size: 15px; }
.proof li { display: flex; align-items: center; gap: 8px; }
.proof li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.sub { color: var(--muted); font-size: 19px; max-width: 36em; margin-top: 14px; }

/* Make it yours: a control panel that recolours a school's app */
.yours { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.yours .ticks { margin-top: 26px; }
.panel { --school: #1E3A8A; position: relative; aspect-ratio: 1 / .9; background: var(--bg2); border: 1px solid var(--line); border-radius: 28px; container-type: inline-size; }
.panel > * { font-size: clamp(10px, 2.8cqi, 15px); }
.pn-phone { position: absolute; left: 7%; top: 8%; width: 38%; aspect-ratio: 9 / 17; background: var(--surface); border: .5em solid var(--ink); border-radius: 2em; overflow: hidden; box-shadow: var(--shadow); }
.pn-band { background: var(--school); color: #fff; padding: 1.6em .9em .9em; border-radius: 0 0 1.3em 1.3em; transition: background .6s; }
.pn-band b { display: block; font-size: .8em; } .pn-band small { font-size: .62em; opacity: .85; }
.pn-body { padding: .8em; display: grid; gap: .55em; }
.pn-body i { height: 2.2em; border-radius: .7em; background: var(--bg2); border: 1px solid var(--line); }
.pn-body .pn-btn { height: 1.8em; background: var(--school); border: 0; transition: background .6s; }
.pn-card { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 1em; padding: .8em 1em; box-shadow: var(--shadow); display: flex; flex-wrap: wrap; gap: .45em; align-items: center; }
.pn-card b { flex-basis: 100%; font-size: .9em; }
.pn-theme { right: 7%; top: 8%; width: 44%; }
.sw-row { display: flex; gap: .5em; }
.sw-row i { width: 1.8em; height: 1.8em; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .3s; }
.sw-row i:nth-child(1) { background: #1E3A8A; } .sw-row i:nth-child(2) { background: #9F1239; } .sw-row i:nth-child(3) { background: #166534; } .sw-row i:nth-child(4) { background: #6D28D9; }
.sw-row i.on { box-shadow: 0 0 0 2px var(--ink); }
.pn-role { right: 7%; top: 36%; width: 50%; }
.perm { font-size: .78em; font-weight: 700; padding: .25em .7em; border-radius: 99px; background: var(--mgmt-soft); color: var(--mgmt); }
.pn-rules { right: 7%; bottom: 8%; width: 58%; }
.pn-rules span { flex-basis: 100%; font-size: .8em; color: var(--muted); padding-left: 1.2em; position: relative; }
.pn-rules span::before { content: ""; position: absolute; left: 0; top: .45em; width: .6em; height: .6em; border-radius: 2px; background: var(--ok); }
.js .perm, .js .pn-rules span { transition: opacity .4s, transform .4s; }
.js .panel.pre .perm, .js .panel.pre .pn-rules span { opacity: 0; transform: translateX(-8px); }
.perm:nth-of-type(1) { transition-delay: .5s; } .perm:nth-of-type(2) { transition-delay: .7s; } .perm:nth-of-type(3) { transition-delay: .9s; }
.pn-rules span:nth-of-type(1) { transition-delay: 1.1s; } .pn-rules span:nth-of-type(2) { transition-delay: 1.3s; } .pn-rules span:nth-of-type(3) { transition-delay: 1.5s; }

/* Then and now: each row strikes the old way and writes in the new one as it arrives */
.vs { display: grid; margin-top: 36px; border-top: 1px solid var(--line); }
.vs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-block: 20px; border-bottom: 1px solid var(--line); align-items: center; }
.vs-row s { justify-self: start; color: var(--muted); font-size: 17px; text-decoration: none; background: linear-gradient(var(--muted), var(--muted)) no-repeat 0 55% / 100% 2px; transition: background-size .5s .25s; }
.vs-row b { font: 800 clamp(19px, 2vw, 24px)/1.25 var(--display); letter-spacing: -.02em; display: flex; gap: 12px; align-items: center; transition: opacity .5s .55s, transform .5s .55s; }
.vs-row b::before { content: ""; width: 26px; height: 26px; border-radius: 9px; flex: none; background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%2315803D' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.js .vs-row.pre s { background-size: 0 2px; }
.js .vs-row.pre b { opacity: 0; transform: translateX(-14px); }

/* Scroll effects (only with script; at rest everything shows) */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; background: var(--gold); transform-origin: left; transform: scaleX(var(--sp, 0)); }
.js [data-reveal].pre { opacity: 0; transform: translateY(30px); }
.js [data-reveal] { transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--rd, 0s); }
.strip s { text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) no-repeat 0 58% / 100% 3px; transition: background-size .5s var(--sd, 0s) cubic-bezier(.6, 0, .3, 1); }
.js .strip:not(.struck) s { background-size: 0 3px; }
.hero-art { transform: translateY(var(--py, 0)); }

/* Footer */
.foot { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; padding-block: 10px 48px; color: var(--muted); font-size: 14px; }
.logo-sm { font-size: 17px; } .logo-sm svg { width: 24px; height: 24px; }

/* Narrower screens */
@media (max-width: 960px) {
  .links { display: none; } .tog { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-block: 20px 48px; gap: 36px; }
  .aud { grid-template-columns: 1fr; gap: 28px; min-height: 0; }
  .art { order: -1; }
  .mods { grid-template-columns: repeat(2, 1fr); } .also { grid-template-columns: 1fr; }
  .talk { grid-template-columns: 1fr; }
  .yours { grid-template-columns: 1fr; gap: 32px; }
  .vs-row { grid-template-columns: 1fr; gap: 6px; }
  .sky { display: none; }
  .moments { grid-template-columns: 1fr; gap: 0; }
  .moments li { border-top: 0; border-left: 3px solid rgba(255, 255, 255, .14); padding: 0 0 22px 18px; transition: border-color .3s; }
  .moments li.on { border-left-color: #F5C04A; }
}
@media (max-width: 480px) {
  .nav .btn-sm { display: none; }
  .mods { grid-template-columns: 1fr; }
  .sec, #talk, .day { padding-block: 64px; }
  .art { aspect-ratio: 1 / .95; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
