/* Medaf Academy — medaftech.com
   Design system shared with the LMS (academy.medaftech.com): Inter for
   body/UI, "Midnight teal & solar gold" brand palette, same card and
   radius language. Fraunces added as a display face for marketing
   headlines only. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-variable-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/assets/fonts/fraunces-900.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/fraunces-600.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/fraunces-600-italic.woff2") format("woff2");
}

:root {
  /* "Midnight teal & solar gold" (2026-08 rebrand). Teal is dominant/
     institutional (nav, headers, footer, informational surfaces); gold is
     support/student-facing (CTA buttons, progress, badges); coral is a
     sparing accent for errors and urgent/celebratory moments. */
  --teal: #0d5c63;
  --teal-dark: #082f33;
  --teal-tint: #e0f4f5;
  --gold: #f5c842;
  --gold-dark: #d9ab1e;
  --gold-tint: #fdf6dc;
  --coral: #e8552a;
  --coral-dark: #c2431e;
  --coral-tint: #fbe4dc;

  --bg: #f7f9f9;
  --surface: #ffffff;
  --surface-alt: #eef5f5;
  --border: #dde6e6;
  --text: #0f1f20;
  --text-muted: #52696b;
  --text-on-teal: #eef5f5;
  --text-on-teal-muted: #a9c6c8;

  --shadow-sm: 0 1px 2px rgba(15, 31, 32, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 31, 32, 0.08);
  --shadow-lg: 0 24px 64px rgba(8, 47, 51, 0.18);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;

  --content-width: 1180px;
  --section-pad: clamp(3.5rem, 7vw, 6rem);

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --teal: #2a9aa3;
    --teal-dark: #0a4045;
    --teal-tint: #123539;
    --gold: #f0c04a;
    --gold-dark: #e3b73a;
    --gold-tint: #3a2f14;
    --coral: #ef6b42;
    --coral-dark: #d1552e;
    --coral-tint: #3a1f15;

    --bg: #081516;
    --surface: #0f2426;
    --surface-alt: #132c2e;
    --border: #1f3a3c;
    --text: #eef5f5;
    --text-muted: #9db3b4;
    --text-on-teal: #eef5f5;
    --text-on-teal-muted: #9db3b4;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.55);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --teal: #2a9aa3;
  --teal-dark: #0a4045;
  --teal-tint: #123539;
  --gold: #f0c04a;
  --gold-dark: #e3b73a;
  --gold-tint: #3a2f14;
  --coral: #ef6b42;
  --coral-dark: #d1552e;
  --coral-tint: #3a1f15;

  --bg: #081516;
  --surface: #0f2426;
  --surface-alt: #132c2e;
  --border: #1f3a3c;
  --text: #eef5f5;
  --text-muted: #9db3b4;
  --text-on-teal: #eef5f5;
  --text-on-teal-muted: #9db3b4;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; color: inherit; }

.wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding-left: clamp(1.25rem, 4vw, 2.5rem);
  padding-right: clamp(1.25rem, 4vw, 2.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}
.eyebrow::before { content: ""; width: 1.25rem; height: 2px; background: var(--gold); display: inline-block; }

/* ---------- Nav ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-row { display: flex; align-items: center; gap: 2rem; height: 4.5rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.05rem; text-decoration: none; color: var(--text); margin-right: auto; }
.brand .mark {
  width: 2.1rem; height: 2.1rem; border-radius: 8px; background: var(--teal); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
}
nav.primary { display: flex; align-items: center; gap: 1.9rem; }
nav.primary a { text-decoration: none; color: var(--text-muted); font-size: 0.9375rem; font-weight: 500; padding: 0.4rem 0; border-bottom: 2px solid transparent; }
nav.primary a:hover, nav.primary a:focus-visible { color: var(--text); }
nav.primary a.active { color: var(--text); border-color: var(--teal); font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 999px; font-weight: 600; font-size: 0.9375rem; padding: 0.7rem 1.4rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  font-family: var(--font-body);
}
.btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.btn-primary { background: var(--gold); color: var(--teal-dark); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--gold-dark); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--teal-dark); }
.btn-gold:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-alt); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--border); border-radius: 8px;
  width: 2.4rem; height: 2.4rem; align-items: center; justify-content: center; cursor: pointer; color: var(--text);
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 4.6vw, 3.75rem); line-height: 1.05; font-weight: 600; letter-spacing: -0.01em; }
.hero h1 em { font-style: italic; font-weight: 600; color: var(--gold); }
.hero .sub { margin-top: 1.4rem; font-size: 1.1875rem; color: var(--text-muted); max-width: 40ch; }
.hero .fine { margin-top: 0.65rem; font-size: 0.9375rem; color: var(--text-muted); }
.hero .cta-row { margin-top: 2.1rem; display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.hero .cta-row .btn { padding: 0.85rem 1.7rem; font-size: 1rem; }

.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 460px; margin: 0 auto; }
.hero-blob {
  position: absolute; inset: 6%; border-radius: 42% 58% 63% 37% / 45% 40% 60% 55%;
  background: linear-gradient(155deg, var(--teal-dark), var(--gold-dark) 78%);
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-blob::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.16), transparent 55%); }
.float-card {
  position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); padding: 0.7rem 0.85rem; font-size: 0.8125rem; display: flex; align-items: center; gap: 0.6rem; font-weight: 600;
}
.float-card .ico { width: 1.9rem; height: 1.9rem; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.float-1 { top: 4%; left: -6%; }
.float-1 .ico { background: var(--teal-tint); color: var(--teal); }
.float-2 { bottom: 14%; right: -10%; text-align: left; }
.float-2 .ico { background: #fef3e0; color: var(--gold); }
.float-3 { bottom: -4%; left: 12%; }
.float-3 .ico { background: #e6fbf4; color: var(--teal); }
.ring {
  width: 2.6rem; height: 2.6rem; border-radius: 50%; background: conic-gradient(var(--gold) 0turn 0.72turn, var(--gold-tint) 0turn);
  display: flex; align-items: center; justify-content: center; font-size: 0.6875rem; flex-shrink: 0;
}
.ring span { background: var(--surface); width: 1.85rem; height: 1.85rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* ---------- Trust strip ---------- */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface-alt); }
.trust .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); }
.trust-item { background: var(--surface-alt); padding: 1.6rem 1.25rem; display: flex; align-items: center; gap: 0.85rem; }
.trust-item .ico { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--surface); color: var(--teal); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.trust-item strong { display: block; font-size: 0.9375rem; }
.trust-item span { font-size: 0.8125rem; color: var(--text-muted); }

/* ---------- Generic section ---------- */
section { padding: var(--section-pad) 0; }
.section-head { max-width: 640px; margin-bottom: 2.75rem; }
.section-head h2 { font-size: clamp(1.85rem, 3.2vw, 2.5rem); font-weight: 600; margin-top: 0.6rem; }
.section-head p { margin-top: 0.85rem; color: var(--text-muted); font-size: 1.0625rem; }
.page-head { padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); }
.page-head h1 { font-size: clamp(2.25rem, 4vw, 3rem); font-weight: 600; }
.page-head p { margin-top: 1rem; color: var(--text-muted); font-size: 1.125rem; max-width: 60ch; }

/* ---------- Learning modes ---------- */
.modes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.mode-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 0.9rem; transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.mode-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.mode-card .ico { width: 2.75rem; height: 2.75rem; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.mode-card h3 { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 700; }
.mode-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
.mode-card li { font-size: 0.875rem; color: var(--text-muted); padding-left: 1.1rem; position: relative; }
.mode-card li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.mode-card a.mode-link { margin-top: auto; font-size: 0.875rem; font-weight: 600; color: var(--gold); text-decoration: none; }
.mode-card:nth-child(1) .ico { background: var(--coral-tint); color: var(--coral); }
.mode-card:nth-child(2) .ico { background: #fef3e0; color: var(--gold); }
.mode-card:nth-child(3) .ico { background: #e6fbf4; color: var(--teal); }
.mode-card:nth-child(4) .ico { background: var(--teal-dark); color: #fff; }

/* ---------- Process ---------- */
.process { background: var(--surface-alt); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.step { position: relative; padding-top: 0.25rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-weight: 900;
  font-size: 2.1rem; color: var(--teal-tint); -webkit-text-stroke: 1.5px var(--teal); display: block; margin-bottom: 0.9rem;
}
.step h3 { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 700; margin-bottom: 0.5rem; }
.step p { margin: 0; font-size: 0.9375rem; color: var(--text-muted); }
.step:not(:last-child)::after { content: ""; position: absolute; top: 1.05rem; left: calc(100% + 0.75rem); width: calc(1.5rem - 0.5rem); height: 2px; background: var(--border); }

/* ---------- Learner types (interactive) ---------- */
.learner-panel {
  display: grid; grid-template-columns: 280px 1fr; gap: 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
}
.learner-tabs { background: var(--teal); display: flex; flex-direction: column; padding: 0.75rem; gap: 0.25rem; }
.learner-tabs button {
  all: unset; cursor: pointer; color: var(--text-on-teal-muted); padding: 0.9rem 1rem; border-radius: var(--radius-sm);
  font-size: 0.9375rem; font-weight: 600; display: flex; align-items: center; gap: 0.65rem; font-family: var(--font-body);
}
.learner-tabs button .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: 0.4; flex-shrink: 0; }
.learner-tabs button:hover { color: var(--text-on-teal); }
.learner-tabs button[aria-selected="true"] { background: rgba(255,255,255,0.08); color: #fff; }
.learner-tabs button[aria-selected="true"] .dot { background: var(--gold); opacity: 1; }
.learner-tabs button:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.learner-panels { padding: 2.5rem; display: flex; align-items: center; }
.learner-panels [role="tabpanel"] { display: none; }
.learner-panels [role="tabpanel"][data-active="true"] { display: block; }
.learner-panels h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.75rem; }
.learner-panels p { color: var(--text-muted); font-size: 1.0625rem; max-width: 52ch; }

/* ---------- Courses ---------- */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.course-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.18s ease, box-shadow 0.18s ease; color: inherit; text-decoration: none; }
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.course-thumb { height: 8.5rem; position: relative; display: flex; align-items: flex-end; padding: 1rem; }
.course-thumb span.badge { background: rgba(255,255,255,0.94); color: var(--teal); font-size: 0.75rem; font-weight: 700; padding: 0.3rem 0.65rem; border-radius: 999px; }
.course-thumb.t1 { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); }
.course-thumb.t2 { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); }
.course-thumb.t3 { background: linear-gradient(135deg, var(--coral), var(--coral-dark)); }
.course-thumb.t4 { background: linear-gradient(135deg, var(--teal-dark), var(--teal)); }
.course-body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.55rem; }
.course-body .cat { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--teal); }
.course-body h3 { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 700; }
.course-body .meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.8125rem; color: var(--text-muted); margin-top: 0.35rem; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--teal); color: var(--text-on-teal); }
.testimonials .section-head p { color: var(--text-on-teal-muted); }
.testimonials .section-head .eyebrow { color: var(--gold); }
.testimonials .section-head .eyebrow::before { background: var(--gold); }
.quote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.quote-card { background: var(--teal-dark); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-md); padding: 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.quote-card .mark { font-family: var(--font-display); font-size: 2.75rem; line-height: 1; color: var(--gold); font-weight: 700; }
.quote-card p.quote { font-size: 1.0625rem; margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 600; text-wrap: pretty; }
.quote-attrib { display: flex; align-items: center; gap: 0.75rem; margin-top: auto; }
.quote-attrib .avatar { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--gold); color: var(--teal-dark); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.quote-attrib strong { display: block; font-size: 0.9375rem; }
.quote-attrib span { font-size: 0.8125rem; color: var(--text-on-teal-muted); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--teal), var(--teal-dark)); color: var(--text-on-teal); }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-top: 3rem; padding-bottom: 3rem; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 600; }
.cta-band p { margin: 0.5rem 0 0; color: rgba(255,255,255,0.85); }
.cta-band .btn-gold { flex-shrink: 0; }

/* ---------- Footer ---------- */
footer.site { background: var(--teal); color: var(--text-on-teal-muted); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-grid h4 { color: var(--text-on-teal); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1.1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; font-size: 0.9375rem; }
.footer-grid a { text-decoration: none; color: inherit; }
.footer-grid a:hover { color: var(--text-on-teal); }
.footer-brand .brand { color: var(--text-on-teal); margin-bottom: 1rem; }
.footer-brand p { max-width: 32ch; font-size: 0.9375rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; display: flex; justify-content: space-between; font-size: 0.8125rem; flex-wrap: wrap; gap: 0.5rem; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2.5rem; align-items: start; }
@media (max-width: 780px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Generic content page (About / static text) ---------- */
.prose { max-width: 72ch; font-size: 1.0625rem; color: var(--text); }
.prose p { margin: 0 0 1.25rem; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.post-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.18s ease, box-shadow 0.18s ease; text-decoration: none; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-card .thumb { height: 10rem; background: linear-gradient(135deg, var(--teal-dark), var(--teal)); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; }
.post-card .date { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--teal); }
.post-card h3 { font-family: var(--font-body); font-size: 1.125rem; font-weight: 700; }
.post-card p { margin: 0; font-size: 0.9375rem; color: var(--text-muted); }
.post-empty { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }

.post-header { padding: clamp(2.5rem, 5vw, 4rem) 0 2rem; }
.post-header .date { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--teal); }
.post-header h1 { margin-top: 0.75rem; font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 600; }
.post-cover { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius-md); margin: 2rem 0; }
.post-content { max-width: 72ch; font-size: 1.0625rem; line-height: 1.75; }
.post-content p { margin: 0 0 1.4rem; }
.post-content h2 { font-size: 1.5rem; font-weight: 600; margin: 2.2rem 0 1rem; }
.post-content h3 { font-size: 1.25rem; font-weight: 600; margin: 1.8rem 0 0.85rem; }
.post-content img { border-radius: var(--radius-sm); margin: 1.5rem 0; }
.post-content a { color: var(--teal); }
.post-content ul, .post-content ol { margin: 0 0 1.4rem; padding-left: 1.4rem; }
.post-content blockquote { margin: 1.5rem 0; padding: 0.25rem 0 0.25rem 1.25rem; border-left: 3px solid var(--gold); color: var(--text-muted); font-style: italic; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

@media (max-width: 980px) {
  nav.primary, .nav-row .btn-primary { display: none; }
  .nav-toggle { display: flex; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 2rem; }
  .trust .wrap { grid-template-columns: 1fr; }
  .modes-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .learner-panel { grid-template-columns: 1fr; }
  .learner-tabs { flex-direction: row; overflow-x: auto; }
  .course-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .modes-grid, .process-grid, .course-grid, .post-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }

  /* The floating cards are positioned to intentionally bleed past the
     hero-visual's edges (float-1 left:-6%, float-2 right:-10%, etc.) so
     they read as "scattered" against the generous white space of the
     desktop two-column hero. On a narrow single-column layout there's no
     spare room for that bleed, so they end up overlapping the CTA buttons
     above instead. Simplify to just the gradient shape on small screens. */
  .hero-visual { max-width: 220px; margin-top: 2.5rem; }
  .float-card { display: none; }
}

/* ---------- Nav mobile open state (JS-toggled) ---------- */
nav.primary.open {
  display: flex !important; flex-direction: column; position: absolute; top: 4.5rem; left: 0; right: 0;
  background: var(--surface); border-bottom: 1px solid var(--border); padding: 1rem 1.5rem; gap: 1rem;
}
