:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f7fb;
  color: #172033;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 15% 15%, rgba(38, 94, 172, 0.14), transparent 32rem),
    linear-gradient(145deg, #f8fbff, #edf3fa);
}

.card {
  width: min(100%, 480px);
  padding: clamp(28px, 6vw, 48px);
  border: 1px solid #dce5f1;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(25, 54, 94, 0.14);
  text-align: center;
}

.brand {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 16px;
  background: #205ca8;
  color: white;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.eyebrow {
  margin: 0 0 6px;
  color: #205ca8;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 3.25rem);
  letter-spacing: -0.05em;
}

.status {
  margin: 28px 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
}

.detail {
  margin: 0;
  color: #58667a;
  line-height: 1.6;
}

.button {
  display: inline-flex;
  justify-content: center;
  margin-top: 28px;
  padding: 12px 20px;
  border-radius: 12px;
  background: #205ca8;
  color: white;
  font-weight: 700;
  text-decoration: none;
}

.button:focus-visible {
  outline: 3px solid #ffb020;
  outline-offset: 3px;
}

html[data-state="ready"] .brand { background: #18794e; }
html[data-state="error"] .brand { background: #b42318; }

@media (max-width: 420px) {
  .shell { padding: 14px; }
  .card { border-radius: 18px; }
}

@media (prefers-reduced-motion: no-preference) {
  .card { animation: enter 280ms ease-out both; }
  @keyframes enter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
