:root {
  --text: #111;
  --muted: #555;
  --line: #ddd;
  --page: #fff;
  --field: #fff;
  --accent: #000;
  --on-accent: #fff;
  --danger: #b00020;
  --danger-fill: #c4001d;
  --note: #fff7e0;
  --note-line: #f0d48a;
}
@media (prefers-color-scheme: dark) {
  :root:not(.light) {
    --text: #f2f2f2; --muted: #aaa; --line: #333; --page: #000; --field: #111;
    --accent: #fff; --on-accent: #000; --danger: #ff6b7f; --note: #2a2410; --note-line: #6b5a20;
  }
}
:root.dark {
  --text: #f2f2f2; --muted: #aaa; --line: #333; --page: #000; --field: #111;
  --accent: #fff; --on-accent: #000; --danger: #ff6b7f; --note: #2a2410; --note-line: #6b5a20;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--page); color: var(--text); }
:root.embed, :root.embed body { background: transparent; }
body {
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}
main { max-width: 560px; margin: 0 auto; padding: 32px 16px 48px; }
:root.embed main { padding-top: 8px; }
:root.embed .brand, :root.embed footer { display: none; }
.brand a { font-weight: 800; font-size: 22px; color: var(--text); text-decoration: none; }
h1 { font-size: 28px; line-height: 1.2; margin: 24px 0 8px; }
h2 { font-size: 18px; margin: 32px 0 8px; }
p, li { color: var(--text); }
.lead { color: var(--muted); }
a { color: inherit; }
.note {
  background: var(--note); border: 1px solid var(--note-line); border-radius: 12px;
  padding: 12px 14px; margin: 20px 0;
}
.steps { padding-left: 20px; color: var(--muted); }
form { display: grid; gap: 10px; margin: 20px 0; }
label { font-weight: 600; }
label.check { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; }
label.check input { margin-top: 4px; }
input[type="email"], input[inputmode="numeric"] {
  width: 100%; padding: 12px 14px; font-size: 17px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--field); color: var(--text);
}
input[inputmode="numeric"] { letter-spacing: 0.2em; }
button {
  appearance: none; border: 0; border-radius: 999px; padding: 13px 18px; font-size: 16px;
  font-weight: 700; background: var(--accent); color: var(--on-accent); cursor: pointer;
}
button.danger { background: var(--danger-fill); color: #fff; }
button.link { background: none; color: var(--muted); font-weight: 400; text-decoration: underline; }
button:disabled { opacity: 0.5; cursor: default; }
.error { color: var(--danger); font-weight: 600; }
.small { color: var(--muted); font-size: 14px; }
footer { margin-top: 40px; color: var(--muted); font-size: 14px; }
