:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --line: #d9e0ea;
  --brand: #1d4ed8;
  --brand-dark: #1e40af;
  --ok: #047857;
  --err: #b91c1c;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--brand); }

.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}
.brand-mark {
  width: 22px; height: 22px; border-radius: 6px; background: var(--brand);
  position: relative; flex: none;
}
.brand-mark::after {
  content: ""; position: absolute; left: 5px; top: 6px; width: 12px; height: 7px;
  background: #fff; border-radius: 2px;
}
.pill {
  font-size: 12px; font-weight: 600; color: var(--brand-dark);
  background: #e0e7ff; border-radius: 999px; padding: 4px 10px; white-space: nowrap;
}

.wrap { max-width: 560px; margin: 0 auto; padding: 16px 16px 32px; }

.hero h1 {
  font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; margin: 6px 0 8px;
}
.nowrap { white-space: nowrap; }
.subhead { font-size: 17px; font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.body-line { color: var(--muted); margin: 0 0 14px; font-size: 15px; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.field { margin-bottom: 12px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 5px; }
input[type="url"], input[type="email"], input[type="text"], select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff;
  appearance: none; -webkit-appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}
input:focus, select:focus, button:focus-visible { outline: 3px solid #bfdbfe; outline-offset: 1px; border-color: var(--brand); }
.is-invalid { border-color: var(--err) !important; }

.check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 14px; line-height: 1.4; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--brand); }

.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.turnstile-slot { min-height: 0; margin: 2px 0 10px; }
.turnstile-slot:empty { margin: 0; }

.btn {
  width: 100%; font: inherit; font-weight: 700; font-size: 17px; color: #fff;
  background: var(--brand); border: 0; border-radius: 10px; padding: 14px 16px; cursor: pointer;
}
.btn:hover { background: var(--brand-dark); }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.btn.small { width: auto; font-size: 15px; padding: 10px 14px; }

.error { color: var(--err); font-size: 13px; margin: 5px 0 0; min-height: 0; }
.error:empty { display: none; }
.form-error { margin-top: 10px; }
.fine { color: var(--muted); font-size: 13px; text-align: center; margin: 10px 0 0; }

.success h2 { font-size: 21px; margin: 0 0 8px; color: var(--ok); }
.success p { margin: 0 0 8px; }
.followup { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.followup-q { font-weight: 600; margin: 0 0 10px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  font: inherit; font-size: 15px; font-weight: 600; color: var(--brand-dark);
  background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 999px; padding: 9px 14px; cursor: pointer;
}
.choice:hover { background: #e0e7ff; }
.choice.selected { background: var(--brand); color: #fff; border-color: var(--brand); }
.choice[disabled] { cursor: default; opacity: 0.85; }
.which-one { margin-top: 12px; }
.which-one label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 5px; }
.inline { display: flex; gap: 8px; }
.inline input { flex: 1; }
.followup-done { color: var(--ok); font-weight: 600; margin: 10px 0 0; }

.points { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.points li { position: relative; padding-left: 26px; font-size: 15px; color: var(--ink); }
.points li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 17px; height: 17px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%231d4ed8'/%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

.site-footer { max-width: 560px; margin: 0 auto; padding: 8px 16px 40px; color: var(--muted); font-size: 13px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 8px; }
.site-footer a { color: var(--muted); }

/* Legal pages */
.legal { max-width: 680px; }
.legal h1 { font-size: 28px; margin: 8px 0 4px; }
.legal h2 { font-size: 19px; margin: 24px 0 6px; }
.legal p, .legal li { color: #1e293b; }
.review-banner {
  background: #fff7ed; border: 1px solid #fdba74; color: #9a3412; border-radius: 10px;
  padding: 10px 12px; font-size: 14px; margin: 12px 0 18px;
}
.placeholder { background: #fef3c7; border-bottom: 2px dashed #d97706; padding: 0 3px; font-weight: 600; }

@media (min-width: 600px) {
  .wrap { padding-top: 32px; }
  .hero h1 { font-size: 36px; }
  .subhead { font-size: 19px; }
  .body-line { font-size: 16px; margin-bottom: 20px; }
  .card { padding: 24px; }
  .points { grid-template-columns: repeat(3, 1fr); margin-top: 24px; }
}
@media (prefers-reduced-motion: no-preference) {
  .success { animation: fade 240ms ease-out; }
  @keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}
