/* ─────────────────────────────────────────────────────────────────────────
 * Omni Marketing page — page-specific widgets only.
 * Loaded after styles.css + _partials/marketing.css. LIGHT theme, no page.css.
 *
 * Deliberately a DIFFERENT block vocabulary from pos/accounting: a channel
 * fan-out hero, a channel showcase with live-ish previews, a journey flow
 * canvas, a segment builder, and a unified-results dashboard. Same tokens +
 * section rhythm as the rest of the site, unique mockups.
 * ─────────────────────────────────────────────────────────────── */

/* ── Hero: audience → every channel fan-out ─────────────────────── */
.fan { max-width: 760px; margin: 8px auto 0; }
.fan__src { margin: 0 auto 0; max-width: 360px; text-align: center; padding: 14px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.fan__src b { font-size: 14px; color: var(--ink); }
.fan__src span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.fan__stem { width: 2px; height: 26px; margin: 0 auto; background: linear-gradient(var(--brand), transparent); }
.fan__row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.fan__node { padding: 14px 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-align: center; position: relative; }
.fan__node::before { content: ''; position: absolute; top: -14px; left: 50%; width: 2px; height: 14px; background: var(--line-2); }
.fan__node .ico { font-size: 22px; }
.fan__node small { display: block; font-size: 12px; font-weight: 600; color: var(--ink); margin-top: 6px; }

/* ── Channel showcase (each with a tiny preview) ────────────────── */
.chan { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; max-width: 1120px; margin: 0 auto; }
.chan__card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.chan__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.chan__head { display: flex; align-items: center; gap: 9px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chan__ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 17px; background: var(--grad-soft); }
.chan__name { font-size: 14px; font-weight: 700; color: var(--ink); }
.chan__prev { padding: 14px 16px; font-size: 13px; color: var(--muted); min-height: 84px; }
/* message-bubble preview */
.bub { display: inline-block; padding: 8px 12px; border-radius: 14px; font-size: 12px; line-height: 1.4; max-width: 92%; }
.bub--wa { background: #def7e6; color: #14532d; border-bottom-left-radius: 4px; }
.bub--sms { background: var(--surface-3); color: var(--ink-2); border-bottom-left-radius: 4px; }
.eml__subj { font-weight: 700; color: var(--ink); font-size: 13px; }
.eml__from { font-size: 11px; color: var(--muted-2); margin-bottom: 6px; }
.push { display: flex; gap: 8px; align-items: flex-start; }
.push__app { width: 22px; height: 22px; border-radius: 6px; background: var(--grad); flex: none; }
.sponsored { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-2); }

/* ── Journey flow canvas ────────────────────────────────────────── */
.flow { background:
    radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 0) 0 0 / 22px 22px,
    var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.flow__node { display: flex; align-items: center; gap: 12px; max-width: 360px; margin: 0 auto; padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); }
.flow__node .ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; background: var(--grad); font-size: 15px; flex: none; }
.flow__node b { font-size: 13px; color: var(--ink); display: block; }
.flow__node span { font-size: 11px; color: var(--muted); }
.flow__link { width: 2px; height: 22px; margin: 4px auto; background: var(--line-2); }
.flow__branch { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 460px; margin: 0 auto; }
.flow__branch .flow__node { max-width: none; }
.flow__tag { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 10px; margin-bottom: 6px; }
.flow__tag--yes { background: rgba(22,143,91,.12); color: #168f5b; }
.flow__tag--no { background: rgba(192,57,43,.1); color: #c0392b; }

/* ── Segment builder ────────────────────────────────────────────── */
.seg { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-md); overflow: hidden; }
.seg__head { padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 14px; color: var(--ink); display: flex; justify-content: space-between; align-items: center; }
.seg__count { font-size: 13px; color: var(--brand); font-weight: 800; }
.seg__rules { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.seg__rule { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.seg__pill { font-size: 12px; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink-2); font-family: 'JetBrains Mono', ui-monospace, monospace; }
.seg__op { font-size: 11px; font-weight: 700; color: var(--muted-2); text-transform: uppercase; }
.seg__join { align-self: flex-start; font-size: 11px; font-weight: 700; color: var(--brand); }

/* ── Unified results dashboard ──────────────────────────────────── */
.dash { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); padding: 18px; }
.dash__row { display: grid; grid-template-columns: 130px 1fr 64px; gap: 14px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.dash__row:last-child { border-bottom: 0; }
.dash__chan { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
.dash__bar { height: 10px; border-radius: 6px; background: var(--grad); }
.dash__bar-wrap { background: var(--surface-3); border-radius: 6px; }
.dash__val { text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--muted); }

@media (max-width: 760px) {
  .fan__row { grid-template-columns: repeat(2, 1fr); }
}
