:root {
  color-scheme: light dark;
  --bg: #f5f5f7;
  --card: #ffffff;
  --fg: #111111;
  --muted: #6e6e73;
  --border: #c7c7cc;
  --accent: #0a84ff;
  --error: #d70015;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --card: #1c1c1e;
    --fg: #f5f5f7;
    --muted: #98989d;
    --border: #3a3a3c;
    --error: #ff453a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.4;
}
main {
  max-width: 28rem;
  margin: 0 auto;
  padding: 28px 16px 48px;
}

h1 { font-size: 1.5rem; line-height: 1.25; margin: 0 0 8px; font-weight: 600; }
h1 strong { font-weight: 800; }
h2 { font-size: 1.1rem; margin: 28px 0 8px; }
.lede { margin: 0 0 8px; color: var(--muted); }
.muted { color: var(--muted); font-weight: 400; }

label {
  display: block;
  margin: 18px 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
}
input, select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  font: inherit;
  font-size: 17px; /* >=16px prevents iOS zoom-on-focus */
  color: var(--fg);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  -webkit-appearance: none;
  appearance: none;
}
input:focus, select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

button {
  width: 100%;
  min-height: 54px;
  margin-top: 28px;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 14px;
  cursor: pointer;
}
button:disabled { opacity: 0.6; }

.error {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--error) 12%, transparent);
  color: var(--error);
  font-weight: 600;
}

.done { text-align: center; padding: 40px 0 24px; }
.check {
  width: 64px; height: 64px; margin: 0 auto 16px;
  border-radius: 50%;
  background: #34c759; color: #fff;
  font-size: 36px; line-height: 64px; font-weight: 700;
}

.footer {
  margin: 28px 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}
.footer + .footer { margin-top: 8px; }
a { color: var(--accent); }

.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
code { font-size: 0.9em; }

/* --- site pages: landing, support, privacy --- */
.hero { text-align: center; padding: 24px 0 8px; }
.hero h1 { font-size: 1.9rem; margin-bottom: 12px; }
.hero .lede { font-size: 1.05rem; }
.mark {
  width: 72px; height: 72px; margin: 8px auto 20px;
  border-radius: 18px; line-height: 72px; font-size: 36px;
  color: #fff; background: linear-gradient(135deg, #ff7a5c, #b8234a);
}
.cta { margin: 24px 0 8px; }
a.button {
  display: inline-block; min-height: 54px; line-height: 54px; padding: 0 22px;
  color: #fff; background: var(--accent); border-radius: 14px;
  font-weight: 600; text-decoration: none;
}
.features { display: grid; gap: 12px; margin: 32px 0 8px; }
.feature { background: var(--card); border-radius: 16px; padding: 18px 18px 14px; }
.feature h2 { margin: 0 0 6px; }
.feature p { margin: 0; color: var(--muted); }
.privacy-note { margin-top: 28px; }
.prose h3 { font-size: 1rem; margin: 22px 0 4px; }
.prose p { margin: 0 0 6px; }
.sitenav { margin: 40px 0 0; text-align: center; font-size: 0.9rem; color: var(--muted); }
