/* Styles for the /vs/* comparison pages. Composes the same --gw-* tokens as
   site.css and reuses .faq, .columns, .prose from there; this file only adds
   the classes vs_shared.dart needs and that site.css does not already have:
   the feature table, the last-checked line, the tradeoff panels and the
   sourced pricing note. Not linked automatically: the coordinator adds
   <link rel="stylesheet" href="/site/vs.css"> next to site.css in
   main.server.dart once these pages are wired in. */

.last-checked {
  font-size: var(--gw-text-13);
  font-weight: var(--gw-weight-medium);
  color: var(--gw-text-muted);
  margin-top: var(--gw-space-12);
}

.compare-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: var(--gw-space-24);
  border: var(--gw-border-hairline) solid var(--gw-border);
  border-radius: var(--gw-radius-14);
}

.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: var(--gw-text-14);
}

.compare-table th,
.compare-table td {
  padding: var(--gw-space-12) var(--gw-space-16);
  text-align: left;
  vertical-align: top;
  border-bottom: var(--gw-border-hairline) solid var(--gw-border);
}

.compare-table thead th {
  font-weight: var(--gw-weight-semi-bold);
  color: var(--gw-text-primary);
  background: var(--gw-surface);
  white-space: nowrap;
}

.compare-table thead th:first-child {
  background: transparent;
}

.compare-table tbody th {
  font-weight: var(--gw-weight-medium);
  color: var(--gw-text-muted);
  white-space: nowrap;
}

.compare-table tbody th[scope="row"] {
  background: var(--gw-surface);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.tradeoff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gw-space-24);
}

.tradeoff {
  border: var(--gw-border-hairline) solid var(--gw-border);
  border-radius: var(--gw-radius-14);
  padding: var(--gw-space-16);
  background: var(--gw-surface);
}

.tradeoff h3 {
  font-size: var(--gw-text-18);
  font-weight: var(--gw-weight-semi-bold);
  margin-bottom: var(--gw-space-12);
}

.tradeoff ul {
  margin: 0;
  padding-left: var(--gw-space-24);
  color: var(--gw-text-muted);
}

.tradeoff li {
  margin-bottom: var(--gw-space-12);
}

.tradeoff li:last-child {
  margin-bottom: 0;
}

.pricing-note {
  max-width: 760px;
}

.pricing-note__source {
  margin-top: var(--gw-space-16);
  font-size: var(--gw-text-13);
  color: var(--gw-text-muted);
}

/* ---------- Dark scheme adjustments ---------- */

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .compare-table-wrap {
    border-color: var(--gw-border-strong);
  }
}

:root[data-theme="dark"] .compare-table-wrap {
  border-color: var(--gw-border-strong);
}
