/* Free vs Premium comparison page. Reuses .wrap / .eyebrow / .subtitle
   from inner.css; this file only styles the tier cards + comparison table.
   All colours come from the shared theme vars so light/dark both work. */

.tier-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.75rem 0 2.25rem;
}

.tier-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
}

.tier-card--premium {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red) inset;
}

.tier-name {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.tier-card--premium .tier-name { color: var(--red); }

.tier-pitch {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
}

/* ── Comparison table ─────────────────────────────────────────────── */

.compare-wrap {
  /* Horizontal scroll on narrow screens rather than squashing columns. */
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.compare th,
.compare td {
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.compare thead th {
  position: sticky;
  top: 0;
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.compare thead th.feature-col { text-align: left; }

/* Free / Premium value columns are centred + narrow. */
.compare td,
.compare thead th:not(.feature-col) { text-align: center; width: 8.5rem; }

.compare tbody th[scope="row"] {
  font-weight: 400;
  color: var(--text);
}

.compare .hint {
  color: var(--muted);
  font-size: 0.82rem;
}

/* Category sub-headers. */
.compare tr.group th {
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.85rem;
  padding-bottom: 0.55rem;
}

/* Tint the whole Premium column so the eye tracks it. */
.compare .premium-col {
  background: color-mix(in srgb, var(--red) 7%, transparent);
}
.compare thead th.premium-col { color: var(--red); }

.compare td.yes { color: var(--text); font-weight: 600; }
.compare td.no { color: var(--muted); }

/* ── CTA ──────────────────────────────────────────────────────────── */

.pricing-cta {
  text-align: center;
  margin: 2.5rem 0 1rem;
}

.cta-primary {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-weight: 600;
  padding: 0.8rem 2rem;
  border-radius: 999px;
  text-decoration: none;
}

.cta-primary:hover { filter: brightness(1.08); }

.cta-note {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.875rem;
}
.cta-note a { color: var(--red); }

@media (max-width: 640px) {
  .tier-cards { grid-template-columns: 1fr; }
}
