/* ScholarOS primary-page hero atmosphere
   A soft light source with no visible circle, color band, or clipped edge. */
:root {
  --scholaros-hero-glow: radial-gradient(
    ellipse at 50% 32%,
    rgba(13,76,232,.065) 0%,
    rgba(13,76,232,.042) 24%,
    rgba(13,76,232,.02) 44%,
    rgba(13,76,232,.007) 61%,
    rgba(13,76,232,0) 79%
  );
  --scholaros-soft-hero-glow: radial-gradient(
    ellipse at 50% 32%,
    rgba(13,76,232,.042) 0%,
    rgba(13,76,232,.026) 24%,
    rgba(13,76,232,.011) 44%,
    rgba(13,76,232,.003) 61%,
    rgba(13,76,232,0) 79%
  );
}

body[data-page="overview"] main > .page-hero.home.overview-hero,
body[data-page="writing"] main > .writing-hero,
body[data-page="writing"] main > .page-hero,
body[data-page="reading"] main > .capx-writing-rhythm-hero,
body[data-page="citation"] main > .capx-writing-rhythm-hero,
body[data-page="citation"] main > .page-hero,
body[data-page="formatting"] main > .capx-writing-rhythm-hero,
body[data-page="formatting"] main > .page-hero,
body[data-page="use-cases"] main > .usecase-hero,
body[data-page="pricing"] main > .pricing-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #fff;
}

body[data-page="overview"] main > .overview-hero::before,
body[data-page="writing"] main > .writing-hero::before,
body[data-page="writing"] main > .page-hero::before,
body[data-page="reading"] main > .capx-writing-rhythm-hero::before,
body[data-page="citation"] main > .capx-writing-rhythm-hero::before,
body[data-page="citation"] main > .page-hero::before,
body[data-page="formatting"] main > .capx-writing-rhythm-hero::before,
body[data-page="formatting"] main > .page-hero::before,
body[data-page="use-cases"] main > .usecase-hero::before,
body[data-page="pricing"] main > .pricing-hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 18px;
  right: auto;
  left: 50%;
  width: min(1100px,130vw);
  height: min(700px,92vw);
  border-radius: 0;
  transform: translateX(-50%);
  background: var(--scholaros-hero-glow);
  pointer-events: none;
}

/* Keep the restrained Overview color energy across primary marketing pages. */
body[data-page="overview"] main > .overview-hero::before,
body[data-page="writing"] main > .writing-hero::before,
body[data-page="writing"] main > .page-hero::before,
body[data-page="reading"] main > .capx-writing-rhythm-hero::before,
body[data-page="citation"] main > .capx-writing-rhythm-hero::before,
body[data-page="citation"] main > .page-hero::before,
body[data-page="formatting"] main > .capx-writing-rhythm-hero::before,
body[data-page="formatting"] main > .page-hero::before,
body[data-page="use-cases"] main > .usecase-hero::before,
body[data-page="pricing"] main > .pricing-hero::before {
  background: var(--scholaros-soft-hero-glow);
}

/* Overview keeps its light source close to the headline so the orbit glow
   below reads as a separate layer of the page hierarchy. */
body[data-page="overview"] main > .overview-hero::before {
  width: min(880px,116vw);
  height: min(480px,80vw);
}

body[data-page="overview"][data-lang="en"] main > .overview-hero::before {
  background: var(--scholaros-hero-glow);
}

body[data-page="overview"] main > .overview-hero > *,
body[data-page="writing"] main > .writing-hero > *,
body[data-page="writing"] main > .page-hero > *,
body[data-page="reading"] main > .capx-writing-rhythm-hero > *,
body[data-page="citation"] main > .capx-writing-rhythm-hero > *,
body[data-page="citation"] main > .page-hero > *,
body[data-page="formatting"] main > .capx-writing-rhythm-hero > *,
body[data-page="formatting"] main > .page-hero > *,
body[data-page="use-cases"] main > .usecase-hero > *,
body[data-page="pricing"] main > .pricing-hero > * {
  position: relative;
  z-index: 1;
}
