/* Ryze buttons: one shared file, loaded on every page.

   1. Motion layer (every button and button-like link on the site): hover lift, press squish, a visible focus ring, clear
      disabled and loading states. It only uses the standalone `translate` and `scale` properties plus opacity, so it never
      overrides a page's own `transform` (many buttons are positioned with one) and never causes layout work.
   2. .rz-btn: the full Ryze button (chunky outline, offset shadow) for new UI. Variants: .rz-primary (yellow),
      .rz-clay, .rz-sage, .rz-ghost; sizes .rz-sm, .rz-lg; add aria-busy="true" for the loading state.

   Everything is switched off for people who ask for reduced motion. */
:where(button, [role="button"], input[type="submit"], input[type="button"], a.btn, a.button, a.pill, a.cta, .btn, .button, .rz-btn) {
  transition: translate .18s cubic-bezier(.2,.8,.2,1), scale .18s cubic-bezier(.2,.8,.2,1), opacity .18s ease, box-shadow .18s ease, background-color .18s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
@media (hover: hover) {
  :where(button, [role="button"], input[type="submit"], input[type="button"], a.btn, a.button, a.pill, a.cta, .btn, .button):where(:not(:disabled):not([aria-disabled="true"])):hover { translate: 0 -1.5px; }
}
:where(button, [role="button"], input[type="submit"], input[type="button"], a.btn, a.button, a.pill, a.cta, .btn, .button):where(:not(:disabled):not([aria-disabled="true"])):active { translate: 0 0; scale: .97; }
:where(button, [role="button"], input[type="submit"], input[type="button"], a.btn, a.button, a.pill, a.cta, .btn, .button, .rz-btn):focus-visible { outline: 3px solid #c66f52; outline-offset: 3px; }
:where(button, input[type="submit"], input[type="button"]):where(:disabled, [aria-disabled="true"]) { cursor: not-allowed; }
/* loading: the label stays (so the width doesn't jump) and a spinner sits beside it */
:where(button, .btn, .button, .rz-btn)[aria-busy="true"] { cursor: progress; pointer-events: none; opacity: .8; }
:where(button, .btn, .button, .rz-btn)[aria-busy="true"]::after {
  content: ""; display: inline-block; width: .9em; height: .9em; margin-left: .55em; vertical-align: -.1em;
  border-radius: 50%; border: 2.5px solid currentColor; border-top-color: transparent; animation: rz-spin .7s linear infinite;
}
@keyframes rz-spin { to { rotate: 360deg; } }

/* ---- the full Ryze button ---- */
.rz-btn {
  --rz-bg: #fffdf7; --rz-ink: #172522; --rz-shadow: 4px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; min-width: 44px; padding: 0 22px; box-sizing: border-box;
  border: 2.5px solid var(--rz-ink); border-radius: 999px; background: var(--rz-bg); color: var(--rz-ink);
  font: 700 16px/1.1 "Manrope", Arial, sans-serif; text-decoration: none; cursor: pointer; user-select: none;
  box-shadow: var(--rz-shadow) var(--rz-shadow) 0 var(--rz-ink); position: relative;
}
.rz-btn.rz-primary { --rz-bg: #f2d253; }
.rz-btn.rz-clay { --rz-bg: #c66f52; color: #fffdf7; }
.rz-btn.rz-sage { --rz-bg: #b7c3a8; }
.rz-btn.rz-ghost { --rz-bg: transparent; box-shadow: none; }
.rz-btn.rz-sm { min-height: 44px; padding: 0 16px; font-size: 14px; --rz-shadow: 3px; }
.rz-btn.rz-lg { min-height: 56px; padding: 0 30px; font-size: 18px; --rz-shadow: 5px; }
@media (hover: hover) { .rz-btn:not(:disabled):not([aria-disabled="true"]):hover { translate: -1.5px -1.5px; } }
.rz-btn:not(:disabled):not([aria-disabled="true"]):active { translate: calc(var(--rz-shadow) - 1px) calc(var(--rz-shadow) - 1px); scale: 1; box-shadow: 1px 1px 0 var(--rz-ink); }
.rz-btn:disabled, .rz-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; box-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  :where(button, [role="button"], input[type="submit"], input[type="button"], a.btn, a.button, a.pill, a.cta, .btn, .button, .rz-btn) { transition: none; }
  :where(button, [role="button"], input[type="submit"], input[type="button"], a.btn, a.button, a.pill, a.cta, .btn, .button, .rz-btn):hover,
  :where(button, [role="button"], input[type="submit"], input[type="button"], a.btn, a.button, a.pill, a.cta, .btn, .button, .rz-btn):active { translate: none; scale: none; }
  :where(button, .btn, .button, .rz-btn)[aria-busy="true"]::after { animation-duration: 2s; }
}
