/* Cortex ERP — Integrations page (Stage 3) */

#cbs-integration {
  scroll-margin-top: calc(var(--nd-header-height, 72px) + 24px);
}

.nd-cx-integ-hub {
  position: relative;
  margin: 32px auto 0;
  max-width: 720px;
  padding: 24px;
}

.nd-cx-integ-hub__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.nd-cx-integ-hub__node {
  padding: 14px 12px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--nd-heading);
  background: var(--nd-white);
  border: 1px solid var(--nd-border);
  border-radius: var(--nd-radius);
  box-shadow: var(--nd-shadow);
}

.nd-cx-integ-hub__node--muted {
  font-weight: 500;
  color: var(--nd-body);
  background: var(--nd-surface-soft, #f4f6f8);
}

.nd-cx-integ-hub__node--core {
  grid-column: 2;
  grid-row: 2;
  padding: 20px 16px;
  font-size: 0.95rem;
  color: var(--nd-white);
  background: var(--nd-navy);
  border-color: var(--nd-navy);
}

.nd-cx-integ-hub__node--accent {
  border-color: rgba(34, 109, 180, 0.4);
  background: rgba(34, 109, 180, 0.07);
}

.nd-cx-integ-hub__caption {
  margin: 20px 0 0;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--nd-muted);
}

@media (max-width: 640px) {
  .nd-cx-integ-hub__grid {
    grid-template-columns: 1fr 1fr;
  }

  .nd-cx-integ-hub__node--core {
    grid-column: 1 / -1;
    grid-row: auto;
    order: -1;
  }
}

.nd-cx-integ-steps {
  counter-reset: integ-step;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.nd-cx-integ-steps li {
  counter-increment: integ-step;
  position: relative;
  padding: 0 0 20px 2.75rem;
  line-height: 1.55;
  color: var(--nd-body);
}

.nd-cx-integ-steps li::before {
  content: counter(integ-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--nd-accent-trust);
  background: rgba(34, 109, 180, 0.1);
  border-radius: 50%;
  border: 1px solid rgba(34, 109, 180, 0.25);
}

.nd-cx-integ-steps li:last-child {
  padding-bottom: 0;
}