/* Compare table (Free vs. Pro) */
.compare {
  padding: var(--space-7) var(--space-4);
}
.compare-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.compare-heading {
  margin: 0;
  font-size: var(--font-size-h2);
  line-height: 1.15;
}
.compare-subhead {
  max-width: 480px;
  margin: var(--space-3) auto 0;
  color: var(--color-text-secondary);
  font-size: var(--font-size-body);
  line-height: 1.5;
}

.compare-table-wrap {
  margin: var(--space-6) auto 0;
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.compare-table thead th {
  padding: var(--space-3) var(--space-3) var(--space-2);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--font-size-small);
  font-weight: 600;
  color: var(--color-text-secondary);
  text-align: center;
  white-space: nowrap;
}
.compare-th-feature {
  text-align: left;
}
.compare-th-pro {
  color: var(--color-accent);
}

.compare-table tbody th {
  padding: var(--space-3);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--font-size-small);
  font-weight: 500;
  color: var(--color-text);
  text-align: left;
}

.compare-table tbody td {
  padding: var(--space-3);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
}

.compare-row:last-child th,
.compare-row:last-child td {
  border-bottom: none;
}

.compare-cell-text {
  font-weight: 600;
  color: var(--color-text);
}
.compare-cell-pro {
  color: var(--color-accent);
}

/* Yes/no indicators. Decorative icon plus a screen-reader-only
   text equivalent so the state isn't conveyed by color/shape alone. */
.compare-icon {
  display: inline-block;
  position: relative;
  width: 16px;
  height: 16px;
  vertical-align: middle;
}
.compare-icon-yes::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 2px;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  transform: rotate(-45deg);
}
.compare-icon-no::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 3px;
  width: 10px;
  height: 2px;
  background: var(--color-text-secondary);
  border-radius: var(--radius-pill);
}

.compare-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;
}

/* Responsive — extends the site's existing 900 / 760 / 600 breakpoints.
   The table must fit the viewport on phones: a hidden horizontal scroll
   would leave the Free/Pro columns invisible with no affordance. */
@media (max-width: 600px) {
  .compare {
    padding: var(--space-6) var(--space-3);
  }
  .compare-table {
    table-layout: fixed;
  }
  .compare-table thead th,
  .compare-table tbody th,
  .compare-table tbody td {
    padding: var(--space-2);
  }
  .compare-table thead th:not(.compare-th-feature),
  .compare-table tbody td {
    width: 64px;
    padding-left: 0;
    padding-right: 0;
  }
  .compare-table tbody th {
    padding-left: 0;
    font-size: 0.8125rem;
    line-height: 1.35;
  }
  .compare-cell-text {
    font-size: 0.75rem;
    line-height: 1.3;
  }
}
