:root {
  --navy: #0a1b33;
  --navy-deep: #061428;
  --navy-mid: #122844;
  --gold: #c4a35a;
  --gold-soft: #e8d4a8;
  --gold-muted: #a68b45;
  --paper: #f0f3f8;
  --surface: #ffffff;
  --surface-muted: #f7f9fc;
  --ink: #0a1b33;
  --muted: #5c6775;
  --line: rgba(10, 27, 51, 0.1);
  --line-strong: rgba(10, 27, 51, 0.16);
  --shadow-sm: 0 1px 2px rgba(10, 27, 51, 0.05);
  --shadow: 0 8px 32px rgba(10, 27, 51, 0.08), 0 2px 8px rgba(10, 27, 51, 0.04);
  --shadow-lg: 0 24px 56px rgba(10, 27, 51, 0.12);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --serif: "Fraunces", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Outfit", "Segoe UI", system-ui, sans-serif;
  /* legacy aliases */
  --forest: var(--navy-mid);
  --forest-deep: var(--navy-deep);
  --cream: var(--surface);
}

* { box-sizing: border-box; }

html {
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 0% -5%, rgba(196, 163, 90, 0.14) 0%, transparent 55%),
    radial-gradient(800px 400px at 100% 0%, rgba(10, 27, 51, 0.06) 0%, transparent 50%),
    var(--paper);
  min-height: 100vh;
}

img { max-width: 100%; }
button, textarea, input { font-family: inherit; }
a { color: inherit; }

.wrap {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 48px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 16px;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
}

.brand strong {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-transform: none;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}

.nav-links { display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.nav-links a { text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: var(--navy); }

.hero { padding: 24px 0 12px; }

.kicker {
  color: var(--gold-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  margin: 0 0 12px;
}

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.65rem, 1.3rem + 1.8vw, 2.35rem);
  line-height: 1.15;
  margin: 0 0 12px;
  max-width: 22em;
  text-wrap: balance;
  color: var(--navy-deep);
  letter-spacing: -0.02em;
}

.lede {
  max-width: 42ch;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.composer {
  margin: 28px 0 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px;
}

.composer textarea {
  width: 100%;
  min-height: 140px;
  border: 0;
  resize: vertical;
  font-size: 18px;
  line-height: 1.45;
  background: transparent;
  outline: none;
  color: var(--ink);
}

.composer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--navy);
  color: #fff;
  padding: 14px 24px;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  background: var(--navy-mid);
  box-shadow: var(--shadow);
}

.btn:active { transform: translateY(1px); }

.btn.ghost {
  background: var(--surface);
  color: var(--navy);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}

.btn.ghost:hover {
  border-color: var(--gold);
  background: var(--surface-muted);
}

.btn.gold {
  background: linear-gradient(180deg, #d4b56a 0%, var(--gold) 100%);
  color: var(--navy-deep);
}

.examples { margin: 10px 0 48px; }
.examples p { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: border-color 0.15s ease;
}

.chip:hover { border-color: var(--gold); }

.panel { display: none; }
.panel.visible { display: block; }

.loading { padding: 28px 8px 60px; }
.loading ol { list-style: none; padding: 0; margin: 20px 0; }
.loading li {
  opacity: 0.28;
  font-family: var(--serif);
  font-size: 28px;
  margin: 10px 0;
  transition: opacity 0.35s ease;
}
.loading li.on { opacity: 1; }

.result-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding-bottom: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.score {
  font-family: var(--serif);
  font-size: 2.75rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1;
}

.label {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.program-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  line-height: 1.15;
  margin: 8px 0 14px;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
}

.meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-muted);
}

.reasons { list-style: none; padding: 0; margin: 0 0 20px; }
.reasons li {
  padding: 8px 0 8px 24px;
  position: relative;
  font-size: 15px;
  line-height: 1.45;
}

.reasons li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--gold);
}

.actions { display: flex; gap: 10px; flex-wrap: wrap; }

.alt { padding: 16px 0; border-top: 1px solid var(--line); }
.alt:first-child { border-top: 0; padding-top: 0; }
.alt b { display: block; font-weight: 600; color: var(--navy); }

.eligibility {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--navy);
  background: var(--gold-soft);
  padding: 5px 10px;
  border-radius: 6px;
}

.priority { margin-top: 18px; }
.askbox { margin-top: 16px; display: none; }
.askbox.open { display: block; }

.askbox textarea {
  width: 100%;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin: 8px 0;
  font-size: 15px;
  background: var(--surface-muted);
}

.askbox textarea:focus {
  outline: 2px solid rgba(196, 163, 90, 0.45);
  outline-offset: 1px;
}

.answer {
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.5;
}

.lead {
  display: none;
  margin-top: 16px;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.lead.open { display: grid; }

.lead input {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
}

.lead input:first-child, .lead button { grid-column: 1 / -1; }

.nomatch h2 { font-family: var(--serif); font-weight: 500; }

.debug {
  display: none;
  margin: 20px 0 40px;
  background: var(--navy-deep);
  color: #e8ecf4;
  border-radius: var(--radius);
  padding: 16px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  white-space: pre-wrap;
}
.debug.open { display: block; }

.footnote {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  padding: 16px 0 0;
}

.footnote a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.remain-count {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  align-self: center;
  margin-right: 4px;
}

.choice { min-height: 52px; }

.remaining {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 20px;
}

.remain {
  border: 1px solid var(--line);
  background: var(--surface-muted);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--navy);
}

.remain.off { opacity: 0.35; text-decoration: line-through; }

.wizard-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px 26px 22px;
  margin: 20px 0 32px;
}

.qtitle {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.6rem);
  line-height: 1.25;
  margin: 4px 0 8px;
  font-weight: 600;
  max-width: none;
  color: var(--navy-deep);
  letter-spacing: -0.02em;
}

.wizard-card .lede { max-width: none; font-size: 15px; }
.wizard-card .choice,
.wizard-card .remain { background: var(--surface-muted); }

.choices { display: grid; gap: 10px; margin: 18px 0 22px; }

.choice {
  text-align: left;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  line-height: 1.4;
  color: var(--navy);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.choice:hover, .choice:focus {
  border-color: var(--gold);
  background: var(--surface-muted);
  box-shadow: var(--shadow-sm);
  outline: none;
}

.progress {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 10px;
}

.intro-roadmap { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 10px; }

.intro-roadmap li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.intro-roadmap .step-num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.intro-roadmap b { display: block; font-size: 15px; font-weight: 600; margin-bottom: 4px; color: var(--navy); }
.intro-roadmap span { display: block; font-size: 14px; color: var(--muted); line-height: 1.45; }
.intro-outcome { margin: 14px 0 22px; max-width: none; }
.facts { margin-bottom: 20px; }
.facts li:before { background: var(--navy); border-radius: 50%; width: 6px; height: 6px; top: 14px; }

/* Hub landing */
body.demo-hub .hub-hero {
  background: linear-gradient(145deg, var(--navy-deep) 0%, var(--navy-mid) 55%, #1a3358 100%);
  color: #fff;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  margin: 8px 0 4px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

body.demo-hub .hub-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

body.demo-hub .hub-hero .kicker { color: var(--gold-soft); }
body.demo-hub .hub-hero h1 { color: #fff; max-width: none; }
body.demo-hub .hub-hero .lede { color: rgba(255, 255, 255, 0.78); max-width: none; }

/* Concept screen (step 1) */
.concept-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin: 0 0 16px;
  box-shadow: var(--shadow-sm);
}

.concept-card h2 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--navy-deep);
}

.concept-card p {
  margin: 0 0 12px;
  line-height: 1.55;
  color: var(--ink);
}

.concept-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.logic-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0 0 16px;
}

.logic-card {
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.logic-card h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--navy);
}

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

/* Lead destination (step 3) */
.outcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 28px;
}

.outcome-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.outcome-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

.outcome-card h2 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--navy-deep);
}

.outcome-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.section-kicker { margin: 0 0 14px; }

/* WhatsApp mockup */
.wa-section {
  margin: 0 0 36px;
}

.wa-section-intro {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 52ch;
}

.wa-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: center;
}

.wa-phone {
  width: min(100%, 340px);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(10, 27, 51, 0.08);
  background: #111b21;
  flex: none;
}

.wa-topbar {
  background: #1f2c34;
  color: #e9edef;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 24px 36px 1fr;
  gap: 10px;
  align-items: center;
}

.wa-back {
  font-size: 18px;
  line-height: 1;
  opacity: 0.85;
}

.wa-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.wa-contact b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.wa-contact span {
  display: block;
  font-size: 11px;
  color: #8696a0;
  margin-top: 1px;
}

.wa-chat {
  min-height: 320px;
  padding: 12px 10px 16px;
  background:
    url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23d4cFC7' fill-opacity='0.08'%3E%3Cpath d='M0 0h30v30H0zm30 30h30v30H30z'/%3E%3C/g%3E%3C/svg%3E"),
    #0b141a;
}

.wa-date {
  width: fit-content;
  margin: 0 auto 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: #182229;
  color: #8696a0;
  font-size: 11px;
}

.wa-bubble {
  max-width: 88%;
  padding: 7px 9px 5px;
  border-radius: 8px;
  margin: 0 0 8px;
  position: relative;
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
}

.wa-bubble p {
  margin: 0 0 14px;
  white-space: pre-wrap;
  word-break: break-word;
}

.wa-bubble .wa-time {
  position: absolute;
  right: 8px;
  bottom: 4px;
  font-size: 10px;
  color: #667781;
}

.wa-out {
  margin-left: auto;
  background: #005c4b;
  color: #e9edef;
  border-top-right-radius: 0;
}

.wa-out .wa-time { color: rgba(233, 237, 239, 0.65); }

.wa-in {
  margin-right: auto;
  background: #202c33;
  color: #e9edef;
  border-top-left-radius: 0;
}

.wa-in .wa-time { color: #8696a0; }

.wa-caption {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8696a0;
  margin: 0 0 4px 2px;
}

.wa-quick-replies {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 88%;
  margin: 2px 0 10px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
}

.wa-quick-btn {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 0;
  background: #182229;
  color: #00a884;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  line-height: 1.35;
  cursor: default;
  font-family: inherit;
}

.wa-quick-btn + .wa-quick-btn {
  border-top: 1px solid rgba(134, 150, 160, 0.15);
}

.wa-quick-replies .wa-quick-btn:first-child {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.wa-quick-replies .wa-quick-btn:last-child {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.wa-input-bar {
  background: #1f2c34;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wa-input-fake {
  flex: 1;
  height: 34px;
  border-radius: 999px;
  background: #2a3942;
  color: #8696a0;
  font-size: 12px;
  display: flex;
  align-items: center;
  padding: 0 14px;
}

.wa-note {
  flex: 1;
  min-width: 220px;
  max-width: 360px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.wa-note b { color: var(--navy); }

/* Admissions prospects */
.prospect {
  margin: 20px 0;
  border-left: 3px solid var(--gold);
}

.prospect.demo-seed {
  background: linear-gradient(180deg, var(--surface-muted) 0%, var(--surface) 100%);
}

.intent {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--navy);
  margin: 4px 0 0;
}

.demo-seed-badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-muted);
  margin-bottom: 8px;
}

/* Nav logo + home */
.brand-with-logo {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 2px;
  text-transform: none;
  letter-spacing: normal;
}

.brand-with-logo .nav-logo {
  grid-row: 1 / span 2;
}

.nav-logo {
  flex: none;
  display: block;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.nav-home {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.nav-home:hover {
  border-color: var(--gold);
  background: var(--surface-muted);
}

/* Step pages hero strip */
.hero-step {
  background: linear-gradient(145deg, var(--navy-deep) 0%, var(--navy-mid) 55%, #1a3358 100%);
  color: #fff;
  padding: 24px 26px;
  border-radius: var(--radius-lg);
  margin: 4px 0 8px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-step::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-step .kicker { color: var(--gold-soft); }
.hero-step h1 { color: #fff; max-width: none; }
.hero-step .lede { color: rgba(255, 255, 255, 0.78); max-width: none; }
.hero-step .lede a { color: var(--gold-soft); font-weight: 600; }

/* Wizard progress */
.step-progress {
  display: flex;
  gap: 6px;
  margin: 0 0 14px;
}

.step-progress i {
  display: block;
  height: 4px;
  flex: 1;
  border-radius: 99px;
  background: var(--line);
  transition: background 0.2s ease;
}

.step-progress i.on { background: var(--navy); }

#flow-panel.flow-enter {
  animation: flowStepIn 0.28s ease;
}

@keyframes flowStepIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.lead-ok {
  margin: 0;
  font-size: 14px;
  color: var(--navy);
  line-height: 1.45;
}

.scenario-note {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(196, 163, 90, 0.12);
  border: 1px solid rgba(196, 163, 90, 0.35);
  font-size: 14px;
  line-height: 1.5;
}

.hub-scenario-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.ad-tech-note {
  margin: 0 0 20px;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.demo-next-banner {
  margin: 0 0 20px;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.demo-next-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.demo-next-banner .kicker { color: var(--gold-soft); margin-bottom: 8px; }

.demo-next-banner p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
  max-width: none;
}

.demo-next-banner .btn {
  background: linear-gradient(180deg, #d4b56a 0%, var(--gold) 100%);
  color: var(--navy-deep);
}

.demo-next-banner .btn:hover {
  background: linear-gradient(180deg, #e0c078 0%, #d4b56a 100%);
}

.hub-step2-link {
  display: block;
  margin: 0 0 28px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hub-step2-link:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

.hub-step2-link .kicker { margin-bottom: 6px; }

.hub-step2-link b {
  display: block;
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 4px;
}

.hub-step2-link span {
  display: block;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

/* Admissions */
.leads-summary {
  margin: 0 0 20px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.5;
  box-shadow: var(--shadow-sm);
}

.leads-section { margin: 0 0 28px; }

.leads-section h2 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--navy-deep);
}

.intent-chip {
  display: inline-block;
  margin: 6px 0 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intent-high {
  background: #e6f4ec;
  color: #156638;
  border: 1px solid #b8dfc8;
}

.intent-medium {
  background: #fef6e8;
  color: #8a5a12;
  border: 1px solid #ecd9a8;
}

.intent-low {
  background: var(--surface-muted);
  color: var(--muted);
  border: 1px solid var(--line);
}

/* Debug funnel */
.funnel-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin: 0 0 20px;
  box-shadow: var(--shadow-sm);
}

.funnel-panel h2 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 0 0 12px;
  color: var(--navy-deep);
}

.funnel-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.funnel-steps li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  font-size: 14px;
}

.funnel-steps li.on { border: 1px solid rgba(196, 163, 90, 0.45); }

.funnel-steps b { color: var(--navy); font-weight: 600; }

.funnel-steps span { color: var(--muted); font-weight: 600; }

@media (max-width: 820px) {
  .result-grid, .lead { grid-template-columns: 1fr; }
  h1 { max-width: none; font-size: clamp(1.5rem, 6vw, 1.95rem); }
  .nav { flex-wrap: wrap; padding-top: 18px; }
  .nav-links { font-size: 12px; gap: 10px; }
  .wrap { width: min(760px, calc(100% - 28px)); }
  .choice { font-size: 15px; padding: 14px 16px; }
  .program-title { font-size: 1.45rem; }
  .wizard-card { padding: 18px; border-radius: var(--radius); }
  .qtitle { font-size: 1.2rem; }
  body.demo-hub .hub-hero { padding: 24px 20px; }
  .hero-step { padding: 20px 18px; }
  .logic-split, .outcome-grid { grid-template-columns: 1fr; }
  .nav-home { font-size: 12px; padding: 7px 12px; }
  .brand-with-logo { gap: 10px; }
  .nav-logo { width: 32px; height: 32px; }
}
