/* Text-scramble buttons (button-03), on every site button. Daniel approved this on Nov 17, 2026:
   the original scramble, at about half the source timings (see scramble-button.js).
   Navy pill, letters flash orange then light blue. The outlined variant (.ghost) is used for the
   assessment calls to action. Selectors start with "html body" so they beat home.css, shared-header.css
   and the assessment styles on every page. ::after is the pill. */
html body .button-03 {
  --btn-color: #b6cafa;
  --btn-accent: #f97316;
  position: relative;
  z-index: 1;
  isolation: isolate;
  border: 0;
  border-radius: 9999px;
  background: none;
  box-shadow: none;
  color: #fff;
  text-align: center;
  text-wrap: nowrap;
  transition: scale 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
/* Header buttons keep the header's own padding so the row fits on phones. */
html body .button-03:not(.home-nav .button-03) { padding: 12px 32px; }
html body .button-03::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 9999px;
  background-color: #293e8c;
  transition: scale 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), background-color 0.3s ease;
}
html body .button-03:hover { background: none; color: #fff; }
html body .button-03:hover::after { scale: 1.04; background-color: #1d2f75; }
html body .button-03:active { scale: 0.98; }
html body .button-03:disabled { cursor: default; opacity: 0.6; }
html body .button-03:disabled::after { scale: 1; }

html body .button-03.ghost,
html body .button-03.ghost:hover {
  --btn-color: #164cff;
  --btn-accent: #f97316;
  color: #28397d;
}
html body .button-03.ghost::after {
  background-color: transparent;
  box-shadow: inset 0 0 0 1px #9aa8cf;
}
html body .button-03.ghost:hover::after { background-color: #fbfaffbf; }

html body .button-03 .btn-03-text { display: inline-block; white-space: pre; }

/* Phones: the hero and Get started pairs stay on one row (home.css, Nov 13 phone fix), so the pill
   keeps that rule's tight side padding instead of 32px. */
@media (max-width: 700px) {
  html body :is(.home-hero, .home-start) .home-actions .button-03 { padding: 0 clamp(6px, 2.3vw, 18px); }
}
@media (prefers-reduced-motion: reduce) {
  html body .button-03, html body .button-03::after { transition: none; }
  html body .button-03:hover::after { scale: 1; }
}
