:root {
  --navy: #10284f;
  --ink: #172033;
  --ink-soft: #31415d;
  --muted: #687892;
  --line: #dce4ee;
  --surface: #ffffff;
  --soft: #f3f7fb;
  --soft-blue: #eaf2fc;
  --blue: #174ea6;
  --blue-bright: #3478dc;
  --orange: #f47c20;
  --orange-soft: #fff0e5;
  --green: #267455;
  --green-soft: #e3f3eb;
  --shadow: 0 22px 60px rgba(16, 40, 79, 0.11);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #f7faff;
  line-height: 1.55;
}

button, input, select, textarea { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

a { color: inherit; }

.pilot-header {
  width: min(1180px, calc(100% - 48px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--orange));
  font-size: .86rem;
  font-weight: 850;
  letter-spacing: -.06em;
}

.brand strong, .brand small { display: block; line-height: 1.15; }
.brand strong { font-size: .96rem; }
.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.pilot-header nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: .86rem;
}

.pilot-header nav a { text-decoration: none; }
.pilot-header nav a:hover, .pilot-header nav a:focus-visible { color: var(--blue); }

.pilot-shell {
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
  padding: 54px 0 42px;
}

.intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 38px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 720px;
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(2.35rem, 5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -.065em;
}
h2 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -.05em;
}
h3 { color: var(--navy); font-size: 1.05rem; }

.lead {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.68;
}

.privacy-note {
  padding: 18px;
  display: flex;
  gap: 12px;
  border: 1px solid #d5e7dd;
  border-radius: 13px;
  background: var(--green-soft);
}
.privacy-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: white;
  font-weight: 850;
}
.privacy-note strong { color: var(--green); font-size: .84rem; }
.privacy-note p { margin: 4px 0 0; color: #4d6f61; font-size: .77rem; }

.progress-panel, .stage-panel, .completion-panel {
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.progress-panel { padding: 22px 25px 18px; }
.progress-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 750;
}
.progress-track {
  height: 7px;
  margin: 12px 0 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eef8;
}
.progress-track span {
  width: 20%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  transition: width 180ms ease;
}

.stepper {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  list-style: none;
}
.stepper li {
  min-width: 0;
  color: var(--muted);
  font-size: .72rem;
  text-align: center;
}
.stepper li::before {
  content: attr(data-number);
  width: 27px;
  height: 27px;
  margin: 0 auto 6px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  font-size: .68rem;
  font-weight: 850;
}
.stepper li.active { color: var(--blue); font-weight: 800; }
.stepper li.active::before { border-color: var(--blue); color: white; background: var(--blue); }
.stepper li.done::before { border-color: var(--green); color: white; background: var(--green); }

.stage-panel { padding: 34px; }
.stage-kicker {
  margin-bottom: 6px;
  color: var(--orange);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.stage-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 27px;
}
.stage-header p { max-width: 640px; margin-bottom: 0; color: var(--muted); }
.stage-badge {
  padding: 7px 10px;
  flex: 0 0 auto;
  border-radius: 999px;
  color: var(--blue);
  background: var(--soft-blue);
  font-size: .7rem;
  font-weight: 850;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.data-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdff;
}
.data-card.full { grid-column: 1 / -1; }
.data-card dt { color: var(--muted); font-size: .71rem; }
.data-card dd { margin: 5px 0 0; color: var(--navy); font-weight: 750; }

.tag-list, .decision-grid, .score-grid, .check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--soft-blue);
  font-size: .73rem;
}
.tag.orange { color: #a94f12; background: var(--orange-soft); }

.option-panel {
  margin-top: 23px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.option-panel label, .note-panel label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: .81rem;
  font-weight: 750;
}
.option-panel select, .note-panel textarea {
  width: 100%;
  border: 1px solid #bdcbe0;
  border-radius: 9px;
  color: var(--ink);
  background: white;
}
.option-panel select { min-height: 42px; padding: 8px 10px; }
.note-panel { margin-top: 15px; }
.note-panel textarea { min-height: 84px; padding: 10px; resize: vertical; }
.note-panel textarea:focus, .option-panel select:focus {
  outline: 3px solid rgba(52, 120, 220, .16);
  border-color: var(--blue);
}

.decision-grid { margin-top: 14px; }
.decision-option {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #bdcbe0;
  border-radius: 9px;
  color: var(--ink-soft);
  background: white;
  cursor: pointer;
}
.decision-option.selected, .decision-option:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--soft-blue);
}

.score-grid { margin-top: 16px; }
.score-card {
  min-width: 112px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
}
.score-card span, .score-card strong { display: block; }
.score-card span { color: var(--muted); font-size: .7rem; }
.score-card strong { margin-top: 5px; color: var(--navy); font-size: 1.3rem; }

.check-list { display: grid; gap: 9px; }
.check-row {
  padding: 11px 13px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfdff;
}
.check-row span { color: var(--ink-soft); font-size: .82rem; }
.check-row strong { color: var(--green); font-size: .76rem; }
.check-row.missing strong { color: #aa5b27; }

.stage-actions {
  margin-top: 30px;
  padding-top: 21px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
}
.action-group { display: flex; flex-wrap: wrap; gap: 9px; }

.button {
  min-height: 43px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--ink-soft);
  background: white;
  font-size: .84rem;
  font-weight: 800;
  cursor: pointer;
}
.button.primary { color: white; background: linear-gradient(135deg, var(--blue), var(--blue-bright)); }
.button.secondary { border-color: #bdcbe0; }
.button:hover, .button:focus-visible { transform: translateY(-1px); }
.button:focus-visible, .decision-option:focus-visible, .text-button:focus-visible {
  outline: 3px solid rgba(52, 120, 220, .2);
  outline-offset: 2px;
}

.completion-panel {
  padding: 27px 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  background: linear-gradient(120deg, #edf5ff, #fff7f0);
}
.completion-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green);
  font-weight: 900;
}
.completion-panel p:not(.eyebrow) { margin-bottom: 0; color: var(--muted); font-size: .84rem; }
.completion-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; }

.pilot-footer {
  padding: 21px 0 0;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: var(--muted);
  font-size: .72rem;
}
.text-button {
  padding: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  font-size: .72rem;
  cursor: pointer;
}

@media (max-width: 760px) {
  .pilot-header, .pilot-shell { width: min(100% - 30px, 980px); }
  .pilot-header { min-height: 70px; }
  .pilot-header nav { gap: 13px; font-size: .75rem; }
  .intro-panel { grid-template-columns: 1fr; gap: 22px; }
  .stage-panel { padding: 23px 18px; }
  .stage-header { display: grid; gap: 12px; }
  .stage-badge { justify-self: start; }
  .data-grid { grid-template-columns: 1fr; }
  .data-card.full { grid-column: auto; }
  .completion-panel { grid-template-columns: auto 1fr; padding: 23px 18px; }
  .completion-actions { grid-column: 1 / -1; justify-content: start; }
  .pilot-footer { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  .progress-track span, .button { transition: none; }
}
