.fulfillment-page {
  min-height: 100vh;
  min-height: 100svh;
  background:
    radial-gradient(700px 500px at 50% 42%, #0b2035 0%, var(--void) 72%),
    var(--void);
}

.checkout-topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 48px);
  border-bottom: var(--hairline);
}

.secure-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-dim);
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: .16em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--arc);
  box-shadow: 0 0 10px var(--arc);
}

.fulfillment-main {
  min-height: calc(100vh - 76px);
  min-height: calc(100svh - 76px);
  display: grid;
  place-items: center;
  padding: 48px 20px 72px;
}

.fulfillment-card {
  width: min(680px, 100%);
  text-align: center;
}

.reactor-mark {
  width: 82px;
  height: 82px;
  margin: 0 auto 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--arc-dim);
  border-radius: 50%;
  box-shadow: 0 0 40px #66e0ff26, inset 0 0 24px #66e0ff14;
}

.reactor-mark::before,
.reactor-mark span {
  content: "";
  display: block;
  border-radius: 50%;
}

.reactor-mark::before {
  width: 44px;
  height: 44px;
  border: 2px solid var(--arc);
  box-shadow: 0 0 20px var(--arc-dim);
}

.reactor-mark span {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--hot);
  box-shadow: 0 0 14px var(--hot);
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--amber);
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: .22em;
}

.eyebrow.ready { color: var(--arc); }
.eyebrow.error { color: var(--alert); }

.fulfillment-card h1 {
  color: var(--hot);
  font-family: var(--display);
  font-size: clamp(36px, 7vw, 58px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.lede {
  max-width: 560px;
  margin: 18px auto 0;
  color: var(--ink);
  font-size: 15px;
}

.progress {
  width: min(360px, 80%);
  height: 2px;
  margin: 36px auto 16px;
  overflow: hidden;
  background: var(--arc-faint);
}

.progress span {
  display: block;
  width: 42%;
  height: 100%;
  background: var(--arc);
  box-shadow: 0 0 12px var(--arc);
  animation: fulfillment-scan 1.5s ease-in-out infinite;
}

@keyframes fulfillment-scan {
  from { transform: translateX(-105%); }
  to { transform: translateX(345%); }
}

.state-note {
  color: var(--ink-dim);
  font-size: 12px;
}

.license-panel {
  margin: 34px 0 26px;
  padding: 22px;
  text-align: left;
  border: 1px solid var(--arc-faint);
  border-radius: 12px;
  background: #07101ddb;
  box-shadow: inset 0 1px 0 #ffffff0d, 0 24px 70px #0006;
}

.panel-label,
.delivery-line {
  color: var(--ink-dim);
  font-size: 11px;
  letter-spacing: .12em;
}

.key-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 14px;
}

.key-row code {
  flex: 1;
  overflow-wrap: anywhere;
  padding: 0;
  color: var(--hot);
  background: none;
  font-size: clamp(14px, 3.5vw, 19px);
  letter-spacing: .055em;
}

.key-row button,
.download-button,
.secondary-button {
  min-height: 44px;
  border-radius: 7px;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: .11em;
  cursor: pointer;
}

.key-row button {
  padding: 0 16px;
  color: var(--arc);
  border: 1px solid var(--arc-faint);
  background: #66e0ff0b;
}

.key-row button:hover { background: #66e0ff18; }
.delivery-line strong { color: var(--ink); font-weight: 400; }

.checkout-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.account-actions { margin-top: 32px; }

.download-button,
.secondary-button {
  display: inline-grid;
  place-items: center;
  padding: 0 20px;
  text-decoration: none;
}

.download-button {
  color: var(--void);
  border: 1px solid var(--arc);
  background: var(--arc);
  box-shadow: 0 0 22px #66e0ff2e;
}

.download-button:hover { background: var(--hot); }

.secondary-button {
  color: var(--ink);
  border: var(--hairline);
  background: #ffffff08;
}

.secondary-button:hover { color: var(--hot); background: #ffffff10; }

.next-steps {
  margin: 30px auto 0;
  padding-left: 26px;
  width: fit-content;
  text-align: left;
  color: var(--ink-dim);
  font-size: 12px;
}

#state-error .download-button {
  margin-top: 28px;
  padding: 0 28px;
}

.fulfillment-recovery { justify-content: center; }
.fulfillment-recovery .secondary-button { min-width: 190px; }
.fulfillment-page > .footer { padding-top: 0; }

@media (max-width: 560px) {
  .checkout-topbar { align-items: flex-start; }
  .wordmark-name { font-size: 16px; }
  .secure-label { max-width: 110px; text-align: right; }
  .fulfillment-main { align-items: start; padding-top: 40px; }
  .license-panel { padding: 18px; }
  .key-row { align-items: stretch; flex-direction: column; }
  .checkout-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .progress span { animation: none; width: 100%; }
}
