:root {
  --bg: #0d1a2d;
  --navy: #142240;
  --plum: #2a1b3f;
  --gold: #c9a227;
  --cream: #faf7f0;
  --sand: #f2ede3;
  --white: #ffffff;
  --ink: #1c1f2a;
  --muted: #636878;
  --light: #8e93a1;
  --border: #e2ddd3;
  --shadow: 0 18px 50px rgba(13, 26, 45, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--sand);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--sand);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.app {
  min-height: 100vh;
}

.wrap {
  width: min(1060px, calc(100% - 32px));
  margin: 0 auto;
}

.top-band {
  background: var(--bg);
  color: var(--cream);
  border-bottom: 4px solid var(--gold);
}

.top-band-inner {
  width: min(1060px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-mark {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mark {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(250, 247, 240, 0.35);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  flex: 0 0 auto;
}

.brand-eyebrow,
.brand-title,
.assessment-type,
.kicker,
.mini-kicker,
.lead,
.sublead,
h1,
h2,
h3,
p {
  margin-top: 0;
}

.brand-eyebrow {
  margin-bottom: 2px;
  color: rgba(250, 247, 240, 0.64);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-title {
  margin-bottom: 0;
  color: var(--cream);
  font-size: 1rem;
  font-weight: 850;
}

.assessment-type {
  margin-bottom: 0;
  color: rgba(250, 247, 240, 0.66);
  font-size: 0.86rem;
  font-weight: 650;
  text-align: right;
}

.button {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white);
  font-weight: 850;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(13, 26, 45, 0.16);
}

.button.gold {
  background: var(--gold);
  color: #171200;
}

.button.ghost {
  border-color: var(--border);
  background: transparent;
  color: var(--navy);
}

.button.secondary-light {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.button.large {
  width: min(320px, 100%);
  margin-top: 24px;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
  box-shadow: none;
}

.welcome {
  min-height: calc(100vh - 78px);
  padding: 42px 16px 48px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top left, rgba(201, 162, 39, 0.18), transparent 30%),
    linear-gradient(150deg, var(--bg) 0%, var(--navy) 45%, var(--plum) 100%);
}

.welcome-copy {
  width: min(620px, 100%);
  color: var(--white);
  text-align: center;
}

.kicker {
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.mini-kicker {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.34);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.welcome h1 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 6vw, 3.45rem);
  font-weight: 500;
  line-height: 1.12;
}

.welcome h1 span {
  color: var(--gold);
  font-weight: 800;
}

.lead {
  margin: 0 auto 8px;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.65;
}

.sublead {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.86rem;
  font-weight: 700;
}

.fine-print {
  max-width: 460px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.28);
  font-size: 0.72rem;
  line-height: 1.55;
}

.career-ladder {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  background: var(--white);
  box-shadow: 0 1px 6px rgba(13, 26, 45, 0.05);
}

.preview-ladder {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
  text-align: left;
}

.ladder-label {
  margin-bottom: 12px;
  color: var(--light);
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.preview-ladder .ladder-label {
  color: var(--gold);
}

.ladder-item {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--light);
}

.ladder-item span {
  width: 26px;
  color: var(--level-color);
  font-size: 0.72rem;
  font-weight: 900;
}

.ladder-item b {
  flex: 1;
  font-size: 0.84rem;
}

.ladder-item em {
  color: var(--level-color);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ladder-item.active {
  border-color: var(--level-color);
  background: color-mix(in srgb, var(--level-color) 12%, white);
  color: var(--ink);
}

.preview-ladder .ladder-item {
  color: rgba(255, 255, 255, 0.65);
}

.assessment-shell {
  width: min(720px, calc(100% - 24px));
  margin: 0 auto;
  padding: 0 0 112px;
}

.sticky-progress {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0 -12px 16px;
  padding: 16px 12px 14px;
  background: var(--bg);
  color: var(--white);
  box-shadow: 0 10px 26px rgba(13, 26, 45, 0.16);
}

.progress-meta {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sticky-progress p {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.82rem;
}

.progress-track {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--gold);
  transition: width 200ms ease;
}

.question-list {
  display: grid;
  gap: 10px;
}

.likert-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin: 0;
  padding: 16px;
  background: var(--white);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.likert-card:has(input:checked) {
  border-color: color-mix(in srgb, var(--dim-color) 46%, var(--border));
  box-shadow: 0 8px 24px rgba(13, 26, 45, 0.07);
}

.likert-card legend {
  margin-bottom: 14px;
  padding: 0;
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 720;
  line-height: 1.55;
}

.likert-card legend span {
  color: var(--dim-color);
  font-weight: 950;
}

.likert-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.likert-options label {
  min-height: 40px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.likert-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.likert-options span {
  width: 38px;
  height: 38px;
  border: 2px solid #d1ccbf;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--light);
  font-size: 0.86rem;
  font-weight: 850;
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.likert-options input:checked + span {
  border-color: var(--dim-color);
  background: var(--dim-color);
  color: var(--white);
}

.scale-labels {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--light);
  font-size: 0.68rem;
  font-weight: 700;
}

.validation {
  min-height: 24px;
  color: #a84444;
  font-size: 0.86rem;
  font-weight: 800;
}

.bottom-actions {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 25;
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
}

.bottom-actions .button {
  width: min(240px, 45vw);
}

.result-intro {
  background: linear-gradient(155deg, var(--bg), var(--plum));
  color: var(--white);
}

.level-hero {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 34px;
  text-align: center;
}

.level-marker {
  width: 54px;
  height: 54px;
  border: 2px solid var(--level-color);
  border-radius: 50%;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  color: var(--level-color);
  font-weight: 950;
}

.level-small {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.76rem;
  font-weight: 800;
}

.level-hero h1 {
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
}

.level-hero strong {
  display: block;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  line-height: 1;
}

.level-hero > span:last-child {
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.82rem;
  font-weight: 800;
}

.result-stack {
  padding: 20px 0 44px;
  display: grid;
  gap: 16px;
}

.result-grid {
  padding: 22px 0 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: start;
}

.result-main,
.result-side {
  display: grid;
  gap: 16px;
}

.result-side {
  position: sticky;
  top: 18px;
}

.result-panel,
.unlock-panel,
.recommendation-panel,
.completion-panel,
.radar-panel,
.insight-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 1px 6px rgba(13, 26, 45, 0.05);
}

.result-panel,
.unlock-panel,
.recommendation-panel,
.completion-panel {
  padding: 20px;
}

.result-panel h2,
.unlock-panel h2,
.recommendation-panel h2 {
  margin: 0 0 12px;
  color: var(--bg);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.25;
}

.result-panel p,
.unlock-panel p,
.recommendation-panel p,
.completion-panel p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.66;
}

.accent-panel {
  border-left: 5px solid var(--level-color);
}

.block-line {
  margin-bottom: 0;
  color: var(--level-color) !important;
  font-weight: 900;
  font-style: italic;
}

.unlock-panel {
  background: linear-gradient(145deg, var(--bg), var(--plum));
  color: var(--white);
}

.unlock-panel h2 {
  color: var(--white);
}

.unlock-panel p {
  color: rgba(255, 255, 255, 0.55);
}

.unlock-form {
  display: grid;
  gap: 12px;
}

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

.unlock-form label {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 850;
}

.unlock-form input {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  outline: none;
}

.unlock-form input:focus {
  border-color: var(--gold);
}

.consent-field {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px !important;
  font-size: 0.76rem !important;
  font-weight: 650 !important;
  line-height: 1.45;
}

.consent-field input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 2px 0 0;
  accent-color: var(--gold);
}

.form-note {
  min-height: 20px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 0.82rem !important;
  font-weight: 750;
}

.email-guidance {
  margin: -2px 0 0;
  color: rgba(255, 255, 255, 0.46) !important;
  font-size: 0.78rem !important;
  line-height: 1.5 !important;
}

.score-bars {
  display: grid;
  gap: 13px;
}

.score-row > div:first-child {
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.score-row span {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 850;
}

.score-row strong {
  color: var(--dim-color);
  font-size: 0.88rem;
  font-weight: 950;
}

.bar-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee9df;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--dim-color);
  transition: width 700ms ease;
}

.radar-panel {
  padding: 16px 8px 8px;
}

.radar-title {
  margin: 0 0 4px 12px;
  color: var(--light);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.radar-panel svg {
  width: 100%;
  height: auto;
  max-height: 300px;
}

.radar-panel text {
  fill: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
}

.insight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.insight-box {
  padding: 16px;
}

.insight-label {
  margin-bottom: 10px;
  color: var(--light);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.insight-box.strong .insight-label {
  color: #2d8659;
}

.insight-box.growth .insight-label {
  color: var(--gold);
}

.insight-line {
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 850;
}

.insight-line strong {
  color: var(--dim-color);
}

.action-list,
.shift-list {
  display: grid;
  gap: 12px;
}

.action-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
}

.action-item span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(201, 162, 39, 0.14);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 950;
}

.action-item p {
  margin-bottom: 0;
}

.shift-item {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: grid;
  gap: 8px;
}

.shift-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.shift-item div {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
}

.shift-item b {
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.shift-item div:first-child b {
  color: #b55252;
}

.shift-item div:last-child b {
  color: #2d8659;
}

.shift-item span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.shift-item div:first-child span {
  text-decoration: line-through;
  text-decoration-color: rgba(181, 82, 82, 0.35);
}

.recommendation-panel {
  background: linear-gradient(145deg, var(--bg), var(--plum));
}

.recommendation-panel h2 {
  color: var(--white);
}

.recommendation-panel strong {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 1rem;
}

.route-message {
  color: rgba(255, 255, 255, 0.56) !important;
  font-style: italic;
}

.route-note {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 12px;
  padding-top: 12px;
  color: rgba(255, 255, 255, 0.68) !important;
  font-weight: 750;
}

.recommendation-list {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 14px;
  padding-top: 14px;
  display: grid;
  gap: 10px;
}

.recommendation-list h3 {
  margin: 0;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.recommendation-action {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
}

.recommendation-action span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(201, 162, 39, 0.16);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 950;
}

.recommendation-action p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68) !important;
  font-size: 0.84rem;
  line-height: 1.5;
}

.recommendation-panel p {
  color: rgba(255, 255, 255, 0.52);
}

.recommendation-panel .button {
  width: 100%;
}

.recommendation-actions {
  display: grid;
  gap: 10px;
}

.completion-panel {
  text-align: center;
}

.completion-panel p {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.signature {
  border-top: 2px solid var(--gold);
  margin-top: 18px;
  padding-top: 16px;
  display: grid;
  gap: 4px;
}

.signature strong {
  color: var(--bg);
}

.signature span,
.signature a {
  color: var(--muted);
  font-size: 0.82rem;
}

.signature a {
  color: var(--gold);
  font-weight: 900;
  text-decoration: none;
}

.side-actions {
  display: grid;
  gap: 10px;
}

.disclaimer {
  padding: 0 0 36px;
}

.disclaimer p {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .top-band-inner {
    min-height: auto;
    padding: 16px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .assessment-type {
    text-align: left;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }

  .result-side {
    position: static;
  }
}

@media (max-width: 640px) {
  .wrap,
  .top-band-inner {
    width: min(100% - 24px, 1060px);
  }

  .welcome {
    padding: 26px 12px 34px;
    place-items: start center;
  }

  .career-ladder {
    padding: 14px;
  }

  .ladder-item {
    align-items: flex-start;
  }

  .ladder-item em {
    display: none;
  }

  .assessment-shell {
    width: min(100% - 18px, 720px);
  }

  .likert-card {
    padding: 14px;
  }

  .likert-options {
    gap: 4px;
  }

  .likert-options span {
    width: 34px;
    height: 34px;
  }

  .bottom-actions {
    padding: 10px;
  }

  .bottom-actions .button {
    width: 50%;
    padding: 10px;
    font-size: 0.86rem;
  }

  .name-grid {
    grid-template-columns: 1fr;
  }

  .level-hero {
    width: min(100% - 24px, 720px);
    padding: 30px 0 28px;
  }

  .result-grid {
    width: min(100% - 18px, 1060px);
    gap: 14px;
  }

  .result-main,
  .result-side {
    gap: 14px;
  }

  .insight-grid {
    grid-template-columns: 1fr;
  }

  .shift-item div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}
