:root {
  --navy: #0F2C5C;
  --navy-soft: #1c3f7a;
  --orange: #F2871F;
  --orange-soft: #fbe9d6;
  --ink: #1a2233;
  --muted: #5b6577;
  --line: #e4e8f0;
  --bg: #f6f7fb;
  --card: #ffffff;
  --good: #1f9d63;
  --warn: #d98a00;
  --bad: #d1495b;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(15,44,92,.08), 0 8px 24px rgba(15,44,92,.06);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 32px 20px 80px; }

/* Header */
.site-header {
  background: var(--navy);
  color: #fff;
  padding: 28px 20px;
}
.site-header .inner { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.site-header img { height: 44px; width: auto; background: #fff; border-radius: 8px; padding: 6px 10px; }
.site-header .titles h1 { font-size: 1.25rem; font-weight: 700; letter-spacing: .2px; }
.site-header .titles p { font-size: .85rem; opacity: .8; }
.badge-row { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.badge {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  padding: 5px 11px; border-radius: 999px; font-size: .75rem; font-weight: 600;
}

/* Sections */
section { margin-top: 40px; }
.section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.section-head h2 { font-size: 1.05rem; color: var(--navy); font-weight: 700; }
.section-head .hint { font-size: .8rem; color: var(--muted); }

/* Grid helpers */
.grid { display: grid; gap: 16px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .g-3, .g-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.kpi .label { font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.kpi .value { font-size: 1.75rem; font-weight: 800; color: var(--navy); margin-top: 6px; }
.kpi .sub { font-size: .8rem; color: var(--muted); margin-top: 4px; }

/* Highlight cards */
.highlight {
  background: linear-gradient(160deg, var(--navy), var(--navy-soft));
  color: #fff; border: none;
}
.highlight .label { color: rgba(255,255,255,.75); }
.highlight .value { color: #fff; font-size: 2.4rem; }
.highlight .value .accent { color: var(--orange); }
.highlight .sub { color: rgba(255,255,255,.8); }
.highlight .chip {
  display: inline-block; margin-top: 10px; background: var(--orange);
  color: #10233f; font-weight: 700; font-size: .78rem; padding: 4px 10px; border-radius: 8px;
}

/* Funnel */
.funnel { display: flex; flex-direction: column; gap: 8px; }
.funnel-row { display: grid; grid-template-columns: 150px 1fr 140px; align-items: center; gap: 12px; }
.funnel-row .name { font-weight: 600; font-size: .9rem; }
.funnel-bar-track { background: #eef1f7; border-radius: 8px; overflow: hidden; height: 34px; }
.funnel-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--navy), var(--orange));
  display: flex; align-items: center; padding-left: 12px; color: #fff; font-weight: 700; font-size: .85rem;
  border-radius: 8px; min-width: 60px;
}
.funnel-row .meta { font-size: .8rem; color: var(--muted); text-align: right; }
.funnel-row .meta b { color: var(--ink); }

/* Table */
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tag { font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.tag.above, .tag.in_range { background: #e3f5eb; color: var(--good); }
.tag.below { background: #fdeaed; color: var(--bad); }

/* Charts */
.chart-svg { width: 100%; height: auto; display: block; }
.chart-legend { display: flex; gap: 16px; font-size: .8rem; color: var(--muted); margin-top: 8px; flex-wrap: wrap; }
.chart-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.chart-legend .l-conv::before { background: var(--navy); }
.chart-legend .l-pur::before { background: var(--orange); }

/* Recommendations */
.rec { border-left: 4px solid var(--orange); }
.rec h3 { font-size: 1rem; color: var(--navy); display: flex; align-items: center; gap: 10px; }
.rec .rank { background: var(--navy); color: #fff; width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; font-size: .8rem; flex: none; }
.rec .why { font-size: .88rem; color: var(--muted); margin: 8px 0; }
.rec ul { margin: 8px 0 8px 18px; font-size: .86rem; }
.rec li { margin: 3px 0; }
.rec .foot { font-size: .78rem; color: var(--muted); margin-top: 8px; }
.rec .foot b { color: var(--ink); }

.pill-list { display: flex; flex-direction: column; gap: 8px; }
.pill-list li { list-style: none; font-size: .88rem; padding-left: 22px; position: relative; }
.pill-list.good li::before { content: "\2713"; position: absolute; left: 0; color: var(--good); font-weight: 800; }
.pill-list.watch li::before { content: "\26A0"; position: absolute; left: 0; color: var(--warn); }

.note {
  background: #fff7ec; border: 1px solid #f4dcb8; color: #7a5b21;
  padding: 12px 14px; border-radius: 10px; font-size: .84rem; margin-top: 12px;
}
.scenario-table td.num { font-weight: 700; color: var(--navy); }

footer.report-foot { margin-top: 56px; font-size: .8rem; color: var(--muted); text-align: center; }

.loading { padding: 40px; text-align: center; color: var(--muted); }

.shot { padding: 10px; }
.shot img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }
