: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;
  --blue: #2454ff;
  --violet: #6b38f0;
  --violet-2: #8f32e6;
  --magenta: #ed00ad;
  --mauve: #b528d6;
  --brand-gradient: linear-gradient(135deg, #ed00ad 0%, #8f32e6 46%, #2454ff 100%);
  --brand-gradient-text: linear-gradient(100deg, #2454ff 0%, #8f32e6 46%, #ed00ad 100%);
  --aubergine: #2b1b2e;
  --dark-line: rgba(250, 250, 247, 0.16);
  --dark-muted: rgba(250, 250, 247, 0.72);
  --dark-faint: rgba(250, 250, 247, 0.5);
  --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-lg: 24px;
  --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);
  --shadow-dark: 0 30px 80px -28px rgba(0, 0, 0, 0.6);
  --display-tight-scale: 0.985;
  --display-word-spacing: 0.02em;
  --font-display: "Poppins", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-script: "Biro Script Plus", "Snell Roundhand", "Bradley Hand", "Segoe Script", cursive;
  font-family: var(--font);
}

@font-face {
  font-family: "Biro Script Plus";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/Biro_Script_reduced.ttf") format("truetype");
}

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

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

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(72% 60% at 92% 10%, rgba(237, 0, 173, 0.08), transparent 62%),
    radial-gradient(64% 52% at 12% 18%, rgba(36, 84, 255, 0.08), transparent 58%),
    var(--bone);
  font-family: var(--font);
  font-feature-settings: "ss01", "cv01", "cv11";
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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;
  isolation: isolate;
  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-lockup {
  display: block;
  width: clamp(132px, 10vw, 158px);
  height: auto;
}

.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: var(--brand-gradient-text);
  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 {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(320px, 0.68fr);
  gap: clamp(28px, 3.5vw, 48px);
  align-items: start;
  min-height: auto;
  padding: clamp(34px, 3.8vw, 56px) 0 clamp(38px, 5vw, 60px);
}

.hero::before {
  position: absolute;
  top: clamp(28px, 6vw, 76px);
  right: min(-8vw, -40px);
  z-index: -1;
  width: clamp(240px, 28vw, 440px);
  height: clamp(240px, 28vw, 440px);
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(237, 0, 173, 0.12), transparent 67%);
  filter: blur(10px);
}

.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: 760px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(40px, 4.05vw, 56px);
  font-weight: 700;
  font-kerning: normal;
  font-feature-settings: "kern";
  font-stretch: 94%;
  letter-spacing: 0px;
  line-height: 1.03;
  word-spacing: var(--display-word-spacing);
  transform: scaleX(var(--display-tight-scale));
  transform-origin: left center;
}

.hero-title span {
  display: block;
}

h1 .heading-gradient,
.heading-gradient {
  display: block;
  margin-top: 0;
  font-family: var(--font-display);
  font-size: 1em;
  font-weight: 700;
  font-kerning: normal;
  font-feature-settings: "kern";
  font-stretch: 94%;
  letter-spacing: 0px;
  line-height: 1.03;
  word-spacing: var(--display-word-spacing);
  background: var(--brand-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: normal;
}

h2 {
  max-width: 24ch;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 700;
  font-kerning: normal;
  font-feature-settings: "kern";
  font-stretch: 94%;
  letter-spacing: 0px;
  line-height: 1.08;
  word-spacing: var(--display-word-spacing);
  transform: scaleX(var(--display-tight-scale));
  transform-origin: left center;
}

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

.lede {
  max-width: 60ch;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.32vw, 20px);
  line-height: 1.54;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 8px 13px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.72);
  font-size: 13px;
  font-weight: 740;
  line-height: 1;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 14px 22px;
  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);
  border-color: transparent;
  background: var(--brand-gradient);
}

.button-secondary {
  background: rgba(255, 253, 248, 0.75);
  border-color: var(--line-strong);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(250, 250, 247, 0.14);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 34px);
  color: var(--bone);
  background:
    linear-gradient(150deg, rgba(43, 27, 46, 0.98), rgba(11, 11, 12, 0.98) 58%),
    var(--ink);
  box-shadow: var(--shadow-dark);
}

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

.panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.panel-topline span {
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-pill);
  padding: 7px 10px;
  color: var(--dark-muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1;
}

.hero-panel .panel-label {
  color: var(--dark-muted);
}

.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(--dark-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);
}

.review-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 28px;
}

.review-flow span {
  display: block;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--bone);
  background: var(--brand-gradient);
  font-size: 13px;
  font-weight: 820;
  text-align: center;
}

.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;
  font-size: clamp(30px, 3.45vw, 46px);
}

.status-box,
fieldset,
.submission-output {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.86);
  box-shadow: var(--shadow-soft);
}

.status-box {
  position: relative;
  overflow: hidden;
  padding: 16px 18px;
}

.status-box::before {
  display: block;
  width: 100%;
  height: 5px;
  margin: -16px -18px 14px;
  content: "";
  background: var(--brand-gradient-text);
}

.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 {
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 8px 12px;
  color: var(--ink-soft);
  background: var(--bone);
}

.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: 52px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 500;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--violet);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(36, 84, 255, 0.11);
}

.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: 14px;
  padding: 12px;
  background: rgba(250, 250, 247, 0.72);
  font-size: 14px;
  font-weight: 680;
  line-height: 1.35;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.choice:hover,
.checkbox-group label:hover,
.declarations label:hover {
  border-color: rgba(36, 84, 255, 0.28);
  transform: translateY(-1px);
}

.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(36, 84, 255, 0.42);
  background: linear-gradient(95deg, rgba(36, 84, 255, 0.09), rgba(237, 0, 173, 0.09));
}

.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;
}

.site-footer {
  margin-top: clamp(42px, 7vw, 82px);
  padding: clamp(46px, 6vw, 72px) 0;
  color: var(--bone);
  background: linear-gradient(145deg, #0b0b0c, #2b1b2e 88%);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
  gap: clamp(28px, 5vw, 68px);
  width: min(var(--max), calc(100% - (var(--shell) * 2)));
  margin-inline: auto;
  align-items: start;
}

.footer-lockup {
  width: clamp(128px, 12vw, 170px);
}

.site-footer p {
  max-width: 58ch;
  margin-top: 16px;
  color: var(--dark-muted);
  font-size: 14px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: var(--dark-muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--bone);
}

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

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

  .brand-lockup {
    width: 132px;
  }

  .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;
    min-height: auto;
    padding-top: clamp(42px, 9vw, 66px);
    padding-bottom: clamp(40px, 9vw, 60px);
  }

  .hero-panel {
    display: none;
  }

  h1 {
    max-width: 13.5ch;
    font-size: clamp(36px, 8.8vw, 50px);
  }

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

  .lede {
    font-size: 17px;
  }

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

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

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

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

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

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

  .brand-lockup {
    width: 118px;
  }

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

  h1 {
    max-width: 10.6ch;
    font-size: clamp(34px, 10.4vw, 46px);
  }

  h1 .heading-gradient,
  .heading-gradient {
    font-size: 1em;
    white-space: normal;
  }

  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;
  }
}
