/* Backbone Compare — comparison matrix + callouts */

.backbone-compare-callout {
  border: 1px solid rgba(147, 157, 184, 0.14);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(23, 25, 38, 0.92) 0%, rgba(15, 16, 26, 0.96) 100%);
  padding: 1.25rem 1.35rem;
}

@media (min-width: 768px) {
  .backbone-compare-callout {
    padding: 1.5rem 1.75rem;
  }
}

.backbone-compare-callout__eyebrow {
  font-size: 12px;
  line-height: 100%;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #98a4f7;
  font-weight: 600;
}

.backbone-compare-callout__title {
  margin-top: 0.5rem;
  color: #fff;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 130%;
}

.backbone-compare-callout__body {
  margin-top: 0.65rem;
  color: #d4d4d4;
  line-height: 160%;
}

.backbone-compare-table-wrap {
  margin-top: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(147, 157, 184, 0.12);
  border-radius: 16px;
  background-color: #0f101a;
  scroll-behavior: smooth;
}

.backbone-compare-matrix {
  position: relative;
}

.backbone-compare-nav-btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(147, 157, 184, 0.2);
  background-color: #171926;
  transition: background-color 0.15s ease, opacity 0.15s ease;
  cursor: pointer;
}

.backbone-compare-nav-btn:hover:not(:disabled) {
  background-color: #222330;
}

.backbone-compare-nav-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.backbone-compare-fade {
  position: absolute;
  top: 1px;
  bottom: 1px;
  width: 88px;
  border: 0;
  padding: 0;
  z-index: 4;
  cursor: pointer;
}

.backbone-compare-fade--right {
  right: 1px;
  border-radius: 0 15px 15px 0;
  background: linear-gradient(
    to left,
    #0b0c14 12%,
    rgba(11, 12, 20, 0.72) 42%,
    rgba(11, 12, 20, 0) 100%
  );
}

.backbone-compare-fade[hidden] {
  display: none;
}

.backbone-compare-fade:disabled {
  cursor: default;
}

.backbone-compare-table {
  --backbone-compare-col-capability: 170px;
  --backbone-compare-col-backbone: 220px;
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
  line-height: 145%;
}

.backbone-compare-table th,
.backbone-compare-table td {
  padding: 0.9rem 1rem;
  vertical-align: top;
  border-bottom: 1px solid rgba(147, 157, 184, 0.1);
  border-right: 1px solid rgba(147, 157, 184, 0.08);
  max-width: 220px;
}

.backbone-compare-table th:last-child,
.backbone-compare-table td:last-child {
  border-right: 0;
}

.backbone-compare-table thead th {
  background-color: #171824;
  color: #fff;
  font-weight: 600;
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 2;
}

/* Col 1: Capability - always stuck to the left edge */
.backbone-compare-table thead th:first-child,
.backbone-compare-table tbody th {
  position: sticky;
  left: 0;
  z-index: 3;
  width: var(--backbone-compare-col-capability);
  min-width: var(--backbone-compare-col-capability);
  max-width: var(--backbone-compare-col-capability);
  background-color: #0f101a;
  color: #c9d3ee;
  font-weight: 500;
  text-align: left;
}

.backbone-compare-table thead th:first-child {
  z-index: 5;
  background-color: #171824;
  color: #fff;
  font-weight: 600;
}

/* Col 2: Backbone - stuck beside Capability so it stays visible while scrolling */
.backbone-compare-table thead th.is-backbone,
.backbone-compare-table tbody td.is-backbone {
  position: sticky;
  left: var(--backbone-compare-col-capability);
  z-index: 3;
  width: var(--backbone-compare-col-backbone);
  min-width: var(--backbone-compare-col-backbone);
  max-width: var(--backbone-compare-col-backbone);
  box-shadow: 6px 0 12px -8px rgba(0, 0, 0, 0.55);
}

.backbone-compare-table thead th.is-backbone {
  z-index: 5;
  color: #fff;
  font-weight: 600;
  background-color: #252a48;
}

.backbone-compare-table tbody td.is-backbone {
  background-color: #161937;
  color: #e8ecff;
  font-weight: 500;
}

.backbone-compare-table .is-backbone {
  color: #e8ecff;
  font-weight: 500;
}

.backbone-compare-table tbody tr:last-child th,
.backbone-compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.backbone-compare-table td {
  color: #a3a3a3;
}

.backbone-compare-card {
  border: 1px solid rgba(147, 157, 184, 0.12);
  border-radius: 14px;
  background-color: #0f101a;
  padding: 1.15rem 1.2rem;
}

.backbone-compare-card h3 {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  line-height: 130%;
}

.backbone-compare-card p,
.backbone-compare-card li {
  color: #d4d4d4;
  font-size: 0.9375rem;
  line-height: 155%;
}

.backbone-compare-card__tag {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 11px;
  line-height: 100%;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #98a4f7;
  font-weight: 600;
}

.backbone-compare-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 768px) {
  .backbone-compare-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 1100px) {
  .backbone-compare-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.backbone-compare-tco {
  border: 1px solid rgba(147, 157, 184, 0.12);
  border-radius: 16px;
  overflow: hidden;
  background-color: #0f101a;
}

.backbone-compare-tco table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 145%;
}

.backbone-compare-tco th,
.backbone-compare-tco td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(147, 157, 184, 0.1);
  vertical-align: top;
}

.backbone-compare-tco thead th {
  background-color: rgba(23, 24, 36, 0.9);
  color: #fff;
  font-weight: 600;
}

.backbone-compare-tco tbody th {
  color: #c9d3ee;
  font-weight: 500;
  width: 28%;
}

.backbone-compare-tco td {
  color: #a3a3a3;
}

.backbone-compare-tco td.is-backbone {
  color: #e8ecff;
  background: rgba(91, 99, 211, 0.08);
}

.backbone-compare-tco tr:last-child th,
.backbone-compare-tco tr:last-child td {
  border-bottom: 0;
}

.backbone-compare-link {
  color: #c9d3ee;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(201, 211, 238, 0.2);
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}

.backbone-compare-link:hover {
  color: #fff;
  text-decoration-color: rgba(201, 211, 238, 1);
}

.backbone-compare-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.backbone-compare-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(147, 157, 184, 0.2);
  border-radius: 999px;
  background-color: #171926;
  color: #c9d3ee;
  font-size: 12px;
  line-height: 100%;
  padding: 0.45rem 0.75rem;
}

.backbone-compare-section-lead {
  color: #d4d4d4;
  line-height: 160%;
  max-width: 720px;
}

.backbone-compare-narrative {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}
