:root {
  color-scheme: light;
  --ink: #071c25;
  --paper: #f2efe6;
  --white: #ffffff;
  --blue: #59bceb;
  --blue-soft: #dff4fe;
  --yellow: #ffe473;
  --yellow-soft: #fff5bd;
  --peach-soft: #ffe8dc;
  --line: #7d8a89;
  --muted: #56676e;
  --error: #a12b1d;
  --page-width: 760px;
  font-family: "Recht", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
}

button,
input,
textarea { font: inherit; }

button,
label,
input[type="radio"],
input[type="checkbox"] { -webkit-tap-highlight-color: transparent; }

button { color: inherit; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.site-header :focus-visible,
.site-footer :focus-visible { outline-color: var(--yellow); }

[hidden] { display: none !important; }

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

h1,
h2,
h3 { font-weight: 700; }

a { color: inherit; }

.site-shell {
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: var(--paper);
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-inline: max(16px, calc((100% - var(--page-width)) / 2));
  background: var(--ink);
  color: var(--white);
}

.site-header { min-height: 60px; }

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--white);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 112px;
  height: auto;
}

.header-meta {
  color: #cad7da;
  font-size: 12px;
}

.site-footer {
  min-height: 50px;
  color: #cad7da;
  font-size: 11px;
}

.progress-row {
  display: grid;
  grid-template-columns: auto minmax(80px, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px max(16px, calc((100% - var(--page-width)) / 2));
  border-bottom: 1px solid rgb(7 28 37 / .17);
  background: var(--white);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.progress-track {
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: #dce2e0;
}

.progress-track span {
  display: block;
  width: 44%;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

main,
.intro,
.result-hero { padding-inline: max(16px, calc((100% - var(--page-width)) / 2)); }

.intro {
  padding-top: 32px;
  padding-bottom: 26px;
}

.eyebrow {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.intro h1,
.result-hero h1,
.state-page h1 {
  max-width: 700px;
  margin-bottom: 12px;
  font-size: clamp(30px, 6vw, 52px);
  line-height: 1.06;
  letter-spacing: -.045em;
}

.intro > p:last-child {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

#career-form,
.result-main { max-width: var(--page-width); margin-inline: auto; }

.form-section {
  padding: 28px 0;
  border-top: 1px solid rgb(7 28 37 / .2);
}

.section-heading {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 18px;
}

.section-heading > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
}

.section-heading h2 {
  margin-bottom: 5px;
  font-size: clamp(21px, 3vw, 27px);
  line-height: 1.17;
  letter-spacing: -.03em;
}

.section-heading p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
}

textarea,
input[type="text"],
input[type="email"] {
  width: 100%;
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
}

textarea {
  min-height: 150px;
  padding: 16px;
  resize: vertical;
  font-size: 16px;
}

textarea::placeholder,
input::placeholder { color: #77868b; opacity: 1; }

[aria-invalid="true"] { border-color: var(--error) !important; }

.field-help,
.field-error {
  margin: 9px 0 0;
  font-size: 13px;
}

.field-help { color: var(--muted); }
.field-error { color: var(--error); font-weight: 500; }

.field-example {
  margin-top: 10px;
  padding: 12px 14px;
  border-left: 3px solid var(--ink);
  background: var(--white);
  color: var(--muted);
  font-size: 13px;
}

.field-example strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 14px;
}

.field-example p { margin-bottom: 0; }

.choice-groups,
.radio-groups,
.axes { display: grid; gap: 12px; }

.choice-group,
.radio-group,
.axis {
  min-width: 0;
  margin: 0;
  padding: 15px;
  border: 1px solid var(--ink);
  border-radius: 14px;
  background: var(--white);
}

.choice-group-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}

.choice-group-header h3 {
  margin-bottom: 3px;
  font-size: 15px;
  line-height: 1.3;
}

.choice-group-header p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.choice-count {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 32px;
  padding-inline: 9px;
  border-radius: 99px;
  background: #e7ecea;
  font-size: 12px;
  font-weight: 500;
}

.choice-group-blue .choice-count { background: var(--blue-soft); }
.choice-group-yellow .choice-count { background: var(--yellow-soft); }
.choice-group-peach .choice-count { background: var(--peach-soft); }

.choice-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-chip {
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--white);
  font-size: 15px;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.choice-chip[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
  box-shadow: none;
}

.choice-group-limit { animation: limit-shake .35s ease-in-out; }

@keyframes limit-shake {
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

.conditional-field {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.conditional-field input {
  min-height: 46px;
  padding: 11px 12px;
  font-size: 14px;
}

.axis { padding: 13px; }

.axis-labels {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin-bottom: 9px;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.axis-labels span:last-child { text-align: right; }

.axis-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 99px;
  background: #e3e7e5;
}

.axis-choices button {
  min-height: 48px;
  border: 0;
  border-radius: 99px;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
}

.axis-choices button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--white);
}

.radio-group legend {
  padding: 0 4px;
  font-size: 14px;
  font-weight: 500;
}

.radio-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 8px;
}

.radio-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  min-height: 48px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
}

.radio-option:has(input:checked) {
  border-color: var(--ink);
  background: var(--yellow-soft);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.radio-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--ink);
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 20px;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.primary-action {
  width: 100%;
  margin-top: 26px;
  border: 0;
  background: var(--ink);
  color: var(--white);
}

.secondary-action {
  border: 1px solid var(--ink);
  background: transparent;
}

.privacy {
  margin: 11px 8px 28px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.result-hero {
  padding-top: 34px;
  padding-bottom: 30px;
  background: var(--ink);
  color: var(--white);
}

.result-hero .eyebrow { color: var(--blue); }

.result-hero h1 {
  max-width: var(--page-width);
  margin-inline: auto;
  font-size: clamp(27px, 5.5vw, 46px);
}

.result-hero > .eyebrow,
.result-hero > .personal-note { max-width: var(--page-width); margin-inline: auto; }

.personal-note {
  margin-top: 16px;
  margin-bottom: 0;
  padding: 13px;
  border-left: 3px solid var(--yellow);
  background: rgb(255 255 255 / .08);
  color: #d9e5e7;
  font-size: 13px;
}

.result-main { padding-top: 28px; padding-bottom: 30px; }

.result-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.result-heading h2 { margin-bottom: 0; font-size: 23px; letter-spacing: -.03em; }
.result-heading span { color: var(--muted); font-size: 14px; }

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

.direction {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.direction:has(.direction-toggle[aria-expanded="true"]) { border-color: var(--ink); }

.direction-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 104px;
  padding: 13px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.direction-copy strong,
.direction-copy span,
.direction-copy small { display: block; }

.direction-copy { min-width: 0; }

.direction-copy strong {
  margin-bottom: 5px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.direction-copy span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.direction-copy small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.direction-side { display: grid; justify-items: end; gap: 6px; }

.best-match {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  margin-bottom: 7px;
  padding: 5px 9px;
  border: 1px solid var(--ink);
  border-radius: 99px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.direction-chevron { color: var(--muted); font-size: 18px; }

.direction-detail {
  padding: 0 15px 16px;
  border-top: 1px solid rgb(7 28 37 / .14);
}

.direction-why {
  margin: 14px 0;
  color: var(--muted);
  font-size: 14px;
}

.detail-section {
  padding: 14px 0;
  border-top: 1px solid rgb(7 28 37 / .12);
}

.detail-section h3 { margin-bottom: 8px; font-size: 14px; }
.detail-section p,
.detail-section li { font-size: 14px; }
.detail-section p:last-child { margin-bottom: 0; }
.detail-section ul { margin: 0; padding-left: 19px; }

.start-list { display: grid; gap: 11px; }

.start-role + .start-role {
  padding-top: 11px;
  border-top: 1px solid rgb(7 28 37 / .1);
}

.start-role > strong { display: block; margin-bottom: 5px; font-size: 14px; }
.start-role > p { margin-bottom: 8px; }

.badges,
.employer-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.badge {
  padding: 6px 8px;
  border-radius: 99px;
  background: #e8ecea;
  font-size: 14px;
  line-height: 1.3;
}

.access-badge { background: var(--blue-soft); }

.try-action {
  margin-top: 3px;
  padding: 14px;
  border-radius: 11px;
  background: var(--ink);
  color: var(--white);
}

.try-action > strong {
  display: block;
  margin-bottom: 5px;
  color: var(--yellow);
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.try-action p { margin-bottom: 0; font-size: 14px; }

.drain,
.email-panel {
  margin-top: 15px;
  padding: 18px;
  border-radius: 14px;
}

.drain { background: var(--blue-soft); }
.drain h2,
.email-panel h2 { margin-bottom: 8px; font-size: 20px; letter-spacing: -.025em; }
.drain p,
.email-panel > p { margin-bottom: 0; font-size: 14px; }

.email-panel {
  border: 1px solid var(--ink);
  background: var(--yellow);
}

.email-panel > p { margin-bottom: 15px; }

.email-input {
  min-height: 48px;
  padding: 11px 12px;
  font-size: 14px;
}

.email-submit {
  width: 100%;
  min-height: 48px;
  padding: 10px 17px;
  border: 0;
  border-radius: 99px;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.email-submit:disabled { cursor: wait; opacity: .65; }

.consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin: 12px 0 14px;
  font-size: 14px;
  line-height: 1.45;
}

.consent input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--ink);
}

.email-status {
  min-height: 1.4em;
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 500;
}

.state-page {
  display: grid;
  align-content: center;
  min-height: calc(100vh - 110px);
  max-width: var(--page-width);
  margin-inline: auto;
  padding-top: 48px;
  padding-bottom: 48px;
}

.state-page > p:not(.eyebrow) {
  max-width: 600px;
  color: var(--muted);
  font-size: 14px;
}

.state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}

.state-actions .primary-action { width: auto; margin-top: 0; }

.loading-dots { display: flex; gap: 6px; margin-top: 10px; }

.loading-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 1.2s ease-in-out infinite;
}

.loading-dots span:nth-child(2) { animation-delay: .15s; }
.loading-dots span:nth-child(3) { animation-delay: .3s; }

@keyframes pulse {
  0%, 80%, 100% { opacity: .25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

@media (min-width: 720px) {
  .choice-groups { grid-template-columns: 1fr 1fr; }
  .choice-group-peach { grid-column: 1 / -1; }
  .axes { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .intro { padding-top: 25px; padding-bottom: 21px; }
  .form-section { padding-block: 24px; }
  .radio-options { grid-template-columns: 1fr; }
  .direction-toggle { grid-template-columns: minmax(0, 1fr) 18px; }
  .state-actions { display: grid; }
  .state-actions .primary-action,
  .state-actions .secondary-action { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
