@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inconsolata";
  src: url("/assets/fonts/inconsolata-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inconsolata";
  src: url("/assets/fonts/inconsolata-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face { font-family: "Plus Jakarta Sans"; src: url("/assets/fonts/plus-jakarta-sans-400.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/assets/fonts/plus-jakarta-sans-500.ttf") format("truetype"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/assets/fonts/plus-jakarta-sans-600.ttf") format("truetype"); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/assets/fonts/plus-jakarta-sans-700.ttf") format("truetype"); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: "Inconsolata"; src: url("/assets/fonts/inconsolata-500.ttf") format("truetype"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: "Inconsolata"; src: url("/assets/fonts/inconsolata-600.ttf") format("truetype"); font-style: normal; font-weight: 600; font-display: swap; }

:root {
  color-scheme: dark;
  --background-primary: #000000;
  --background-secondary: #0f0f0f;
  --background-third: #1b1b1b;
  --white-40: rgba(255, 255, 255, 0.04);
  --white-60: rgba(255, 255, 255, 0.06);
  --white-80: rgba(255, 255, 255, 0.08);
  --white-120: rgba(255, 255, 255, 0.12);
  --white-160: rgba(255, 255, 255, 0.16);
  --white-400: rgba(255, 255, 255, 0.4);
  --white-600: rgba(255, 255, 255, 0.6);
  --white-800: rgba(255, 255, 255, 0.8);
  --white-1000: #ffffff;
  --error: #d0302f;
  --success: #4ac97e;
  --button-disabled: #999999;
  --create-gradient: linear-gradient(90deg, #ffa052 0%, #e046a4 45%, #6851eb 100%);
  --font-app: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-amount: "Inconsolata", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background-primary);
  color: var(--white-1000);
  font-family: var(--font-app);
  font-size: 14px;
  line-height: 19px;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; }

a { color: inherit; }

[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--white-1000);
  color: var(--background-primary);
  transform: translateY(-160%);
  transition: transform 150ms cubic-bezier(0.15, 0.75, 0.3, 1);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid var(--white-60);
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(32px);
}

.wordmark {
  font-size: 14px;
  line-height: 19px;
  font-weight: 700;
  text-decoration: none;
}

.wordmark:focus-visible,
.section-map a:focus-visible,
footer a:focus-visible {
  border-radius: 4px;
  outline: 2px solid var(--white-1000);
  outline-offset: 4px;
}

.header-actions { display: flex; align-items: center; gap: 12px; }

.clear-draft {
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: var(--white-80);
  color: var(--white-600);
  font-size: 12px;
  line-height: 17px;
  cursor: pointer;
  transition: background-color 150ms cubic-bezier(0.15, 0.75, 0.3, 1), color 150ms cubic-bezier(0.15, 0.75, 0.3, 1);
}

.clear-draft:hover { background: var(--white-160); color: var(--white-1000); }
.clear-draft:focus-visible { outline: 2px solid var(--white-1000); outline-offset: 2px; }

.save-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white-600);
  font-size: 12px;
  line-height: 17px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: currentColor;
}

.save-state[data-state="saving"] { color: var(--white-800); }
.save-state[data-state="saved"] { color: var(--success); }
.save-state[data-state="error"] { color: var(--error); }

main {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  column-gap: 64px;
  padding: 96px 0 72px;
}

.hero-label {
  grid-column: 1 / -1;
  margin-bottom: 24px;
  color: var(--white-400);
  font-size: 12px;
  line-height: 17px;
  text-transform: uppercase;
}

h1, h2, p, dl, dd, blockquote { margin-top: 0; }

h1 {
  margin-bottom: 0;
  font-size: clamp(48px, 6.2vw, 84px);
  line-height: 1.06;
  font-weight: 600;
}

h1 em {
  color: var(--white-400);
  font-style: normal;
}

.hero-copy {
  align-self: end;
  margin: 0 0 8px;
  color: var(--white-600);
  font-size: 18px;
  line-height: 28px;
}

.assessment-facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 64px 0 0;
  border-top: 1px solid var(--white-120);
  border-bottom: 1px solid var(--white-120);
}

.assessment-facts div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-right: 1px solid var(--white-120);
}

.assessment-facts div:first-child { padding-left: 0; }
.assessment-facts div:last-child { border-right: 0; }
.assessment-facts dt { color: var(--white-400); }
.assessment-facts dd { font-family: var(--font-amount); font-size: 16px; line-height: 23px; font-weight: 600; }

.brief-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  padding: 40px;
  border: 1px solid var(--white-120);
  border-radius: 16px;
  background: var(--white-80);
  backdrop-filter: blur(32px);
}

.section-kicker {
  margin-bottom: 8px;
  color: var(--white-400);
  font-size: 12px;
  line-height: 17px;
  font-weight: 500;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
}

.brief-copy { color: var(--white-600); font-size: 16px; line-height: 23px; }
.brief-copy p:last-child { margin-bottom: 0; }

.assessment-layout {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding: 72px 0 96px;
}

.section-map {
  position: sticky;
  top: 88px;
}

.section-map > p {
  margin-bottom: 16px;
  color: var(--white-400);
  font-size: 12px;
  line-height: 17px;
  text-transform: uppercase;
}

.section-map ol {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.section-map ol::before {
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 11px;
  width: 1px;
  background: var(--white-120);
  content: "";
}

.section-map li { position: relative; }

.section-map a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--white-400);
  text-decoration: none;
  transition: color 150ms cubic-bezier(0.15, 0.75, 0.3, 1);
}

.section-map a:hover { color: var(--white-1000); }

.section-map a span {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--white-120);
  border-radius: 9999px;
  background: var(--background-primary);
  color: var(--white-600);
  font-family: var(--font-amount);
  font-size: 12px;
  line-height: 17px;
}

#screening-form { min-width: 0; }

.assessment-card,
.submit-card,
.success-card {
  scroll-margin-top: 80px;
  padding: 40px;
  border: 1px solid var(--white-120);
  border-radius: 16px;
  background: var(--white-40);
}

.assessment-card + .assessment-card,
.assessment-card + .submit-card { margin-top: 20px; }

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--white-120);
}

.section-number {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: var(--white-80);
  color: var(--white-600);
  font-family: var(--font-amount);
  font-size: 14px;
  line-height: 19px;
}

.prompt,
.submit-copy {
  max-width: 720px;
  margin-bottom: 24px;
  color: var(--white-600);
  font-size: 14px;
  line-height: 19px;
}

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

.field { margin-top: 24px; }
.card-header + .field-grid > .field,
.prompt + .field-grid > .field,
.card-header + .field { margin-top: 0; }

label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--white-800);
  font-size: 14px;
  line-height: 19px;
  font-weight: 500;
}

input:not([type="checkbox"]),
textarea {
  width: 100%;
  border: 1px solid var(--white-120);
  border-radius: 12px;
  outline: none;
  background: linear-gradient(var(--white-40), var(--white-40)), var(--background-primary);
  color: var(--white-1000);
  transition: border-color 150ms cubic-bezier(0.15, 0.75, 0.3, 1), background-color 150ms cubic-bezier(0.15, 0.75, 0.3, 1);
}

input:not([type="checkbox"]) {
  height: 40px;
  padding: 0 12px;
}

textarea {
  min-height: 156px;
  padding: 12px;
  line-height: 23px;
  resize: vertical;
}

textarea.textarea-compact { min-height: 96px; }

input::placeholder,
textarea::placeholder { color: var(--white-400); opacity: 1; }

input:not([type="checkbox"]):hover,
textarea:hover { background: linear-gradient(var(--white-80), var(--white-80)), var(--background-primary); }

input:not([type="checkbox"]):focus,
textarea:focus {
  border-color: var(--white-1000);
  background: var(--background-primary);
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] { border-color: var(--error); }

.field-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

small {
  display: block;
  margin-top: 6px;
  margin-left: auto;
  color: var(--white-400);
  font-size: 12px;
  line-height: 17px;
  text-align: right;
}

textarea:invalid + .field-meta small,
small[data-over-limit="true"] { color: var(--error); }

.field-error {
  margin: 6px 0 0;
  color: var(--error);
  font-size: 12px;
  line-height: 17px;
}

blockquote {
  margin-bottom: 24px;
  padding: 24px;
  border-left: 2px solid var(--white-600);
  border-radius: 0 12px 12px 0;
  background: var(--white-60);
  color: var(--white-800);
  font-size: 20px;
  line-height: 30px;
  font-weight: 500;
}

.error-summary {
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid var(--error);
  border-radius: 12px;
  background: rgba(208, 48, 47, 0.12);
  color: var(--white-1000);
}

.error-summary:focus { outline: 2px solid var(--white-1000); outline-offset: 2px; }
.error-summary p { margin-bottom: 8px; font-weight: 600; }
.error-summary ul { margin: 0; padding-left: 20px; }
.error-summary a { color: var(--white-1000); }

.submit-card { margin-top: 20px; background: var(--white-80); backdrop-filter: blur(32px); }
.submit-card h2 { margin-bottom: 12px; }

.check-field {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--white-600);
  font-weight: 400;
}

.check-field input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--white-1000);
}

.check-field input:focus-visible { outline: 2px solid var(--white-1000); outline-offset: 3px; }

.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.turnstile-region {
  min-height: 66px;
  margin-top: 24px;
  color: var(--white-400);
  font-size: 12px;
  line-height: 17px;
}

.turnstile-region p { margin-bottom: 8px; }

.submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--white-120);
}

#form-status { margin: 0; color: var(--white-600); }
#form-status[data-state="error"] { color: var(--error); }

.submit-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 188px;
  height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  background: var(--create-gradient);
  color: var(--white-1000);
  font-size: 16px;
  line-height: 23px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 150ms cubic-bezier(0.15, 0.75, 0.3, 1), transform 150ms cubic-bezier(0.15, 0.75, 0.3, 1);
}

.submit-button svg { width: 20px; height: 20px; }
.submit-button:hover:not(:disabled) { transform: translateY(-1px); }
.submit-button:focus-visible { outline: 2px solid var(--white-1000); outline-offset: 3px; }
.submit-button:disabled { background: var(--button-disabled); color: var(--background-primary); cursor: not-allowed; opacity: 0.6; }

.success-card {
  max-width: 760px;
  margin: 96px auto;
  padding: 64px;
  text-align: center;
}

.success-card:focus { outline: 2px solid var(--white-1000); outline-offset: 4px; }

.success-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 24px;
  border-radius: 9999px;
  background: rgba(74, 201, 126, 0.2);
  color: var(--success);
}

.success-mark svg { width: 24px; height: 24px; }
.success-card h2 { margin-bottom: 12px; font-size: 30px; line-height: 38px; }
.success-card > p:last-child { max-width: 560px; margin: 0 auto; color: var(--white-600); font-size: 16px; line-height: 23px; }

footer {
  display: flex;
  justify-content: space-between;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 32px 0;
  border-top: 1px solid var(--white-120);
  color: var(--white-400);
  font-size: 12px;
  line-height: 17px;
}

footer span:first-child { color: var(--white-1000); font-weight: 700; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 620px; margin-top: 32px; }
  .assessment-layout { grid-template-columns: 1fr; }
  .section-map { display: none; }
}

@media (max-width: 767px) {
  .site-header { padding: 0 20px; }
  .save-state { max-width: 116px; }
  .save-state .status-dot { display: none; }
  .clear-draft { padding: 0 8px; }
  main, footer { width: min(100% - 32px, 640px); }
  .hero { padding: 64px 0 48px; }
  h1 { font-size: clamp(42px, 13vw, 60px); }
  .hero-copy { font-size: 16px; line-height: 23px; }
  .assessment-facts { grid-template-columns: 1fr; margin-top: 40px; }
  .assessment-facts div,
  .assessment-facts div:first-child { padding: 14px 0; border-right: 0; border-bottom: 1px solid var(--white-120); }
  .assessment-facts div:last-child { border-bottom: 0; }
  .brief-panel { grid-template-columns: 1fr; gap: 24px; padding: 28px 24px; }
  .assessment-layout { padding: 48px 0 72px; }
  .assessment-card, .submit-card { padding: 28px 20px; }
  .field-grid { grid-template-columns: 1fr; }
  .field-grid > .field + .field { margin-top: 24px; }
  .card-header { gap: 12px; }
  .section-number { width: 36px; height: 36px; }
  h2 { font-size: 20px; line-height: 30px; }
  blockquote { padding: 20px; font-size: 18px; line-height: 28px; }
  .submit-row { align-items: stretch; flex-direction: column; }
  .submit-button { width: 100%; }
  .success-card { margin: 64px auto; padding: 48px 24px; }
  footer { flex-direction: column; gap: 8px; }
}

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