/* ============================================================
   VNESYS — Vnesys vs YouTube (Compare page)
   Page-specific styles. Relies on shared tokens and the navbar/
   footer/loader rules already defined in css/base.css
   (--gold, --color-bg, --color-surface, --color-card,
   --color-text, --color-text-alt, --border).
   Typography: Space Grotesk (headings) + Inter (body) — the
   site's official design tokens (--vn-font-heading / --vn-font-body).
   ============================================================ */

.compare-page {
  font-family: 'Inter', sans-serif;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4em 1.5em 6em;
}

.compare-page h1,
.compare-page h2 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--color-text);
  line-height: 1.15;
}

/* ---- Hero ---- */
.compare-hero {
  text-align: center;
  padding-bottom: 3em;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3em;
}

.compare-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.6em;
}

.compare-intro {
  max-width: 780px;
  margin: 0 auto 1.5em;
  color: var(--color-text-alt);
  font-size: 1.1em;
  line-height: 1.6;
}

.compare-disclaimer {
  max-width: 780px;
  margin: 0 auto;
  font-size: 0.85em;
  color: var(--color-text-alt);
  background: var(--color-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1em 1.3em;
  line-height: 1.6;
}

.compare-disclaimer a { color: var(--gold); }

/* ---- Section spacing & headings ---- */
.compare-table-section,
.compare-context-section,
.compare-format-section {
  margin-bottom: 3.5em;
}

.compare-table-section h2,
.compare-context-section h2,
.compare-format-section h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: 0.8em;
}

.compare-context-section p,
.compare-format-section p {
  color: var(--color-text-alt);
  line-height: 1.7;
  margin-bottom: 1em;
  font-size: 1.02em;
}

.compare-context-section a,
.compare-format-section a,
.compare-cta a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.compare-source {
  margin-top: 1em;
  font-size: 0.85em;
  color: var(--color-text-alt);
}

/* ---- Table ---- */
.compare-table-section {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  font-size: 0.95em;
}

.compare-table th,
.compare-table td {
  padding: 0.9em 1.1em;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}

.compare-table thead th {
  background: var(--color-card);
  color: var(--gold);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.compare-table td:first-child {
  color: var(--color-text);
  font-weight: 600;
  white-space: nowrap;
}

.compare-table td {
  color: var(--color-text-alt);
}

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

.compare-table tbody tr:hover {
  background: rgba(245, 158, 11, 0.05);
}

/* ---- CTA footer block ----
   Note: this section uses a <footer class="compare-cta"> tag in the
   markup (a mid-page CTA, not the real site footer below it), so it
   needs to fully override css/base.css's generic `footer{}` rule
   (flex row, space-between, dark background) rather than just add to it. */
.compare-cta {
  display: block;
  text-align: center;
  padding: 3em 0 0;
  margin: 0;
  background: none;
  border-top: 1px solid var(--border);
  border-bottom: none;
  gap: 0;
}

.compare-cta h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: 0.6em;
}

.compare-cta p {
  color: var(--color-text-alt);
  line-height: 1.7;
  font-size: 1.02em;
  max-width: 680px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .compare-table th,
  .compare-table td {
    padding: 0.7em 0.8em;
    font-size: 0.9em;
  }
}
