@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500..800&family=Figtree:wght@400;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* Hallmark · macrostructure: Marquee Hero · H1 knobs: size=xxl, alignment=left-bias, underlay=rule-below
 * theme: studied-DNA (source: url smarttrading-club.com — sitio propio del usuario)
 * studied-palette: gradiente de marca linear-gradient(#0027A4 → #00CB8B) del header real · azul botones #0F59D2 · Figtree
 * paper: oklch(21% 0.07 262) azul profundo (hero original: foto azul) · accent: oklch(74% 0.155 162) verde #00CB8B
 * display: Bricolage Grotesque · body: Figtree · mono: JetBrains Mono · axes: dark / grotesk-sans / chromatic-green (~162°)
 * genre: atmospheric · nav: N5 floating pill · footer: Ft5 statement · enrichment: none (CSS canvas blooms + grid)
 * Hallmark · pre-emit critique: P4 H5 E4 S4 R4 V4
 */

:root {
  /* ---- color — paleta real de smarttrading-club.com ---- */
  --color-paper:      oklch(21% 0.07 262);    /* azul profundo, NO negro */
  --color-paper-2:    oklch(24.5% 0.08 262);
  --color-paper-3:    oklch(29% 0.09 262);
  --color-ink:        oklch(96% 0.008 250);
  --color-ink-2:      oklch(84% 0.02 255);
  --color-muted:      oklch(68% 0.03 255);
  --color-rule:       oklch(36% 0.06 262);
  --color-rule-2:     oklch(30% 0.05 262);
  --color-accent:     oklch(74% 0.155 162);   /* verde marca #00CB8B */
  --color-accent-ink: oklch(18% 0.06 262);    /* texto oscuro azulado sobre verde */
  --color-focus:      oklch(78% 0.19 162);
  --color-blue:       oklch(35% 0.20 265);    /* azul marca #0027A4 */
  --color-blue-bright: oklch(51% 0.21 262);   /* azul botones #0F59D2 */
  --color-blue-soft:  oklch(28% 0.12 264);
  --color-danger:     oklch(68% 0.16 25);

  /* gradiente de marca — idéntico al header del sitio original */
  --grad-brand: linear-gradient(135deg, var(--color-blue) 0%, var(--color-accent) 100%);

  /* ---- type ---- */
  --font-display: "Bricolage Grotesque", "Figtree", sans-serif;
  --font-body:    "Figtree", "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "JetBrains Mono", "Cascadia Code", monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.125rem;
  --text-lg:   1.375rem;
  --text-xl:   1.75rem;
  --text-2xl:  2.25rem;
  --text-3xl:  clamp(1.9rem, 1.2rem + 2.6vw, 3rem);
  --text-4xl:  clamp(2.3rem, 1.4rem + 3.4vw, 4rem);
  --text-display-s: clamp(2.6rem, 1.6rem + 4.4vw, 5rem);
  --text-display:   clamp(3rem, 1.6rem + 7vw, 7.25rem);

  /* ---- space (4pt) ---- */
  --space-2xs: 0.25rem;
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 7rem;

  /* ---- motion ---- */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:     cubic-bezier(0.64, 0, 0.78, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 160ms;
  --dur-med:  320ms;
  --dur-slow: 560ms;

  /* ---- misc ---- */
  --rule-thick: 3px;
  --rule-hair:  1px;
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-pill: 999px;
  --measure: 62ch;
}

/* Hallmark · ver stamp completo en tokens.css — este archivo solo consume tokens por nombre. */



/* ============ base ============ */

*, *::before, *::after { box-sizing: border-box; }

html, body { overflow-x: clip; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* canvas atmosférico: azul profundo dominante (como el hero fotográfico original)
   + bloom verde de marca + grilla sutil (eco del fondo original con grilla) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(54rem 42rem at 8% -10%, oklch(40% 0.22 265 / 0.72), transparent 66%),
    radial-gradient(52rem 42rem at 102% 112%, oklch(74% 0.155 162 / 0.34), transparent 66%),
    radial-gradient(46rem 40rem at 96% 4%, oklch(58% 0.15 205 / 0.20), transparent 68%),
    radial-gradient(50rem 44rem at 0% 78%, oklch(52% 0.16 190 / 0.16), transparent 70%),
    linear-gradient(oklch(96% 0.008 250 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, oklch(96% 0.008 250 / 0.035) 1px, transparent 1px);
  background-size: auto, auto, auto, auto, 56px 56px, 56px 56px;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-md);
  overflow-wrap: anywhere;
  min-width: 0;
}

p { margin: 0 0 var(--space-md); }

a { color: var(--color-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--color-accent); }

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--color-blue-bright); color: var(--color-ink); }

.wrap {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

section { padding-block: var(--space-3xl); scroll-margin-top: 7rem; }

.section-head { margin-bottom: var(--space-xl); }
.section-head h2 { font-size: var(--text-3xl); max-width: 24ch; }
.section-head h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  border-radius: 2px;
  background: var(--grad-brand);
  margin-top: var(--space-sm);
}
.section-head p.lede { color: var(--color-ink-2); max-width: var(--measure); font-size: var(--text-md); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ============ nav — N5 floating pill ============ */

.nav {
  position: fixed;
  top: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: min(94vw, 60rem);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-xs) var(--space-md);
  border: var(--rule-hair) solid oklch(96% 0.008 250 / 0.16);
  border-radius: var(--radius-pill);
  background: oklch(24.5% 0.08 262 / 0.78);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
}

.nav__brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.nav__brand img { height: 22px; width: auto; display: block; }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-left: auto;
  list-style: none;
  padding: 0; margin-block: 0;
}
.nav__links a {
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink-2);
  white-space: nowrap;
  padding: var(--space-xs) 0;
}
.nav__links a:hover { color: var(--color-accent); }

.lang-toggle {
  display: inline-flex;
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-pill);
  overflow: hidden;
  flex-shrink: 0;
}
.lang-toggle button {
  appearance: none; border: 0; cursor: pointer;
  background: transparent;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  padding: var(--space-2xs) var(--space-sm);
  min-height: 32px;
}
.lang-toggle button[aria-pressed="true"] {
  background: var(--color-accent);
  color: var(--color-accent-ink);
}
.lang-toggle button:focus-visible { outline-offset: -2px; }

.nav__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--text-sm);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-pill);
  min-height: 36px;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.nav__cta:hover {
  color: var(--color-accent-ink);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px oklch(74% 0.155 162 / 0.35);
}
.nav__cta:active { transform: translateY(0); }

.nav__burger {
  display: none;
  appearance: none; background: transparent; border: 0; cursor: pointer;
  color: var(--color-ink);
  width: 44px; height: 44px;
  margin-left: auto;
  border-radius: var(--radius-pill);
}
.nav__burger svg { display: block; margin-inline: auto; }

/* ============ hero — H1 marquee + escena 3D ============ */

.hero {
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding-block: var(--space-3xl) var(--space-2xl);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-2xl);
  align-items: center;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-accent);
  letter-spacing: 0.14em;
  margin-bottom: var(--space-lg);
}

.hero h1 {
  font-size: var(--text-display-s);
  font-weight: 800;
  letter-spacing: -0.028em;
  max-width: 13ch;
  margin-bottom: var(--space-lg);
}
.hero h1 .accent { color: var(--color-accent); }

.hero__sub {
  color: var(--color-ink-2);
  font-size: var(--text-md);
  max-width: 52ch;
  margin-bottom: var(--space-2xl);
}

.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-muted);
  text-decoration: none;
}
.hero__scroll:hover { color: var(--color-accent); }
.hero__scroll svg { transition: transform var(--dur-med) var(--ease-out); }
.hero__scroll:hover svg { transform: translateY(3px); }

/* ---- video 3D del hero (generado con IA: gráfica + activos orbitando + logo) ---- */

.hero__viz { display: flex; justify-content: center; min-width: 0; }

.hero__video {
  width: min(560px, 92vw);
  height: auto;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  border: var(--rule-hair) solid oklch(96% 0.008 250 / 0.14);
  box-shadow: 0 24px 60px oklch(14% 0.05 264 / 0.55);
  background: oklch(17% 0.05 264);
  object-fit: cover;
}

/* regla gruesa con el gradiente de marca (header original) */
.rule-thick {
  border: 0;
  height: var(--rule-thick);
  margin: 0;
  background: var(--grad-brand);
}

/* ============ about ============ */

.about .prose {
  font-size: var(--text-lg);
  line-height: 1.55;
  max-width: var(--measure);
  color: var(--color-ink);
}
.about .prose strong { color: var(--color-accent); font-weight: 600; }
.about .prose .quiet { color: var(--color-muted); font-size: var(--text-base); }

/* ============ cursos — grid de cards ============ */

.courses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.course {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  border: var(--rule-hair) solid var(--color-rule);
  border-top: var(--rule-thick) solid var(--color-blue-bright);
  border-radius: var(--radius-md);
  background: var(--color-paper-2);
  padding: var(--space-lg);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
}
.course:hover {
  transform: translateY(-3px);
  border-color: oklch(74% 0.155 162 / 0.45);
  box-shadow: 0 14px 38px oklch(35% 0.20 265 / 0.45);
}
.course--full { border-top-color: var(--color-accent); background: linear-gradient(135deg, var(--color-blue-soft), var(--color-paper-2) 72%); }

.course__icon3d {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: var(--rule-hair) solid var(--color-rule);
  margin-bottom: var(--space-2xs);
  background: oklch(17% 0.05 264);
}

.course__tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--color-accent);
}
.course h3 { font-size: var(--text-lg); margin: 0; }
.course ul {
  margin: 0; padding: 0;
  list-style: none;
  color: var(--color-ink-2);
  font-size: var(--text-sm);
  display: grid;
  gap: var(--space-2xs);
}
.course ul li { padding-left: 1.1em; position: relative; }
.course ul li::before {
  content: "—";
  position: absolute; left: 0;
  color: var(--color-blue-bright);
}
.course__cta {
  margin-top: auto;
  padding-top: var(--space-sm);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 0;
}
.course__cta:hover { text-decoration: underline; }

.courses__note {
  margin-top: var(--space-lg);
  color: var(--color-muted);
  font-size: var(--text-sm);
  max-width: var(--measure);
}

/* ============ consultorías — formatos + banda de marca ============ */

.formats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-xl) var(--space-2xl);
  margin-bottom: var(--space-2xl);
}
.format { border-left: var(--rule-thick) solid var(--color-blue-bright); padding-left: var(--space-md); }
.format h3 { font-size: var(--text-md); margin-bottom: var(--space-xs); }
.format p { color: var(--color-ink-2); font-size: var(--text-sm); margin: 0; }
.format .format__no { display: block; margin-top: var(--space-xs); color: var(--color-muted); font-size: var(--text-xs); }

/* banda con el gradiente exacto del header original (azul a la izq → verde a la der);
   el texto vive sobre el lado azul */
.band {
  background: linear-gradient(115deg, var(--color-blue) 0%, var(--color-blue) 34%, var(--color-accent) 100%);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}
.band h3 {
  font-size: var(--text-xl);
  color: oklch(98% 0.005 250);
  margin: 0;
  max-width: 24ch;
}
.band__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.chip.chip--white {
  background: oklch(98% 0.005 250);
  border-color: transparent;
  color: var(--color-blue);
  font-weight: 700;
}
.chip.chip--white:hover { color: var(--color-blue-bright); transform: translateY(-1px); }

/* ============ transparencia — "lo que NO hacemos" ============ */

.nolist {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
  max-width: 58rem;
}
.nolist li {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  border-left: var(--rule-thick) solid var(--color-rule);
  padding: var(--space-sm) 0 var(--space-sm) var(--space-md);
}
.nolist li strong { display: block; font-family: var(--font-display); font-size: var(--text-md); }
.nolist li p { color: var(--color-ink-2); font-size: var(--text-sm); margin: var(--space-2xs) 0 0; }
.nolist .no-x {
  flex-shrink: 0;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: var(--radius-pill);
  background: oklch(68% 0.16 25 / 0.16);
  color: var(--color-danger);
  font-weight: 700;
  margin-top: 2px;
}

/* ============ FAQ ============ */

.faq { max-width: 52rem; }

.faq details { border-bottom: var(--rule-hair) solid var(--color-rule); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-md);
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { flex-shrink: 0; color: var(--color-accent); transition: transform var(--dur-med) var(--ease-out); }
.faq details[open] summary .chev { transform: rotate(45deg); }
.faq .answer { color: var(--color-ink-2); max-width: var(--measure); padding-bottom: var(--space-lg); margin: 0; }

/* ============ comunidad ============ */

.community__grid { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-pill);
  padding: var(--space-sm) var(--space-lg);
  min-height: 44px;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-ink);
  transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.chip:hover { border-color: var(--color-accent); color: var(--color-accent); transform: translateY(-1px); }
.chip--primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-accent-ink);
  font-weight: 700;
}
.chip--primary:hover { color: var(--color-accent-ink); box-shadow: 0 6px 22px oklch(74% 0.155 162 / 0.35); }

.community__note { color: var(--color-muted); font-size: var(--text-sm); margin-top: var(--space-lg); max-width: var(--measure); }

/* ============ contacto ============ */

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-2xl);
  align-items: start;
}

.contact__info p { color: var(--color-ink-2); max-width: 40ch; }
.contact__info .mail {
  font-family: var(--font-mono);
  font-size: var(--text-md);
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid oklch(74% 0.155 162 / 0.4);
}
.contact__info .mail:hover { border-bottom-color: var(--color-accent); }

.form { display: grid; gap: var(--space-md); }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }

.field { display: grid; gap: var(--space-2xs); }
.field label { font-size: var(--text-sm); font-weight: 600; color: var(--color-ink-2); }
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--color-paper-2);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-sm);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  padding: var(--space-sm) var(--space-md);
  min-height: 44px;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--color-muted); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline-offset: 0; border-color: var(--color-focus); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--color-danger); }
.field .err { color: var(--color-danger); font-size: var(--text-xs); min-height: 1em; }

.form__submit {
  justify-self: start;
  appearance: none; border: 0; cursor: pointer;
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-base);
  padding: var(--space-sm) var(--space-xl);
  border-radius: var(--radius-pill);
  min-height: 48px;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.form__submit:hover { transform: translateY(-1px); box-shadow: 0 6px 22px oklch(74% 0.155 162 / 0.35); }
.form__submit:active { transform: translateY(1px); }
.form__submit[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.form__privacy { color: var(--color-muted); font-size: var(--text-xs); max-width: var(--measure); }
.form__status { font-size: var(--text-sm); color: var(--color-accent); min-height: 1.4em; margin: 0; }

/* ============ aviso legal — colofón denso ============ */

.legal {
  background: var(--color-paper-2);
  border-block: var(--rule-hair) solid var(--color-rule);
}
.legal h2 { font-size: var(--text-xl); }
.legal .colophon {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 1.75;
  color: var(--color-muted);
  columns: 2;
  column-gap: var(--space-2xl);
  max-width: 70rem;
}
.legal .colophon p { break-inside: avoid; margin-bottom: var(--space-md); }
.legal .colophon strong { color: var(--color-ink-2); }

/* ============ footer — Ft5 statement ============ */

.footer {
  padding-block: var(--space-3xl) var(--space-xl);
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60rem 30rem at 8% 120%, oklch(35% 0.20 265 / 0.45), transparent 70%),
    radial-gradient(50rem 28rem at 100% 120%, oklch(74% 0.155 162 / 0.28), transparent 70%);
}

.footer__statement {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-4xl);
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 20ch;
  margin-bottom: var(--space-2xl);
  overflow-wrap: anywhere;
}
.footer__statement .accent { color: var(--color-accent); }

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md) var(--space-xl);
  border-top: var(--rule-hair) solid var(--color-rule);
  padding-top: var(--space-lg);
  color: var(--color-muted);
  font-size: var(--text-sm);
}
.footer__meta img { height: 18px; width: auto; opacity: 0.85; }
.footer__meta a { color: var(--color-muted); text-decoration: none; }
.footer__meta a:hover { color: var(--color-accent); }
.footer__disclaimer-line { flex-basis: 100%; font-size: var(--text-xs); color: var(--color-muted); }

/* ============ reveal ============ */

.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}

/* ============ responsive ============ */

@media (max-width: 60rem) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .hero__viz { order: 2; }
  .hero__video { width: min(440px, 86vw); }

  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav.is-open { border-radius: var(--radius-md); flex-wrap: wrap; }
  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
    flex-basis: 100%;
    padding-block: var(--space-sm);
  }
  .nav.is-open .nav__links a { min-height: 44px; display: flex; align-items: center; }
  .nav.is-open .nav__cta { display: inline-flex; margin-bottom: var(--space-sm); }

  .courses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .formats { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .contact__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .nolist { grid-template-columns: minmax(0, 1fr); }
  .legal .colophon { columns: 1; }
}

@media (max-width: 40rem) {
  section { padding-block: var(--space-2xl); }
  .hero h1 { font-size: var(--text-4xl); }
  .footer__statement { font-size: var(--text-3xl); }
  .courses { grid-template-columns: minmax(0, 1fr); }
  .form .row { grid-template-columns: minmax(0, 1fr); }
  .form__submit { justify-self: stretch; width: 100%; }
  .band { padding: var(--space-lg); }
  .band__actions { width: 100%; }
  .band__actions .chip { flex: 1; justify-content: center; }
}

/* ============ reduced motion ============ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .reveal.is-in { transition: opacity 140ms linear; }
  .course, .chip, .nav__cta, .form__submit, .hero__scroll svg, .faq summary .chev {
    transition: none;
  }
}
