/* The link page: light, WhatsApp green, one centred card. No fonts or images from other sites. */
:root {
  --green: #25d366;
  --green-dark: #1fb857;
  --ink: #0f172a;
  --muted: #475569;
  --bg: #f8fafc;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

.card {
  width: 100%;
  max-width: 24rem;
  text-align: center;
}

.icon { display: block; margin: 0 auto 20px; }

h1 { margin: 0 0 8px; font-size: 1.25rem; line-height: 1.3; font-weight: 600; }
p { margin: 0 0 16px; font-size: 0.95rem; line-height: 1.5; color: var(--muted); }
section[hidden], [hidden] { display: none !important; }

.error { color: var(--ink); font-size: 1rem; font-weight: 500; }
.muted { color: var(--muted); }

.spinner {
  width: 28px;
  height: 28px;
  margin: 4px auto 20px;
  border: 3px solid #d1fae5;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 3s; }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.15);
}

.button:hover:not(:disabled) { background: var(--green-dark); }
.button:focus-visible, .linkbutton:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.button:disabled { opacity: 0.6; cursor: default; }

.linkbutton {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.linkbutton:hover { color: var(--ink); }
