@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
}

:root {
  --paper: #f7f4ec;
  --ink: #000;
  --muted: #63635c;
  --choice: #ece9e2;
  --choice-hover: #e3e0d8;
  --error: #b22b2b;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

button, input, textarea { font: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }

.progress {
  position: fixed;
  z-index: 10;
  top: 4px;
  left: 6px;
  right: 6px;
  height: 3px;
  overflow: hidden;
  background: rgba(99, 99, 92, .28);
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: rgba(0, 0, 0, .55);
  transition: width 360ms ease;
}

.form-shell, #leadForm { min-height: 100svh; }

.form-screen {
  position: fixed;
  inset: 0;
  display: grid;
  align-items: center;
  visibility: hidden;
  padding: 72px max(24px, calc((100vw - 720px) / 2)) 96px;
  opacity: 0;
  transform: translateY(22px);
  pointer-events: none;
  transition: opacity 360ms ease, transform 360ms ease, visibility 0s linear 360ms;
}

.form-screen.is-active {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 80ms;
}

.form-screen.is-leaving-up { transform: translateY(-22px); }
.form-screen.is-leaving-down { transform: translateY(22px); }

.welcome { text-align: center; }
.welcome-copy { width: min(720px, 100%); margin: 0 auto; }
.welcome h1 { margin: 0 0 8px; font-size: 32px; font-weight: 400; line-height: 1.25; letter-spacing: -.75px; }
.welcome p { max-width: 720px; margin: 0 auto 30px; font-size: 18px; line-height: 1.35; }

.question { width: 100%; min-width: 0; margin: 0; padding: 0; border: 0; }
.question h2, .question legend {
  display: block;
  width: 100%;
  margin: 0 0 28px;
  padding: 0;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -.3px;
}

.counter {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 20px;
  margin-right: 10px;
  padding: 0 4px;
  border-radius: 4px;
  background: var(--muted);
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  vertical-align: 3px;
}

.description { margin: -20px 0 32px; font-size: 18px; line-height: 1.4; }

input[type="text"], input[type="email"], input[type="url"], textarea {
  display: block;
  width: 100%;
  height: 52px;
  padding: 0 0 7px;
  border: 0;
  border-bottom: 2px solid rgba(99, 99, 92, .88);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.35;
  transition: border-color 150ms ease;
}

textarea { min-height: 55px; max-height: 150px; resize: none; }
input::placeholder, textarea::placeholder { color: rgba(99, 99, 92, .32); opacity: 1; }
input:focus, textarea:focus { border-color: var(--ink); }

.input-hint { margin: 7px 0 0; color: var(--muted); font-size: 12px; letter-spacing: .1px; }
.input-hint strong { font-weight: 600; }

.choices { display: grid; justify-items: start; gap: 6px; margin-top: 2px; }
.choices label {
  display: flex;
  align-items: center;
  min-width: 266px;
  min-height: 45px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--choice);
  color: rgba(99, 99, 92, .9);
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.choices label:hover { transform: translateX(2px); background: var(--choice-hover); color: var(--ink); }
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices .key {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 9px;
  border: 1px solid #c8c5be;
  border-radius: 4px;
  background: rgba(247, 244, 236, .7);
  font-size: 12px;
  font-weight: 500;
}

.choices label:has(input:checked) { border-color: var(--muted); background: #dedbd3; color: var(--ink); }
.choices label:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }

.primary-button, .submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 30px;
  padding: 8px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, opacity 150ms ease;
}

.primary-button:hover, .submit-button:hover { transform: translateY(-1px); }
.primary-button:focus-visible, .submit-button:focus-visible { outline: 3px solid rgba(0, 0, 0, .24); outline-offset: 3px; }
.submit-button { width: 254px; }

.error { display: none; margin: 10px 0 -16px; color: var(--error); font-size: 14px; }
.form-screen.has-error .error { display: block; }

.consent-question legend { max-width: 720px; margin-bottom: 34px; }
.consent { display: flex; align-items: center; gap: 12px; width: max-content; color: var(--muted); cursor: pointer; }
.consent input { position: absolute; opacity: 0; }
.checkmark { position: relative; width: 24px; height: 24px; border: 1px solid rgba(99, 99, 92, .55); border-radius: 4px; background: rgba(99, 99, 92, .12); }
.consent input:checked + .checkmark { background: rgba(99, 99, 92, .9); }
.consent input:checked + .checkmark::after { content: ""; position: absolute; left: 7px; top: 3px; width: 7px; height: 13px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.consent input:focus-visible + .checkmark { outline: 2px solid var(--ink); outline-offset: 3px; }
.privacy-note { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.privacy-note a { text-decoration: underline; text-underline-offset: 2px; }

.form-legal {
  position: fixed;
  z-index: 12;
  left: 24px;
  bottom: 24px;
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
}

.form-legal a { color: inherit; text-decoration: none; }
.form-legal a:hover { color: var(--ink); }

.form-nav {
  position: fixed;
  z-index: 12;
  right: 32px;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.form-nav[hidden] { display: none; }

.form-nav button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
}
.form-nav svg { width: 20px; height: 20px; }
.form-nav path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.form-nav button:first-child { border-radius: 8px 0 0 8px; }
.form-nav button:nth-child(2) { border-radius: 0 8px 8px 0; }
.form-nav button:disabled { opacity: .18; cursor: default; }

.success { text-align: center; }
.success > div { width: min(680px, 100%); margin: 0 auto; }
.success h2 { margin: 0 0 10px; font-size: 32px; font-weight: 400; line-height: 1.25; letter-spacing: -.6px; }
.success p { margin: 0 auto; max-width: 620px; font-size: 18px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 600px) {
  .form-screen { padding: 64px 24px 88px; align-items: center; }
  .welcome h1, .success h2 { font-size: 28px; }
  .welcome p, .description, .success p { font-size: 16px; }
  .question h2, .question legend { font-size: 22px; line-height: 1.35; }
  input[type="text"], input[type="email"], input[type="url"], textarea { font-size: 22px; }
  .choices { justify-items: stretch; }
  .choices label { width: 100%; min-width: 0; }
  .form-nav { right: 16px; bottom: 16px; }
  .form-legal { left: 16px; bottom: 16px; }
  .consent-question legend { font-size: 20px; }
  .submit-button { width: min(254px, 100%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
