:root {
  --bg: #fafaf9;
  --fg: #18181b;
  --muted: #71717a;
  --border: #e4e4e7;
  --accent: #4f46e5;
  --accent-fg: #ffffff;
  --ok: #15803d;
  --err: #b91c1c;
  --radius: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f12;
    --fg: #f4f4f5;
    --muted: #a1a1aa;
    --border: #27272a;
    --accent: #818cf8;
    --accent-fg: #0f0f12;
    --ok: #4ade80;
    --err: #f87171;
  }
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 18vh 16px 48px;
}

.badge {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
}

h1 {
  margin: 16px 0 8px;
  font-size: clamp(36px, 7vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.lede { margin: 0 0 32px; color: var(--muted); font-size: 18px; }

.form { display: flex; gap: 8px; }

input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  font: inherit;
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

input[type="email"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

button {
  padding: 12px 18px;
  font: inherit;
  font-weight: 600;
  color: var(--accent-fg);
  background: var(--accent);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
}

button:disabled { opacity: 0.6; cursor: progress; }

.message { min-height: 1.6em; margin: 12px 0 0; font-size: 15px; }
.message.ok { color: var(--ok); }
.message.err { color: var(--err); }

.fine { margin-top: 24px; font-size: 13px; color: var(--muted); }

.footer { padding: 24px 16px; text-align: center; font-size: 13px; color: var(--muted); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@media (max-width: 480px) {
  .form { flex-direction: column; }
}
