/* CAMPAIGNS — what the advertising bought. s81.
   Its own stylesheet for the same reason leads.css is: app.css is already the
   largest shipped file and a screen of charts should not be what pushes it
   further. Everything here is the Chase OS palette — the old Intelligence
   screen's brass, jade and monospace belonged to a different app. */

/* Numbered section heads — the rhythm of the old Intelligence screen, in
   this app's clothes. The index is the only decoration; the rule carries
   the eye across and any right-hand control sits after it. */
.cm-sec{display:flex;align-items:center;gap:11px;margin:26px 0 12px}
.cm-sec:first-child{margin-top:0}
.cm-sec .ix{font-family:var(--serif);font-size:13px;font-variant-numeric:tabular-nums;
  color:var(--gold);font-weight:500}
.cm-sec .lbl{font-size:10px;letter-spacing:.17em;text-transform:uppercase;
  color:var(--muted);font-weight:700;white-space:nowrap}
.cm-sec .rule{flex:1;height:1px;background:var(--line)}

.cm-hero{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}
.cm-hero.three{grid-template-columns:repeat(3,1fr)}
.cm-stat{border:1px solid var(--line);border-radius:10px;padding:13px 16px;background:var(--card)}
.cm-stat b{display:block;font-family:var(--serif);font-size:26px;font-weight:500;
  font-variant-numeric:tabular-nums;margin:5px 0 2px}
.cm-stat span{display:block;font-size:11.5px;color:var(--faint)}
.cm-stat.lead{border-color:#efe1c9;background:var(--gold-soft)}
.cm-stat.lead b,.cm-stat.lead .eyebrow{color:#7d5f22}
.cm-stat.warn{border-color:#eed8d1;background:var(--red-soft)}
.cm-stat.warn b,.cm-stat.warn .eyebrow{color:var(--red)}

.cm-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px}

/* Two wide charts and a narrow reference column. The tier card is a legend,
   not a feature, so it never gets equal width. */
.cm-charts{display:grid;grid-template-columns:2fr 2fr 1fr;gap:12px;align-items:start;margin-bottom:6px}
.cm-chart{border:1px solid var(--line);border-radius:10px;background:var(--card);padding:13px 16px}
.cm-chart .cnv{position:relative;height:270px;margin-top:10px}
.cm-side{display:flex;flex-direction:column;gap:12px}
.cm-side .cm-chart .cnv{height:176px}
.cm-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  font-size:12px;color:var(--faint);text-align:center}

.cm-tiers{display:flex;flex-direction:column;gap:7px;margin-top:10px}
.cm-tiers div{display:flex;align-items:center;gap:8px;font-size:11.5px;color:var(--muted)}
.cm-tiers i{width:8px;height:8px;border-radius:50%;flex:none;font-style:normal}
.cm-tiers em{font-style:normal;color:var(--faint);margin-left:auto;
  font-variant-numeric:tabular-nums}

/* Funnel steps: one row, each step its own column, a bar under each showing
   the share of everything that got that far. */
.cm-funnel{display:grid;grid-template-columns:repeat(6,1fr);border:1px solid var(--line);
  border-radius:10px;background:var(--card);overflow:hidden}
.cm-step{padding:14px 16px;border-right:1px solid var(--line-2)}
.cm-step:last-child{border-right:0}
.cm-step p{font-size:9.5px;letter-spacing:.13em;text-transform:uppercase;
  color:var(--faint);font-weight:700}
.cm-step b{display:block;font-family:var(--serif);font-size:24px;font-weight:500;
  font-variant-numeric:tabular-nums;margin:5px 0 2px}
.cm-step small{display:block;font-size:11px;color:var(--faint);min-height:15px}
.cm-step .fb{height:5px;border-radius:3px;background:var(--line-2);margin-top:8px;overflow:hidden}
.cm-step .fb i{display:block;height:5px;border-radius:3px;background:var(--gold)}
.cm-step.good b{color:var(--green)} .cm-step.good .fb i{background:var(--green)}
.cm-step.bad b{color:var(--red)}   .cm-step.bad .fb i{background:var(--red)}

.cm-head,.cm-row{display:grid;gap:10px;align-items:center;padding:9px 18px}
.cm-head{font-size:9.5px;letter-spacing:.13em;text-transform:uppercase;font-weight:700;
  color:var(--faint);border-bottom:1px solid var(--line)}
.cm-row{border-bottom:1px solid var(--line-2);font-size:13px}
.cm-row:last-child{border-bottom:0}
.cm-row:hover{background:#fcfbf9}
.cm-n{font-variant-numeric:tabular-nums;color:var(--muted);text-align:right}
.cm-n b{font-weight:600;color:var(--ink)}
.cm-nm{cursor:pointer}
.cm-nm b{display:block;font-weight:600}
.cm-nm small{display:block;font-size:11px;color:var(--faint)}
.cm-none{padding:22px 18px;color:var(--faint);font-size:13px}

.cm-t6{grid-template-columns:1.5fr .8fr .8fr .8fr .8fr .8fr}
.cm-t5{grid-template-columns:1.6fr .8fr .9fr 1fr 1fr}
.cm-t4{grid-template-columns:1.6fr .8fr 1fr 1fr}
.cm-t2{grid-template-columns:1fr .5fr}

.cm-tier{font-size:9.5px;letter-spacing:.09em;text-transform:uppercase;font-weight:700;
  padding:2px 7px;border-radius:4px;background:var(--line-2);color:var(--muted);justify-self:start}
.cm-tier.t1{background:var(--gold-soft);color:#7d5f22}
.cm-tier.t2{background:var(--amber-soft);color:var(--amber)}
.cm-tier.t3{background:var(--blue-soft);color:var(--blue)}

.cm-split{display:grid;grid-template-columns:1fr 1fr;gap:12px}

@media(max-width:1200px){
  .cm-charts{grid-template-columns:1fr 1fr}
  .cm-side{grid-column:1 / -1;flex-direction:row}
  .cm-side .cm-chart{flex:1}
}
@media(max-width:1100px){
  .cm-hero,.cm-hero.three{grid-template-columns:1fr 1fr}
  .cm-funnel{grid-template-columns:repeat(3,1fr)}
  .cm-step{border-bottom:1px solid var(--line-2)}
  .cm-charts{grid-template-columns:1fr}
  .cm-side{flex-direction:column}
  .cm-split{grid-template-columns:1fr}
}


/* ROI SECTION — s95 */
#cm-roi{padding:18px 20px}
.cm-roi-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:16px}
.cm-roi-stat{background:var(--bg-1,#f9f7f3);border:1px solid var(--line-2,#e8e3db);border-radius:10px;padding:14px 16px}
.cm-roi-stat p{font-size:9.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted,#9b9684);font-weight:700;margin-bottom:6px}
.cm-roi-stat b{display:block;font-size:22px;font-weight:700;letter-spacing:-.02em;color:var(--ink,#1a1a1a);line-height:1.1;margin-bottom:4px}
.cm-roi-stat span{font-size:11px;color:var(--muted,#9b9684)}
.cm-roi-clients{border-top:1px solid var(--line-2,#e8e3db);padding-top:12px}
.cm-roi-row{display:flex;justify-content:space-between;align-items:center;padding:7px 0;border-bottom:1px solid var(--line-2,#e8e3db);font-size:13px}
.cm-roi-row:last-child{border-bottom:none}
.cm-roi-row b{font-weight:600}
.cm-roi-row span{font-size:11px;color:var(--muted,#9b9684)}
@media(max-width:900px){.cm-roi-grid{grid-template-columns:1fr 1fr}}
