/* eFlyingSchool front page
   Fonts are self-hosted (no third-party requests, no cookies):
   B612 for headings (the typeface designed for aircraft cockpit displays),
   Public Sans for text. Both SIL Open Font Licence 1.1. */

@font-face {
  font-family: "B612";
  src: url("../fonts/b612-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "B612";
  src: url("../fonts/b612-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  /* Colour: the logo's navy, airfield signal yellow, and the four defect states */
  --navy: #12264a;
  --navy-deep: #0c1b36;
  --navy-soft: #24406f;
  --paper: #eef2f6;
  --white: #ffffff;
  --ink: #16233a;
  --ink-soft: #4a5a74;
  --line: #cfd8e3;
  --yellow: #ffc61a;
  --yellow-deep: #e9ad00;
  --link: #1d5fa8;

  --grounded: #c4322b;
  --deferred: #b86e00;
  --monitor: #1d5fa8;
  --ok: #23774d;

  --display: "B612", "Trebuchet MS", Verdana, sans-serif;
  --text: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --band: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

h1, h2, h3 { font-family: var(--display); font-weight: 700; color: var(--navy); margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); line-height: 1.18; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; line-height: 1.3; }
p { margin: 0 0 1em; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.18em; }
em { font-style: normal; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 2px; }
.band--navy :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: var(--yellow); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -999rem; top: 0; background: var(--yellow); color: var(--navy); padding: 0.6rem 1rem; z-index: 100; font-weight: 600; }
.skip:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn--large { font-size: 1.02rem; padding: 0.9rem 1.4rem; }
.btn--primary { background: var(--yellow); color: var(--navy-deep); border-color: var(--yellow); }
.btn--primary:hover { background: var(--yellow-deep); border-color: var(--yellow-deep); }
.btn--quiet { color: var(--navy); border-color: var(--line); background: var(--white); }
.btn--quiet:hover { border-color: var(--navy); }
.btn--onnavy { color: var(--white); border-color: rgba(255, 255, 255, 0.45); }
.btn--onnavy:hover { border-color: var(--white); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header__row { display: flex; align-items: center; gap: 1.5rem; min-height: 4.5rem; }
.site-header__logo img { width: 10.5rem; }
.site-header .btn, .site-nav ul a { white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.site-nav ul { display: flex; gap: 1.35rem; }
.site-nav ul a { color: var(--ink); text-decoration: none; font-size: 0.95rem; font-weight: 500; padding-block: 0.4rem; border-bottom: 2px solid transparent; }
.site-nav ul a:hover { border-bottom-color: var(--yellow); }
.site-nav__actions { display: flex; gap: 0.6rem; }
.menu-button { display: none; margin-left: auto; font: 700 0.95rem var(--display); color: var(--navy); background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 0.55rem 0.9rem; cursor: pointer; }

@media (max-width: 66rem) {
  .menu-button { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 1rem; margin: 0; padding: 1rem var(--gutter) 1.4rem; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 14px 24px -18px rgba(12, 27, 54, 0.5); }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 0.7rem 0; border-bottom: 1px solid var(--paper); font-size: 1.05rem; }
  .site-nav__actions { flex-direction: column; }
  html:not(.js) .site-nav { display: flex; position: static; box-shadow: none; }
  html:not(.js) .menu-button { display: none; }
  html:not(.js) .site-header { position: static; }
  html:not(.js) .site-header__row { flex-wrap: wrap; padding-block: 0.8rem; }
}

/* Hero */
.hero { background: var(--navy); color: var(--white); padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 5.5rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: stretch; }
.hero__text { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; padding-block: 0.4rem 0.2rem; }
.hero h1 { color: var(--white); font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.1; letter-spacing: -0.015em; text-wrap: initial; }
.hero h1 span { display: block; text-wrap: balance; }
.hero h1 span + span { margin-top: 0.3em; }
.hero__lead { margin: 0; max-width: 36rem; font-size: 1.2rem; line-height: 1.6; color: #d7e0ee; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero__price { margin: 1.4rem 0 0; font-size: 0.98rem; color: #b9c7dc; }

/* The aircraft record: the page's one signature element */
.record { background: var(--white); color: var(--ink); border-radius: 10px; padding: 1.3rem 1.5rem 1.1rem; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.65); }
.record { display: flex; flex-direction: column; }
.record figcaption { margin-top: auto; padding-top: 0.9rem; }
.record__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.record__reg { font: 700 1.75rem/1 var(--display); color: var(--navy); letter-spacing: 0.04em; margin: 0; }
.record__type { margin: 0.4rem 0 0; font-size: 0.86rem; color: var(--ink-soft); }
.record__due { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 1.1rem; padding-block: 0.9rem; border-block: 1px solid var(--line); }
.record__due dt { font-size: 0.8rem; color: var(--ink-soft); }
.record__due dd { font: 700 0.98rem/1.3 var(--display); color: var(--navy); margin-top: 0.15rem; }
.record__log li { display: grid; grid-template-columns: 6.4rem 1fr; gap: 0.75rem; padding-block: 0.6rem; border-bottom: 1px solid var(--paper); font-size: 0.92rem; line-height: 1.42; }
.record__log b { font: 700 0.86rem/1.5 var(--display); color: var(--navy); }
.record figcaption { font-size: 0.86rem; color: var(--ink-soft); }

@media (prefers-reduced-motion: no-preference) {
  /* Lines are visible by default; the animation only delays their arrival, so nothing is lost if it never runs */
  .record__log li { animation: arrive 0.5s ease-out backwards; animation-delay: calc(var(--i) * 0.4s + 0.5s); }
  @keyframes arrive { from { opacity: 0; transform: translateY(6px); } }
}

/* Status labels (the four defect states are real categories in the system) */
.status { display: inline-flex; align-items: center; gap: 0.4rem; font: 700 0.8rem/1 var(--display); padding: 0.32rem 0.6rem 0.32rem 0.5rem; border-radius: 99px; white-space: nowrap; margin: 0; color: var(--white); }
.status::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; opacity: 0.9; }
.status--ok { background: var(--ok); }
.status--deferred { background: var(--deferred); }
.status--grounded { background: var(--grounded); }
.status--monitor { background: var(--monitor); }
.states { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }

@media (max-width: 64rem) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__text { justify-content: flex-start; gap: 1.6rem; }
  .record { max-width: 34rem; }
}
@media (max-width: 30rem) {
  .record { padding: 1.1rem 1.1rem 1rem; }
  .record__log li { grid-template-columns: 1fr; gap: 0.1rem; }
  .hero__actions .btn { width: 100%; }
}

/* Proof strip */
.proof { background: var(--navy-deep); color: #dbe4f1; }
.proof__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof__list li { padding: 1.15rem 1.25rem 1.15rem 0; font-size: 0.95rem; line-height: 1.4; font-weight: 500; }
.proof__list li + li { padding-left: 1.25rem; border-left: 1px solid rgba(255, 255, 255, 0.16); }
@media (max-width: 58rem) {
  .proof__list { grid-template-columns: 1fr 1fr; padding-block: 0.4rem; }
  .proof__list li { padding: 0.7rem 1rem 0.7rem 0; }
  .proof__list li + li { padding-left: 0; border-left: 0; }
}
@media (max-width: 30rem) { .proof__list { grid-template-columns: 1fr; } }

/* Bands */
.band { padding-block: var(--band); }
.band--paper { background: var(--paper); }
.band--navy { background: var(--navy); color: #d7e0ee; }
.band--navy h2, .band--navy h3 { color: var(--white); }
.band__intro { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.band__intro h2 + p { margin-top: 1.1rem; }
.band__intro p { font-size: 1.1rem; }
.band__intro p:last-child { margin-bottom: 0; }
.band__intro--wide { max-width: 52rem; }

/* Roles */
.roles { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.roles__hint { margin: 0 0 0.8rem; font-size: 0.95rem; font-weight: 600; color: var(--ink-soft); }
.roles__tabs { display: flex; flex-direction: column; border-left: 2px solid var(--line); }
.roles__tabs button { font: 700 1rem/1.3 var(--display); color: var(--ink-soft); text-align: left; background: none; border: 0; border-left: 4px solid transparent; margin-left: -3px; padding: 0.7rem 1rem; cursor: pointer; }
.roles__tabs button { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.roles__tabs button::after { content: "\203A"; font-size: 1.35rem; line-height: 1; opacity: 0.35; }
.roles__tabs button:hover { color: var(--navy); background: var(--paper); }
.roles__tabs button:hover::after, .roles__tabs button[aria-selected="true"]::after { opacity: 1; }
.roles__tabs button[aria-selected="true"] { color: var(--navy); border-left-color: var(--yellow); background: var(--paper); }
.role { max-width: 44rem; }
.role h3 { font-size: 0.95rem; color: var(--ink-soft); font-family: var(--text); font-weight: 600; }
.role__benefit { font: 700 clamp(1.25rem, 2.3vw, 1.6rem)/1.3 var(--display); color: var(--navy); margin: 0.5rem 0 1.5rem; text-wrap: balance; }
.role ul { border-top: 1px solid var(--line); }
.role li { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.js .role[hidden] { display: none; }
html:not(.js) .roles { grid-template-columns: 1fr; }
html:not(.js) .roles__tabs, html:not(.js) .roles__hint { display: none; }
html:not(.js) .role + .role { margin-top: 2.5rem; }

@media (max-width: 48rem) {
  .roles { grid-template-columns: 1fr; }
  .roles__tabs { flex-direction: row; flex-wrap: wrap; gap: 0.4rem; border-left: 0; }
  .roles__tabs button { margin: 0; border: 2px solid var(--line); border-radius: 99px; padding: 0.5rem 0.9rem; font-size: 0.92rem; }
  .roles__tabs button[aria-selected="true"] { border-color: var(--navy); background: var(--navy); color: var(--white); }
  .roles__tabs button::after { content: none; }
}

/* Airworthiness */
.airworthy { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.airworthy__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.2rem; }
.airworthy__list > div { padding: 1.1rem 0; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.airworthy__list dt { font: 700 1.02rem/1.3 var(--display); color: var(--white); }
.airworthy__list dd { margin-top: 0.4rem; font-size: 0.97rem; line-height: 1.55; }
.airworthy__shots { display: grid; gap: 1.25rem; }
@media (max-width: 58rem) { .airworthy { grid-template-columns: 1fr; } .airworthy__shots { grid-template-columns: 1fr 1fr; } }
@media (max-width: 40rem) { .airworthy__list, .airworthy__shots { grid-template-columns: 1fr; } }


/* Screenshots */
.screen img { width: 100%; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.screen figcaption { margin-top: 0.6rem; font-size: 0.88rem; line-height: 1.45; color: var(--ink-soft); }
.screen--onnavy img { border-color: transparent; }
.screen--onnavy figcaption { color: #b9c7dc; }

.zoom { display: block; cursor: zoom-in; }
.zoom:hover img { border-color: var(--navy-soft); }

/* Two-column text + picture */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split__text h2 + p { margin-top: 1.1rem; }
.split__text p { font-size: 1.08rem; }
.split--reverse .split__text { order: 2; }
@media (max-width: 52rem) { .split { grid-template-columns: 1fr; } .split--reverse .split__text { order: 0; } }

.ticks { margin-top: 1.4rem; }
.ticks li { position: relative; padding: 0.55rem 0 0.55rem 1.9rem; border-top: 1px solid var(--line); }
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 0.15rem; top: 0.95rem; width: 0.85rem; height: 0.45rem; border-left: 3px solid var(--ok); border-bottom: 3px solid var(--ok); transform: rotate(-45deg); }

/* Full feature list */
.features { columns: 2; column-gap: 3.5rem; }
.features section { break-inside: avoid; padding-top: 1rem; margin-bottom: 2rem; border-top: 3px solid var(--navy); }
.features h3 { margin-bottom: 0.6rem; }
.features__head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.7rem; }
.features__head h3 { margin: 0; }
.features__icon { flex: none; width: 2.75rem; height: 2.75rem; fill: none; stroke: var(--navy); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.features__icon .a { fill: var(--yellow); }
.features li { padding: 0.42rem 0; border-top: 1px solid var(--line); font-size: 0.97rem; line-height: 1.45; }
.features__thumb { margin-top: 0.9rem; }
.features__thumb img { width: 100%; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
@media (max-width: 36rem) { .features { columns: 1; } }

/* Branding illustration */
.brands { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.brandcard { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--white); }
.brandcard__url { margin: 0; padding: 0.5rem 0.75rem; font-size: 0.76rem; color: var(--ink-soft); background: var(--paper); border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brandcard__body { display: grid; gap: 0.6rem; padding: 0 0.9rem 1.2rem; }
.brandcard__logo { margin: 0 -0.9rem 0.5rem; padding: 1.4rem 0.9rem; font: 700 1.05rem/1 var(--display); color: var(--white); }
.brandcard__line { height: 0.6rem; border-radius: 3px; background: var(--paper); }
.brandcard__line--short { width: 60%; }
.brandcard--a .brandcard__logo { background: #7a1f2b; }
.brandcard--b .brandcard__logo { background: #1f6f5c; }
.brandcard--b { margin-top: 2rem; }
@media (max-width: 26rem) { .brands { grid-template-columns: 1fr; } .brandcard--b { margin-top: 0; } }

/* Pricing */
.pricing { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.pricing__placard { background: var(--navy); color: #d7e0ee; border-radius: 10px; padding: clamp(1.6rem, 3.5vw, 2.5rem); }
.pricing__placard h2 { color: var(--white); font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.pricing__figure { margin: 1.4rem 0 0.9rem; font: 700 1.3rem/1 var(--display); color: var(--white); }
.pricing__figure span { font-size: clamp(3.4rem, 8vw, 5rem); color: var(--yellow); letter-spacing: -0.02em; margin-right: 0.15em; }
.pricing__note { margin: 0; font-size: 0.97rem; }
.pricing__detail .ticks { margin-top: 0; }
.pricing__detail p { margin: 1.4rem 0; }
@media (max-width: 52rem) { .pricing { grid-template-columns: 1fr; } }

/* Steps: a real sequence, so numbered */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 1.1rem; border-top: 3px solid var(--navy); }
.steps li::before { content: counter(step); display: block; font: 700 2.2rem/1 var(--display); color: var(--yellow-deep); margin-bottom: 0.7rem; }
.steps h3 { font-size: 1.15rem; margin-bottom: 0.45rem; }
.steps p { margin: 0; }
@media (max-width: 48rem) { .steps { grid-template-columns: 1fr; gap: 1.6rem; } }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(1.5rem, 5vw, 4.5rem); }
.about__text { max-width: 40rem; font-size: 1.1rem; }
.about__text p:last-child { margin-bottom: 0; }
@media (max-width: 48rem) { .about { grid-template-columns: 1fr; } }

/* Demonstration form */
.demo { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.demo__intro h2 + p { margin-top: 1.1rem; }
.demo__intro p { font-size: 1.08rem; }
.demo__intro .demo__small { font-size: 0.92rem; color: var(--ink-soft); }
.demo__form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.field--full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.35rem; color: var(--navy); }
.optional { font-weight: 400; color: var(--ink-soft); font-size: 0.86rem; }
.field input, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 2px solid #9fb0c6; border-radius: var(--radius); padding: 0.65rem 0.75rem; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--yellow); outline-offset: 1px; border-color: var(--navy); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--grounded); }
.field__error { margin: 0.35rem 0 0; font-size: 0.88rem; color: var(--grounded); font-weight: 600; }
.demo__send { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.demo__status { margin: 0; flex: 1 1 16rem; font-size: 0.95rem; }
.demo__status:empty { display: none; }
@media (max-width: 52rem) { .demo { grid-template-columns: 1fr; } }
@media (max-width: 34rem) { .demo__form { grid-template-columns: 1fr; } }

/* Questions */
.faq { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start; }
.faq__list details { border-top: 1px solid #b9c5d4; }
.faq__list details:last-child { border-bottom: 1px solid #b9c5d4; }
.faq__list summary { cursor: pointer; list-style: none; position: relative; padding: 1rem 2.2rem 1rem 0; font: 700 1.05rem/1.35 var(--display); color: var(--navy); }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; position: absolute; right: 0.2rem; top: 0.8rem; font-size: 1.5rem; line-height: 1; font-weight: 400; }
.faq__list details[open] summary::after { content: "\2212"; }
.faq__list details p { margin: 0 0 1.2rem; max-width: 40rem; }
@media (max-width: 48rem) { .faq { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--navy-deep); color: #b9c7dc; padding-block: 2.2rem; font-size: 0.92rem; }
.site-footer__row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.site-footer img { width: 9rem; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 99px; }
.site-footer ul { display: flex; gap: 1.4rem; }
.site-footer a { color: var(--white); }
.site-footer p { margin: 0 0 0 auto; }
@media (max-width: 48rem) { .site-footer p { margin-left: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ------------------------------------------------------------------
   Motion. Everything below only applies when html has the "motion" class,
   which the script in <head> adds only if the visitor has not asked their
   device to reduce motion. Without it (or without JavaScript) every element
   is simply shown, so nothing is ever lost.
   ------------------------------------------------------------------ */

/* Header: a shadow once the page has scrolled, and the current section underlined */
.site-header { transition: box-shadow 0.3s ease; }
.site-header.is-scrolled { box-shadow: 0 10px 24px -18px rgba(12, 27, 54, 0.55); }
.site-nav ul a { transition: border-color 0.25s ease, color 0.25s ease; }
.site-nav ul a.is-current { color: var(--navy); border-bottom-color: var(--yellow); }

/* Screenshots lift slightly under the pointer */
.zoom img { transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.zoom:hover img { transform: translateY(-3px); box-shadow: 0 14px 28px -18px rgba(12, 27, 54, 0.6); }

/* The hours count in the hero record */
.record__count { display: inline-block; border-radius: 3px; transition: background-color 0.6s ease; }
.record__count.is-counting { background: rgba(255, 198, 26, 0.45); }

/* Blocks fade up once as they come into view. --d staggers items in a group. */
.motion .reveal { transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0s); }
.motion .reveal:not(.is-in) { opacity: 0; transform: translateY(14px); }

/* Role panels: the panel fades in, then its lines follow quickly */
.motion .role.is-entering > h3 { animation: arrive 0.5s ease-out backwards; }
.motion .role.is-entering > .role__benefit { animation: arrive 0.6s ease-out backwards; animation-delay: 0.2s; }
.motion .role.is-entering li { animation: arrive 0.5s ease-out backwards; animation-delay: calc(var(--i, 0) * 0.2s + 0.6s); }

/* Roles: blank until the section is reached, then School owner is chosen for the visitor */
.motion .roles.is-waiting .roles__panels { visibility: hidden; }
.motion .roles.is-waiting .roles__tabs button[aria-selected="true"] { color: var(--ink-soft); background: none; border-left-color: transparent; }
.motion .roles.is-waiting .roles__tabs button[aria-selected="true"]::after { opacity: 0.35; }
.motion .roles__tabs button { transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.15s ease; }
.motion .roles__tabs button.is-pressed { transform: scale(0.97); }
@media (max-width: 48rem) {
  .motion .roles.is-waiting .roles__tabs button[aria-selected="true"] { border-color: var(--line); background: none; color: var(--ink-soft); }
}

/* Defect states light up in order, as one defect moves from report to fix */
.motion .states .status { transition: opacity 0.45s ease, filter 0.45s ease, transform 0.45s ease; transition-delay: calc(var(--i, 0) * 0.55s + 0.3s); }
.motion .states:not(.is-in) .status { opacity: 0.25; filter: grayscale(1); transform: scale(0.94); }

/* Ticks: each line arrives, then its tick draws in */
.motion .ticks.reveal { transform: none; opacity: 1; }
.motion .ticks li { transition: opacity 0.6s ease, transform 0.6s ease; transition-delay: calc(var(--i, 0) * 0.45s + 0.2s); }
.motion .ticks li::before { transition: clip-path 0.45s ease-out; transition-delay: calc(var(--i, 0) * 0.45s + 0.6s); clip-path: inset(0 0 0 0); }
.motion .ticks:not(.is-in) li { opacity: 0; transform: translateX(-8px); }
.motion .ticks:not(.is-in) li::before { clip-path: inset(0 0 100% 0); }

/* Getting started: a line draws from step 1 to 2 to 3 */
.motion .steps li { position: relative; border-top-color: var(--line); }
.motion .steps li::after { content: ""; position: absolute; left: 0; right: 0; top: -3px; height: 3px; background: var(--navy); transform-origin: left; transition: transform 0.6s ease-in-out; transition-delay: calc(var(--i, 0) * 0.6s + 0.2s); }
.motion .steps li::before { transition: opacity 0.4s ease, transform 0.4s ease; transition-delay: calc(var(--i, 0) * 0.6s + 0.5s); }
.motion .steps li > * { transition: opacity 0.5s ease; transition-delay: calc(var(--i, 0) * 0.6s + 0.6s); }
.motion .steps:not(.is-in) li::after { transform: scaleX(0); }
.motion .steps:not(.is-in) li::before { opacity: 0; transform: translateY(8px); }
.motion .steps:not(.is-in) li > * { opacity: 0; }
.motion .steps.reveal { transform: none; opacity: 1; }

/* Your brand: the two example sites change colour scheme now and then */
.brandcard__logo { transition: background-color 1.2s ease; }
.brandcard__logo + .brandcard__line { transition: background-color 1.2s ease; }
.brandcard[style*="--brand"] .brandcard__logo { background: var(--brand); }
.brandcard[style*="--tint"] .brandcard__logo + .brandcard__line { background: var(--tint); }

/* Hero record: the log waits for a click or hover, then plays at a reading pace (paced by js/main.js) */
.record__stage { position: relative; }
.record__play { display: none; }
.motion .record__log li { animation: none; transition: opacity 0.7s ease, transform 0.7s ease; }
.motion .record.is-waiting .record__log li, .motion .record.is-playing .record__log li:not(.is-shown) { opacity: 0; transform: translateY(6px); }
.motion .record__play:not([hidden]) { display: flex; align-items: center; gap: 0.6rem; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 700 0.95rem/1.25 var(--display); color: var(--navy-deep); background: var(--yellow); border: 0; border-radius: 99px; padding: 0.8rem 1.25rem; white-space: nowrap; cursor: pointer; box-shadow: 0 10px 22px -12px rgba(12, 27, 54, 0.6); transition: background-color 0.2s ease, transform 0.2s ease; animation: pulse 2.4s ease-in-out 1s infinite; }
.motion .record__play:hover { background: var(--yellow-deep); }
.motion .record__play span { font-size: 0.8rem; }
.motion .record__stage { padding-bottom: 2.4rem; }
.motion .record.is-done .record__play { top: auto; bottom: 0; left: auto; right: 0; transform: none; animation: none; padding: 0.4rem 0.8rem; font-size: 0.8rem; background: var(--paper); box-shadow: none; }
.motion .record.is-done .record__play:hover { background: var(--line); }
@keyframes pulse { 0%, 100% { box-shadow: 0 10px 22px -12px rgba(12, 27, 54, 0.6), 0 0 0 0 rgba(255, 198, 26, 0.55); } 50% { box-shadow: 0 10px 22px -12px rgba(12, 27, 54, 0.6), 0 0 0 10px rgba(255, 198, 26, 0); } }
