button {
  border-radius: var(--r-pill);
  background: none;
  outline: none;
  border: 1.5px solid var(--c-gold);
  padding: 1rem 1.4rem;
  color: var(--c-ink);
  cursor: pointer;
  transition:
    background-color 150ms ease,
    color 150ms ease,
    transform 150ms ease,
    box-shadow 150ms ease;
}

button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-pop);
}

button:active:not(:disabled) {
  transform: translateY(0) scale(0.97);
  box-shadow: none;
}

/* Slide-fill pill — only for the main submit buttons (opt-in class), the
   generic button above stays a bordered pill everywhere else. */
button.slide {
  display: inline-block;
  font-size: 17px;
  font-weight: bold;
  color: var(--c-ink);
  text-align: center;
  text-decoration: none;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

button.slide:before {
  content: "";
  position: absolute;
  top: 0%;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--c-gold);
  transition: left 0.8s ease-in-out;
  z-index: -1;
}

button.slide:not(:disabled):hover:before {
  left: 0%;
}

button.slide:hover:not(:disabled) {
  color: var(--c-card);
}

button.slide:after {
  content: "";
  position: absolute;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 100%;
  z-index: -1;
}
