/* ── INLINE VISUALS ── */

/* Channel comparison table */
.channel-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.85rem;
}
.channel-table th {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text3);
  font-weight: 500;
  padding: 0.75rem 1rem;
  background: var(--off);
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.channel-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
  vertical-align: middle;
}
.channel-table tr:last-child td {
  border-bottom: none;
}
.channel-table tr.selected td {
  background: rgba(26, 86, 232, 0.04);
  color: var(--text1);
  font-weight: 500;
}
.channel-table tr.selected td:first-child {
  border-left: 3px solid var(--accent);
}
.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  white-space: nowrap;
}
.badge--green {
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
}
.badge--red {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}
.badge--blue {
  background: rgba(26, 86, 232, 0.08);
  color: var(--accent);
}

/* Funnel diagram */
.funnel {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.funnel-step {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-bottom: none;
  background: var(--white);
  position: relative;
  transition: background 0.15s;
}
.funnel-step:first-child {
  border-radius: 8px 8px 0 0;
}
.funnel-step:last-child {
  border-bottom: 1px solid var(--border);
  border-radius: 0 0 8px 8px;
}
.funnel-step.highlight {
  background: rgba(26, 86, 232, 0.04);
  border-color: rgba(26, 86, 232, 0.2);
}
.funnel-step.highlight + .funnel-step {
  border-top-color: rgba(26, 86, 232, 0.2);
}
.funnel-num {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--text3);
  width: 20px;
  flex-shrink: 0;
}
.funnel-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text1);
  flex: 1;
}
.funnel-sub {
  font-size: 0.78rem;
  color: var(--text2);
  margin-top: 0.15rem;
}
.funnel-arrow {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text3);
  text-align: center;
  padding: 0.2rem 0;
  background: var(--off);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

/* Before / After CVR bar */
.cvr-compare {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cvr-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.cvr-row__label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cvr-row__name {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text2);
}
.cvr-row__val {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text1);
}
.cvr-bar-wrap {
  height: 10px;
  background: var(--light);
  border-radius: 100px;
  overflow: hidden;
}
.cvr-bar {
  height: 100%;
  border-radius: 100px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.cvr-bar--before {
  background: var(--border);
  width: 0;
}
.cvr-bar--after {
  background: var(--accent);
  width: 0;
}
.cvr-bar--before.animate {
  width: 20%;
}
.cvr-bar--after.animate {
  width: 100%;
}
.cvr-note {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-top: 0.25rem;
}
