/* ── Design tokens ─────────────────────────────────────────────────────────── */
/* Dark-first. Electric sapphire accent. Inter throughout.                     */

:root {
  color-scheme: light;
  --bg:               #FAFAF9;
  --bg-2:             #F4F3F0;
  --bg-3:             #EDECEA;
  --fg:               #0C0C0B;
  --fg-mid:           #55524E;
  --fg-muted:         #A09D99;
  --card-bg:          #FFFFFF;
  --card-sunken:      #F4F3F0;
  --border:           #E4E2DE;
  --accent-teal:      #2B4FE8;
  --accent-teal-hover:#3D5FF0;
  --accent-teal-soft: rgba(43,79,232,0.08);
  --accent-gold:      #C9910A;
  --accent-gold-hover:#D9A420;
  --accent-gold-soft: rgba(201,145,10,0.08);
  --accent-gold-ink:  #9A6E00;
  --plan-b:           #2B4FE8;
  --plan-b-soft:      rgba(43,79,232,0.08);
  --danger:           #D63031;
  --brand-navy:       #0C0C0B;
  --brand-navy-2:     #1A1917;
  --on-brand:         #F0EDE8;
  --on-brand-mid:     rgba(240,237,232,0.7);
  --radius:           10px;
  --radius-sm:        7px;
  --shadow:           0 1px 2px rgba(0,0,0,0.06), 0 8px 24px -8px rgba(0,0,0,0.12);
  --font-head:        "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:        "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */

* { box-sizing: border-box; }

html {
  scroll-behavior: auto;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--fg);
  letter-spacing: -0.025em;
}

/* ── Background decor (kept minimal in dark theme) ─────────────────────────── */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg);
  pointer-events: none;
}

/* ── Top bar ────────────────────────────────────────────────────────────────── */
.topbar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  color: var(--fg);
}
.topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--accent-teal);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
}
.logo-text strong { color: var(--accent-teal); font-weight: 700; }
.tagline { font-size: 0.8rem; color: var(--fg-muted); font-weight: 400; }

/* ── Shell ──────────────────────────────────────────────────────────────────── */
.shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ── Home screen ────────────────────────────────────────────────────────────── */

/* Hide top bar on home screen — the hero carries the brand */
body:has(#screen-intro:not([hidden])) .topbar { display: none; }
.shell:has(#screen-intro:not([hidden])) {
  max-width: 1080px;
  padding: 0;
}

.home {
  display: flex;
  flex-direction: column;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.home-hero {
  padding: 80px 28px 72px;
  border-bottom: 1px solid var(--border);
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent-teal);
  margin-bottom: 24px;
}
.hero-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-teal);
  animation: blink 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }

.home-headline {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin: 0 0 20px;
  color: var(--fg);
  text-wrap: balance;
}
.home-tagline {
  font-size: 0.98rem;
  font-weight: 400;
  color: var(--fg-mid);
  line-height: 1.65;
  margin: 0 0 32px;
  max-width: 440px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-teal);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px 22px;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: opacity 0.15s;
}
.hero-btn-primary:hover { opacity: 0.85; }
.hero-btn-ghost {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--fg-mid);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.1s;
}
.hero-btn-ghost:hover { color: var(--fg); }

/* Hero stats column */
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 4px;
}
.hero-stat {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.hero-stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--fg-muted);
  margin-bottom: 5px;
}
.hero-stat-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.015em;
}
.hero-stat-value.is-accent { color: var(--accent-teal); }
.hero-stat-meta {
  font-size: 0.72rem;
  color: var(--fg-muted);
  margin-top: 2px;
}

/* ── Intel band ─────────────────────────────────────────────────────────────── */
.intel-band {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.intel-band::-webkit-scrollbar { display: none; }
.intel-band-inner {
  display: flex;
  max-width: 1080px;
  margin: 0 auto;
}
.intel-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}
.intel-item:last-child { border-right: none; }
.intel-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
}
.intel-org {
  font-size: 0.72rem;
  color: var(--fg-muted);
  white-space: nowrap;
}
.intel-pill {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}
.intel-pill.live {
  background: rgba(52,199,89,0.12);
  color: #34C759;
}
.intel-pill.watching {
  background: var(--accent-teal-soft);
  color: var(--accent-teal);
}

/* ── Mode cards ─────────────────────────────────────────────────────────────── */
.home-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
  border-bottom: 1px solid var(--border);
}
.mode-card {
  --mode-accent: var(--accent-teal);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 44px 36px;
  border-right: 1px solid var(--border);
  cursor: pointer;
  background: var(--bg);
  transition: background 0.15s;
  position: relative;
}
.mode-card:last-child { border-right: none; }
.mode-card:hover { background: var(--bg-2); }
.mode-settler { --mode-accent: var(--accent-gold); }

.mode-index {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--fg-muted);
  margin-bottom: 20px;
}
.mode-icon { display: none; } /* hidden — using index instead */
.mode-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  color: var(--fg);
}
.mode-subtitle {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--mode-accent);
  margin: 0 0 14px;
}
.mode-settler .mode-subtitle { color: var(--accent-gold); }
.mode-desc {
  font-size: 0.88rem;
  color: var(--fg-mid);
  line-height: 1.65;
  margin: 0 0 28px;
  max-width: 320px;
}
.mode-card .btn { margin-top: auto; }
.mode-meta {
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-top: 12px;
}

/* ── AIMA promo strip ───────────────────────────────────────────────────────── */
.aima-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 40px 36px;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
  border-bottom: 1px solid var(--border);
}
.aima-strip-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent-teal);
  margin-bottom: 8px;
}
.aima-strip-title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 8px;
  color: var(--fg);
}
.aima-strip-desc {
  font-size: 0.88rem;
  color: var(--fg-mid);
  line-height: 1.6;
  margin: 0;
}

/* ── Resume banner ──────────────────────────────────────────────────────────── */
.resume-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
  background: var(--accent-teal-soft);
  border-bottom: 1px solid color-mix(in srgb, var(--accent-teal) 25%, transparent);
  padding: 4px 32px;
}
.resume-banner[hidden] { display: none; }
.resume-link {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  padding: 10px 0;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-teal);
  text-align: left;
  cursor: pointer;
}
.resume-link:hover { text-decoration: underline; }
.resume-dismiss {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  border-radius: 5px;
  font-size: 0.85rem;
  color: var(--fg-muted);
  cursor: pointer;
}
.resume-dismiss:hover { color: var(--fg); }

/* ── Home footer ────────────────────────────────────────────────────────────── */
.home-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 24px 36px;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}
.home-footer-copy {
  font-size: 0.75rem;
  color: var(--fg-muted);
}
.home-footer-disclaimer {
  font-size: 0.72rem;
  color: var(--fg-muted);
  max-width: 400px;
  text-align: right;
  line-height: 1.55;
}

/* ── Panel ──────────────────────────────────────────────────────────────────── */
.panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 36px;
}
.panel-center { text-align: center; padding: 60px 36px; }

/* ── Eyebrow ────────────────────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-head);
  color: var(--accent-teal);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.eyebrow-gold { color: var(--accent-gold); }

h1 { font-size: 1.8rem; line-height: 1.2; margin: 0 0 14px; font-weight: 700; text-wrap: balance; }
h2 { font-size: 1.3rem; font-weight: 600; margin: 0 0 6px; }
h3 { margin: 0 0 8px; }

.lede { color: var(--fg-mid); font-size: 1rem; line-height: 1.65; margin: 0 0 28px; }
.q-hint { color: var(--fg-mid); font-size: 0.88rem; margin: 0 0 16px; }

.trust-row {
  margin-top: 20px;
  color: var(--fg-mid);
  font-size: 0.82rem;
  display: flex;
  gap: 10px;
  align-items: center;
}
.dot { opacity: 0.4; }

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 12px 22px;
  border: none;
  cursor: pointer;
  transition: opacity 0.12s ease;
  letter-spacing: -0.01em;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent-teal);
  color: #fff;
  box-shadow: none;
}
.btn-primary:hover { opacity: 0.85; }
.btn-primary:disabled { opacity: 0.35; cursor: not-allowed; }
.btn-ghost {
  background: transparent;
  color: var(--fg-mid);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-3); color: var(--fg); }
.btn-block { width: 100%; }
.btn-cta,
.btn-gold {
  display: inline-block;
  background: var(--accent-gold);
  color: var(--bg);
  text-decoration: none;
  box-shadow: none;
}
.btn-cta:hover,
.btn-gold:hover { opacity: 0.85; }
.btn-gold:disabled { opacity: 0.35; cursor: not-allowed; }

/* ── Progress ───────────────────────────────────────────────────────────────── */
.progress-track {
  height: 3px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}
.progress-fill {
  height: 100%;
  width: 14%;
  background: var(--accent-teal);
  transition: width 0.3s ease;
}
.step-count { color: var(--fg-muted); font-size: 0.8rem; margin-bottom: 24px; font-weight: 500; }

/* ── Options / quiz ─────────────────────────────────────────────────────────── */
.options { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  cursor: pointer;
  transition: border-color 0.1s ease, background 0.1s ease;
  background: var(--card-bg);
}
.opt:hover { border-color: var(--accent-teal); background: var(--bg-3); }
.opt input { accent-color: var(--accent-teal); width: 17px; height: 17px; flex-shrink: 0; }
.opt:has(input:checked) { border-color: var(--accent-teal); background: var(--accent-teal-soft); }
.opt span { font-size: 0.95rem; color: var(--fg); font-weight: 500; }

.text-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.98rem;
  margin-top: 14px;
  font-family: inherit;
  color: var(--fg);
  background: var(--bg-2);
  transition: border-color 0.1s;
}
.text-input:focus { outline: none; border-color: var(--accent-teal); }
.text-input-lg { margin-top: 0; padding: 14px 16px; font-size: 1rem; }

.field-hint {
  margin: 7px 2px 0;
  font-size: 0.82rem;
  font-weight: 500;
}
.field-hint-info { color: var(--accent-teal); }
.field-hint-error { color: var(--danger); }

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
}
.nav-row-single { justify-content: center; margin-top: 20px; }
.fine-print { color: var(--fg-muted); font-size: 0.78rem; margin-top: 12px; }

.spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--accent-teal);
  margin: 0 auto 20px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Results report ─────────────────────────────────────────────────────────── */

body:has(#screen-results:not([hidden])) .footer,
body:has(#screen-settler:not([hidden])) .footer { display: none; }

.report-header {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 26px;
}
.report-title { font-size: clamp(1.4rem, 4vw, 1.9rem); line-height: 1.2; }

.profile-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--fg-mid);
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 11px;
}

/* Score */
.score-block {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--fg);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 32px;
}
.score-ring-wrap { position: relative; width: 120px; height: 120px; flex-shrink: 0; }
.score-ring { width: 120px; height: 120px; transform: rotate(-90deg); }
.score-ring-bg { fill: none; stroke: var(--border); stroke-width: 8; }
.score-ring-fg {
  fill: none;
  stroke: var(--accent-teal);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 326.7;
  stroke-dashoffset: 326.7;
  transition: stroke-dashoffset 1s ease;
}
.score-number {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.score-number small { font-size: 0.72rem; font-weight: 500; opacity: 0.5; margin-top: 4px; }
.score-copy { flex: 1; min-width: 200px; }
.score-label {
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-teal);
  margin-bottom: 7px;
}
.score-copy p { margin: 0; color: var(--fg-mid); line-height: 1.6; }

.section-label {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 14px;
}

/* Plans */
.plans { display: flex; flex-direction: column; gap: 18px; margin-bottom: 28px; }

.plan-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
}
.plan-a { border-left: 3px solid var(--accent-teal); }

.plan-header {
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.plan-title-wrap { flex: 1; min-width: 0; }
.plan-subtitle {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 3px;
}
.plan-title { font-size: 1.1rem; font-weight: 700; line-height: 1.3; margin: 0; overflow-wrap: anywhere; }
.plan-badge {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  flex-shrink: 0;
}
.badge-a { background: var(--accent-teal-soft); color: var(--accent-teal); }
.badge-b { background: var(--plan-b-soft); color: var(--plan-b); }
.badge-c { background: var(--accent-gold-soft); color: var(--accent-gold); }

.plan-metrics { display: flex; border-bottom: 1px solid var(--border); background: var(--card-sunken); }
.metric {
  flex: 1;
  min-width: 0;
  padding: 12px 18px;
  border-right: 1px solid var(--border);
}
.metric:last-child { border-right: none; }
.metric-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 3px;
}
.metric-value {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.plan-body { padding: 18px 22px; }
.plan-summary { color: var(--fg-mid); line-height: 1.65; margin: 0 0 14px; overflow-wrap: anywhere; }
.plan-summary:last-child { margin-bottom: 0; }

.plan-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.plan-points li {
  font-size: 0.9rem;
  color: var(--fg-mid);
  line-height: 1.55;
  padding-left: 16px;
  position: relative;
  overflow-wrap: anywhere;
}
.plan-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-teal);
}

/* Expandable steps */
.plan-expand { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 12px; }
.plan-summary + .plan-expand { margin-top: 0; }
.plan-expand summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-teal);
  cursor: pointer;
  list-style: none;
}
.plan-expand summary::-webkit-details-marker { display: none; }
.plan-expand summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s;
}
.plan-expand[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.plan-expand summary:focus-visible { outline: 2px solid var(--accent-teal); outline-offset: 3px; border-radius: 4px; }

.action-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  counter-reset: actions;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.action-list li {
  font-size: 0.9rem;
  color: var(--fg-mid);
  line-height: 1.55;
  padding-left: 28px;
  position: relative;
  counter-increment: actions;
  overflow-wrap: anywhere;
}
.action-list li::before {
  content: counter(actions);
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-teal-soft);
  color: var(--accent-teal);
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Insight */
.insight-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--accent-gold-soft);
  border: 1px solid color-mix(in srgb, var(--accent-gold) 25%, transparent);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 28px;
}
.insight-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.insight-label {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 5px;
}
.insight-text { margin: 0; color: var(--fg); line-height: 1.65; overflow-wrap: anywhere; }

.plan-insight {
  margin-top: 14px;
  padding: 11px 14px;
  background: var(--accent-gold-soft);
  border-left: 2px solid var(--accent-gold);
  border-radius: var(--radius-sm);
}
.plan-insight .insight-label { margin-bottom: 3px; }
.plan-insight p { margin: 0; font-size: 0.88rem; line-height: 1.55; color: var(--fg); overflow-wrap: anywhere; }

/* ── Verdict + Route cards ─────────────────────────────────────────────────── */
.verdict-banner {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-teal);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 24px;
}
.verdict-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-teal);
  margin-bottom: 8px;
}
.verdict-text {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--fg);
  margin: 0 0 14px;
}
.verdict-banner .profile-tags { margin-top: 4px; }

.routes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.route-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.route-letter {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 800;
  margin-top: 1px;
}
.route-a .route-letter { background: var(--accent-teal-soft); color: var(--accent-teal); }
.route-b .route-letter { background: var(--plan-b-soft); color: var(--plan-b); }
.route-c .route-letter { background: var(--accent-gold-soft); color: var(--accent-gold); }

.route-body { flex: 1; min-width: 0; }
.route-name {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}
.route-why {
  font-size: 0.88rem;
  color: var(--fg-mid);
  line-height: 1.6;
  margin: 0;
  overflow-wrap: anywhere;
}

.route-chips {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
  min-width: 90px;
}
.chip {
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}
.chip-timeline { background: var(--bg-3); color: var(--fg-mid); border: 1px solid var(--border); }
.chip-cost { background: var(--accent-gold-soft); color: var(--accent-gold); border: 1px solid color-mix(in srgb, var(--accent-gold) 20%, transparent); }

@media (max-width: 480px) {
  .route-row { flex-wrap: wrap; }
  .route-chips { flex-direction: row; align-items: center; min-width: 0; width: 100%; margin-top: 8px; }
  .chip { max-width: none; }
}

/* CTA */
.cta-block {
  text-align: center;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--fg);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.cta-block h3 { color: var(--fg); font-size: 1.25rem; font-weight: 700; margin: 0 0 8px; text-wrap: balance; }
.cta-block p { color: var(--fg-mid); margin: 0 0 22px; }

.cta-secondary {
  display: block;
  margin: 14px auto 0;
  background: none;
  border: none;
  padding: 4px;
  font: inherit;
  font-size: 0.85rem;
  color: var(--fg-muted);
  cursor: pointer;
}
.cta-secondary:hover { color: var(--fg); text-decoration: underline; }

.next-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.next-step {
  --step-accent: var(--accent-teal);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--step-accent);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.next-step-settler { --step-accent: var(--accent-gold); }
.next-step h3 { font-size: 1.2rem; font-weight: 700; margin: 0 0 6px; text-wrap: balance; }
.next-step p { color: var(--fg-mid); margin: 0 0 20px; }
.next-step .btn { margin-top: auto; width: 100%; text-align: center; text-decoration: none; }
.next-steps + .cta-secondary { margin: 18px auto 22px; }
#profile-nationality-other { margin-top: 10px; }

/* ── Settler ────────────────────────────────────────────────────────────────── */
.settler-cta {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent-teal);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 22px;
}
.settler-cta h3 { font-size: 1.2rem; font-weight: 700; margin: 0 0 5px; }
.settler-cta p { color: var(--fg-mid); margin: 0 0 16px; }
.settler-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 9px;
  margin-bottom: 18px;
}
.settler-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  cursor: pointer;
  min-width: 0;
  background: var(--bg-2);
  transition: border-color 0.1s ease, background 0.1s ease;
}
.settler-choice:hover { border-color: var(--accent-teal); }
.settler-choice:has(input:checked) { border-color: var(--accent-teal); background: var(--accent-teal-soft); }
.settler-choice:has(input:focus-visible) { outline: 2px solid var(--accent-teal); outline-offset: 2px; }
.settler-choice input { position: absolute; opacity: 0; pointer-events: none; }
button.settler-choice { font: inherit; color: inherit; background: var(--bg-2); text-align: left; }
button.settler-choice:focus-visible { outline: 2px solid var(--accent-teal); outline-offset: 2px; }
.settler-choice strong { font-family: var(--font-head); font-size: 0.95rem; font-weight: 600; }
.settler-choice span { font-size: 0.75rem; color: var(--fg-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.back-link {
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 18px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent-teal);
  cursor: pointer;
}
.back-link:hover { text-decoration: underline; }

.settler-basis { color: var(--fg-mid); margin: -4px 0 16px; overflow-wrap: anywhere; }
.settler-move-date { display: flex; flex-direction: column; gap: 5px; max-width: 260px; }
.settler-move-date span { font-size: 0.82rem; font-weight: 600; }
.settler-move-date .text-input { margin-top: 0; padding: 9px 12px; }
.settler-move-date small { color: var(--fg-muted); font-size: 0.75rem; }

.settler-progress {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  padding: 12px 0 14px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.settler-progress-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 7px;
  font-size: 0.85rem;
  color: var(--fg-mid);
}
.settler-progress-row strong { font-family: var(--font-head); font-size: 1.05rem; color: var(--fg); font-variant-numeric: tabular-nums; }
.settler-progress .progress-track { margin-bottom: 0; }
.settler-progress .progress-fill { width: 0; }

.settler-phase { margin-top: 24px; }
.settler-phase-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.settler-phase-header h2 { font-size: 1.05rem; font-weight: 700; margin: 0; }
.settler-phase-count { font-family: var(--font-head); font-size: 0.78rem; font-weight: 600; color: var(--fg-muted); font-variant-numeric: tabular-nums; }

.settler-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.settler-step {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: border-color 0.15s ease;
}
.settler-step.is-done { border-color: var(--accent-teal); }
.settler-step.is-done h3 { color: var(--fg-muted); text-decoration: line-through; }
.settler-step.is-done p { opacity: 0.65; }
.settler-step-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px 14px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}
.settler-step h3 { font-size: 0.98rem; font-weight: 600; line-height: 1.35; margin: 0; flex: 1 1 240px; overflow-wrap: anywhere; }
.settler-due {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-gold);
  background: var(--accent-gold-soft);
  border-radius: 4px;
  padding: 2px 9px;
  font-variant-numeric: tabular-nums;
}
.settler-due.is-overdue { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }
.settler-step.is-done .settler-due { color: var(--fg-muted); background: var(--bg-3); }
.settler-step p { margin: 0; color: var(--fg-mid); font-size: 0.9rem; line-height: 1.6; overflow-wrap: anywhere; }

.settler-step p.settler-tip {
  margin-top: 10px;
  padding: 9px 13px;
  background: var(--accent-gold-soft);
  border-left: 2px solid var(--accent-gold);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-size: 0.85rem;
}

.settler-step-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 12px;
}
.settler-links { display: flex; flex-wrap: wrap; gap: 7px; }
.settler-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-teal);
  text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--accent-teal) 30%, transparent);
  border-radius: 4px;
  padding: 3px 10px;
}
.settler-link:hover { background: var(--accent-teal-soft); }
.settler-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg-mid);
  cursor: pointer;
}
.settler-check input { accent-color: var(--accent-teal); width: 17px; height: 17px; margin: 0; }
.settler-step.is-done .settler-check { color: var(--accent-teal); }

.save-card {
  margin-top: 24px;
  background: var(--accent-gold-soft);
  border: 1px solid color-mix(in srgb, var(--accent-gold) 30%, transparent);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.save-card h3 { font-size: 1rem; font-weight: 700; margin: 0 0 4px; }
.save-card > p { color: var(--fg-mid); font-size: 0.9rem; margin: 0 0 12px; }
.save-form { display: flex; gap: 9px; }
.save-form[hidden] { display: none; }
.save-form .text-input { flex: 1; min-width: 0; margin-top: 0; }
.save-form .btn { flex-shrink: 0; }
.save-card .save-status { margin: 0; font-weight: 600; font-size: 0.9rem; color: var(--accent-gold); }
.save-card .save-status:empty { display: none; }
.save-form:not([hidden]) + .save-status { margin-top: 8px; }
.save-card .save-status.is-error { color: var(--danger); }

.affiliate-note { margin: 24px 0 0; font-size: 0.78rem; color: var(--fg-muted); }

.disclaimer {
  margin-top: 28px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

.footer {
  text-align: center;
  color: var(--fg-muted);
  font-size: 0.75rem;
  padding: 0 20px 36px;
  max-width: 760px;
  margin: 0 auto;
}

/* Picker groups */
.picker-group { border: none; padding: 0; margin: 0 0 24px; min-width: 0; }
.picker-group legend { font-family: var(--font-head); font-size: 0.92rem; font-weight: 600; padding: 0; margin-bottom: 10px; }
.picker-group .settler-choices { margin-bottom: 0; }
#screen-settler-picker .settler-choice span { white-space: normal; }
#screen-settler-picker .settler-choice:hover { border-color: var(--accent-gold); }
#screen-settler-picker .settler-choice:has(input:checked) { border-color: var(--accent-gold); background: var(--accent-gold-soft); }
#screen-settler-picker .settler-choice:has(input:focus-visible) { outline-color: var(--accent-gold); }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: border-color 0.1s ease, background 0.1s ease;
  background: var(--bg-2);
}
.pill:hover span { border-color: var(--accent-gold); }
.pill input:checked + span { border-color: var(--accent-gold); background: var(--accent-gold-soft); color: var(--fg); }
.pill input:focus-visible + span { outline: 2px solid var(--accent-gold); outline-offset: 2px; }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .home-hero { grid-template-columns: 1fr; gap: 36px; padding: 56px 24px 48px; }
  .hero-stats { flex-direction: row; flex-wrap: wrap; }
  .hero-stat { flex: 1; min-width: 140px; }
  .home-paths { grid-template-columns: 1fr; }
  .mode-card { border-right: none; border-bottom: 1px solid var(--border); }
  .mode-card:last-child { border-bottom: none; }
  .aima-strip { grid-template-columns: 1fr; gap: 20px; padding: 32px 24px; }
  .home-footer-row { padding: 20px 24px; }
  .home-footer-disclaimer { text-align: left; }
  .resume-banner { padding: 4px 24px; }
}
@media (max-width: 600px) {
  .shell { padding: 32px 16px 56px; }
  .panel { padding: 26px 20px; }
  h1 { font-size: 1.45rem; }
  .score-block { flex-direction: column; text-align: center; gap: 18px; padding: 22px 18px; }
  .plan-header { padding: 16px 16px 12px; }
  .plan-metrics { flex-direction: column; }
  .metric { border-right: none; border-bottom: 1px solid var(--border); padding: 10px 16px; }
  .metric:last-child { border-bottom: none; }
  .plan-body { padding: 14px 16px; }
  .insight-box { padding: 16px; }
  .settler-cta { padding: 20px 16px; }
  .next-steps { grid-template-columns: 1fr; gap: 14px; }
  .next-step { padding: 20px 16px; }
  .settler-step { padding: 14px; }
  .save-card { padding: 16px; }
  .save-form { flex-direction: column; }
  .intel-band-inner { padding: 0 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-live-dot { animation: none; }
  * { transition: none !important; }
}
