/* ==========================================================================
   Local Hero — versus pages
   /vs/{competitor} comparison pages. Shares chrome + tokens with the rest of
   the site via _styles.css. This file adds: vs-hero (intro), vs-table
   (2-col side-by-side), vs-honest (when to pick them anyway), vs-cta.
   ========================================================================== */

/* Reveal-on-scroll (kept identical to _pricing.css for chrome parity) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* --- HERO --------------------------------------------------------------- */
.vs-hero { padding: 96px 0 56px; }
.vs-hero h1 { text-wrap: pretty; max-width: 880px; }
.vs-hero h1 .vs-them { color: var(--ink); }
.vs-hero h1 .vs-sep { color: var(--muted-soft); font-style: italic; padding: 0 .15em; }
.vs-hero .lead { margin: 18px 0 0; max-width: 680px; font-size: 19px; line-height: 1.55; color: var(--body); }

.vs-hero .meta-row {
  display: flex; flex-wrap: wrap; gap: 24px; margin-top: 36px; align-items: center;
}
.vs-hero .meta-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1px solid var(--hairline); border-radius: var(--r-pill);
  font-size: 13px; color: var(--body); background: var(--canvas);
}
.vs-hero .meta-pill strong { color: var(--ink); font-weight: 600; }
.vs-hero .meta-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }

/* --- AT-A-GLANCE TWO-CARD ----------------------------------------------- */
.vs-glance { padding: 64px 0; background: var(--surface-soft); }
.vs-glance .grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px;
}
.vs-card {
  background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: var(--r-xl); padding: 32px;
}
.vs-card.us { border-color: var(--primary); border-width: 2px; }
.vs-card .vs-eyebrow {
  font-family: var(--sans); font-weight: 500; font-size: 11px;
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted);
  margin-bottom: 12px;
}
.vs-card.us .vs-eyebrow { color: var(--primary); }
.vs-card h3 {
  font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1;
  letter-spacing: -0.4px; color: var(--ink); margin: 0 0 6px;
}
.vs-card .vs-price {
  font-family: var(--sans); font-weight: 600; font-size: 16px;
  color: var(--body-strong); margin-bottom: 22px;
}
.vs-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.vs-card li { padding-left: 22px; position: relative; line-height: 1.5; color: var(--body); font-size: 15px; }
.vs-card.us li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--primary); font-weight: 700;
}
.vs-card:not(.us) li::before {
  content: "—"; position: absolute; left: 0; top: 0;
  color: var(--muted-soft); font-weight: 600;
}

/* --- COMPARISON TABLE --------------------------------------------------- */
.vs-table-section { padding: 96px 0 64px; }
.vs-table-section .intro { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.vs-table-section .intro .t-caption-up { color: var(--primary); margin-bottom: 14px; }
.vs-table-wrap { overflow-x: auto; }
.vs-table {
  width: 100%; border-collapse: collapse; background: var(--canvas);
  border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden;
}
.vs-table th, .vs-table td {
  padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--hairline-soft);
  font-size: 15px;
}
.vs-table thead th {
  background: var(--surface-soft); font-weight: 500; color: var(--ink);
  font-size: 13px; letter-spacing: 0.4px;
}
.vs-table thead th.us { color: var(--primary); }
.vs-table thead th .price-line {
  font-size: 11px; color: var(--muted); font-weight: 400; letter-spacing: 0; margin-top: 2px;
}
.vs-table tbody tr:last-child td { border-bottom: 0; }
.vs-table tbody tr:hover { background: var(--surface-soft); }
.vs-table td:first-child { font-weight: 500; color: var(--ink); }
.vs-table td.cell-yes { color: var(--primary); font-weight: 600; }
.vs-table td.cell-part { color: var(--warning); font-weight: 500; }
.vs-table td.cell-no { color: var(--muted-soft); }

/* --- HONEST SECTION (when to pick them) --------------------------------- */
.vs-honest { padding: 80px 0; background: var(--surface-dark); color: var(--on-dark); }
.vs-honest h2 { color: var(--on-dark); }
.vs-honest .intro { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.vs-honest .intro .t-caption-up { color: var(--gold-ltd); margin-bottom: 14px; }
.vs-honest .intro p { color: var(--on-dark-soft); font-size: 17px; line-height: 1.6; margin: 14px 0 0; }
.vs-honest ul {
  list-style: none; padding: 0; margin: 0; max-width: 720px; margin-inline: auto;
  display: grid; gap: 14px;
}
.vs-honest li {
  padding: 18px 22px; background: var(--surface-dark-soft);
  border-radius: var(--r-md); color: var(--on-dark); font-size: 16px; line-height: 1.55;
}
.vs-honest li strong { color: var(--gold-ltd); font-weight: 600; }

/* --- SWITCHING CTA ------------------------------------------------------ */
.vs-cta { padding: 96px 0; }
.vs-cta .panel {
  background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: var(--r-2xl); padding: 56px 48px; text-align: center;
  max-width: 800px; margin: 0 auto;
}
.vs-cta .panel h2 { margin: 0 0 16px; }
.vs-cta .panel p { color: var(--body); font-size: 18px; line-height: 1.55; max-width: 580px; margin: 0 auto 28px; }
.vs-cta .panel .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.vs-cta .panel small { display: block; margin-top: 18px; color: var(--muted); font-size: 13px; }

/* --- RELATED COMPARISONS ------------------------------------------------ */
.vs-related { padding: 64px 0 96px; background: var(--surface-soft); }
.vs-related h3 {
  font-family: var(--sans); font-weight: 500; font-size: 14px;
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted);
  margin: 0 0 24px; text-align: center;
}
.vs-related .grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px; max-width: 960px; margin: 0 auto;
}
.vs-related a {
  display: block; padding: 18px 22px; background: var(--canvas);
  border: 1px solid var(--hairline); border-radius: var(--r-md);
  text-decoration: none; color: var(--ink); font-weight: 500;
  font-size: 15px; transition: border-color .2s ease, transform .2s ease;
}
.vs-related a:hover { border-color: var(--primary); transform: translateY(-2px); }
.vs-related a .vs-arrow { color: var(--muted-soft); margin-left: 8px; }

/* --- RESPONSIVE --------------------------------------------------------- */
@media (max-width: 860px) {
  .vs-hero { padding: 64px 0 32px; }
  .vs-glance, .vs-table-section, .vs-honest, .vs-cta, .vs-related { padding: 56px 0; }
  .vs-glance .grid { grid-template-columns: 1fr; }
  .vs-card { padding: 24px; }
  .vs-table { font-size: 13px; }
  .vs-table th, .vs-table td { padding: 12px; }
  .vs-cta .panel { padding: 40px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
