/* ==========================================================================
   Component: scan diagram (.cm-scan)
   Static illustration for the lead-retrieval hero: a badge → a scan arrow →
   a handheld "leads" device. Decorative (the wrapper is aria-hidden). Accents
   are navy, not red — red stays reserved for actions (the One-Signal rule).
   ========================================================================== */

.cm-scan {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
}

/* --- Scanned badge -------------------------------------------------------- */
.cm-scan__badge {
  width: 150px;
  flex: none;
  background: #fff;
  border: 2.5px solid var(--cm-ink);
  border-radius: var(--cm-radius-insert);
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.cm-scan__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cm-paper-2);
  border: 2px solid var(--cm-ink);
}

.cm-scan__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--cm-ink);
  text-align: center;
}

.cm-scan__company {
  font-size: 10.5px;
  color: var(--cm-muted);
  text-align: center;
}

.cm-scan__qr {
  width: 58px;
  height: 58px;
}

/* --- Scan arrow ----------------------------------------------------------- */
.cm-scan__arrow {
  flex: none;
  overflow: visible;
}

/* --- Handheld "leads" device ---------------------------------------------- */
.cm-scan__device {
  width: 150px;
  flex: none;
  background: #fff;
  border: 2.5px solid var(--cm-ink);
  border-radius: 18px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.cm-scan__grip {
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: var(--cm-ink);
  margin: 0 auto;
}

.cm-scan__device-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cm-scan__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cm-muted-2);
}

.cm-scan__count {
  font-size: 13px;
  font-weight: 700;
  color: var(--cm-navy);
}

.cm-scan__check {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--cm-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2px auto;
}

.cm-scan__lead {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1.5px solid var(--cm-hairline);
  border-radius: 9px;
  padding: 7px 8px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--cm-ink);
}

.cm-scan__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cm-navy);
  flex: none;
}

/* Shrink to fit the narrowest phones without horizontal overflow. */
@media (max-width: 480px) {
  .cm-scan {
    gap: 10px;
    padding: 8px 0;
  }

  .cm-scan__badge,
  .cm-scan__device {
    width: 128px;
  }

  .cm-scan__arrow {
    width: 30px;
  }
}
