/* =========================================================
   Innovation Arena: landing page
   Palette drawn from adire (Yoruba indigo-dyed cloth).
   ========================================================= */

:root {
  --indigo-950: #0A0F33;
  --indigo-900: #0E1440;
  --indigo-700: #1E2A78;
  --indigo-500: #4152C4;
  --indigo-300: #9AA5E6;
  --indigo-200: #C9CFF0;
  --indigo-100: #E1E5F7;
  --indigo-50:  #EEF0FA;
  --cotton:     #F7F8FC;
  --white:      #FFFFFF;
  --ink:        #14183A;
  --muted:      #4D547A;
  --marigold:   #F6B419;
  --marigold-200: #FCE3A6;
  --kola:       #2E9E6B;
  --error:      #B3261E;

  --font-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Type scale (perfect fourth, fluid at the top) */
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  --step-3: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
  --step-4: clamp(3rem, 1.9rem + 4.6vw, 5.5rem);

  --wrap: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 3rem + 5vw, 7.5rem);

  --radius-s: 10px;
  --radius-m: 18px;
  --arch: 999px 999px 18px 18px;

  --focus: 0 0 0 3px var(--cotton), 0 0 0 6px var(--indigo-500);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--cotton);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--indigo-700); color: var(--white);
  padding: .6rem 1rem; border-radius: var(--radius-s); text-decoration: none;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Adire patterns ---------- */
.pattern-rings {
  background-color: var(--indigo-700);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%239AA5E6' stroke-width='2' opacity='.55'%3E%3Ccircle cx='28' cy='28' r='22'/%3E%3Ccircle cx='28' cy='28' r='14'/%3E%3Ccircle cx='28' cy='28' r='6'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 56px 56px;
}
.pattern-dots {
  background-color: var(--indigo-700);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Ccircle cx='5' cy='5' r='2.6' fill='%239AA5E6' opacity='.6'/%3E%3Ccircle cx='16' cy='16' r='2.6' fill='%239AA5E6' opacity='.6'/%3E%3C/svg%3E");
  background-size: 22px 22px;
}
.pattern-zigzag {
  background-color: var(--indigo-700);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20' viewBox='0 0 40 20'%3E%3Cpath d='M0 15 L10 5 L20 15 L30 5 L40 15' fill='none' stroke='%239AA5E6' stroke-width='2.2' opacity='.6'/%3E%3C/svg%3E");
  background-size: 40px 20px;
}
.pattern-stripes {
  background-color: var(--indigo-700);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%239AA5E6' stroke-width='2' opacity='.55'%3E%3Ccircle cx='60' cy='60' r='44'/%3E%3Ccircle cx='60' cy='60' r='30'/%3E%3Ccircle cx='60' cy='60' r='16'/%3E%3C/g%3E%3Cg stroke='%239AA5E6' stroke-width='2' opacity='.4'%3E%3Cpath d='M0 4h120M0 116h120'/%3E%3C/g%3E%3Ccircle cx='60' cy='60' r='5' fill='%23F6B419'/%3E%3C/svg%3E");
  background-size: 120px 120px;
}
.pattern-rings-dark {
  background-color: var(--indigo-900);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%234152C4' stroke-width='1.5' opacity='.35'%3E%3Ccircle cx='48' cy='48' r='40'/%3E%3Ccircle cx='48' cy='48' r='26'/%3E%3Ccircle cx='48' cy='48' r='12'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 96px 96px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: .85rem 1.6rem;
  border: 2px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--marigold); color: var(--indigo-950); }
.btn--primary:hover { background: #FFC53D; }
.btn--ghost { border-color: var(--indigo-700); color: var(--indigo-700); }
.btn--ghost:hover { background: var(--indigo-700); color: var(--white); }
.btn--dark { background: var(--indigo-700); color: var(--white); }
.btn--dark:hover { background: var(--indigo-900); }
.btn--sm { min-height: 44px; padding: .55rem 1.2rem; font-size: .95rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 248, 252, .95);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--indigo-100); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--indigo-700); }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__mark path { fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; }
.brand__mark circle { fill: var(--marigold); }
.brand__name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.6rem;
  letter-spacing: .01em; line-height: 1;
}
.brand--light { color: var(--white); }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav ul { display: flex; gap: 1.6rem; }
.site-nav ul a {
  text-decoration: none; font-weight: 700; font-size: .98rem; color: var(--ink);
  padding-block: .4rem; background: linear-gradient(var(--marigold), var(--marigold)) 0 100% / 0 3px no-repeat;
  transition: background-size .25s;
}
.site-nav ul a:hover { background-size: 100% 3px; }

.nav-toggle {
  display: none; width: 48px; height: 48px; border: 0; border-radius: 12px;
  background: transparent; cursor: pointer; position: relative;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  position: absolute; left: 12px; width: 24px; height: 2.5px; border-radius: 2px;
  background: var(--indigo-700); content: ""; transition: transform .25s, top .25s, opacity .2s;
}
.nav-toggle__bars { top: 23px; }
.nav-toggle__bars::before { left: 0; top: -8px; }
.nav-toggle__bars::after { left: 0; top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2rem, 1.5rem + 2.5vw, 3.75rem) clamp(3.5rem, 3rem + 4vw, 6rem); }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.hero__kicker { font-weight: 700; color: var(--indigo-500); margin-bottom: 1rem; }
.hero__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: var(--step-4); line-height: .9; letter-spacing: -.005em;
  color: var(--indigo-700); text-wrap: balance;
}
.hero__lede { margin-top: 1.6rem; font-size: var(--step-1); line-height: 1.55; color: var(--muted); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero__note { margin-top: 1.4rem; font-size: var(--step--1); color: var(--muted); }

/* ---------- Day dial ---------- */
.dial { width: 100%; max-width: 500px; justify-self: center; }
.dial__stage { position: relative; aspect-ratio: 1; }
.dial__svg { width: 100%; height: 100%; overflow: visible; }
.dial__seg {
  fill: none; stroke-width: 34; cursor: pointer;
  transition: stroke-width .25s ease, opacity .25s ease;
}
.dial__seg:hover { stroke-width: 40; }
.dial__seg.is-active { stroke-width: 50; }
.dial__seg:focus { outline: none; }
.dial__seg:focus-visible { stroke-width: 50; filter: drop-shadow(0 0 0 var(--indigo-500)) drop-shadow(0 0 4px rgba(65, 82, 196, .9)); }
.dial__seg--tutor { stroke: var(--marigold); }
.dial__seg--arena { stroke: var(--indigo-700); }
.dial__seg--guide { stroke: var(--indigo-300); }
.dial__seg--move  { stroke: var(--kola); }
.dial__seg--rest  { stroke: var(--indigo-100); }
.dial__tick-label { font-family: var(--font-body); font-size: 13px; fill: var(--muted); }
.dial__tick { stroke: var(--indigo-200); stroke-width: 1.5; }
.dial__inner-ring { fill: var(--white); stroke: var(--indigo-100); stroke-width: 1; }

.dial__center {
  position: absolute; inset: 27%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; pointer-events: none;
}
.dial__time { font-size: clamp(.8rem, .7rem + .4vw, 1rem); color: var(--muted); font-variant-numeric: tabular-nums; }
.dial__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.6rem, 1rem + 2.6vw, 2.6rem); line-height: .95; color: var(--indigo-700);
  margin-top: .3rem; text-wrap: balance;
}
.dial__caption { margin-top: 1.4rem; }
.dial__desc { min-height: 4.8em; color: var(--ink); text-align: center; max-width: 30em; margin-inline: auto; }
.dial__key {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.1rem;
  margin-top: 1rem; font-size: var(--step--1); color: var(--muted);
}
.dial__key li { display: inline-flex; align-items: center; gap: .45rem; }
.swatch { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.swatch--tutor { background: var(--marigold); }
.swatch--arena { background: var(--indigo-700); }
.swatch--guide { background: var(--indigo-300); }
.swatch--move  { background: var(--kola); }
.swatch--rest  { background: var(--indigo-100); box-shadow: inset 0 0 0 1px var(--indigo-200); }

/* ---------- Statement ---------- */
.statement { background: var(--indigo-700); color: var(--white); padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.statement__text {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.25rem, 1.3rem + 3.4vw, 4.25rem); line-height: 1; max-width: 30ch; text-wrap: balance;
}
.statement__inner { display: flex; justify-content: flex-start; }

/* ---------- Generic section ---------- */
.section { padding-block: var(--section-y); }
.section__head { max-width: 720px; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section__head--split {
  max-width: none; display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 1.5rem 4rem; align-items: end;
}
.section__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: var(--step-3); line-height: .98; color: var(--indigo-700); text-wrap: balance;
}
.section__intro { margin-top: 1rem; font-size: var(--step-1); line-height: 1.55; color: var(--muted); max-width: 36em; }
.section__head--split .section__intro { margin-top: 0; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.pillar p { color: var(--muted); margin-top: .7rem; }
.pillar__arch {
  height: 200px; border-radius: var(--arch); margin-bottom: 1.6rem;
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.pillar__arch svg {
  width: 84px; height: 84px; padding: 18px; border-radius: 50%;
  background: var(--cotton); fill: none; stroke: var(--indigo-700); stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
  margin-top: 30px;
}
.pillar__arch svg .fill { fill: var(--marigold); stroke: none; }
.pillar:nth-child(2) .pillar__arch { height: 240px; margin-top: -40px; }
.pillar__title { font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); line-height: 1; color: var(--ink); }

/* ---------- Mastery loop ---------- */
.loop { background: var(--white); border-block: 1px solid var(--indigo-100); }
.loop__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.steps { margin-top: 2.5rem; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px;
  background: linear-gradient(var(--indigo-200), var(--kola));
}
.step { display: grid; grid-template-columns: 44px 1fr; gap: 1.2rem; padding-bottom: 1.6rem; position: relative; }
.step:last-child { padding-bottom: 0; }
.step__num {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  font-family: var(--font-display); font-weight: 800; font-size: 1.35rem;
  background: var(--cotton); color: var(--indigo-700); border: 2px solid var(--indigo-200);
}
.step:nth-child(4) .step__num { background: var(--kola); border-color: var(--kola); color: var(--white); }
.step__title { font-weight: 700; font-size: var(--step-1); line-height: 1.3; margin-top: .45rem; }
.step p { color: var(--muted); margin-top: .25rem; max-width: 34em; }

.evidence {
  background: var(--marigold-200); border-radius: var(--radius-m);
  padding: clamp(1.5rem, 3vw, 2.25rem); position: sticky; top: 100px;
}
.evidence__title { font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); line-height: 1.02; color: var(--indigo-950); margin-bottom: .8rem; }
.evidence p + p { margin-top: .8rem; }

/* ---------- Arena ---------- */
.arena { background: var(--indigo-900); color: var(--white); }
.arena .section__title { color: var(--white); }
.arena .section__intro { color: var(--indigo-200); }

.skills {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid rgba(154, 165, 230, .3); margin-bottom: clamp(2.5rem, 4vw, 4rem);
}
.skills li { padding: 1.2rem 1.2rem 0 0; color: var(--indigo-200); font-size: var(--step--1); line-height: 1.5; }
.skills li + li { padding-left: 1.2rem; border-left: 1px solid rgba(154, 165, 230, .3); }
.skills strong {
  display: block; margin-bottom: .35rem; color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; line-height: 1.05;
}

.levels__tabs {
  display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}
.levels__tabs button {
  border: 2px solid rgba(154, 165, 230, .45); background: transparent; color: var(--white);
  border-radius: 999px; padding: .7rem 1.25rem; min-height: 48px; cursor: pointer;
  font-weight: 700; transition: background-color .2s, border-color .2s, color .2s;
}
.levels__tabs button span { font-weight: 400; color: var(--indigo-300); margin-left: .3rem; }
.levels__tabs button:hover { border-color: var(--marigold); }
.levels__tabs button[aria-selected="true"] { background: var(--marigold); border-color: var(--marigold); color: var(--indigo-950); }
.levels__tabs button[aria-selected="true"] span { color: var(--indigo-900); }
.levels__tabs button:focus-visible { box-shadow: 0 0 0 3px var(--indigo-900), 0 0 0 6px var(--marigold); }

.projects { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.projects li {
  background: var(--indigo-700); border-radius: var(--radius-m);
  padding: 1.5rem 1.4rem 1.6rem; border-top: 4px solid var(--marigold);
}
.projects h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; line-height: 1; }
.projects p { margin-top: .6rem; color: var(--indigo-100); font-size: .98rem; }
.levels__panel:focus-visible { box-shadow: 0 0 0 3px var(--indigo-900), 0 0 0 6px var(--marigold); border-radius: var(--radius-m); }

/* ---------- Adults ---------- */
.adults__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.adults__copy .btn { margin-top: 2rem; }
.tracks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--indigo-700); }
.track { padding: 1.5rem 1.5rem 1.6rem 0; border-bottom: 1px solid var(--indigo-200); }
.track:nth-child(even) { padding-left: 1.5rem; padding-right: 0; border-left: 1px solid var(--indigo-200); }
.track h3 { font-weight: 700; font-size: var(--step-1); line-height: 1.3; color: var(--indigo-700); }
.track p { margin-top: .4rem; color: var(--muted); }

/* ---------- Built for Africa ---------- */
.africa { background: var(--indigo-50); }
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2.25rem); }
.principles li { border-left: 4px solid var(--marigold); padding-left: 1.1rem; }
.principles h3 { font-weight: 700; font-size: var(--step-1); line-height: 1.3; }
.principles p { color: var(--muted); margin-top: .5rem; }

/* ---------- Guides ---------- */
.guides__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.guides__art { aspect-ratio: 4 / 5; border-radius: var(--arch); }
.guides__copy p { margin-top: 1.1rem; color: var(--muted); font-size: var(--step-1); line-height: 1.55; max-width: 34em; }
.guides__copy .btn { margin-top: 2rem; }

/* ---------- FAQ ---------- */
.faq { background: var(--white); border-top: 1px solid var(--indigo-100); }
.faq__wrap { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq__list { border-top: 2px solid var(--indigo-700); }
.faq .section__title { position: sticky; top: 104px; }
.faq details { border-bottom: 1px solid var(--indigo-200); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1.25rem 3rem 1.25rem 0; font-weight: 700; font-size: var(--step-1); line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .5rem; top: 50%; width: 14px; height: 14px; margin-top: -10px;
  border-right: 2.5px solid var(--indigo-700); border-bottom: 2.5px solid var(--indigo-700);
  transform: rotate(45deg); transition: transform .25s, margin-top .25s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq summary:hover { color: var(--indigo-500); }
.faq details p { padding: 0 3rem 1.4rem 0; color: var(--muted); max-width: 40em; }

/* ---------- Waitlist ---------- */
.waitlist { color: var(--white); }
.waitlist .section__title { color: var(--white); }
.waitlist__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.waitlist__copy > p { margin-top: 1rem; font-size: var(--step-1); color: var(--indigo-200); max-width: 28em; }
.waitlist__perks { margin-top: 2rem; display: grid; gap: .9rem; }
.waitlist__perks li { position: relative; padding-left: 2rem; color: var(--indigo-100); }
.waitlist__perks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%;
  border: 3px solid var(--marigold);
}

.form {
  background: var(--cotton); color: var(--ink);
  border-radius: 24px; padding: clamp(1.4rem, 3vw, 2.4rem);
  display: grid; gap: 1.1rem;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .4rem; align-content: start; }
.field label { font-weight: 700; font-size: .95rem; }
.field__opt { font-weight: 400; color: var(--muted); }
.field input, .field select {
  width: 100%; min-height: 50px; padding: .7rem .9rem;
  border: 1.5px solid var(--indigo-200); border-radius: var(--radius-s); background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231E2A78' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.field input::placeholder { color: #8a90b0; }
.field input:hover, .field select:hover { border-color: var(--indigo-300); }
.field input:focus, .field select:focus { outline: none; border-color: var(--indigo-500); box-shadow: 0 0 0 3px rgba(65, 82, 196, .25); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field__error { color: var(--error); font-size: .9rem; }
.field[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { margin-top: .4rem; }
.form .btn[disabled] { opacity: .65; cursor: progress; }
.form__status { border-radius: var(--radius-s); padding: .9rem 1rem; font-weight: 700; }
.form__status.is-ok { background: #DDF3E8; color: #135C3B; }
.form__status.is-error { background: #FBE4E2; color: var(--error); }
.form__fine { font-size: .85rem; color: var(--muted); text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--indigo-950); color: var(--indigo-200); padding-top: clamp(3rem, 5vw, 4.5rem); }
.site-footer__inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; align-items: start; }
.site-footer__brand p { margin-top: 1rem; max-width: 24em; }
.site-footer__links { display: grid; gap: .55rem; }
.site-footer__links a, .site-footer__email { color: var(--white); text-decoration: none; }
.site-footer__links a:hover, .site-footer__email:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--marigold); }
.site-footer__email { font-weight: 700; display: inline-block; margin-top: .3rem; word-break: break-word; }
.site-footer__base { margin-top: 3rem; padding-block: 1.5rem; border-top: 1px solid rgba(154, 165, 230, .2); font-size: .9rem; }
.site-footer :focus-visible { box-shadow: 0 0 0 3px var(--indigo-950), 0 0 0 6px var(--marigold); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .skills { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.5rem; }
  .skills li:nth-child(4) { padding-left: 0; border-left: 0; }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
}

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 1rem var(--gutter) 1.5rem;
    background: var(--cotton); border-bottom: 1px solid var(--indigo-100);
    box-shadow: 0 18px 30px -20px rgba(14, 20, 64, .35);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--indigo-100); font-size: 1.1rem; background: none; }
  .site-nav .btn { width: 100%; }

  .hero__grid { grid-template-columns: 1fr; }
  .dial { max-width: 440px; }
  .section__head--split { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; gap: 2.5rem; max-width: 560px; }
  .pillar:nth-child(2) .pillar__arch { height: 200px; margin-top: 0; }
  .pillar__arch { height: 180px; }
  .loop__grid, .adults__grid, .guides__grid, .faq__wrap, .waitlist__grid { grid-template-columns: 1fr; }
  .evidence, .faq .section__title { position: static; }
  .guides__art { aspect-ratio: 16 / 9; max-height: 320px; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --step-0: 1rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .skills { grid-template-columns: 1fr 1fr; }
  .skills li, .skills li + li { padding: 1rem 0 0; border-left: 0; }
  .skills li:nth-child(odd) { padding-right: 1rem; }
  .skills li:nth-child(even) { padding-left: 1rem; border-left: 1px solid rgba(154, 165, 230, .3); }
  .levels__tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .levels__tabs::-webkit-scrollbar { display: none; }
  .levels__tabs button { flex: none; }
  .projects { grid-template-columns: 1fr; }
  .tracks { grid-template-columns: 1fr; }
  .track, .track:nth-child(even) { padding: 1.25rem 0; border-left: 0; }
  .principles { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .faq summary { padding-right: 2.5rem; }
  .faq details p { padding-right: 0; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .brand__name { font-size: 1.45rem; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
