@font-face {
  font-family: "Frank Ruhl Libre";
  src: url("/fonts/frank-ruhl-libre-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F9F6F0;             /* warm white */
  --text: #221D19;           /* 15.5:1 on --bg */
  --muted: #5C534C;          /* 7.0:1 on --bg */
  --accent: #2459CD;         /* 5.8:1 on --bg; white on it 6.2:1 */
  --accent-dark: #1A44A3;
  --field: #FFFFFF;
  --border: #7A716A;         /* 4.4:1 on --bg (3:1 needed for field edges) */
  --line: #E4DED3;
  --error: #B3261E;          /* 6.1:1 on --bg */
  --serif: "Frank Ruhl Libre", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans);
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 2rem;
  flex: 1;
}

.hero { text-align: center; margin-bottom: 2rem; }

.logo { margin: 0 auto 1.5rem; line-height: 0; }
.logo img { display: block; width: min(80%, 300px); height: auto; margin: 0 auto; }

h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.15; }

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 11vw, 3.5rem);
  letter-spacing: 0.01em;
}

.lede { margin: 0 auto; font-size: 1.15rem; max-width: 30rem; }

form { margin: 0; }

.field { margin: 0 0 1.25rem; padding: 0; border: 0; min-width: 0; }

label, legend { display: block; font-weight: 600; margin-bottom: 0.4rem; padding: 0; }

.req { color: var(--accent); }
.opt { color: var(--muted); font-weight: 400; }

input[type="email"], input[type="text"] {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 1rem; /* 16px+ stops iOS zooming in */
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--border);
  border-radius: 6px;
}

input[type="email"]:focus, input[type="text"]:focus { border-color: var(--accent); }

input[aria-invalid="true"] { border-color: var(--error); }

.choices { display: grid; gap: 0.5rem; }

.choice {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  margin: 0;
  padding: 0.6rem 0.85rem;
  font-weight: 400;
  background: var(--field);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
}

.choice input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0 0.7rem 0 0;
  accent-color: var(--accent);
  flex: none;
}

.choice:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: #EEF2FC; }
.choice:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }

.cf-turnstile { margin: 0 0 1rem; min-height: 65px; }

button {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  font: 600 1.05rem/1.2 var(--sans);
  color: #FFFFFF;
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

button:hover { background: var(--accent-dark); }
button[disabled] { opacity: 0.7; cursor: progress; }

.small { margin: 0.75rem 0 0; font-size: 0.9rem; color: var(--muted); text-align: center; }

.error {
  margin: 0 0 1rem;
  padding: 0.7rem 0.85rem;
  color: var(--error);
  background: #FDF0EF;
  border: 1px solid var(--error);
  border-radius: 6px;
}

.thanks {
  padding: 1.5rem 1.25rem;
  text-align: center;
  background: var(--field);
  border: 1px solid var(--accent);
  border-radius: 8px;
}
.thanks h2 { margin: 0 0 0.5rem; font-size: 2rem; }
.thanks p { margin: 0; }
.thanks:focus { outline: none; }

.business { margin: 2.5rem 0 0; text-align: center; font-size: 0.95rem; color: var(--muted); overflow-wrap: anywhere; }

.footer {
  padding: 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.footer p { margin: 0; }

.prose h1 { font-size: 2.75rem; }
.prose h2 { margin: 2rem 0 0.5rem; font-size: 1.6rem; }
.prose ul { padding-left: 1.25rem; }

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

@media (min-width: 40rem) {
  .wrap { padding-top: 4.5rem; }
  .logo img { width: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
