:root {
  --encre: #13203a;
  --signal: #ffc21a;
  --ciel: #2f6bff;
  --menthe: #1fae7a;
  --tomate: #ef4b3c;
  --papier: #f2f5f8;
  --brume: #d6dee6;
  --muted: #56647a;
  --sheet: #ffffff;
  --display: "Archivo", "Arial Black", Arial, sans-serif;
  --body: "Atkinson Hyperlegible", Verdana, Arial, sans-serif;
  --pixel: "Silkscreen", ui-monospace, Menlo, monospace;
  --gutter: max(16px, 1.75rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  color: var(--encre);
  background: var(--papier);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.01em;
}

p { margin: 0; }

a { color: var(--ciel); }

:focus-visible { outline: 2px solid var(--ciel); outline-offset: 3px; }

.px { font-family: var(--pixel); letter-spacing: .04em; }

.hl {
  background: linear-gradient(transparent 55%, var(--signal) 55%, var(--signal) 92%, transparent 92%);
  padding: 0 .08em;
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem var(--gutter);
  background: var(--papier);
  border-bottom: 1px solid var(--brume);
}

.brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  color: var(--encre);
}

.brand-mark {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--encre);
  stroke-width: 3.6;
  stroke-linecap: square;
}

.brand-mark .top { stroke: var(--signal); }

.brand-name {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: "wdth" 125;
  font-size: 1.35rem;
  line-height: 1;
}

.nav-links { display: flex; align-items: center; gap: 1.1rem; }

.nav-links a {
  color: var(--encre);
  text-decoration: none;
  font-weight: 700;
  font-size: .92rem;
}

.nav-links a:hover { color: var(--ciel); }

.nav-cta {
  background: var(--signal);
  padding: .45rem .8rem;
}

@media (max-width: 520px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* Hero */
.hero {
  background: var(--encre);
  color: #f2f5f8;
}

.hero .inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) var(--gutter) clamp(3rem, 7vw, 5rem);
  display: grid;
  gap: 1.6rem;
}

.hero-kicker { color: var(--signal); font-size: .78rem; }

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: .98;
  font-weight: 800;
  font-variation-settings: "wdth" 120;
  max-width: 16ch;
}

.hero h1 .hl {
  color: var(--encre);
  background: var(--signal);
  padding: 0 .12em;
  line-height: 1.08;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero-sub {
  font-size: 1.15rem;
  max-width: 52ch;
  color: #c9d3e1;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; align-items: center; margin-top: .4rem; }

/* CTA */
.cta-wrap { position: relative; display: inline-block; }

.cta {
  display: inline-block;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  color: var(--encre);
  background: var(--signal);
  border: 2px solid var(--signal);
  padding: .85rem 1.4rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 4px 4px 0 #f2f5f8;
}

.cta:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #f2f5f8; }

.cta.ghost {
  background: transparent;
  color: #f2f5f8;
  border-color: rgba(242, 245, 248, .5);
  box-shadow: none;
}

.cta.ghost:hover { border-color: #f2f5f8; transform: none; }

.cta.dark { box-shadow: 4px 4px 0 var(--encre); border-color: var(--encre); }
.cta.dark:hover { box-shadow: 6px 6px 0 var(--encre); }

.badge {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(22%, -60%) rotate(4deg);
  background: var(--tomate);
  color: #fff;
  font-family: var(--pixel);
  font-size: .62rem;
  line-height: 1;
  padding: .4rem .55rem;
  white-space: nowrap;
  border-radius: 2px;
}

/* Facts strip */
.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--brume);
  border-bottom: 1px solid var(--brume);
}

@media (min-width: 760px) { .facts { grid-template-columns: repeat(4, 1fr); } }

.facts > div {
  background: var(--sheet);
  padding: 1.2rem var(--gutter);
  display: grid;
  gap: .2rem;
}

.facts .k { font-family: var(--pixel); font-size: .68rem; color: var(--muted); }
.facts .v { font-weight: 700; }

/* Blocks */
main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.block {
  padding: clamp(3rem, 7vw, 5rem) 0;
  border-bottom: 1px solid var(--brume);
  display: grid;
  gap: 2rem;
  scroll-margin-top: 4rem;
}

.block-head { display: grid; gap: .8rem; max-width: 62ch; }

.block-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.05;
  font-weight: 780;
  font-variation-settings: "wdth" 114;
}

.block-head p { color: var(--muted); font-size: 1.05rem; }

.tag {
  justify-self: start;
  font-family: var(--pixel);
  font-size: .72rem;
  background: var(--signal);
  color: var(--encre);
  padding: .25rem .5rem;
}

.schools .tag { background: var(--ciel); color: #fff; }

/* Levels */
.levels, .offers {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.lvl {
  background: var(--sheet);
  border: 1px solid var(--brume);
  padding: 1.5rem;
  display: grid;
  gap: .6rem;
  align-content: start;
}

.lvl-top { display: flex; align-items: center; gap: .6rem; }
.lvl-top b { font-weight: 400; }

.pips { display: flex; gap: 3px; }
.pips i { width: 14px; height: 6px; background: var(--brume); display: block; }
.pips i.on { background: var(--menthe); }

.age {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: "wdth" 118;
  font-size: 1.7rem;
  line-height: 1;
}

.lvl h3 { font-size: 1.15rem; font-variation-settings: "wdth" 106; }
.lvl p { font-size: .95rem; }
.make { color: var(--muted); border-top: 1px dashed var(--brume); padding-top: .5rem; }

/* Offers */
.offer {
  position: relative;
  background: var(--sheet);
  border: 1px solid var(--brume);
  padding: 1.6rem 1.5rem;
  display: grid;
  gap: .75rem;
  grid-template-rows: auto auto auto 1fr auto;
}

.offer.star { border: 2px solid var(--encre); }

.label {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  font-weight: 700;
}

.offer h3 { font-size: 1.2rem; font-variation-settings: "wdth" 108; }

.price {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: "wdth" 115;
  font-size: 2.2rem;
  line-height: 1;
}

.price small {
  font-family: var(--body);
  font-weight: 400;
  font-size: .8rem;
  color: var(--muted);
}

.offer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .4rem; font-size: .95rem; align-content: start; }
.offer li { position: relative; padding-left: 1.1rem; }
.offer li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; background: var(--menthe); }

.for { font-size: .87rem; color: var(--muted); border-top: 1px solid var(--brume); padding-top: .6rem; }

.stamp {
  position: absolute;
  top: -.7rem;
  right: .9rem;
  transform: rotate(3deg);
  background: var(--tomate);
  color: #fff;
  font-family: var(--pixel);
  font-size: .62rem;
  padding: .35rem .55rem;
  border-radius: 2px;
}

.aside { color: var(--muted); font-size: .95rem; }

/* Trust */
.trust {
  display: grid;
  gap: 1.5rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.trust div { border-top: 3px solid var(--encre); padding-top: .8rem; display: grid; gap: .3rem; align-content: start; }
.trust p { color: var(--muted); font-size: .95rem; }

/* Form */
.signup { border-bottom: none; }

.lead-form {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  max-width: 760px;
}

.who {
  grid-column: 1 / -1;
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.who legend { font-weight: 700; margin-bottom: .5rem; padding: 0; }

.who label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--sheet);
  border: 1px solid var(--brume);
  padding: .5rem .8rem;
  cursor: pointer;
}

.who label:has(input:checked) { border-color: var(--encre); background: var(--signal); }

.who input { accent-color: var(--encre); }

.field { display: grid; gap: .35rem; font-weight: 700; font-size: .92rem; }

.field input, .field select {
  font: inherit;
  font-weight: 400;
  font-size: 1rem;
  padding: .8rem 1rem;
  border: 1px solid var(--encre);
  background: var(--sheet);
  color: var(--encre);
  border-radius: 0;
  width: 100%;
}

.field input:focus, .field select:focus { outline: none; box-shadow: inset 0 0 0 1px var(--encre); }

.submit { grid-column: 1 / -1; justify-self: start; margin-top: .4rem; }

.mail-line { color: var(--muted); }

/* Footer */
footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem var(--gutter) 3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: .85rem;
  color: var(--muted);
  border-top: 3px solid var(--encre);
}

/* Thank-you page */
.thanks { padding: clamp(3rem, 10vw, 7rem) 0; display: grid; gap: 1.2rem; }
.thanks h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800; font-variation-settings: "wdth" 118; line-height: 1; }
.thanks p { font-size: 1.15rem; max-width: 50ch; }

@media (prefers-reduced-motion: no-preference) {
  .brand-mark .top { animation: hop 2.4s .6s ease-in-out infinite; }
  @keyframes hop { 0%, 70%, 100% { transform: translateY(0); } 80% { transform: translateY(-3px); } }
}

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

/* Programme tracks */
.tracks {
  display: grid;
  gap: 1px;
  background: var(--brume);
  border: 1px solid var(--brume);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.track {
  background: var(--sheet);
  padding: 1.4rem 1.5rem;
  display: grid;
  gap: .45rem;
  align-content: start;
}

.lvl-chip {
  justify-self: start;
  font-size: .66rem;
  background: var(--encre);
  color: var(--signal);
  padding: .2rem .45rem;
}

.track h3 { font-size: 1.2rem; font-variation-settings: "wdth" 110; }
.track .ages { font-weight: 700; color: var(--ciel); font-size: .9rem; }
.track p { font-size: .95rem; }
.track .pre { font-size: .8rem; color: var(--muted); border-top: 1px dashed var(--brume); padding-top: .45rem; }
