/*
 * Compare table and price panel.
 * Shared component for product pages that set a free tier beside a paid one
 * (first used on /marksweep). Uses the tokens from styles.css.
 */

.compare-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.75fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-variant-numeric: tabular-nums;
}

.compare-table th,
.compare-table td {
  padding: clamp(12px, 1.6vw, 18px) clamp(14px, 2vw, 24px);
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: baseline;
}

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

.compare-table thead th {
  border-bottom: 1px solid var(--ink);
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
}

.compare-table tbody th {
  font-weight: 500;
  color: var(--ink);
}

.compare-table td {
  width: 6.5rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.compare-table td.is-pro {
  color: var(--teal);
  font-weight: 600;
}

.compare-table tbody tr {
  transition: background-color 180ms var(--ease);
}

.compare-table tbody tr:hover {
  background: var(--teal-soft);
}

.price-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(20px, 3vw, 34px);
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--teal);
  color: var(--white);
}

.price-panel p {
  margin: 0;
}

.price-panel .fine {
  color: var(--teal-soft);
}

.price-figure {
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.price-figure span {
  display: block;
  margin-top: 8px;
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--teal-soft);
}

.price-terms {
  display: grid;
  gap: 8px;
  margin: 4px 0;
  padding: 14px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  list-style: none;
}

.price-panel a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.price-panel a:hover,
.price-panel a:focus-visible {
  color: var(--signal);
}

@media (max-width: 900px) {
  .compare-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .compare-table th,
  .compare-table td {
    padding: 12px 10px;
  }

  .compare-table td {
    width: 4.5rem;
  }
}
