/* React Bits Specular Button, adapted to the Realhey CTA links. */
:where(a.specular-button) {
  position: relative;
  isolation: isolate;
  --specular-line: #b69aff;
  --specular-edge: #ac99ff;
  touch-action: manipulation;
  transition: scale 250ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

a.specular-button::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(145deg, #ffffff29, transparent 57%);
  pointer-events: none;
}

a.specular-button:not(.specular-button--rendered)::after {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--specular-edge) 60%, transparent);
}

.specular-button__light {
  position: absolute;
  inset: -24px auto auto -24px;
  z-index: -1;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  pointer-events: none;
}

.beta a.specular-button {
  --specular-line: #ffffff;
  --specular-edge: #13845f;
}

.beta a.specular-button:focus-visible {
  outline-color: var(--brand-mint);
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  a.specular-button:active { scale: 0.97; }
}

@media (prefers-reduced-motion: reduce) {
  a.specular-button { transition: none; }
}
