.compare {
  padding: 110px 0;
}

.compare__header {
  text-align: center;
  max-width: 1125px;
  margin: 0 auto 44px;
}

.compare__title {
  margin: 0 0 14px;
  line-height: 1.12;
  margin-bottom: 30px;
}

.compare__title em {
  font-style: italic;
}

.compare__subtitle {
  margin: 0 auto;
  max-width: 980px;
}

/* Wrapper to enable horizontal scrolling when necessary */
.compare__tableWrap {
  margin: 0 auto 48px auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media(min-width:769px) {
    .compare__tableWrap {
       width: 1125px;
    }
}

/* Table base (whiout background) */
.compare__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 860px; /* provides structure on the desktop; on mobile, it turns into cards */
    background: url(../images/bg-price-top.webp) no-repeat center top;
    background-size: 100%;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.compare__table th,
.compare__table td {
  vertical-align: middle;
  border-bottom: 1px solid rgba(255,255,255,0.08); /* optional */
}
.compare__table th {
  padding: 22px 40px;
}
.compare__table td {
  padding: 22px 60px;
}

.compare__table thead th {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-top: 40px;
  padding-bottom: 40px;
}
.compare__table thead th:first-child { 
    text-align: left;
}

.compare__table tbody th[scope="row"] {
  text-align: left;
  width: 34%;
}

.compare__table td {
  text-align: center;
}

/* Yes/no icons without images */
.cmp {
  display: inline-block;
  width: 22px;
  height: 22px;
  position: relative;
}

.cmp--yes::before {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--green);
}

.cmp--no::before {
  content: "✕";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #D95056;
}

.cmp-text {
  display: inline-block;
}

.cmp-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}

/* Price line */
.compare__priceRow th,
.compare__priceRow td {
  padding-top: 26px;
  padding-bottom: 26px;
}

.compare__priceRow td strong {
    font-size: 1.5rem;
    font-weight: 670;
    padding: 6px 20px;
    border-radius: 100px;
    color: #d85056
}

.compare__priceRow td strong.pixelclub {
    border: 1px solid var(--green) !important;
    color: var(--text-primary) !important;
}




/* =========================
   MOBILE: turns into “cards”
   Each TR turns into a block
   ========================= */
@media (max-width: 820px) {
  .compare {
    padding: 0;
  }
    .compare__table {
        border: 0 !important;
    }
  .compare__tableWrap {
    overflow: visible; /* no need to scroll, turn cards */
  }

  .compare__table {
    min-width: 0;
    border-collapse: collapse;
  }

  .compare__table thead {
    display: none;
  }

  .compare__table,
  .compare__table tbody,
  .compare__table tr,
  .compare__table th,
  .compare__table td {
    display: block;
    width: 100%;
  }

  .compare__table tr {
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
  }

  .compare__table tbody th[scope="row"] {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.10);
  }

  .compare__table td {
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .compare__table td::before {
    content: attr(data-label);
    opacity: 0.8;
  }

  .compare__priceRow td strong {
    font-size: 1.05rem;
  }
}


