/* ==========================================================================
   Component: hero visuals (handoff/heroes/*.html)
   The right-hand "device" illustrations for the batch-2 service-page heroes.
   One delimited block per visual — each self-contained and styled only against
   --cm-* design tokens, so any block can be lifted into its own Single
   Directory Component. Decorative: every visual wrapper is aria-hidden.

   Shared pieces first (.cm-devcard shell, status pills, SVG wrapper), then one
   section per hero. Load after tokens.css + base.css.
   ========================================================================== */

/* --- SVG illustrations (heroes 02, 06, 08) --------------------------------
   .cm-illustration--hero modifies base.css .cm-illustration: caps wider
   (520px) and lets its <text> inherit the brand font (no font is set in the
   SVG markup, so it tracks Avenir Next → Inter like the body copy). Keyed off
   the self-owned modifier, not an ancestor, to stay component-isolated. */
.cm-illustration--hero {
  max-width: 520px;
}

.cm-illustration--hero text {
  font-family: var(--cm-font);
}

/* --- Shared device-card shell (heroes 01, 03, 04, 05, 09) ------------------ */
.cm-devcard {
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--cm-hairline);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px -28px rgba(24, 32, 41, 0.26);
}

/* The fluted mosaic brand rule that caps each card. */
.cm-devcard__rule {
  height: 8px;
  background-image: repeating-linear-gradient(
      90deg,
      rgba(245, 247, 251, 0.9) 0 1px,
      transparent 1px 10px
    ),
    linear-gradient(
      90deg,
      var(--cm-red-light),
      var(--cm-red) 55%,
      var(--cm-red-press)
    );
}

.cm-devcard__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--cm-hairline);
}

.cm-devcard__kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cm-muted-2);
}

.cm-devcard__count {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--cm-ink);
  font-variant-numeric: tabular-nums;
}

.cm-devcard__flag {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--cm-red);
}

.cm-devcard__foot {
  padding: 14px 22px;
  background: var(--cm-paper);
  border-top: 1px solid var(--cm-hairline);
  font-size: 12px;
  color: var(--cm-muted);
}

/* --- Status pill (hero 01) — one shape, four states ----------------------- */
.cm-status {
  flex: none;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--cm-radius-pill);
  border: 1px solid transparent;
}

.cm-status--in {
  background: var(--cm-red);
  color: #fff;
}

.cm-status--printed {
  border-color: var(--cm-red);
  color: var(--cm-red);
}

.cm-status--reg {
  background: var(--cm-paper-2);
  color: var(--cm-muted);
}

.cm-status--invited {
  border-style: dashed;
  border-color: var(--cm-paper-3);
  color: var(--cm-muted-2);
}

/* ==========================================================================
   Hero 01 — delegate list
   ========================================================================== */
.cm-delegate-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 22px;
}

.cm-delegate-row:not(:last-child) {
  border-bottom: 1px solid var(--cm-hairline);
}

.cm-delegate-row__avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex: none;
  background: var(--cm-paper-2);
}

/* First row's avatar carries the pixel-mosaic brand treatment. */
.cm-delegate-row__avatar--lead {
  background-image: repeating-linear-gradient(
      90deg,
      rgba(245, 247, 251, 0.9) 0 1px,
      transparent 1px 8px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(245, 247, 251, 0.9) 0 1px,
      transparent 1px 8px
    ), linear-gradient(135deg, var(--cm-red-light), var(--cm-red-press));
}

.cm-delegate-row__person {
  flex: 1;
  min-width: 0;
}

.cm-delegate-row__name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cm-delegate-row__meta {
  display: block;
  font-size: 13px;
  color: var(--cm-muted-2);
}

/* ==========================================================================
   Hero 03 — hire kit (2×2)
   ========================================================================== */
.cm-hirekit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--cm-hairline);
}

.cm-hirekit__cell {
  background: #fff;
  padding: 20px;
}

.cm-hirekit__swatch {
  width: 44px;
  height: 30px;
  border-radius: 5px;
  margin-bottom: 14px;
}

.cm-hirekit__swatch--printer {
  background-image: repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.92) 0 1px,
      transparent 1px 7px
    ), linear-gradient(135deg, var(--cm-red-light), var(--cm-red-press));
}

.cm-hirekit__swatch--device {
  background: var(--cm-paper-2);
  border: 2px solid var(--cm-paper-3);
}

.cm-hirekit__swatch--stock {
  background: repeating-linear-gradient(
    0deg,
    var(--cm-paper-2) 0 6px,
    var(--cm-paper-3) 6px 7px
  );
}

.cm-hirekit__swatch--label {
  background: var(--cm-paper);
  border: 2px dashed var(--cm-paper-3);
}

.cm-hirekit__title {
  margin: 0 0 5px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cm-hirekit__note {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--cm-muted-2);
}

/* ==========================================================================
   Hero 04 — accreditation
   ========================================================================== */
.cm-accredit {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cm-accredit__step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--cm-hairline);
  border-radius: 12px;
  background: var(--cm-paper);
}

.cm-accredit__tick {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex: none;
  background: var(--cm-red);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cm-accredit__label {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
}

.cm-accredit__time {
  flex: none;
  font-size: 12px;
  color: var(--cm-muted-2);
  font-variant-numeric: tabular-nums;
}

/* Issued credential — the "statement" moment gets a navy frame. */
.cm-accredit__credential {
  display: flex;
  gap: 14px;
  padding: 16px;
  border: 2px solid var(--cm-navy);
  border-radius: 14px;
  align-items: center;
  margin-top: 4px;
}

.cm-accredit__photo {
  width: 66px;
  height: 80px;
  border-radius: 8px;
  flex: none;
  background-image: repeating-linear-gradient(
      90deg,
      rgba(245, 247, 251, 0.85) 0 1px,
      transparent 1px 9px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(245, 247, 251, 0.85) 0 1px,
      transparent 1px 9px
    ), linear-gradient(150deg, var(--cm-red-light), var(--cm-red-press));
}

.cm-accredit__body {
  flex: 1;
  min-width: 0;
}

.cm-accredit__cap {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cm-muted-2);
  margin-bottom: 5px;
}

.cm-accredit__name {
  display: block;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.cm-accredit__role {
  display: block;
  font-size: 13px;
  color: var(--cm-muted);
  margin-bottom: 9px;
}

.cm-accredit__barcode {
  display: block;
  width: 120px;
  height: 22px;
  background: repeating-linear-gradient(
    90deg,
    var(--cm-ink) 0 2px,
    transparent 2px 4px,
    var(--cm-ink) 4px 5px,
    transparent 5px 8px
  );
}

.cm-accredit__pending {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px dashed var(--cm-paper-3);
  border-radius: 12px;
}

.cm-accredit__ring {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex: none;
  border: 2px solid var(--cm-red);
}

.cm-accredit__pending-label {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--cm-muted);
}

/* ==========================================================================
   Hero 05 — scanner dashboard  (no card head; rule → top → grid → foot)
   ========================================================================== */
.cm-scandash__top {
  padding: 26px 22px 22px;
  display: flex;
  gap: 22px;
  align-items: center;
  border-bottom: 1px solid var(--cm-hairline);
}

.cm-scandash__device {
  width: 104px;
  flex: none;
  border: 2px solid var(--cm-navy);
  border-radius: 14px;
  padding: 12px 10px;
  background: var(--cm-paper);
}

.cm-scandash__screen {
  height: 34px;
  border-radius: 6px;
  margin-bottom: 10px;
  background-image: repeating-linear-gradient(
      90deg,
      rgba(245, 247, 251, 0.9) 0 1px,
      transparent 1px 8px
    ), linear-gradient(135deg, var(--cm-red-light), var(--cm-red-press));
}

.cm-scandash__line {
  height: 8px;
  border-radius: 4px;
  background: var(--cm-paper-3);
  margin-bottom: 6px;
}

.cm-scandash__line--short {
  width: 60%;
  margin-bottom: 12px;
}

.cm-scandash__trigger {
  height: 26px;
  border-radius: 6px;
  background: var(--cm-navy);
}

.cm-scandash__readout {
  flex: 1;
  min-width: 0;
}

.cm-scandash__label {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cm-muted-2);
}

.cm-scandash__total {
  margin: 0 0 14px;
  font-size: 44px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.cm-scandash__barcode {
  height: 30px;
  background: repeating-linear-gradient(
    90deg,
    var(--cm-ink) 0 2px,
    transparent 2px 5px,
    var(--cm-ink) 5px 7px,
    transparent 7px 9px,
    var(--cm-ink) 9px 10px,
    transparent 10px 14px
  );
}

.cm-scandash__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--cm-hairline);
}

.cm-scandash__cell {
  background: #fff;
  padding: 16px 20px;
}

.cm-scandash__cell-title {
  margin: 0 0 3px;
  font-size: 13px;
  font-weight: 600;
}

.cm-scandash__cell-value {
  margin: 0;
  font-size: 13px;
  color: var(--cm-muted-2);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Hero 07 — Eventfull lead phone
   ========================================================================== */
.cm-leadphone {
  width: 300px;
  max-width: 100%;
  margin-inline: auto;
  border: 3px solid var(--cm-navy);
  border-radius: 38px;
  padding: 11px;
  background: var(--cm-navy);
  box-shadow: 0 22px 44px -30px rgba(24, 32, 41, 0.42);
}

.cm-leadphone__screen {
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
}

.cm-leadphone__status {
  height: 34px;
  background: var(--cm-paper);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cm-leadphone__notch {
  width: 76px;
  height: 6px;
  border-radius: 3px;
  background: var(--cm-paper-3);
}

.cm-leadphone__rule {
  height: 6px;
  background-image: repeating-linear-gradient(
      90deg,
      rgba(245, 247, 251, 0.9) 0 1px,
      transparent 1px 9px
    ), linear-gradient(90deg, var(--cm-red-light), var(--cm-red-press));
}

.cm-leadphone__head {
  padding: 18px 18px 8px;
}

.cm-leadphone__cap {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cm-muted-2);
}

.cm-leadphone__name {
  margin: 0 0 2px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cm-leadphone__org {
  margin: 0;
  font-size: 13px;
  color: var(--cm-muted);
}

.cm-leadphone__body {
  padding: 12px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cm-leadphone__field {
  border: 1px solid var(--cm-hairline);
  border-radius: 10px;
  padding: 11px 13px;
}

.cm-leadphone__field-label {
  margin: 0 0 7px;
  font-size: 11px;
  font-weight: 600;
  color: var(--cm-muted-2);
}

.cm-leadphone__chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cm-leadphone__chip {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--cm-radius-pill);
  background: var(--cm-paper-2);
  color: var(--cm-muted);
}

.cm-leadphone__chip--on {
  background: var(--cm-red);
  color: #fff;
}

.cm-leadphone__rating {
  display: flex;
  gap: 5px;
}

.cm-leadphone__pip {
  width: 15px;
  height: 15px;
  border-radius: 3px;
  background: var(--cm-paper-2);
}

.cm-leadphone__pip--on {
  background: var(--cm-red);
}

.cm-leadphone__note {
  border: 1px dashed var(--cm-paper-3);
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 12px;
  color: var(--cm-muted-2);
}

.cm-leadphone__foot {
  padding: 12px 18px;
  background: var(--cm-paper);
  border-top: 1px solid var(--cm-hairline);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--cm-muted);
}

/* ==========================================================================
   Hero 09 — live event-data dashboard
   ========================================================================== */
.cm-livedash__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--cm-hairline);
}

.cm-livedash__stat {
  background: #fff;
  padding: 20px 18px;
}

.cm-livedash__stat-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cm-muted-2);
}

.cm-livedash__stat-value {
  margin: 0;
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.cm-livedash__chart {
  padding: 22px;
  border-top: 1px solid var(--cm-hairline);
}

.cm-livedash__chart-label {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cm-muted-2);
}

.cm-livedash__bars {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 96px;
}

/* Bar height is data — set per instance with an inline height percentage. */
.cm-livedash__bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: var(--cm-paper-2);
}

.cm-livedash__bar--rise {
  background-image: repeating-linear-gradient(
    0deg,
    rgba(245, 247, 251, 0.9) 0 1px,
    transparent 1px 8px
  );
  background-color: var(--cm-red-light);
}

.cm-livedash__bar--peak {
  background-image: repeating-linear-gradient(
    0deg,
    rgba(245, 247, 251, 0.9) 0 1px,
    transparent 1px 8px
  );
  background-color: var(--cm-red);
}

/* ==========================================================================
   Contact-us hero — contact channels list
   ========================================================================== */
.cm-contact-channels__row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 22px;
  color: inherit;
  text-decoration: none;
  transition: background var(--cm-dur) var(--cm-ease);
}

.cm-contact-channels__row:not(:last-child) {
  border-bottom: 1px solid var(--cm-hairline);
}

.cm-contact-channels__row:hover {
  background: var(--cm-paper-2);
}

.cm-contact-channels__row:hover .cm-contact-channels__title {
  color: var(--cm-red);
}

.cm-contact-channels__icon {
  flex: none;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--cm-paper-2);
  color: var(--cm-red);
  font-size: 14px;
  margin-top: 2px;
}

.cm-contact-channels__title {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cm-contact-channels__note {
  margin: 0;
  font-size: 13px;
  color: var(--cm-muted-2);
}

.cm-livedash__axis {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  font-size: 11px;
  color: var(--cm-muted-2);
  font-variant-numeric: tabular-nums;
}
