/*
 * The page for schools: the game's type and colours, set calmly (paper, ink-blue text, one
 * accent), for teachers who want the facts.
 */
@font-face {
  font-family: 'Lilita One';
  src: url('/fonts/lilita-one-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Fredoka';
  src: url('/fonts/fredoka-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Fredoka';
  src: url('/fonts/fredoka-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #f7f3e8;
  --card: #fffdf7;
  --line: #e4dccb;
  --ink: #1d1a4d;
  --soft: #4b4678;
  --accent: #c2367f;
  --good: #2f8a4b;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.6 'Fredoka', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

a {
  color: var(--ink);
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: 'Lilita One', 'Fredoka', sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(36px, 5vw, 54px);
}

h2 {
  font-size: clamp(26px, 3.2vw, 34px);
}

h3 {
  font-size: 21px;
}

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

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px max(16px, calc(50% - 540px));
  background: rgba(247, 243, 232, 0.94);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Lilita One', 'Fredoka', sans-serif;
  font-size: 21px;
  text-decoration: none;
  white-space: nowrap;
}

.brand-icon {
  width: 26px;
  height: 26px;
  color: var(--accent);
}

.top nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 16px;
}

.top nav a:not(.button) {
  text-decoration: none;
  color: var(--soft);
}

.top nav a:not(.button):hover {
  color: var(--ink);
  text-decoration: underline;
}

@media (max-width: 820px) {
  .top {
    position: static;
    flex-direction: column;
    align-items: flex-start;
  }
  .top nav {
    justify-content: flex-start;
    gap: 12px 16px;
  }
}

.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease;
}

.button:hover {
  background: #2f2a73;
}

.button.small {
  padding: 8px 14px;
  font-size: 15px;
  color: var(--paper) !important;
}

.quiet {
  color: var(--soft);
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

main section {
  margin: 0 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
  padding-top: 48px;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

.kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 14px;
}

.lead {
  font-size: 20px;
  color: var(--soft);
  margin: 0 0 22px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.facts {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.facts li {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 15px;
}

figure {
  margin: 0;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(29, 26, 77, 0.12);
}

figcaption {
  margin-top: 10px;
  font-size: 15px;
  color: var(--soft);
  text-align: center;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.steps li,
.pair section,
.price,
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.steps li {
  padding: 20px;
}

.steps p {
  margin: 0;
  color: var(--soft);
}

.num {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 56px;
}

.pair section {
  margin: 0;
  padding: 24px;
}

@media (max-width: 760px) {
  .pair {
    grid-template-columns: 1fr;
  }
}

ul:not(.facts) {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: grid;
  gap: 10px;
}

ul:not(.facts) li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.icon {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  color: var(--good);
}

.price {
  padding: 28px;
  max-width: 720px;
}

.amount {
  margin: 0 0 16px;
  color: var(--soft);
}

.amount strong {
  font-family: 'Lilita One', 'Fredoka', sans-serif;
  font-weight: 400;
  font-size: 44px;
  color: var(--ink);
  margin-right: 6px;
}

.contact {
  margin: 8px 0 0;
  color: var(--soft);
  font-size: 16px;
}

.faq details {
  margin-bottom: 10px;
  padding: 0 20px;
}

.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 700;
}

.faq details p {
  margin: 0 0 16px;
  color: var(--soft);
}

.final {
  text-align: center;
  padding: 40px 16px;
  border-top: 1px solid var(--line);
}

.final .actions {
  justify-content: center;
}

.final p {
  color: var(--soft);
}

footer {
  padding: 24px 16px 40px;
  text-align: center;
  font-size: 15px;
  color: var(--soft);
}

footer a {
  color: var(--soft);
}

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

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 22px 32px;
  margin-top: 20px;
}

.why article {
  padding: 4px 0 0 16px;
  border-left: 4px solid var(--accent);
}

.why h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.why p {
  margin: 0;
  color: var(--soft);
}

.why-lead,
.why-outro {
  max-width: 760px;
  color: var(--soft);
  font-size: 19px;
}

.why-outro {
  margin-top: 20px;
  color: var(--ink);
  font-weight: 700;
}

.why .source {
  margin-top: 8px;
  font-size: 14px;
}

.why .source cite {
  font-style: normal;
}

.why .source a {
  color: var(--soft);
}
