:root {
  --ink: #1f1b4d;
  --slate: #526075;
  --muted: #6b7280;
  --indigo: #6366f1;
  --indigo-deep: #4338ca;
  --lavender: #eef0ff;
  --white: #ffffff;
  --surface: #f7f8fc;
  --coral: #dc554b;
  --teal: #0f9f8f;
  --border: #dfe3f3;
  --shadow: 0 16px 42px rgba(31, 27, 77, .09);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--surface);
  font: 16px/1.55 "Open Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--indigo-deep); }
button, input, textarea, select { font: inherit; }
button { touch-action: manipulation; }
h1, h2, h3, strong { font-family: "Manrope", system-ui, sans-serif; }

.site-shell {
  width: min(100% - 32px, 920px);
  margin: 0 auto;
  padding: 16px 0 36px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 820px;
  margin: 0 auto 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.logo-link img { display: block; width: 38px; height: 38px; object-fit: contain; }
.wordmark { display: grid; line-height: 1; }
.wordmark strong { font-size: 15px; letter-spacing: -.02em; }
.wordmark small {
  margin-top: 4px;
  color: var(--indigo-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.private-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.intake-main { width: 100%; max-width: 820px; min-width: 0; margin: 0 auto; }
.form-card, .status-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.form-card { padding: clamp(22px, 4vw, 38px); }
.form-intro { margin-bottom: 20px; }
.eyebrow {
  display: block;
  margin: 0 0 7px;
  padding: 0;
  color: var(--indigo-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}
.form-intro h1 {
  margin: 0 0 8px;
  font-size: clamp(31px, 5vw, 42px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.form-intro > p:not(.eyebrow):not(.privacy-note) {
  max-width: 62ch;
  margin: 0;
  color: var(--slate);
  font-size: 15px;
}
.form-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.form-meta span + span::before { content: "•"; margin-right: 12px; color: var(--indigo); }
.privacy-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  color: var(--slate);
  background: #f8f9ff;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 12px;
}
.privacy-note strong { color: var(--ink); }

.progress {
  margin-bottom: 22px;
  padding: 11px 13px;
  background: #fafbff;
  border: 1px solid var(--border);
  border-radius: 11px;
}
.progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.progress-copy span {
  color: var(--indigo-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.progress-copy strong { font-size: 13px; }
.progress-track { height: 5px; overflow: hidden; background: #e5e7f8; border-radius: 999px; }
.progress-fill {
  width: 25%;
  height: 100%;
  background: var(--indigo-deep);
  border-radius: inherit;
  transition: width 350ms var(--ease);
}

fieldset { display: none; min-width: 0; margin: 0; padding: 0; border: 0; }
fieldset[data-active="true"] { display: block; animation: enter 180ms var(--ease); }
@keyframes enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.section-head { margin-bottom: 20px; }
.section-head .eyebrow { margin-bottom: 6px; }
.section-head h2 {
  max-width: 22ch;
  margin: 0 0 6px;
  font-size: clamp(25px, 4vw, 32px);
  line-height: 1.15;
  letter-spacing: -.025em;
}
.section-head > p:last-child { max-width: 62ch; margin: 0; color: var(--slate); font-size: 14px; }
.contact-block { margin-bottom: 22px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.contact-title { margin: 0 0 13px; color: var(--ink); font-weight: 800; }
.field { margin-bottom: 16px; }
.field-grid { display: grid; gap: 13px; }
.field-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-grid .field { margin-bottom: 16px; }
label, .label-like { display: block; margin-bottom: 6px; color: #29255f; font-size: 13px; font-weight: 700; }
label > span[aria-hidden="true"], .label-like > span[aria-hidden="true"] { color: var(--coral); }
.nowrap { white-space: nowrap; }
.optional {
  margin-left: 5px;
  color: var(--muted) !important;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
input, textarea, select {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfd5ea;
  border-radius: 9px;
  outline: 0;
  transition: border-color 140ms, box-shadow 140ms;
}
textarea { min-height: 78px; resize: vertical; }
input:hover, textarea:hover, select:hover { border-color: #9fa9d1; }
input:focus, textarea:focus, select:focus,
input:focus-visible, textarea:focus-visible, select:focus-visible,
button:focus-visible, a:focus-visible {
  border-color: var(--indigo);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .14);
}
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] {
  border-color: var(--coral);
  background: #fff9f8;
}
::placeholder { color: #8791a3; opacity: 1; }
.hint { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.money-input { position: relative; }
.money-input > span {
  position: absolute;
  top: 50%;
  left: 13px;
  z-index: 1;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 700;
}
.money-input input { padding-left: 29px; }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.choice, .radio-stack .choice {
  display: flex;
  min-height: 47px;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
}
.choice:hover { border-color: #aeb5da; background: #fbfbff; }
.choice:has(input:checked) { border-color: var(--indigo); background: #f2f3ff; }
.choice input { width: 18px; min-height: 18px; margin: 0; padding: 0; accent-color: var(--indigo); box-shadow: none; }
.choice span { line-height: 1.35; }
.field-error { min-height: 18px; margin: 5px 0 0; color: #b42318; font-size: 12px; }

.access-list { display: grid; gap: 8px; margin-bottom: 20px; }
.access-row {
  display: grid;
  grid-template-columns: minmax(145px, .65fr) minmax(230px, 1.35fr);
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #fafbff;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.access-name { font-family: "Manrope", system-ui, sans-serif; font-size: 13px; font-weight: 800; }
.access-row select { min-height: 41px; padding: 8px 11px; font-size: 13px; }
.readiness-field { margin-top: 22px; }
.radio-stack { display: grid; gap: 8px; }
.password-callout {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  margin: 17px 0;
  padding: 13px;
  color: var(--slate);
  background: #f0fbf9;
  border: 1px solid #c9ebe6;
  border-radius: 10px;
  font-size: 13px;
}
.password-callout svg, .status-mark svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.password-callout svg { color: var(--teal); }
.password-callout p { margin: 0; }
.password-callout strong { color: var(--ink); }

.form-nav {
  position: sticky;
  z-index: 4;
  bottom: 8px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 22px -6px -6px;
  padding: 12px 6px 6px;
  background: linear-gradient(to bottom, rgba(255,255,255,.76), #fff 28%);
  border-top: 1px solid var(--border);
}
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform 150ms var(--ease), box-shadow 150ms, background 150ms;
}
.button-primary { color: #fff; background: var(--indigo-deep); box-shadow: 0 8px 18px rgba(67, 56, 202, .2); }
.button-primary:hover { transform: translateY(-1px); box-shadow: 0 11px 23px rgba(67, 56, 202, .26); }
.button-primary:disabled { opacity: .58; cursor: wait; transform: none; }
.button-secondary { color: var(--indigo-deep); background: #fff; border-color: #cdd3ea; }
.button-secondary:hover { background: #f7f8ff; }
.button-secondary[hidden] { display: none; }
.form-error { min-height: 20px; color: #b42318; font-size: 13px; font-weight: 700; }

.status-card { padding: clamp(34px, 6vw, 56px); text-align: center; }
.status-card[hidden] { display: none; }
.status-mark { display: grid; width: 60px; height: 60px; place-items: center; margin: 0 auto 18px; border-radius: 999px; }
.status-mark.success { color: var(--teal); background: #e6f7f4; }
.status-mark.error { color: var(--coral); background: #fff0ee; }
.status-mark svg { width: 29px; height: 29px; }
.status-card h2 { margin: 0 0 9px; font-size: 32px; line-height: 1.15; }
.status-card > p:not(.eyebrow) { max-width: 540px; margin: 0 auto 20px; color: var(--slate); }
.next-box {
  display: grid;
  gap: 5px;
  max-width: 560px;
  margin: 24px auto 0;
  padding: 16px;
  text-align: left;
  background: #f7f8ff;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.next-box span { color: var(--slate); font-size: 14px; }
.status-exit { width: fit-content; margin: 22px auto 0; }
body.completed .status-card { min-height: 0; }

footer {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 12px;
}
footer a { color: inherit; text-underline-offset: 3px; }
.honeypot, .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 680px) {
  .site-shell { width: min(100% - 20px, 920px); padding-top: 10px; }
  .topbar { margin-bottom: 10px; padding-bottom: 9px; }
  .logo-link img { width: 33px; height: 33px; }
  .wordmark strong { font-size: 13px; }
  .wordmark small { font-size: 8px; }
  .private-label { display: none; }
  .form-card { padding: 17px 14px; border-radius: 14px; }
  .form-intro { margin-bottom: 14px; }
  .form-intro h1 { font-size: 29px; }
  .form-intro > p:not(.eyebrow):not(.privacy-note) { font-size: 14px; line-height: 1.45; }
  .form-meta { margin-top: 10px; gap: 3px 8px; font-size: 10px; }
  .form-meta span + span::before { margin-right: 8px; }
  .privacy-note { margin-top: 9px; padding: 8px 9px; font-size: 11px; }
  .progress { margin-bottom: 15px; padding: 9px 10px; }
  .progress-copy { display: grid; gap: 2px; margin-bottom: 6px; }
  .section-head { margin-bottom: 15px; }
  .section-head h2 { max-width: 100%; margin-bottom: 4px; font-size: 24px; }
  .section-head > p:last-child { font-size: 13px; line-height: 1.45; }
  .contact-title { margin-bottom: 10px; font-size: 14px; }
  .field-grid.two, .choice-grid { grid-template-columns: 1fr; }
  .field-grid .field { margin-bottom: 14px; }
  .field { margin-bottom: 14px; }
  label, .label-like { font-size: 13px; }
  textarea { min-height: 74px; }
  .access-row { grid-template-columns: 1fr; gap: 6px; padding: 9px 10px; }
  .form-nav { bottom: 5px; display: grid; grid-template-columns: 1fr; margin-top: 17px; }
  .button { width: 100%; }
  .button-secondary { order: 2; }
  .status-card { padding: 34px 20px; border-radius: 14px; }
  .status-exit { width: 100%; }
  footer { flex-wrap: wrap; margin-top: 18px; }
}

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