:root {
  --ink: #17213a;
  --muted: #64708a;
  --line: #d8deea;
  --panel: #ffffff;
  --soft: #f5f7fb;
  --blue: #0754ad;
  --blue-dark: #063a7b;
  --rose: #f4a3a6;
  --lavender: #c260df;
  --green: #d6edc6;
  --yellow: #f7c960;
  --shadow: 0 18px 48px rgba(23, 33, 58, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(174deg, var(--rose) 0 86px, transparent 87px),
    var(--soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(1180px, calc(100% - 40px));
  min-height: 94px;
  margin: 0 auto;
  background: #05080c;
  border-bottom: 1px solid rgba(166, 193, 235, .16);
}

.shell {
  background: #05080c;
}

.site-brand {
  display: flex;
  width: clamp(178px, 18vw, 250px);
  flex: 0 0 auto;
}

.site-brand img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.site-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  color: #c3ccda;
  font-size: .94rem;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6f7d92;
  font-size: .78rem;
  font-weight: 800;
}

.language-switch b { color: var(--gold); }
.language-switch a { padding: 8px 4px; }

.english-flow-stage { display: grid; place-items: center; padding: clamp(24px, 5vw, 64px); }
.english-flow { width: min(900px, 100%); }
.english-flow h2 { max-width: 720px; margin: 8px 0 28px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.05; color: var(--ice); }
.english-flow-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.english-flow-grid article { position: relative; min-height: 140px; padding: 22px 22px 20px 62px; border: 1px solid rgba(159, 198, 247, .2); border-radius: 8px; background: rgba(10, 15, 22, .82); }
.english-flow-grid article:last-child { grid-column: 1 / -1; }
.english-flow-grid b { position: absolute; left: 20px; top: 20px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 999px; background: var(--gold); color: #05070a; }
.english-flow-grid strong, .english-flow-grid span { display: block; }
.english-flow-grid strong { color: #fff; font-size: 1.05rem; }
.english-flow-grid span { margin-top: 8px; color: var(--muted); line-height: 1.55; }

@media (max-width: 680px) {
  .english-flow-grid { grid-template-columns: 1fr; }
  .english-flow-grid article:last-child { grid-column: auto; }
}

.site-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 0 12px;
  color: inherit;
  text-decoration: none;
}

.site-links a:hover {
  color: #fff;
  background: rgba(159, 197, 248, .08);
}

.site-links a.active {
  color: #f0c83b;
  font-weight: 800;
}

.site-links a.outline-link {
  border: 1px solid rgba(214, 173, 34, .52);
  color: #f0c83b;
  font-weight: 800;
}

.view-switcher {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  width: min(1180px, 100%);
  margin: 0 auto 18px;
}

.view-switcher button,
.ghost {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  padding: 0 14px;
}

.view-switcher button.active {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: 4px 4px 0 #0a0d12;
}

.main {
  min-width: 0;
  padding: clamp(16px, 3vw, 34px);
  background: var(--soft);
}

.view {
  display: none;
  min-width: 0;
}

.view.active {
  display: block;
  animation: riseIn .34s ease both;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.diagram-stage,
.assistant-panel,
.result-card,
.choice-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.diagram-stage {
  overflow: hidden;
}

.diagram-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.diagram-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.zoom-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 850;
}

.icon-btn[data-zoom="reset"] {
  width: 58px;
}

.fullscreen-btn {
  width: auto;
  min-width: 150px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.fullscreen-close-label,
.fullscreen-hint {
  display: none;
}

.fullscreen-hint {
  min-height: 40px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(240, 200, 59, .5);
  border-radius: 999px;
  color: var(--yellow);
  background: rgba(5, 7, 10, .9);
  font-size: 13px;
  font-weight: 800;
}

.diagram-scroll {
  overflow: auto;
  background: #fff;
  height: min(72vh, 720px);
}

.diagram-scroll img {
  display: block;
  min-width: 0;
  max-width: none;
  height: auto;
  margin: 0 auto;
  transition: width 160ms ease;
}

.diagram-stage:fullscreen {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  background: var(--panel);
}

.diagram-stage:fullscreen .diagram-toolbar {
  flex: 0 0 auto;
}

.diagram-stage:fullscreen .diagram-scroll {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
}

.diagram-stage:fullscreen .fullscreen-open-label {
  display: none;
}

.diagram-stage:fullscreen .fullscreen-close-label,
.diagram-stage:fullscreen .fullscreen-hint {
  display: inline-flex;
}

.start-panel {
  padding: 22px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  font-size: clamp(34px, 5vw, 68px);
  max-width: 11ch;
}

h2 {
  font-size: clamp(24px, 3vw, 38px);
}

h3 {
  font-size: 19px;
}

.lede {
  color: var(--muted);
  line-height: 1.6;
  font-size: 16px;
}

.primary {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  padding: 0 18px;
  font-weight: 800;
  box-shadow: 5px 5px 0 #0a0d12;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.primary:hover,
.view-switcher button.active:hover {
  background: var(--blue-dark);
}

.primary:hover {
  transform: translateY(-2px);
  box-shadow: 7px 7px 0 #0a0d12;
}

.steps {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.step-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  font-size: 14px;
}

.step-chip b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 13px;
}

.assistant-layout {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
}

.progress {
  align-self: start;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  position: sticky;
  top: 88px;
}

.progress h2 {
  font-size: 18px;
  margin-bottom: 4px;
}

.progress-help {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.trail {
  display: grid;
  gap: 8px;
}

.trail-item {
  width: 100%;
  border: 1px solid transparent;
  padding: 10px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.trail-item:hover,
.trail-item:focus-visible {
  border-color: #9eb8de;
  background: #eef4ff;
  transform: translateX(2px);
  outline: none;
}

.trail-item strong {
  display: block;
  color: var(--ink);
  margin-bottom: 2px;
}

.trail-item span,
.trail-empty span {
  display: block;
}

.trail-empty {
  padding: 10px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.trail-empty strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
}

.assistant-panel {
  min-height: 540px;
  padding: clamp(18px, 3vw, 34px);
  border-top: 8px solid var(--rose);
  animation: panelIn .28s ease both;
}

@keyframes panelIn {
  from {
    opacity: .4;
    transform: translateX(8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.question-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.question-head p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.pill {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--blue);
  font-weight: 800;
  white-space: nowrap;
  font-size: 13px;
}

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

.choice-grid.single {
  grid-template-columns: minmax(240px, 420px);
  justify-content: center;
}

.choice-card {
  min-height: 132px;
  padding: 18px;
  text-align: left;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
  border-bottom: 6px solid #0a0d12;
}

.choice-card:hover {
  transform: translateY(-2px);
  border-color: #a8b8d7;
  box-shadow: 0 16px 34px rgba(23, 33, 58, .13);
}

.choice-card[data-tone="purple"] {
  background: #f7e7ff;
  border-color: #e7c2f4;
  border-bottom-color: #8e42af;
}

.choice-card[data-tone="pink"] {
  background: #fff0f1;
  border-color: #f4c4c8;
  border-bottom-color: #d86d76;
}

.choice-card[data-tone="green"] {
  background: #f4ffef;
  border-color: #cde9bf;
  border-bottom-color: #6aa34f;
}

.choice-card[data-tone="blue"] {
  background: #f0f6ff;
  border-color: #bed3f2;
  border-bottom-color: var(--blue);
}

.choice-card strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
}

.choice-card span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.45;
  font-size: 14px;
}

.choice-card small {
  display: block;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(23, 33, 58, .14);
  color: #3f4c67;
  font-size: 13px;
  line-height: 1.45;
}

.purpose-options {
  display: grid;
  gap: 26px;
}

.purpose-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.purpose-divider::before,
.purpose-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.purpose-divider span {
  flex: 0 0 auto;
}

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

.result-card {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  animation: riseIn .34s ease both;
  min-width: 0;
}

.subscription-panel {
  position: relative;
  width: 100%;
  max-width: 620px;
  min-height: 520px;
  display: grid;
  align-content: center;
  justify-self: center;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding: clamp(28px, 5vw, 48px) clamp(24px, 5vw, 38px) 66px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 4px solid var(--yellow);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  animation: riseIn .34s ease both;
}

.subscription-copy h2 {
  max-width: 16ch;
  color: var(--blue);
  font-size: clamp(30px, 4vw, 48px);
}

.subscription-copy > p:last-child {
  max-width: 55ch;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.subscription-form {
  display: grid;
  gap: 16px;
  align-self: center;
  padding: 0;
  border: 0;
  background: transparent;
}

.subscription-form label,
.subscription-form label > span {
  display: grid;
  gap: 8px;
}

.subscription-form label > span {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.subscription-form label small {
  color: var(--muted);
  font-weight: 500;
}

.subscription-form .consent-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  cursor: pointer;
}

.subscription-form .consent-row input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--yellow);
}

.subscription-form .consent-row span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.subscription-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(159, 197, 248, .26);
  border-radius: 6px;
  outline: none;
  color: var(--ink);
  background: #080c12;
}

.subscription-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(159, 197, 248, .12);
}

.subscription-form .primary {
  width: 100%;
  margin-top: 4px;
}

.subscription-form .primary:disabled {
  cursor: wait;
  opacity: .65;
}

.subscription-status {
  min-height: 18px;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.subscription-close {
  position: absolute;
  left: 15px;
  bottom: 14px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(195, 204, 218, .28);
  border-radius: 50%;
  color: #8d98aa;
  background: transparent;
  font-size: 16px;
  line-height: 1;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}

.subscription-close:hover,
.subscription-close:focus-visible {
  color: var(--ink);
  border-color: rgba(159, 197, 248, .55);
  background: #111722;
  outline: none;
}

.result-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 280px);
  gap: 18px;
  align-items: center;
  padding: 26px;
  background: linear-gradient(135deg, #0b4fa6, #17213a);
  color: #fff;
}

.result-hero p {
  margin: 8px 0 0;
  color: rgba(255,255,255,.78);
  line-height: 1.5;
}

.test-badge {
  min-width: 0;
  padding: 18px;
  border-radius: 8px;
  background: #080b11;
  text-align: center;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 900;
  box-shadow: 6px 6px 0 rgba(255,255,255,.18);
  overflow-wrap: anywhere;
  word-break: normal;
}

.test-badge span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.2;
}

.result-body {
  display: grid;
  gap: 18px;
  padding: 22px;
  min-width: 0;
}

.result-body section {
  min-width: 0;
}

.decision-path {
  padding: 16px;
  border-radius: 8px;
  background: var(--soft);
  border: 1px solid var(--line);
  min-width: 0;
}

.decision-path h3 {
  margin-bottom: 8px;
}

.decision-path p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.report-table {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
  background: #fff;
  table-layout: fixed;
}

th,
td {
  padding: 7px 10px;
  border: 2px solid #252525;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  background: #e4e1da;
  font-size: 12px;
  text-align: center;
  text-transform: none;
  letter-spacing: 0;
}

td:last-child {
  width: 150px;
  text-align: center;
  white-space: nowrap;
}

.model {
  padding: 16px;
  border-left: 5px solid var(--yellow);
  background: #fff9e8;
  border-radius: 8px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.route-map {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.route-hint {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.route-sequence {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 10px;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.route-sequence::before {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 30px;
  height: 4px;
  background-image: repeating-linear-gradient(
    90deg,
    #e21d2f 0 10px,
    transparent 10px 17px
  );
  background-size: 34px 4px;
  animation: dashTravel 1.1s linear infinite;
  opacity: .75;
}

.route-step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.route-step span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #e21d2f;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
  font-weight: 900;
}

.route-step strong {
  max-width: 110px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.route-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.route-canvas img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.route-canvas svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.route-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.route-pin {
  z-index: 2;
  width: clamp(16px, 1.8vw, 24px);
  height: clamp(16px, 1.8vw, 24px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e21d2f;
  border: 2px solid #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .22);
}

.route-pin span {
  color: #fff;
  font-weight: 900;
  font-size: clamp(8px, .85vw, 11px);
  line-height: 1;
}

@keyframes dashTravel {
  to {
    background-position: 34px 0;
  }
}

.route-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.flow-prototype {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.flow-prototype svg {
  display: block;
  width: 100%;
  min-width: 980px;
  height: auto;
}

.flow-col-title {
  fill: #fff;
  font-size: 14px;
  font-weight: 800;
  paint-order: stroke;
  stroke: var(--blue);
  stroke-width: 18px;
  stroke-linejoin: round;
}

.flow-line {
  fill: none;
  stroke: #1c1c1c;
  stroke-width: 2;
}

.flow-active {
  fill: none;
  stroke: #e21d2f;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 12 10;
  animation: svgDashTravel 1s linear infinite;
  filter: drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff);
}

@keyframes svgDashTravel {
  to {
    stroke-dashoffset: -44;
  }
}

.flow-node rect {
  stroke: #0b0d12;
  stroke-width: 2;
  filter: drop-shadow(4px 5px 0 #0b0d12);
}

.flow-node text {
  fill: #18223b;
  font-size: 13px;
  font-weight: 750;
  pointer-events: none;
}

.flow-node.trigger rect {
  fill: #c9c8e9;
  stroke: transparent;
  filter: none;
}

.flow-node.objective rect {
  fill: var(--lavender);
  stroke: transparent;
  filter: none;
}

.flow-node.objective text {
  fill: #4a1a5d;
  font-size: 15px;
  font-weight: 900;
}

.flow-node.type rect,
.flow-node.condition rect {
  fill: #f8b7bb;
}

.flow-node.type.active rect,
.flow-node.condition.active rect {
  fill: #ffd5d8;
  stroke: #e21d2f;
}

.flow-node.test rect {
  fill: #05070b;
  stroke: #05070b;
}

.flow-node.test text {
  fill: #fff;
  font-size: 15px;
  font-weight: 900;
}

.flow-node.active.trigger rect,
.flow-node.active.objective rect {
  stroke: #e21d2f;
  stroke-width: 4;
}

.flow-step {
  fill: #e21d2f;
  stroke: #fff;
  stroke-width: 5;
}

.flow-step-text {
  fill: #fff !important;
  font-size: 15px !important;
  font-weight: 950 !important;
}


.helper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 24px;
}

.type-card {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  border-bottom: 5px solid #0a0d12;
  text-align: center;
}

.type-card strong {
  display: block;
  margin-bottom: 6px;
}

.type-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.type-card p + p {
  margin-top: 10px;
  color: var(--ink);
}

.example-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.example-list li {
  padding: 7px 8px;
  border-radius: 6px;
  background: var(--soft);
}

.example-strip {
  margin: 0 0 20px;
  padding: 14px;
  border-radius: 8px;
  background: #f4ffef;
  border: 1px solid #cde9bf;
  color: #37512d;
  line-height: 1.5;
}

.example-strip strong,
.example-strip span {
  display: block;
}

.example-strip span {
  margin-top: 5px;
}

.normality-note {
  margin-top: 20px;
  padding: 14px 16px;
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: #eef4ff;
  color: #283b5d;
}

.normality-note p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.continue-types {
  display: block;
  margin: 0 auto;
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .intro,
  .assistant-layout {
    grid-template-columns: 1fr;
  }

  .start-panel,
  .progress {
    position: static;
  }

  h1 {
    max-width: 18ch;
  }
}

@media (max-width: 720px) {
  .topbar {
    display: block;
    width: min(100% - 28px, 1180px);
    padding: 18px 0;
  }

  .site-brand {
    width: 190px;
  }

  .site-links {
    justify-content: flex-start;
    gap: 6px;
    margin-top: 16px;
    font-size: .9rem;
  }

  .site-links a {
    padding: 0 10px;
  }

  .view-switcher {
    width: 100%;
  }

  .view-switcher button {
    flex: 1;
  }

  .choice-grid,
  .result-hero,
  .helper,
  .subscription-panel {
    grid-template-columns: 1fr;
  }

  .question-head {
    flex-direction: column;
  }

  .diagram-scroll {
    height: 58vh;
  }

  .diagram-scroll img {
    min-width: 0;
  }
}

/* Call For Science visual identity */
:root {
  --ink: #f7f9fc;
  --muted: #c3ccda;
  --line: rgba(166, 193, 235, .18);
  --panel: #0b0f16;
  --soft: #111722;
  --blue: #9fc5f8;
  --blue-dark: #82afea;
  --rose: #f0c83b;
  --lavender: #9fc5f8;
  --green: #a8d7bd;
  --yellow: #f0c83b;
  --shadow: 0 18px 48px rgba(0, 0, 0, .28);
}

body {
  background: #05070a;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

h1 {
  max-width: 13ch;
  color: var(--blue);
  font-size: clamp(42px, 5vw, 64px);
}

h3,
.progress h2,
.choice-card strong {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.topbar {
  background: rgba(5, 7, 10, .94);
  border-bottom-color: var(--line);
}

.mark {
  width: 48px;
  height: 40px;
  border: 2px solid var(--blue);
  border-radius: 6px;
  color: var(--blue);
  background: transparent;
  box-shadow: none;
  font-size: 13px;
}

.brand strong {
  color: var(--ink);
}

.brand > div:last-child {
  min-width: 0;
}

.brand span,
.diagram-toolbar p,
.lede,
.question-head p,
.choice-card span,
.choice-card small,
.decision-path p,
.normality-note p {
  color: var(--muted);
}

.view-switcher button,
.ghost,
.icon-btn {
  color: var(--muted);
  border-color: var(--line);
  background: #0b0f16;
}

.view-switcher button:hover,
.ghost:hover,
.icon-btn:hover {
  color: var(--ink);
  border-color: rgba(159, 197, 248, .46);
}

.view-switcher button.active {
  color: #05070a;
  border-color: var(--yellow);
  background: var(--yellow);
  box-shadow: none;
}

.diagram-stage,
.assistant-panel,
.result-card,
.choice-card,
.progress {
  background: var(--panel);
  border-color: var(--line);
}

.diagram-toolbar {
  border-bottom-color: var(--line);
}

.start-panel {
  padding-top: 30px;
}

.primary {
  color: #05070a;
  background: var(--yellow);
  box-shadow: none;
}

.primary:hover {
  color: #05070a;
  background: #ffd84d;
  box-shadow: none;
}

.step-chip,
.trail-item,
.trail-empty,
.decision-path,
.example-list li {
  background: var(--soft);
}

.step-chip b {
  color: #05070a;
  background: var(--blue);
}

.assistant-panel {
  border-top: 4px solid var(--yellow);
}

.eyebrow {
  color: var(--yellow);
  letter-spacing: .08em;
}

.trail {
  gap: 10px;
}

.trail-item {
  color: var(--muted);
}

.trail-item:hover,
.trail-item:focus-visible {
  border-color: rgba(159, 197, 248, .48);
  background: #151d2a;
}

.trail-item strong {
  margin-bottom: 8px;
  color: var(--blue);
}

.trail-label {
  color: var(--yellow);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.trail-value {
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.choice-card,
.choice-card[data-tone="purple"],
.choice-card[data-tone="pink"],
.choice-card[data-tone="green"],
.choice-card[data-tone="blue"] {
  color: var(--ink);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  background: #0b0f16;
}

.choice-card[data-tone="pink"] {
  border-left-color: #d8b638;
}

.choice-card[data-tone="green"] {
  border-left-color: #8fcba9;
}

.choice-card:hover {
  border-color: rgba(159, 197, 248, .5);
  background: #101721;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .22);
}

.choice-card small {
  border-top-color: var(--line);
}

.choice-card strong {
  color: var(--ink);
}

.purpose-divider {
  color: #8793a6;
}

.purpose-divider::before,
.purpose-divider::after {
  background: var(--line);
}

.result-hero {
  border-bottom: 1px solid var(--line);
  background: #070a0f;
}

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

.test-badge {
  color: var(--blue);
  border: 1px solid rgba(159, 197, 248, .48);
  background: #0b0f16;
  box-shadow: none;
}

.result-body {
  background: var(--panel);
}

.decision-path {
  border-color: var(--line);
}

.decision-list {
  display: grid;
  gap: 9px;
  margin: 10px 0 0;
  padding-left: 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.decision-list li::marker {
  color: var(--yellow);
  font-weight: 800;
}

.report-table {
  border-color: var(--line);
}

table {
  color: var(--ink);
  background: #080c12;
}

th,
td {
  border-color: #2b3648;
}

th {
  color: var(--blue);
  background: #111722;
}

.model {
  border-left-color: var(--yellow);
  color: var(--ink);
  background: #111009;
}

.type-card {
  border-color: var(--line);
  border-bottom-color: var(--blue);
  background: var(--panel);
}

.type-card p,
.example-list {
  color: var(--muted);
}

.type-card p + p {
  color: var(--blue);
}

.example-strip {
  color: var(--ink);
  border-color: rgba(159, 197, 248, .28);
  background: #101721;
}

.example-strip strong {
  color: var(--blue);
}

.normality-note {
  color: var(--ink);
  border-left-color: var(--blue);
  background: #101721;
}

@media (max-width: 720px) {
  h1 {
    font-size: 42px;
  }
}
