/* FUNIPSI scanner funnel (work + demos pages). Builds on styles.css tokens only.
   Bars are linear to the first row on purpose: the near-empty last rows are the finding.
   A 3px floor keeps the smallest counts visible; the numbers carry the exact value. */

.funnel{margin:0;padding:var(--gap) 0;border-top:1px solid var(--line-soft)}
.page-sec .funnel{margin-top:calc(var(--u) * 6);padding-bottom:0}
.funnel .h-sm{margin:calc(var(--u) * 3) 0 calc(var(--u) * 3);max-width:30ch}
.funnel-lede{margin:0;max-width:60ch;font-size:16px;font-weight:400;line-height:1.6;color:var(--silver)}

.funnel-rows{list-style:none;margin:calc(var(--u) * 6) 0 0;padding:0;display:grid;gap:calc(var(--u) * 4);max-width:820px}
.funnel-rows li{
  display:grid;grid-template-columns:72px minmax(0,1fr);
  align-items:baseline;column-gap:calc(var(--u) * 3);row-gap:8px;
}
.funnel-n{font-size:var(--fs-sm);font-weight:400;letter-spacing:-.02em;font-variant-numeric:tabular-nums;color:var(--bone)}
.funnel-l{font-size:15px;font-weight:400;line-height:1.4;color:var(--silver)}
.funnel-rows li:last-child .funnel-l{color:var(--bone)}

.funnel-bar{grid-column:1 / -1;display:block;width:100%;height:10px;overflow:visible}
.funnel-bar .track{fill:var(--line-soft)}
.funnel-bar .fill{
  fill:var(--accent);
  width:max(3px,var(--w));
  transform-box:fill-box;transform-origin:left center;
  transition:transform .9s var(--ease);
  transition-delay:calc(var(--i) * .12s);
}
.js .funnel:not(.in) .funnel-bar .fill{transform:scaleX(0)}

.funnel-cap{margin-top:calc(var(--u) * 6);max-width:60ch;font-size:16px;font-weight:300;line-height:1.6;color:var(--bone)}

.funnel-table table{
  margin-top:calc(var(--u) * 3);border-collapse:collapse;
  font-size:14px;font-weight:400;line-height:1.4;color:var(--silver);
}
.funnel-table th,.funnel-table td{padding:8px 16px 8px 0;border-bottom:1px solid var(--line-soft);text-align:left;vertical-align:top}
.funnel-table thead th{font-size:var(--fs-cap);font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--ash)}
.funnel-table tbody th{font-weight:400}
.funnel-table td,.funnel-table thead th + th{text-align:right;font-variant-numeric:tabular-nums}

@media (prefers-reduced-motion:reduce){
  .funnel-bar .fill{transition:none}
}
