:root {
  --ms-navy: #0a2540;
  --ms-blue: #0078D4;
  --ms-blue-light: #2899f5;
  --ms-cyan: #50e6ff;
  --ms-green: #107c10;
  --ms-orange: #ca5010;
  --ms-purple: #5c2d91;
  --bg: #f3f2f1;
  --card: #ffffff;
  --text: #201f1e;
  --muted: #605e5c;
  --border: #edebe9;
  --pill-bg: #f0f6ff;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

/* ── HEADER ── */
header { background: var(--ms-navy); color: #fff; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; min-height: 64px; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.logo-icon { width: 120px; height: 72px; border-radius: 16px; display: flex; align-items: center; justify-content: center; overflow: hidden; flex: 0 0 auto; }
.logo-icon #logo { width: 100%; height: 100%; background-image: url('../img/logo-latest.svg'); background-size: 100% 100%; background-repeat: no-repeat; background-position: center; margin-top: 10px; }
.logo-text { font-size: 18px; font-weight: 600; letter-spacing: -0.3px; }
.logo-sub { font-size: 11px; opacity: 0.65; font-weight: 400; display: block; }
nav { display: flex; gap: 4px; }
nav button { background: transparent; border: none; color: rgba(255,255,255,0.7); padding: 8px 14px; cursor: pointer; font-size: 13px; font-family: inherit; border-radius: 4px; transition: all 0.15s; white-space: nowrap; }
nav button:hover,
nav button.active { background: rgba(255,255,255,0.12); color: #fff; }
nav button.active { font-weight: 600; }

/* ── PROGRESS BAR ── */
#progress-bar-wrap { background: var(--ms-navy); padding: 0 2rem 12px; }
.progress-steps { display: flex; gap: 0; position: relative; max-width: 600px; }
.progress-steps::before { content: ''; position: absolute; top: 12px; left: 0; right: 0; height: 2px; background: rgba(255,255,255,0.2); }
.progress-steps::after { content: ''; position: absolute; top: 12px; left: 0; height: 2px; background: var(--ms-cyan); transition: width 0.4s; width: var(--prog, 0%); }
.progress-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; z-index: 1; cursor: pointer; }
.step-dot { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,0.2); border: 2px solid rgba(255,255,255,0.3); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.5); transition: all 0.2s; }
.progress-step.done .step-dot { background: var(--ms-cyan); border-color: var(--ms-cyan); color: var(--ms-navy); }
.progress-step.active .step-dot { background: #fff; border-color: #fff; color: var(--ms-navy); }
.step-label { font-size: 10px; color: rgba(255,255,255,0.5); font-weight: 500; text-align: center; }
.progress-step.done .step-label,
.progress-step.active .step-label { color: rgba(255,255,255,0.9); }

/* ── MAIN ── */
main { max-width: 960px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
section { display: none; }
section.active { display: block; }

/* ── CARDS ── */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem 2rem; margin-bottom: 1.5rem; }
.card-title { font-size: 17px; font-weight: 700; color: var(--ms-navy); margin-bottom: 0.5rem; }
.card-sub { font-size: 13px; color: var(--muted); margin-bottom: 1rem; }

/* ── HERO BANNER ── */
.hero { background: linear-gradient(135deg, var(--ms-navy) 0%, #0d3a6e 100%); color: #fff; border-radius: var(--radius); padding: 3rem 2.5rem; margin-bottom: 2rem; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -40px; top: -40px; width: 300px; height: 300px; border-radius: 50%; background: rgba(80,230,255,0.06) url('../img/logo-latest.svg'); background-position: 12px 65px; background-repeat: no-repeat; background-size:240px;}
.hero-tag { display: inline-block; background: rgba(80,230,255,0.18); color: var(--ms-cyan); font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 10px; border-radius: 20px; margin-bottom: 1rem; border: 1px solid rgba(80,230,255,0.3); }
.hero h1 { font-size: 36px; font-weight: 800; letter-spacing: -1px; line-height: 1.15; margin-bottom: 0.75rem; }
.hero h1 span { color: var(--ms-cyan); }
.hero p { font-size: 15px; opacity: 0.8; max-width: 520px; line-height: 1.7; }
.hero-meta { margin-top: 1.5rem; font-size: 12px; opacity: 0.5; letter-spacing: 0.5px; }

/* ── STEPS OVERVIEW ── */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.step-card { background: var(--pill-bg); border: 1px solid #d0e4f8; border-radius: var(--radius); padding: 1.25rem; }
.step-num { width: 28px; height: 28px; background: var(--ms-blue); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; margin-bottom: 0.75rem; }
.step-title { font-size: 13px; font-weight: 700; color: var(--ms-navy); margin-bottom: 0.3rem; }
.step-desc { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ── PILLAR OVERVIEW TABLE ── */
.pillar-list { list-style: none; display: grid; gap: 8px; }
.pillar-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--bg); border-radius: 6px; border-left: 4px solid var(--ms-blue); }
.pillar-name { font-size: 13px; font-weight: 600; flex: 1; }
.pillar-axis { font-size: 11px; color: var(--muted); background: var(--border); padding: 2px 8px; border-radius: 10px; white-space: nowrap; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 4px; font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; border: 2px solid transparent; transition: all 0.15s; text-decoration: none; }
.btn-primary { background: var(--ms-blue); color: #fff; border-color: var(--ms-blue); }
.btn-primary:hover { background: #006cbf; border-color: #006cbf; }
.btn-outline { background: transparent; color: var(--ms-blue); border-color: var(--ms-blue); }
.btn-outline:hover { background: var(--pill-bg); }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--border); }
.btn-ghost:hover { background: var(--border); color: var(--text); }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-nav { display: flex; gap: 12px; margin-top: 2rem; align-items: center; flex-wrap: wrap; }

/* ── ASSESSMENT SECTION ── */
.pillar-header { display: flex; align-items: center; gap: 12px; padding: 1rem 1.5rem; background: var(--ms-navy); border-radius: var(--radius) var(--radius) 0 0; color: #fff; cursor: pointer; user-select: none; }
.pillar-header-num { width: 30px; height: 30px; border-radius: 50%; background: var(--ms-blue); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; flex-shrink: 0; }
.pillar-header-text { flex: 1; }
.pillar-header-title { font-size: 15px; font-weight: 700; }
.pillar-header-sub { font-size: 11px; opacity: 0.65; }
.pillar-header-score { font-size: 20px; font-weight: 800; color: var(--ms-cyan); min-width: 36px; text-align: right; }
.pillar-header-chevron { transition: transform 0.2s; font-size: 12px; opacity: 0.7; }
.pillar-block { margin-bottom: 1rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.pillar-body { background: var(--card); }
.pillar-body.collapsed { display: none; }

/* ── QUESTION ── */
.question-row { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.question-row:last-child { border-bottom: none; }
.q-num { font-size: 11px; font-weight: 700; color: var(--ms-blue); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.q-text { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 10px; line-height: 1.5; }
.q-anchors { display: flex; gap: 6px; font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.q-anchor { background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 4px 8px; flex: 1; line-height: 1.4; }
.q-anchor strong { display: block; color: var(--ms-navy); font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.score-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.score-btn { width: 44px; height: 44px; border: 2px solid var(--border); background: var(--card); border-radius: 6px; cursor: pointer; font-size: 15px; font-weight: 700; color: var(--muted); font-family: inherit; transition: all 0.15s; display: flex; align-items: center; justify-content: center; }
.score-btn:hover { border-color: var(--ms-blue); color: var(--ms-blue); background: var(--pill-bg); }
.score-btn.selected { background: var(--ms-blue); border-color: var(--ms-blue); color: #fff; }
.score-label { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ── TECH PROFILE ── */
.tq-block { margin-bottom: 1.25rem; }
.tq-header { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.tq-id { font-size: 12px; font-weight: 800; color: var(--ms-blue); text-transform: uppercase; letter-spacing: 0.5px; }
.tq-text { font-size: 15px; font-weight: 700; color: var(--ms-navy); }
.tq-guidance { font-size: 12px; color: var(--muted); margin-bottom: 10px; padding: 6px 10px; background: var(--bg); border-radius: 4px; border-left: 3px solid var(--ms-cyan); }
.tq-options { display: grid; gap: 6px; }
.tq-opt { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; border: 2px solid var(--border); border-radius: 6px; cursor: pointer; transition: all 0.15s; background: var(--card); }
.tq-opt:hover { border-color: var(--ms-blue); background: var(--pill-bg); }
.tq-opt.selected { border-color: var(--ms-blue); background: var(--pill-bg); }
.tq-opt input { margin-top: 3px; accent-color: var(--ms-blue); flex-shrink: 0; }
.tq-opt-label { font-size: 13px; font-weight: 500; }
.tq-opt-val { font-size: 12px; font-weight: 800; color: var(--ms-blue); margin-right: 4px; }

/* ── RESULTS ── */
.results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
@media (max-width: 680px) { .results-grid { grid-template-columns: 1fr; } }
.score-hero { text-align: center; padding: 2rem; }
.score-big { font-size: 64px; font-weight: 900; letter-spacing: -3px; color: var(--ms-navy); line-height: 1; }
.score-label-big { font-size: 13px; color: var(--muted); margin-top: 6px; }
.maturity-badge { display: inline-block; padding: 8px 18px; border-radius: 20px; font-weight: 700; font-size: 14px; margin-top: 12px; }
.quadrant-badge { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 6px; font-weight: 700; font-size: 16px; margin-top: 8px; }
.pillar-bar-list { display: grid; gap: 8px; }
.pillar-bar-row { display: flex; align-items: center; gap: 10px; }
.pillar-bar-label { font-size: 12px; font-weight: 600; width: 170px; flex-shrink: 0; color: var(--text); }
.pillar-bar-track { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.pillar-bar-fill { height: 100%; border-radius: 4px; background: var(--ms-blue); transition: width 0.6s ease; }
.pillar-bar-val { font-size: 12px; font-weight: 700; color: var(--ms-navy); min-width: 30px; text-align: right; }
.quadrant-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.q-cell { padding: 1rem; border-radius: 4px; text-align: center; }
.q-cell-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.q-cell-name { font-size: 13px; font-weight: 600; margin-top: 2px; }
.q-cell.active { box-shadow: 0 0 0 3px var(--ms-orange), 0 4px 12px rgba(0,120,212,0.25); transform: scale(1.02); z-index: 1; position: relative; }
.prescription-card { background: linear-gradient(135deg, #0a2540 0%, #0d3a6e 100%); color: #fff; border-radius: var(--radius); padding: 2rem; margin-bottom: 1.5rem; }
.prescription-title { font-size: 18px; font-weight: 800; margin-bottom: 1.25rem; color: var(--ms-cyan); }
.presc-row { display: flex; gap: 12px; margin-bottom: 1rem; align-items: flex-start; }
.presc-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.presc-key { font-size: 11px; font-weight: 700; letter-spacing: 0.5px; opacity: 0.65; text-transform: uppercase; margin-bottom: 2px; }
.presc-val { font-size: 14px; font-weight: 600; line-height: 1.5; }
.presc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .presc-grid { grid-template-columns: 1fr; } }
.chart-wrap { position: relative; width: 100%; max-width: 340px; margin: 0 auto; }

/* ── REFERENCE SECTION ── */
.maturity-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.maturity-table th { background: var(--ms-navy); color: #fff; padding: 10px 14px; text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 0.3px; }
.maturity-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.maturity-table tr:nth-child(even) td { background: var(--bg); }
.maturity-table tr:hover td { background: var(--pill-bg); }
.level-pill { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; }
.portfolio-grid { display: grid; gap: 1rem; }
.portfolio-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; border-left: 4px solid var(--ms-blue); }
.portfolio-play { font-size: 14px; font-weight: 700; color: var(--ms-navy); margin-bottom: 4px; }
.portfolio-offer { font-size: 12px; font-weight: 600; color: var(--ms-blue); margin-bottom: 6px; }
.portfolio-intent { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.portfolio-value { font-size: 12px; color: var(--text); line-height: 1.6; }

/* ── MISC ── */
.section-title { font-size: 22px; font-weight: 800; color: var(--ms-navy); margin-bottom: 0.4rem; letter-spacing: -0.5px; }
.section-sub { font-size: 14px; color: var(--muted); margin-bottom: 1.5rem; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; }
.divider { height: 1px; background: var(--border); margin: 1.5rem 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 600px) {
  .two-col { grid-template-columns: 1fr; }
  nav { display: none; }
}
.answered-count { font-size: 12px; color: var(--muted); margin-left: auto; }
.incomplete-warn { background: #fff4e5; border: 1px solid #f7b14b; border-radius: 6px; padding: 10px 14px; font-size: 13px; color: #7a4f1a; margin-bottom: 1rem; display: none; }

/* ── EXPANDED PRESCRIPTION ── */
.stu-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.stu-badge { background: #e8f3fb; border: 1px solid #c7e0f4; color: var(--ms-navy); border-radius: 20px; padding: 6px 16px; font-size: 13px; font-weight: 700; }
.security-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-top: 10px; }
.security-layer { background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 10px 12px; border-left: 3px solid #0078D4; }
.security-layer-name { font-size: 12px; font-weight: 700; color: var(--ms-navy); }
.next-step-item { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.next-step-item:last-child { border-bottom: none; }
.next-step-num { width: 30px; height: 30px; border-radius: 50%; background: var(--ms-blue); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex-shrink: 0; margin-top: 2px; }
.next-step-title { font-size: 13px; font-weight: 700; color: var(--ms-navy); }
.next-step-text { font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.5; }

/* ── PRINT ── */
@media print {
  header,
  #progress-bar-wrap,
  .btn-nav,
  nav { display: none !important; }
  section { display: block !important; }
  .pillar-body.collapsed { display: block !important; }
  body { font-size: 12px; }
  .hero { background: #0a2540 !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .prescription-card { background: #0a2540 !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
