/* ===== COMPARISON PAGE ===== */

/* Hero */
.comparison-hero {
  width: 100%;
  height: 188px;
  border-bottom: 1px solid #e2e8f0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.comparison-hero img {
  width: 100%;
  height: 188px;
  object-fit: contain;
  display: block;
}

/* Content wrapper */
.comparison-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 42px;
  padding: 48px 80px;
  width: 100%;
  box-sizing: border-box;
  direction: rtl;
}

/* Title */
#comparison-title {
  font-size: 30px;
  font-weight: 700;
  color: #002363;
  text-align: center;
  line-height: 36px;
  margin: 0;
}

/* Form */
.comparison-form {
  width: 920px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Dropdowns */
.figma-select {
  width: 100%;
  height: 52px;
  border: 1px solid #d4d4d4;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 18px;
  font-weight: 500;
  color: #8f8f8f;
  background: white;
  direction: rtl;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%23002363' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center;
  cursor: pointer;
}
.figma-select:focus { outline: none; border-color: #002f87; }

/* VS row */
.comparison-product-row {
  display: flex;
  align-items: center;
  gap: 48px;
  height: 64px;
}
.comparison-product-row .figma-select {
  flex: 1;
  height: 64px;
}
.comparison-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: #002f87;
  border-radius: 50%;
  flex-shrink: 0;
}
.comparison-vs span {
  color: white;
  font-size: 14px;
  font-weight: 700;
}

/* Table */
.comparison-table-scroll { width: 100%; overflow-x: auto; }
.comparison-table {
  display: flex;
  width: 100%;
  direction: rtl;
}

/* Labels column */
.comparison-labels {
  width: 190px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.comparison-label {
  height: 76px;
  display: flex;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 20px;
  font-weight: 700;
  color: #002363;
}
.comparison-label:last-child { border-bottom: none; }

/* Product columns */
.comparison-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.comparison-cell {
  height: 76px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 8px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 16px;
  font-weight: 500;
  color: #1a1a1a;
  text-align: center;
  box-sizing: border-box;
}
.comparison-cell:last-of-type { border-bottom: none; }

/* CTA button */
.comparison-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 322px;
  height: 52px;
  background: #002f87;
  border-radius: 99px;
  color: white;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 12px;
  padding: 8px 32px;
  box-sizing: border-box;
}
.comparison-cta:hover { background: #001f5c; color: white; }

/* Mobile */
@media (max-width: 768px) {
  .comparison-content { padding: 24px 16px; gap: 24px; }
  .comparison-form { width: 100%; }
  .comparison-hero { height: 140px; }
  .comparison-hero img { height: 140px; }
  .comparison-product-row { gap: 16px; }
  .comparison-labels { width: 120px; }
  .comparison-label { font-size: 14px; }
  .comparison-cell { font-size: 13px; padding: 12px 4px; }
  .comparison-cta { width: 100%; font-size: 16px; }
  #comparison-title { font-size: 22px; }
}

/* Step 5 — mobile swipe between product columns: scroll-snap + sticky labels.
   Columns take ~58% so the next one peeks (a built-in swipe affordance). */
@media (max-width: 767px) {
  .comparison-table-scroll {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-padding-inline-start: 124px;
  }
  .comparison-labels {
    position: sticky;
    inset-inline-start: 0;
    z-index: 2;
    width: 124px;
    background: #fff;
  }
  .comparison-label { font-size: 14px; }
  .comparison-column {
    flex: 0 0 58%;
    min-width: 58%;
    scroll-snap-align: start;
  }
  .comparison-cell { font-size: 14px; }
}
