:root {
  color-scheme: light;
  --ink: #101827;
  --muted: #607083;
  --navy: #101827;
  --navy-mid: #0c1624;
  --aqua: #08c8c7;
  --aqua-dark: #07999b;
  --aqua-soft: #e8f7f7;
  --paper: #f5f8f8;
  --line: rgba(16, 24, 39, 0.12);
  --white: #ffffff;
  --font: Inter, Arial, sans-serif;
  --display: Montserrat, Inter, Arial, sans-serif;
}

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

html { min-width: 320px; scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }

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

h1:focus { outline: 0; }

.frame {
  width: min(1120px, calc(100% - 72px));
  margin-inline: auto;
}

main.frame { flex: 1; }

.intro {
  display: grid;
  min-height: min(760px, calc(100vh - 142px));
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 74px);
  padding: 54px 0 64px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--aqua-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.5;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 0 3px rgba(0, 201, 200, 0.16);
}

.intro h1 {
  margin-top: 13px;
  font: 800 5.3rem/0.98 var(--display);
  letter-spacing: 0;
}

.intro h1 em { color: var(--aqua); font-style: normal; }

.lede {
  max-width: 470px;
  margin-top: 23px;
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.6;
}

.intro-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 21px;
  margin: 20px 0 25px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.intro-meta span + span { border-left: 1px solid #b9cac8; padding-left: 20px; }
.intro-meta strong { margin-right: 3px; color: var(--aqua-dark); }

.lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.lead-field { display: grid; gap: 7px; }
.lead-field span, .position-picker legend {
  color: #263a4c;
  font-size: 13px;
  font-weight: 800;
}

.lead-field input {
  width: 100%;
  min-width: 0;
  height: 45px;
  border: 1px solid #c9d8d6;
  border-radius: 7px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  outline: 0;
}

.lead-field input:focus {
  border-color: var(--aqua);
  box-shadow: 0 0 0 3px rgba(0, 201, 200, 0.14);
}

.lead-field input::placeholder { color: #8998a5; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.position-picker { min-width: 0; margin: 0 0 14px; padding: 0; border: 0; }
.position-picker legend { margin-bottom: 9px; padding: 0; }
.position-options { display: flex; flex-wrap: wrap; gap: 7px; }
.position-option { position: relative; display: flex; cursor: pointer; }

.position-option input {
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.position-option span {
  padding: 9px 11px;
  border: 1px solid #cad8d7;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 700;
}

.position-option:hover span { border-color: var(--aqua); }
.position-option input:checked + span { border-color: var(--aqua); background: var(--aqua); color: #061117; }
.position-option input:focus-visible + span { outline: 3px solid var(--aqua); outline-offset: 3px; }

.consent-option {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: start;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  cursor: pointer;
}

.consent-option input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--aqua); }

.button {
  min-height: 47px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.button span { font-size: 19px; line-height: 1; }
.primary { border-color: var(--aqua); background: var(--aqua); color: #061117; box-shadow: 0 14px 32px rgba(8, 200, 199, 0.18); }
.primary:hover:not(:disabled) { border-color: var(--aqua-dark); background: #21d5d4; transform: translateY(-1px); }
.primary:disabled { border-color: #d2dfdd; background: #e1e9e8; color: #6f7f7d; }
.secondary { border-color: #c9d8d6; background: transparent; color: var(--ink); }
.secondary:hover { border-color: var(--aqua); background: var(--aqua-soft); }
.privacy-note { max-width: 510px; margin-top: 10px; color: #6d7d8b; font-size: 11px; }

.role-map {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid #1f3442;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 58%, #0b2440 100%);
  box-shadow: 0 26px 55px rgba(18, 24, 39, 0.13);
  color: #f2fbfa;
}

.role-map::before {
  position: absolute;
  content: "";
  inset: 0;
  border-top: 4px solid var(--aqua);
  pointer-events: none;
}

.map-top, .role-grid { position: relative; }
.map-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 21px; }
.map-top h2 { font: 800 19px/1.3 var(--display); }
.map-brand { color: var(--aqua); font: 800 12px/1 var(--display); }

.role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.role-grid li {
  min-height: 162px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 15px 16px;
  border: 1px solid rgba(123, 212, 204, 0.28);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
}

.role-grid h3 { color: #ffffff; font: 800 17px/1.3 var(--display); }
.role-grid p { margin-top: 5px; color: #bed0d1; font-size: 13px; line-height: 1.45; }

.role-symbol {
  width: 31px;
  height: 31px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  flex-shrink: 0;
}

.role-symbol i { min-width: 0; min-height: 0; background: var(--aqua); }
.role-symbol.expert i { border-radius: 2px; }
.role-symbol.expert i:nth-child(2), .role-symbol.expert i:nth-child(3) { background: #ffffff; }
.role-symbol.guide i { border-radius: 50% 50% 2px 50%; }
.role-symbol.guide i:nth-child(2) { transform: rotate(90deg); }
.role-symbol.guide i:nth-child(3) { transform: rotate(-90deg); }
.role-symbol.guide i:nth-child(4) { transform: rotate(180deg); background: var(--aqua-dark); }
.role-symbol.mediator i { border-radius: 50%; }
.role-symbol.mediator i:nth-child(odd) { background: #ffffff; }
.role-symbol.coordinator i { border-radius: 1px; transform: scaleY(0.55); transform-origin: bottom; }
.role-symbol.coordinator i:nth-child(1) { transform: scaleY(0.38); }
.role-symbol.coordinator i:nth-child(2) { transform: scaleY(0.9); }
.role-symbol.coordinator i:nth-child(3) { transform: none; }
.role-symbol.coordinator i:nth-child(4) { transform: none; background: #ffffff; }

.no-script { padding-block: 40px; }

.quiz-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 750px);
  gap: clamp(24px, 5vw, 70px);
  padding: 44px 0 60px;
}

.quiz-sidebar { padding: 25px 0; }
.progress-count { margin: 5px 0 10px; color: #536879; font-size: 24px; font-weight: 600; line-height: 1.15; }
.progress-count strong { color: var(--ink); font: 800 54px/1 var(--display); }
.segments { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.segments i { height: 5px; border-radius: 3px; background: #d2dfde; }
.segments .current { background: var(--aqua); }
.segments .done { background: var(--aqua-dark); }
.sidebar-detail { margin-top: 19px; color: var(--ink); font-size: 13px; font-weight: 700; }
.sidebar-detail span { color: var(--muted); font-size: 12px; font-weight: 500; }

.question-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 42px;
  background: var(--white);
  box-shadow: 0 14px 43px rgba(7, 24, 39, 0.05);
}

.question-context { margin-bottom: 9px; }
.question-card h1 {
  max-width: 650px;
  font: 800 2.35rem/1.15 var(--display);
  letter-spacing: 0;
  text-wrap: pretty;
}

.question-help { margin: 13px 0 19px; color: var(--muted); font-size: 14px; }
.choices { display: grid; gap: 8px; }

.choice {
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 13px;
  border: 1px solid #d5e1e0;
  border-radius: 7px;
  padding: 10px 13px;
  background: #fafcfc;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.42;
  text-align: left;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.choice:hover { border-color: #729c9b; background: #eff7f6; }
.choice.chosen { border-color: var(--aqua); background: #f5ffff; }
.choice-rank { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; background: #e8eeee; color: var(--aqua-dark); font-weight: 800; }
.chosen .choice-rank { background: var(--aqua); color: #061117; }
.selection-hint { min-height: 20px; margin-top: 10px; color: var(--muted); font-size: 12px; }
.selection-hint.error { color: #9a3b22; }
.question-footer { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.result { padding: 42px 0 62px; }
.result-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 50px;
  border-radius: 8px;
  border-top: 4px solid var(--aqua);
  color: #f4fffe;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 58%, #0b2440 100%);
  box-shadow: 0 18px 48px rgba(18, 24, 39, 0.1);
}

.result-hero .eyebrow { color: var(--aqua); }
.result-hero h1 { margin: 8px 0; font: 800 4.3rem/1.05 var(--display); letter-spacing: 0; text-wrap: balance; }
.result-hero p:not(.eyebrow) { max-width: 600px; color: #cfe5e4; font-size: 17px; }
.result-position { padding: 7px 10px; border: 1px solid rgba(113, 200, 193, 0.46); border-radius: 7px; color: #c6e4e1; font-size: 12px; font-weight: 700; white-space: nowrap; }
.result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.result-card { padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.result-card h2 { font: 800 18px/1.25 var(--display); }
.result-card h3 { margin-top: 13px; color: var(--ink); font-size: 13px; font-weight: 800; }
.result-card p { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.56; }
.result-card .pressure-label { color: var(--aqua-dark); font-weight: 800; }
.action-card { border-color: rgba(8, 200, 199, 0.45); background: var(--aqua-soft); }

.delivery {
  display: grid;
  grid-template-columns: 9px 1fr auto;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--muted);
  font-size: 12px;
}

.delivery-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); }
.delivery[data-state="sending"] .delivery-dot { background: var(--aqua); animation: pulse 1.1s ease-in-out infinite; }
.delivery[data-state="sent"] { border-color: rgba(8, 200, 199, 0.48); background: var(--aqua-soft); color: var(--ink); }
.delivery[data-state="sent"] .delivery-dot { background: var(--aqua); }
.delivery[data-state="error"] { border-color: #e3b39f; background: #fff4ef; color: #8d3f26; }
.delivery[data-state="error"] .delivery-dot { background: #c75b36; }
.delivery button { border: 0; background: transparent; color: inherit; font-weight: 800; text-decoration: underline; }

@keyframes pulse { 50% { opacity: 0.35; } }

.result-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
.result-footer p { color: var(--muted); font-size: 12px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.result-actions .button { min-height: 42px; font-size: 13px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 940px) {
  .frame { width: min(100% - 46px, 1120px); }
  .intro { grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr); gap: 28px; }
  .intro h1 { font-size: 4.15rem; }
  .role-map { padding: 22px; }
  .quiz-layout { grid-template-columns: 145px minmax(0, 1fr); gap: 24px; }
  .question-card { padding: 32px; }
  .result-hero h1 { font-size: 3.35rem; }
}

@media (max-width: 720px) {
  .frame { width: calc(100% - 34px); }
  .intro { display: block; min-height: 0; padding: 32px 0 38px; }
  .intro h1 { font-size: 3.25rem; }
  .lede { margin-top: 16px; font-size: 1rem; }
  .intro-meta { margin: 16px 0 20px; }
  .lead-grid { grid-template-columns: 1fr; }
  .position-option span { padding: 8px 9px; font-size: 12px; }
  .start-button { width: 100%; }
  .role-map { margin-top: 27px; padding: 17px; }
  .role-grid li { min-height: 140px; padding: 13px 10px; gap: 13px; }
  .role-grid h3 { font-size: 15px; }
  .role-grid p { font-size: 12px; }
  .map-top { margin-bottom: 14px; }
  .map-top h2 { font-size: 17px; }
  .quiz-layout { grid-template-columns: 1fr; gap: 11px; padding: 16px 0 28px; }
  .quiz-sidebar { display: grid; grid-template-columns: auto 1fr auto; gap: 7px 12px; align-items: baseline; padding: 0; }
  .quiz-sidebar .eyebrow { font-size: 9px; }
  .progress-count { grid-column: 3; grid-row: 1; justify-self: end; margin: 0; font-size: 14px; }
  .progress-count strong { font-size: 21px; }
  .segments { grid-column: 1 / -1; grid-row: 2; }
  .sidebar-detail { grid-column: 2; grid-row: 1; justify-self: end; margin: 0; font-size: 11px; }
  .sidebar-detail span { display: none; }
  .question-card { padding: 17px; }
  .question-card h1 { font-size: 1.55rem; }
  .question-help { margin: 8px 0 13px; font-size: 13px; }
  .choice { min-height: 50px; gap: 8px; padding: 8px; font-size: 13px; }
  .choice-rank { width: 27px; height: 27px; }
  .question-footer { margin-top: 13px; }
  .question-footer .button { min-height: 43px; padding-inline: 11px; }
  .result { padding: 24px 0 40px; }
  .result-hero { flex-direction: column; padding: 28px 22px; }
  .result-hero h1 { font-size: 2.55rem; }
  .result-grid { grid-template-columns: 1fr; gap: 8px; }
  .result-footer { align-items: flex-start; flex-direction: column; }
  .delivery { grid-template-columns: 9px 1fr; }
  .delivery button { grid-column: 2; justify-self: start; padding: 0; }
}

@media (max-width: 410px) {
  .role-grid { grid-template-columns: 1fr; }
  .role-grid li { min-height: 122px; }
  .question-footer { align-items: stretch; flex-direction: column-reverse; }
  .question-footer .button { width: 100%; }
}

/* Softer iOS-inspired surfaces shared with the public site. */
.role-map,
.question-card,
.result-hero,
.result-card,
.delivery {
  border-radius: 24px;
  box-shadow: 0 20px 56px rgba(8, 24, 39, .09);
}

.role-grid li,
.choice {
  border-radius: 16px;
  transition: transform .28s cubic-bezier(.22, 1, .36, 1), border-color .28s ease, background .28s ease;
}

.role-grid li:hover,
.choice:hover { transform: translateY(-3px); }

.lead-field input,
.position-option span,
.button { border-radius: 13px; }

.result-position { border-radius: 999px; }

@media (max-width: 640px) {
  .role-map,
  .question-card,
  .result-hero,
  .result-card,
  .delivery { border-radius: 20px; }
}

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