/* Runup · "Request access" dialog (invite-only beta). Black, like the rest of the site: same panel, dots, ink and white pill. */
.ax { --ax-ink: #f4f4f5; --ax-grey: #9a9aa1; --ax-mute: #6b6b72; --ax-line: rgba(255, 255, 255, .14); --ax-err: #ff8a80;
  width: min(520px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 0; border-radius: 24px;
  background: #0b0b0c radial-gradient(rgba(255, 255, 255, .06) .9px, transparent 1.1px) 0 0 / 20px 20px; color: var(--ax-ink); color-scheme: dark; font-family: var(--sans); overflow: auto; overscroll-behavior: contain;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 40px 90px -30px #000; }
.ax::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ax[open] { animation: ax-in .32s cubic-bezier(.22, 1, .36, 1); }
.ax[open]::backdrop { animation: ax-fade .32s ease; }
@keyframes ax-in { from { opacity: 0; transform: translateY(10px) scale(.985); } }
@keyframes ax-fade { from { opacity: 0; } }

.ax__panel { position: relative; padding: 40px 40px 34px; }
.ax__close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; padding: 0; display: grid; place-items: center;
  background: transparent; color: var(--ax-ink); cursor: pointer; transition: background-color .2s ease; }
.ax__close:hover { background: rgba(255, 255, 255, .1); }
.ax__close:focus-visible { outline: 2px solid var(--ax-ink); outline-offset: 2px; }
.ax__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

.ax__eyebrow { margin: 0 0 14px; display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ax-grey); }
.ax__eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2aa686; }
.ax__title { margin: 0; font-size: 36px; line-height: 1.04; font-weight: 500; letter-spacing: -.05em; }
.ax__sub { margin: 10px 0 0; font-size: 16px; line-height: 1.45; color: var(--ax-grey); }

.ax__form { margin-top: 28px; display: grid; gap: 20px; }
.ax__field { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 8px; }
.ax__label, .ax__field legend { padding: 0; font-size: 14px; font-weight: 500; color: var(--ax-ink); }
.ax__field legend { margin-bottom: 8px; }
.ax__label em, .ax__field legend em { font-style: normal; font-weight: 400; color: var(--ax-mute); }
.ax__input { width: 100%; box-sizing: border-box; padding: 13px 15px; border: 1px solid var(--ax-line); border-radius: 14px; background: #141416; color: var(--ax-ink);
  font: 400 16px/1.4 var(--sans); transition: border-color .2s ease, box-shadow .2s ease; }
.ax__input::placeholder { color: var(--ax-mute); }
.ax__input:hover { border-color: rgba(255, 255, 255, .26); }
.ax__input:focus { outline: none; border-color: rgba(255, 255, 255, .6); box-shadow: 0 0 0 3px rgba(255, 255, 255, .08); }
.ax__input:-webkit-autofill, .ax__input:-webkit-autofill:hover, .ax__input:-webkit-autofill:focus { -webkit-text-fill-color: var(--ax-ink); caret-color: var(--ax-ink); -webkit-box-shadow: 0 0 0 40px #141416 inset; }
textarea.ax__input { min-height: 92px; resize: vertical; }
.ax__input[aria-invalid="true"] { border-color: var(--ax-err); }
.ax__input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(255, 138, 128, .14); }

/* the stage: three quiet pills */
.ax__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.ax__opt { position: relative; }
.ax__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ax__opt span { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 15px; border: 1px solid var(--ax-line); border-radius: 999px; background: rgba(255, 255, 255, .04); font-size: 14.5px; color: var(--ax-ink);
  transition: border-color .2s ease, background-color .2s ease, color .2s ease; }
.ax__opt:hover span { border-color: rgba(255, 255, 255, .3); }
.ax__opt input:checked + span { background: var(--ax-ink); border-color: var(--ax-ink); color: #000; }
.ax__opt input:focus-visible + span { outline: 2px solid var(--ax-ink); outline-offset: 2px; }
.ax__stage[aria-invalid="true"] .ax__opt span { border-color: var(--ax-err); }

.ax__err { margin: 0; font-size: 13.5px; line-height: 1.35; color: var(--ax-err); }
.ax__formerr { margin: 0; padding: 11px 14px; border-radius: 12px; background: rgba(255, 138, 128, .1); font-size: 14px; line-height: 1.4; color: var(--ax-err); }
.ax__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ax__submit, .ax__doneBtn { border: 0; background: var(--ax-ink); color: #000; cursor: pointer; justify-content: center; transition: background-color .2s ease; -webkit-tap-highlight-color: transparent; }
.ax__submit:hover, .ax__doneBtn:hover { background: #fff; }
.ax__submit:focus-visible, .ax__doneBtn:focus-visible { outline: 2px solid var(--ax-ink); outline-offset: 3px; }
.ax__submit { width: 100%; height: 50px; margin-top: 4px; gap: .4em; font-size: 15.5px; }
.ax__submit:disabled { cursor: progress; background: #c9c9cd; }
.ax__submit[aria-busy="true"] .ax__arrow { display: none; }
.ax__spin { display: none; width: 15px; height: 15px; border-radius: 50%; border: 1.6px solid rgba(0, 0, 0, .25); border-top-color: #000; animation: ax-spin .8s linear infinite; }
.ax__submit[aria-busy="true"] .ax__spin { display: inline-block; }
@keyframes ax-spin { to { transform: rotate(360deg); } }
.ax__fine { margin: -6px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ax-mute); text-align: center; }

/* after sending */
.ax__done { padding-top: 6px; }
.ax__done:focus { outline: none; }
.ax__done .ax__sub { max-width: 30em; }
.ax__doneBtn { margin-top: 28px; height: 46px; padding: 0 26px; font-size: 15px; }

/* phones: a full black sheet, nothing cropped, the close button stays reachable */
@media (max-width: 560px) {
  .ax { width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; box-shadow: none; }
  .ax__panel { min-height: 100%; box-sizing: border-box; padding: max(14px, env(safe-area-inset-top, 0px)) 20px max(24px, env(safe-area-inset-bottom, 0px)); }
  .ax__close { position: sticky; top: max(10px, env(safe-area-inset-top, 0px)); margin: 0 -8px 2px auto; background: #1c1c1f; }
  .ax__title { font-size: 34px; }
  .ax__form { margin-top: 22px; gap: 18px; }
  textarea.ax__input { min-height: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  .ax[open], .ax[open]::backdrop { animation: none; }
  .ax__spin { animation-duration: 2s; }
}
