/* One continuous, subdued page backdrop. Sections never paint over it. */
:root {
  --bg-paper: #fcf8ef;
  --page-scene: url("assets/backgrounds/scene-welcome-v3.webp");
  --page-scene-opacity: .2;
}
body {
  position: relative;
  isolation: isolate;
  background: var(--bg-paper);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--page-scene) center / cover no-repeat;
  opacity: var(--page-scene-opacity);
}
.site-header {
  background: rgb(252 248 239 / 96%);
  box-shadow: 0 1px 0 #526c3d12, 0 8px 30px #5b654904;
}
main > section[class], .site-footer {
  position: relative;
  background: transparent;
  border-radius: 0;
}
main > section::before, main > section::after, .site-footer::before {
  content: none;
  display: none;
}
.hero-text, .section-heading > div > p, .pricing-intro, .start-heading > p { color: #4d6048; }
.stat small { color: #526149; }
.quiz-shell {
  background: linear-gradient(115deg, #edf2e3, #f0f3e7);
  box-shadow: inset 0 0 0 1px #9bb18118;
}
.contact-form-card { background: linear-gradient(135deg, #f2f4e7, #e9efdc); }
.contact-info-card { background: linear-gradient(150deg, #2c513c, #204630); }
.footer-brand p, .footer-brand small, .footer-bottom { color: #526247; }
.footer-grid > div > a:not(.brand) { color: #4f6347; }
@media (max-width: 680px) {
  :root {
    --page-scene: url("assets/backgrounds/scene-mobile-warm-v3.webp");
    --page-scene-opacity: .14;
  }
}
@media (forced-colors: active) {
  body::before { display: none; }
  body, main > section[class], .site-footer, .quiz-shell,
  .contact-form-card, .contact-info-card { background-image: none; }
}

@media (min-width: 1241px) {
  .nav a { font-size: 15px; }
}
@media (max-width: 1240px) {
  .nav a { font-size: 16px; }
}

/* Give the primary links breathing room and animate the active-section marker. */
.nav { gap: clamp(28px, 2.2vw, 36px); }
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  transition: color .2s ease;
  text-decoration: none;
}
.nav a.is-active { color: var(--green); text-decoration: none; }
@media (max-width: 1240px) {
  .nav { gap: 12px 24px; }
  .nav a { padding: 16px; }
}
@media (max-width: 820px) {
  .nav { gap: 10px 14px; }
  .nav a { padding: 14px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .nav a { transition: none; }
}
