@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Mulish";
  src: url("fonts/mulish-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #101010;
  --paper: #ffffff;
  --smoke: #f4f4f2;
  --line: #d8d8d3;
  --muted: #62625e;
  --blue: #0b1f3b;
  --blue-bright: #2869ff;
  --soft-blue: #dce8ff;
  --warm: #eae6df;
  --radius-lg: 28px;
  --radius-md: 16px;
  --max: 1280px;
  --header-height: 88px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Mulish", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body,
input,
textarea,
select,
button {
  font-family: "Mulish", system-ui, sans-serif;
}

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

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

a {
  color: inherit;
}

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

h1,
h2,
h3,
.button {
  font-family: "Outfit", system-ui, sans-serif;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 8px;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  width: min(calc(100% - 48px), var(--max));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand-logo img {
  height: auto;
}

.brand-logo-header img {
  width: clamp(160px, 15vw, 194px);
}

.brand-logo-footer img {
  width: 140px;
}

.stage-chip {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.stage-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--blue-bright);
  border-radius: 50%;
}

.hero {
  width: min(calc(100% - 48px), var(--max));
  min-height: calc(100dvh - var(--header-height));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(380px, 0.75fr);
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
}

.hero-copy {
  min-width: 0;
  padding: clamp(28px, 3.2vw, 48px) clamp(44px, 6vw, 92px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.kicker,
.section-index,
.form-eyebrow {
  margin-bottom: 18px;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kicker {
  color: #b4c9f5;
}

.hero h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 5.55vw, 5.5rem);
  line-height: 0.96;
  font-weight: 610;
  letter-spacing: -0.058em;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.hero-summary {
  max-width: 660px;
  margin-bottom: 16px;
  color: #d0d0cc;
  font-size: clamp(1.06rem, 1.45vw, 1.25rem);
  line-height: 1.55;
  overflow-wrap: break-word;
}

.stage-disclosure {
  max-width: 600px;
  margin-bottom: 22px;
  color: #9f9f9a;
  font-size: 0.93rem;
  overflow-wrap: break-word;
}

.button {
  min-height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 760;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-light {
  margin-top: auto;
  background: var(--paper);
  color: var(--ink);
}

.button-dark {
  width: 100%;
  min-height: 60px;
  justify-content: space-between;
  background: var(--ink);
  color: var(--paper);
}

.button-dark:disabled {
  cursor: wait;
  opacity: 0.55;
}

.hero-art {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: var(--blue);
  border-left: 1px solid rgb(255 255 255 / 12%);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.hero-art img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: 24% 76%;
  transform: scale(1.82);
  transform-origin: 22% 78%;
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 58% 0 0;
  background: linear-gradient(to bottom, transparent, rgb(3 12 26 / 58%));
  pointer-events: none;
}

.hero-art-caption {
  position: absolute;
  z-index: 1;
  right: 28px;
  bottom: 28px;
  left: 28px;
  padding-top: 15px;
  border-top: 1px solid rgb(255 255 255 / 38%);
  display: flex;
  justify-content: space-between;
  color: rgb(255 255 255 / 76%);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-strip {
  width: min(calc(100% - 48px), var(--max));
  min-height: 96px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 24px;
  color: #555551;
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-strip p {
  margin: 0;
}

.signal-strip span {
  height: 1px;
  background: var(--line);
}

.clinician-section {
  width: min(calc(100% - 48px), var(--max));
  margin: 46px auto 0;
  padding: clamp(56px, 7vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(480px, 1.18fr);
  gap: clamp(60px, 8vw, 118px);
  align-items: start;
  background: var(--smoke);
  border-radius: var(--radius-lg);
}

.section-index,
.form-eyebrow {
  color: var(--blue);
}

.clinician-intro {
  position: sticky;
  top: 32px;
}

.clinician-intro h2,
.closing-statement h2 {
  margin-bottom: 28px;
  font-size: clamp(2.6rem, 4.15vw, 4.3rem);
  line-height: 1.02;
  font-weight: 590;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.clinician-invitation {
  max-width: 510px;
  color: var(--muted);
  font-size: 1.08rem;
}

.prototype-note {
  max-width: 520px;
  margin-top: 42px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  align-items: start;
}

.prototype-note span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: var(--paper);
  border-radius: 50%;
  font-family: "Outfit", sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
}

.prototype-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.form-panel {
  padding: clamp(30px, 4vw, 54px);
  background: var(--paper);
  border-radius: 20px;
  box-shadow: 0 28px 80px rgb(20 20 18 / 8%);
}

.form-eyebrow {
  margin-bottom: 14px;
}

.prototype-disclosure {
  max-width: 620px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 0.88rem;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  margin-bottom: 22px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 790;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  border: 1px solid #c9c9c3;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  outline: none;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.field textarea {
  min-height: 118px;
  resize: vertical;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 22px,
    calc(100% - 12px) 22px;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px rgb(40 105 255 / 13%);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #a42929;
}

.field-hint,
.field-error {
  margin: 7px 0 0;
  font-size: 0.75rem;
}

.field-hint {
  color: #777772;
}

.field-error {
  color: #8c1e1e;
  font-weight: 700;
}

.health-warning {
  margin: 0 0 16px;
  color: #676761;
  font-size: 0.75rem;
}

.form-actions {
  margin-top: 2px;
}

.form-actions .health-warning {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.form-summary,
.success-state,
.noscript-message {
  margin-bottom: 26px;
  padding: 20px;
  border-radius: 12px;
}

.form-summary {
  background: #fff1f1;
  border: 1px solid #e5b9b9;
}

.form-summary h3,
.success-state h3 {
  margin-bottom: 5px;
  font-size: 1rem;
}

.form-summary ul {
  margin: 8px 0 0;
  padding-left: 20px;
  font-size: 0.86rem;
}

.success-state {
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
  background: var(--soft-blue);
  border: 1px solid #aec8ff;
}

.success-state:not([hidden]) {
  display: grid;
}

.success-state p {
  margin: 0;
  color: #34435d;
  font-size: 0.84rem;
}

.success-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: var(--paper);
  border-radius: 50%;
  font-weight: 900;
}

.noscript-message {
  background: var(--warm);
  font-size: 0.85rem;
}

.closing-statement {
  width: min(calc(100% - 48px), var(--max));
  margin: 132px auto;
  display: grid;
  grid-template-columns: 0.7fr 1.45fr;
  column-gap: 80px;
  align-items: start;
}

.closing-statement .section-index {
  grid-row: 1 / span 3;
}

.closing-statement h2 {
  max-width: 760px;
}

.closing-statement > p:not(.section-index) {
  max-width: 650px;
  margin-bottom: 1.15em;
  color: var(--muted);
  font-size: 1.05rem;
}

.closing-statement > p:not(.section-index):last-child {
  margin-bottom: 0;
}

.site-footer {
  min-height: 210px;
  padding: 48px max(24px, calc((100vw - var(--max)) / 2));
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  background: var(--ink);
  color: var(--paper);
}

.site-footer p {
  margin: 14px 0 0;
  color: #999994;
  font-size: 0.78rem;
}

.site-footer nav {
  display: flex;
  gap: 28px;
}

.site-footer nav a {
  color: #c7c7c2;
  font-size: 0.86rem;
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--paper);
}

.legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--smoke);
}

.legal-page .site-header {
  flex: 0 0 auto;
}

.legal-shell {
  width: min(calc(100% - 48px), 980px);
  margin: 70px auto 100px;
  padding: clamp(38px, 7vw, 84px);
  background: var(--paper);
  border-radius: var(--radius-lg);
}

.legal-shell h1 {
  max-width: 700px;
  margin-bottom: 44px;
  font-size: clamp(3.2rem, 6vw, 5.8rem);
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: -0.06em;
}

.legal-copy {
  max-width: 680px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 1.02rem;
}

.legal-copy p {
  margin-bottom: 20px;
}

.legal-back {
  margin-top: 30px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 0;
  }

  .hero-art {
    min-height: 300px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .hero-art img {
    min-height: 300px;
  }

  .clinician-section {
    grid-template-columns: 1fr;
  }

  .clinician-intro {
    position: static;
  }

  .closing-statement {
    grid-template-columns: 1fr;
  }

  .closing-statement .section-index {
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 72px;
  }

  .site-header {
    width: calc(100% - 32px);
    min-height: 72px;
    gap: 12px;
  }

  .brand-logo-header img {
    width: min(148px, 40vw);
  }

  .stage-chip {
    flex: 0 0 auto;
    padding: 7px 10px;
    font-size: 0.58rem;
    letter-spacing: 0.06em;
  }

  .hero,
  .signal-strip,
  .clinician-section,
  .closing-statement {
    width: calc(100% - 24px);
  }

  .hero {
    border-radius: 20px;
  }

  .hero-copy {
    min-height: 0;
    padding: 36px 24px 28px;
  }

  .kicker {
    margin-bottom: 18px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.15rem, 9.4vw, 2.85rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
    overflow-wrap: break-word;
  }

  .hero-summary {
    font-size: 1rem;
  }

  .button-light {
    width: 100%;
  }

  .hero-art {
    height: 250px;
    min-height: 250px;
    border-radius: 20px 20px 0 0;
  }

  .hero-art img {
    height: 250px;
    min-height: 250px;
    object-position: 18% 42%;
    transform: scale(2.05);
    transform-origin: 16% 40%;
  }

  .hero-art-caption {
    right: 18px;
    bottom: 18px;
    left: 18px;
    font-size: 0.58rem;
  }

  .signal-strip {
    min-height: 150px;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 25px 12px;
  }

  .signal-strip span {
    display: none;
  }

  .clinician-section {
    margin-top: 18px;
    padding: 46px 18px 18px;
    gap: 42px;
    border-radius: 20px;
  }

  .section-index {
    margin-bottom: 24px;
  }

  .clinician-intro h2,
  .closing-statement h2 {
    font-size: 2.65rem;
  }

  .form-panel {
    padding: 26px 18px;
    border-radius: 15px;
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .closing-statement {
    margin: 88px auto;
    padding-inline: 18px;
  }

  .site-footer {
    min-height: 240px;
    padding: 38px 24px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
  }

  .legal-shell {
    width: calc(100% - 24px);
    margin: 28px auto 70px;
    padding: 38px 24px;
    border-radius: 20px;
  }
}

@media (min-width: 981px) and (max-aspect-ratio: 4 / 5) {
  .hero {
    min-height: min(calc(100dvh - var(--header-height)), 760px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
