/* Fonts are self-hosted: no request leaves this site. */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../fonts/bricolage-grotesque-latin-standard-normal.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: 'Caveat';
  src: url('../fonts/caveat-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/ibm-plex-sans-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  /* The Skoolia colours, a cool paper, and the teacher's red pen for handwritten notes. */
  --ink: #142e4d;
  --ink-soft: #2c4666;
  --ink-muted: #566a84;
  --on-ink: #d9e2ee;
  --paper: #ffffff;
  --paper-cool: #f3f6fa;
  --rule: #dbe3ee;
  --seyes-major: #dbe5f2;
  --seyes-minor: #f1f5fa;
  --marker: #eacf60;
  --marker-deep: #d9bb45;
  --marker-soft: #fbf5d9;
  --pen: #c8394f;
  --danger: #b42318;
  --danger-soft: #fdeeec;
  --success: #17693f;
  --success-soft: #e6f4ec;

  --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-hand: 'Caveat', 'Segoe Script', cursive;
  --font-text: 'IBM Plex Sans', system-ui, 'Segoe UI', sans-serif;

  --square: 32px;
  --gutter: clamp(16px, 4vw, 40px);
  --wrap: 1200px;
  --section: clamp(64px, 9vw, 120px);
  --r-panel: 28px;
  --r-card: 18px;
  --shadow-card: 0 1px 2px rgb(20 46 77 / 6%), 0 14px 32px rgb(20 46 77 / 9%);
  --shadow-frame: 0 2px 4px rgb(20 46 77 / 6%), 0 18px 40px rgb(20 46 77 / 12%), 0 48px 96px rgb(20 46 77 / 14%);
  --shadow-phone: 0 8px 20px rgb(20 46 77 / 20%), 0 28px 60px rgb(20 46 77 / 28%);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.012em;
  text-wrap: balance;
  font-variation-settings: 'opsz' 48;
}
h3 { line-height: 1.2; }
h4 { font-weight: 600; line-height: 1.3; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.section-title {
  max-width: 22ch;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1.06;
}

.hand {
  font: 700 1.625rem/1.1 var(--font-hand);
  color: var(--pen);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 22px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 0.9375rem/1.2 var(--font-text);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}
.button--large { min-height: 54px; padding: 14px 30px; font-size: 1rem; }
.button--full { width: 100%; }
.button--primary { background: var(--marker); border-color: var(--marker); color: var(--ink); }
.button--primary:hover { background: var(--marker-deep); border-color: var(--marker-deep); }
.button--ghost { background: var(--paper); border-color: var(--ink); color: var(--ink); }
.button--ghost:hover { background: var(--ink); color: #fff; }
.button--ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.button--ink:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.button[disabled] { cursor: progress; opacity: 0.8; }

.button__spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgb(20 46 77 / 30%);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}
.button.is-loading .button__spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--marker-deep);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

.icon-disc {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--marker);
  color: var(--ink);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 90%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  min-height: 76px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wordmark { display: inline-block; flex: none; line-height: 0; }
.wordmark img { display: block; width: auto; height: 34px; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav a, .mobile-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:hover { background: var(--paper-cool); }
.site-nav a[aria-current='page'], .mobile-nav a[aria-current='page'] {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--marker-deep);
  text-decoration-thickness: 3px;
  text-underline-offset: 7px;
}

.mobile-nav { display: none; position: relative; margin-left: auto; }
.mobile-nav summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  cursor: pointer;
  list-style: none;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav nav {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(280px, calc(100vw - 32px));
  padding: 8px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: var(--shadow-frame);
}
.mobile-nav a { padding: 12px; font-size: 1rem; }

/* Product frames */
.browser {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-frame);
}
.browser__bar {
  display: flex;
  gap: 6px;
  padding: 11px 14px;
  background: var(--paper-cool);
  border-bottom: 1px solid var(--rule);
}
.browser__bar span { width: 9px; height: 9px; border-radius: 50%; background: #bccbdf; }

.phone {
  overflow: hidden;
  background: var(--ink);
  border: 6px solid var(--ink);
  border-radius: 30px;
  box-shadow: var(--shadow-phone);
}
.phone img { border-radius: 24px; }

/* Ticks shared by the modules and the offers */
.ticks li { position: relative; padding: 7px 0 7px 34px; line-height: 1.45; }
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--marker);
}
.ticks li::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 14px;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg);
}

/* Hero: the symbol is the stage, on a faint page of an exercise book. */
.hero, .page-head { position: relative; isolation: isolate; }
.hero::before, .page-head::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 620px;
  background-image:
    linear-gradient(to bottom, var(--seyes-major) 1px, transparent 1px),
    linear-gradient(to bottom, var(--seyes-minor) 1px, transparent 1px),
    linear-gradient(to right, var(--seyes-minor) 1px, transparent 1px);
  background-size: 100% var(--square), 100% 8px, var(--square) 100%;
  mask-image: linear-gradient(to bottom, #000 40%, transparent);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  gap: clamp(16px, 3vw, 40px);
  align-items: center;
}
.hero__text { position: relative; z-index: 2; padding-block: clamp(32px, 5vw, 64px) clamp(72px, 8vw, 104px); }
.hero h1 { font-size: clamp(2.5rem, 5.1vw, 4.25rem); line-height: 1.02; }
.hero__lead { max-width: 54ch; margin-top: 24px; font-size: 1.1875rem; line-height: 1.6; color: var(--ink-soft); }
.hero .actions { margin-top: 32px; }
.hero__note { margin-top: 24px; transform: rotate(-1.5deg); transform-origin: left; }

.hero__stage { position: relative; align-self: stretch; min-height: 620px; clip-path: inset(-60px -200px 0 -200px); }
.hero__mark {
  position: absolute;
  top: 2%;
  left: -10%;
  width: 112%;
  height: auto;
  animation: mark-in 900ms var(--ease) both;
}
.hero__teacher, .hero__pupil { position: absolute; }
.hero__teacher { bottom: -210px; right: 0; width: 72%; animation: rise 900ms 120ms var(--ease) both; }
.hero__pupil { bottom: -262px; left: -2%; width: 44%; animation: rise 900ms 220ms var(--ease) both; }
.hero__teacher img, .hero__pupil img { filter: drop-shadow(0 16px 26px rgb(20 46 77 / 20%)); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  background: var(--paper);
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
}
.chip::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
}
.hero__chip { position: absolute; z-index: 3; animation: rise 800ms 420ms var(--ease) both; }
.hero__chip--a { top: 20%; left: -2%; }
.hero__chip--b { top: 48%; right: 0; }
.hero__chip--b::before { background: var(--marker-deep); }

.hero__product { position: relative; z-index: 3; margin-top: -48px; }
.hero__phone {
  position: absolute;
  right: calc(var(--gutter) + clamp(8px, 3vw, 40px));
  bottom: -40px;
  width: clamp(110px, 18vw, 230px);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: none; }
}
@keyframes mark-in {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: none; }
}

/* Introduction */
.intro { padding-block: calc(var(--section) + 40px) var(--section); }
.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.intro__text p { max-width: 52ch; margin-top: 20px; color: var(--ink-soft); }
.compare-wrap { overflow: hidden; background: var(--ink); border-radius: var(--r-panel); color: #fff; }
.compare { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.5; }
.compare th { padding: 24px 24px 16px; font: 800 1.25rem/1.2 var(--font-display); text-align: left; }
.compare th:last-child { color: var(--marker); }
.compare td { width: 50%; padding: 18px 24px; border-top: 1px solid rgb(255 255 255 / 14%); vertical-align: top; }
.compare td:first-child { color: #a9bad0; }
.compare td:last-child { font-weight: 500; }
.compare tbody tr:last-child td { padding-bottom: 28px; }

/* Modules: text and screen trade sides down the page. */
.features { padding-block: var(--section); background: var(--paper-cool); }
.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin-top: clamp(56px, 7vw, 96px);
}
.feature--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature--flip .feature__text { order: 2; }
.feature__module { font-size: 0.9375rem; font-weight: 600; color: var(--ink-muted); }
.feature h3 { margin-top: 8px; font-size: clamp(1.625rem, 2.6vw, 2.125rem); line-height: 1.12; }
.feature__text > p:not(.feature__module) { margin-top: 14px; color: var(--ink-soft); }
.feature .ticks { margin-top: 16px; font-size: 0.9688rem; }
.feature__media { min-width: 0; }

.extras {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 24px);
  margin-top: clamp(64px, 8vw, 104px);
}
.extra { padding: 28px; background: var(--paper); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.extra h3 { margin-top: 18px; font-size: 1.3125rem; }
.extra p { margin-top: 8px; font-size: 1rem; color: var(--ink-soft); }

/* Three spaces */
.how { padding-block: var(--section); }
.roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 24px);
  margin-top: clamp(32px, 4vw, 56px);
}
.role { overflow: hidden; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-panel); }
.role__photo { height: 300px; overflow: hidden; padding-top: 24px; }
.role__photo img { width: 74%; max-width: 300px; margin-inline: auto; filter: drop-shadow(0 12px 20px rgb(20 46 77 / 20%)); }
.role--marker .role__photo { background: var(--marker); }
.role--ink .role__photo { background: var(--ink); }
.role--cool .role__photo { background: #dfe8f4; }
.role__text { padding: 24px 26px 30px; }
.role h3 { font-size: 1.625rem; }
.role p { margin-top: 8px; font-size: 1rem; color: var(--ink-soft); }

.core {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 12px clamp(24px, 4vw, 56px);
  align-items: center;
  margin-top: clamp(16px, 2.4vw, 24px);
  padding: clamp(24px, 3.4vw, 40px);
  background: var(--marker);
  border-radius: var(--r-panel);
}
.core h3 { font-size: clamp(1.625rem, 2.6vw, 2.125rem); }

.flow__title { margin-top: clamp(56px, 7vw, 88px); font-size: clamp(1.5rem, 2.4vw, 1.875rem); }
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: 28px; counter-reset: flow; }
.flow li { position: relative; counter-increment: flow; }
.flow li::before {
  content: counter(flow);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font: 800 1.375rem/1 var(--font-display);
}
.flow li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 26px;
  left: 64px;
  right: calc(clamp(20px, 3vw, 40px) * -1 + 12px);
  border-top: 2px dashed #aebcd0;
}
.flow h4 { margin-top: 16px; font-size: 1.125rem; }
.flow p { margin-top: 6px; font-size: 1rem; color: var(--ink-soft); }

/* Product preview */
.preview { padding-block: var(--section); background: var(--ink); color: #fff; }
.preview__lead { max-width: 56ch; margin-top: 16px; color: var(--on-ink); }
.preview__stage { position: relative; margin-top: clamp(32px, 4vw, 56px); padding-bottom: 32px; }
.preview__screen { width: min(100%, 900px); border-color: rgb(255 255 255 / 12%); }
.preview__phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(130px, 24vw, 280px);
  border-color: #0c1d32;
  background: #0c1d32;
}
.preview__note { margin-top: 24px; font-size: 0.9375rem; color: #b4c4d8; }

/* Why choose */
.why { padding-block: var(--section); }
.why__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.why__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 40px) clamp(24px, 4vw, 48px); }
.why__list dt { margin-top: 14px; font: 800 1.1875rem/1.25 var(--font-display); }
.why__list dd { margin-top: 6px; font-size: 1rem; color: var(--ink-soft); }

/* Offers */
.home-offers, .pricing { background: var(--paper-cool); }
.home-offers { padding-block: var(--section); }
.home-offers__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.pricing { padding-block: clamp(40px, 5vw, 64px) var(--section); }
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 24px); }
.offer {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-card);
}
.offer__head { padding: 28px 28px 24px; background: #e6edf6; }
.offer__name { margin-top: 14px; font: 800 2.25rem/1.05 var(--font-display); letter-spacing: -0.012em; }
.offer__head p { margin-top: 6px; font-weight: 500; }
.offer__tag {
  display: inline-block;
  padding: 4px 13px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
}
.offer--marker .offer__head { background: var(--marker); }
.offer--ink .offer__head { background: var(--ink); color: #fff; }
.offer--ink .offer__tag { background: var(--marker); color: var(--ink); }
.offer__prices {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 196px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--rule);
}
.offer__price { font: 800 2.625rem/1.08 var(--font-display); letter-spacing: -0.015em; white-space: nowrap; }
.offer__price small { font: 600 1.0625rem/1 var(--font-text); letter-spacing: 0; color: var(--ink-soft); }
.offer__note { margin-top: 6px; font-size: 0.875rem; line-height: 1.4; color: var(--ink-muted); }
.offer__plus { margin-block: 6px 2px; font-size: 1.25rem; font-weight: 700; line-height: 1; color: var(--marker-deep); }
.offer__features { flex: 1; padding: 20px 28px 12px; font-size: 1rem; }
.offer__cta { margin: 8px 28px 28px; }

/* Page heads and questions */
.page-head { padding-block: clamp(48px, 6vw, 80px) clamp(24px, 3vw, 40px); text-align: center; }
.page-head::before { height: 100%; }
.page-head h1 { font-size: clamp(2.5rem, 5.1vw, 4.25rem); line-height: 1.04; }
.page-head p { max-width: 60ch; margin: 18px auto 0; font-size: 1.1875rem; line-height: 1.6; color: var(--ink-soft); }
.page-head + .pricing { background: linear-gradient(to bottom, var(--paper) 120px, var(--paper-cool) 120px); }

.faq { padding-block: var(--section); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary {
  position: relative;
  padding: 20px 44px 20px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 14px;
  font: 500 1.75rem/1.2 var(--font-text);
  transition: transform 180ms var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; max-width: 64ch; color: var(--ink-soft); }

/* Final call to action */
.cta { padding-block: 0 var(--section); background: var(--paper); }
.home-offers + .cta, .faq + .cta { padding-top: 0; }
.home-offers + .cta { background: var(--paper-cool); }
.cta__panel {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 24px;
  align-items: end;
  overflow: hidden;
  background: var(--marker);
  border-radius: var(--r-panel);
}
.cta__text { padding: clamp(32px, 5.4vw, 72px); }
.cta h2 { max-width: 20ch; font-size: clamp(2.125rem, 4.6vw, 3.5rem); line-height: 1.04; }
.cta p { margin-top: 16px; font-size: 1.1875rem; }
.cta .button { margin-top: 28px; background: var(--ink); border-color: var(--ink); color: #fff; }
.cta .button:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.cta__photo { align-self: end; height: 100%; max-height: 420px; padding-top: 32px; overflow: hidden; }
.cta__photo img { width: min(100%, 320px); margin-inline: auto; }

/* Footer */
.site-footer { background: var(--ink); color: #fff; }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px 64px;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding: 64px var(--gutter) 40px;
}
.site-footer__about { max-width: 38ch; }
.site-footer__about p { margin-top: 16px; font-size: 0.9688rem; color: var(--on-ink); }
.site-footer nav a, .site-footer address a {
  display: inline-block;
  padding: 6px 0;
  font-size: 0.9688rem;
  text-decoration: none;
}
.site-footer nav a:hover, .site-footer address a:hover { text-decoration: underline; text-decoration-color: var(--marker); text-underline-offset: 4px; }
.site-footer address { display: flex; flex-direction: column; font-style: normal; }
.site-footer__legal {
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding: 18px var(--gutter) 28px;
  border-top: 1px solid rgb(255 255 255 / 14%);
  font-size: 0.875rem;
  color: #b4c4d8;
}

/* Contact page */
.contact { background: var(--paper-cool); }
.contact__page {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: stretch;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding: clamp(24px, 3vw, 40px) var(--gutter) var(--section);
}
.contact__intro {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4.4vw, 56px) clamp(24px, 4.4vw, 56px) 300px;
  background: var(--ink);
  border-radius: var(--r-panel);
  color: #fff;
}
.contact h1 { font-size: clamp(2.5rem, 4.8vw, 4rem); line-height: 1.03; }
.contact__lead { max-width: 52ch; margin-top: 20px; font-size: 1.1875rem; line-height: 1.6; color: var(--on-ink); }
.contact h2 { margin-top: 36px; font-size: 1.5rem; line-height: 1.2; color: var(--marker); }
.contact__steps { margin-top: 12px; counter-reset: step; }
.contact__steps li {
  counter-increment: step;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-block: 8px;
  max-width: 48ch;
  font-size: 1rem;
  line-height: 1.5;
}
.contact__steps li::before {
  content: counter(step);
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--marker);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
}
.contact__direct { display: flex; flex-direction: column; gap: 4px; margin-top: 24px; font-style: normal; font-weight: 500; }
.contact__photo { position: absolute; right: clamp(16px, 5vw, 64px); bottom: -8px; width: min(330px, 62%); height: 284px; overflow: hidden; }

.contact__card {
  align-self: start;
  padding: clamp(20px, 3vw, 36px);
  background: var(--paper);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-frame);
}

.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 6px; font-size: 0.9688rem; font-weight: 600; }
.field__required, .field__optional { font-weight: 400; color: var(--ink-muted); }
.field input, .field textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  background: var(--paper);
  border: 1px solid #8f9fb5;
  border-radius: 12px;
  color: var(--ink);
  font: 400 1rem/1.5 var(--font-text);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.field textarea { min-height: 128px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #66758a; }
.field input:hover, .field textarea:hover { border-color: var(--ink-soft); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgb(234 207 96 / 65%);
}
.field [aria-invalid='true'] { border-color: var(--danger); }
.field__error { margin-top: 6px; font-size: 0.9063rem; line-height: 1.4; color: var(--danger); }
.field__error:empty { display: none; }

/* Hidden from people, tempting for bots. */
.field--trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-alert {
  margin-bottom: 20px;
  padding: 12px 14px;
  background: var(--danger-soft);
  border-left: 3px solid var(--danger);
  border-radius: 8px;
  font-size: 0.9688rem;
  line-height: 1.45;
  color: #7a1a12;
}
.form__note { margin-top: 12px; font-size: 0.875rem; line-height: 1.45; color: var(--ink-muted); }

.form-success {
  padding: 24px;
  background: var(--success-soft);
  border-radius: 14px;
  color: var(--success);
  outline: none;
  animation: rise 500ms var(--ease) both;
}
.form-success p { margin-top: 12px; font-size: 1.125rem; font-weight: 500; line-height: 1.5; color: #0f4d2d; }

.plain-page { padding-block: clamp(80px, 12vw, 160px); }
.plain-page h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.05; }
.plain-page p { max-width: 52ch; margin-block: 16px 28px; color: var(--ink-soft); }

/* Tablet */
@media (max-width: 960px) {
  .hero__grid, .intro__grid, .why__grid, .faq__grid, .contact__page, .feature, .feature--flip { grid-template-columns: minmax(0, 1fr); }
  .feature--flip .feature__text { order: 0; }
  .hero__text { padding-bottom: 8px; }
  .hero__stage { min-height: min(92vw, 560px); }
  .hero__mark { left: 12%; width: 72%; }
  .hero__teacher { right: 8%; width: 44%; bottom: -160px; }
  .hero__pupil { left: 14%; width: 32%; bottom: -240px; }
  .hero__chip--a { left: 2%; }
  .hero__chip--b { right: 2%; }
  .offers { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
  .offer__prices { min-height: 0; }
  .extras, .roles { grid-template-columns: minmax(0, 1fr); }
  .role { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: stretch; }
  .role__photo { height: auto; max-height: 280px; }
  .role__photo img { width: 88%; }
  .role__text { align-self: center; }
  .core { grid-template-columns: minmax(0, 1fr); }
  .contact__intro { padding-bottom: 310px; }
}

/* Header collapses before the links crowd the call to action. */
@media (max-width: 860px) {
  .site-nav { display: none; }
  .site-header__cta { margin-left: auto; }
  .mobile-nav { display: block; margin-left: 0; }
  .site-header__inner { gap: 8px; min-height: 68px; }
}

/* Phone */
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero h1, .page-head h1 { font-size: 2.375rem; line-height: 1.05; }
  .hero__lead, .page-head p { font-size: 1.0625rem; }
  .hero .button, .plain-page .button { width: 100%; }
  .hero__stage { min-height: 96vw; }
  .hero__mark { left: 6%; width: 86%; }
  .hero__teacher { right: 2%; width: 56%; bottom: -96px; }
  .hero__pupil { left: 4%; width: 42%; bottom: -160px; }
  .hero__chip--a { top: 10%; left: 0; }
  .hero__chip--b { top: 44%; right: 0; }
  .chip { padding: 8px 14px; font-size: 0.875rem; }
  .hero__product { margin-top: -24px; }
  .intro { padding-top: calc(var(--section) + 24px); }
  .compare th, .compare td { padding-inline: 16px; }
  .compare td { font-size: 0.9375rem; }
  .why__list, .flow { grid-template-columns: minmax(0, 1fr); }
  .flow li:not(:last-child)::after { display: none; }
  .role { display: block; }
  .role__photo { height: 280px; max-height: none; }
  .role__photo img { width: 66%; }
  .cta__panel { grid-template-columns: minmax(0, 1fr); }
  .cta__photo { max-height: 280px; padding-top: 0; }
  .cta__photo img { width: 66%; }
  .site-header__cta { padding-inline: 14px; min-height: 42px; font-size: 0.875rem; }
  .wordmark img { height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
  }
}

@media print {
  .site-header, .cta { display: none; }
}
