/* =========================================================================
   Learning Boost via Zoom — Design system & styles
   Implements SRD §2 (brand), §3 (architecture), §4–7 (sections), §8 (NFRs).
   ========================================================================= */

/* ---- Tokens (SRD §2.1, §2.2, §2.5) ------------------------------------- */
:root {
  --primary: #1565C0;
  --accent: #2980D9;
  --light-blue: #D6E4F7;
  --white: #FFFFFF;
  --near-black: #1A1A1A;
  --grey-blue: #F4F7FB;
  --nav-border: #E5EDF5;
  --footer-dark: #0D4E9E;
  --caption: #555555;

  --subject-math: #1565C0;
  --subject-english: #2E7D32;
  --subject-science: #6A1B9A;
  --subject-languages: #E07B00;

  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-head: "Poppins", var(--font-body);
  --font-script: "Dancing Script", cursive;

  --max: 1200px;
  --radius-card: 12px;
  --radius-btn: 8px;
  --shadow: 0 2px 12px rgba(21, 101, 192, 0.10);
  --shadow-hover: 0 8px 28px rgba(21, 101, 192, 0.18);
  --pad-section: 80px;
  --nav-h: 72px;
  --ease: 200ms ease;
}

*, *::before, *::after { box-sizing: border-box; }

/* [hidden] must win over component display rules (.modal/.cart use display) */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--near-black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); margin: 0 0 .5em; line-height: 1.2; }
h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 700; color: var(--primary); }
h2 { font-size: clamp(26px, 3.4vw, 32px); font-weight: 600; color: var(--primary); }
h3 { font-size: clamp(18px, 2.2vw, 22px); font-weight: 600; color: var(--near-black); }
h4 { font-size: 16px; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--primary); }
img, svg { max-width: 100%; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.section { padding: var(--pad-section) 0; }
.section--grey { background: var(--grey-blue); }
.section--about { background: var(--light-blue); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}
.eyebrow--light { color: var(--white); opacity: .9; }

.section__head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section__lede { color: var(--caption); font-size: 18px; }

/* Lucide icon sizing */
[data-lucide] { width: 22px; height: 22px; stroke-width: 2; vertical-align: middle; }

/* ---- Accessibility helpers (SRD NFR-4..7) ------------------------------ */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

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

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Buttons (SRD §10.1) ---------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 500; font-size: 16px;
  min-height: 44px; padding: 0 22px; border-radius: var(--radius-btn);
  border: 2px solid transparent; cursor: pointer; transition: all var(--ease);
  text-align: center; white-space: nowrap;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn--outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--lg { min-height: 50px; padding: 0 28px; font-size: 17px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.link [data-lucide] { width: 18px; height: 18px; }

/* ---- Logo (Scrabble-tile motif, SRD §2.3) ----------------------------- */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo__tiles { display: inline-flex; gap: 4px; }
.tile {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 5px;
  background: var(--primary); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 16px;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.18);
}
.tile--light { background: #fff; color: var(--primary); box-shadow: inset 0 -3px 0 rgba(0,0,0,.10); }
.logo__word { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: .04em; color: var(--primary); }
.logo__script { font-family: var(--font-script); font-size: 17px; color: var(--accent); margin-top: 2px; }
.logo--light .logo__name { color: #fff; }
.logo--light .logo__script { color: var(--light-blue); }

/* ===================== NAV (SRD §3.2) ===================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h); background: var(--white);
  border-bottom: 1px solid var(--nav-border);
  transition: box-shadow var(--ease);
}
.nav.is-scrolled { box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.nav__inner { max-width: var(--max); margin: 0 auto; height: 100%; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav__links { display: flex; gap: 4px; }
.nav__link {
  font-family: var(--font-head); font-size: 15px; font-weight: 500; color: var(--near-black);
  padding: 8px 14px; border-radius: 6px; position: relative;
}
.nav__link:hover { color: var(--primary); background: var(--grey-blue); }
.nav__link.is-active { color: var(--primary); }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--primary); border-radius: 2px;
}
.nav__actions { display: flex; align-items: center; gap: 12px; }

.nav__hamburger { display: none; background: none; border: none; cursor: pointer; color: var(--primary);
  width: 44px; height: 44px; border-radius: 8px; place-items: center; }

/* ===================== HERO (SRD §4.1 / §10.2) ===================== */
.hero { padding-top: calc(var(--nav-h) + 56px); background: var(--white); }
.hero__grid { display: grid; grid-template-columns: 60% 40%; gap: 40px; align-items: center; padding-bottom: 64px; }
.hero__sub { font-size: 18px; color: var(--caption); max-width: 30em; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero__visual { position: relative; display: grid; place-items: center; min-height: 300px; }
.hero__blob {
  position: absolute; inset: 0; margin: auto; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--light-blue), #eaf2fc);
}
.hero__card {
  position: relative; background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow);
  padding: 28px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  max-width: 260px;
}
.hero__card [data-lucide] { width: 44px; height: 44px; color: var(--primary); }
.hero__card-title { font-family: var(--font-head); font-weight: 600; }
.hero__card-sub { color: var(--caption); font-size: 14px; }

.trustbar { background: var(--grey-blue); }
.trustbar__inner { min-height: 72px; display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
.trustbar__item { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 500; color: var(--near-black); }
.trustbar__item [data-lucide] { color: var(--primary); }
.trustbar__divider { width: 1px; height: 28px; background: var(--light-blue); }

/* ===================== ABOUT (SRD §4.2 / §10.3) ===================== */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about__highlight { font-style: italic; margin-top: 18px; }
.about__cards { display: grid; gap: 24px; }
.pcard {
  background: #fff; border-radius: var(--radius-card); border-top: 4px solid var(--primary);
  padding: 24px; box-shadow: var(--shadow);
}
.pcard [data-lucide] { width: 40px; height: 40px; color: var(--primary); margin-bottom: 10px; }
.pcard p { margin: 0; color: var(--caption); }

/* ===================== SERVICES (SRD §4.3 / §10.4) ===================== */
.subjects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 56px; }
.subject {
  background: #fff; border-radius: var(--radius-card); padding: 28px; box-shadow: var(--shadow);
  border: 1px solid transparent; transition: all var(--ease);
}
.subject:hover { transform: translateY(-4px); border-color: var(--light-blue); box-shadow: var(--shadow-hover); }
.subject [data-lucide] { width: 48px; height: 48px; margin-bottom: 8px; }
.subject p { margin: 0; color: var(--caption); }
.subject--math [data-lucide] { color: var(--subject-math); }
.subject--english [data-lucide] { color: var(--subject-english); }
.subject--science [data-lucide] { color: var(--subject-science); }
.subject--languages [data-lucide] { color: var(--subject-languages); }

.howitworks { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: start; gap: 16px; margin-bottom: 48px; }
.howitworks__step { text-align: center; padding: 0 8px; }
.howitworks__num {
  display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 14px;
  background: var(--primary); color: #fff; border-radius: 50%; font-family: var(--font-head); font-weight: 700; font-size: 20px;
}
.howitworks__step p { color: var(--caption); margin: 0; }
.howitworks__line { height: 2px; background: var(--light-blue); margin-top: 23px; min-width: 30px; }

.discount {
  display: flex; align-items: center; gap: 16px;
  background: var(--light-blue); border-left: 4px solid var(--primary);
  border-radius: var(--radius-card); padding: 20px 24px;
}
.discount [data-lucide] { width: 32px; height: 32px; color: var(--primary); flex-shrink: 0; }
.discount p { margin: 0; font-size: 17px; }

/* ===================== COURSES (SRD §4.4 / §10.5) ===================== */
.tabs__bar { display: flex; gap: 4px; background: var(--light-blue); padding: 6px; border-radius: 10px; margin-bottom: 32px; flex-wrap: wrap; }
.tab {
  flex: 1; min-width: 140px; border: none; cursor: pointer; background: transparent;
  font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--primary);
  padding: 12px 16px; border-radius: 8px; transition: all var(--ease); border-bottom: 3px solid transparent;
}
.tab:hover { background: rgba(255,255,255,.5); }
.tab.is-active { background: #fff; border-bottom-color: var(--primary); box-shadow: var(--shadow); }
.tabs__panel { display: none; }
.tabs__panel.is-active { display: block; }

.closes-alert {
  display: flex; align-items: center; gap: 10px; margin-bottom: 24px;
  background: #FFF3E0; border: 1px solid #FFB74D; color: #9c4221;
  padding: 12px 18px; border-radius: 8px; font-weight: 500;
}
.closes-alert [data-lucide] { color: #E65100; flex-shrink: 0; }

.course-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.course-card {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-card);
  padding: 24px; box-shadow: var(--shadow); border: 1px solid transparent; transition: all var(--ease);
}
.course-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-hover); }
.course-card__code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 11px; color: #888; margin-bottom: 6px; }
.course-card__title { margin-bottom: 6px; }
.course-card__grades { font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.course-card__desc { color: var(--caption); font-size: 15px; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.course-card__desc.is-open { -webkit-line-clamp: unset; }
.course-card__more { align-self: flex-start; background: none; border: none; color: var(--accent); cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: 14px; padding: 0; margin: -8px 0 14px; }
.course-card__pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--grey-blue);
  border-radius: 6px; padding: 6px 10px; font-size: 13px; color: var(--near-black); }
.pill [data-lucide] { width: 15px; height: 15px; color: var(--primary); }
.course-card__btn { margin-top: auto; }

.courses-tbc { text-align: center; padding: 48px 24px; background: #fff; border-radius: var(--radius-card);
  border: 1px dashed var(--light-blue); color: var(--caption); }
.courses-tbc [data-lucide] { width: 40px; height: 40px; color: var(--primary); margin-bottom: 12px; }

/* ===================== RESOURCES (SRD §5 / §10.6) ===================== */
.resources__banner { background: var(--light-blue); padding: 36px 0; margin-bottom: 40px; }
.resources__banner h2 { margin: 0; }
.filterbar { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; align-items: flex-end; }
.filterbar__field { display: flex; flex-direction: column; gap: 6px; }
.filterbar__field--grow { flex: 1; min-width: 200px; }
.filterbar label { font-size: 13px; font-weight: 600; color: var(--caption); }
.filterbar select, .filterbar input { font-family: var(--font-body); font-size: 15px; padding: 11px 12px;
  border: 1px solid var(--nav-border); border-radius: 8px; background: #fff; min-height: 44px; }
.filterbar__search { position: relative; }
.filterbar__search [data-lucide] { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--caption); width: 18px; height: 18px; }
.filterbar__search input { width: 100%; padding-left: 38px; }

.resources__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ws-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow); overflow: hidden; transition: all var(--ease); }
.ws-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.ws-card__thumb { position: relative; aspect-ratio: 4/3; background: var(--grey-blue);
  display: grid; place-items: center; border-bottom: 1px solid var(--nav-border); }
.ws-card__thumb [data-lucide] { width: 48px; height: 48px; color: var(--light-blue); }
.ws-card__watermark { position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; color: rgba(21,101,192,.12); font-size: 20px; transform: rotate(-18deg); letter-spacing: .1em; }
.ws-card__preview { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.92);
  border: 1px solid var(--nav-border); border-radius: 6px; padding: 6px 10px; font-size: 13px; font-weight: 600;
  color: var(--primary); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; opacity: 0; transition: opacity var(--ease); }
.ws-card:hover .ws-card__preview, .ws-card:focus-within .ws-card__preview { opacity: 1; }
.ws-card__preview [data-lucide] { width: 15px; height: 15px; }
.ws-card__body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.badge { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.badge--math { background: #E3F0FC; color: var(--subject-math); }
.badge--english { background: #E6F4E7; color: var(--subject-english); }
.badge--science { background: #F1E6F7; color: var(--subject-science); }
.badge--languages { background: #FCEFDD; color: var(--subject-languages); }
.ws-card__title { font-size: 17px; margin-bottom: 6px; }
.ws-card__meta { font-size: 13px; color: var(--caption); margin-bottom: 14px; }
.ws-card__code { font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: #aaa; margin-bottom: 12px; }
.ws-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ws-card__free { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--subject-english);
  background: #E6F4E7; padding: 4px 12px; border-radius: 999px; }

.resources__empty { text-align: center; color: var(--caption); padding: 40px 0; }

/* ===================== TESTIMONIALS (SRD §6 / §10.7) ===================== */
.carousel { display: flex; align-items: center; gap: 16px; }
.carousel__viewport { overflow: hidden; flex: 1; }
.carousel__track { display: flex; transition: transform 400ms ease; }
.t-card { flex: 0 0 50%; padding: 0 12px; box-sizing: border-box; }
.t-card__inner { position: relative; background: #fff; border-radius: var(--radius-card); padding: 32px 28px 28px; box-shadow: var(--shadow); height: 100%; }
.t-card__quote { position: absolute; top: 8px; left: 18px; font-family: Georgia, serif; font-size: 72px; line-height: 1; color: var(--primary); opacity: .18; }
.t-card__text { font-size: 18px; font-style: italic; position: relative; margin: 12px 0 18px; }
.t-card__name { font-family: var(--font-head); font-weight: 700; }
.t-card__role { color: var(--caption); font-size: 14px; }
.carousel__arrow { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--primary); color: #fff; display: grid; place-items: center; transition: background var(--ease); }
.carousel__arrow:hover { background: var(--accent); }
.carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.dot { width: 10px; height: 10px; border-radius: 50%; border: none; background: var(--light-blue); cursor: pointer; padding: 0; transition: all var(--ease); }
.dot.is-active { background: var(--primary); width: 26px; border-radius: 5px; }

/* ===================== REGISTER (SRD §7 / §10.8) ===================== */
.register__grid { display: grid; grid-template-columns: 60% 40%; gap: 32px; align-items: start; }
.regform { background: #fff; border-left: 4px solid var(--primary); border-radius: var(--radius-card); padding: 32px; box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-weight: 600; font-size: 14px; }
.req { color: #d32f2f; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 15px; padding: 12px; border: 1px solid var(--nav-border);
  border-radius: 8px; background: #fff; min-height: 44px; transition: border-color var(--ease);
}
.field textarea { min-height: auto; resize: vertical; }
.field select[multiple] { min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(41,128,217,.15); }
.field.has-error input, .field.has-error select { border-color: #d32f2f; }
.error { color: #d32f2f; font-size: 13px; min-height: 1em; }
.hint { color: var(--caption); font-size: 13px; }
.field--check { flex-direction: column; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.check input { width: 20px; height: 20px; min-height: auto; flex-shrink: 0; margin-top: 2px; accent-color: var(--primary); }

.regform__success { text-align: center; padding: 24px; margin-top: 16px; background: var(--light-blue); border-radius: 10px; }
.regform__success [data-lucide] { width: 48px; height: 48px; color: var(--primary); }
.regform__success p { font-family: var(--font-head); font-weight: 600; font-size: 18px; margin: 10px 0; }
.regform__error { display: flex; gap: 12px; align-items: flex-start; padding: 16px; margin-top: 16px; background: #FDECEA; border: 1px solid #F5C2BC; border-radius: 10px; color: #9c2a1f; }
.regform__error [data-lucide] { width: 24px; height: 24px; flex-shrink: 0; color: #d32f2f; }
.regform__error p { margin: 0; }

.whatsnext { background: var(--light-blue); border-radius: var(--radius-card); padding: 32px; }
.whatsnext ol { margin: 0 0 16px; padding-left: 20px; }
.whatsnext li { margin-bottom: 12px; }
.whatsnext__foot { margin: 0; font-size: 14px; color: var(--caption); }

/* ===================== FOOTER (SRD §3.3 / §10.9) ===================== */
.footer { background: var(--primary); color: #fff; padding-top: 56px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 40px; padding-bottom: 40px; }
.footer__tag { color: var(--light-blue); margin-top: 16px; }
.footer__social { display: flex; gap: 12px; margin-top: 16px; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; color: #fff; }
.footer__social a:hover { background: rgba(255,255,255,.25); }
.footer__col h4 { color: #fff; margin-bottom: 16px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin-bottom: 10px; }
.footer a { color: #fff; }
.footer a:hover { text-decoration: underline; }
.footer__col p a { display: inline-flex; align-items: center; gap: 8px; }
.footer__muted { color: var(--light-blue); }
.footer__bottom { background: var(--footer-dark); }
.footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 18px; font-size: 14px; flex-wrap: wrap; }

/* ===================== MODAL ===================== */
.modal { position: fixed; inset: 0; z-index: 170; display: grid; place-items: center; padding: 24px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(26,26,26,.5); }
.modal__panel { position: relative; background: #fff; border-radius: var(--radius-card); max-width: 480px; width: 100%; max-height: 85vh; overflow-y: auto; box-shadow: var(--shadow-hover); }
.modal__close { position: absolute; top: 12px; right: 12px; background: var(--grey-blue); border: none; cursor: pointer; width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; color: var(--near-black); }
.modal__content { padding: 32px; }
.modal__content h3 { margin-bottom: 6px; }
.preview-page { aspect-ratio: 8.5/11; background: var(--grey-blue); border: 1px solid var(--nav-border); border-radius: 8px; display: grid; place-items: center; color: var(--caption); margin: 16px 0; position: relative; }
.preview-page .ws-card__watermark { font-size: 26px; }

/* ===================== Scroll reveal (SRD §2.6) ===================== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 300ms ease, transform 300ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===================== Responsive (SRD NFR-8) ===================== */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { order: 1; }
  .hero__visual { order: 0; }
  .hero__ctas, .hero__sub { margin-left: auto; margin-right: auto; }
  .about__grid { grid-template-columns: 1fr; }
  .resources__grid { grid-template-columns: repeat(2, 1fr); }
  .register__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav__links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--nav-border); padding: 8px;
    transform: translateY(-120%); transition: transform 260ms ease; box-shadow: 0 10px 20px rgba(0,0,0,.08);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__link { padding: 14px; border-radius: 6px; }
  .nav__link.is-active::after { display: none; }
  .nav__cta { display: none; }
  .nav__hamburger { display: grid; }
  .subjects { grid-template-columns: 1fr; }
  .howitworks { grid-template-columns: 1fr; }
  .howitworks__line { display: none; }
  .course-grid { grid-template-columns: 1fr; }
  .t-card { flex: 0 0 100%; }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --pad-section: 48px; }
  .container { padding: 0 18px; }
  .resources__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .logo__name { font-size: 13px; }
}

/* ===================== Reduced motion (SRD §2.6 / NFR) ===================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
