:root {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f5f5f7;
  background: #0d0d0f;
  font-synthesis: none;
  --muted: #a7a7ad;
  --panel: #18181c;
  --line: #303036;
  --ok: #61d88a;
  --error: #ff6b6b;
  --checking: #e4b84c;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 280px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background:
    radial-gradient(circle at 90% 0%, rgba(180, 25, 35, 0.16), transparent 38rem),
    #0d0d0f;
}

.shell {
  width: min(100% - 2rem, 54rem);
  margin-inline: auto;
  padding: max(2rem, env(safe-area-inset-top)) 0 max(2rem, env(safe-area-inset-bottom));
}

.intro {
  margin: clamp(2rem, 8vh, 6rem) 0 2rem;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: #e2b9bb;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.6rem;
  font-size: clamp(2rem, 7vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.lede,
#status-message,
.secure-note {
  color: var(--muted);
}

.lede {
  max-width: 38rem;
  margin-bottom: 0;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  line-height: 1.55;
}

.status-card {
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: rgba(24, 24, 28, 0.94);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.28);
}

.status-heading {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.status-heading h2 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
}

#status-message {
  margin-bottom: 0;
  line-height: 1.5;
}

.indicator {
  flex: 0 0 auto;
  width: 0.85rem;
  height: 0.85rem;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: var(--checking);
  box-shadow: 0 0 0 0.3rem rgba(228, 184, 76, 0.13);
}

.indicator.is-ok {
  background: var(--ok);
  box-shadow: 0 0 0 0.3rem rgba(97, 216, 138, 0.13);
}

.indicator.is-error {
  background: var(--error);
  box-shadow: 0 0 0 0.3rem rgba(255, 107, 107, 0.13);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.75rem 0;
  border-block: 1px solid var(--line);
}

.fact {
  min-width: 0;
  padding: 1.15rem 1rem;
  border-right: 1px solid var(--line);
}

.fact:first-child {
  padding-left: 0;
}

.fact:last-child {
  padding-right: 0;
  border-right: 0;
}

dt {
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.8rem;
}

dd {
  overflow: hidden;
  margin: 0;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.retry {
  min-height: 3rem;
  padding: 0.75rem 1.15rem;
  border: 1px solid #494950;
  border-radius: 0.7rem;
  color: inherit;
  background: #242429;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.retry:hover {
  background: #303036;
}

.retry:focus-visible {
  outline: 3px solid #f5f5f7;
  outline-offset: 3px;
}

.retry:disabled {
  cursor: progress;
  opacity: 0.6;
}

.secure-note {
  display: flex;
  gap: 0.55rem;
  margin: 1.2rem 0 0;
  font-size: 0.83rem;
  line-height: 1.5;
}

.secure-note span {
  color: var(--ok);
  font-size: 0.65rem;
  line-height: 2;
}

@media (max-width: 520px) {
  .facts {
    grid-template-columns: 1fr;
  }

  .fact,
  .fact:first-child,
  .fact:last-child {
    padding: 0.9rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .fact:last-child {
    border-bottom: 0;
  }

  .retry {
    width: 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .is-checking {
    animation: pulse 1.5s ease-in-out infinite;
  }

  @keyframes pulse {
    50% { opacity: 0.45; }
  }
}
