:root {
  --public-mint-light: #81d8aa26;
  --public-violet-light: #a697df24;
}

html[data-theme=light] {
  --public-mint-light: #7cc69f30;
  --public-violet-light: #a597d025;
}

body > main {
  background-image:
    radial-gradient(ellipse 42rem 25rem at 10% 0, var(--public-mint-light), transparent 78%),
    radial-gradient(ellipse 36rem 27rem at 98% 20rem, var(--public-violet-light), transparent 78%);
}

main :is(h1, .section h2) {
  text-shadow: 0 0 26px var(--public-mint-light);
}

main :is(.learning-section, .pricing-section, .trial-section) {
  background-image: radial-gradient(ellipse 40rem 19rem at 90% 5%, var(--public-violet-light), transparent 78%);
}

body > main,
main :is(.learning-section,.pricing-section,.trial-section) {
  border-radius: 14px;
}

/* Match the dashboard's ambient lighting on the public homepage in both themes. */
html[data-theme] body.homepage-neutral {
  --homepage-ambient-light:
    radial-gradient(ellipse 75% 13rem at 5% 0, #83dcb92c, transparent 85%),
    radial-gradient(ellipse 65% 13rem at 98% 0, #a697df30, transparent 85%);
}

html[data-theme] body.homepage-neutral #main > section,
html[data-theme] body.homepage-neutral .dashboard-demo .demo-chart {
  background-image: var(--homepage-ambient-light) !important;
  border-radius: 14px;
}

/* The same highlights need more opacity on pale surfaces. */
html[data-theme=light] body.homepage-neutral {
  --homepage-ambient-light:
    radial-gradient(ellipse 75% 13rem at 5% 0, #83dcb966, transparent 85%),
    radial-gradient(ellipse 65% 13rem at 98% 0, #a697df66, transparent 85%);
}

html[data-theme=light] body.homepage-neutral #main > .hero {
  background-color: #d7ded8 !important;
}

html[data-theme=light] body.homepage-neutral .hero-glow {
  opacity: .18;
}
