/* One set of button finishes for the public site and account screens. */
:root {
  --glass-button-fill: linear-gradient(165deg, #af4f2df7, #9b4022fa);
  --glass-button-hover: linear-gradient(165deg, #ae502d, #913b21);
  --glass-button-clear: linear-gradient(145deg, #fffc, #f5eee7b8);
  --glass-button-highlight: inset 0 1px #fff5, 0 3px 8px #3022181f;
}
body .button,
body .hero .platform-actions .button,
body .floating-waitlist {
  border: 1px solid #b8a89a7a;
  background: var(--glass-button-clear);
  color: #302723;
  box-shadow: var(--glass-button-highlight);
}
body:not(:has(.section.hero)) .button:not(.secondary, .danger),
body .button.primary,
body .hero .platform-actions .button.primary,
body .floating-waitlist {
  background: var(--glass-button-fill);
  border-color: #9f472b;
  color: #fff;
}
body .button.primary:hover,
body .hero .platform-actions .button.primary:hover,
body:not(:has(.section.hero)) .button:not(.secondary, .danger):hover,
body .floating-waitlist:hover { background: var(--glass-button-hover); color: #fff; }
body .button:not(.primary, .danger):hover,
body .hero .platform-actions .button:not(.primary):hover { filter: brightness(.98); }
body .button.danger { color: #922f28; border-color: #d7988d; }
body .button:disabled { cursor: default; filter: none; }
body .button:focus-visible, body .floating-waitlist:focus-visible {
  outline: 2px solid #a94e2e;
  outline-offset: 3px;
}

/* The platform mark stays in place while the download label changes. */
body .macos-download { column-gap: 8px; }
.macos-download::before {
  content: "";
  display: block;
  width: 1.15em;
  height: 1.15em;
  flex: none;
  background: currentColor;
  -webkit-mask: url("/assets/apple-logo.svg") center / contain no-repeat;
  mask: url("/assets/apple-logo.svg") center / contain no-repeat;
}
@media (forced-colors: active) {
  .macos-download::before {
    forced-color-adjust: none;
    background: ButtonText;
  }
}
