/* Hub Lead adaptation of the motion-anything star-border recipe.
 * Apache-2.0; see assets/vendor/motion-anything/LICENSE and ATTRIBUTION.md.
 * Adaptations: graphite surface, purple conic edge, press/focus states,
 * offscreen/background pause and reduced-motion fallback. */
@property --cta-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.button.star-cta {
  position: relative;
  isolation: isolate;
  min-height: 44px;
  background: linear-gradient(145deg, #1b1920, #10141b);
  border: 1px solid #473776;
  color: #ddd5f6;
  box-shadow:
    inset 0 1px 0 #ffffff0b,
    0 9px 22px #0005;
  transition:
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s;
}
.button.star-cta::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.7px;
  background: conic-gradient(
    from var(--cta-angle),
    transparent 0 60%,
    #9a7cff 76%,
    #e9e1ff 82%,
    #9a7cff 88%,
    transparent 100%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: cta-border-orbit 4s linear infinite;
  animation-play-state: paused;
  pointer-events: none;
  z-index: 1;
}
.button.star-cta.cta-in-view::before {
  animation-play-state: running;
}
.button.star-cta:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 #ffffff10,
    0 9px 26px #0008;
}
.button.star-cta:hover::before {
  animation-duration: 2.5s;
}
.button.star-cta:active {
  transform: translateY(2px) scale(0.97);
}
.button.star-cta:focus-visible {
  outline: 3px solid #b39ef3;
  outline-offset: 5px;
}
html.cta-page-hidden .button.star-cta::before {
  animation-play-state: paused;
}
@keyframes cta-border-orbit {
  to {
    --cta-angle: 360deg;
  }
}
@media (prefers-reduced-motion: reduce) {
  .button.star-cta,
  .button.star-cta span {
    animation: none;
    transition: none;
  }
  .button.star-cta::before {
    animation: none;
    background: none;
    border: 1px solid #9a7cff;
    mask: none;
    -webkit-mask: none;
  }
  .button.star-cta:hover,
  .button.star-cta:active,
  .button.star-cta:hover span {
    transform: none;
  }
}
