/* Landing page card effects for a desktop pointer (hb-cardfx-20261201.js):
   - spotlight: a soft glow follows the pointer across the card, under its text,
     and fades out when the pointer leaves;
   - tilt: the card leans a few degrees toward the pointer and settles back.
   The tilt uses the separate `rotate` property, so it adds to the transforms the
   cards already use for their reveal and hover lift instead of replacing them. */
:where(.hb-hero article.hb-fc, .hb-product-tour-card, .hb-feature-card, #wn-visit-offers article,
  .hb-condition, .hb-ember-card, .cqx-card, .hb-privacy-card, .hb-final-card) {
  position: relative;
  isolation: isolate;
}
.hb-spot {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(360px circle at var(--hb-sx, 50%) var(--hb-sy, 50%), var(--hb-spot-color, rgba(255, 255, 255, .6)), transparent 62%);
  transition: opacity .35s ease;
}
[data-hb-spot="dark"] > .hb-spot { --hb-spot-color: rgba(216, 251, 150, .17); }
[data-hb-spot="light"] > .hb-spot { --hb-spot-color: rgba(255, 255, 255, .72); }
[data-hb-spot-on] > .hb-spot { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hb-spot { transition: none; } }
@media not all and (hover: hover) and (pointer: fine) { .hb-spot { display: none; } }

/* Depth for the tilt: the cards' containers get a perspective. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  :where(:has(> article.hb-fc), :has(> .hb-product-tour-card), :has(> .hb-feature-card), #wn-visit-offers,
    :has(> .hb-condition), :has(> .hb-ember-card), :has(> .cqx-card), :has(> .hb-privacy-card), :has(> .hb-final-card)) {
    perspective: 1400px;
  }
}
