/* BeFit upgrade comparison — readable table (replaces bento cards) */

.features-compare {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0;
}

#blueprint .features-compare {
  max-width: 72rem;
}

.features-compare__header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .features-compare__header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
  }
}

.features-compare__headline {
  max-width: 36rem;
}

.features-compare__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
}

.features-compare__subtitle {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #94a3b8;
}

.features-compare__picker-wrap {
  flex-shrink: 0;
}

.features-compare__picker-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
}

.features-compare__select {
  min-width: min(100%, 220px);
  padding: 0.55rem 2rem 0.55rem 0.85rem;
  border-radius: 0.65rem;
  border: 1px solid #334155;
  background: #1e293b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 6l3.5 3.5L11.5 6'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
  color: #e2e8f0;
  font-size: 0.8rem;
  font-weight: 600;
  appearance: none;
  cursor: pointer;
}

.features-compare__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, #151d2a 0%, #111827 100%);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.55);
}

.compare-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.82rem;
  line-height: 1.45;
}

.compare-table caption.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.compare-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  background: #1a2433;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.compare-table__th-befit {
  color: #93c5fd !important;
  min-width: 11rem;
}

.compare-table__th-other {
  min-width: 10rem;
}

.compare-table tbody tr {
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.compare-table tbody tr:last-child {
  border-bottom: none;
}

.compare-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.compare-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.06);
}

.compare-table__feature {
  padding: 0.9rem 1rem;
  vertical-align: top;
  font-weight: 600;
  color: #e2e8f0;
  min-width: 9.5rem;
  white-space: normal;
}

.compare-table__emoji {
  display: inline-block;
  vertical-align: top;
  font-size: 1.35rem;
  line-height: 1.2;
  margin-right: 0.5rem;
}

.compare-table__feature-text {
  display: inline-block;
  vertical-align: top;
  max-width: calc(100% - 2.25rem);
}

.compare-table__feature-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f1f5f9;
}

.compare-table__feature-hint {
  font-size: 0.68rem;
  font-weight: 500;
  color: #64748b;
  letter-spacing: 0.01em;
}

.compare-table__cell {
  padding: 0.9rem 1rem;
  vertical-align: top;
  color: #cbd5e1;
}

.compare-table__cell--yes {
  color: #e2e8f0;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.06);
}

.compare-table__cell--yes::before {
  content: "✓ ";
  color: #38bdf8;
  font-weight: 800;
}

.compare-table__cell--muted {
  color: #94a3b8;
  font-weight: 500;
}

.compare-table__cell--muted::before {
  content: "— ";
  color: #475569;
  font-weight: 700;
}

@media (max-width: 639px) {
  .compare-table {
    min-width: 32rem;
    font-size: 0.78rem;
  }

  .compare-table thead th,
  .compare-table__feature,
  .compare-table__cell {
    padding: 0.75rem 0.65rem;
  }

  .compare-table__emoji {
    font-size: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .compare-table tbody tr {
    transition: none;
  }
}
