
/* B2B product analytics figures. This article-local stylesheet loads after resources.css.
   HTML rebuild of account-centric-product-analytics-model.svg,
   same-activity-different-account-reality.svg and signal-to-evidence-workflow.svg. */

.bp-model,
.bp-dist,
.bp-flowfig {
  margin: 38px 0;
  padding: 32px 36px 30px;
  border: 1px solid #dfe6ef;
  border-radius: 18px;
  background: #f7f9fc;
  color: #071b3a;
}

.bp-model { margin: 0 auto 8px; }

p.bp-eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.3;
  color: #5a6b85;
}

.bp-eyebrow--dark { color: #8fb0e0; }
.bp-eyebrow--green { color: #207a43; }
.bp-eyebrow--red { color: #c2452f; }

h3.bp-h {
  margin: 8px 0 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #071b3a;
}

p.bp-sub {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.45;
  color: #5a6b85;
  text-wrap: pretty;
}

p.bp-close {
  margin: 22px 0 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: #5a6b85;
  text-wrap: pretty;
}

/* ---------- Figure 1: account-centric model ---------- */

.bp-model__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px 314px;
  align-items: stretch;
  margin-top: 26px;
}

.bp-account {
  display: flex;
  flex-direction: column;
  padding: 26px 28px 22px;
  border: 1.5px solid #d5dfec;
  border-radius: 20px;
  background: #eef2f8;
}

.bp-account__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

p.bp-account__name {
  margin: 6px 0 0;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: #071b3a;
}

p.bp-account__plan {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
  color: #63748e;
}

.bp-user {
  display: grid;
  grid-template-columns: 38px minmax(150px, 202px) minmax(0, 1fr);
  align-items: center;
  gap: 0 20px;
  margin-bottom: 12px;
  padding: 16px 22px 16px 18px;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
}

.bp-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
}

.bp-avatar--blue { background: #eaf1fe; color: #2459b8; }
.bp-avatar--green { background: #e6f6ec; color: #207a43; }
.bp-avatar--amber { background: #fdf2dc; color: #8a6218; }

p.bp-user__name {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  color: #122c52;
}

.bp-user__share {
  font-size: 14px;
  font-weight: 700;
  color: #63748e;
}

.bp-user__share--hot { color: #c2452f; }

p.bp-user__role {
  margin: 5px 0 9px;
  font-size: 14px;
  line-height: 1.2;
  color: #63748e;
}

.bp-bar {
  display: block;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #eef1f6;
  overflow: hidden;
}

.bp-bar__fill {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: #8098bb;
}

.bp-bar__fill--hot { background: #ef6a5a; }
.bp-bar__fill--green { background: #39b56a; }
.bp-bar__fill--amber { background: #f5b84b; }

.bp-visits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-left: 20px;
  border-left: 1.5px solid #eef1f6;
}

.bp-visit {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 15px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #f4f7fb;
}

.bp-dot {
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex: none;
}

.bp-dot--b { background: #2f6df6; }
.bp-dot--g { background: #39b56a; }
.bp-dot--a { background: #f5b84b; }

p.bp-account__note {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: #63748e;
  text-wrap: pretty;
}

.bp-flow {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 128px 0 96px;
  font-size: 22px;
  line-height: 1;
  color: #a6b6cc;
  text-align: center;
}

.bp-rollup {
  display: flex;
  flex-direction: column;
  padding: 26px 28px;
  border-radius: 20px;
  background: #071b3a;
}

.bp-rollup .bp-eyebrow--dark { padding-bottom: 16px; border-bottom: 1.5px solid #26405f; }

.bp-metric { margin-top: 20px; }

p.bp-metric__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: #eaf1fb;
}

.bp-metric__row b {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
}

.bp-metric__val--hot { color: #ff9d8f; }

.bp-dbar {
  display: block;
  width: 100%;
  height: 5px;
  border-radius: 2.5px;
  background: #1d3454;
  overflow: hidden;
}

.bp-dbar__fill { display: block; height: 100%; border-radius: 2.5px; }
.bp-dbar__fill--blue { background: #6fa0ff; }
.bp-dbar__fill--hot { background: #ef6a5a; }
.bp-dbar__fill--green { background: #5ecb8c; }

.bp-pips { display: flex; gap: 6px; }

.bp-pip {
  flex: 1;
  height: 10px;
  border-radius: 5px;
  background: #1d3454;
}

.bp-pip--on { background: #5ecb8c; }

p.bp-metric__note {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.35;
  color: #9db4d8;
}

p.bp-rollup__foot {
  margin: auto 0 0;
  padding-top: 18px;
  border-top: 1.5px solid #26405f;
  font-size: 14px;
  line-height: 1.35;
  color: #9db4d8;
}

.bp-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 34px;
  margin-top: 26px;
}

.bp-key {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: #5a6b85;
}

.bp-legend__count {
  font-size: 14px;
  color: #63748e;
}

/* ---------- Figure 2: distribution ---------- */

.bp-dist__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 26px;
}

.bp-panel {
  padding: 26px 28px 24px;
  border: 1.5px solid #dfe6ef;
  border-radius: 18px;
  background: #fff;
}

p.bp-panel__title {
  margin: 8px 0 0;
  min-height: 2.4em;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #071b3a;
}

.bp-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 18px;
  padding-bottom: 18px;
  border-bottom: 1.5px solid #eef1f6;
}

.bp-stat b {
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
  color: #071b3a;
}

.bp-stat--hot { color: #c2452f; }

.bp-stat span {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.25;
  color: #5a6b85;
}

p.bp-plot__label {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.3;
  color: #63748e;
}

.bp-plot {
  position: relative;
  height: 240px;
  padding-right: 26px;
}

.bp-grid {
  position: absolute;
  inset: 0 26px 0 0;
}

.bp-grid__line {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px solid #e7ecf3;
}

.bp-grid__line em {
  position: absolute;
  left: 100%;
  top: -8px;
  padding-left: 6px;
  font-style: normal;
  font-size: 12px;
  line-height: 1.3;
  color: #63748e;
}

.bp-bars {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 13px;
  height: 100%;
  border-bottom: 1.5px solid #c3cede;
}

.bp-bars i {
  flex: 1;
  min-width: 0;
  border-radius: 4px 4px 0 0;
  background: #5589f5;
}

.bp-bars i.bp-bars--hot { background: #ef6a5a; }

p.bp-plot__note {
  position: absolute;
  top: 12px;
  left: 46px;
  right: 26px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: #207a43;
}

p.bp-plot__note--hot { color: #c2452f; }
.bp-plot__note--inset { left: 62px; }

.bp-plot__note em {
  display: block;
  margin-top: 5px;
  font-style: normal;
  font-weight: 400;
  color: #63748e;
}

.bp-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-top: 12px;
  padding-right: 26px;
}

.bp-brace {
  display: block;
  height: 8px;
  border: 1.5px solid #c3cede;
  border-top: 0;
}

.bp-group p {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: #4b5b76;
  text-align: center;
}

.bp-group em {
  display: block;
  margin-top: 5px;
  font-style: normal;
  font-size: 12px;
  font-weight: 400;
  color: #5a6b85;
}

.bp-group--hot p,
.bp-group--hot em { color: #c2452f; }

/* ---------- Figure 3: signal to evidence ---------- */

.bp-steps {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-top: 26px;
}

.bp-steps__arrow {
  display: flex;
  align-items: center;
  font-size: 19px;
  line-height: 1;
  color: #b9c6d8;
}

.bp-card {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 24px 22px 22px;
  border: 1.5px solid #dfe6ef;
  border-top: 4px solid #2f6df6;
  border-radius: 16px;
  background: #fff;
}

.bp-card--green { border-top-color: #39b56a; }
.bp-card--amber { border-top-color: #f5b84b; }
.bp-card--red { border-top-color: #ef6a5a; }

.bp-card--dark {
  border-color: #071b3a;
  border-top-color: #9cc0ff;
  background: #071b3a;
}

p.bp-card__title {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: #071b3a;
}

.bp-card--dark p.bp-card__title { color: #fff; }

.bp-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  padding: 18px 0 14px;
}

p.bp-card__note {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: #63748e;
  text-wrap: pretty;
}

.bp-card--dark p.bp-card__note { color: #9db4d8; }

p.bp-card__note--tight { margin-top: 12px; }

p.bp-card__stat {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  color: #c2452f;
}

.bp-spark {
  display: block;
  width: 100%;
  height: 62px;
  overflow: visible;
}

.bp-mini {
  padding: 14px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #f2f5fa;
}

.bp-mini p {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  color: #071b3a;
}

.bp-mini .bp-bar { height: 5px; }

.bp-shares p {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 12.5px;
  line-height: 1.3;
  color: #63748e;
}

.bp-shares p:last-child { margin-bottom: 0; }
.bp-shares .bp-bar { height: 8px; border-radius: 4px; }
.bp-shares .bp-bar__fill { border-radius: 4px; }

.bp-tracks {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.bp-track {
  position: relative;
  display: block;
  height: 6px;
  border-radius: 3px;
  background: #e7ecf3;
}

.bp-track b {
  position: absolute;
  top: 0;
  height: 6px;
  min-width: 5px;
  border-radius: 3px;
}

.bp-seg--b { background: #2f6df6; }
.bp-seg--g { background: #39b56a; }
.bp-seg--r { background: #ef6a5a; }

p.bp-action {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
  color: #fff;
}

.bp-check {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #9cc0ff;
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  color: #071b3a;
}

/* ---------- Narrow ---------- */

@media (max-width: 1180px) {
  .bp-model,
  .bp-dist,
  .bp-flowfig { padding: 26px 22px 24px; }

  .bp-model__grid { grid-template-columns: minmax(0, 1fr) 44px 272px; }
  .bp-account { padding: 20px 20px 18px; }
  .bp-user {
    grid-template-columns: 38px minmax(130px, 170px) minmax(0, 1fr);
    gap: 0 14px;
    padding: 14px 16px;
  }
  .bp-visits { gap: 8px; padding-left: 14px; }
  .bp-visit { gap: 6px; padding: 9px 11px; }
  .bp-dot { width: 10px; height: 10px; }
  .bp-rollup { padding: 20px 20px; }

  .bp-dist__grid { gap: 20px; }
  .bp-panel { padding: 20px 20px 18px; }
  .bp-bars { gap: 8px; }
  .bp-groups { gap: 8px; }
  .bp-plot, .bp-groups { padding-right: 22px; }
  .bp-grid { right: 22px; }

  .bp-steps { gap: 8px; }
  .bp-card { padding: 20px 16px 18px; }
  p.bp-card__title { font-size: 16px; }
  p.bp-action { gap: 10px; font-size: 13px; }
  .bp-check { width: 26px; height: 26px; font-size: 13px; }
  .bp-shares p { grid-template-columns: 44px minmax(0, 1fr); gap: 8px; }
}

@media (max-width: 900px) {
  .bp-model__grid { grid-template-columns: minmax(0, 1fr); }

  .bp-flow {
    flex-direction: row;
    justify-content: center;
    gap: 40px;
    padding: 14px 0;
  }

  .bp-flow__arrow--up { transform: rotate(90deg); }
  .bp-flow__arrow--down { transform: rotate(90deg); }

  .bp-rollup__foot { margin-top: 20px; }

  .bp-dist__grid { grid-template-columns: minmax(0, 1fr); }

  .bp-steps { flex-wrap: wrap; }
  .bp-card { flex: 1 1 260px; }
  .bp-steps__arrow { display: none; }
}

@media (max-width: 620px) {
  h3.bp-h { font-size: 22px; }

  .bp-user {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px 14px;
  }

  .bp-visits {
    grid-column: 1 / -1;
    padding-left: 0;
    padding-top: 14px;
    border-left: 0;
    border-top: 1.5px solid #eef1f6;
  }

  .bp-account__head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .bp-plot { height: 200px; }
  .bp-bars { gap: 5px; }
  .bp-groups { gap: 5px; }
}
