/* SpecularButton — adapted from React Bits (DavidHDev) for Against Gravity.
   Sharp radius, uppercase storefront type, white primary fill. */

.btn-specular {
  --sb-radius: 0px;
  --sb-tint: #ffffff;
  --sb-tint-opacity: 1;
  --sb-blur: 0px;
  --sb-text-color: #000000;

  position: relative;
  isolation: isolate;
  overflow: visible;
  color: var(--sb-text-color);
  background: color-mix(in srgb, var(--sb-tint) calc(var(--sb-tint-opacity) * 100%), transparent);
  border-color: #ffffff;
  box-shadow: none;
}

.btn-specular .specular-button__fx {
  position: absolute;
  inset: -20px;
  pointer-events: none;
  z-index: 1;
}

.btn-specular .specular-button__fx canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.btn-specular .specular-button__label {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  line-height: 1.25;
}

/* Outline variant on black surfaces */
.btn-specular.btn-specular--ghost {
  --sb-tint-opacity: 0;
  --sb-text-color: #ffffff;
  background: transparent;
  border-color: #ffffff;
  color: #ffffff;
}

.btn-specular.btn-specular--ghost:hover {
  background: transparent;
  color: #ffffff;
}

/* Manifesto sits on white — keep black label, softer base rim */
.manifesto .btn-specular {
  --sb-text-color: #ffffff;
  --sb-tint: #000000;
  --sb-tint-opacity: 1;
  background: #000000;
  border-color: #000000;
  color: #ffffff;
}

.manifesto .btn-specular:hover {
  background: #111111;
  color: #ffffff;
}

.plan-featured .btn-specular {
  --sb-tint: #000000;
  --sb-tint-opacity: 1;
  --sb-text-color: #ffffff;
  background: #000000;
  border-color: #000000;
  color: #ffffff;
}

.plan-featured .btn-specular:hover {
  background: #1a1a1a;
  color: #ffffff;
}

.mem-cta .btn-specular {
  --sb-tint: #000000;
  --sb-tint-opacity: 1;
  --sb-text-color: #ffffff;
  background: #000000;
  border-color: #000000;
  color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .btn-specular .specular-button__fx {
    display: none;
  }
}
