.compare-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.75rem 0;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 820px;
  table-layout: auto;
}

.compare-table thead th {
  background: #f4f7fa;
  border: 1px solid var(--line);
  padding: 0.9rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  vertical-align: middle;
  text-align: center;
  line-height: 1.35;
}

.compare-table thead th.label-col {
  background: transparent;
  border: none;
  width: 40%;
}

.compare-table thead th.license-col {
  width: 12%;
}

.compare-table thead th .th-sub {
  display: block;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 0.2rem;
  text-transform: none;
}

.compare-table thead th a {
  color: inherit;
  text-decoration: none;
}

.compare-table thead th a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.compare-table tbody th {
  text-align: left;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--fg);
  padding: 0.7rem 0.9rem 0.7rem 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  line-height: 1.45;
}

.compare-table tbody td {
  text-align: center;
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--line);
  color: var(--fg-soft);
  vertical-align: middle;
  background: transparent;
  line-height: 1.35;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table tbody tr.section-sep td {
  height: 0.8rem;
  padding: 0;
  border-bottom: none;
  background: var(--bg);
}

.compare-table .val-yes {
  color: #3d8b40;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
}

.compare-table .val-no {
  color: #c8c8c8;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
}

.compare-table .val-num {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
}

.compare-table .val-unlimited {
  color: #3d8b40;
  font-weight: 600;
}

.compare-table .val-unlimited .sub {
  display: inline-block;
  font-weight: 400;
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-top: 0.1rem;
}

.compare-note {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 1.5rem 0 0;
}

@media (max-width: 640px) {
  .compare-table {
    font-size: 0.8rem;
    min-width: 700px;
  }

  .compare-table thead th,
  .compare-table tbody th,
  .compare-table tbody td {
    padding: 0.55rem 0.5rem;
  }

  .compare-table thead th .th-sub {
    font-size: 0.58rem;
  }
}