/* =============================================================
   supported-crm.css — AsterCTI Supported CRM page
   Scoped, additive layout for /supported-crm only. Reuses existing
   design tokens (--ink, --wire, --signal, --border, --shadow-*,
   --radius-*, --font-*) and existing components (.support-logo,
   .support-card-action, .btn/.btn-signal) from style.css — nothing
   here redefines a token or edits the shared theme. Every new
   selector is namespaced "sc-" so nothing collides site-wide.
============================================================= */

/* -------------------------------------------------------------
   Layout: CRM directory list (left) + shared capability panel
   (right), replacing a grid of identical repeated cards.
------------------------------------------------------------- */
.sc-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 3.5vw, 44px);
  align-items: start;
}

/* -------------------------------------------------------------
   CRM directory list
------------------------------------------------------------- */
.sc-list {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Override the plain-text-link look of .support-card-action (built
   for a card footer) so it reads as a full directory row instead. */
.sc-crm-row.support-card-action {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 16px 22px;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: none;
  text-align: left;
  color: inherit;
  transition: background 0.2s ease;
}
.sc-list .sc-crm-row.support-card-action:last-child { border-bottom: none; }
.sc-crm-row.support-card-action:hover { background: var(--cloud); }

.sc-crm-row .support-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
}
.sc-crm-row .support-logo .icon-svg { width: 1.1rem; height: 1.1rem; }

.sc-crm-row-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
  flex: 1;
}

.sc-crm-row-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--wire);
  background: rgba(61,90,254,0.1);
  border: 1px solid rgba(61,90,254,0.18);
  border-radius: 999px;
  padding: 4px 10px;
  flex-shrink: 0;
}

.sc-crm-row-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--support-color, var(--wire));
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.sc-crm-row.support-card-action:hover .sc-crm-row-cta { opacity: 1; transform: translateX(0); }
.sc-crm-row-cta .icon-svg { transition: transform 0.2s ease; }
.sc-crm-row.support-card-action:hover .sc-crm-row-cta .icon-svg { transform: translateX(3px); }

/* Custom CRM — last row, called out as the fallback entry */
.sc-crm-row--custom.support-card-action {
  background: linear-gradient(90deg, rgba(61,90,254,0.05), transparent);
  border-top: 1px dashed var(--border);
}
.sc-crm-row--custom.support-card-action:hover { background: linear-gradient(90deg, rgba(61,90,254,0.09), var(--cloud)); }

/* -------------------------------------------------------------
   Shared capability panel
------------------------------------------------------------- */
.sc-panel {
  position: sticky;
  top: 100px;
  background: var(--cloud);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 34px);
}
.sc-panel-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--ink);
  margin-bottom: 20px;
}
.sc-panel-badges {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sc-panel-badges li {
  display: flex;
  align-items: center;
  gap: 13px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink);
}
.sc-panel-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(18,199,168,0.16), rgba(61,90,254,0.16));
  color: var(--wire);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sc-panel-badge-icon .icon-svg { width: 1rem; height: 1rem; }
.sc-panel-note {
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.6;
  margin: 0 0 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.sc-panel-cta { width: 100%; justify-content: center; }

/* -------------------------------------------------------------
   Why Connect a CRM — compact two-column list instead of a
   6-card grid
------------------------------------------------------------- */
.sc-value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
  max-width: 1040px;
  margin: 0 auto;
}
.sc-value-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.sc-value-grid .sc-value-row:nth-last-child(-n+2) { border-bottom: none; }
.sc-value-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  color: var(--signal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sc-value-icon .icon-svg { width: 1.1rem; height: 1.1rem; }
.sc-value-copy strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
  display: block;
  margin-bottom: 6px;
}
.sc-value-copy p {
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.6;
  margin: 0;
}

/* =============================================================
   Responsive
============================================================= */
@media (max-width: 991.98px) {
  .sc-layout { grid-template-columns: 1fr; }
  .sc-panel { position: static; }
  .sc-value-grid { grid-template-columns: 1fr; max-width: 640px; }
  .sc-value-grid .sc-value-row:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .sc-value-grid .sc-value-row:last-child { border-bottom: none; }
}

@media (max-width: 575.98px) {
  .sc-crm-row.support-card-action { padding: 14px 16px; gap: 12px; }
  .sc-crm-row-cta { display: none; }
  .sc-crm-row-name { font-size: 0.92rem; }
}
