:root {
  --bg: #f7f8fa;
  --card: #ffffff;
  --ink: #1c2430;
  --muted: #5a6573;
  --line: #e3e7ec;
  --accent: #1f6feb;
  --accent-ink: #ffffff;
  --ok: #137333;
  --err: #b3261e;
  --max: 760px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header / Footer */
.site-header {
  display: flex; align-items: baseline; gap: 12px;
  padding: 18px 20px; border-bottom: 1px solid var(--line); background: var(--card);
}
.brand { font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; }
.brand-sub { color: var(--muted); font-size: 13px; }
.site-footer { margin-top: 64px; border-top: 1px solid var(--line); background: var(--card); padding: 20px 0; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 14px; }
.footer-nav a { color: var(--muted); text-decoration: none; margin-left: 16px; }
.footer-nav a:hover { color: var(--accent); text-decoration: underline; }

main.container { padding-top: 48px; }

/* Hero / Landing */
.badge {
  display: inline-block; background: #eef3fe; color: var(--accent);
  border: 1px solid #d6e2fb; border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 600;
}
.hero h1 { font-size: 32px; line-height: 1.2; margin: 16px 0 8px; }
.lead { color: var(--muted); font-size: 18px; }

.waitlist-form { margin: 28px 0 10px; display: grid; gap: 14px; max-width: 460px; }
.waitlist-form input[type=email] {
  padding: 12px 14px; font-size: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent input { margin-top: 4px; }
.consent a { color: var(--accent); }
button {
  padding: 12px 18px; font-size: 16px; font-weight: 600; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); border: none; border-radius: 8px;
}
button:hover { filter: brightness(1.05); }
.fineprint { color: var(--muted); font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Message / Forms */
.message h1, .form-card h1, .admin h1 { font-size: 26px; margin-bottom: 8px; }
.message.err h1 { color: var(--err); }
.message.ok h1 { color: var(--ok); }
.back { color: var(--accent); text-decoration: none; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 28px; max-width: 460px; }
.form-card label, .invite-panel label { display: block; margin: 14px 0 6px; font-weight: 600; font-size: 14px; }
.form-card input { width: 100%; padding: 11px 13px; font-size: 16px; border: 1px solid var(--line); border-radius: 8px; }
.form-card input[readonly] { background: #f0f2f5; color: var(--muted); }
.form-card button { margin-top: 20px; width: 100%; }
.form-error { color: var(--err); background: #fdecea; border: 1px solid #f5c6c2; padding: 10px 12px; border-radius: 8px; }

/* Legal pages */
.legal { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 32px 36px; }
.legal h1 { font-size: 28px; }
.legal h2 { font-size: 19px; margin-top: 28px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.legal h3 { font-size: 16px; margin-top: 18px; }
.legal p, .legal li { color: #2a3340; }
.legal .placeholder { background: #fff6d6; border: 1px dashed #d9b441; padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.legal .draft-note { background: #fdecea; border: 1px solid #f5c6c2; color: #7a1d17; padding: 10px 14px; border-radius: 8px; font-size: 14px; }
.legal a { color: var(--accent); }
.legal .updated { color: var(--muted); font-size: 13px; }

/* Admin */
.invite-panel { background: #eef3fe; border: 1px solid #d6e2fb; border-radius: 12px; padding: 20px 22px; margin-bottom: 26px; }
.copy { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; background: #fff; }
textarea.copy { resize: vertical; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { color: var(--muted); font-weight: 600; }
.muted { color: var(--muted); }
.copy.small { font-size: 12px; margin: 6px 0; }
form.inline { margin: 0; }
form.inline button { padding: 6px 12px; font-size: 13px; }
.status { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.status-pending { background: #fff3d6; color: #8a5a00; }
.status-confirmed { background: #e6f4ea; color: var(--ok); }
.status-invited { background: #eef3fe; color: var(--accent); }
.status-registered { background: #e9e2fb; color: #5a3ea8; }

@media (max-width: 540px) { .hero h1 { font-size: 26px; } .legal { padding: 22px; } }
