:root {
  --ink: #1d2733;
  --muted: #66758a;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --line: #dde4e8;
  --navy: #173b57;
  --teal: #1f8a86;
  --green: #91b66e;
  --gold: #e0b24d;
  --coral: #d77962;
  --shadow: 0 24px 70px rgba(23, 59, 87, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(31, 138, 134, 0.12), transparent 24rem),
    linear-gradient(135deg, #f7f4ec 0%, #edf5f2 52%, #f8f2ee 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input {
  font: inherit;
}

.app-shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 34px;
  align-items: center;
  padding: 32px 0;
}

.brand-panel,
.interaction-panel {
  width: 100%;
}

.brand-panel {
  padding: 34px 0;
}

.brand-mark {
  width: 86px;
  height: 86px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 26px;
}

.brand-mark span {
  border: 2px solid rgba(23, 59, 87, 0.16);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(23, 59, 87, 0.08);
}

.brand-mark span:nth-child(1) {
  grid-row: span 2;
  background: linear-gradient(180deg, var(--teal), #54aaa0);
}

.brand-mark span:nth-child(2) {
  background: var(--gold);
}

.brand-mark span:nth-child(3) {
  background: var(--coral);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 690px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.9rem, 4vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: 0;
}

#screen-copy {
  max-width: 620px;
  margin: 22px 0 0;
  color: #425263;
  font-size: 1.08rem;
  line-height: 1.65;
}

.interaction-panel {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  padding: 26px;
}

.screen {
  min-height: 540px;
  display: flex;
  flex-direction: column;
}

.intro-card {
  justify-content: flex-start;
}

.intro-card .actions {
  margin-top: 26px;
}

.intro-text {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.creator-credit {
  display: grid;
  gap: 3px;
  margin: 18px 0 0;
  color: #7a8796;
  font-size: 0.92rem;
  font-weight: 750;
}

.creator-credit a {
  color: var(--teal);
  text-decoration: none;
}

.creator-credit a:hover,
.creator-credit a:focus-visible {
  text-decoration: underline;
}

.pill {
  width: fit-content;
  margin-bottom: 18px;
  border: 1px solid rgba(31, 138, 134, 0.18);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--teal);
  background: rgba(31, 138, 134, 0.08);
  font-size: 0.84rem;
  font-weight: 750;
}

.progress-wrap {
  margin-bottom: 22px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.progress-track {
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ecee;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--green));
  transition: width 220ms ease;
}

.question-prompt {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: 1.48rem;
  line-height: 1.25;
}

.awareness {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  color: #4a5868;
  background: #fff8e8;
  line-height: 1.55;
}

.scenario-label {
  width: fit-content;
  margin: 0 0 16px;
  border-radius: 8px;
  padding: 9px 12px;
  color: #7d3d2f;
  background: #fff1ec;
  font-size: 0.88rem;
  font-weight: 850;
}

.question-context {
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.5;
}

.options {
  display: grid;
  gap: 12px;
  margin: 6px 0 24px;
}

.card-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.scenario-options {
  gap: 10px;
}

.partnership-scale {
  margin: 4px 0 24px;
}

.partnership-options {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.partnership-options .reflection-card {
  grid-template-columns: 1fr;
  min-height: 164px;
  justify-items: start;
}

.option {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  width: 100%;
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  color: var(--ink);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.option:hover,
.option:focus-visible {
  border-color: rgba(31, 138, 134, 0.55);
  box-shadow: 0 14px 32px rgba(23, 59, 87, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.option.selected {
  border-color: var(--teal);
  background: #f0faf8;
  box-shadow: inset 0 0 0 1px var(--teal);
}

.option-key {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  color: var(--navy);
  background: #edf2f3;
  font-weight: 800;
}

.option.selected .option-key {
  color: #ffffff;
  background: var(--teal);
}

.option-text {
  display: block;
  line-height: 1.45;
}

.reflection-card {
  min-height: 132px;
  align-content: start;
}

.partnershipScale .option-key {
  width: 34px;
  height: 34px;
}

.scenario-options .reflection-card,
.awarenessChoice {
  min-height: 74px;
}

.card-title {
  display: block;
  margin-bottom: 7px;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 900;
}

.opportunityCards .option-key {
  background: #fff4dc;
}

.opportunityCards.selected .option-key {
  background: var(--gold);
  color: #1d2733;
}

.this-that {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 800;
}

.reflection-slider {
  margin: 10px 0 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #ffffff;
}

.reflection-slider input[type="range"] {
  width: 100%;
  margin: 14px 0 6px;
  accent-color: var(--teal);
  cursor: pointer;
}

.scale-points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-items: center;
}

.scale-points span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #c8d5d8;
}

.slider-reading {
  min-height: 48px;
  margin: 18px 0 0;
  border-radius: 8px;
  padding: 14px;
  color: #405162;
  background: #f4f7f8;
  line-height: 1.45;
}

.spectrum-wrap {
  margin: 8px 0 28px;
}

.spectrum-line {
  height: 6px;
  margin: 18px 10% 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--coral), var(--gold), var(--teal));
}

.spectrum-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: -16px;
}

.spectrum-point {
  display: grid;
  gap: 10px;
  justify-items: center;
  align-content: start;
  min-height: 130px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 8px 12px;
  color: #405162;
  background: transparent;
  text-align: center;
  cursor: pointer;
}

.spectrum-point:hover,
.spectrum-point:focus-visible,
.spectrum-point.selected {
  border-color: rgba(31, 138, 134, 0.4);
  background: #f0faf8;
  outline: none;
}

.spectrum-dot {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 3px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  background: var(--teal);
  box-shadow: 0 8px 18px rgba(23, 59, 87, 0.16);
  font-weight: 900;
}

.spectrum-dot::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ffffff;
}

.spectrum-point.selected .spectrum-dot {
  background: var(--navy);
}

.form-grid {
  display: grid;
  gap: 14px;
  margin: 16px 0 20px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: #425263;
  font-size: 0.92rem;
  font-weight: 800;
}

.field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #ffffff;
}

.field input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(31, 138, 134, 0.15);
  outline: none;
}

.error {
  min-height: 22px;
  margin: 0;
  color: #a33c2d;
  font-size: 0.92rem;
  font-weight: 750;
}

.success {
  min-height: 22px;
  margin: 0 0 12px;
  color: #22715f;
  font-size: 0.92rem;
  font-weight: 750;
}

.trust-line {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.result-cta-row {
  display: flex;
  justify-content: flex-start;
  margin: 16px 0 32px;
}

.actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  color: #ffffff;
  background: var(--navy);
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  background: #0f2f48;
  outline: 3px solid rgba(23, 59, 87, 0.18);
}

.button.secondary {
  color: var(--navy);
  background: #edf2f3;
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: #dfe8ea;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.result-badge {
  width: fit-content;
  margin-bottom: 18px;
  border-radius: 8px;
  padding: 9px 12px;
  color: #113042;
  background: #e9f5ee;
  font-weight: 850;
}

.score-line {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 750;
}

.result-copy {
  color: #425263;
  font-size: 1rem;
  line-height: 1.65;
}

.next-step {
  margin-top: 18px;
  padding: 16px;
  border-radius: 8px;
  background: #f4f7f8;
  color: #425263;
  line-height: 1.55;
}

.next-step p {
  margin: 0 0 12px;
}

.next-step p:last-child {
  margin-bottom: 0;
}

.next-step ul {
  margin: 0;
  padding-left: 22px;
}

.next-step li + li {
  margin-top: 6px;
}

.next-step a {
  color: var(--teal);
  font-weight: 850;
  text-decoration: none;
}

.next-step a:hover,
.next-step a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
    padding: 24px 0;
  }

  .brand-panel {
    padding: 8px 0 0;
  }

  h1 {
    font-size: clamp(1.8rem, 8vw, 2.65rem);
  }

  #screen-copy {
    font-size: 1rem;
  }

  .interaction-panel {
    padding: 18px;
  }

  .screen {
    min-height: 560px;
  }

  .question-prompt {
    font-size: 1.28rem;
  }

  .card-options {
    grid-template-columns: 1fr;
  }

  .partnership-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reflection-card {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .app-shell {
    width: min(100% - 20px, 1120px);
  }

  .brand-mark {
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
  }

  .interaction-panel {
    padding: 14px;
  }

  .option {
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 12px;
  }

  .option-key {
    width: 28px;
    height: 28px;
  }

  .spectrum-options {
    grid-template-columns: 1fr;
  }

  .partnership-options {
    grid-template-columns: 1fr;
  }

  .spectrum-point {
    min-height: auto;
  }

  .spectrum-line {
    display: none;
  }

  .spectrum-point {
    grid-template-columns: 32px minmax(0, 1fr);
    justify-items: start;
    text-align: left;
    padding: 12px;
    background: #ffffff;
    border-color: var(--line);
  }

  .actions {
    flex-direction: column-reverse;
  }

  .button {
    width: 100%;
  }
}
