/* Compact cinematic inner-page hero refinement v2 */

body[data-gl-route="features"] .gl-page-hero,
body[data-gl-route="students"] .gl-page-hero,
body[data-gl-route="teachers"] .gl-page-hero,
body[data-gl-route="schools"] .gl-page-hero,
body[data-gl-route="adults"] .gl-page-hero {
  min-height: 360px !important;
  padding: 22px 0 22px !important;
}

body[data-gl-route="features"] .gl-page-hero-inner,
body[data-gl-route="students"] .gl-page-hero-inner,
body[data-gl-route="teachers"] .gl-page-hero-inner,
body[data-gl-route="schools"] .gl-page-hero-inner,
body[data-gl-route="adults"] .gl-page-hero-inner {
  min-height: 310px !important;
  padding: 30px 43% 28px 36px !important;
  border-radius: 24px !important;
}

body[data-gl-route="features"] .gl-page-hero .gl-eyebrow,
body[data-gl-route="students"] .gl-page-hero .gl-eyebrow,
body[data-gl-route="teachers"] .gl-page-hero .gl-eyebrow,
body[data-gl-route="schools"] .gl-page-hero .gl-eyebrow,
body[data-gl-route="adults"] .gl-page-hero .gl-eyebrow {
  padding: 6px 10px !important;
  font-size: .72rem !important;
}

body[data-gl-route="features"] .gl-page-hero h1,
body[data-gl-route="students"] .gl-page-hero h1,
body[data-gl-route="teachers"] .gl-page-hero h1,
body[data-gl-route="schools"] .gl-page-hero h1,
body[data-gl-route="adults"] .gl-page-hero h1 {
  width: 100% !important;
  max-width: 760px !important;
  margin: 12px 0 10px !important;
  font-size: clamp(2.2rem, 2.7vw, 3.2rem) !important;
  line-height: 1 !important;
  letter-spacing: -.04em !important;
  text-wrap: wrap !important;
}

body[data-gl-route="features"] .gl-page-hero p,
body[data-gl-route="students"] .gl-page-hero p,
body[data-gl-route="teachers"] .gl-page-hero p,
body[data-gl-route="schools"] .gl-page-hero p,
body[data-gl-route="adults"] .gl-page-hero p {
  max-width: 660px !important;
  font-size: .9rem !important;
  line-height: 1.5 !important;
}

body[data-gl-route="features"] .gl-page-hero::after,
body[data-gl-route="students"] .gl-page-hero::after,
body[data-gl-route="teachers"] .gl-page-hero::after,
body[data-gl-route="schools"] .gl-page-hero::after,
body[data-gl-route="adults"] .gl-page-hero::after {
  right: max(20px, calc((100vw - 1240px) / 2 + 22px)) !important;
  width: clamp(360px, 33vw, 470px) !important;
  height: 270px !important;
  border-radius: 20px !important;
}

body[data-gl-route="features"] .gl-content-section,
body[data-gl-route="students"] .gl-content-section,
body[data-gl-route="teachers"] .gl-content-section,
body[data-gl-route="schools"] .gl-content-section,
body[data-gl-route="adults"] .gl-content-section {
  padding-top: 0 !important;
}

/* Pricing: keep the package grid visible without a tall intro. */
body[data-gl-route="pricing"] .gl-page-hero {
  padding: 34px 0 18px !important;
}
body[data-gl-route="pricing"] .gl-page-hero-inner {
  max-width: 980px !important;
}
body[data-gl-route="pricing"] .gl-page-hero h1 {
  max-width: 940px !important;
  margin: 12px 0 10px !important;
  font-size: clamp(2.45rem, 3.2vw, 3.6rem) !important;
  line-height: 1 !important;
  letter-spacing: -.04em !important;
  text-wrap: wrap !important;
}
body[data-gl-route="pricing"] .gl-page-hero p {
  max-width: 790px !important;
  font-size: .94rem !important;
  line-height: 1.5 !important;
}
body[data-gl-route="pricing"] .gl-content-section {
  padding: 8px 0 56px !important;
}
body[data-gl-route="pricing"] .gl-price-card {
  min-height: 210px !important;
}

@media (max-width: 1080px) {
  body[data-gl-route="features"] .gl-page-hero,
  body[data-gl-route="students"] .gl-page-hero,
  body[data-gl-route="teachers"] .gl-page-hero,
  body[data-gl-route="schools"] .gl-page-hero,
  body[data-gl-route="adults"] .gl-page-hero {
    min-height: auto !important;
    padding-top: 22px !important;
  }

  body[data-gl-route="features"] .gl-page-hero-inner,
  body[data-gl-route="students"] .gl-page-hero-inner,
  body[data-gl-route="teachers"] .gl-page-hero-inner,
  body[data-gl-route="schools"] .gl-page-hero-inner,
  body[data-gl-route="adults"] .gl-page-hero-inner {
    min-height: 535px !important;
    padding: 30px 34px 285px !important;
  }

  body[data-gl-route="features"] .gl-page-hero h1,
  body[data-gl-route="students"] .gl-page-hero h1,
  body[data-gl-route="teachers"] .gl-page-hero h1,
  body[data-gl-route="schools"] .gl-page-hero h1,
  body[data-gl-route="adults"] .gl-page-hero h1 {
    max-width: 800px !important;
    font-size: clamp(2.15rem, 5.2vw, 3rem) !important;
  }

  body[data-gl-route="features"] .gl-page-hero::after,
  body[data-gl-route="students"] .gl-page-hero::after,
  body[data-gl-route="teachers"] .gl-page-hero::after,
  body[data-gl-route="schools"] .gl-page-hero::after,
  body[data-gl-route="adults"] .gl-page-hero::after {
    top: auto !important;
    bottom: 30px !important;
    left: 50% !important;
    right: auto !important;
    width: min(calc(100% - 68px), 620px) !important;
    height: 225px !important;
    transform: translateX(-50%) !important;
  }
}

@media (max-width: 700px) {
  body[data-gl-route="features"] .gl-page-hero,
  body[data-gl-route="students"] .gl-page-hero,
  body[data-gl-route="teachers"] .gl-page-hero,
  body[data-gl-route="schools"] .gl-page-hero,
  body[data-gl-route="adults"] .gl-page-hero {
    padding: 16px 0 20px !important;
  }

  body[data-gl-route="features"] .gl-page-hero-inner,
  body[data-gl-route="students"] .gl-page-hero-inner,
  body[data-gl-route="teachers"] .gl-page-hero-inner,
  body[data-gl-route="schools"] .gl-page-hero-inner,
  body[data-gl-route="adults"] .gl-page-hero-inner {
    min-height: 500px !important;
    padding: 24px 22px 255px !important;
    border-radius: 20px !important;
  }

  body[data-gl-route="features"] .gl-page-hero h1,
  body[data-gl-route="students"] .gl-page-hero h1,
  body[data-gl-route="teachers"] .gl-page-hero h1,
  body[data-gl-route="schools"] .gl-page-hero h1,
  body[data-gl-route="adults"] .gl-page-hero h1 {
    font-size: clamp(2rem, 9.8vw, 2.85rem) !important;
  }

  body[data-gl-route="features"] .gl-page-hero::after,
  body[data-gl-route="students"] .gl-page-hero::after,
  body[data-gl-route="teachers"] .gl-page-hero::after,
  body[data-gl-route="schools"] .gl-page-hero::after,
  body[data-gl-route="adults"] .gl-page-hero::after {
    bottom: 28px !important;
    width: calc(100% - 44px) !important;
    height: 200px !important;
    border-radius: 16px !important;
  }

  body[data-gl-route="pricing"] .gl-page-hero {
    padding: 26px 0 14px !important;
  }
  body[data-gl-route="pricing"] .gl-page-hero h1 {
    font-size: clamp(2.15rem, 9.5vw, 2.9rem) !important;
  }
}
