:root {
  color-scheme: dark;
  --background: #071018;
  --surface: #0d1822;
  --text: #e7f0f2;
  --muted: #a5b7bf;
  --accent: #00d4aa;
  --focus: #4dabf7;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.checkout-handoff {
  width: min(100%, 420px);
  text-align: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 48px;
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
}

.brand strong { color: var(--accent); }

.checkout-progress {
  width: 44px;
  height: 44px;
  margin: 0 auto 22px;
  border: 3px solid rgba(165, 183, 191, 0.26);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: checkout-spin 800ms linear infinite;
}

h1 {
  margin: 0;
  font-size: 1.375rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 10px auto 0;
  max-width: 38ch;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
  text-wrap: pretty;
}

button {
  min-height: 44px;
  margin-top: 22px;
  padding: 10px 20px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #02110e;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

button:hover { background: #24e1bb; }
button:active { transform: translateY(1px); }
button:disabled { cursor: wait; opacity: 0.65; }
button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }

@keyframes checkout-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .checkout-progress { animation: none; border-color: var(--accent); }
  button:active { transform: none; }
}
