:root {
  --ink: #0b0b0c;
  --ink-2: #18171b;
  --ink-soft: #2d2b31;
  --bone: #fafaf7;
  --paper: #f2ede5;
  --cream: #fff8ee;
  --surface: #fffdf8;
  --line: rgba(11, 11, 12, 0.12);
  --line-strong: rgba(11, 11, 12, 0.22);
  --muted: #55525c;
  --faint: #7a7681;
  --violet: #5b4fe5;
  --violet-2: #7b6cf1;
  --magenta: #e94ba8;
  --mauve: #a14fd0;
  --aubergine: #2b1b2e;
  --c00: #5b4fe5;
  --c01: #674fe0;
  --c02: #734edb;
  --c03: #7e4ed6;
  --c04: #8a4ed1;
  --c05: #964dcc;
  --c06: #a24dc6;
  --c07: #ae4dc1;
  --c08: #ba4cbc;
  --c09: #c64cb7;
  --c10: #d14cb2;
  --c11: #dd4bad;
  --c12: #e94ba8;
  --c13: #dd4bad;
  --c14: #d14cb2;
  --c15: #c64cb7;
  --c16: #ba4cbc;
  --c17: #ae4dc1;
  --c18: #a24dc6;
  --c19: #964dcc;
  --c20: #8a4ed1;
  --c21: #7e4ed6;
  --c22: #734edb;
  --c23: #674fe0;
  --max: 1200px;
  --shell: clamp(20px, 4vw, 48px);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow-soft: 0 24px 60px -32px rgba(11, 11, 12, 0.22);
  --shadow-card: 0 12px 32px -18px rgba(11, 11, 12, 0.28);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--font);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bone);
  font-family: var(--font);
  font-feature-settings: "ss01", "cv01", "cv11";
  line-height: 1.55;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 76px;
  padding: 0 max(var(--shell), calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(250, 250, 247, 0.9);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 0.5em, 14px);
  min-width: 0;
  color: var(--ink);
  line-height: 1;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  overflow: visible;
}

.brand-word {
  display: inline-flex;
  align-items: baseline;
  color: var(--ink);
  font-size: 28px;
  font-weight: 560;
  letter-spacing: 0;
  line-height: 1;
}

.brand-word .her {
  margin-left: 0.04em;
  color: var(--c12);
  font-weight: 800;
  animation: her-cycle 6.6s linear infinite;
}

@keyframes her-cycle {
  0.00% { color: var(--c00); }
  4.17% { color: var(--c01); }
  8.33% { color: var(--c02); }
  12.50% { color: var(--c03); }
  16.67% { color: var(--c04); }
  20.83% { color: var(--c05); }
  25.00% { color: var(--c06); }
  29.17% { color: var(--c07); }
  33.33% { color: var(--c08); }
  37.50% { color: var(--c09); }
  41.67% { color: var(--c10); }
  45.83% { color: var(--c11); }
  50.00% { color: var(--c12); }
  54.17% { color: var(--c13); }
  58.33% { color: var(--c14); }
  62.50% { color: var(--c15); }
  66.67% { color: var(--c16); }
  70.83% { color: var(--c17); }
  75.00% { color: var(--c18); }
  79.17% { color: var(--c19); }
  83.33% { color: var(--c20); }
  87.50% { color: var(--c21); }
  91.67% { color: var(--c22); }
  95.83% { color: var(--c23); }
  100.00% { color: var(--c00); }
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
}

.top-nav a {
  position: relative;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.top-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  content: "";
  background: linear-gradient(95deg, var(--violet), var(--magenta));
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.top-nav a:hover::after,
.top-nav a:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.top-nav a:focus-visible,
.button:focus-visible,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(91, 79, 229, 0.18);
  outline-offset: 3px;
}

main {
  width: 100%;
}

.hero,
.intake-form,
.coverage,
.submission-output {
  width: min(var(--max), calc(100% - (var(--shell) * 2)));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(320px, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  padding: clamp(54px, 7vw, 94px) 0 clamp(44px, 6vw, 72px);
}

.hero-copy {
  max-width: 780px;
}

.eyebrow,
.panel-label,
.coverage span,
.checkbox-group > p,
legend {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  content: "";
  background: var(--magenta);
  flex-shrink: 0;
}

h1 {
  max-width: 13.5ch;
  color: var(--ink);
  font-size: clamp(48px, 6vw, 78px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.04;
}

h2 {
  max-width: 22ch;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 380;
  letter-spacing: 0;
  line-height: 1.04;
}

h3 {
  color: var(--ink);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.18;
}

.lede {
  max-width: 58ch;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.6;
}

.hero-actions,
.submit-row,
.output-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  padding: 12px 20px;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-1px);
}

.button-primary {
  color: var(--bone);
  background: var(--ink);
}

.button-secondary {
  border-color: var(--line-strong);
}

.hero-panel {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(22px, 3vw, 32px) 0;
}

.hero-panel h2 {
  margin-top: 14px;
  font-size: clamp(24px, 3vw, 36px);
}

.hero-panel ul {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.hero-panel li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.hero-panel li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  content: "";
  background: var(--magenta);
}

.intake-form {
  display: grid;
  gap: 18px;
  padding-bottom: 38px;
}

.form-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.34fr);
  gap: 24px;
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: clamp(30px, 5vw, 54px);
}

.form-header h2 {
  max-width: 760px;
}

.status-box,
fieldset,
.submission-output {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.status-box {
  padding: 16px 18px;
}

.status-box span,
.status-box strong {
  display: block;
}

.status-box span {
  color: var(--muted);
  font-size: 13px;
}

.status-box strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 14px;
}

fieldset {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: clamp(22px, 3.6vw, 34px);
}

legend {
  padding: 0 8px;
  color: var(--aubergine);
}

.section-note {
  max-width: 82ch;
  margin-bottom: 2px;
  color: var(--muted);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.35;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  font-size: 16px;
  font-weight: 500;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--violet);
}

.full-field {
  grid-column: 1 / -1;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
}

.choice,
.checkbox-group label,
.declarations label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: rgba(250, 250, 247, 0.72);
  font-size: 14px;
  font-weight: 680;
  line-height: 1.35;
}

.choice input,
.checkbox-group input,
.declarations input {
  flex: 0 0 auto;
  width: 18px;
  min-height: 18px;
  margin-top: 1px;
  accent-color: var(--violet);
}

.choice:has(input:checked),
.checkbox-group label:has(input:checked),
.declarations label:has(input:checked) {
  border-color: rgba(91, 79, 229, 0.48);
  background: linear-gradient(95deg, rgba(91, 79, 229, 0.08), rgba(233, 75, 168, 0.08));
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.checkbox-group > p {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: var(--aubergine);
}

.declarations {
  display: grid;
  gap: 10px;
}

.submit-row {
  justify-content: flex-end;
  margin-bottom: 10px;
}

.coverage {
  display: grid;
  grid-template-columns: minmax(250px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  border-top: 1px solid var(--line);
  padding: clamp(52px, 7vw, 82px) 0 clamp(58px, 8vw, 90px);
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.coverage-grid div {
  min-height: 178px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.coverage span {
  color: var(--magenta);
}

.coverage-grid strong {
  display: block;
  margin: 10px 0;
  color: var(--ink);
  font-size: 1.08rem;
}

.coverage-grid p,
.coverage .section-note,
#mailto-note {
  color: var(--muted);
}

.submission-output {
  display: grid;
  gap: 20px;
  margin-top: 8px;
  margin-bottom: 56px;
  padding: clamp(22px, 3.6vw, 34px);
}

.submission-output[hidden] {
  display: none;
}

#summary-output {
  max-height: 560px;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  margin: 0;
  padding: 18px;
  color: var(--ink);
  background: #fff;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 980px) {
  html {
    scroll-padding-top: 0;
  }

  .site-header {
    position: static;
    min-height: 68px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-word {
    font-size: 26px;
  }

  .top-nav {
    display: none;
  }

  .hero,
  .intake-form,
  .coverage,
  .submission-output {
    width: min(var(--max), calc(100% - 40px));
  }

  .hero,
  .coverage,
  .field-grid,
  .choice-grid,
  .coverage-grid,
  .checkbox-group,
  .form-header {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 34px;
    padding-top: clamp(42px, 9vw, 66px);
    padding-bottom: clamp(40px, 9vw, 60px);
  }

  .hero-panel {
    display: none;
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(42px, 12vw, 58px);
  }

  h2 {
    font-size: clamp(30px, 8vw, 42px);
  }

  .lede {
    font-size: 17px;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .submit-row {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 0 20px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand-word {
    font-size: 23px;
  }

  .hero,
  .intake-form,
  .coverage,
  .submission-output {
    width: min(var(--max), calc(100% - 32px));
  }

  fieldset,
  .submission-output {
    padding: 20px;
  }

  .button {
    width: 100%;
  }
}

@media print {
  .site-header,
  .hero-actions,
  .submit-row,
  .output-actions {
    display: none;
  }

  body {
    background: #fff;
  }

  .hero,
  .intake-form,
  .coverage,
  .submission-output {
    width: 100%;
  }

  fieldset,
  .submission-output {
    box-shadow: none;
    break-inside: avoid;
  }
}
