:root {
  --accent: #EB5317;
  --accent-strong: #ff6a2a;
  --bg: #0b0b0d;
  --bg-elevated: #121318;
  --surface: #181a20;
  --surface-strong: #20232a;
  --border: #2a2e36;
  --text: #f7f7f7;
  --muted: #9aa3af;
  --shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --radius-sm: 12px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 80px;
  --max-width: 1200px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1200px 520px at 50% -200px, rgba(235, 83, 23, 0.22), transparent 60%),
    radial-gradient(900px 420px at 12% 20%, rgba(255, 255, 255, 0.06), transparent 70%),
    var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
main { display: block; }

h1, h2, h3, h4 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  margin: 0 0 var(--space-3);
  color: var(--text);
}
h1 { font-size: clamp(2.6rem, 4vw, 3.8rem); line-height: 1.1; }
h2 { font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1.15; }
h3 { font-size: 1.2rem; line-height: 1.3; }
p { margin: 0 0 var(--space-4); color: var(--muted); }

a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }

button, .btn { cursor: pointer; }

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

.section { padding: var(--space-9) 0; }
.section--tight { padding: var(--space-7) 0; }
.section--panel { padding: var(--space-8) 0; }
.section-heading { text-align: center; margin-bottom: var(--space-6); }
.section-heading p { max-width: 760px; margin: 0 auto; }

.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.text-center { text-align: center; }
.muted { color: var(--muted); }

.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
  line-height: 1.1;
  transition: transform 0.1s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(235, 83, 23, 0.35);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-strong); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.14); }

.btn-muted {
  background: #2a2d34;
  color: #e6e6e6;
  border-color: #343844;
}
.btn-muted:hover { background: #343844; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.badge-accent { background: var(--accent); color: #fff; }
.badge-muted { background: rgba(255, 255, 255, 0.08); color: #f0f0f0; }
.badge-neutral { background: #262a31; color: #dcdcdc; border: 1px solid rgba(255, 255, 255, 0.08); }
.badge-pill { border-radius: 999px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 8, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-4);
  padding: 16px 0;
}
.logo img { height: 28px; width: auto; }
.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: var(--muted);
  font-weight: 500;
}
.primary-nav a { color: inherit; font-size: 0.95rem; }
.primary-nav a[aria-current="page"] { color: #fff; }

.header-search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}
.header-search input {
  width: 0;
  opacity: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  transition: width 0.2s ease, opacity 0.2s ease, padding 0.2s ease;
}
.header-search:focus-within input,
.header-search:hover input {
  width: 160px;
  opacity: 1;
  padding: 4px 8px;
}
.header-search input:focus { outline: none; }
.header-search button {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-ctas { display: flex; align-items: center; gap: 16px; }
.header-link { color: var(--muted); font-size: 0.95rem; }
.header-link:hover { color: #fff; }

/* Hide mobile inline Sign In by default (shown only on small screens) */
.primary-nav .header-link--mobile-signin {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  text-align: left;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("/assets/img/home/hero-bg.jpg") center/cover no-repeat;
  filter: saturate(1.05) brightness(0.75);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.15));
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  margin: 0;
  padding: 140px 0 120px;
}
.hero-title { margin-top: var(--space-4); }
.hero-subtitle { font-size: 1.1rem; color: #d7dbe2; margin-bottom: var(--space-5); }
.hero--home { text-align: center; }
.hero--home .hero-content { margin: 0 auto; }
.hero .badge { margin-bottom: var(--space-2); }
.hero-ctas { display: flex; justify-content: flex-start; }
.hero--home .hero-ctas { justify-content: center; }

/* Spacing between hero buttons */
.hero-ctas > .btn + .btn {
  margin-left: var(--space-3);
}
.hero--schools .hero-content {
  max-width: var(--max-width);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
  gap: var(--space-7);
  padding: var(--space-8) 0;
  margin: 0 auto;
}
.hero--schools .hero-media {
  border-radius: 24px;
  min-height: 360px;
  height: clamp(300px, 32vw, 440px);
  background: url("/assets/img/home/students-watch-large-screen-displaying-colorful-nebula-classroom-setting_296091-21548.avif") center/cover no-repeat;
  box-shadow: var(--shadow);
}

/* Schools hero layout */
.hero--schools {
  min-height: auto;
}
.hero--schools::after {
  content: none;
}
.hero-schools {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--space-7);
  align-items: center;
  padding: 120px 0 96px;
}
.hero-schools-text .hero-title { font-size: clamp(2.4rem, 3.4vw, 3.2rem); }
.hero-schools-media {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-schools-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero primary CTA size */
.hero-ctas .btn-primary {
  padding: 14px 36px;
  font-size: 1rem;
}

/* Why Digital Stage */
.feature-grid { margin-top: var(--space-6); }
.feature-card {
  background: #21242b;
  border: 1px solid #2c3038;
  border-radius: var(--radius-sm);
  padding: var(--space-5);
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
}
.feature-icon .icon {
  width: 24px;
  height: 24px;
}

/* Schools – Why Schools Choose section */
#why-schools {
  text-align: center;
}
#why-schools > .container > p {
  max-width: 720px;
  margin: 0 auto var(--space-6);
}
#why-schools .grid .card {
  text-align: left;
}
/* Icon heading inside Why Schools cards */
.feature-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.feature-header h3 {
  margin: 0;
}

/* New Releases */
.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.embed--beacon {
  margin-top: var(--space-5);
  padding: var(--space-5);
  border-radius: 20px;
  background: #11131a;
  border: 1px solid #1d2128;
  min-height: 150px;
}

/* Pricing */
.pricing-grid { align-items: stretch; }
.plan-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan {
  background: #1a1d23;
  border: 1px solid #2b2f38;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-height: 100%;
}
.plan--featured { border-color: rgba(235, 83, 23, 0.45); box-shadow: 0 18px 40px rgba(235, 83, 23, 0.15); }
.plan .price {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}
.plan .price .per { font-size: 0.95rem; color: var(--muted); font-weight: 500; }
.plan-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  color: #d1d6df;
}
.plan-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; }
.plan-features .icon { color: var(--accent); margin-top: 2px; }
.plan .actions { margin-top: auto; }

/* Schools pricing buttons */
#school-plans .plan .actions .btn {
  width: 100%;
  justify-content: center;
}

.pricing-footer {
  margin-top: var(--space-6);
}

/* Schools highlight */
.schools-highlight {
  background: radial-gradient(800px 320px at 10% 20%, rgba(235, 83, 23, 0.18), transparent 60%);
}
.schools-highlight .badge { margin-bottom: var(--space-4); }
.schools-grid { align-items: center; margin-top: var(--space-6); }
.schools-media {
  border-radius: 20px;
  overflow: hidden;
  background: #111317;
  background-image: url("/assets/img/home/students-watch-large-screen-displaying-colorful-nebula-classroom-setting_296091-21548.avif");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  min-height: 280px;
  position: relative;
}
.schools-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.35));
}
.schools-list {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 var(--space-5);
  display: grid;
  gap: 12px;
}
.schools-list li { display: flex; gap: 12px; align-items: flex-start; }
.schools-list h3 { margin: 0 0 4px; font-size: 1rem; }
.schools-list p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.icon-badge {
  color: #ffffff;
  background: var(--accent);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.icon-badge .icon {
  width: 24px;
  height: 24px;
}

/* Student Access Add-On */
.student-addon {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  background: #101117;
  border: 1px solid var(--accent);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.student-addon-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.1fr);
  gap: var(--space-6);
  align-items: stretch;
}
.student-addon-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.student-addon-heading-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}
.student-addon-heading-row h2 {
  margin-bottom: var(--space-2);
}
.student-addon-tag {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}
.student-addon-price-row {
  margin-top: var(--space-3);
}
.student-addon .price {
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
}
.student-addon .price .currency {
  font-size: 1.6rem;
  vertical-align: baseline;
}
.student-addon .price .per {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
  margin-left: 6px;
}
.student-addon-features {
  margin-top: var(--space-4);
  grid-template-columns: 1fr;
}
.student-addon-features li {
  font-size: 0.96rem;
}

.student-addon-aside {
  display: flex;
  align-items: stretch;
}
.student-addon-panel {
  background: #181a20;
  border-radius: 20px;
  border: 1px solid #262a33;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  justify-content: space-between;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.student-addon-perfect {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 var(--space-4);
  display: grid;
  gap: 8px;
  color: #e0e3ea;
}
.student-addon-perfect li {
  position: relative;
  padding-left: 16px;
  font-size: 0.95rem;
}
.student-addon-perfect li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}
.student-addon-aside .actions {
  margin-top: var(--space-2);
}
.student-addon-aside .btn-primary {
  padding-inline: 28px;
}

@media (max-width: 900px) {
  .student-addon-aside {
    padding-top: var(--space-5);
  }
  .student-addon-layout {
    grid-template-columns: 1fr;
  }
}

/* Subject areas grid */
#subject-areas {
  text-align: center;
}
#subject-areas > .container > p {
  max-width: 720px;
  margin: 0 auto var(--space-6);
}
.subject-grid {
  margin-top: var(--space-6);
}
.subject-card {
  background: #181a20;
  border-radius: 18px;
  border: 1px solid #262a33;
  padding: var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.subject-card h3 {
  margin: var(--space-4) 0 0;
  font-size: 1.05rem;
}
.subject-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.subject-icon-svg {
  width: 36px;
  height: 36px;
  display: block;
}
.subject-icon-svg .cls-1 {
  fill: #ffffff;
}
.subject-icon-svg .cls-2,
.subject-icon-svg .cls-3 {
  fill: none;
  stroke: #ffffff;
  stroke-width: 24;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Testimonials */
#testimonials h2 {
  text-align: center;
  margin-bottom: var(--space-6);
}
.testimonial-grid {
  align-items: stretch;
}
.testimonial-card {
  background: #181a20;
  border-radius: var(--radius);
  border: 1px solid #2a2e36;
}
.testimonial-card blockquote {
  margin: 0;
}
.testimonial-card p {
  color: #f5f5f7;
  font-style: italic;
  font-size: 1rem;
}
.testimonial-card footer {
  margin-top: var(--space-4);
  color: var(--muted);
  font-size: 0.95rem;
}
.testimonial-card footer strong {
  color: #ffffff;
}

/* FAQs */
#faqs h2 {
  text-align: center;
  margin-bottom: var(--space-3);
}
#faqs > .container > p {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-6);
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.faq-card {
  background: #181a20;
  border-radius: 18px;
  border: 1px solid #2a2e36;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-card:hover {
  border-color: #3a3f4a;
}
.faq-card-inner {
  padding: var(--space-5);
}
.faq-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}
.faq-card-header h3 {
  margin: 0;
  font-size: 1.05rem;
}
.faq-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}
.faq-icon svg {
  width: 20px;
  height: 20px;
}
.faq-card--open .faq-icon {
  color: var(--accent);
  transform: rotate(180deg);
}
.faq-answer {
  margin: 0;
  text-align: left;
  color: var(--muted);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 220ms ease, opacity 220ms ease, transform 220ms ease;
}
.faq-card--open .faq-answer {
  margin-top: var(--space-4);
  max-height: 400px; /* large enough for typical answers */
  opacity: 1;
  transform: translateY(0);
}

/* Ready to watch */
.cta-panel {
  text-align: center;
  padding: var(--space-8) 0 var(--space-7);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Newsletter */
.newsletter-panel {
  background: #1a1d23;
  border-radius: 24px;
  padding: var(--space-7);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-6);
  border: 1px solid #252a33;
  min-height: 320px;
}
.newsletter-form .newsletter-controls {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-3);
  align-items: center;
  flex-wrap: wrap;
}
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #2f333c;
  background: #0f1116;
  color: #fff;
}
.newsletter-form input[type="email"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(235, 83, 23, 0.2);
  border-color: var(--accent);
}
.newsletter-media {
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(235, 83, 23, 0.25), rgba(17, 19, 24, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  position: relative;
}
.newsletter-media::before {
  content: "";
  width: 80px;
  height: 80px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.08);
}
.newsletter-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  font-size: 0;
  color: transparent;
}

/* App download */
.app-download {
  background: #000;
  color: #fff;
  text-align: center;
}
.app-download .container {
  max-width: 900px;
}
.app-icon {
  width: auto;
  height: auto;
  border-radius: 0;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
}
.app-icon .icon {
  width: clamp(40px, 5vw, 64px);
  height: clamp(40px, 5vw, 64px);
  color: var(--accent);
}
.app-download h2 {
  color: #fff;
  font-size: 2.5rem;
  margin: 0 0 var(--space-2);
}
.app-download p {
  color: #a9b4c2;
  font-size: 1.125rem;
  margin: 0 0 var(--space-4);
}
.app-badges {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-4);
}
.app-badge {
  border-radius: 12px;
  overflow: hidden;
  display: inline-flex;
  background: transparent;
  border: none;
}
.app-badge img {
  display: block;
  height: 83px;
  object-fit: contain;
}
.app-badge--apple img {
  height: 56px;
}
.site-footer .app-badge--google {
  margin-left: 12px;
}
.site-footer .app-badge--apple img {
  height: 40px;
}
.site-footer .app-badge--google img {
  height: 58px;
}

/* Footer */
.site-footer {
  background: #070709;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: var(--space-8);
}
.footer-inner { padding: var(--space-7) 0; }
.footer-ack {
  max-width: 860px;
  color: var(--muted);
  margin-bottom: var(--space-6);
}
.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  padding: var(--space-5) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-columns h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}
.footer-columns ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-columns a { color: var(--muted); font-size: 0.95rem; }
.footer-columns a:hover { color: #fff; }
.footer-columns .app-badges { justify-content: flex-start; margin-top: var(--space-3); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-top: var(--space-5);
}
.footer-bottom .footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-bottom .footer-brand img { height: 24px; width: auto; }
.footer-meta { color: var(--muted); font-size: 0.9rem; }
.footer-logos {
  display: flex;
  gap: 18px;
  align-items: center;
}
.footer-logos img { height: 56px; width: auto; }

/* Responsive */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  /* Give footer content extra breathing room on small screens */
  .site-footer .footer-inner {
    padding-left: 32px;
    padding-right: 24px;
  }
  .header-inner { grid-template-columns: 1fr; justify-items: center; gap: var(--space-3); }
  .primary-nav { flex-wrap: wrap; }
  .header-ctas { justify-content: center; }
  .section-header-row { flex-direction: column; align-items: flex-start; }
  .newsletter-panel { grid-template-columns: 1fr; }
  .schools-grid { grid-template-columns: 1fr; }
  .hero--schools .hero-content { grid-template-columns: 1fr; padding: 100px 0; }
  .hero--schools .hero-media { min-height: 240px; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: var(--space-7) 0; }
  .header-inner { padding: 6px 0 4px; gap: var(--space-2); }
  .primary-nav { gap: 16px; }
  .hero-content { padding: 120px 0 100px; }
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1rem; }
  /* Mobile header search: show icon, expand on tap (same behaviour as desktop, but with slight spacing) */
  .header-search {
    order: 10;
    margin-top: 4px;
  }
  .header-search:focus-within input,
  .header-search:hover input {
    width: 220px;
  }
  /* Add extra left padding to Schools hero text on small screens */
  .hero--schools .hero-copy {
    padding-left: 32px;
    padding-right: 24px;
  }
  /* On small screens, move Sign In inline with primary nav and hide header CTAs */
  .primary-nav .header-link--mobile-signin {
    display: inline-flex;
    align-items: center;
  }
  .header-ctas {
    display: none;
  }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
