/* CTA lustre system — mobile-first, 25.09.2026.
   Motion is added only to real button surfaces by cta-lustre.js. */
[data-cta-lustre] {
  --cta-lustre-glow-soft: rgba(248, 248, 244, .2);
  --cta-lustre-glow-strong: rgba(248, 248, 244, .5);
  --cta-lustre-edge: rgba(255, 255, 255, .72);
  --cta-lustre-core: rgba(255, 255, 255, .96);
  --cta-lustre-trail: rgba(15, 122, 90, .25);
  --cta-lustre-base-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  --cta-lustre-stagger: 0s;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transform: translateZ(0);
  box-shadow:
    var(--cta-lustre-base-shadow),
    0 0 14px var(--cta-lustre-glow-soft);
  transition:
    background-color .2s ease,
    border-color .2s ease,
    color .2s ease,
    transform .18s cubic-bezier(.22, 1, .36, 1),
    box-shadow .24s ease;
}

[data-cta-lustre] > * {
  position: relative;
  z-index: 2;
}

[data-cta-lustre]::before {
  display: none;
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: auto;
  left: -30%;
  width: 30%;
  height: 3px;
  content: "";
  pointer-events: none;
  background: linear-gradient(
    104deg,
    transparent 0%,
    transparent 17%,
    var(--cta-lustre-trail) 34%,
    var(--cta-lustre-core) 50%,
    var(--cta-lustre-trail) 66%,
    transparent 83%,
    transparent 100%
  );
  opacity: 0;
  filter: drop-shadow(0 0 7px var(--cta-lustre-glow-strong));
  transform: translate3d(-230%, 0, 0);
  will-change: transform, opacity;
}

/* The flyer previously had its own higher-specificity shimmer. This makes the
   shared track the single source of truth instead of layering two sweeps. */
.offer-popup-copy .cta[data-cta-source="site_offer_50"] {
  --cta-lustre-glow-soft: rgba(217, 45, 39, .28);
  --cta-lustre-glow-strong: rgba(217, 45, 39, .68);
  --cta-lustre-edge: rgba(255, 255, 255, .7);
  --cta-lustre-core: rgba(255, 255, 255, .96);
  --cta-lustre-trail: rgba(255, 224, 221, .31);
  box-shadow: 0 0 18px var(--cta-lustre-glow-soft);
}

.offer-popup-copy .cta[data-cta-source="site_offer_50"]::before {
  z-index: 3;
  top: 0;
  right: auto;
  bottom: auto;
  left: -30%;
  width: 30%;
  height: 3px;
  background: linear-gradient(
    104deg,
    transparent 0%,
    transparent 17%,
    var(--cta-lustre-trail) 34%,
    var(--cta-lustre-core) 50%,
    var(--cta-lustre-trail) 66%,
    transparent 83%,
    transparent 100%
  );
  opacity: 0;
  filter: drop-shadow(0 0 7px var(--cta-lustre-glow-strong));
  transform: translate3d(-230%, 0, 0);
  animation: none;
}

.offer-popup-copy .cta[data-cta-source="site_offer_50"] > span {
  z-index: 2;
}

/* The final action glows from the whole silhouette. Its soft diagonal light
   travels across the face of the button, never along the top edge. */
#final .final-slogan-action .day-zero-cta[data-cta-lustre] {
  --cta-lustre-glow-soft: rgba(61, 255, 139, .72);
  --cta-lustre-glow-strong: rgba(61, 255, 139, .9);
  border-color: transparent;
  background: linear-gradient(112deg, #34f783 0%, #64ff9e 45%, #23e878 100%);
  box-shadow:
    0 0 18px rgba(61, 255, 139, .82),
    0 0 46px rgba(38, 235, 113, .55),
    0 0 90px rgba(38, 235, 113, .29),
    inset 0 0 24px rgba(240, 255, 245, .18);
}

#final .final-slogan-action .day-zero-cta[data-cta-lustre]::before {
  display: block;
  z-index: 1;
  top: -28%;
  bottom: auto;
  left: -36%;
  width: 32%;
  height: 156%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(214, 255, 226, .06) 22%,
    rgba(235, 255, 240, .42) 50%,
    rgba(214, 255, 226, .06) 78%,
    transparent 100%);
  filter: blur(3px);
  transform: translate3d(-120%, 0, 0) skewX(-17deg);
}

#final .final-slogan-action .day-zero-cta[data-cta-lustre]::after { display: none; }

#final .final-slogan-action .day-zero-cta[data-cta-lustre].is-cta-lustre-live {
  animation: fitnessos-final-cta-bloom 4.8s ease-in-out infinite;
}

#final .final-slogan-action .day-zero-cta[data-cta-lustre].is-cta-lustre-live::before {
  animation: fitnessos-final-cta-sweep 4.8s ease-in-out infinite;
}

#final .final-slogan-action .day-zero-cta[data-cta-lustre]:hover,
#final .final-slogan-action .day-zero-cta[data-cta-lustre]:focus-visible {
  animation: none;
  box-shadow:
    0 0 28px rgba(93, 255, 154, .95),
    0 0 66px rgba(38, 235, 113, .72),
    0 0 115px rgba(38, 235, 113, .38),
    inset 0 0 28px rgba(240, 255, 245, .28);
}

@media (prefers-reduced-motion: reduce) {
  #final .final-slogan-action .day-zero-cta[data-cta-lustre]::before {
    display: none;
  }
}

@keyframes fitnessos-final-cta-bloom {
  0%, 100% {
    box-shadow:
      0 0 18px rgba(61, 255, 139, .82),
      0 0 46px rgba(38, 235, 113, .55),
      0 0 90px rgba(38, 235, 113, .29),
      inset 0 0 24px rgba(240, 255, 245, .18);
  }
  50% {
    box-shadow:
      0 0 28px rgba(93, 255, 154, .95),
      0 0 66px rgba(38, 235, 113, .72),
      0 0 115px rgba(38, 235, 113, .38),
      inset 0 0 28px rgba(240, 255, 245, .28);
  }
}

@keyframes fitnessos-final-cta-sweep {
  0%, 54% { opacity: 0; transform: translate3d(-120%, 0, 0) skewX(-17deg); }
  59% { opacity: .36; }
  72% { opacity: .72; transform: translate3d(470%, 0, 0) skewX(-17deg); }
  78%, 100% { opacity: 0; transform: translate3d(470%, 0, 0) skewX(-17deg); }
}

[data-cta-lustre]::after {
  display: none;
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  border: 1px solid transparent;
  background: transparent;
  box-shadow:
    inset 0 1px 0 var(--cta-lustre-edge),
    inset 0 -1px 0 rgba(9, 11, 12, .14);
  opacity: .46;
  will-change: opacity;
}

[data-cta-lustre].is-cta-lustre-live {
  animation:
    fitnessos-cta-lustre-halo 3.6s ease-in-out var(--cta-lustre-stagger) infinite;
}

[data-cta-lustre].is-cta-lustre-live::before {
  animation:
    fitnessos-cta-lustre-pass 4.8s cubic-bezier(.22, 1, .36, 1) var(--cta-lustre-stagger) infinite;
}

.offer-popup:not([hidden]) .offer-popup-copy .cta[data-cta-source="site_offer_50"][data-cta-lustre].is-cta-lustre-live::before {
  animation:
    fitnessos-cta-lustre-pass 4.8s cubic-bezier(.22, 1, .36, 1) var(--cta-lustre-stagger) infinite;
}

[data-cta-lustre].is-cta-lustre-live::after {
  animation:
    fitnessos-cta-lustre-edge 3.6s ease-in-out var(--cta-lustre-stagger) infinite;
}

@keyframes fitnessos-cta-lustre-pass {
  0%, 54% {
    opacity: 0;
    transform: translate3d(-230%, 0, 0);
  }
  58% { opacity: .32; }
  68% { opacity: .9; }
  80% {
    opacity: 0;
    transform: translate3d(650%, 0, 0);
  }
  100% {
    opacity: 0;
    transform: translate3d(650%, 0, 0);
  }
}

@keyframes fitnessos-cta-lustre-halo {
  0%, 100% {
    box-shadow:
      var(--cta-lustre-base-shadow),
      0 0 12px var(--cta-lustre-glow-soft);
  }
  50% {
    box-shadow:
      var(--cta-lustre-base-shadow),
      0 0 27px var(--cta-lustre-glow-strong);
  }
}

@keyframes fitnessos-cta-lustre-edge {
  0%, 100% { opacity: .38; }
  50% { opacity: .78; }
}

/* Red conversion surfaces keep the white glint and breathe in the site red. */
#hero .hero-action > .cta[data-cta-source="site_hero"][data-cta-lustre],
.offer-popup-copy .cta[data-cta-source="site_offer_50"][data-cta-lustre],
[data-sticky-price-cta][data-cta-lustre].is-offer-active {
  --cta-lustre-glow-soft: rgba(217, 45, 39, .28);
  --cta-lustre-glow-strong: rgba(217, 45, 39, .68);
  --cta-lustre-edge: rgba(255, 255, 255, .7);
  --cta-lustre-trail: rgba(255, 224, 221, .31);
}

/* Dark CTAs receive a restrained green edge so the effect remains visible on paper. */
.cta.dark[data-cta-lustre] {
  --cta-lustre-glow-soft: rgba(15, 122, 90, .2);
  --cta-lustre-glow-strong: rgba(15, 122, 90, .48);
  --cta-lustre-edge: rgba(255, 255, 255, .48);
  --cta-lustre-trail: rgba(74, 255, 138, .25);
}

/* The offer CTA is visually light despite carrying the historical .dark class. */
#offer .offer-copy > .cta[data-cta-source="site_offer"][data-cta-lustre] {
  --cta-lustre-glow-soft: rgba(248, 248, 244, .22);
  --cta-lustre-glow-strong: rgba(248, 248, 244, .5);
  --cta-lustre-edge: rgba(255, 255, 255, .8);
  --cta-lustre-trail: rgba(15, 122, 90, .25);
}

[data-sticky-price-cta][data-cta-lustre] {
  --cta-lustre-base-shadow: 0 -12px 34px rgba(0, 0, 0, .16);
  position: fixed;
  overflow: visible;
}

[data-sticky-price-cta][data-cta-lustre]::before {
  left: 0;
  width: 100%;
  background-position: -45% 0;
  background-repeat: no-repeat;
  background-size: 30% 100%;
  transform: none;
}

[data-sticky-price-cta][data-cta-lustre].is-cta-lustre-live::before {
  animation:
    fitnessos-sticky-cta-lustre-pass 4.8s cubic-bezier(.22, 1, .36, 1) var(--cta-lustre-stagger) infinite;
}

@keyframes fitnessos-sticky-cta-lustre-pass {
  0%, 54% { opacity: 0; background-position: -45% 0; }
  58% { opacity: .32; }
  68% { opacity: .9; }
  80% { opacity: 0; background-position: 145% 0; }
  100% { opacity: 0; background-position: 145% 0; }
}

[data-cta-lustre]:focus-visible {
  outline: 3px solid #f8f8f4;
  outline-offset: 4px;
  animation: none;
  box-shadow:
    var(--cta-lustre-base-shadow),
    0 0 0 3px #090b0c,
    0 0 0 6px #f8f8f4,
    0 0 30px var(--cta-lustre-glow-strong);
}

[data-cta-lustre]:focus-visible::before,
[data-cta-lustre]:focus-visible::after {
  animation: none;
}

[data-sticky-price-cta][data-cta-lustre]:focus-visible {
  outline: 2px solid #f8f8f4;
  outline-offset: -5px;
  box-shadow:
    var(--cta-lustre-base-shadow),
    inset 0 0 0 3px #f8f8f4,
    inset 0 0 0 6px #090b0c,
    0 0 28px var(--cta-lustre-glow-strong);
}

[data-sticky-price-cta][data-cta-lustre]:focus-visible::before,
[data-sticky-price-cta][data-cta-lustre]:focus-visible::after {
  animation: none;
}

.offer-popup:not([hidden]) .offer-popup-copy .cta[data-cta-source="site_offer_50"][data-cta-lustre]:focus-visible {
  animation: none;
  box-shadow:
    0 0 0 3px #090b0c,
    0 0 0 6px #f8f8f4,
    0 0 30px var(--cta-lustre-glow-strong);
}

.offer-popup:not([hidden]) .offer-popup-copy .cta[data-cta-source="site_offer_50"][data-cta-lustre]:focus-visible::before,
.offer-popup:not([hidden]) .offer-popup-copy .cta[data-cta-source="site_offer_50"][data-cta-lustre]:focus-visible::after {
  animation: none;
}

@media (hover: hover) and (pointer: fine) {
  [data-cta-lustre]:hover {
    transform: translateY(-2px);
    animation: none;
    box-shadow:
      var(--cta-lustre-base-shadow),
      0 0 32px var(--cta-lustre-glow-strong);
  }

  [data-cta-lustre]:hover::after { animation: none; opacity: .9; }
}

[data-cta-lustre]:active {
  transform: translateY(0) scale(.99);
  transition-duration: .08s;
}

@media (min-width: 821px) {
  [data-cta-lustre]::before {
    left: -24%;
    width: 24%;
  }

  .offer-popup-copy .cta[data-cta-source="site_offer_50"]::before {
    left: -24%;
    width: 24%;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-cta-lustre],
  [data-cta-lustre]::before,
  [data-cta-lustre]::after {
    animation: none !important;
    transition: none !important;
  }

  [data-cta-lustre] {
    transform: none !important;
    box-shadow:
      var(--cta-lustre-base-shadow),
      0 0 18px var(--cta-lustre-glow-soft);
  }

  [data-cta-lustre]::before { display: none; }
  [data-cta-lustre]::after { opacity: .62; }
}
