@font-face {
  font-family: Mulish;
  src: url('./assets/fonts/Mulish-Light.ttf') format('truetype');
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: Mulish;
  src: url('./assets/fonts/Mulish-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

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

:root {
  --page: hsl(240 8% 96%);
  --surface: hsl(0 0% 100%);
  --ink: hsl(239 100% 9%);
  --muted: hsl(232 12% 43%);
  --control-border: hsl(235 5% 53%);
  --purple: hsl(256 72% 59%);
  --purple-hover: hsl(256 64% 49%);
  --focus: hsl(256 64% 40%);
  --error: hsl(0 66% 35%);
  --error-surface: hsl(0 80% 98%);
  font-family: Mulish, system-ui, sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
  font-size: 16px;
}

* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input, textarea { font: inherit; }
input, textarea { color: inherit; }

.page {
  width: min(100%, 808px);
  margin: 0 auto;
  padding: 48px 24px;
}

.brand-row { display: flex; align-items: flex-start; gap: 16px; }
.brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  width: 98px;
  height: 52px;
  padding-inline: 12px;
  border-radius: 32px;
  background: var(--ink);
  color: var(--surface);
  font-size: 20px;
}
.brand img { filter: brightness(0) invert(1); }
.eyebrow { padding-top: 0; color: var(--muted); font-size: 12px; line-height: 20px; text-transform: uppercase; }
h1 { margin: 28px 0 24px; font-size: 38px; line-height: 48px; font-weight: 300; letter-spacing: -.1px; }
.intro > p { margin: 0; color: var(--muted); line-height: 24px; }
.form-panel { margin-top: 24px; padding: 32px; border-radius: 24px; background: var(--surface); }
.identity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { line-height: 24px; }
.field > input, .field > textarea {
  display: block;
  width: 100%;
  min-height: 42px;
  padding: 9px 15px;
  background: var(--surface);
  border: 1px solid var(--control-border);
  border-radius: 8px;
  line-height: 22px;
  box-shadow: 0 0 0 1px hsl(235 7% 96%);
}
.field > textarea { resize: vertical; overflow: auto; }
::placeholder { color: var(--ink); opacity: 1; }
.question { margin: 24px 0 0; }
fieldset { min-width: 0; border: 0; padding: 0; }
legend { width: 100%; padding: 0; font-size: 18px; line-height: 24px; font-weight: 500; }
.hint { margin: 12px 0 8px; font-size: 14px; line-height: 20px; color: var(--muted); }
.topics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
.choice { display: flex; align-items: center; gap: 12px; min-height: 32px; cursor: pointer; line-height: 24px; border-radius: 4px; }
.choice input { flex: 0 0 16px; width: 16px; height: 16px; margin: 0; accent-color: var(--purple-hover); cursor: pointer; }
.choice:hover { color: var(--purple-hover); }
.choice:has(input:checked) { color: var(--ink); }
.choice input:active { accent-color: var(--focus); }
.experience-options { display: grid; gap: 4px; margin-top: 8px; }
.submit-button {
  display: block;
  width: 100%;
  min-height: 52px;
  margin-top: 24px;
  padding: 12px 24px;
  border: 0;
  border-radius: 12px;
  background: var(--purple);
  color: var(--surface);
  line-height: 24px;
  cursor: pointer;
  transition: background-color 150ms ease;
}
.submit-button:hover:not(:disabled) { background: var(--purple-hover); }
.submit-button:active:not(:disabled) { background: var(--focus); }
.submit-button:disabled { background: var(--muted); cursor: wait; }
.form-note, .privacy-note { color: var(--muted); font-size: 12px; line-height: 18px; }
.form-note { margin: 24px 0 0; }
.privacy-note { margin-top: 24px; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--purple-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.field > input:focus-visible, .field > textarea:focus-visible { border-color: var(--focus); }
.field-error { margin: 0; color: var(--error); font-size: 14px; line-height: 20px; }
fieldset > .field-error { margin-top: 8px; }
[aria-invalid="true"] { border-color: var(--error) !important; }
.form-message { margin: 0 0 24px; padding: 16px; border: 1px solid var(--error); border-radius: 8px; background: var(--error-surface); color: var(--error); line-height: 24px; }
.success-message { padding: 24px 0; }
.success-message h2 { margin: 16px 0 0; font-size: 24px; font-weight: 400; line-height: 32px; }
.success-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--surface); background: var(--purple-hover); font-size: 24px; }
.sr-only, .honeypot { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 600px) {
  .page { padding: 24px; }
  h1 { margin-top: 24px; font-size: 30px; line-height: 40px; letter-spacing: -.6px; }
  .intro > p { line-height: 22px; }
  .form-panel { padding: 0; border-radius: 0; background: transparent; }
  .identity-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .topics-grid { gap: 3px 16px; }
  .topics-grid .choice { min-height: 44px; line-height: 22px; }
  .field > textarea { padding-right: 8px; }
  .privacy-note { margin-top: 24px; }
}

@media (max-width: 359px) {
  .page { padding-inline: 16px; }
  .topics-grid { column-gap: 12px; }
  .choice { gap: 8px; }
}

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

@media (forced-colors: active) {
  .brand { border: 1px solid CanvasText; }
  .brand img { filter: none; }
  .submit-button { border: 1px solid ButtonText; }
}
