:root{
  --green:#1f7a5c;
  --blue:#1d4ed8;
  --dark:#111827;
  --mid:#374151;
  --light:#f3f4f6;
  --line:#e5e7eb;
  --white:#ffffff;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Helvetica Neue", sans-serif;
  background: var(--light);
  color: var(--dark);
}
.app{min-height:100vh; display:flex; flex-direction:column}
.topbar{
  background: var(--white);
  border-bottom:1px solid var(--line);
  padding: 14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.brand{display:flex; align-items:center; gap:12px}
.mark{width:14px; height:38px; background:var(--green); border-radius:999px}
.brandname{font-weight:800; font-size:14px; letter-spacing:.2px}
.brandsub{font-size:12px; color:var(--mid)}
.status{display:flex; align-items:center; gap:10px; flex-wrap:wrap}
.pill{
  padding:6px 10px;
  border-radius:999px;
  background: var(--light);
  border:1px solid var(--line);
  font-size:12px;
  color: var(--mid);
}
.main{padding:18px; width:min(1180px, 100%); margin:0 auto; flex:1}
.steps{
  display:flex; gap:10px; flex-wrap:wrap;
  margin-bottom:14px;
}
.step{
  background: var(--white);
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px 12px;
  cursor:pointer;
  display:flex; align-items:center; gap:8px;
  color:var(--mid);
}
.step span{
  width:22px; height:22px; border-radius:8px;
  display:grid; place-items:center;
  background: var(--light);
  border:1px solid var(--line);
  color: var(--dark);
  font-weight:700;
  font-size:12px;
}
.step.active{
  border-color: rgba(31,122,92,.35);
  box-shadow: 0 8px 22px rgba(17,24,39,.06);
  color: var(--dark);
}
.panel{display:none}
.panel.active{display:block}
h1{margin:10px 0 6px 0; font-size:26px}
h2{margin:0 0 10px 0; font-size:18px}
.lead{margin:0 0 16px 0; color:var(--mid)}
.grid2{display:grid; grid-template-columns:1fr 1fr; gap:14px}
.grid3{display:grid; grid-template-columns:1fr 1fr 1fr; gap:14px}
@media (max-width: 980px){
  .grid2,.grid3{grid-template-columns:1fr}
}
.card{
  background: var(--white);
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px;
  box-shadow: 0 10px 26px rgba(17,24,39,.04);
}
.card.emphasis{
  border-color: rgba(29,78,216,.25);
}
.field{display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 0; border-bottom:1px dashed var(--line)}
.field:last-child{border-bottom:none}
label{font-weight:700}
.hint{font-weight:500; color:var(--mid); font-size:12px}
input[type=number]{
  width:110px;
  padding:10px 10px;
  border:1px solid var(--line);
  border-radius:12px;
  font-weight:700;
  font-size:14px;
}
.small{color:var(--mid); font-size:12px; margin-top:10px}
.actions{display:flex; gap:10px; justify-content:flex-end; margin-top:14px; flex-wrap:wrap}
.actions.left{justify-content:flex-start}
.btn{
  background: var(--green);
  border:1px solid var(--green);
  color: var(--white);
  padding:10px 14px;
  border-radius:14px;
  font-weight:800;
  cursor:pointer;
}
.btn.ghost{
  background: var(--white);
  border:1px solid var(--line);
  color: var(--dark);
}
.btn:active{transform:translateY(1px)}
.kpis{display:grid; gap:12px}
.kpi{padding:14px; border:1px solid var(--line); border-radius:16px; background: var(--light)}
.kpiLabel{font-size:12px; color:var(--mid); font-weight:800}
.kpiValue{font-size:30px; font-weight:900; margin:6px 0}
.kpiHint{font-size:12px; color:var(--mid)}
.tableWrap{overflow:auto}
table{width:100%; border-collapse:separate; border-spacing:0}
.heatmap th{
  position:sticky; top:0;
  background: var(--blue);
  color: var(--white);
  font-size:12px;
  text-align:left;
  padding:10px;
}
.heatmap td{
  padding:10px;
  border-bottom:1px solid var(--line);
  background: var(--white);
}
.heatmap tbody tr:last-child td{border-bottom:none}
.heatmap input{
  width:78px;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid var(--line);
  font-weight:800;
}
.strong{font-weight:900}
.metricTitle{font-size:12px; color:var(--mid); font-weight:800}
.metricValue{font-size:28px; font-weight:900; margin-top:8px}
.metricHint{font-size:12px; color:var(--mid); margin-top:6px}
.callout{
  padding:14px;
  background: var(--light);
  border:1px solid var(--line);
  border-radius:16px;
  font-size:14px;
  line-height:1.45;
}


/* -------- Board Report (print-friendly) -------- */
body.report{ background: var(--light); }
.reportActions{ position:fixed; right:18px; bottom:18px; display:flex; gap:10px; }
.reportPage{
  width: min(1000px, calc(100% - 24px));
  margin: 18px auto 90px auto;
  background: var(--white);
  border:1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(17,24,39,.08);
  padding: 22px;
}
.reportHeader{
  display:flex; justify-content:space-between; gap:14px; align-items:flex-start;
  padding-bottom:14px; border-bottom:1px solid var(--line);
}
.reportBrand{display:flex; align-items:center; gap:12px}
.reportMark{width:12px; height:44px; background:var(--green); border-radius:999px}
.reportBrandName{font-weight:900; letter-spacing:.2px}
.reportBrandSub{font-size:12px; color:var(--mid)}
.reportMeta{font-size:12px; color:var(--mid); text-align:right; line-height:1.6}
.reportSection{padding-top:16px}
.reportSection h1{font-size:22px; margin:0 0 10px 0}
.reportSection h2{font-size:16px; margin:0 0 8px 0}
.reportKpis{display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px}
@media (max-width: 980px){ .reportKpis{grid-template-columns:1fr} }
.reportKpi{border:1px solid var(--line); border-radius:16px; padding:14px; background: var(--light)}
.reportKpi .k{font-size:12px; color:var(--mid); font-weight:800}
.reportKpi .v{font-size:22px; font-weight:900; margin-top:8px}
.reportKpi .u{font-size:12px; color:var(--mid); margin-left:6px}
.reportKpi .s{font-size:12px; color:var(--mid); margin-top:6px}
.reportCallout{margin-top:12px; padding:14px; border:1px solid var(--line); border-radius:16px; background: #f8fafc; font-size:14px; line-height:1.5}
.reportTableWrap{overflow:auto; border:1px solid var(--line); border-radius:16px}
.reportTable{width:100%; border-collapse:separate; border-spacing:0}
.reportTable th{
  background: var(--blue);
  color: var(--white);
  text-align:left;
  font-size:12px;
  padding:10px;
}
.reportTable td{
  padding:10px;
  border-bottom:1px solid var(--line);
}
.reportTable tfoot td{background: var(--light)}
.twoCol{display:grid; grid-template-columns:1fr 1fr; gap:12px}
@media (max-width: 980px){ .twoCol{grid-template-columns:1fr} }
.box{border:1px solid var(--line); border-radius:16px; padding:14px; background: var(--white)}
.box h3{margin:0 0 8px 0; font-size:14px}
ul.check{margin:0; padding-left:18px}
ul.check li{margin:6px 0}
.reportFooter{display:flex; justify-content:space-between; padding-top:14px; border-top:1px solid var(--line); margin-top:16px; font-size:11px}

/* Print rules */
@media print{
  .noprint{display:none !important}
  body.report{ background:white; }
  .reportPage{
    box-shadow:none;
    border:none;
    border-radius:0;
    margin:0;
    width:100%;
    padding: 0.55in;
  }
  .reportTableWrap{border:1px solid #ddd}
}

/* -------- Futureproof CPD Brand Override -------- */
:root{
  --brand-navy:#0E1B5B;
  --brand-blue:#2F80FF;
}

.topbar{
  background: var(--brand-navy);
  border-bottom:none;
}

.brandname,
.brandsub{
  color:#ffffff;
}

.step.active{
  border-color: var(--brand-blue);
  box-shadow: 0 8px 24px rgba(47,128,255,.25);
}

.btn{
  background: var(--brand-blue);
  border-color: var(--brand-blue);
}

.btn.ghost{
  border-color: rgba(0,0,0,.1);
}

.kpi{
  border-left: 4px solid var(--brand-blue);
}

.reportHeader{
  background: var(--brand-navy);
  color:#ffffff;
  padding:20px;
  border-radius:12px;
}

.reportBrandName,
.reportBrandSub,
.reportMeta{
  color:#ffffff;
}

.reportSection h1,
.reportSection h2{
  color: var(--brand-navy);
}

.reportTable th{
  background: var(--brand-navy);
}

.reportFooter{
  color:#6b7280;
}


/* Client name field (Board Report) */
.clientLine{margin-bottom:6px}
.clientInput{
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: #ffffff;
  border-radius: 10px;
  padding: 6px 10px;
  font-weight: 800;
  width: 230px;
}
.clientInput::placeholder{color: rgba(255,255,255,.75)}
.clientBar{
  margin-top:12px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background: #f8fafc;
}


/* -------- Consulting-grade board report polish -------- */
.watermark{
  position:absolute;
  inset: 0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 1000;
  font-size: 220px;
  letter-spacing: -10px;
  color: rgba(14,27,91,.04);
  transform: rotate(-12deg);
  pointer-events:none;
  user-select:none;
}

.reportPage{ position:relative; overflow:hidden; }

.clientMsg{
  font-size:12px;
  color:#ffffff;
  opacity:.9;
  margin-top:8px;
}
.clientMsg.ok{
  opacity:1;
}

.reportFooter{
  align-items:center;
  gap:10px;
}
.pageNums{
  font-size:11px;
  color:#6b7280;
}

@media print{
  .watermark{ color: rgba(14,27,91,.035); }
  .reportHeader{ border-radius: 0; }
  .clientBar{ background:#ffffff; }
  .reportFooter{ position:fixed; bottom:0.35in; left:0.55in; right:0.55in; }
}


/* --- Interactivity upgrades --- */
.rowBetween{display:flex; align-items:center; justify-content:space-between; gap:12px}
.legend{display:flex; align-items:center; gap:10px; margin-top:10px; flex-wrap:wrap; color:var(--mid); font-size:12px}
.dot{width:10px; height:10px; border-radius:999px; display:inline-block; border:1px solid rgba(17,24,39,.15)}
.dot.company{background: rgba(47,128,255,.35); border-color: rgba(47,128,255,.5)}
.dot.individual{background: rgba(14,27,91,.20); border-color: rgba(14,27,91,.35)}

.riskPill{
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: var(--light);
  color: var(--dark);
  font-size:12px;
  font-weight:900;
}

.riskMeterWrap{display:flex; gap:14px; align-items:center; margin-top:14px; flex-wrap:wrap}
.riskMeter{
  width: 260px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(47,128,255,.20), rgba(47,128,255,.55), rgba(47,128,255,.90));
  border: 1px solid rgba(0,0,0,.08);
  overflow:hidden;
  position:relative;
}
.riskFill{
  height:100%;
  width: 0%;
  background: rgba(14,27,91,.85);
  border-radius:999px;
  transition: width .25s ease;
}
.riskMeta{min-width: 220px}

ul.reco{margin:10px 0 0 0; padding-left:18px}
ul.reco li{margin:8px 0; line-height:1.35}
.compareTable th{
  background: var(--brand-navy);
  color: #fff;
  font-size:12px;
  text-align:left;
  padding:10px;
}
.compareTable td{
  padding:10px;
  border-bottom:1px solid var(--line);
  font-size:13px;
}
.badge{
  display:inline-block;
  padding:5px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  border:1px solid rgba(0,0,0,.08);
  background: var(--light);
}


/* Scenario simulator */
.scenarioGrid{
  display:grid;
  grid-template-columns: 220px 1fr 260px;
  gap:14px;
  margin-top:12px;
  align-items:end;
}
@media (max-width: 980px){ .scenarioGrid{ grid-template-columns: 1fr; } }
.select{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  font-weight:800;
}
.metricBig{font-size:26px; font-weight:1000; line-height:1.1}
.scenarioOut{
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
  background: var(--light);
}

/* Board report viz + action plan */
.reportViz{
  margin-top:14px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:16px;
  background: #ffffff;
}
.planGrid{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:12px;
}
@media (max-width: 980px){ .planGrid{ grid-template-columns: 1fr; } }


/* -------- Premium Launch Screen (EdTech Premium) -------- */
.launchBody{
  min-height:100vh;
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(47,128,255,.15), transparent 55%),
    radial-gradient(900px 500px at 80% 40%, rgba(14,27,91,.12), transparent 55%),
    #F8FAFC;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.launchWrap{width: min(860px, 100%);}
.launchCard{
  background: rgba(255,255,255,.92);
  border:1px solid rgba(15,23,42,.08);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 24px 70px rgba(2,6,23,.10);
  backdrop-filter: blur(10px);
}
.launchBrand{display:flex; align-items:center; gap:12px; margin-bottom:10px}
.launchLogo{height:44px; width:auto; border-radius:10px}
.launchBrandName{font-weight:1000; color: var(--brand-navy); letter-spacing:.2px}
.launchBrandSub{font-size:12px; color: var(--mid); margin-top:2px}
.launchTitle{font-size:32px; margin:14px 0 10px 0; color: var(--brand-navy); letter-spacing:-.6px}
.launchLead{font-size:15px; color: rgba(15,23,42,.78); margin:0 0 14px 0; line-height:1.5}
.launchBullets{display:grid; gap:10px; margin: 14px 0 18px 0}
.lb{display:flex; align-items:flex-start; gap:10px; color: rgba(15,23,42,.85)}
.tick{
  width:22px; height:22px; border-radius:999px;
  display:inline-flex; align-items:center; justify-content:center;
  background: rgba(47,128,255,.12);
  color: var(--brand-blue);
  border: 1px solid rgba(47,128,255,.22);
  font-weight:1000;
  flex: 0 0 22px;
}
.launchActions{display:flex; gap:10px; flex-wrap:wrap}
.launchStatus{
  margin-top:12px;
  font-size:12px;
  color: rgba(15,23,42,.70);
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.08);
  background: #ffffff;
}
.launchStatus.ok{border-color: rgba(47,128,255,.30); background: rgba(47,128,255,.06);}
.launchFooter{
  margin-top:14px;
  font-size:11px;
  color: rgba(15,23,42,.55);
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.sep{opacity:.55}

.watermark{display:none !important;}


/* Modals + Share */
.modal{
  position:fixed;
  inset:0;
  background: rgba(2,6,23,.45);
  z-index: 20000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.modalCard{
  width:min(980px, 100%);
  background: rgba(255,255,255,.96);
  border:1px solid rgba(15,23,42,.10);
  border-radius:22px;
  padding:18px;
  box-shadow: 0 30px 90px rgba(2,6,23,.18);
  backdrop-filter: blur(10px);
}
.shareCanvas{
  width:100%;
  height:auto;
  border-radius:16px;
  border:1px solid var(--line);
  background:#fff;
}
