@font-face { font-family: "Geist"; src: url("Geist-latin.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

:root {
  --outer: #0a0a0a;
  --card: #1b1b1b;
  --stage-top: #121212;
  --stage-bottom: #1b1b1b;
  --field: #141414;
  --field-line: #2a2a2d;
  --title: #dedede;
  --body: #979797;
  --link: #a4a4a4;
  --meta: #76767a;
  --button: #cbcbcb;
  --button-hover: #d8d8d8;
  --button-text: #111113;
  --light: #ff804c;
  --error: #e39a7c;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px;
  background: var(--outer); color: var(--title);
  font: 400 14px/1.5 "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}

.modal { width: min(380px, 100%); background: var(--card); border-radius: 22px; overflow: hidden; }
.modal.wide { width: min(460px, 100%); }

.stage {
  position: relative; height: 196px; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--stage-top) 0%, var(--stage-bottom) 100%);
}
.stage::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgb(255 255 255 / 0.075) 1px, transparent 1.5px);
  background-size: 10px 10px; background-position: 5px 5px;
  -webkit-mask-image: radial-gradient(70% 80% at 50% 42%, #000 0%, transparent 100%);
  mask-image: radial-gradient(70% 80% at 50% 42%, #000 0%, transparent 100%);
}
.mark { position: relative; width: 132px; height: auto; }

.body { padding: 4px 28px 26px; display: grid; gap: 12px; }
.body[hidden], [hidden] { display: none !important; }
.cobrand { display: flex; align-items: center; gap: 8px; height: 22px; margin: 0 0 6px; color: var(--title); font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }
.cobrand .for { color: var(--meta); font-weight: 400; }
.cobrand img { display: block; height: 16px; width: auto; }
h1 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--title); }
.lead { margin: -4px 0 6px; color: var(--body); }
.lead b { color: var(--title); font-weight: 500; }

.field {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--field-line); background: var(--field); color: var(--title);
  font: inherit; font-size: 15px; outline: none;
}
.field::placeholder { color: #5c5c60; }
.field:focus, .field:focus-visible { border-color: #6a6a70; outline: none; }
.field.code { font: 500 22px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.35em; text-align: center; padding-left: calc(14px + 0.35em); font-variant-numeric: tabular-nums; }

.primary {
  width: 100%; height: 46px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--button); color: var(--button-text);
  font-family: inherit; font-size: 15px; font-weight: 500; line-height: 1;
}
.primary:hover { background: var(--button-hover); }
.primary:disabled { opacity: 0.6; cursor: default; }
.primary:focus-visible, .link:focus-visible { outline: 2px solid #6a6a70; outline-offset: 2px; }

.link { background: none; border: 0; padding: 4px 0 0; color: var(--link); font: inherit; cursor: pointer; justify-self: center; }
.link:hover { color: var(--title); }
.link:disabled { color: var(--meta); cursor: default; }
.link.inline { padding: 0; display: inline; text-decoration: underline; text-decoration-color: #4a4a4f; text-underline-offset: 3px; }

.err { margin: -2px 0 0; color: var(--error); font-size: 13px; }
.err.info { color: var(--body); }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; color: var(--body); }
.steps li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.steps li::before {
  counter-increment: s; content: counter(s);
  width: 22px; height: 22px; margin-top: 0; border-radius: 50%; background: var(--field);
  display: grid; place-items: center; font-size: 12px; color: var(--link); font-variant-numeric: tabular-nums;
}
.steps b { color: var(--title); font-weight: 500; }
kbd { font: 12px/1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--title); background: var(--field); border: 1px solid var(--field-line); border-radius: 6px; padding: 2px 6px; }

.cmd { margin-top: 4px; background: var(--field); border: 1px solid var(--field-line); border-radius: 12px; padding: 12px 14px; overflow-x: auto; }
.cmd code { font: 12px/1.5 ui-monospace, "SF Mono", Menlo, monospace; color: #c9c9cc; white-space: nowrap; user-select: all; -webkit-user-select: all; }

.meta { margin: 0; color: var(--meta); font-size: 13px; }
.notice { margin: 0; padding: 12px 14px; border-radius: 12px; background: #2a2119; color: #e8c3a8; }
.foot { margin: 6px 0 0; text-align: center; color: var(--meta); font-size: 13px; }
.foot .link { color: var(--link); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 420px) {
  .body { padding: 4px 20px 22px; }
  .stage { height: 160px; }
}

::selection { background: #3a3a40; color: #f2f2f2; }
