/*
  The home page's own CSS (resources/views/site/home.blade.php): only what sits inside a visual, the card groups'
  panel heights and the nav's language pair. Everything else is the kit's (system.css, cards.css, layout.css).
*/

/* ---------- the small dropdowns: language in the nav, currency on the prices (site/partials/*-menu) */
.menu-pop { position: relative; }
.menu-pop > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border-radius: 99px; color: var(--ink); font: 500 14px/1 var(--font-text); cursor: pointer; user-select: none; transition: background .15s; }
.menu-pop > summary::-webkit-details-marker { display: none; }
.menu-pop > summary:hover, .menu-pop[open] > summary { background: color-mix(in oklab, var(--ink) 6%, transparent); }
.menu-pop > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.menu-pop__globe { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.3; color: var(--muted); }
.menu-pop__chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); transition: rotate .15s; }
.menu-pop[open] .menu-pop__chev { rotate: 180deg; }
.menu-pop__list { position: absolute; z-index: 60; top: calc(100% + 6px); right: 0; min-width: 200px; display: grid; gap: 2px; padding: 6px; border-radius: 14px; background: var(--p-bg); border: 1px solid color-mix(in oklab, var(--p-ink) 10%, transparent); box-shadow: 0 12px 32px -12px rgb(12 17 27 / .22), 0 2px 6px rgb(12 17 27 / .06); }
.menu-pop__list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; padding: 0 10px; border-radius: 9px; color: var(--p-ink); font: 400 14px/1.2 var(--font-text); }
.menu-pop__list a:hover { background: var(--p-surface); }
.menu-pop__list a[aria-current="true"] { font-weight: 500; background: var(--p-surface); }
.menu-pop__code { font: 500 12px/1 var(--font-mono); color: var(--p-muted); letter-spacing: .03em; }
.menu-pop--currency > summary { height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); background: var(--bg); }
.menu-pop--currency .menu-pop__list { left: 0; right: auto; }
.menu-pop__label { color: var(--muted); font-weight: 400; }
.menu-pop-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.menu-pop-note { font-size: var(--t-small); color: var(--muted); }
/* the language stays in the bar on a tablet and a phone (the kit keeps only the main button there, and on a phone
   with the action bar not even that): logo, language, menu button. The sheet still lists it with the other actions. */
@media (max-width: 1023px) {
  .nav:not(.is-open) .nav__actions > .menu-pop--lang { display: block; }
}
@media (max-width: 639px) {
  :root:has(> body > nav.actionbar) .nav:not(.is-open) .nav__actions { display: flex; margin-left: auto; }
  :root:has(> body > nav.actionbar) .nav:not(.is-open) .nav__actions > :not(.menu-pop--lang) { display: none; }
  :root:has(> body > nav.actionbar) .nav:not(.is-open) .nav__toggle { margin-left: 0; }
}
/* the footer's last line: the copyright, then the privacy notice and the terms */
.footer__legal-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.footer__legal-links a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in oklab, currentColor 35%, transparent); }
.footer__legal-links a:hover { color: var(--ink); }
.menu-card__panel { --p-h: 120px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.menu-exam { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 99px; background: #fff; color: var(--p-ink); box-shadow: 0 0 0 1px rgb(12 17 27 / .1); font: 500 13px/1 var(--font-mono); letter-spacing: .02em; }

/* ---------- hero window: the morning register, a light window shown whole (no coloured ground, no crop) */
.hero--centred .hero__window { flex: none; background: none; min-height: 0; overflow: visible; -webkit-mask: none; mask: none; border-radius: 0; padding-bottom: 8px; }
.hero--centred .hero__window > .ly-piece { position: relative; left: auto; top: auto; transform: none; width: min(920px, 100%); margin-inline: auto; }
.reg { box-shadow: 0 0 0 1px rgb(12 17 27 / .08), 0 1px 2px rgb(12 17 27 / .04), 0 32px 64px -32px rgb(12 17 27 / .28); }
.reg .d-win__bar b { color: #0c111b; font-weight: 500; }
.reg .d-win__bar .sp { flex: 1; }
.reg .d-win__body { grid-template-columns: 220px minmax(0, 1fr); min-height: 0; }
.reg__classes { border-right: 1px solid rgb(12 17 27 / .07); padding: 10px; display: grid; align-content: start; gap: 2px; background: #fafbfc; }
.reg__q { height: 30px; display: flex; align-items: center; padding: 0 8px; color: #6b7280; font-size: 13px; }
.reg__c { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 36px; padding: 0 8px; border-radius: 9px; font-size: 13px; }
.reg__c b { font-weight: 500; color: #0c111b; }
.reg__c.is-on { background: #fff; box-shadow: 0 0 0 1px rgb(12 17 27 / .08), 0 1px 2px rgb(12 17 27 / .05); }
.reg__ok { color: #16794a; font-variant-numeric: tabular-nums; }
.reg__now { color: var(--accent); }
.reg__wait { color: #8a909b; }
.reg__sheet { display: grid; align-content: start; gap: 6px; padding: 14px 18px; min-width: 0; }
.reg__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 40px; padding: 0 12px; border-radius: 10px; background: #f5f6f8; font-size: 14px; color: #0c111b; }
.reg__row em { font-style: normal; font-size: 13px; font-weight: 500; height: 26px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 99px; }
.reg__row .is-in { background: rgb(22 121 74 / .1); color: #16794a; }
.reg__row .is-out { background: rgb(190 58 34 / .1); color: #b4361f; }
.reg__note { font-size: 13px; color: #6b7280; padding: 2px 12px; }
.reg__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; padding: 10px 8px 4px 12px; border-top: 1px solid rgb(12 17 27 / .07); font-size: 13px; color: #4b5363; }
.reg__foot b { color: #0c111b; font-weight: 500; }
.reg__send { height: 30px; padding: 0 14px; border-radius: 99px; display: inline-flex; align-items: center; background: #0c111b; color: #fff; font-weight: 500; white-space: nowrap; }
@media (max-width: 1023px) { .reg .d-win__bar .sp ~ span { display: none; } }
@media (max-width: 639px) { .reg .d-win__body { grid-template-columns: minmax(0, 1fr); } .reg__classes { display: none; } .reg__sheet { padding: 12px; } }

/* ---------- app-frame (sections-library.md, app-frame) */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }

@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app .ui-win__side { display: none; }
  .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
}

/* the open claim */
.claim { padding: 20px 24px; display: grid; gap: 16px; align-content: start; font-size: 13px; }
.claim__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.claim__head b { display: block; font-weight: 500; font-size: 14px; color: var(--u-ink); }
.claim__head small { color: var(--u-muted); font-size: 13px; }
.claim__chip { height: 24px; padding: 0 10px; border-radius: 99px; display: inline-flex; align-items: center; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); font-weight: 500; }
.claim__amount { font: 500 32px/1 var(--font-display); letter-spacing: -0.02em; color: var(--u-ink); font-variant-numeric: tabular-nums; }
.claim__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 0; }
.claim__facts dt { color: var(--u-muted); }
.claim__facts dd { margin: 2px 0 0; color: var(--u-ink); }
.claim__code { font-family: var(--font-mono); letter-spacing: .02em; }
.claim__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.claim__acts span { height: 32px; padding: 0 14px; border-radius: 99px; display: inline-flex; align-items: center; font-weight: 500; background: var(--u-fill-2); color: var(--u-ink); }
.claim__acts .claim__go { background: var(--u-ink); color: var(--u-bg); }
.claim__label { color: var(--u-muted); margin-top: 4px; }
.claim__lines { display: grid; }
.claim__lines li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--u-line); color: var(--u-ink); font-variant-numeric: tabular-nums; }

/* ---------- the windows in cards: shown whole on a quiet grey, never cropped or faded */
.panel:not([data-fx], .panel--device), .panel { background: #eef0f3 !important; background-image: none !important; }
.panel:has(> .stage--whole) { min-height: 0; border-radius: var(--p-r); }
.stage.stage--whole { position: relative; inset: auto; display: flex; justify-content: center; align-items: flex-start; padding: 28px 24px; -webkit-mask: none; mask: none; }
.stage.stage--whole > * { position: relative; left: auto; right: auto; top: auto; width: 100%; max-width: var(--fit-max, 560px); }
.stage.stage--whole .ui { box-shadow: 0 0 0 1px rgb(12 17 27 / .07), 0 1px 2px rgb(12 17 27 / .04), 0 18px 40px -24px rgb(12 17 27 / .25); border-radius: 12px; background: #fff; }
@media (max-width: 639px) { .stage.stage--whole { padding: 16px 12px; } }

/* report card */
.rc { padding: 16px 18px; display: grid; gap: 2px; font-size: 13px; }
.rc__head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; color: var(--u-muted); }
.rc__head b { color: var(--u-ink); font-weight: 500; }
.rc__row { display: grid; grid-template-columns: minmax(0, 1fr) 40px 28px; gap: 8px; padding: 7px 0; border-top: 1px solid var(--u-line); color: var(--u-ink); }
.rc__mark { text-align: right; font-variant-numeric: tabular-nums; color: var(--u-muted); }
.rc__grade { text-align: center; font-weight: 500; }
.rc__total { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px solid var(--u-line); color: var(--u-ink); font-weight: 500; }
.rc__total span:first-child { color: var(--accent); }

/* timetable */
.tt { padding: 14px 16px; font-size: 13px; }
.tt__head { display: flex; justify-content: space-between; padding-bottom: 10px; color: var(--u-muted); }
.tt__head b { color: var(--u-ink); font-weight: 500; }
.tt__grid { display: grid; grid-template-columns: 44px repeat(4, minmax(0, 1fr)); gap: 4px; }
.tt__grid > span { color: var(--u-muted); padding: 4px 2px; }
.tt__grid > i { font-style: normal; padding: 8px; border-radius: 8px; background: var(--u-fill); color: var(--u-ink); min-height: 34px; }
.tt__grid > i.is-cover { background: color-mix(in srgb, var(--accent) 18%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent); }
.tt__grid > i small { display: block; color: var(--accent); font-size: 12px; margin-top: 2px; }
.tt__grid > i { padding-inline: 6px; }
/* a phone or a tablet (the card is half a row there): four days left each subject 30 to 46 pixels, too narrow for
   Literature or Geography. The window keeps its size and shows Tuesday to Thursday (the cover lesson is on
   Thursday), each name whole. */
@media (max-width: 1023px) {
  .tt__grid { grid-template-columns: 40px repeat(3, minmax(0, 1fr)); }
  .tt__grid > :nth-child(5n + 2) { display: none; }
  .tt__grid > i { overflow-wrap: anywhere; hyphens: auto; }
}
@media (max-width: 559px) {
  .tt { padding-inline: 12px; }
  .tt__grid { grid-template-columns: 36px repeat(3, minmax(0, 1fr)); }
  .tt__grid > i { padding-inline: 5px; font-size: 12px; }
}

/* certificate check */
.vf { padding: 18px; display: grid; gap: 12px; font-size: 13px; }
.vf__label { color: var(--u-muted); }
.vf__field { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 44px; padding: 0 6px 0 14px; border-radius: 10px; border: 1px solid var(--u-border); font-family: var(--font-mono); color: var(--u-ink); }
.vf__btn { height: 32px; padding: 0 14px; border-radius: 8px; display: inline-flex; align-items: center; background: var(--u-ink); color: var(--u-bg); font: 500 13px/1 var(--font-text); }
.vf__ok { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; padding: 12px; border-radius: 10px; background: rgb(22 121 74 / .08); color: var(--u-ink); line-height: 1.45; }
.vf__ok b { display: block; color: #16794a; font-weight: 500; }
.vf__tick { width: 24px; height: 24px; border-radius: 50%; background: #16794a; display: grid; place-items: center; }
.vf__tick svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* request form */
.rq { padding: 16px 18px; display: grid; gap: 4px; font-size: 13px; }
.rq__l { color: var(--u-muted); margin-top: 6px; }
.rq__f { height: 36px; display: flex; align-items: center; padding: 0 12px; border-radius: 8px; border: 1px solid var(--u-border); color: var(--u-ink); }

/* first register */
.fr { padding: 18px; display: grid; gap: 6px; font-size: 13px; }
.fr__k { color: var(--u-muted); }
.fr__k + .fr__n { margin-bottom: 4px; }
.fr__v { font: 500 32px/1 var(--font-display); color: var(--u-ink); font-variant-numeric: tabular-nums; }
.fr__v small { font-size: 16px; color: var(--u-muted); }
.fr__n { color: var(--u-ink); }
.fr__bar { height: 6px; border-radius: 99px; background: var(--u-fill-2); overflow: hidden; margin: 6px 0 14px; }
.fr__bar i { display: block; height: 100%; width: var(--v); background: var(--accent); border-radius: inherit; }

/* ---------- families: two phones in the split frame, cut by its foot */
/* an illustration with a section's words (site/partials/illustration: the owner's ten, 2:3 portraits cropped by
   object-fit, --pos keeping the people in frame), never under or over a product window.
   Under a heading (#families, #documents) it fills the room the column beside it leaves. Beside the words
   (.head-pic: #fees on the left, #features and #groups on the right) it is as tall as they are. In the details
   grid (.detail-pic) it is a tile two tiles tall. Under 1024px each is a picture in the flow, 2:1 on a tablet and
   16:10 on a phone, or deeper where its --floor asks. The ground under it is the pictures' own paper, so nothing grey shows while one loads. */
.head-photo { display: flex; flex-direction: column; }
.head-photo > .sec-photo { margin-top: var(--s-6, 32px); }
.sec-photo { position: relative; flex: 1 1 auto; min-height: 220px; border-radius: var(--r-lg, 20px); overflow: hidden; background: #eee3d4; }
.sec-photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--pos, 50% 50%); transition: transform .6s var(--ease, ease); }
.sec-photo:hover img { transform: scale(1.025); }
/* the least height a wide frame may take, as a share of its width (--floor from the partial's $floor), so the band it
   shows never loses a head, a flag or the thing the picture is about; the frame still grows to the words beside it */
.sec-photo::before { content: ""; display: block; padding-top: var(--floor, 0); }
@media (min-width: 1024px) {
  .head-pic { align-items: stretch; }
  .head-pic--left > .sec-photo { grid-column: 1 / span 5; grid-row: 1; }
  .head-pic--left > :not(.sec-photo) { grid-row: 1; }
  .head-pic > .sec-photo { min-height: 240px; }
}
.features__head { margin-bottom: var(--head-gap, 48px); }
.detail-pic { position: relative; grid-row: span 2; min-height: 0; border-radius: var(--r-md, 12px); overflow: hidden; }
.detail-pic--first { grid-column: 1; }
.detail-pic--last { grid-column: -2; }
.detail-pic > .sec-photo { position: absolute; inset: 0; min-height: 0; aspect-ratio: auto; border-radius: inherit; }
/* 1024 to 1279: a column is only about 200px wide, so a tile two tiles tall was a strip with the people cut at the
   sides; there each picture is two tiles wide and one tall instead, the teacher at the top left and the librarian under
   the library tile (dense flow lets the tile after it fill the place it leaves), never shallower than 64% of their
   width so the teacher's head and tablet, and the flag and the book, stay in */
@media (min-width: 1024px) and (max-width: 1279px) {
  .details { grid-auto-flow: row dense; }
  .detail-pic { grid-row: auto; }
  .detail-pic--first { grid-column: 1 / span 2; }
  .detail-pic--last { grid-column: 3 / span 2; }
  .detail-pic::before { content: ""; display: block; padding-top: 64%; }
  .detail-pic--first img { object-position: 22% 54%; }
  .detail-pic--last img { object-position: 38% 56%; }
}
/* #families from 1280: the father and daughter beside the facts and the link, not under them, so the frame is tall
   enough for both heads and the phone and the column is no taller than the phones beside it */
@media (min-width: 1280px) {
  #families .head-photo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto auto 1fr; gap: var(--s-6, 32px); }
  #families .head-photo > * { grid-column: 1 / -1; margin-top: 0; }
  #families .head-photo > :is(.fam__facts, .link) { grid-column: 1; align-self: start; }
  #families .head-photo > .sec-photo { grid-column: 2; grid-row: 3 / span 2; min-height: 0; }
}
/* #documents from 1280: the heading across the top, then the teacher marking beside the words and the facts (the
   picture on the left, as in #fees), not squeezed under the heading, where it was a thin band that lost her head and
   the flag */
@media (min-width: 1280px) {
  #documents .wrap > .grid { row-gap: var(--s-6, 32px); }
  #documents .wrap > .grid > div { display: contents; }
  #documents .head-photo > h2 { grid-column: 1 / span 10; grid-row: 1; }
  #documents .head-photo > .sec-photo { grid-column: 1 / span 4; grid-row: 2 / span 2; margin-top: 0; }
  #documents .head-photo > .sec-photo img { object-position: 50% 64%; }
  #documents .wrap > .grid .t-lead { grid-column: 6 / span 7; grid-row: 2; }
  #documents .wrap > .grid .facts { grid-column: 6 / span 7; grid-row: 3; margin-top: 0; }
}
@media (max-width: 1023px) { .sec-photo { flex: none; min-height: 0; } .sec-photo::before { padding-top: max(50%, var(--floor, 0%)); } .head-pic > .sec-photo { margin-top: var(--s-2, 8px); } }
@media (max-width: 639px) {
  .sec-photo::before { padding-top: max(62.5%, var(--floor, 0%)); }
  .detail-pic { grid-row: auto; grid-column: auto; aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) { .sec-photo img { transition: none; } .sec-photo:hover img { transform: none; } }
.fam__facts { display: grid; gap: var(--s-3); }
.fam__facts li { padding-left: var(--s-5); position: relative; }
.fam__facts li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.phones { position: relative; display: flex; justify-content: center; align-items: center; gap: 32px; padding-block: 24px; background: none; }
/* real phone proportions (19.5:9): an iPhone with its Dynamic Island and home bar, an Android with a
   punch-hole camera and gesture bar; the screen clips what does not fit, as a phone does */
.phone { position: relative; flex: none; width: 236px; aspect-ratio: 9 / 19.5; overflow: hidden; padding: 0 14px 22px; border-radius: 40px; background: #fff; color: #0c111b; box-shadow: 0 0 0 7px #161b27, 0 0 0 8px #2e3648, 0 40px 80px -40px rgb(10 13 20 / .6); font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.phone > * { flex: none; }
.phone::before { content: ""; position: absolute; left: 50%; translate: -50% 0; z-index: 1; background: #000; }
.phone::after { content: ""; position: absolute; left: 50%; bottom: 8px; translate: -50% 0; height: 4px; border-radius: 99px; background: rgb(12 17 27 / .8); }
.phone--ios::before { top: 10px; width: 76px; height: 22px; border-radius: 99px; }
.phone--ios::after { width: 92px; }
.phone--android { border-radius: 28px; box-shadow: 0 0 0 5px #161b27, 0 0 0 6px #2e3648, 0 40px 80px -40px rgb(10 13 20 / .6); }
.phone--android::before { top: 12px; width: 13px; height: 13px; border-radius: 50%; box-shadow: inset 0 0 0 2px #1b2130; }
.phone--android::after { width: 72px; height: 3px; }
.phone__status { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 10px; font: 600 12px/1 var(--font-text); font-variant-numeric: tabular-nums; }
.phone--android .phone__status { height: 36px; padding: 0 4px; font-weight: 500; }
.phone__icons { display: inline-flex; align-items: center; gap: 5px; }
.phone__sig { width: 15px; height: 10px; background: linear-gradient(90deg, currentColor 0 3px, transparent 3px 4px, currentColor 4px 7px, transparent 7px 8px, currentColor 8px 11px, transparent 11px 12px, currentColor 12px 15px); clip-path: polygon(0 75%, 25% 75%, 25% 50%, 50% 50%, 50% 25%, 75% 25%, 75% 0, 100% 0, 100% 100%, 0 100%); }
.phone__bat { position: relative; width: 21px; height: 10px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgb(12 17 27 / .45); background: linear-gradient(90deg, currentColor 0 72%, transparent 72%) 2px 2px / calc(100% - 4px) calc(100% - 4px) no-repeat; }
.phone__bat::after { content: ""; position: absolute; right: -3px; top: 3px; width: 2px; height: 4px; border-radius: 0 1px 1px 0; background: rgb(12 17 27 / .45); }
.phone--2 { margin-top: 0; }
.phone__top { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid rgb(12 17 27 / .08); font-weight: 500; }
.phone__crest { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: #1f6feb; color: #fff; font-size: 12px; font-weight: 600; }
.phone__h { font: 500 20px/1.2 var(--font-display); margin-top: 8px; }
.phone__sub { color: #596172; }
.phone__now, .phone__bal { display: grid; gap: 4px; padding: 12px; border-radius: 14px; background: #f4f5f7; margin: 6px 0; }
.phone__now span { color: #1f6feb; font-weight: 500; }
.phone__now b { font: 500 18px/1.2 var(--font-display); }
.phone__now small, .phone__bal small { color: #596172; font-size: 12px; }
.phone__bal b { font: 500 24px/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.phone__now i, .phone__bal i { display: block; height: 5px; border-radius: 99px; background: linear-gradient(90deg, #1f6feb var(--v), rgb(12 17 27 / .08) var(--v)); margin-top: 6px; }
.phone__sec { margin-top: 8px; font-weight: 500; }
.phone__row, .phone__ref { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: 10px; background: #f4f5f7; }
.phone__row em { font-style: normal; color: #1f6feb; font-size: 12px; }
.phone__ref code { font-family: var(--font-mono); color: #0c111b; }
@media (max-width: 1279px) { .phone { width: 212px; } .phones { gap: 24px; } }
@media (max-width: 639px) { .phones { flex-direction: column; align-items: center; padding-block: 16px; } .phone { width: 236px; } .phone--2 { margin-top: 0; } }

/* ---------- countries: each card's grading bands */
.country__exam { font: 500 var(--t-label)/1 var(--font-mono); color: var(--muted); letter-spacing: .02em; margin-bottom: var(--s-2); }
.country__go { margin-top: var(--s-3); align-self: start; }
.bands { padding: 14px 16px; display: grid; font-size: 13px; }
.bands__name { color: var(--u-muted); padding-bottom: 8px; }
.bands__row { display: grid; grid-template-columns: 40px 64px minmax(0, 1fr); gap: 8px; padding: 7px 0; border-top: 1px solid var(--u-line); color: var(--u-ink); }
.bands__row b { font-weight: 500; }
.bands__row span:nth-child(2) { color: var(--u-muted); font-variant-numeric: tabular-nums; }
.bands__row:nth-of-type(2) b { color: var(--accent); }
/* each country's student and flag (site/partials/picture, square, the same size in all three), small in the card's
   top corner beside the exam body, the country and its facts, which keep clear of it; the grading window below is
   untouched */
#countries .card { position: relative; --pic: 104px; }
.country__pic { position: absolute; top: var(--c-pad, 32px); right: var(--c-pad, 32px); width: var(--pic); height: var(--pic); border-radius: 14px; }
#countries .card:has(> .country__pic) > :is(.country__exam, h3, p) { margin-right: calc(var(--pic) + var(--s-4, 16px)); }
@media (max-width: 639px) { #countries .card { --pic: 88px; } }

/* ---------- pricing */
.plans { margin-top: var(--s-7); }
.plans .plan__badge { align-self: start; }
.plans .plan__cap { color: var(--ink); }
.plans .card--plan .price .muted { font-size: var(--t-small); }
@media (max-width: 639px) { .plans .checks li:nth-child(n+4) { display: none; } }

/* ---------- steps: an ordered list beside the setup checklist */
.steps { display: grid; gap: var(--s-5); }
.steps li { display: grid; gap: var(--s-2); }
.steps__t { font: 500 var(--t-card)/1.3 var(--font-text); }
.steps p { margin-top: var(--s-1); }
/* how a school joins (#steps): a teacher taking a first register (site/partials/picture, 3:2, whole) beside the setup
   checklist. From 1024 the heading and the three steps run across the top, the steps side by side, and the picture
   and the checklist share the row under them, the checklist's grey as tall as the picture. Under 1024 the picture
   comes between the steps and the checklist. */
.steps__pic { display: block; width: 100%; max-width: 640px; height: auto; border-radius: var(--r-lg, 20px); }
@media (min-width: 1024px) {
  .steps-grid { align-items: center; row-gap: var(--s-7, 48px); }
  .steps-grid > .steps__words { grid-column: 1 / -1; }
  .steps-grid .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter, 24px); }
  .steps-grid .steps li { align-content: start; }
  .steps-grid > .steps__pic { grid-column: 1 / span 6; grid-row: 2; max-width: none; }
  .steps-grid > .frame { grid-row: 2; align-self: stretch; }
}

/* ---------- the statement heading the countries: two lines at most on a desktop */
#countries .section-head { max-width: none; }
#countries .mo-la__type { font-size: clamp(48px, 4.8vw, 80px); max-width: 15em; }
@media (min-width: 640px) and (max-width: 1023px) { #countries .mo-la__type { font-size: 10vw; max-width: 11ch; } }
@media (max-width: 639px) { #countries .mo-la__type { font-size: 15vw; max-width: 8ch; } }

/* the payments list: the counts beside the side links need the room, so the side goes and the rows take it */
.app .ui-win__side { display: none; }
.app .ui-win__body { grid-template-columns: minmax(0, 1fr); }

/* ---------- screens on smaller windows (layout-v4.md, the tablet): a section that cannot hold one screen takes two */
@media (min-width: 1024px) and (max-width: 1279px) {
  #countries, #pricing { --h: 2; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  #countries, #pricing { --h: 2; }
}
@media (max-width: 639px) {
  #families, #countries, #pricing { --hm: 2; }
  .nav__actions > a.nav__link { display: none; }
}

/* the hero's lead is read, so it takes the ink at a step down, not the label grey */
.hero--centred .hero__lead { color: color-mix(in srgb, var(--ink) 84%, var(--bg)); }
/* the window's pause button sits in a clipped frame: its focus ring is drawn inside it */
.hero__window .loop-pause:focus-visible { outline-color: #0a0d14; outline-offset: 2px; }
.hero__window .d-win .loop-pause:focus-visible { outline-color: #e9edf3; }
#countries .mo-la__sub { margin-top: var(--s-4); max-width: 68ch; color: color-mix(in srgb, var(--ink) 84%, var(--bg)); }

/* the name across the close: Funnel Display's ascenders need more than the kit's 0.86 line */
.close__word { line-height: 1.08; }
/* the close: a head teacher welcoming a visitor at the gate (site/partials/picture, 3:2, whole), from 1024 beside
   the words and the button and about as tall as they are; under 1024 after the button */
.close__pic { display: block; width: 100%; max-width: 560px; height: auto; border-radius: var(--r-lg, 20px); }
@media (min-width: 1024px) {
  .close__head { display: grid; grid-template-columns: minmax(0, 1fr) clamp(340px, 32vw, 412px); column-gap: var(--s-8, 64px); row-gap: var(--s-5, 24px); align-items: start; }
  .close__head > .btn { grid-column: 1; grid-row: 2; justify-self: start; }
  .close__head > .close__pic { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}

/* the setup checklist: on the same quiet grey as the other windows, shown whole */
.frame--plain { background: #eef0f3; border-radius: var(--r-lg, 16px); }
.frame--plain > .stage { position: relative; inset: auto; display: flex; justify-content: center; padding: 40px 24px; -webkit-mask: none; mask: none; }
.frame--plain > .stage > * { position: relative; left: auto; right: auto; top: auto; width: 100%; max-width: var(--fit-max, 380px); }
.frame--plain .ui { background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px rgb(12 17 27 / .07), 0 18px 40px -24px rgb(12 17 27 / .25); }

/* frames that hold phones or the checklist size to what they hold (no fixed ratio, nothing clipped) */
.frame.phones, .frame.frame--plain { --ratio: 0px; overflow: visible; border: 0; }
.frame.phones { background: none; padding: 0; }
.frame.frame--plain { padding: 0; }

/* no coloured glow in the card panels: a flat quiet grey */
.panel::before { display: none; }
/* the fees window shows every row: its height comes from its content, not the screen */
.app.ui { height: auto; max-height: none; }
.app > .app__pane { overflow: visible; }

/* each section is as tall as what it shows: the windows are shown whole, so a fixed screen height would make
   sections overlap. Sections keep the kit's padding for the rhythm between them. */
main > section { height: auto !important; min-height: 0 !important; }
main > section.hero { padding-bottom: var(--s-8, 64px); }
/* the closing footer grows to its content, so the large name never runs into the links */
footer.closing { height: auto !important; min-height: 0 !important; }
footer.closing .closing__cta { height: auto; }
/* the headline on a phone: no hyphen inside a word */
@media (max-width: 639px) { .hero--centred h1 { hyphens: manual; font-size: clamp(34px, 10vw, 44px); } }

/* ---------- the product sections (modules, roles, customization, groups): one light window each, shown whole */
.win { margin-top: var(--s-7, 48px); box-shadow: 0 0 0 1px rgb(12 17 27 / .08), 0 1px 2px rgb(12 17 27 / .04), 0 32px 64px -32px rgb(12 17 27 / .28); }
.win .d-win__bar b { color: #0c111b; font-weight: 500; }
.win .d-win__bar .sp { flex: 1; }
.win__sep { font-style: normal; color: #b4b9c2; margin: 0 2px; }
.win__chip { height: 24px; padding: 0 10px; border-radius: 99px; display: inline-flex; align-items: center; font-size: 12px; font-weight: 500; }
.win__chip--on { background: rgb(22 121 74 / .1); color: #16794a; }
.win .d-win__body { min-height: 0; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.facts li { display: grid; gap: 2px; padding-left: 16px; border-left: 2px solid rgb(12 17 27 / .1); color: var(--muted); font-size: 15px; line-height: 1.5; }
.facts b { color: var(--ink); font-weight: 500; }
.facts--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.facts--grid li { align-content: start; }
/* the facts under a section's lead sit as far from it as #families' list does (the margin: 0 above had taken the
   stack's space away, so the list touched the last line of the lead) */
.t-lead + .facts { margin-top: var(--s-6, 32px); }
@media (max-width: 639px) { .facts--grid { grid-template-columns: minmax(0, 1fr); } }

/* modules: the explorer. Every module is a link to its panel; the open one is outlined */
.mods__body { grid-template-columns: minmax(0, 1fr) 380px; }
.mods__count { color: #6b7280; }
.mods__board { padding: 16px; display: grid; gap: 14px; align-content: start; background: #fafbfc; min-width: 0; }
.mods a { color: inherit; text-decoration: none; }
.mods__core { display: grid; grid-template-columns: auto auto 1fr; gap: 4px 10px; align-items: center; padding: 12px 14px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px rgb(12 17 27 / .07); font-size: 13px; transition: box-shadow .2s; }
.mods__core b { font-weight: 500; color: #0c111b; }
.mods__core small { grid-column: 1 / -1; color: #6b7280; font-size: 12px; }
.mods__always { justify-self: start; height: 22px; padding: 0 8px; border-radius: 99px; display: inline-flex; align-items: center; background: #0c111b; color: #fff; font-size: 11px; font-weight: 500; white-space: nowrap; }
.mods__groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.mods__group { display: grid; gap: 4px; align-content: start; }
.mods__gname { margin: 0 0 2px; padding: 0 4px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #6b7280; }
.mods__m { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 8px 4px 10px; border-radius: 9px; background: #fff; box-shadow: 0 0 0 1px rgb(12 17 27 / .06); font-size: 13px; color: #0c111b; cursor: pointer; transition: box-shadow .2s, transform .2s; }
.mods__m:hover, .mods__core:hover { box-shadow: 0 0 0 1px rgb(12 17 27 / .16), 0 2px 6px -2px rgb(12 17 27 / .12); }
.mods__m:focus-visible, .mods__core:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mods__m.is-open, .mods__core.is-open { box-shadow: 0 0 0 1.5px var(--accent), 0 4px 12px -6px rgb(31 111 235 / .4); }
.mods__icon { flex: none; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: #f1f3f6; color: #0c111b; font-size: 14px; }
.mods__m.is-open .mods__icon, .mods__core.is-open .mods__icon { background: rgb(31 111 235 / .1); color: #1f5fcc; }
.mods__icon--big { width: 40px; height: 40px; border-radius: 11px; font-size: 20px; background: rgb(31 111 235 / .1); color: #1f5fcc; }
.mods__name { flex: 1; min-width: 0; }
.mods__plan { flex: none; height: 20px; padding: 0 7px; border-radius: 99px; display: inline-flex; align-items: center; font-size: 11px; font-weight: 500; white-space: nowrap; background: rgb(31 111 235 / .08); color: #1f5fcc; }
.mods__plan--all { background: #eef0f3; color: #4b5363; }
.mods__panels { border-left: 1px solid rgb(12 17 27 / .07); min-width: 0; }
.mods__open { padding: 18px 20px; display: grid; gap: 8px; align-content: start; font-size: 13px; color: #4b5363; animation: mods-in .35s var(--ease, ease) both; }
@keyframes mods-in { from { opacity: 0; transform: translateY(6px); } }
.mods__ohead { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.mods__title { margin: 0; font-size: 18px; font-weight: 500; color: #0c111b; line-height: 1.25; }
.mods__in { margin: 2px 0 0; font-size: 12px; color: #1f5fcc; }
.mods__kicker { margin: 8px 0 0; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #8a909b; }
.mods__desc, .mods__needs { margin: 0; line-height: 1.5; }
.mods__needs b { font-weight: 500; color: #0c111b; }
.mods__screens { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mods__screens li { height: 26px; padding: 0 10px; border-radius: 99px; display: inline-flex; align-items: center; background: #f1f3f6; color: #0c111b; font-size: 12px; }
.mods__screens--fam li { background: rgb(22 121 74 / .1); color: #16794a; font-weight: 500; }
.mods__screens .mods__more { background: none; color: #6b7280; }
.mods__perms { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.mods__perms li { position: relative; padding: 7px 10px 7px 28px; border-radius: 9px; background: #f5f6f8; color: #0c111b; line-height: 1.4; }
.mods__perms li::before { content: ""; position: absolute; left: 11px; top: 12px; width: 7px; height: 7px; border-radius: 50%; background: #16794a; }
.mods__morep { margin: 0; font-size: 12px; color: #6b7280; }
.mods__sw { flex: none; width: 34px; height: 20px; border-radius: 99px; background: #16794a; position: relative; }
.mods__sw i { position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.mods__acts { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding-top: 12px; border-top: 1px solid rgb(12 17 27 / .07); color: #0c111b; }
.mods__how { list-style: none; margin: var(--s-7, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.mods__how li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.mods__how p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.mods__how .steps__t { color: var(--ink); font-weight: 500; margin-bottom: 4px; }
@media (max-width: 1023px) { .mods__body { grid-template-columns: minmax(0, 1fr); } .mods__panels { border-left: 0; border-top: 1px solid rgb(12 17 27 / .07); scroll-margin-top: 96px; } .mods__open { scroll-margin-top: 96px; } .mods__how { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .mods__groups { grid-template-columns: minmax(0, 1fr); } .mods__board { padding: 12px; } .mods__how { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .mods__open { animation: none; } }

/* roles: the list of roles beside one role's permissions */
.roles__body { grid-template-columns: 240px minmax(0, 1fr); }
.roles__list { border-right: 1px solid rgb(12 17 27 / .07); padding: 10px; display: grid; align-content: start; gap: 2px; background: #fafbfc; }
.roles__q { margin: 6px 0 2px; padding: 0 8px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #8a909b; }
.roles__r { display: flex; align-items: center; justify-content: space-between; min-height: 32px; padding: 0 8px; border-radius: 9px; font-size: 13px; color: #0c111b; }
.roles__r em { font-style: normal; color: #6b7280; font-size: 12px; }
.roles__r.is-on { background: #fff; box-shadow: 0 0 0 1px rgb(12 17 27 / .08), 0 1px 2px rgb(12 17 27 / .05); font-weight: 500; }
.roles__edit { padding: 18px 22px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.roles__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.roles__title { margin: 0; font-size: 18px; font-weight: 500; color: #0c111b; }
.roles__sub { margin: 2px 0 0; font-size: 13px; color: #6b7280; }
.roles__save { flex: none; height: 32px; padding: 0 14px; border-radius: 99px; display: inline-flex; align-items: center; background: #0c111b; color: #fff; font-size: 13px; font-weight: 500; }
.roles__group { margin: 10px 0 2px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #8a909b; }
.roles__p { display: flex; align-items: center; gap: 12px; min-height: 38px; padding: 6px 12px; border-radius: 10px; background: #f5f6f8; font-size: 13px; color: #6b7280; }
.roles__p.is-yes, .roles__p.is-new { color: #0c111b; }
.roles__p.is-new { background: rgb(31 111 235 / .07); }
.roles__box { flex: none; position: relative; width: 18px; height: 18px; border-radius: 5px; box-shadow: inset 0 0 0 1.5px #c3c8d0; background: #fff; }
.roles__p.is-yes .roles__box, .roles__p.is-new .roles__box { box-shadow: none; }
.roles__p.is-yes .roles__box { background: #0c111b; }
.roles__p.is-new .roles__box { box-shadow: inset 0 0 0 1.5px var(--accent); }
.roles__box svg { position: absolute; inset: 0; width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.roles__box .roles__tick { border-radius: 5px; background: var(--accent); }
.roles__saved { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 13px; color: #16794a; }
.roles__dot { width: 8px; height: 8px; border-radius: 50%; background: #16794a; }
@media (max-width: 639px) { .roles__body { grid-template-columns: minmax(0, 1fr); } .roles__list { display: none; } .roles__edit { padding: 14px; } .roles__head { flex-direction: column; } }

/* ---------- the scenes of customization and documents (site/home/customize, site/home/documents; assets/site/scenes.js)
   The same family as the hero's tour, written apart from it: one light window shown whole on the page's white, the
   tour's tokens (--ts-*), type, hairlines at 6-10% ink and layered shadow, one floating card with its own shadow that
   overhangs the window's right edge where the page has room. The .s-* steps run once, eased, at each element's --t
   (seconds) while their part has data-on (scenes.js); at rest every element is in its finished state, which is what
   the server writes. data-held (the tab is hidden) holds them where they are. */
.scn { --ts-ink: #0c111b; --ts-muted: #646b78; --ts-line: rgb(12 17 27 / .07); --ts-ok: #16794a; --ts-out: #a3462f; --ts-warn: #8a5a14; --ts-forest: #245248; --pad-x: 22px; --float-w: 256px;
  position: relative; margin-top: var(--s-7, 48px); border-radius: 14px; background: #fff; color: var(--ts-ink); font: 400 13px/1.35 var(--font-text); text-align: left;
  box-shadow: 0 0 0 1px rgb(12 17 27 / .07), 0 1px 2px rgb(12 17 27 / .04), 0 10px 20px -12px rgb(12 17 27 / .1), 0 44px 80px -40px rgb(12 17 27 / .3); }
.scn__frame { border-radius: inherit; overflow: hidden; }
.scn .d-win__bar { border-bottom-color: var(--ts-line); }
.scn .d-win__bar b { font-weight: 500; color: var(--ts-ink); }
.scn .d-win__bar .sp { flex: 1; }
.scn__crumb { color: var(--ts-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc__title { font: 400 19px/1.2 var(--font-display); letter-spacing: -.015em; }
.sc__ctx { margin-top: 4px; color: var(--ts-muted); }
.sc__ref { font: 400 11.5px/1.2 var(--font-mono); }
.sc__dim { color: var(--ts-muted); }
.sc__n { text-align: right; font-variant-numeric: tabular-nums; }
.sc__figs { display: flex; gap: 28px; }
.sc__fig { display: grid; gap: 5px; }
.sc__fig > small { font-size: 11.5px; color: var(--ts-muted); white-space: nowrap; }
.sc__fig b { font: 400 22px/1 var(--font-display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sc__fig b small { font-size: 13px; letter-spacing: 0; color: var(--ts-muted); }
.sc__ph { font-size: 12px; font-weight: 500; }
.sc__small { font-size: 12px; color: var(--ts-muted); }
.sc__ok { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--ts-ok); white-space: nowrap; }
.sc__tick { flex: none; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sc__line { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 12.5px; color: #3d4452; }
.sc__line .sc__tick { color: var(--ts-ok); }
.sc__float { position: absolute; z-index: 3; right: -28px; bottom: 18px; width: var(--float-w); padding: 12px 14px 13px; border-radius: 12px; background: #fff; color: var(--ts-ink); font-size: 12.5px; line-height: 1.45;
  box-shadow: 0 0 0 1px rgb(12 17 27 / .07), 0 2px 4px rgb(12 17 27 / .04), 0 24px 48px -16px rgb(12 17 27 / .3); }
.sc__fh { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.sc__fh b { flex: 1; min-width: 0; font-weight: 500; }
.sc__fh time { color: var(--ts-muted); font-variant-numeric: tabular-nums; }
.sc__app { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 6px; background: var(--ts-forest); }
.sc__app svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

/* the steps: once, eased, at each element's --t */
:is(.scn[data-on], .scn [data-on]) .s-in { animation: sc-in .5s var(--m-ease-enter, ease-out) calc(var(--t, 0) * 1s) both; }
:is(.scn[data-on], .scn [data-on]) .s-pop { animation: sc-pop .4s var(--m-ease-enter, ease-out) calc(var(--t, 0) * 1s) both; }
:is(.scn[data-on], .scn [data-on]) .s-type { animation: sc-type .7s ease-out calc(var(--t, 0) * 1s) both; }
:is(.scn[data-on], .scn [data-on]) .s-write { animation: sc-write .9s cubic-bezier(.45, 0, .2, 1) calc(var(--t, 0) * 1s) both; }
:is(.scn[data-on], .scn [data-on]) .s-sign { stroke-dasharray: 1; animation: sc-draw .8s ease-in-out calc(var(--t, 0) * 1s) both; }
:is(.scn[data-on], .scn [data-on]) .s-stamp { animation: sc-stamp .5s cubic-bezier(.3, 1.3, .5, 1) calc(var(--t, 0) * 1s) both; }
:is(.scn[data-on], .scn [data-on]) .s-drop { animation: sc-drop .6s var(--m-ease-enter, ease-out) calc(var(--t, 0) * 1s) both; }
:is(.scn[data-on], .scn [data-on]) .s-float { animation: sc-float .7s var(--m-ease-enter, ease-out) calc(var(--t, 0) * 1s) both; }
:is(.scn[data-on], .scn [data-on]) .s-pop .sc__tick path { stroke-dasharray: 1; animation: sc-draw .4s ease-out calc(var(--t, 0) * 1s + .06s) both; }
.scn[data-held] *, .scn [data-held] * { animation-play-state: paused !important; }
@keyframes sc-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes sc-pop { from { opacity: 0; transform: scale(.92); } }
@keyframes sc-type { 0% { opacity: 0; outline-color: rgb(31 111 235 / .55); } 10% { opacity: 1; } 100% { outline-color: rgb(31 111 235 / 0); } }
@keyframes sc-write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 -4px 0 0); } }
@keyframes sc-draw { from { stroke-dashoffset: 1; } }
@keyframes sc-drop { from { opacity: 0; transform: translateY(-10px) scale(1.04); } }
@keyframes sc-float { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .scn *, .scn *::before, .scn *::after { animation: none !important; transition: none !important; } }
/* where the page has no room beside the window, the card stays inside it; on a phone it sits in the flow */
@media (max-width: 1199px) { .sc__float { right: var(--pad-x); } }
@media (max-width: 639px) {
  .scn { --pad-x: 14px; }
  .sc__float { position: static; width: auto; box-shadow: 0 0 0 1px rgb(12 17 27 / .08), 0 10px 24px -14px rgb(12 17 27 / .3); }
  .sc__title { font-size: 17px; }
  .sc__figs { flex-wrap: wrap; gap: 10px 24px; }
  .sc__fig b { font-size: 19px; }
}

/* customization: the school's settings (real radio buttons, read by :has() so they work without script) beside the
   school's own screen and its printed report card. --b and --a are the chosen theme's colours (--b0..--b3 and
   --a0..--a3 on the window, from ThemePresets); before a theme is chosen (the demonstration's first second) the
   screen is in plain greys. */
.cz { --b: #4b5363; --a: #d3d7dd; }
.cz:has(input[name="cz-theme"][value="0"]:checked) { --b: var(--b0); --a: var(--a0); }
.cz:has(input[name="cz-theme"][value="1"]:checked) { --b: var(--b1); --a: var(--a1); }
.cz:has(input[name="cz-theme"][value="2"]:checked) { --b: var(--b2); --a: var(--a2); }
.cz:has(input[name="cz-theme"][value="3"]:checked) { --b: var(--b3); --a: var(--a3); }
/* a word shows as the option chosen for it; the one leaving goes at once and the new one fades in, so no frame
   ever shows two words */
.cz .cw, .cz__picked > span { display: none; }
.cz:has(input[name="cz-class"][value="0"]:checked) .cw[data-cw="class-0"], .cz:has(input[name="cz-class"][value="1"]:checked) .cw[data-cw="class-1"],
.cz:has(input[name="cz-head"][value="0"]:checked) .cw[data-cw="head-0"], .cz:has(input[name="cz-head"][value="1"]:checked) .cw[data-cw="head-1"],
.cz:has(input[name="cz-theme"][value="0"]:checked) [data-picked="0"], .cz:has(input[name="cz-theme"][value="1"]:checked) [data-picked="1"],
.cz:has(input[name="cz-theme"][value="2"]:checked) [data-picked="2"], .cz:has(input[name="cz-theme"][value="3"]:checked) [data-picked="3"] { display: inline; }
@media (prefers-reduced-motion: no-preference) { .cz .cw, .cz__picked > span { animation: cz-word .4s var(--m-ease-enter, ease-out) both; } }
@keyframes cz-word { from { opacity: 0; transform: translateY(3px); } }
.cz__body { display: grid; grid-template-columns: 284px minmax(0, 1fr); }
.cz__set { display: grid; align-content: start; gap: 16px; padding: 16px 18px 18px; border-right: 1px solid var(--ts-line); background: #fcfcfd; }
.cz__brand, .cz__words { display: grid; align-content: start; gap: 16px; min-width: 0; }
.cz__group { min-width: 0; margin: 0; padding: 0; border: 0; }
.cz__q { margin: 0 0 8px; padding: 0; font-size: 11.5px; color: var(--ts-muted); }
.cz__words > .cz__q { margin: 0 0 -6px; padding-top: 14px; border-top: 1px solid var(--ts-line); }
.cz__label { margin: 0 0 6px; padding: 0; font-size: 12px; color: #3d4452; }
.cz__field { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 10px; border-radius: 9px; background: #fff; box-shadow: 0 0 0 1px rgb(12 17 27 / .1); }
.cz__name { display: grid; min-width: 0; line-height: 1.3; }
.cz__name b { font-weight: 500; }
.cz__name small { font-size: 11.5px; color: var(--ts-muted); }
.cz__crest { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--b); color: var(--a); font: 600 11px/1 var(--font-text); box-shadow: inset 0 0 0 2px var(--a); transition: background-color .6s var(--ease, ease), color .6s, box-shadow .6s; }
.cz__swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin-left: -6px; }
.cz__sw { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; }
.cz__sw input, .cz__seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cz__chip { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--sb) 0 56%, var(--sa) 56%); box-shadow: 0 0 0 1px rgb(12 17 27 / .12); transition: box-shadow .2s; pointer-events: none; }
.cz__sw:hover .cz__chip { box-shadow: 0 0 0 1px rgb(12 17 27 / .12), 0 0 0 4px rgb(12 17 27 / .06); }
.cz__sw input:checked + .cz__chip { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--ts-ink); }
.cz__sw input:focus-visible + .cz__chip { outline: 2px solid var(--accent); outline-offset: 5px; }
/* the chosen theme's name has a line of its own, so the row is as tall with or without one chosen */
.cz__picked { flex-basis: 100%; min-height: 17px; margin: 2px 0 0 6px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.cz__seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; padding: 3px; border-radius: 10px; background: rgb(12 17 27 / .05); }
.cz__seg label { position: relative; display: grid; place-items: center; min-height: 36px; padding: 4px 8px; border-radius: 8px; font-size: 12.5px; line-height: 1.2; text-align: center; color: var(--ts-muted); cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s; }
.cz__seg label:hover { color: var(--ts-ink); }
.cz__seg label:has(input:checked) { background: #fff; color: var(--ts-ink); font-weight: 500; box-shadow: 0 0 0 1px rgb(12 17 27 / .08), 0 1px 2px rgb(12 17 27 / .08); }
.cz__seg label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }
.cz__app { position: static; min-width: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.cz__top { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 20px; background: var(--b); color: #fff; transition: background-color .6s var(--ease, ease); }
.cz__crest--top { width: 36px; height: 36px; font-size: 12px; background: var(--a); color: var(--b); box-shadow: 0 0 0 2px rgb(255 255 255 / .55); }
.cz__school { display: grid; min-width: 0; line-height: 1.3; }
.cz__school b { font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cz__school small { font-size: 12px; opacity: .78; }
.cz__main { display: grid; grid-template-columns: 156px minmax(0, 1fr); min-height: 0; }
.cz__nav { display: grid; align-content: start; gap: 2px; padding: 12px 10px; border-right: 1px solid var(--ts-line); background: #fcfcfd; color: var(--ts-muted); }
.cz__nav > span { display: flex; align-items: center; height: 32px; padding: 0 10px; border-radius: 8px; white-space: nowrap; }
.cz__nav .is-on { background: color-mix(in oklab, var(--b) 10%, white); color: var(--b); font-weight: 500; transition: background-color .6s, color .6s; }
.cz__page { display: grid; align-content: start; gap: 14px; min-width: 0; padding: 18px var(--pad-x); }
.cz__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--ts-line); }
.cz__btn { flex: none; display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 8px; background: var(--b); color: #fff; font-size: 12.5px; font-weight: 500; white-space: nowrap; transition: background-color .6s var(--ease, ease); }
/* the list keeps clear of the report card that floats over the window's lower right */
.cz__table { display: grid; align-content: start; min-width: 0; margin-right: calc(var(--float-w) - 28px + 4px); }
.cz__tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 64px 112px; gap: 12px; align-items: center; height: 38px; border-bottom: 1px solid rgb(12 17 27 / .06); white-space: nowrap; }
.cz__tr > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cz__th { height: 28px; font-size: 11.5px; color: var(--ts-muted); border-bottom-color: rgb(12 17 27 / .09); }
.cz__bar { display: grid; grid-template-columns: minmax(0, 1fr) 34px; gap: 8px; align-items: center; }
.cz__bar i { position: relative; height: 6px; border-radius: 3px; background: rgb(12 17 27 / .06); overflow: hidden; }
.cz__bar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: inherit; background: var(--b); transition: background-color .6s; }
.cz__bar em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; }
/* the printed report card: a page, so square corners and a paper's shadow */
.cz__paper { --float-w: 232px; width: var(--float-w); padding: 14px 14px 12px; border-radius: 6px; font-size: 11.5px; line-height: 1.35; }
.cz__lh { display: flex; align-items: center; gap: 9px; padding-bottom: 9px; border-bottom: 2px solid var(--b); transition: border-color .6s; }
.cz__lh > span:last-child { display: grid; min-width: 0; }
.cz__lh b { font: 700 11.5px/1.2 Georgia, "Times New Roman", serif; letter-spacing: .02em; text-transform: uppercase; color: var(--b); transition: color .6s; }
.cz__lh small { font-size: 10.5px; color: var(--ts-muted); }
.cz__crest--paper { width: 28px; height: 28px; font-size: 9.5px; }
.cz__who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 9px 0 0; }
.cz__who div { display: grid; gap: 1px; min-width: 0; }
.cz__who dt { font-size: 9.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--ts-muted); }
.cz__who dd { margin: 0; font-weight: 600; white-space: nowrap; }
.cz__rows { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--ts-line); color: #3d4452; }
.cz__rows b { font-weight: 600; color: var(--b); transition: color .6s; }
.cz__sig { position: relative; display: grid; gap: 1px; margin-top: 9px; padding-top: 6px; border-top: 1px solid var(--ts-line); }
.cz__sig svg { width: 78px; height: 24px; }
.cz__sig small { font-size: 9.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--ts-muted); white-space: nowrap; }
.cz__stamp { position: absolute; right: 6px; top: 6px; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--b); opacity: .5; box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4px var(--b); transform: rotate(-12deg); transition: border-color .6s, box-shadow .6s; }
@media (max-width: 1199px) {
  .cz__body { grid-template-columns: 252px minmax(0, 1fr); }
  .cz__main { grid-template-columns: minmax(0, 1fr); }
  .cz__nav { display: none; }
  .cz__table { margin-right: calc(var(--float-w) + 4px); }
  .cz__tr { grid-template-columns: minmax(0, 1fr) 56px 104px; }
  .cz__more { display: none; }
}
@media (max-width: 1023px) {
  .cz__body { grid-template-columns: minmax(0, 1fr); }
  /* no room for the card over the window: it takes its own column beside the list */
  .cz__app { grid-template-columns: minmax(0, 1fr) auto; }
  .cz__top { grid-column: 1 / -1; }
  .cz__table { margin-right: 0; }
  .cz__app .sc__float { position: static; align-self: start; margin: 18px var(--pad-x) 18px 0; }
  .cz__set { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; border-right: 0; border-bottom: 1px solid var(--ts-line); }
  .cz__words > .cz__q { padding-top: 0; border-top: 0; }
  .cz__set > .sc__line { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  .cz__set { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .cz__words > .cz__q { padding-top: 14px; border-top: 1px solid var(--ts-line); }
  .cz__seg label { min-height: 40px; }
  .cz__top { padding: 12px 14px; }
  .cz__page { padding: 14px; }
  .cz__head { flex-direction: column; align-items: stretch; }
  .cz__btn { justify-content: center; height: 36px; }
  .cz__app { grid-template-columns: minmax(0, 1fr); }
  .cz__tr { grid-template-columns: minmax(0, 1fr) 120px; }
  .cz__tr > .sc__n { display: none; }
  .cz__app .sc__float { width: auto; margin: 0 14px 14px; }
}

/* a word's short rise, used by one school day's changing words (.day .v) */
@keyframes look-in { from { opacity: 0; transform: translateY(3px); } }

/* groups: the owner's schools side by side */
.grp__body { grid-template-columns: minmax(0, 1fr) 280px; }
.grp__table { padding: 12px 16px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.grp__cols, .grp__row { display: grid; grid-template-columns: minmax(0, 2.4fr) 0.8fr 1fr 1.4fr 1fr 56px; align-items: center; gap: 12px; }
.grp__cols { padding: 4px 12px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: #8a909b; }
.grp__row { padding: 10px 12px; border-radius: 10px; background: #f5f6f8; font-size: 13px; color: #0c111b; }
.grp__row.is-warn { background: rgb(214 140 18 / .08); }
.grp__school { display: flex; align-items: center; gap: 10px; min-width: 0; }
.grp__school > span:last-child { display: grid; min-width: 0; }
.grp__school b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grp__school small { color: #6b7280; }
.grp__crest { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #0b2a5b; color: #c9a227; font-size: 11px; font-weight: 600; }
.grp__num { font-variant-numeric: tabular-nums; }
.grp__bar { display: flex; align-items: center; gap: 8px; }
.grp__bar i { flex: 1; height: 6px; border-radius: 99px; background: rgb(12 17 27 / .08); position: relative; overflow: hidden; }
.grp__bar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); background: #16794a; border-radius: inherit; }
.grp__row.is-warn .grp__bar i::after { background: #c47a0b; }
.grp__bar em { font-style: normal; font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }
.grp__open { justify-self: end; height: 26px; padding: 0 10px; border-radius: 99px; display: inline-flex; align-items: center; box-shadow: inset 0 0 0 1px rgb(12 17 27 / .14); font-size: 12px; font-weight: 500; }
.grp__side { border-left: 1px solid rgb(12 17 27 / .07); padding: 14px 16px; display: grid; gap: 8px; align-content: start; background: #fafbfc; font-size: 13px; }
.grp__q { margin: 0 0 2px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #8a909b; }
.grp__alert { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: #fff; box-shadow: inset 3px 0 0 #c47a0b, 0 0 0 1px rgb(12 17 27 / .06); color: #4b5363; line-height: 1.45; }
.grp__alert b { color: #0c111b; font-weight: 500; }
.grp__ok { padding: 4px 2px; color: #16794a; }
@media (max-width: 1023px) { .grp__body { grid-template-columns: minmax(0, 1fr); } .grp__side { border-left: 0; border-top: 1px solid rgb(12 17 27 / .07); } }
@media (max-width: 639px) {
  .grp__cols { display: none; }
  .grp__row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
  .grp__row > .grp__num, .grp__open { display: none; }
  .grp__bar { grid-column: 1 / -1; }
  .grp__table { padding: 10px; }
}

/* quizzes: item analysis in the features card */
.ia { padding: 16px 18px; display: grid; gap: 2px; font-size: 13px; }
.ia__row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 90px; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--u-line); color: var(--u-ink); }
.ia__th { color: var(--u-muted); font-size: 12px; }
.ia__row > span:last-child { text-align: center; }
.ia__bar { display: flex; align-items: center; gap: 8px; }
.ia__bar i { flex: 1; height: 6px; border-radius: 99px; background: rgb(12 17 27 / .08); position: relative; overflow: hidden; }
.ia__bar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: inherit; background: #16794a; }
.ia__bar em { font-style: normal; min-width: 34px; text-align: right; font-variant-numeric: tabular-nums; }
.ia__row.is-low { background: rgb(214 140 18 / .08); border-radius: 8px; padding-inline: 6px; margin-inline: -6px; }
.ia__row.is-low .ia__bar i::after { background: #c47a0b; }

/* documents: the report card and the ID card (site/home/documents; scenes.js). One window: the student's head with
   key figures, then the report card (a printed page, hairline-bordered on the window's white) beside the ID card,
   its designs, the turn and an A4 sheet of ten. The check floats over the window's lower right. Each of the two
   parts ([data-part-root]) plays when it comes into view. */
.dx__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 28px; margin: 0 var(--pad-x); padding: 18px 0 14px; border-bottom: 1px solid var(--ts-line); }
.dx__body { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 28px; align-items: start; padding: 18px var(--pad-x) 22px; }
.dx__report { min-width: 0; }
.paper { display: grid; gap: 12px; padding: 20px 22px; border-radius: 3px; background: #fff; color: #16181a; font-size: 12.5px; box-shadow: 0 0 0 1px rgb(12 17 27 / .1), 0 1px 2px rgb(12 17 27 / .05); }
.paper__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding-bottom: 12px; border-bottom: 3px solid #0b2a5b; }
.paper__crest { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #0b2a5b; color: #c9a227; font-weight: 700; box-shadow: inset 0 0 0 3px #c9a227; }
.paper__school { margin: 0; font: 700 17px/1.2 Georgia, "Times New Roman", serif; letter-spacing: .02em; text-transform: uppercase; color: #0b2a5b; }
.paper__sub { margin: 3px 0 0; color: var(--ts-muted); }
.paper__qrbox { position: relative; display: block; width: 50px; height: 50px; }
.paper__qr { display: block; width: 50px; height: 50px; color: #0c111b; fill: currentColor; }
/* the phone's camera reads the code: a line runs down it once (gone at rest) */
.paper__scan { position: absolute; left: -4px; right: -4px; top: 0; height: 2px; border-radius: 2px; background: var(--ts-forest); box-shadow: 0 0 8px 1px rgb(36 82 72 / .45); opacity: 0; }
:is(.scn [data-on]) .paper__scan { animation: dx-scan .75s ease-in-out calc(var(--t, 0) * 1s) both; }
@keyframes dx-scan { 0% { opacity: 0; top: 0; } 12% { opacity: 1; top: 0; } 88% { opacity: 1; top: 100%; } 100% { opacity: 0; top: 100%; } }
.paper__who { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.paper__who div, .paper__sum div { display: grid; gap: 2px; min-width: 0; }
.paper__who dt, .paper__sum small, .paper__remarks small, .paper__dates small, .paper__sign small { color: var(--ts-muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; }
.paper__who dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.paper__table { display: grid; border: 1px solid #d9dde3; border-radius: 3px; overflow: hidden; }
.paper__tr { display: grid; grid-template-columns: minmax(0, 1fr) 64px 56px 56px; align-items: center; height: 28px; padding: 0 12px; border-top: 1px solid #e6e9ee; font-variant-numeric: tabular-nums; }
.paper__tr > span:not(:first-child) { text-align: center; }
.paper__th { border-top: 0; background: #0b2a5b; color: #fff; font-weight: 600; font-size: 11.5px; }
.paper__cell { border-radius: 3px; outline: 1.5px solid transparent; outline-offset: 1px; justify-self: center; padding: 0 6px; }
.paper__grade { font-weight: 600; }
.paper__grade--a, .paper__grade--b { color: var(--ts-forest); }
.paper__grade--c { color: #0c111b; }
.paper__sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 9px 12px; border-top: 1px solid #e6e9ee; border-bottom: 1px solid #e6e9ee; }
.paper__sum b { font-size: 14px; color: #0b2a5b; white-space: nowrap; }
.paper__remarks { display: grid; gap: 7px; }
.paper__remarks p { margin: 0; display: grid; gap: 2px; padding-bottom: 6px; border-bottom: 1px dashed #d3d7dd; }
.paper__remarks span { justify-self: start; font-family: Georgia, "Times New Roman", serif; font-style: italic; color: #1e2a52; }
.paper__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.paper__sign { position: relative; display: grid; gap: 2px; width: 190px; }
.paper__sign svg { width: 120px; height: 36px; }
.paper__stamp { position: absolute; left: 92px; top: -16px; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; text-align: center; border: 2px solid rgb(31 79 191 / .55); color: rgb(31 79 191 / .7); font-size: 8px; font-weight: 700; line-height: 1.3; transform: rotate(-12deg); }
@keyframes sc-stamp { from { opacity: 0; transform: rotate(-12deg) scale(1.6); } 60% { opacity: 1; } }
.paper__dates { display: grid; gap: 2px; text-align: right; }
.paper__dates b { font-weight: 600; margin-bottom: 4px; }
/* the check: the public check page's words, a tick and a word for its status */
.dx__verify { --float-w: 268px; }
.dx__genuine { display: flex; align-items: center; gap: 7px; margin: 8px 0 0; font: 400 15px/1.25 var(--font-display); color: var(--ts-ok); }
.dx__genuine .sc__tick { width: 14px; height: 14px; }
.dx__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 14px; margin: 9px 0 0; padding-top: 9px; border-top: 1px solid var(--ts-line); }
.dx__facts div { display: grid; gap: 1px; min-width: 0; }
.dx__facts .dx__wide { grid-column: 1 / -1; }
.dx__facts dt { font-size: 11px; color: var(--ts-muted); }
.dx__facts dd { margin: 0; font-size: 12px; font-weight: 500; line-height: 1.3; }

/* the ID card: the designs (real buttons), the card, the turn, the sheet */
.dx__ids { --b: #0b2a5b; --a: #c9a227; display: grid; gap: 14px; justify-items: center; align-content: start; min-width: 0; }
.idc-wrap { display: grid; gap: 12px; justify-items: center; width: 100%; }
.idc-designs { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; padding: 3px; border-radius: 10px; background: rgb(12 17 27 / .05); }
.idc-designs button { height: 30px; padding: 0 12px; border: 0; border-radius: 8px; font: 400 12.5px/1 var(--font-text); color: var(--ts-muted); background: none; cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s; }
.idc-designs button:hover { color: var(--ts-ink); }
.idc-designs button[aria-pressed="true"] { background: #fff; color: var(--ts-ink); font-weight: 500; box-shadow: 0 0 0 1px rgb(12 17 27 / .08), 0 1px 2px rgb(12 17 27 / .08); }
.idc-designs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.idc { position: relative; width: min(100%, 342px); aspect-ratio: 85.6 / 54; border-radius: 12px; background: #fff; overflow: hidden; box-shadow: 0 0 0 1px rgb(12 17 27 / .07), 0 2px 4px rgb(12 17 27 / .04), 0 18px 36px -20px rgb(12 17 27 / .35); display: grid; grid-template-columns: 30% minmax(0, 1fr) auto; grid-template-rows: auto 1fr; gap: 8px 12px; padding: 0 14px 14px; font-size: 11px; color: #16181a; transition: all .45s var(--ease, ease); }
.idc__band { grid-column: 1 / -1; margin: 0 -14px; padding: 9px 14px; display: flex; align-items: center; gap: 8px; background: var(--b); color: #fff; font-size: 12px; transition: all .45s var(--ease, ease); }
.idc__crest { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--a); color: var(--b); font-size: 9px; font-weight: 700; flex: none; }
.idc__ghost { display: none; }
.idc__photo { position: relative; min-height: 0; align-self: stretch; border-radius: 8px; background: linear-gradient(160deg, #e7ebf2, #cfd6e2); overflow: hidden; transition: border-radius .45s var(--ease, ease); }
.idc__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.idc__who { display: grid; align-content: center; gap: 4px; min-width: 0; }
.idc__who p { margin: 0; display: grid; }
.idc__who small { color: var(--ts-muted); font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }
.idc__name { font-size: 15px; font-weight: 600; color: var(--b); }
.idc__qr { width: 46px; height: 46px; align-self: end; fill: currentColor; color: #0c111b; }
/* Modern: a bold colour panel down the side */
.dx__ids[data-look="1"] .idc:not(.idc--back) { grid-template-columns: 34% minmax(0, 1fr) auto; grid-template-rows: 64px minmax(0, 1fr); padding: 14px 14px 14px 0; }
.dx__ids[data-look="1"] .idc__band { grid-column: 1; grid-row: 1 / -1; margin: -14px 0; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 5px; padding: 12px; font-size: 10px; line-height: 1.25; }
.dx__ids[data-look="1"] .idc__photo { grid-column: 1; grid-row: 2; margin: 0 10px; z-index: 1; box-shadow: 0 0 0 3px #fff; }
.dx__ids[data-look="1"] .idc__who { grid-column: 2; grid-row: 1 / -1; }
.dx__ids[data-look="1"] .idc__qr { grid-column: 3; grid-row: 1 / -1; }
/* Minimal: white, one thin line of colour */
.dx__ids[data-look="2"] .idc__band { background: #fff; color: #0c111b; border-bottom: 2px solid var(--b); padding-block: 8px; }
.dx__ids[data-look="2"] .idc__photo { background: #f1f3f6; border-radius: 50%; aspect-ratio: 1; align-self: center; }
.dx__ids[data-look="2"] .idc__name { color: #0c111b; }
/* Crest: formal, the crest faint behind the details */
.dx__ids[data-look="3"] .idc__band { background: #fff; color: var(--b); justify-content: center; font-family: Georgia, "Times New Roman", serif; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid rgb(11 42 91 / .2); }
.dx__ids[data-look="3"] .idc__ghost { display: grid; position: absolute; right: 40px; bottom: -18px; width: 150px; height: 150px; border-radius: 50%; place-items: center; font-size: 52px; font-weight: 700; color: rgb(11 42 91 / .06); box-shadow: inset 0 0 0 10px rgb(11 42 91 / .05); pointer-events: none; }
.dx__ids[data-look="3"] .idc__name { font-family: Georgia, "Times New Roman", serif; }
/* the back, in the school's colours: the crest, where to return a lost card, how long it is good for, and its QR */
.idc--back { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto minmax(0, 1fr); align-content: stretch; gap: 6px; padding: 14px 16px; background: var(--b); color: #fff; border-top: 3px solid var(--a); }
.idc__backhead { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; padding-bottom: 8px; border-bottom: 1px solid rgb(255 255 255 / .14); font-size: 12px; }
.idc__backhead b { font-weight: 600; }
.idc--back p { margin: 0; display: grid; align-content: start; gap: 1px; font-size: 12px; }
.idc--back small { color: rgb(255 255 255 / .68); font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }
.idc__scan { align-self: end; display: flex; align-items: center; gap: 10px; font-weight: 500; }
.idc__scan .idc__qr { width: 48px; height: 48px; padding: 4px; border-radius: 6px; background: #fff; color: #0c111b; flex: none; }
/* the turn (showcase.js [data-turn] sets data-turn-ready): the two faces share one place, the back turned away, and
   the card turns about its upright axis. Without script the faces show one under the other. The scene turns it
   once (.is-showing), a little quicker than a full look. */
.idc-turn { display: grid; justify-items: center; width: min(100%, 342px); }
.idc-turn__card { display: grid; gap: 14px; width: 100%; }
.idc-turn__card > .idc { width: 100%; }
[data-turn-ready] .idc-turn { perspective: 1100px; cursor: pointer; }
[data-turn-ready] .idc-turn__card { gap: 0; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.3, .7, .2, 1); }
[data-turn-ready] .idc-turn__card > .idc { grid-area: 1 / 1; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
[data-turn-ready] .idc--back { transform: rotateY(180deg); transition: none; }
[data-turn-ready][data-side="back"] .idc-turn__card { transform: rotateY(180deg); }
[data-turn-ready].is-showing .idc-turn__card { animation: idc-show 2.2s cubic-bezier(.45, 0, .25, 1) both; }
@keyframes idc-show { 0% { transform: rotateY(0); } 30% { transform: rotateY(180deg); } 66% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }
.idc-flip { position: relative; height: 36px; padding: 0 14px 0 12px; border: 0; border-radius: 99px; display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1 var(--font-text); color: #0c111b; background: #fff; box-shadow: 0 0 0 1px rgb(12 17 27 / .1); cursor: pointer; transition: background .2s, color .2s, transform .15s; }
.idc-flip[hidden] { display: none; }
.idc-flip::before { content: ""; position: absolute; inset: -4px 0; }
.idc-flip svg { width: 16px; height: 16px; transition: transform .5s var(--ease, ease); }
.idc-flip:hover { background: #f4f5f7; }
.idc-flip:hover svg { transform: rotate(180deg); }
.idc-flip:active { transform: scale(.97); }
.idc-flip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.idc-flip[aria-pressed="true"] { background: #0c111b; color: #fff; }
/* the A4 sheet: ten cards in two columns of five, each a tiny copy of the design shown */
.dx__sheet { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--ts-line); }
.dx__sheet-text { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.dx__a4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(5, minmax(0, 1fr)); gap: 3px 4px; width: 88px; aspect-ratio: 210 / 297; padding: 7px 6px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 1px rgb(12 17 27 / .1), 0 6px 14px -8px rgb(12 17 27 / .35); }
.dx__mini { position: relative; display: block; border-radius: 2px; background: #fff; overflow: hidden; box-shadow: 0 0 0 .75px rgb(12 17 27 / .28); }
.dx__mini b { position: absolute; inset: 0 0 auto; height: 30%; background: var(--b); }
.dx__mini span { position: absolute; left: 10%; top: 42%; width: 24%; height: 46%; border-radius: 1px; background: #cfd6e2; }
.dx__ids[data-look="1"] .dx__mini b { inset: 0 auto 0 0; width: 34%; height: auto; }
.dx__ids[data-look="1"] .dx__mini span { left: 6%; width: 22%; box-shadow: 0 0 0 1px #fff; }
.dx__ids[data-look="2"] .dx__mini b { height: 8%; }
.dx__ids[data-look="2"] .dx__mini span { top: 34%; height: 40%; border-radius: 50%; }
.dx__ids[data-look="3"] .dx__mini b { height: 26%; background: #fff; border-bottom: 1px solid rgb(11 42 91 / .35); }
@media (max-width: 1199px) {
  .dx__body { grid-template-columns: minmax(0, 1fr) 344px; gap: 22px; }
  .dx__head { display: grid; justify-content: stretch; }
}
@media (max-width: 1023px) {
  /* the card goes under the report card, and the check floats beside the ID card */
  .dx__body { grid-template-columns: minmax(0, 1fr); }
  .dx__ids { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; column-gap: 22px; }
  .idc-designs { grid-column: 1 / -1; }
  /* the check sits under the report card as one band: what was scanned and the verdict, then its three facts */
  .dx__report .sc__float { position: static; width: auto; margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); column-gap: 24px; align-items: center; }
  .dx__verify .sc__fh { grid-column: 1; }
  .dx__verify .dx__genuine { grid-column: 1; }
  .dx__verify .dx__facts { grid-column: 2; grid-row: 1 / span 2; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; margin: 0; padding: 0 0 0 24px; border-top: 0; border-left: 1px solid var(--ts-line); }
  .dx__facts .dx__wide { grid-column: auto; }
}
@media (max-width: 639px) {
  .dx__head { padding-top: 14px; }
  .sc__fig--more { display: none; }
  .dx__body { padding: 14px; gap: 22px; }
  .paper { padding: 14px; gap: 10px; }
  .paper__head { gap: 10px; }
  .paper__school { font-size: 13.5px; }
  .paper__crest { width: 36px; height: 36px; font-size: 12px; }
  .paper__qrbox, .paper__qr { width: 40px; height: 40px; }
  .paper__who, .paper__sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .paper__tr { grid-template-columns: minmax(0, 1fr) 44px 44px 44px; padding: 0 8px; }
  .paper__foot { flex-direction: column; align-items: stretch; }
  .paper__dates { text-align: left; }
  .dx__ids { grid-template-columns: minmax(0, 1fr); }
  .idc-designs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .idc-designs button { height: 40px; }
  .idc-flip { height: 40px; }
  /* a phone: a shorter page (five subjects, one remark, no dates) and the check under it */
  .paper__tr:nth-child(n+7), .paper__remarks p + p, .paper__dates { display: none; }
  .dx__report .sc__float { display: block; }
  .dx__verify .dx__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 9px 0 0; padding: 9px 0 0; border-left: 0; border-top: 1px solid var(--ts-line); }
  .dx__facts .dx__wide { grid-column: 1 / -1; }
  /* a phone's narrower card: the QR moves beside the details and its line goes, so nothing lies on anything else */
  .idc--back { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto minmax(0, 1fr); column-gap: 12px; }
  .idc__backhead { grid-column: 1 / -1; }
  .idc--back p { grid-column: 1; font-size: 11px; }
  .idc__scan { grid-column: 2; grid-row: 2 / 4; align-self: center; }
  .idc__scan span { display: none; }
}
@media (prefers-reduced-motion: reduce) { [data-turn-ready] .idc-turn__card, .idc-flip, .idc-flip svg, .idc, .idc__band { transition: none; animation: none; } }

/* the details: twelve tiles under the product's numbers */
.numbers { margin: 0 0 var(--s-7, 48px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; border-top: 1px solid var(--line); padding-top: var(--s-5, 24px); }
.numbers div { display: flex; flex-direction: column-reverse; gap: 4px; }
.numbers dt { color: var(--muted); font-size: 15px; }
.numbers dd { margin: 0; font-family: var(--font-display); font-size: clamp(36px, 3vw + 12px, 56px); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.details { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.detail { display: grid; gap: 8px; align-content: start; padding: 20px; border-radius: var(--r-md, 12px); background: var(--p-surface); }
.detail__icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: #0c111b; font-size: 18px; box-shadow: 0 0 0 1px rgb(12 17 27 / .06); }
.detail h3 { margin: 6px 0 0; font-size: 17px; font-weight: 500; line-height: 1.3; }
.detail p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.details[data-stagger-ready] > li { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease, ease), transform .5s var(--ease, ease); transition-delay: calc(var(--i, 0) * 70ms); }
.details[data-stagger-ready].is-in > li { opacity: 1; transform: none; }
@media (max-width: 1023px) { .details { grid-template-columns: repeat(2, minmax(0, 1fr)); } .numbers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 639px) { .details { grid-template-columns: minmax(0, 1fr); } .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- the hero's product tour: six screens in one window, each a short scene (site/home/tour.blade.php)
   The window: white, one layered shadow, hairlines at 6-8% ink. Each scene: a head (title, context, key figures, a
   thin progress line on its rule), a sheet, a side panel, and one floating card with its own shadow that overhangs
   the window's right edge where the page has room. The .a-* steps run only while the scene has data-on (showcase.js),
   each at its --t (seconds); at rest every element is in its finished state. */
.tour { --tour-h: 472px; --aside: 228px; --pad-x: 22px;
  /* the window's colours, light (the default) and dark (data-theme="dark", the Light / Dark control in its bar) */
  --ts-bg: #fff; --ts-side: #fcfcfd; --ts-raise: #fff; --ts-ink: #0c111b; --ts-body: #3d4452; --ts-muted: #646b78; --ts-faint: #8a909b;
  --ts-line: rgb(12 17 27 / .07); --ts-line-soft: rgb(12 17 27 / .06); --ts-line-strong: rgb(12 17 27 / .12); --ts-fill: rgb(12 17 27 / .06);
  --ts-hover: rgb(12 17 27 / .03); --ts-current: rgb(12 17 27 / .045);
  --ts-ok: #16794a; --ts-out: #a3462f; --ts-warn: #8a5a14; --ts-forest: #245248; --ts-ochre: #d99a36; --ts-clay: #bc563d; --ts-ring: rgb(31 111 235 / .55);
  --ts-area: #245248; --ts-area-top: .16; --ts-btn: #0c111b; --ts-btn-ink: #fff; --ts-app: #245248; --ts-dots: #dcdfe2;
  --ts-shadow: 0 0 0 1px rgb(12 17 27 / .07), 0 1px 2px rgb(12 17 27 / .04), 0 10px 20px -12px rgb(12 17 27 / .1), 0 44px 80px -40px rgb(12 17 27 / .3);
  --ts-float-shadow: 0 0 0 1px rgb(12 17 27 / .07), 0 2px 4px rgb(12 17 27 / .04), 0 24px 48px -16px rgb(12 17 27 / .3);
  --ts-float-flat: 0 0 0 1px rgb(12 17 27 / .08), 0 10px 24px -14px rgb(12 17 27 / .3);
  position: relative; overflow: visible; border-radius: 14px; background: var(--ts-bg); color: var(--ts-ink); box-shadow: var(--ts-shadow); }
/* dark: the school panel's own dark theme (resources/css/filament/theme.css .dark --ui-*, resources/css/ui-kit.css .dark
   --uk-*), so the window looks like the product at night; the logo's forest, ochre and clay lifted until they read on it.
   Only the window: the page around it stays light. */
.tour[data-theme="dark"] {
  --ts-bg: #151617; --ts-side: #0e0f10; --ts-raise: #1d1e20; --ts-ink: #f1f1f3; --ts-body: #c4c6cc; --ts-muted: #8f9198; --ts-faint: #6c6e74;
  --ts-line: rgb(255 255 255 / .08); --ts-line-soft: rgb(255 255 255 / .065); --ts-line-strong: rgb(255 255 255 / .14); --ts-fill: rgb(255 255 255 / .08);
  --ts-hover: rgb(255 255 255 / .05); --ts-current: rgb(255 255 255 / .08);
  --ts-ok: #34d399; --ts-out: #f87171; --ts-warn: #fbbf24; --ts-forest: #6fbfa6; --ts-ochre: #e5ac4f; --ts-clay: #f0876c; --ts-ring: rgb(88 166 255 / .7);
  --ts-area: #6fbfa6; --ts-area-top: .22; --ts-btn: #f1f1f3; --ts-btn-ink: #151617; --ts-app: #2f7a66; --ts-dots: #3a3c40;
  --ts-shadow: 0 0 0 1px rgb(12 17 27 / .9), 0 1px 2px rgb(12 17 27 / .2), 0 10px 20px -12px rgb(12 17 27 / .3), 0 44px 80px -40px rgb(12 17 27 / .55);
  --ts-float-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 2px 4px rgb(0 0 0 / .3), 0 24px 48px -16px rgb(0 0 0 / .6);
  --ts-float-flat: 0 0 0 1px rgb(255 255 255 / .1), 0 10px 24px -14px rgb(0 0 0 / .6);
  color-scheme: dark;
}
/* the report card stays paper in the dark, as printed pages do in the product (theme.css .sh-paper): its own light
   colours, under a shadow made for the dark window */
.tour .ts__float--page { --ts-raise: #fff; --ts-ink: #0c111b; --ts-body: #3d4452; --ts-muted: #646b78; --ts-line: rgb(12 17 27 / .07);
  --ts-forest: #245248; --ts-warn: #8a5a14; --ts-out: #a3462f; color-scheme: light; }
.ts__stop-a { stop-color: var(--ts-area); stop-opacity: var(--ts-area-top); }
.ts__stop-b { stop-color: var(--ts-area); stop-opacity: 0; }
/* switching cross-fades the colours (showcase.js sets data-theming for the switch only, never with reduced motion) */
.tour[data-theming], .tour[data-theming] *, .tour[data-theming] *::after {
  transition: background-color .22s ease, color .22s ease, border-color .22s ease, box-shadow .22s ease, fill .22s ease, stroke .22s ease, stop-color .22s ease, outline-color .22s ease !important; }
.hero--centred .hero__window > .tour { width: min(1120px, 100%); }
main > section.hero { padding-bottom: var(--s-6, 32px); }
.tour__frame { border-radius: inherit; overflow: hidden; }
.tour .d-win__bar { height: 40px; padding-right: calc(52px + var(--theme-w, 132px)); border-bottom-color: var(--ts-line); color: var(--ts-muted); }
.tour .d-win__dots i { background: var(--ts-dots); }
.tour .d-win__bar b { font-weight: 500; color: var(--ts-ink); }
.tour .d-win__body { grid-template-columns: 180px minmax(0, 1fr); min-height: 0; }

/* the side menu: quiet, the open screen marked plainly; its line runs while the screen is on */
.tour .tour__nav { display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; background: var(--ts-side); border-right: 1px solid var(--ts-line-soft); }
.tour__term { display: grid; gap: 3px; margin-top: auto; padding: 12px 10px 4px; border-top: 1px solid var(--ts-line-soft); font-size: 12px; }
.tour__term b { font-weight: 500; color: var(--ts-ink); }
.tour__term small { font-size: 11.5px; color: var(--ts-muted); }
.tour__term .ts__bar { height: 4px; margin-top: 5px; }
.tour__item { position: relative; display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: none; font: 400 13px/1 var(--font-text); text-align: left; color: var(--ts-muted); cursor: pointer; overflow: hidden; transition: background .2s, color .2s; }
.tour__item svg { flex: none; width: 14px; height: 14px; opacity: .7; }
.tour__item:hover { color: var(--ts-ink); background: var(--ts-hover); }
.tour__item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.tour__item::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 1.5px; border-radius: 2px; background: var(--ts-forest); opacity: .55; transform: scaleX(0); transform-origin: left; }
.tour__item[aria-pressed="true"] { background: var(--ts-current); color: var(--ts-ink); font-weight: 500; }
.tour__item[aria-pressed="true"] svg { opacity: 1; color: var(--ts-forest); }
.tour[data-look="0"] [data-dot="0"]::after, .tour[data-look="1"] [data-dot="1"]::after, .tour[data-look="2"] [data-dot="2"]::after,
.tour[data-look="3"] [data-dot="3"]::after, .tour[data-look="4"] [data-dot="4"]::after, .tour[data-look="5"] [data-dot="5"]::after { animation: tour-line 7s linear both; }
.tour[data-paused] .tour__item::after { animation-play-state: paused; }
@keyframes tour-line { to { transform: scaleX(1); } }

/* the pause button sits at the end of the title bar */
.tour__pause { position: absolute; top: 6px; right: 8px; z-index: 4; width: 28px; height: 28px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--ts-bg); color: var(--ts-ink); cursor: pointer; box-shadow: 0 0 0 1px var(--ts-line-strong); }
.tour__pause:hover { box-shadow: 0 0 0 1px var(--ts-muted); }
.tour__pause:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tour__pause::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; }
.tour__pause svg { width: 11px; height: 11px; fill: currentColor; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tour__ico-play, .tour__pause[aria-pressed="true"] .tour__ico-pause { display: none; }
.tour__pause[aria-pressed="true"] .tour__ico-play { display: block; }

/* Light / Dark, in the title bar between the date and the pause button: two real buttons in the window's own chrome */
.tour__theme { position: absolute; top: 6px; right: 44px; z-index: 4; display: flex; gap: 2px; height: 28px; padding: 2px; border-radius: 8px; background: var(--ts-fill); }
.tour__theme button { position: relative; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px 0 7px; border: 0; border-radius: 6px; background: none; color: var(--ts-muted); font: 500 12px/1 var(--font-text); cursor: pointer; }
.tour__theme button:hover { color: var(--ts-ink); }
.tour__theme button[aria-pressed="true"] { background: var(--ts-bg); color: var(--ts-ink); box-shadow: 0 0 0 1px var(--ts-line-strong), 0 1px 2px rgb(0 0 0 / .08); }
.tour__theme button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tour__theme svg { flex: none; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.tour__theme button[data-theme-set="dark"] svg { fill: currentColor; stroke-width: 1; }
.tour[data-theme="dark"] .tour__theme button[aria-pressed="true"] { background: #2a2b2e; }
/* below 520 the words go, the icons stay (each button keeps its name), and each target is 40px tall */
@media (max-width: 519px) {
  .tour { --theme-w: 88px; }
  .tour .d-win__dots { display: none; }
  .tour .d-win__bar b { white-space: nowrap; }
  .tour__theme span { display: none; }
  .tour__theme button { justify-content: center; width: 40px; padding: 0; }
  .tour__theme button::before { content: ""; position: absolute; inset: -8px 0; }
}

/* the stage: one fixed height, the six scenes stacked in one cell */
.tour__stage { display: grid; height: var(--tour-h); min-width: 0; overflow: hidden; }
.tour__scene { grid-area: 1 / 1; min-width: 0; min-height: 0; visibility: hidden; opacity: 0; transition: opacity .35s var(--ease, ease), visibility 0s linear .35s; }
.tour[data-look="0"] [data-scene="0"], .tour[data-look="1"] [data-scene="1"], .tour[data-look="2"] [data-scene="2"],
.tour[data-look="3"] [data-scene="3"], .tour[data-look="4"] [data-scene="4"], .tour[data-look="5"] [data-scene="5"] { visibility: visible; opacity: 1; transition-delay: 0s; }

.ts { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 16px; padding: 18px var(--pad-x); color: var(--ts-ink); font-size: 13px; line-height: 1.3; }
.ts .n { text-align: right; font-variant-numeric: tabular-nums; }
.ts__dim { color: var(--ts-muted); }
.ts__ref { font: 400 11.5px/1.2 var(--font-mono); color: var(--ts-muted); }
.ts__two { display: grid; gap: 2px; min-width: 0; }
.ts__two small { font-size: 11.5px; color: var(--ts-muted); }
.c-n, .c-s { display: none !important; }

/* the head: title and context, the key figures, the progress line on its rule */
.ts__head { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 28px; padding-bottom: 14px; border-bottom: 1px solid var(--ts-line); }
.ts__title { font: 400 19px/1.2 var(--font-display); letter-spacing: -.015em; }
.ts__ctx { margin-top: 4px; color: var(--ts-muted); }
.ts__figs { display: flex; gap: 28px; }
.ts__fig { display: grid; gap: 5px; }
.ts__fig > small { font-size: 11.5px; color: var(--ts-muted); white-space: nowrap; }
.ts__fig b { font: 400 22px/1 var(--font-display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ts__fig b small { font-size: 13px; letter-spacing: 0; color: var(--ts-muted); }
.ts__fig b.is-out { color: var(--ts-out); }
.ts__figs { position: relative; }
.ts__prog { position: absolute; left: 0; right: 0; bottom: -15px; height: 2px; }
.ts__prog i { display: block; height: 100%; width: var(--v, 100%); border-radius: 2px; background: var(--ts-forest); }
.ts__prog--steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.ts__prog--steps i { border-radius: 0; }

/* the body: the sheet and the side panel */
.ts__body { display: grid; grid-template-columns: minmax(0, 1fr) var(--aside); gap: 24px; min-height: 0; }
.ts__aside { display: grid; align-content: start; gap: 12px; min-width: 0; }
.ts__panel { display: grid; gap: 9px; padding: 14px; border-radius: 10px; border: 1px solid var(--ts-line); }
.ts__ph { font-size: 12px; font-weight: 500; }
.ts__small { font-size: 12px; color: var(--ts-muted); }
.ts__ph--rule { margin-top: 4px; padding-top: 11px; border-top: 1px solid var(--ts-line); }
.ts__big { font: 400 30px/1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ts__bar-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) 34px; gap: 10px; align-items: center; font-size: 12px; color: var(--ts-muted); }
.ts__bar-row--wide { grid-template-columns: 48px minmax(0, 1fr) 34px; }
.ts__bar { position: relative; height: 6px; border-radius: 3px; background: var(--ts-fill); overflow: hidden; }
.ts__bar i { position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: inherit; background: var(--ts-forest); }
.ts__bar i.is-low { background: var(--ts-ochre); }
.ts__bar--wide { height: 8px; }

/* the sheet: column heads, hairline rows, numbers on the right */
.ts__table { display: grid; align-content: start; min-width: 0; }
.ts__tr { display: grid; grid-template-columns: var(--cols); gap: 12px; align-items: center; height: 38px; border-bottom: 1px solid var(--ts-line-soft); white-space: nowrap; }
.ts__tr > * { min-width: 0; }
.ts__th { height: 28px; font-size: 11.5px; color: var(--ts-muted); border-bottom-color: var(--ts-line-strong); }
.ts__table--tall .ts__tr:not(.ts__th, .ts__total) { height: 47px; }
.ts__total { border-bottom: 0; font-weight: 500; }
.ts__line { display: flex; align-items: center; gap: 7px; padding-top: 12px; font-size: 12.5px; color: var(--ts-body); }
.ts__line .ts__tick { color: var(--ts-ok); }
.ts__st { display: grid; justify-items: start; }
.ts__st:not(.ts__two) > *, .ts__stack > * { grid-area: 1 / 1; }
.ts__stack { display: grid; }
.ts__ok, .ts__out, .ts__wait { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.ts__ok { color: var(--ts-ok); }
.ts__out { color: var(--ts-out); }
.ts__wait { color: var(--ts-warn); font-weight: 400; }
.ts__tick { flex: none; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ts__spin { flex: none; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 17 10; }
.ts__pm { display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; margin-right: 6px; border-radius: 5px; background: var(--ts-fill); color: var(--ts-body); vertical-align: -4px; }
.ts__pm svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.ts__via { display: inline-flex; align-items: center; }
.ts__grade { font-weight: 500; }
.ts__grade--a, .ts__grade--b { color: var(--ts-forest); }
.ts__grade--d { color: var(--ts-warn); }
.ts__grade--f { color: var(--ts-out); }
.ts__cell { border-radius: 4px; outline: 1.5px solid transparent; outline-offset: 3px; }

/* the timetable */
.ts__tt { display: grid; grid-template-columns: 40px repeat(5, minmax(0, 1fr)); grid-template-rows: 18px repeat(6, minmax(0, 1fr)); gap: 5px; min-height: 0; }
.ts__day, .ts__time { font-size: 11.5px; color: var(--ts-muted); font-variant-numeric: tabular-nums; }
.ts__day { padding-left: 2px; }
.ts__time { align-self: center; }
.ts__lesson { display: grid; align-content: center; gap: 1px; min-width: 0; padding: 0 9px; border-radius: 7px; border: 1px solid var(--ts-line); background: var(--ts-raise); overflow: hidden; white-space: nowrap; }
.ts__lesson b { font-weight: 500; font-size: 12.5px; }
.ts__lesson small { font-size: 11px; color: var(--ts-muted); }
.ts__lesson.is-cover { border-color: color-mix(in oklab, var(--ts-forest) 45%, transparent); box-shadow: inset 2px 0 0 var(--ts-forest); }
.ts__lesson.is-cover small { color: var(--ts-forest); }
.ts__slot { display: grid; min-width: 0; }
.ts__slot > * { grid-area: 1 / 1; }
.ts__gap { display: grid; place-items: center; border: 1px dashed var(--ts-ochre); border-radius: 7px; font-size: 11.5px; color: var(--ts-warn); }
.ts__pick { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 9px; border-top: 1px solid var(--ts-line); }
.ts__pick:not(.is-chosen) { color: var(--ts-muted); }
.ts__ph + .ts__pick { padding-top: 0; border-top: 0; }
.ts__method { display: grid; grid-template-columns: minmax(0, 1fr) 16px 62px; gap: 8px; align-items: center; font-size: 12px; }
.ts__btn { display: grid; margin-top: 4px; }
.ts__btn > span { grid-area: 1 / 1; display: flex; align-items: center; justify-content: center; height: 34px; border-radius: 8px; font-size: 12.5px; font-weight: 500; }
.ts__btn-off { background: var(--ts-fill); color: var(--ts-faint); }
.ts__btn-on { background: var(--ts-btn); color: var(--ts-btn-ink); }

/* the dashboard's chart */
.ts__chart { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 14px; min-height: 0; padding: 14px 18px 12px; border: 1px solid var(--ts-line); border-radius: 10px; }
.ts__chart > .ts__ph { font-weight: 400; color: var(--ts-muted); }
.ts__plot { position: relative; margin: 6px 6px 0 38px; min-height: 0; }
.ts__plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ts__grid { position: absolute; left: 0; right: 0; top: var(--y); border-top: 1px dashed var(--ts-line-strong); }
.ts__grid small { position: absolute; right: calc(100% + 8px); top: -7px; font-size: 11px; color: var(--ts-muted); font-variant-numeric: tabular-nums; }
.ts__area { fill: url(#ts-area); }
.ts__line-path { fill: none; stroke: var(--ts-forest); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.ts__dot { position: absolute; right: 0; top: var(--y); width: 0; height: 0; }
.ts__dot i { position: absolute; left: -4.5px; top: -4.5px; width: 9px; height: 9px; border-radius: 50%; background: var(--ts-forest); box-shadow: 0 0 0 3px var(--ts-bg); }
.ts__dot small { position: absolute; right: -8px; top: 8px; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ts__days { display: flex; justify-content: space-between; margin: 0 6px 0 38px; font-size: 11px; color: var(--ts-muted); }
.ts__days span { display: flex; justify-content: center; width: 0; white-space: nowrap; }

/* the floating card: its own shadow, over the side panel and the window's right edge */
.ts__float { position: absolute; z-index: 3; right: -28px; bottom: 18px; width: 248px; padding: 12px 14px 13px; border-radius: 12px; background: var(--ts-raise); color: var(--ts-ink); font-size: 12.5px; line-height: 1.45;
  box-shadow: var(--ts-float-shadow); }
.ts__float p { margin: 6px 0 0; color: var(--ts-body); }
.ts__fh { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.ts__fh b { flex: 1; min-width: 0; font-weight: 500; }
.ts__fh time { color: var(--ts-muted); font-variant-numeric: tabular-nums; }
.ts__app { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 6px; background: var(--ts-app); }
.ts__app svg { width: 12px; height: 12px; fill: #fff; }
.ts__float--key { width: 188px; }
.ts__key { display: grid; gap: 5px; margin-top: 9px; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--ts-body); }
.ts__k { display: flex; gap: 10px; white-space: nowrap; }
.ts__k .ts__grade { width: 12px; }
.ts__float--page { width: 206px; padding: 14px 14px 12px; bottom: 14px; border-radius: 6px; }
.ts__page-h { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--ts-line); }
.ts__page-h b { font-size: 11px; font-weight: 500; line-height: 1.2; }
.ts__page-h small { font-size: 10.5px; }
.ts__crest { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--ts-forest); box-shadow: inset 0 0 0 3px var(--ts-raise), inset 0 0 0 9px color-mix(in oklab, var(--ts-forest) 16%, transparent); }
.ts__page-name { margin: 9px 0 6px; font: 400 15px/1.2 var(--font-display); }
.ts__page-rows { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; font-size: 11px; color: var(--ts-body); }
.ts__page-f { margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--ts-line); font-size: 10.5px; font-weight: 500; }
.ts__float--list { width: 250px; }
.ts__float--list ul { display: grid; gap: 7px; margin: 9px 0 0; padding: 0; list-style: none; }
.ts__float--list li { display: flex; align-items: baseline; gap: 9px; color: var(--ts-body); }
.ts__float--list li i { flex: none; width: 6px; height: 6px; border-radius: 50%; transform: translateY(-1px); }
.ts__float--list .is-out { background: var(--ts-clay); }
.ts__float--list .is-warn { background: var(--ts-ochre); }

/* the steps of each scene, once, eased, at each element's --t; the resting style is the finished state */
.a-span { opacity: 0; }
.ts[data-on] .a-in { animation: ts-in .5s var(--m-ease-enter, ease-out) calc(var(--t, 0) * 1s) both; }
.ts[data-on] .a-pop { animation: ts-pop .4s var(--m-ease-enter, ease-out) calc(var(--t, 0) * 1s) both; }
.ts[data-on] .a-pop .ts__tick path[pathLength] { stroke-dasharray: 1; animation: ts-draw .4s ease-out calc(var(--t, 0) * 1s + .06s) both; }
.ts[data-on] .a-span { animation: ts-span calc((var(--u) - var(--t, 0)) * 1s) linear calc(var(--t, 0) * 1s) both; }
.ts[data-on] .a-span .ts__spin { animation: ts-spin .8s linear 4; }
.ts[data-on] .a-fill { animation: ts-fill calc((var(--u) - var(--t, 0)) * 1s) cubic-bezier(.45, 0, .2, 1) calc(var(--t, 0) * 1s) both; }
.ts[data-on] .a-grow { animation: ts-grow .7s var(--ease, ease-out) calc(var(--t, 0) * 1s) both; }
.ts[data-on] .a-type { animation: ts-type .7s ease-out calc(var(--t, 0) * 1s) both; }
.ts[data-on] .a-slot { animation: ts-slot .65s var(--m-ease-enter, ease-out) calc(var(--t, 0) * 1s) both; }
.ts[data-on] .a-float { animation: ts-float .7s var(--m-ease-enter, ease-out) calc(var(--t, 0) * 1s) both; }
.ts[data-on] .a-draw { animation: ts-wipe 1.5s cubic-bezier(.45, 0, .2, 1) calc(var(--t, 0) * 1s) both; }
@keyframes ts-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes ts-pop { from { opacity: 0; transform: scale(.92); } }
@keyframes ts-draw { from { stroke-dashoffset: 1; } }
@keyframes ts-span { 0% { opacity: 0; } 6%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ts-spin { to { transform: rotate(1turn); } }
@keyframes ts-fill { from { width: var(--v0, 0%); } }
@keyframes ts-grow { from { width: 0; } }
@keyframes ts-type { 0% { opacity: 0; outline-color: var(--ts-ring); } 10% { opacity: 1; } 100% { outline-color: transparent; } }
@keyframes ts-slot { from { opacity: 0; transform: translateX(18px) scale(.97); } }
@keyframes ts-float { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes ts-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 -8px 0 0); } }
/* paused with the button, or with reduced motion: every screen at rest, finished */
.tour[data-stopped] .ts *, .tour[data-stopped] .tour__item::after { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .tour__scene, .tour__item { transition: none; } .tour *, .tour *::after { animation: none !important; } }

/* where the page has no room beside the window, the card stays inside it */
@media (max-width: 1199px) {
  .tour { --aside: 208px; --tour-h: 520px; }
  .ts__head { display: grid; justify-content: stretch; gap: 12px; }
  .ts__figs { justify-self: start; }
  /* the card sits over the side panel's own column, never over the sheet; the panel's second part makes room */
  .ts__float, .ts__float--key, .ts__float--page, .ts__float--list { right: var(--pad-x); bottom: 16px; width: var(--aside); }
  .ts__more, .ts__page-rows { display: none !important; }
  .c-w { display: none !important; }
  .c-n { display: block !important; }
  .ts__tr { grid-template-columns: var(--cols-m, var(--cols)); }
  .ts__body { gap: 20px; }
  .ts__tt { grid-template-columns: 36px repeat(4, minmax(0, 1fr)); }
  .ts__tt .d-fri { display: none; }
}
@media (max-width: 1023px) {
  .tour .d-win__bar .tour__date { display: none; }
  .tour .d-win__body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .tour .tour__nav { flex-direction: row; gap: 2px; padding: 6px 8px; border-right: 0; border-bottom: 1px solid var(--ts-line-soft); }
  .tour__item { flex: 1 1 auto; justify-content: center; height: 32px; padding: 0 8px; }
  .tour__item svg { display: none; }
  .tour__term { display: none; }
  .tour { --aside: 200px; }
  .ts__body { gap: 18px; }
  .ts__method { font-size: 11.5px; grid-template-columns: minmax(0, 1fr) 12px 52px; gap: 6px; }
  .ts__method .ts__pm { display: none; }
  .ts__lesson { padding: 0 7px; }
  .ts__figs { gap: 22px; }
}
/* a phone: the menu in two rows, one column, no side panel; the floating card sits under the sheet */
@media (max-width: 639px) {
  .tour { --tour-h: 560px; }
  .tour .tour__nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding: 6px; }
  .tour__item { justify-content: center; height: auto; min-height: 34px; padding: 5px 4px; font-size: 12px; line-height: 1.15; text-align: center; }
  .c-p { display: none !important; }
  .ts { grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; padding: 14px; }
  .ts__head { display: grid; gap: 12px; padding-bottom: 12px; }
  .ts__title { font-size: 17px; }
  .ts__ctx { font-size: 12px; }
  .ts__figs { display: flex; flex-wrap: wrap; gap: 10px 24px; }
  .ts__figs--four { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ts__figs--four .ts__fig > small { white-space: normal; }
  .c-s { display: inline !important; }
  .ts__days span:nth-child(odd) { visibility: hidden; }
  .ts__fig b { font-size: 19px; }
  .ts__tr { grid-template-columns: var(--cols-s, var(--cols-m, var(--cols))); gap: 10px; height: 36px; }
  .ts__table--tall .ts__tr:not(.ts__th, .ts__total) { height: 44px; }
  .ts__table > .ts__tr:nth-child(n+7):not(.ts__total, .ts__table--six > *) { display: none; }
  .ts__table--six > .ts__tr:nth-child(n+8) { display: none; }
  .ts__body { grid-template-columns: minmax(0, 1fr); }
  .ts__aside { display: none; }
  .ts__line { padding-top: 10px; font-size: 12px; white-space: normal; }
  .ts__tt { grid-template-columns: 34px repeat(3, minmax(0, 1fr)); gap: 4px; }
  .ts__tt .d-mon { display: none; }
  .ts__lesson { padding: 0 6px; }
  .ts__lesson b { font-size: 11.5px; }
  .ts__float, .ts__float--key, .ts__float--page, .ts__float--list { position: static; width: auto; box-shadow: var(--ts-float-flat); }
  .ts__key { display: flex; flex-wrap: wrap; gap: 4px 16px; }
  .ts__k { gap: 6px; }
  .ts__page-rows { display: none; }
  .ts__page-name { margin: 6px 0 0; }
  .ts__plot { margin-left: 34px; }
  .ts__days { margin-left: 34px; }
}

/* tighter rhythm: the kit's 120px above and 72px below every section left ~200px of empty white between them.
   The sections are as tall as what they show, so the space between them only needs to separate, not fill. */
:root { --padt: 88px; --padb: 40px; --head-gap: 40px; }
@media (max-width: 1023px) { :root { --padt: 72px; --padb: 32px; } }
@media (max-width: 639px) { :root { --padt: 56px; --padb: 24px; --head-gap: 28px; } }
/* on a phone the kit pads the foot of every section for the action bar (--bar, 64px), which put 144px between
   sections; only the end of the page needs that room (the footer keeps it), so the sections between drop it */
@media (max-width: 639px) { main > section:not(.hero) { padding-bottom: var(--padb); } }
/* the features section's two rows of cards sit together, not a screen apart */
main > :is(section, .section).g2 > :is(.wrap, .container) { row-gap: 16px; grid-template-rows: auto; }

/* a section reached from a link settles in: its heading, then its lead and the rest of its head (showcase.js) */
section:focus, footer:focus { outline: none; }
.is-arriving :is(h2, .section-head h2) { animation: arrive .7s var(--ease, ease) both; }
.is-arriving :is(.t-lead, .facts, .menu-pop-row) { animation: arrive .7s .12s var(--ease, ease) both; }
@keyframes arrive { from { opacity: .15; transform: translateY(18px); filter: blur(3px); } }
@media (prefers-reduced-motion: reduce) { .is-arriving * { animation: none !important; } }

/* ---------- one school day (site/home/day.blade.php, showcase.js [data-day]) */
.day { --day-p: 0; }
.day[data-look="0"] .v[data-v="0"], .day[data-look="1"] .v[data-v="1"], .day[data-look="2"] .v[data-v="2"], .day[data-look="3"] .v[data-v="3"] { display: inline; animation: look-in .5s var(--ease, ease) both; }
.day .v { display: none; }
.day:not([data-look]) .v[data-v="0"] { display: inline; }
.day__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.day__kicker { margin: 0 0 12px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.day__text h2 { margin: 0; }
.day__clock { margin: 20px 0 8px; font-family: var(--font-display); font-size: clamp(72px, 7vw, 128px); line-height: .9; letter-spacing: -.05em; font-variant-numeric: tabular-nums; color: var(--ink); }
.day__clock .v { animation-name: clock-roll !important; animation-duration: .6s !important; }
@keyframes clock-roll { from { opacity: 0; transform: translateY(.35em); filter: blur(4px); } }
.day__lines { display: grid; }
/* a clean change of moment: the one leaving is gone at once (no transition out, so no frame ever shows two
   moments' text over each other), and the one arriving fades and rises in where it was. Reduced motion: an instant
   swap (the rule at the end of this block). */
.day__line { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(8px); transition: none; }
.day[data-look="0"] [data-day-line="0"], .day[data-look="1"] [data-day-line="1"], .day[data-look="2"] [data-day-line="2"], .day[data-look="3"] [data-day-line="3"], .day:not([data-look]) [data-day-line="0"] { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease, ease), transform .35s var(--ease, ease); }
.day__line h3 { margin: 0 0 6px; font-size: 20px; font-weight: 500; }
.day__time { display: none; }
.day__line p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.55; max-width: 40ch; }
.day__rail { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 28px; padding-top: 14px; border-top: 2px solid rgb(12 17 27 / .08); }
.day__fill { position: absolute; left: 0; top: -2px; height: 2px; width: calc(var(--day-p) * 100%); background: var(--ink); transition: width .15s linear; }
.day__stop { position: relative; justify-self: start; padding: 4px 0; border: 0; background: none; font: 500 14px/1 var(--font-text); font-variant-numeric: tabular-nums; color: var(--muted); cursor: pointer; transition: color .3s; }
.day__stop[aria-pressed="true"] { color: var(--ink); }
.day__stop:hover { color: var(--ink); }
.day__stop:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
/* the time reads small; what a finger can hit is at least 44 by 44 around it */
.day__stop::before { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: 44px; translate: -50% -50%; }
/* the two devices and the wire between them */
.day__devices { display: grid; grid-template-columns: minmax(0, 1fr) 72px 220px; align-items: center; }
.day__office { box-shadow: 0 0 0 1px rgb(12 17 27 / .08), 0 32px 64px -32px rgb(12 17 27 / .3); }
.day__otitle b { font-weight: 500; color: #0c111b; }
.day__oscenes, .day__pscenes { display: grid; }
/* the screens in the office window and on the phone change the same way: out at once, in with a short fade */
.day__oscene, .day__pscene { grid-area: 1 / 1; min-width: 0; opacity: 0; visibility: hidden; transition: none; }
.day[data-look="0"] [data-day-scene="0"], .day[data-look="1"] [data-day-scene="1"], .day[data-look="2"] [data-day-scene="2"], .day[data-look="3"] [data-day-scene="3"], .day:not([data-look]) [data-day-scene="0"] { opacity: 1; visibility: visible; transition: opacity .3s var(--ease, ease); }
.day__oscene { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; }
.day__mrow { display: grid !important; grid-template-columns: minmax(0, 1fr) 40px 24px; }
.day__mrow > span:nth-child(2) { text-align: right; font-variant-numeric: tabular-nums; }
.day__mrow b { text-align: center; }
.day__pay { display: grid !important; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; height: auto !important; min-height: 48px; padding-block: 6px !important; }
.day__pay > span:first-child { display: grid; line-height: 1.3; }
.day__pay b { font-weight: 500; }
.day__pay small { color: #6b7280; font-size: 12px; }
.day__pay > span:nth-child(2) { font-size: 13px; font-variant-numeric: tabular-nums; }
.day__send { margin-top: auto; display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; background: rgb(22 121 74 / .08); color: #16794a; font-size: 13px; }
.day__send b { font-weight: 600; }
.day__notice { padding: 14px; border-radius: 10px; background: #f5f6f8; }
.day__notice b { font-size: 15px; font-weight: 500; }
.day__notice p { margin: 4px 0 0; color: #4b5363; font-size: 13px; }
.day__aud { display: flex; gap: 10px; padding: 8px 12px; font-size: 13px; border-bottom: 1px solid rgb(12 17 27 / .06); }
.day__aud span { width: 28px; color: #6b7280; }
.day__aud b { font-weight: 500; }
.day__wire { position: relative; height: 2px; margin-inline: -2px; background: repeating-linear-gradient(90deg, rgb(12 17 27 / .22) 0 6px, transparent 6px 11px); }
.day__packet { position: absolute; top: 50%; left: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgb(31 111 235 / .18); opacity: 0; }
.day__tag { position: absolute; left: 50%; bottom: 12px; translate: -50% 0; height: 22px; padding: 0 8px; border-radius: 99px; display: inline-flex; align-items: center; background: #fff; box-shadow: 0 0 0 1px rgb(12 17 27 / .1); font-size: 11px; font-weight: 600; white-space: nowrap; color: #0c111b; }
.day.is-signal .day__packet { animation: packet-out .9s cubic-bezier(.65, 0, .35, 1) both; }
.day.is-signal[data-dir="in"] .day__packet { animation-name: packet-in; }
@keyframes packet-out { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes packet-in { 0% { left: 100%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 0; opacity: 0; } }
.day__phone { width: 220px; justify-self: end; }
.day__pscene { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.day__note { display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; background: rgb(244 245 247 / .96); box-shadow: 0 8px 20px -10px rgb(12 17 27 / .35), 0 0 0 1px rgb(12 17 27 / .05); font-size: 12px; line-height: 1.4; }
.day__app { font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: #6b7280; }
.day__note b { font-size: 13px; }
.day__note p { margin: 0; color: #2b3240; }
.day__ph { margin: 18px 4px 0; font: 500 22px/1.15 var(--font-display); color: #0c111b; }
.day__card { display: grid; gap: 4px; padding: 14px; border-radius: 14px; background: #f4f5f7; }
.day__card small { color: #596172; font-size: 12px; }
.day__card b { font: 500 26px/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.day__bar { display: block; height: 6px; border-radius: 99px; background: rgb(12 17 27 / .08); position: relative; overflow: hidden; }
.day__bar i { position: absolute; inset: 0 auto 0 0; width: var(--v); background: #16794a; border-radius: inherit; }
/* the signal arrives: office to phone lights the phone after the run; phone to office lights the office row */
.day.is-signal[data-dir="out"] .day__hit { animation: hit .8s var(--ease, ease) both; }
.day.is-signal[data-dir="out"] [data-day-scene] .day__note { animation: drop .55s .85s cubic-bezier(.22, 1, .36, 1) both; }
.day.is-signal[data-dir="in"] [data-day-scene] .day__note { animation: drop .55s cubic-bezier(.22, 1, .36, 1) both; }
.day.is-signal[data-dir="in"] .day__hit { animation: hit .8s .85s var(--ease, ease) both; }
@keyframes drop { from { opacity: 0; transform: translateY(-18px) scale(.96); } }
@keyframes hit { 0% { box-shadow: 0 0 0 0 rgb(31 111 235 / 0); } 35% { box-shadow: 0 0 0 3px rgb(31 111 235 / .4); } 100% { box-shadow: 0 0 0 0 rgb(31 111 235 / 0); } }
/* live: the stage is as tall as what it shows and sits --padt under the section before it, like any section. It
   holds centred under the header (--day-top, set by showcase.js from its height) while the scroll walks the day
   across the spacer after it (::after, a screen and a half: about 340px of scroll for each moment on a 900px
   screen); then the next section follows --padt under it. No screen of the page is empty white. */
main > section.day.is-live { height: auto !important; padding-bottom: 0; }
.day.is-live .day__stage { position: sticky; top: var(--day-top, var(--nav, 72px)); }
.day.is-live::after { content: ""; display: block; height: calc(1.5 * 100svh); }
.day:not(.is-live) .day__fill { transition: width .4s var(--ease, ease); }
@media (max-width: 1279px) { .day__devices { grid-template-columns: minmax(0, 1fr) 56px 200px; } .day__phone { width: 200px; } .day__grid { gap: 32px; } }
@media (max-width: 1023px) {
  .day__grid { grid-template-columns: minmax(0, 1fr); }
  .day__devices { grid-template-columns: minmax(0, 1fr) 48px 200px; }
}
@media (max-width: 639px) {
  .day__devices { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 0; }
  .day__office { display: none; }
  .day__wire { display: none; }
  .day__phone { justify-self: center; width: 236px; }
  .day__clock { font-size: 72px; }
}
@media (prefers-reduced-motion: reduce) { .day *, .day *::before { animation: none !important; transition: none !important; } }

/* ---------- the statement before the prices (site/home/replaces.blade.php, showcase.js [data-strike]) */
.replaces__text { max-width: 1040px; }
.replaces__text { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 3.6vw + 8px, 60px); line-height: 1.16; letter-spacing: -.03em; text-wrap: pretty; color: var(--ink); }
.replaces__old { color: color-mix(in oklab, var(--ink) calc(100% - var(--k, 1) * 55%), var(--p-bg, #fff)); background: linear-gradient(currentColor, currentColor) 0 58% / calc(var(--k, 1) * 100%) .07em no-repeat; -webkit-box-decoration-break: slice; box-decoration-break: slice; }
.replaces__new { color: color-mix(in oklab, var(--accent) calc(var(--e, 1) * 100%), var(--muted)); }
/* live (showcase.js): nothing struck until the script measures; it then sets --k on each part and --e here */
.replaces[data-strike-live] { --e: 0; }
.replaces[data-strike-live] .replaces__old { --k: 0; }

.day__pscene { gap: 6px; }
.day__pscene .phone__row { margin: 0; font-size: 12px; padding: 8px 10px; }
.day__pscene .day__card { padding: 10px 12px; }
.day__pscene .day__card b { font-size: 22px; }
.day__pscene .day__ph { margin: 10px 4px 2px; font-size: 18px; }
.day__warn { color: #b4361f !important; }

/* ---------- colour: the logo's own three (forest, clay, ochre), used quietly
   Text in a brand tone uses the deep shade (6:1 or better on white); the light washes are grounds for sections
   with no product window on them, or a hint of the tone behind a small icon. The product windows keep their
   neutral grey ground. Blue stays the link and live-state colour inside the product. */
:root {
  --forest: #245248; --forest-wash: #eef4f1; --forest-soft: #d7e6e0;
  --clay: #bc563d; --clay-deep: #a3462f; --clay-wash: #fbf1ec;
  --ochre: #d99a36; --ochre-deep: #8a5a14; --ochre-wash: #fcf6ea;
}
::selection { background: color-mix(in oklab, var(--ochre) 32%, #fff); color: var(--ink); }

/* the hero: its picture (below) is drawn under the words, inside the hero's own layer */
.hero--centred { position: relative; isolation: isolate; }

/* ---------- the hero's picture: the owner's morning at school behind the headline and the buttons only
   (public/images/site/illustration-hero-*; the <picture> in site/home.blade.php picks one file by width). Never
   cropped: the words stay where the scene is empty, and the hero grows rather than cut a person off. White fades
   over its edges make them truly white, so the product tour below it stands on plain white.
   Under 1200px, the phone scene (9:7, at most 800px wide): its top 55% is empty sky, so the words sit on that and the
   people stand along the foot of the hero, under the buttons.
   From 1200px, the wide scene (8:3, at most 1600px wide) hangs under the bar: the school and two students on the
   left, a teacher greeting a mother and her son on the right, open sky between. The words keep to its middle 40%
   (the owner's notes: x 30 to 70%), the headline sized so it takes two lines there, and the tour starts under the
   people's feet. 1200 is where the English and Swahili buttons still clear the bushes on the right. */
.hero--centred { overflow-x: clip; }
.hero--centred .hero__c { --art-w: min(100vw, 800px); --art-h: calc(var(--art-w) * 7 / 9); position: relative; min-height: var(--art-h); padding-bottom: calc(var(--art-h) * .45 + 8px); }
.hero-art { position: absolute; z-index: -1; left: 50%; bottom: 0; translate: -50% 0; display: block; width: var(--art-w); pointer-events: none; }
.hero-art img { display: block; width: 100%; height: auto; max-width: none; }
.hero-art::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, #fff, transparent 5%, transparent 95%, #fff), linear-gradient(#fff, transparent 18%, transparent 93%, #fff); }
@media (min-width: 1200px) {
  .hero--centred .hero__c { --art-w: min(100vw, 1600px); --art-h: calc(var(--art-w) * 3 / 8); max-width: calc(var(--art-w) * .4); min-height: calc(var(--art-h) * .94 - var(--hgap)); padding-bottom: 0; align-content: start; }
  .hero--centred .hero__c h1 { max-width: none; font-size: min(70px, calc(var(--art-w) * .0425)); }
  .hero-art { top: calc(-1 * var(--hgap)); bottom: auto; }
  .hero-art::after { background: linear-gradient(to right, #fff, transparent 5%, transparent 95%, #fff), linear-gradient(#fff, transparent 5%, transparent 88%, #fff 98%); }
}

/* the bar: the words rest in a softer ink, the section you are reading in full ink with a clay line under it */
.nav__links .nav__link { color: color-mix(in oklab, var(--ink) 72%, var(--bg)); }
.nav__links .nav__link:hover, .nav__links .nav__link.is-current, .nav__item:hover > .nav__link { color: var(--ink); }
.nav__links .nav__link::after { content: ""; position: absolute; left: var(--s-3); right: var(--s-3); bottom: -2px; height: 2px; border-radius: 2px; background: var(--clay);
  transform: scaleX(0); transition: transform .35s cubic-bezier(.22, 1, .36, 1); pointer-events: none; }
.nav__links .nav__link.is-current::after { transform: scaleX(1); }
@media (min-width: 1024px) and (max-width: 1279px) { .nav__links .nav__link::after { left: var(--s-2); right: var(--s-2); } }
/* 1024 to 1199: five words, the language, Sign in and the button were about 75px wider than the bar in English, so
   "Pricing" ran under the language button. The words, the gaps and the button sit closer there (the same steps as
   the other pages' bar, persona-student.css .sx-nav). */
@media (min-width: 1024px) and (max-width: 1199px) {
  .nav .nav__bar { gap: var(--s-4, 16px); }
  .nav .nav__actions { gap: var(--s-2, 8px); }
  .nav .nav__actions .btn { padding-inline: var(--s-4, 16px); }
  .nav .nav__link { padding: 0 6px; }
  .nav .nav__link::before, .nav .nav__link[aria-current="page"]::after, .nav .nav__links .nav__link::after { left: 6px; right: 6px; }
}
@media (prefers-reduced-motion: reduce) { .nav__links .nav__link::after { transition: none; } }

/* the footer takes a pale forest instead of grey (--p-inv-bg in site/home.blade.php); #families stays white, as
   no product window sits on a coloured ground */
footer.closing .close__word { color: color-mix(in oklab, var(--forest) 88%, var(--forest-wash)); }

/* one school day: each moment carries its own tone (the absence clay, the results blue, the payment forest, the
   announcement ochre) on the clock, the line that fills, the signal and the kicker */
.day { --tone: var(--clay-deep); }
.day[data-look="1"] { --tone: var(--accent); }
.day[data-look="2"] { --tone: var(--forest); }
.day[data-look="3"] { --tone: var(--ochre-deep); }
.day__kicker { color: var(--tone); transition: color .5s; }
.day__clock { color: var(--tone); transition: color .5s; }
.day__fill { background: var(--tone); transition: width .15s linear, background-color .5s; }
.day__stop[aria-pressed="true"] { color: var(--tone); }
.day__packet { background: var(--tone); box-shadow: 0 0 0 5px color-mix(in oklab, var(--tone) 18%, transparent); }

/* the modules: each group named in its own tone */
.mods__group:nth-child(4n + 1) .mods__gname { color: var(--forest); }
.mods__group:nth-child(4n + 2) .mods__gname { color: var(--clay-deep); }
.mods__group:nth-child(4n + 3) .mods__gname { color: var(--ochre-deep); }
.mods__group:nth-child(4n + 4) .mods__gname { color: var(--accent); }

/* the details: a warm ground, the numbers and the tile marks in the three tones by turn */
#details { background: var(--ochre-wash); }
#details .detail { background: #fff; box-shadow: 0 0 0 1px rgb(138 90 20 / .08); }
.numbers { border-top-color: rgb(138 90 20 / .16); }
.numbers div:nth-child(3n + 1) dd { color: var(--forest); }
.numbers div:nth-child(3n + 2) dd { color: var(--clay-deep); }
.numbers div:nth-child(3n + 3) dd { color: var(--ochre-deep); }
.detail__icon { box-shadow: none; }
.detail:nth-child(3n + 1) .detail__icon { background: var(--forest-wash); color: var(--forest); }
.detail:nth-child(3n + 2) .detail__icon { background: var(--clay-wash); color: var(--clay-deep); }
.detail:nth-child(3n + 3) .detail__icon { background: var(--ochre-wash); color: var(--ochre-deep); }

/* the sentence before the prices lights up in forest */
.replaces__new { color: color-mix(in oklab, var(--forest) calc(var(--e, 1) * 100%), var(--muted)); }

/* how a school joins: the step numbers on the forest wash */
#steps .step-num { background: var(--forest-wash); color: var(--forest); border-color: transparent; }

/* the plan the school is most likely to choose: a forest edge */
.card--plan.is-featured { border-color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); }
