@import url(https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap);
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

/* Loading state */
.comparison-table__loading {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.comparison-table__spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-top-color: #60243A;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Main table container */
.comparison-table {
  width: 100%;
  padding: 20px 0;
  overflow: hidden;
  position: relative;
}

.comparison-table__wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

/* Scroll indicator - fade gradient (fixed, doesn't scroll) */
.comparison-table::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 80px;
  background: linear-gradient(to left, 
    rgba(0, 0, 0, 0.15) 0%, 
    rgba(0, 0, 0, 0.1) 25%,
    rgba(0, 0, 0, 0.05) 50%,
    rgba(0, 0, 0, 0.02) 75%,
    rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  z-index: 10;
  opacity: 1;
  transition: opacity 0.3s;
}

/* Hide fade when scrolled to end */
.comparison-table.scrolled-to-end::after {
  opacity: 0;
}

/* Scroll hint text */
.comparison-table__scroll-hint {
  display: none;
  text-align: center;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.4);
  padding: 8px 0 0 0;
  animation: fadeInOut 2s infinite;
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

.comparison-table__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 600px;
}

/* Headers */
.comparison-table__header {
  padding: 20px 16px;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-weight: 600;
  font-size: 18px;
  position: relative;
  min-height: 80px;
  vertical-align: middle;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.comparison-table__header--empty {
  width: 35%;
  position: sticky;
  left: 0;
  z-index: 3;
  border-left: none;
  border-bottom: none;
}

.comparison-table__header--highlighted {
  border-radius: 20px 20px 0 0;
  position: sticky;
  left: 35%;
  z-index: 2;
  min-width: 120px;
  border-left: none;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.comparison-table__header--first-competitor {
  padding-left: 24px;
  padding-right: 24px;
  border-left: none;
}

.comparison-table__company-name {
  display: block;
  color: #1a1a1a;
  margin-top: 3px;
  font-weight: 500;
  opacity: 0.6;
}

.comparison-table__company-name--highlighted {
  color: #E91E8C;
  font-weight: 700;
  font-size: 24px;
}

.comparison-table__company-logo {
  display: block;
  max-width: 120px;
  max-height: 50px;
  margin: 0 auto;
  object-fit: contain;
}

/* Table rows and cells */
.comparison-table__row {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.comparison-table__cell {
  padding: 20px 16px;
  text-align: center;
  vertical-align: middle;
  position: relative;
  height: 80px;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.comparison-table__cell--feature {
  text-align: left;
  font-size: 16px;
  color: #1a1a1a;
  font-weight: 400;
  width: 35%;
  position: sticky;
  left: 0;
  z-index: 3;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
  border-left: none;
}

.comparison-table__cell--feature strong,
.comparison-table__cell--feature b {
  font-weight: 600;
}

.comparison-table__cell--value {
  width: 16.25%;
  min-width: 120px;
}

.comparison-table__cell--highlighted {
  position: sticky;
  left: 35%;
  z-index: 2;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
  border-left: none;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.comparison-table__cell--first-competitor {
  padding-left: 24px;
  padding-right: 24px;
  border-left: none;
}

.comparison-table__cell--pricing-label {
  font-weight: 400;
}

/* Icons */
.comparison-table__icon {
  font-size: 24px;
  font-weight: normal;
  display: inline-block;
  font-family: system-ui, -apple-system, sans-serif;
  -webkit-text-fill-color: currentColor;
}

.comparison-table__icon--check {
  color: #4caf50 !important;
  font-weight: 600;
  -webkit-text-fill-color: #4caf50 !important;
}

.comparison-table__icon--cross {
  color: #1a1a1a;
  opacity: 0.4;
  font-weight: 300;
}

/* Pricing row */
.comparison-table__row--pricing {
  border-bottom: none;
}

.comparison-table__row--pricing .comparison-table__cell {
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  padding-top: 20px;
  padding-bottom: 20px;
}

.comparison-table__row--pricing .comparison-table__cell--highlighted {
  border-radius: 0 0 20px 20px;
}


.comparison-table__price {
  font-size: 18px;
  color: #1a1a1a;
  font-weight: 500;
}

.comparison-table__price--highlighted {
  font-size: 20px;
  color: #1a1a1a;
  font-weight: 700;
}


/* Tablet styles (up to 768px) */
@media (max-width: 768px) {
  .comparison-table__scroll-hint {
    display: block;
  }
  
  .comparison-table {
    padding: 16px 0;
  }
  
  .comparison-table__wrapper {
    padding: 0;
    margin: 0 16px;
  }
  
  .comparison-table__table {
    min-width: auto;
    width: max-content;
  }
  
  .comparison-table__header {
    padding: 12px 10px;
    font-size: 16px;
    min-height: 75px;
  }
  
  .comparison-table__header--empty {
    width: 180px;
    max-width: 180px;
  }
  
  .comparison-table__header--highlighted {
    left: 180px;
    min-width: 110px;
  }
  
  .comparison-table__company-name--highlighted {
    font-size: 20px;
  }
  
  .comparison-table__cell {
    padding: 12px 10px;
    height: 75px;
  }
  
  .comparison-table__cell--feature {
    font-size: 15px;
    width: 180px;
    max-width: 180px;
    line-height: 1.3;
  }
  
  .comparison-table__cell--highlighted {
    left: 180px;
    min-width: 110px;
  }
  
  .comparison-table__header--first-competitor {
    padding-left: 24px;
    padding-right: 24px;
  }
  
  .comparison-table__cell--first-competitor {
    padding-left: 24px;
    padding-right: 24px;
  }
  
  .comparison-table__cell--value {
    min-width: 110px;
  }
  
  .comparison-table__icon {
    font-size: 22px;
  }
  
  .comparison-table__price {
    font-size: 15px;
  }
  
  .comparison-table__price--highlighted {
    font-size: 17px;
  }
}

/* Mobile styles (actual phones) */
@media (max-width: 500px) {
  .comparison-table__scroll-hint {
    display: block;
  }
  
  .comparison-table__header {
    padding: 12px 8px;
    font-size: 14px;
    min-height: 70px;
  }
  
  .comparison-table__header {
    font-size: 12px;
  }
  
  .comparison-table__header--empty {
    width: 140px;
    max-width: 140px;
  }
  
  .comparison-table__header--highlighted {
    left: 125px;
    min-width: 75px;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  
  .comparison-table__header--first-competitor {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .comparison-table__company-name {
    font-size: 12px;
    font-weight: 500;
  }
  
  .comparison-table__company-name--highlighted {
    font-size: 16px;
  }
  
  .comparison-table__company-logo {
    max-width: 70px;
    max-height: 32px;
  }
  
  .comparison-table__cell {
    padding: 12px 6px;
    height: 70px;
  }
  
  .comparison-table__cell--feature {
    font-size: 13px;
    width: 140px;
    max-width: 140px;
    line-height: 1.3;
    padding: 12px 8px;
  }
  
  .comparison-table__cell--highlighted {
    left: 125px;
    min-width: 75px;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  
  .comparison-table__cell--first-competitor {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .comparison-table__cell--value {
    min-width: 60px;
  }
  
  .comparison-table__icon {
    font-size: 20px;
  }
  
  .comparison-table__price {
    font-size: 14px;
  }
  
  .comparison-table__price--highlighted {
    font-size: 16px;
  }
}

/* Desktop styles */
@media (min-width: 769px) {
  .comparison-table {
    padding: 40px 20px;
  }
  
  .comparison-table__wrapper {
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: visible;
  }
  
  .comparison-table__table {
    min-width: auto;
  }
  
  .comparison-table__header {
    padding: 24px 20px;
    font-size: 20px;
    min-height: 90px;
  }
  
  .comparison-table__header--empty,
  .comparison-table__header--highlighted {
    position: static;
  }
  
  .comparison-table__company-name--highlighted {
    font-size: 28px;
  }
  
  .comparison-table__cell {
    padding: 24px 20px;
    height: 90px;
  }
  
  .comparison-table__cell--feature {
    font-size: 18px;
    position: static;
    box-shadow: none;
  }
  
  .comparison-table__cell--highlighted {
    position: static;
    box-shadow: none;
  }
  
  .comparison-table__icon {
    font-size: 28px;
  }
  
  .comparison-table__price {
    font-size: 20px;
  }
  
  .comparison-table__price--highlighted {
    font-size: 24px;
  }
}


