/* CP424: gentle ambient light in the approved POSguard palette.
   These layers only add light; they do not change any base colour or surface. */
html body.pg-visual-system .page.home-shell::after,
html body.pg-visual-system .page.subpage-shell::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: -1 !important;
  pointer-events: none !important;
  background-image:
    radial-gradient(ellipse 42% 25% at 7% 11%, rgba(16, 156, 255, .13), transparent 72%),
    radial-gradient(ellipse 36% 21% at 93% 20%, rgba(255, 22, 60, .09), transparent 72%),
    radial-gradient(ellipse 48% 28% at 52% 72%, rgba(16, 156, 255, .045), transparent 74%) !important;
  opacity: .7 !important;
  animation: cp424-ambient-breathe 20s ease-in-out infinite alternate !important;
}

@keyframes cp424-ambient-breathe {
  from { opacity: .54; }
  to { opacity: .78; }
}

/* Quietly lift the page's important cards when the pointer or keyboard reaches them. */
html body.pg-visual-system main#main :is(
  .pg-home-compare-card,
  .pg-bento-card,
  .pg-stress-card,
  .pgd-product-card,
  .pgd-image-card,
  .pg-catalogue-card,
  .pg-category-card,
  .pg-partner-section
) {
  transition: box-shadow .28s ease, border-color .28s ease !important;
}

html body.pg-visual-system main#main :is(
  .pg-home-compare-card,
  .pg-bento-card,
  .pg-stress-card,
  .pgd-product-card,
  .pgd-image-card,
  .pg-catalogue-card,
  .pg-category-card,
  .pg-partner-section
):is(:hover, :focus-within) {
  border-color: rgba(16, 156, 255, .34) !important;
  box-shadow:
    inset 0 1px 0 rgba(16, 156, 255, .08),
    0 12px 32px rgba(0, 0, 0, .22),
    0 0 24px rgba(16, 156, 255, .09) !important;
}

/* Keep the existing red/blue button fills and add only a soft palette-matched halo. */
html body.pg-visual-system :is(a.cta, button.cta, .pg-home-quote, .pg-quote-submit) {
  box-shadow: 0 8px 22px rgba(255, 22, 60, .18), 0 0 24px rgba(255, 22, 60, .09) !important;
}

html body.pg-visual-system :is(a.cta, button.cta, .pg-home-quote, .pg-quote-submit):is(:hover, :focus-visible) {
  box-shadow: 0 10px 26px rgba(255, 22, 60, .24), 0 0 30px rgba(255, 22, 60, .14) !important;
}

html body.pg-visual-system a.ghost:is(:hover, :focus-visible),
html body.pg-visual-system button.ghost:is(:hover, :focus-visible) {
  box-shadow: 0 0 22px rgba(16, 156, 255, .12) !important;
}

@media (max-width: 768px) {
  html body.pg-visual-system .page.home-shell::after,
  html body.pg-visual-system .page.subpage-shell::after {
    opacity: .52 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body.pg-visual-system .page.home-shell::after,
  html body.pg-visual-system .page.subpage-shell::after {
    animation: none !important;
    opacity: .58 !important;
  }

  html body.pg-visual-system main#main :is(
    .pg-home-compare-card,
    .pg-bento-card,
    .pg-stress-card,
    .pgd-product-card,
    .pgd-image-card,
    .pg-catalogue-card,
    .pg-category-card,
    .pg-partner-section
  ) {
    transition: none !important;
  }
}
