/* SPI booklet landing page. Tokens sampled from SPI_A5_Booklet_v41_lighter.pdf. */

@font-face {
  font-family: "Archivo Black";
  src: url("fonts/archivo-black.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #161616;
  --ink-2: #272727;
  --graphite: #424242;
  --bone: #e8e9e3;
  --white: #fff;
  --lime: #d4f224;
  --wk1: #b0d761;
  --wk2: #78ba3d;
  --muted-on-dark: #a8a8a4;

  --display: "Archivo Black", "Arial Black", Arial, sans-serif;
  --text: "Archivo", Arial, Helvetica, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --radius: 14px;
  --fade: clamp(120px, 15vw, 240px);
  --nav-h: 73px;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--nav-h);
  background: var(--ink);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
ul.plain, ol.plain { list-style: none; padding: 0; }
hr { border: 0; }

:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 4px; }

.sprite { position: absolute; }
.wrap { width: 100%; max-width: calc(1440px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.lime { color: var(--lime); }
.upper { text-transform: uppercase; }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  padding: 12px 18px; border-radius: 999px;
  background: var(--lime); color: var(--ink); font-weight: 700;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- Type ---------- */

.h {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .012em;
  line-height: 1;
  text-wrap: balance;
}
.h--xl { font-size: clamp(2.5rem, .9rem + 3.9vw, 4.75rem); }
.h--lg { font-size: clamp(1.75rem, 8.6vw, 3.4rem); line-height: .98; }
@media (min-width: 801px) { .h--lg { font-size: clamp(2.25rem, 4.2vw, 4.5rem); } }
.h--card { font-size: clamp(1rem, .92rem + .25vw, 1.15rem); line-height: 1.06; }
.h--card-lg { font-size: clamp(1.15rem, 1rem + .45vw, 1.5rem); line-height: 1.06; }
.h--name { font-size: clamp(1.5rem, 1.1rem + 1.1vw, 2.25rem); }
.h--proof { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2.25rem); }
.h--modal { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }

.micro {
  font-family: var(--text);
  font-size: .6875rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  margin-bottom: clamp(12px, 1.2vw, 18px);
  font-size: .6875rem; font-weight: 700; line-height: 1.4;
  letter-spacing: .18em; text-transform: uppercase;
}
.eyebrow__tag { padding: 2px 10px; background: var(--lime); color: var(--ink); border-radius: 2px; }

.chip {
  display: inline-block; align-self: flex-start;
  padding: 3px 10px;
  border: 1px solid var(--ink); border-radius: 3px;
  background: var(--lime); color: var(--ink);
  font-size: .625rem; font-weight: 700; line-height: 1.4; letter-spacing: .16em; text-transform: uppercase;
  white-space: nowrap;
}
.card--lime > .chip { background: var(--ink); color: var(--lime); }

.rule { height: 3px; background: var(--lime); }
.rule--short { width: 64px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  border: 1.5px solid transparent; border-radius: 999px;
  font-size: .75rem; font-weight: 700; line-height: 1.2; letter-spacing: .16em;
  text-transform: uppercase; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s;
}
.btn--small { gap: .55em; min-height: 44px; padding: 8px 18px; font-size: .6875rem; }
.btn--lime { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.btn--lime:hover { background: var(--white); border-color: var(--white); }
.btn[disabled] { opacity: .6; cursor: progress; }

.tri { width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent currentColor; }

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

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  border-top: 5px solid var(--lime);
  background: var(--ink); color: var(--white);
}
.nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 32px); min-height: 68px; }
.nav__brand { flex-shrink: 0; display: block; border-radius: 2px; }
.nav__brand img { width: clamp(132px, 16vw, 208px); }
.nav__links {
  display: flex; gap: clamp(16px, 2.2vw, 32px); margin-left: auto;
  position: static; inset: auto; width: auto; height: auto; padding: 0; border: 0;
  overflow: visible; background: none; color: inherit; list-style: none;
}
.nav__links a {
  display: flex; align-items: center; min-height: 44px;
  font-size: .6875rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  background: linear-gradient(var(--lime), var(--lime)) 0 calc(100% - 8px) / 0 2px no-repeat;
  transition: background-size .18s;
}
.nav__links a:hover { background-size: 100% 2px; }
.nav__toggle { display: none; }

@media (max-width: 900px) {
  .nav__links { margin: 0; }
  .nav__links:not(:popover-open) { display: none; }
  .nav__links:popover-open {
    position: fixed; inset: var(--nav-h) 0 auto 0; width: 100%;
    flex-direction: column; gap: 0;
    padding: 4px var(--gutter) 16px;
    background: var(--ink); border-bottom: 3px solid var(--lime);
  }
  .nav__links:popover-open a { min-height: 52px; font-size: .8125rem; border-top: 1px solid var(--graphite); background: none; }
  .nav .btn { margin-left: auto; }
  .nav__toggle {
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
    flex-shrink: 0; width: 44px; height: 44px; padding: 0;
    border: 1.5px solid var(--white); border-radius: 50%; background: none; cursor: pointer;
  }
  .nav__toggle span { width: 16px; height: 2px; background: currentColor; }
}
@media (max-width: 379px) {
  .nav__brand img { width: 112px; }
  .nav .btn { padding-inline: 14px; }
  .nav__free { display: none; }
}

/* ---------- Cover (first and last page) ---------- */

.cover {
  position: relative;
  padding-block: clamp(48px, 8vw, 112px) clamp(32px, 4vw, 56px);
  background: radial-gradient(90% 70% at 50% 0, var(--ink-2), var(--ink) 75%);
  color: var(--white);
}
.cover__grid {
  display: grid; align-items: center; gap: clamp(32px, 5vw, 80px);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}
.cover__copy { display: grid; gap: clamp(20px, 2.2vw, 32px); justify-items: start; }
.cover__copy > .eyebrow { margin-bottom: calc(clamp(20px, 2.2vw, 32px) * -.5); }
.cover__lede { max-width: 50ch; font-size: clamp(1rem, .95rem + .3vw, 1.1875rem); color: #e4e4e0; text-wrap: pretty; }
.logo { display: block; width: 100%; height: auto; }

/* The hero fills the first screen below the sticky nav (whose height includes the lime
   top bar). svh, the height with mobile browser bars showing, so it never jumps on scroll.
   min-height lets it grow when the content needs more room. */
.cover--hero { display: flex; flex-direction: column; min-height: calc(100svh - var(--nav-h)); }
.cover--hero .cover__grid { flex: 1; align-content: center; }

/* Desktop hero, as on the deck cover: the heading's cap line sits level with the top of
   the logo and the baseline of "With" with its bottom. The copy column stretches to the
   logo's height, and text-box trims the line-height space above caps and below baselines. */
@media (min-width: 801px) {
  .cover--hero .cover__grid { align-items: stretch; }
  .cover--hero .cover__copy {
    container-type: inline-size;
    display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  }
  /* Two lines, like the deck, sized so "Take control of" fills the column at most. */
  .cover--hero .h--xl { font-size: min(100cqi / 11, 4.75rem); white-space: nowrap; }
  .cover--hero .h--xl, .cover__with { text-box: trim-both cap alphabetic; }
}
.logo__gray { fill: var(--graphite); }
.logo__lime { fill: var(--lime); }

.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(24px, 4vw, 64px);
  margin-top: clamp(48px, 7vw, 96px); padding-top: 20px;
  border-top: 1px solid #5a5a5a;
}
.stats > div { display: flex; flex-direction: column-reverse; gap: 6px; }
.stats dd { font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem); }
.stats dt { font-size: .625rem; color: #cfcfca; }

.cover--start { padding-block: clamp(56px, 8vw, 120px); }
.cover__mark { width: 100%; aspect-ratio: 171.3 / 111; fill: var(--lime); }

@media (max-width: 800px) {
  .cover__grid { grid-template-columns: minmax(0, 1fr); }
  .cover__logo { order: -1; max-width: 420px; }
  .cover__mark { width: 44%; max-width: 240px; order: -1; }
  .cover__br { display: none; } /* Let the hero heading wrap naturally on small screens. */
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stats > div { flex-direction: row-reverse; align-items: baseline; justify-content: space-between; gap: 16px; }
  .stats dt { text-align: left; }
  .stats dd { flex-shrink: 0; }
}

/* ---------- Page anatomy: lime bar, ink head, fade to bone, folio ---------- */

.page { border-top: 5px solid var(--lime); background: var(--bone); }

.head { padding-block: clamp(32px, 4.5vw, 72px) clamp(20px, 2.5vw, 40px); background: var(--ink); color: var(--white); }
.head__grid {
  display: grid; align-items: start; gap: 28px clamp(32px, 6vw, 96px);
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}
.head__sub { margin-block: 14px 22px; font-size: clamp(1rem, .95rem + .3vw, 1.1875rem); font-weight: 600; }

/* Text always sits on solid ink: the fade only starts below it, which keeps contrast
   safe at every width and keeps the deck's dark-to-bone sweep. */
.fade {
  height: var(--fade);
  background: linear-gradient(var(--ink), #2c2c2b 16%, #464645 30%, #7a7a78 48%, #a9a9a6 62%, #d0d1cc 78%, #e5e6e0 92%, var(--bone));
}

.prose { display: grid; gap: 14px; max-width: 62ch; color: var(--white); padding-top: clamp(0px, 2vw, 34px); }
.prose .rule { max-width: 100%; margin-block: 4px; }
.prose p { text-wrap: pretty; }
.strong { font-weight: 700; }
.prose .strong { font-size: clamp(1rem, .95rem + .3vw, 1.1875rem); line-height: 1.4; }
.prose .shout { font-size: clamp(1.25rem, 1rem + 1vw, 1.875rem); }

.body { position: relative; margin-top: calc(var(--fade) * -.42); padding-bottom: clamp(24px, 3vw, 40px); }
.body--flat { margin-top: 0; }

.folio {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: clamp(32px, 4vw, 56px);
  font-size: .6875rem; font-weight: 700; letter-spacing: .08em;
}
.folio svg { width: 28px; height: 18px; fill: var(--lime); }

@media (max-width: 800px) {
  .head__grid { grid-template-columns: minmax(0, 1fr); }
  .prose { padding-top: 0; }
}

/* ---------- Grids and cards ---------- */

.grid { display: grid; gap: clamp(8px, .8vw, 12px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) {
  .grid--6, .grid--4, .grid--5, .grid--method { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--5 > :last-child { grid-column: 1 / -1; }
}
@media (min-width: 860px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1000px) { .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1140px) {
  .grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .grid--5 > :last-child { grid-column: auto; }
  .grid--method { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, .82fr); }
}
@media (min-width: 1280px) {
  .grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid--6 .h--card { font-size: clamp(.95rem, 1.25vw, 1.2rem); }
}
/* One column: the deck's tall empty cards just become scrolling, so let them hug their text. */
@media (max-width: 559px) {
  .card--tall, .card--span, .card--principle, .card--coach { min-height: 0; }
  .card__foot, .card--principle > :last-child { padding-top: 12px; }
  .card--span::after { margin-top: 12px; }
  .week { min-height: 116px; gap: 16px; }
}

.card {
  display: flex; flex-direction: column; gap: 10px;
  min-width: 0; padding: clamp(16px, 1.4vw, 22px);
  background: var(--white); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: var(--radius);
  font-size: .9375rem; line-height: 1.45;
}
.card--lime { background: var(--lime); }
.card--outline { border-color: var(--lime); }

.card--tall { min-height: clamp(220px, 22vw, 320px); }
.card__foot { display: grid; gap: 8px; margin-top: auto; padding-top: 24px; }
.card__foot p { font-size: .875rem; }

.card--span { min-height: clamp(220px, 21vw, 300px); }
.card--span::after { content: ""; height: 4px; margin-top: auto; border-radius: 2px; background: var(--ink); }

.card--clip { padding: 0; overflow: hidden; }
.card--clip img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card__inner { display: flex; flex-direction: column; gap: 8px; padding: clamp(14px, 1.2vw, 20px); }

.card--principle { min-height: clamp(220px, 21vw, 320px); }
.card--principle > :last-child { margin-top: auto; padding-top: 24px; font-size: .875rem; }

/* 10,000+ band */
.hours {
  display: grid; align-items: center; gap: 12px clamp(32px, 6vw, 96px);
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  padding-top: clamp(20px, 3vw, 40px); border-top: 1px solid #77776f;
}
.hours__num { font-size: clamp(3.25rem, 17vw, 9rem); line-height: .95; letter-spacing: 0; white-space: nowrap; }
@media (min-width: 801px) { .hours__num { font-size: clamp(3.25rem, 7.8vw, 9rem); } }
.hours__label { font-size: clamp(1.5rem, 1rem + 2vw, 3rem); }
@media (max-width: 800px) { .hours { grid-template-columns: minmax(0, 1fr); } }

/* Teach / Train / Test panels */
.panel {
  margin-top: auto; border-radius: 10px;
  background: linear-gradient(100deg, var(--ink), #363636); color: var(--white);
}
.panel--clip {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  min-height: 112px; padding: 14px; text-decoration: none;
  transition: background-color .18s;
}
.panel__play {
  position: absolute; left: 50%; top: 42%; translate: -50% -50%;
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1.5px solid currentColor; border-radius: 50%;
  transition: background-color .18s, color .18s;
}
.panel__play .tri { margin-left: 2px; }
a.panel--clip:hover .panel__play { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.panel__track { height: 1.5px; background: linear-gradient(90deg, var(--lime) 45%, #666 45%); }
.panel--clip .micro { font-size: .5625rem; color: #d8d8d3; }

.panel--score { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 112px; padding: 14px clamp(20px, 3vw, 40px); }
.panel--score > div { display: flex; flex-direction: column-reverse; align-items: center; gap: 4px; }
.panel--score > div:first-child { position: relative; }
.panel--score dd { font-size: clamp(2.25rem, 2rem + 1vw, 3rem); }
.panel--score dt { font-size: .5625rem; color: #d8d8d3; }
.panel--score::before {
  content: ""; order: 1; flex: 1 1 auto; max-width: 56px; height: 2px; background: #6c6c6c;
}
.panel--score > div:last-child { order: 2; }

.bars { display: flex; align-items: flex-end; gap: 6px; height: 112px; margin-top: auto; }
.bars__bar { position: relative; flex: 1; height: var(--h); background: var(--c); border-radius: 4px 4px 0 0; transform-origin: bottom; }
.bars__bar .micro { position: absolute; left: 2px; bottom: calc(100% + 3px); font-size: .5rem; letter-spacing: .12em; white-space: nowrap; }

/* Four-week arc */
.arc { gap: 14px; padding: clamp(16px, 1.6vw, 24px); }
.arc__weeks { gap: clamp(6px, .7vw, 10px); }
.week {
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  min-height: clamp(150px, 15vw, 230px); padding: clamp(14px, 1.2vw, 18px);
  border-radius: 10px; background: var(--c); color: var(--ink);
}
.week .micro { font-size: .5625rem; }
.week p { font-size: .875rem; }
.week h4 { margin-bottom: 4px; }
.week--dark { color: var(--white); }
.arc__tests-title { margin-top: 6px; }
.arc__tests { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(3px, .7vw, 10px); }
.arc__tests li { padding: 6px 2px; border: 1.5px solid var(--ink); border-radius: 8px; text-align: center; font-size: .625rem; letter-spacing: .08em; }

.proof {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 48px;
  margin-top: clamp(8px, .8vw, 12px); padding: clamp(20px, 2.4vw, 32px) clamp(20px, 3vw, 48px);
  border-radius: var(--radius); background: linear-gradient(100deg, var(--ink) 45%, #3a3a3a); color: var(--white);
}
.proof > div:first-child { display: grid; gap: 6px; flex: 1 1 320px; }
.proof .micro { font-size: .625rem; }
.proof__nums { display: flex; gap: clamp(24px, 3vw, 44px); padding-inline: 12px; }
.proof__nums > div { position: relative; display: grid; justify-items: center; gap: 6px; }
.proof__nums .h { font-size: clamp(4rem, 3rem + 4vw, 6.5rem); line-height: .9; }
.proof__before .h { color: #8c8c88; }
.proof__nums .micro { color: #cfcfca; }
.proof__circle {
  position: absolute; left: 50%; top: 37%; translate: -50% -50%;
  width: 170%; aspect-ratio: 1; max-width: none;
  fill: none; stroke: var(--lime); stroke-width: 4.6; stroke-linecap: round; stroke-linejoin: round;
  rotate: -13deg;
  pointer-events: none;
}
.proof__circle-finish { stroke-width: 2.2; opacity: .7; }

/* What / Why / How / When */
.card--photo { gap: 0; padding: 0; overflow: hidden; border-color: var(--lime); }
.card--photo__title { padding: 14px clamp(14px, 1.2vw, 20px) 12px; background: var(--ink); color: var(--lime); font-size: clamp(1.375rem, 1.1rem + .9vw, 2rem); }
.card--photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }

/* Coaches */
.card--coach { gap: 6px; }
.card--coach .h--name { margin-top: clamp(20px, 3vw, 44px); }

/* In the water */
.water { display: grid; gap: clamp(8px, .8vw, 12px); grid-template-columns: minmax(0, 1fr); }
.water figure { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--graphite); }
.water img { width: 100%; height: 100%; object-fit: cover; }
.water figcaption { position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--white); font-size: .625rem; }
@media (min-width: 720px) {
  .water { grid-template-columns: 532fr 644fr 946fr; }
  .water figure { height: clamp(400px, 44vw, 660px); }
}

/* Free lesson */
.lesson { display: grid; gap: clamp(12px, 1.6vw, 24px); grid-template-columns: minmax(0, 1fr); }
.lesson__player { overflow: hidden; border-radius: 10px; background: var(--ink); align-self: start; }
.lesson__player video { width: 100%; aspect-ratio: 16 / 9; }
.lesson__chapters { min-width: 0; display: grid; gap: 8px; align-content: start; }
.lesson__chapters li + li { border-top: 1px solid #cfd0cb; }
.lesson__chapters button {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  width: 100%; min-height: 48px; padding: 8px 6px; border: 0; border-radius: 6px;
  background: none; text-align: left; cursor: pointer; transition: background-color .15s;
}
.lesson__chapters button:hover { background: var(--bone); }
.lesson__chapters button[aria-current="true"] { background: var(--lime); }
.lesson__chapters button[aria-current="true"] .chip { background: var(--ink); color: var(--lime); }
.lesson__name { font-weight: 700; font-size: .9375rem; line-height: 1.25; }
.lesson__chapters time { font-size: .75rem; font-variant-numeric: tabular-nums; font-weight: 600; }
@media (min-width: 900px) { .lesson { grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); } }

/* FAQ */
.faq { display: grid; gap: clamp(8px, .8vw, 12px); max-width: 980px; }
.faq details { gap: 0; padding: 0; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 16px clamp(16px, 1.6vw, 24px);
  list-style: none; cursor: pointer; border-radius: var(--radius); text-wrap: pretty;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 16px; height: 16px;
  background: linear-gradient(currentColor, currentColor) center / 100% 3px no-repeat, linear-gradient(currentColor, currentColor) center / 3px 100% no-repeat;
  transition: rotate .18s;
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details > p { max-width: 66ch; padding: 0 clamp(16px, 1.6vw, 24px) clamp(16px, 1.6vw, 24px); font-size: 1rem; }

/* ---------- Registration ---------- */

.reg { display: grid; gap: 10px; width: 100%; max-width: 560px; }
.reg label.micro { color: #e4e4e0; }
.reg__row { display: flex; gap: 8px; }
.reg input[type="email"] {
  flex: 1; min-width: 0; min-height: 52px; padding: 12px 22px;
  border: 1.5px solid #8a8a86; border-radius: 999px;
  background: #222; color: var(--white); font-size: 1rem; /* 16px stops iOS zooming on focus */
}
.reg input[type="email"]::placeholder { color: var(--muted-on-dark); opacity: 1; }
.reg input[type="email"]:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; border-color: var(--lime); }
.reg input[aria-invalid="true"] { border-color: #ff9b8f; }
.reg .btn { min-height: 52px; }
.reg__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.reg__msg { font-size: .875rem; color: #e4e4e0; }
.reg__msg:empty { display: none; }
.reg__msg.is-error { color: #ffb1a8; }
.reg__fine { font-size: .8125rem; color: var(--muted-on-dark); }
.reg__fine a { color: var(--lime); }
.reg__success { display: grid; gap: 6px; padding: 18px 22px; border: 1.5px solid var(--lime); border-radius: var(--radius); }
.reg__success .h { font-size: 1.5rem; color: var(--lime); }
.reg.is-done :is(label, .reg__row, .reg__fine, .reg__msg) { display: none; }
/* Stack when the form's column is too narrow for the field and button side by side. */
@media (max-width: 479px), (min-width: 801px) and (max-width: 1000px) {
  .reg__row { flex-direction: column; }
}

.modal {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  margin: auto; padding: clamp(24px, 4vw, 40px);
  overflow: auto;
  border: 0; border-top: 5px solid var(--lime); border-radius: var(--radius);
  background: var(--ink); color: var(--white);
}
.modal::backdrop { background: rgb(0 0 0 / .72); }
.modal__close {
  position: absolute; right: 12px; top: 10px; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: none; font-size: 1.75rem; line-height: 1; cursor: pointer;
}
.modal__close:hover { color: var(--lime); }
.modal__blurb { margin-block: 14px 22px; color: #e4e4e0; }
.modal--lesson { width: min(1180px, calc(100vw - 32px)); }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--graphite); background: var(--ink); color: var(--white); padding-block: clamp(32px, 4vw, 56px) 28px; }
.site-footer__grid { display: grid; gap: 32px; grid-template-columns: 2fr 1fr 1fr; }
.site-footer img { width: 208px; margin-bottom: 14px; }
.site-footer .micro { color: #cfcfca; }
.site-footer h2 { margin-bottom: 12px; }
.site-footer ul { display: grid; gap: 4px; font-size: .9375rem; }
.site-footer li a { display: inline-block; padding-block: 6px; text-decoration: none; }
.site-footer li:not(:has(a)) { padding-block: 6px; }
.site-footer li a:hover { color: var(--lime); }
.site-footer__legal { grid-column: 1 / -1; font-size: .8125rem; color: var(--muted-on-dark); }
@media (max-width: 640px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__grid > :first-child { grid-column: 1 / -1; }
}

/* ---------- Motion. Everything is fully visible by default; animation is an extra. ---------- */

@media (prefers-reduced-motion: no-preference) {
  .logo path { animation: logo-in .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 70ms + 100ms); }
  @keyframes logo-in { from { opacity: 0; translate: -28px 0; } }

  .is-in .bars__bar, .bars.is-in .bars__bar { animation: bar-up .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 90ms); }
  @keyframes bar-up { from { transform: scaleY(0); } }

  .proof.is-in .proof__circle path { stroke-dasharray: 1; animation: draw 1s .2s ease-out both; }
  .proof.is-in .proof__circle .proof__circle-finish { animation-duration: .2s; animation-delay: 1.15s; }
  @keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
.nowrap { white-space: nowrap; }
