/* EduHab website — eduhab.habton.app */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2-variations"), url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #1478C5;
  --blue-700: #0F5E9C;
  --blue-300: #6CB6EE;
  --blue-50: #EAF3FC;
  --navy: #0E2238;
  --navy-2: #15304D;
  --ink: #0F1B2B;
  --muted: #4A5B70;
  --paper: #F6F9FC;
  --rule: #D9E5F2;
  --rule-soft: #E6EEF7;
  --red: #D93F3F;
  --green: #1E9E57;
  --bus: #E9A400;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wide: 116%;
  --wrap: 1200px;
  --pad: clamp(18px, 4vw, 40px);
  --header-h: 68px;
  --radius: 6px;
  --radius-lg: 10px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@media (min-width: 768px) { body { font-size: 1.0625rem; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 700; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--blue-700); text-underline-offset: 3px; }
a:hover { color: var(--blue); }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
section[id], [id^="module-"] { scroll-margin-top: calc(var(--header-h) + 12px); }

:focus-visible { outline: 3px solid #F2A900; outline-offset: 2px; border-radius: 3px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius);
  font-weight: 650; text-decoration: none;
}
.skip:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }

.i {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border: 1.5px solid transparent; border-radius: var(--radius);
  font-size: .97rem; font-weight: 650; font-stretch: 104%; line-height: 1.1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn .i { width: 18px; height: 18px; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-700); color: #fff; }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--ghost { color: var(--ink); }
.btn--ghost:hover { background: var(--paper); color: var(--ink); }
.btn--lg { min-height: 52px; padding: 0 26px; font-size: 1.02rem; }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: .9rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header__bar { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: block; flex: none; margin-right: auto; }
.brand img { width: 152px; height: auto; }
@media (min-width: 768px) { .brand img { width: 172px; } }

.nav ul { display: flex; gap: 2px; }
.nav ul a {
  display: block; padding: 8px 12px; border-radius: var(--radius);
  color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 560;
}
.nav ul a:hover { background: var(--paper); color: var(--blue-700); }
.nav__cta { display: flex; gap: 8px; }

.nav-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: -8px;
  background: none; border: 0; border-radius: var(--radius); cursor: pointer; color: var(--ink);
}
.nav-toggle .i { width: 26px; height: 26px; }
.nav-toggle__close { display: none; }
.site-header.is-open .nav-toggle__open { display: none; }
.site-header.is-open .nav-toggle__close { display: block; }

@media (max-width: 1079.98px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    background: #fff; border-bottom: 1px solid var(--rule);
    padding: 8px var(--pad) 20px;
    box-shadow: 0 24px 40px -24px rgba(14, 34, 56, .35);
    display: none;
  }
  .site-header.is-open .nav { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { padding: 14px 4px; font-size: 1.08rem; border-bottom: 1px solid var(--rule-soft); border-radius: 0; }
  .nav__cta { flex-direction: column; margin-top: 16px; }
  .nav__cta .btn { min-height: 50px; }
  .nav__cta .btn--ghost { border-color: var(--ink); }
  .no-js .nav-toggle { display: none; }
}
@media (max-width: 359.98px) { .header-cta { display: none; } }
@media (min-width: 1080px) {
  .nav { display: flex; align-items: center; gap: 20px; }
  .nav-toggle, .header-cta { display: none; }
  .nav__cta .btn--ghost { padding: 0 12px; }
}
@media (min-width: 1080px) and (max-width: 1239.98px) {
  .nav__cta .btn--ghost { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  --mx: max(8px, calc(var(--pad) - 14px), calc((100% - var(--wrap)) / 2 - 18px));
  position: relative;
  padding-block: clamp(36px, 6vw, 84px) clamp(48px, 7vw, 96px);
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, transparent calc(var(--mx) - 1px), rgba(217, 63, 63, .3) calc(var(--mx) - 1px), rgba(217, 63, 63, .3) var(--mx), transparent var(--mx)),
    repeating-linear-gradient(180deg, transparent 0 35px, var(--rule-soft) 35px 36px);
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 599.98px) {
  .hero { background-image: repeating-linear-gradient(180deg, transparent 0 35px, var(--rule-soft) 35px 36px); }
}
.hero__grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); } }

.hero__by {
  display: flex; align-items: center; gap: 10px;
  font-size: .95rem; font-weight: 620; color: var(--blue-700);
}
.hero__by::before {
  content: ""; flex: none; width: 22px; height: 7px; border-radius: 2px; background: var(--blue);
}
.hero h1 {
  margin-top: 18px;
  font-size: clamp(2.3rem, 1.2rem + 3.6vw, 4.3rem);
  font-weight: 800; font-stretch: var(--wide);
  line-height: 1.02; letter-spacing: -.022em;
  max-width: 11ch;
}
.hero__lede { margin-top: 22px; max-width: 34em; font-size: clamp(1.05rem, .98rem + .35vw, 1.22rem); color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__facts {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px;
  font-size: .93rem; font-weight: 560;
}
.hero__facts li { display: flex; align-items: center; gap: 8px; }
.hero__facts .i { width: 19px; height: 19px; color: var(--blue); }
@media (max-width: 479.98px) {
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__facts { display: grid; grid-template-columns: 1fr; gap: 10px; }
}

/* Hero demo: register to WhatsApp alert */
.demo { margin: 0; width: 100%; max-width: 540px; justify-self: center; }
@media (min-width: 1024px) { .demo { justify-self: end; } }
.demo__stage { position: relative; }
@media (min-width: 600px) { .demo__stage { padding-bottom: 172px; } }

.register {
  position: relative;
  width: 100%; max-width: 440px;
  background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -30px rgba(14, 34, 56, .35);
  overflow: hidden;
}
.register__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 16px 18px 14px; border-bottom: 1px solid var(--rule);
}
.register__class { font-weight: 750; font-stretch: 108%; font-size: 1.02rem; }
.register__meta { font-size: .82rem; color: var(--muted); margin-top: 2px; }
.register__count { font-size: .8rem; color: var(--muted); white-space: nowrap; padding-top: 3px; }
.register__count b { color: var(--ink); font-weight: 750; }
.register__count b.is-abs { color: var(--red); margin-left: 6px; }

.register__rows {
  counter-reset: none;
  background-image: linear-gradient(90deg, transparent 56px, rgba(217, 63, 63, .35) 56px, rgba(217, 63, 63, .35) 57px, transparent 57px);
}
.register__row {
  display: grid; grid-template-columns: 30px 1fr 32px; align-items: center; gap: 18px;
  padding: 7px 18px; border-bottom: 1px solid var(--rule-soft); font-size: .92rem;
}
.register__no { color: var(--muted); font-size: .8rem; text-align: right; font-variant-numeric: tabular-nums; }
.register__name { font-weight: 560; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.register__mark {
  display: grid; place-items: center; width: 30px; height: 28px; border-radius: 4px;
  background: var(--blue-50); color: var(--blue-700); font-weight: 800; font-size: .85rem;
}
.register__row.is-absent .register__mark { background: #FDECEC; color: var(--red); }
.register__row.is-absent .register__name { color: var(--red); }

.register__foot { padding: 12px 18px 16px; display: grid; gap: 10px; }
.register__saved { display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 650; }
.register__saved .i { color: var(--green); width: 18px; height: 18px; }
.check5__label { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); }
.check5__label .i { width: 16px; height: 16px; }
.check5__bar { margin-top: 7px; height: 6px; border-radius: 3px; background: var(--rule-soft); overflow: hidden; }
.check5__bar span { display: block; height: 100%; width: 100%; background: var(--blue); border-radius: 3px; transform-origin: left; }

.wa {
  position: relative; margin: 12px 0 0 auto; width: 90%; max-width: 340px;
  background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px -24px rgba(14, 34, 56, .35);
  padding: 12px 12px 14px;
}
@media (min-width: 600px) {
  .wa { position: absolute; right: 0; bottom: 0; margin: 0; width: 320px; }
}
.wa__from { display: flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 700; padding: 0 2px 10px; }
.wa__via { font-weight: 450; color: var(--muted); }
.wa__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.wa__bubble {
  position: relative; background: #E5F6EA; border-radius: 4px 10px 10px 10px;
  padding: 10px 12px 8px; font-size: .86rem; line-height: 1.45;
}
.wa__bubble p + p { margin-top: 4px; }
.wa__time { display: flex; align-items: center; justify-content: flex-end; gap: 4px; font-size: .72rem; color: var(--muted); }
.wa__ticks { display: inline-flex; color: var(--green); }
.wa__ticks .i { width: 14px; height: 14px; stroke-width: 2.4; }
.wa__ticks .i + .i { margin-left: -9px; }

.demo__cap {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px;
  margin-top: 18px; font-size: .86rem; color: var(--muted);
}
.demo__cap span { max-width: 40ch; }
.demo__replay {
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  color: var(--blue-700); font-weight: 650; text-decoration: underline; text-underline-offset: 3px;
}

/* The single orchestrated moment: plays once on load (and on "Play again") */
@media (prefers-reduced-motion: no-preference) {
  .is-playing .register__mark { animation: markIn .32s cubic-bezier(.2, .8, .3, 1.3) both; animation-delay: calc(.4s + var(--d) * .22s); }
  .is-playing .register__row.is-absent .register__name { animation: redIn .3s ease both; animation-delay: calc(.4s + var(--d) * .22s); }
  .is-playing .register__count,
  .is-playing .register__saved { animation: fadeIn .3s ease both; animation-delay: 1.9s; }
  .is-playing .check5 { animation: fadeIn .3s ease both; animation-delay: 2.1s; }
  .is-playing .check5__bar span { animation: fill 2s linear both; animation-delay: 2.3s; }
  .is-playing .wa { animation: waIn .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: 4.4s; }
  .is-playing .wa__ticks { animation: fadeIn .2s ease both; animation-delay: 5s; }
}
.is-paused .register__mark, .is-paused .register__count, .is-paused .register__saved,
.is-paused .check5, .is-paused .wa, .is-paused .wa__ticks { opacity: 0; }
.is-paused .check5__bar span { transform: scaleX(0); }
@media (prefers-reduced-motion: reduce) {
  .is-paused * { opacity: 1 !important; transform: none !important; }
  .demo__replay { display: none; }
}
@keyframes markIn { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes redIn { from { color: var(--ink); } to { color: var(--red); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes waIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 116px); }
.section--paper { background: var(--paper); border-block: 1px solid var(--rule-soft); }
.section--navy { background: var(--navy); color: #fff; }
.section__head { max-width: 46rem; margin-bottom: clamp(32px, 5vw, 52px); }
.section__head h2 {
  font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.85rem);
  font-weight: 790; font-stretch: var(--wide); letter-spacing: -.018em; line-height: 1.08;
}
.section__head p { margin-top: 16px; font-size: clamp(1.02rem, .98rem + .2vw, 1.14rem); color: var(--muted); max-width: 40em; }
.section--navy .section__head p { color: #B9C9DC; }

.h-sub { font-size: 1.15rem; font-weight: 750; font-stretch: 108%; margin-bottom: 16px; }
.h-sub--gap { margin-top: clamp(48px, 6vw, 72px); margin-bottom: 22px; }

/* Ruled grid: benefits, tools */
.benefits {
  display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden;
}
@media (min-width: 600px) { .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.benefit { background: #fff; padding: clamp(22px, 3vw, 30px); }
.benefit__icon {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--radius);
  background: var(--blue-50); color: var(--blue);
}
.benefit__icon .i { width: 22px; height: 22px; }
.benefit h3 { margin-top: 16px; font-size: 1.1rem; font-weight: 720; font-stretch: 106%; }
.benefit p { margin-top: 6px; color: var(--muted); font-size: .97rem; }

.split { display: grid; gap: 48px; margin-top: clamp(56px, 7vw, 88px); }
@media (min-width: 1024px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 72px; } }

.who__list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.who__list li:first-child { border-top: 1px solid var(--rule); }
.who__icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: var(--radius); background: var(--paper); color: var(--blue); }
.who__icon .i { width: 20px; height: 20px; }
.who__list li > div > strong { display: block; font-weight: 700; }
.who__list li > div > span { display: block; color: var(--muted); font-size: .95rem; }

.change__table { width: 100%; border-collapse: collapse; }
.change__table th { text-align: left; font-size: .9rem; font-weight: 700; padding: 0 12px 10px 0; border-bottom: 2px solid var(--ink); }
.change__table th:last-child { color: var(--blue-700); }
.change__table td { position: relative; vertical-align: top; padding: 14px 14px 14px 28px; border-bottom: 1px solid var(--rule); width: 50%; font-size: .97rem; }
.change__table td .i { position: absolute; left: 0; top: 17px; width: 18px; height: 18px; }
.change__table td:first-child { color: var(--muted); }
.change__table td:first-child .i { color: var(--red); }
.change__table td:last-child { font-weight: 600; }
.change__table td:last-child .i { color: var(--blue); stroke-width: 2.4; }

/* How it works */
.flowmap { display: grid; gap: 14px; align-items: center; }
@media (min-width: 1024px) {
  .flowmap { grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1.12fr) 44px minmax(0, 1fr); gap: 0; }
}
.flowmap__label { font-size: .92rem; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.flowmap__list { display: grid; gap: 10px; }
.flowmap__list li {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 14px 16px;
}
.flowmap__list .i { color: var(--blue); width: 22px; height: 22px; margin-top: 1px; }
.flowmap__list strong { display: block; font-weight: 700; }
.flowmap__list span { display: block; font-size: .93rem; color: var(--muted); }
.flowmap__arrow { position: relative; height: 36px; }
.flowmap__arrow::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 8px; width: 2px; background: var(--blue); transform: translateX(-50%); }
.flowmap__arrow::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  border: 7px solid transparent; border-top: 9px solid var(--blue); border-bottom: 0;
}
@media (min-width: 1024px) {
  .flowmap__arrow { height: 2px; margin-top: 30px; }
  .flowmap__arrow::before { left: 6px; right: 10px; top: 0; bottom: auto; width: auto; height: 2px; transform: none; }
  .flowmap__arrow::after { left: auto; right: 2px; bottom: auto; top: 50%; transform: translateY(-50%); border: 7px solid transparent; border-left: 9px solid var(--blue); border-right: 0; }
}
.flowmap__core { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 30px); }
.flowmap__core img { width: 150px; }
.flowmap__core-sub { margin-top: 8px; font-size: .9rem; color: #A9BCD3; }
.flowmap__core ul { margin-top: 18px; display: grid; gap: 10px; }
.flowmap__core li { display: flex; gap: 10px; align-items: flex-start; font-size: .98rem; }
.flowmap__core li .i { color: var(--blue-300); width: 18px; height: 18px; margin-top: 3px; stroke-width: 2.4; }

/* Numbered steps (real sequences only) */
.steps { display: grid; gap: 28px 20px; counter-reset: step; position: relative; }
@media (min-width: 600px) { .steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps--4::before {
    content: ""; position: absolute; top: 15px; left: 32px; right: 0; height: 2px;
    background: repeating-linear-gradient(90deg, var(--rule) 0 8px, transparent 8px 14px);
  }
}
.step { position: relative; counter-increment: step; padding-top: 46px; }
.step::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 5px;
  background: var(--blue); color: #fff; font-weight: 800; font-size: .95rem;
  box-shadow: 0 0 0 6px var(--paper);
}
.step__icon { display: none; }
.step h4 { font-size: 1.08rem; font-weight: 720; font-stretch: 106%; }
.step p { margin-top: 6px; color: var(--muted); font-size: .96rem; }

/* A school day */
.day { position: relative; max-width: 680px; }
.day__band, .day__lane { display: none; }
.day__time {
  margin-top: 28px; padding-bottom: 8px; border-bottom: 2px solid var(--ink);
  font-size: 1.05rem; font-weight: 750; font-stretch: 106%;
}
.day__time:first-of-type { margin-top: 0; }
.day__time span { margin-left: 10px; font-weight: 450; font-size: .9rem; color: var(--muted); font-stretch: 100%; }
.day__ev {
  --lane: var(--blue);
  display: block; margin-top: 10px; padding: 12px 14px;
  background: #fff; border: 1px solid var(--rule); border-left: 4px solid var(--lane); border-radius: var(--radius);
}
.day__ev--bus { --lane: var(--bus); }
.day__ev--class { --lane: var(--blue); }
.day__ev--office { --lane: var(--navy); }
.day__ev--parent { --lane: var(--green); }
.day__tag { display: block; font-size: .78rem; font-weight: 700; color: var(--muted); }
.day__ev strong { display: block; font-weight: 700; }
.day__ev > span:last-child { display: block; font-size: .93rem; color: var(--muted); }

@media (min-width: 1024px) {
  .day {
    max-width: none;
    display: grid;
    grid-template-columns: 148px repeat(5, minmax(0, 1fr));
    grid-template-rows: auto repeat(4, minmax(100px, auto));
    column-gap: 12px;
  }
  .day__band { display: block; grid-column: 1 / -1; grid-row: var(--r); border-top: 1px solid var(--rule); }
  .day__band--parent { border-bottom: 1px solid var(--rule); }
  .day__lane {
    display: flex; align-items: center; gap: 9px; grid-column: 1; grid-row: var(--r); align-self: center;
    font-size: .93rem; font-weight: 700;
  }
  .day__lane .i { width: 20px; height: 20px; color: var(--muted); }
  .day__time { grid-column: var(--c); grid-row: 1; margin: 0 0 12px; border-bottom: 0; font-size: .97rem; padding: 0; }
  .day__time span { display: block; margin: 2px 0 0; font-size: .84rem; }
  .day__ev { grid-column: var(--c); grid-row: var(--r); margin: 10px 0; align-self: center; font-size: .93rem; padding: 10px 12px; }
  .day__ev > span:last-child { font-size: .86rem; }
  .day__tag { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

.note {
  display: flex; gap: 14px; align-items: flex-start; margin-top: 32px; max-width: 860px;
  background: var(--blue-50); border-left: 4px solid var(--blue); border-radius: var(--radius); padding: 18px 20px;
}
.note__icon { color: var(--blue); }
.note__icon .i { width: 24px; height: 24px; }

.nolonger { display: grid; gap: 28px; }
@media (min-width: 768px) { .nolonger { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.nolonger li { border-top: 1px solid var(--rule); padding-top: 18px; }
.nolonger__strike {
  display: inline; font-size: 1.18rem; font-weight: 750; font-stretch: 108%;
  text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 2px;
}
.nolonger p { margin-top: 8px; color: var(--muted); }

/* Modules: tabs */
.tabs__list {
  display: flex; gap: 8px; margin-bottom: 20px;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin;
  padding: 2px 2px 8px; margin-inline: -2px;
}
@media (min-width: 1024px) { .tabs__list { flex-wrap: wrap; overflow: visible; } }
.no-js .tabs__list { display: none; }
.tabs__tab {
  display: inline-flex; align-items: center; gap: 8px; flex: none; scroll-snap-align: start;
  min-height: 44px; padding: 0 16px; border: 1px solid var(--rule); border-radius: var(--radius);
  background: #fff; font-size: .93rem; font-weight: 620; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease;
}
.tabs__tab .i { width: 18px; height: 18px; color: var(--blue); }
.tabs__tab:hover { border-color: var(--blue); }
.tabs__tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.tabs__tab[aria-selected="true"] .i { color: var(--blue-300); }
.js .panel[data-hidden] { display: none; }
.no-js .panel + .panel { margin-top: 20px; }

.panel { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 44px); }
.panel__head { margin-bottom: 28px; }
.panel__head h3 { font-size: clamp(1.4rem, 1.05rem + 1.3vw, 1.95rem); font-weight: 780; font-stretch: 110%; letter-spacing: -.012em; }
.panel__head p { margin-top: 8px; color: var(--muted); max-width: 40em; font-size: 1.04rem; }
.panel__lists { display: grid; gap: 28px 44px; }
@media (min-width: 768px) { .panel__lists { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .panel__lists--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.panel__lists h4 { font-size: .98rem; font-weight: 720; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 2px solid var(--ink); }

.ticks { display: grid; gap: 10px; font-size: .97rem; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: ""; position: absolute; left: 6px; top: .28em;
  width: 6px; height: 11px; border: solid var(--blue); border-width: 0 2.2px 2.2px 0; transform: rotate(45deg);
}
.ticks--lg { font-size: 1.02rem; gap: 12px; }

.reports { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
@media (min-width: 600px) { .reports { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .reports { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.reports li { background: #fff; padding: 18px; }
.reports .i { color: var(--blue); width: 22px; height: 22px; }
.reports strong { display: block; margin-top: 10px; font-weight: 700; }
.reports span { display: block; color: var(--muted); font-size: .93rem; }

.panel__flow-title { margin: 36px 0 16px; font-size: 1rem; font-weight: 720; }
.flow { counter-reset: flow; display: grid; gap: 0; position: relative; }
.flow li { counter-increment: flow; position: relative; padding: 0 0 18px 46px; }
.flow li::before {
  content: counter(flow); position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 5px;
  background: var(--blue-50); color: var(--blue-700); font-weight: 800; font-size: .9rem; border: 1px solid #C4DDF3;
}
.flow li::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: 4px; width: 2px; background: var(--rule); }
.flow li:last-child { padding-bottom: 0; }
.flow li:last-child::after { display: none; }
.flow strong { display: block; font-weight: 700; padding-top: 3px; }
.flow span { display: block; color: var(--muted); font-size: .93rem; }
@media (min-width: 768px) {
  .flow { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 16px; }
  .flow li { padding: 44px 0 0; }
  .flow li::after { left: 38px; right: -12px; top: 15px; bottom: auto; width: auto; height: 2px; }
  .flow--loop li:last-child::after {
    display: block; left: 38px; right: auto; width: 24px;
  }
}

.means { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--rule); }
.means__title { font-size: .92rem; font-weight: 700; color: var(--muted); margin-bottom: 14px; }
.means dl { margin: 0; display: grid; gap: 16px 28px; }
@media (min-width: 768px) { .means dl { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.means dt { font-weight: 720; color: var(--blue-700); font-stretch: 106%; }
.means dd { margin: 4px 0 0; color: var(--muted); font-size: .96rem; }

/* School year cycle */
.cycle { position: relative; }
.cycle__centre {
  display: grid; gap: 6px; justify-items: start;
  background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 22px 24px; margin-bottom: 24px;
}
.cycle__centre .i { width: 26px; height: 26px; color: var(--blue-300); }
.cycle__centre strong { font-size: 1.15rem; font-weight: 750; font-stretch: 108%; }
.cycle__centre span { color: #B9C9DC; font-size: .95rem; }
.cycle__steps { counter-reset: yr; display: grid; gap: 0; }
.cycle__steps li { counter-increment: yr; position: relative; padding: 0 0 20px 50px; }
.cycle__steps li::before {
  content: counter(yr); position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 800; font-size: .92rem;
}
.cycle__steps li::after { content: ""; position: absolute; left: 15px; top: 36px; bottom: 4px; width: 2px; background: var(--rule); }
.cycle__steps li:last-child::after { display: none; }
.cycle__steps strong { display: block; font-weight: 720; font-stretch: 106%; padding-top: 4px; }
.cycle__steps span { display: block; color: var(--muted); font-size: .95rem; }

@media (min-width: 900px) {
  .cycle { max-width: 1000px; margin-inline: auto; aspect-ratio: 16 / 8.6; }
  .cycle::before {
    content: ""; position: absolute; left: 15%; right: 15%; top: 10%; bottom: 10%;
    border: 2px dashed #BBD3EA; border-radius: 50%;
  }
  .cycle__centre {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 300px; margin: 0; justify-items: center; text-align: center; padding: 26px 24px;
  }
  .cycle__steps { position: absolute; inset: 0; display: block; }
  .cycle__steps li {
    position: absolute; width: 230px; padding: 14px 16px 14px 56px;
    background: #fff; border: 1px solid var(--rule); border-radius: 8px;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 8px #fff;
  }
  .cycle__steps li::before { left: 14px; top: 14px; }
  .cycle__steps li::after { display: none; }
  .cycle__steps strong { padding-top: 2px; }
  .cycle__steps li:nth-child(1) { left: 50%; top: 10%; }
  .cycle__steps li:nth-child(2) { left: 83%; top: 30%; }
  .cycle__steps li:nth-child(3) { left: 83%; top: 70%; }
  .cycle__steps li:nth-child(4) { left: 50%; top: 90%; }
  .cycle__steps li:nth-child(5) { left: 17%; top: 70%; }
  .cycle__steps li:nth-child(6) { left: 17%; top: 30%; }
}

/* More tools */
.device {
  display: flex; gap: 20px; align-items: center; margin-top: 20px;
  background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 24px clamp(20px, 3vw, 32px);
}
.device__icons { display: flex; gap: 6px; color: var(--blue-300); }
.device__icons .i { width: 30px; height: 30px; }
.device h3 { font-size: 1.15rem; font-weight: 750; font-stretch: 108%; }
.device p { margin-top: 4px; color: #C7D5E6; max-width: 62ch; }
@media (max-width: 599.98px) { .device { flex-direction: column; align-items: flex-start; } }

/* Roles table */
.roles { border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; }
.roles table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.roles th, .roles td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--rule); }
.roles thead th { background: var(--paper); font-size: .9rem; font-weight: 750; border-bottom: 2px solid var(--ink); }
.roles tbody th { font-weight: 680; width: 26%; }
.roles tbody tr:last-child > * { border-bottom: 0; }
.roles td.is-none { color: #9AA9BA; }
@media (max-width: 899.98px) {
  .roles { border: 0; border-radius: 0; overflow: visible; }
  .roles table, .roles tbody, .roles tr, .roles th, .roles td { display: block; width: auto; }
  .roles thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .roles tbody tr { border: 1px solid var(--rule); border-radius: 8px; padding: 4px 16px 8px; margin-bottom: 12px; background: #fff; }
  .roles tbody th { width: auto; padding: 12px 0 10px; font-size: 1.02rem; font-weight: 750; border-bottom: 1px solid var(--rule); }
  .roles td { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 8px 0; border-bottom: 0; }
  .roles td::before { content: attr(data-label); color: var(--muted); font-size: .86rem; font-weight: 620; }
  .roles td.is-none { display: none; }
  .roles tbody tr:last-child > * { border-bottom: 0; }
  .roles tbody tr:last-child th { border-bottom: 1px solid var(--rule); }
}
.own { display: grid; gap: 14px; margin-top: 24px; }
@media (min-width: 768px) { .own { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.own li { background: var(--paper); border-radius: 8px; padding: 18px 20px; }
.own strong { display: block; font-weight: 720; }
.own span { display: block; color: var(--muted); font-size: .95rem; margin-top: 2px; }

/* Security (navy) */
.secure {
  display: grid; gap: 1px; background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-lg); overflow: hidden;
}
@media (min-width: 600px) { .secure { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .secure { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.secure li { background: var(--navy); padding: clamp(22px, 3vw, 30px); }
.secure .i { width: 26px; height: 26px; color: var(--blue-300); }
.secure h3 { margin-top: 14px; font-size: 1.08rem; font-weight: 720; font-stretch: 106%; }
.secure p { margin-top: 6px; color: #B9C9DC; font-size: .96rem; }
.dpdp {
  display: flex; gap: 18px; align-items: flex-start; margin-top: 24px;
  border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--radius-lg); padding: 24px clamp(20px, 3vw, 30px);
  background: var(--navy-2);
}
.dpdp > .i { width: 30px; height: 30px; color: var(--blue-300); }
.dpdp h3 { font-size: 1.12rem; font-weight: 750; font-stretch: 108%; }
.dpdp p { margin-top: 6px; color: #C7D5E6; max-width: 70ch; }

/* Support and pricing */
.support { display: grid; gap: 44px; }
@media (min-width: 1024px) { .support { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; } }
.pick li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.pick li:first-child { border-top: 1px solid var(--rule); }
.pick__box { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 5px; background: var(--blue); color: #fff; margin-top: 2px; }
.pick__box .i { width: 15px; height: 15px; stroke-width: 3; }
.pick li > div > strong { display: block; font-weight: 720; }
.pick li > div > span { display: block; color: var(--muted); font-size: .95rem; }
.quote {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  margin-top: clamp(40px, 5vw, 56px); padding: clamp(22px, 3vw, 32px);
  background: var(--blue-50); border: 2px solid var(--blue); border-radius: var(--radius-lg);
}
.quote h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); font-weight: 780; font-stretch: 110%; }
.quote p { margin-top: 6px; color: var(--muted); max-width: 52ch; }
@media (max-width: 599.98px) { .quote .btn { width: 100%; } }

/* FAQ */
.faq { display: grid; gap: 8px; }
@media (min-width: 1024px) {
  .faq { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 64px; align-items: start; }
  .faq__head { position: sticky; top: calc(var(--header-h) + 32px); }
}
.faq__list details { border-bottom: 1px solid var(--rule); }
.faq__list details:first-child { border-top: 1px solid var(--rule); }
.faq__list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; cursor: pointer; list-style: none;
  font-size: 1.06rem; font-weight: 680;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary .i { width: 20px; height: 20px; color: var(--blue); transition: transform .2s ease; }
.faq__list details[open] summary .i { transform: rotate(180deg); }
.faq__list summary:hover { color: var(--blue-700); }
.faq__list details p { padding: 0 0 20px; color: var(--muted); max-width: 64ch; }

/* Contact (navy) */
.contact__grid { display: grid; gap: 44px; }
@media (min-width: 1024px) { .contact__grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.1fr); gap: 64px; align-items: start; } }
.contact h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); font-weight: 800; font-stretch: var(--wide); letter-spacing: -.02em; line-height: 1.05; }
.contact__lede { margin-top: 16px; color: #C7D5E6; font-size: 1.08rem; max-width: 34em; }
.contact__ways { display: grid; gap: 10px; margin-top: 28px; }
@media (min-width: 600px) and (max-width: 1023.98px) { .contact__ways { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contact__ways a {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 8px;
  color: #fff; text-decoration: none; font-size: 1.05rem; font-weight: 650;
  transition: background-color .15s ease;
}
.contact__ways a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.contact__ways .i { width: 22px; height: 22px; color: var(--blue-300); }
.contact__ways small { display: block; font-size: .8rem; font-weight: 500; color: #9FB4CC; }
.contact__next-title { margin-top: 34px; font-size: 1rem; font-weight: 720; }
.contact__next { counter-reset: nx; display: grid; gap: 12px; margin-top: 14px; }
.contact__next li { counter-increment: nx; position: relative; padding-left: 42px; color: #DCE6F1; min-height: 28px; padding-top: 2px; }
.contact__next li::before {
  content: counter(nx); position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, .35); font-size: .82rem; font-weight: 750; color: #fff;
}

.formcard { background: #fff; color: var(--ink); border-radius: 12px; padding: clamp(22px, 4vw, 36px); }
.form__title { font-size: 1.45rem; font-weight: 790; font-stretch: 110%; }
.form__hint { margin: 4px 0 20px; color: var(--muted); font-size: .93rem; }
.form__alert { background: #FDECEC; color: #9B1C1C; border-radius: var(--radius); padding: 10px 14px; margin-bottom: 16px; font-size: .93rem; font-weight: 560; }
.form__row { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { margin: 0 0 16px; min-width: 0; }
.field label, .field legend { display: block; margin-bottom: 6px; padding: 0; font-size: .9rem; font-weight: 650; }
.field__opt { font-weight: 450; color: var(--muted); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 0 14px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid #BFCFE1; border-radius: var(--radius);
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none; appearance: none;
}
.field textarea { padding: 12px 14px; min-height: 92px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(20, 120, 197, .22); }
.field input::placeholder { color: #8A9AAE; }
.field.has-error input { border-color: var(--red); }
.field.has-error input:focus { box-shadow: 0 0 0 3px rgba(217, 63, 63, .2); }
.field__err { color: #B42318; font-size: .84rem; font-weight: 560; margin-top: 6px; }
.field__err:empty { display: none; }
fieldset.field { border: 0; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 14px;
  border: 1px solid #BFCFE1; border-radius: var(--radius); font-size: .92rem; font-weight: 600; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.chip .i { width: 0; height: 16px; stroke-width: 2.6; transition: width .15s ease; }
.chip input:checked + span { background: var(--blue-50); border-color: var(--blue); color: var(--blue-700); }
.chip input:checked + span .i { width: 16px; }
.chip input:focus-visible + span { outline: 3px solid #F2A900; outline-offset: 2px; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form__privacy { margin-top: 10px; text-align: center; font-size: .82rem; color: var(--muted); }
.btn[disabled] { opacity: .7; cursor: progress; }
.formcard__done { text-align: center; padding: 28px 8px; outline: none; }
.formcard__done .i { width: 52px; height: 52px; margin: 0 auto; color: var(--green); }
.formcard__done h3 { margin-top: 14px; font-size: 1.45rem; font-weight: 790; font-stretch: 110%; }
.formcard__done p { margin-top: 8px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 56px 0 28px; font-size: .95rem; }
.site-footer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; }
.site-footer__brand { grid-column: 1 / -1; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; } .site-footer__brand { grid-column: auto; } }
.site-footer__brand img { width: 150px; }
.site-footer__brand p { margin-top: 12px; color: var(--muted); max-width: 36ch; }
.site-footer__h { font-size: .9rem; font-weight: 750; margin-bottom: 10px; }
.site-footer ul li + li { margin-top: 6px; }
.site-footer ul a { color: var(--muted); text-decoration: none; }
.site-footer ul a:hover { color: var(--blue-700); text-decoration: underline; }
.site-footer__base {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  margin-top: 40px; padding-top: 22px;
}
.site-footer__base::before { content: ""; position: absolute; top: 0; left: var(--pad); right: var(--pad); border-top: 1px solid var(--rule); }
.site-footer__base p { color: var(--muted); font-size: .88rem; }
.byline {
  display: inline-flex; align-items: center; gap: 12px; padding: 6px 0;
  color: var(--muted); text-decoration: none; font-size: .88rem; font-weight: 560;
}
.byline img { width: 135px; height: auto; }
.byline:hover { color: var(--ink); }
.byline:hover span { text-decoration: underline; }

/* ---------- Mobile action bar ---------- */
.mbar { display: none; }
@media (max-width: 767.98px) {
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .mbar {
    display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--rule);
    transform: translateY(110%); transition: transform .25s ease; visibility: hidden;
  }
  .mbar.is-visible { transform: none; visibility: visible; }
  .mbar .btn { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mbar { transition: none; }
}

@media print {
  .site-header, .mbar, .demo__replay, .formcard, .tabs__list { display: none !important; }
  .js .panel[data-hidden] { display: block; }
  .section--navy { background: #fff; color: #000; }
}

/* 404 page */
.notfound { min-height: 100vh; display: grid; align-items: center; background: var(--paper); }
.notfound img { width: 172px; }
.notfound h1 { margin-top: 48px; font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); font-weight: 800; font-stretch: var(--wide); letter-spacing: -.02em; }
.notfound p { margin-top: 14px; color: var(--muted); font-size: 1.1rem; max-width: 40ch; }

/* ---------- Phone refinements ---------- */
@media (max-width: 599.98px) {
  .benefit { display: grid; grid-template-columns: 42px 1fr; column-gap: 16px; padding: 20px 18px; }
  .benefit__icon { grid-row: span 2; }
  .benefit h3 { margin-top: 0; align-self: center; }
  .step { padding: 0 0 0 48px; min-height: 32px; }
  .step h4 { padding-top: 4px; }
  .tabs__list { margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scroll-padding-inline: var(--pad); }
  .hero__by { font-size: .88rem; }
}
