/* ============================================================
   vs.css — Comparison page (/vs/<competitor>/)
   Shared tokens, base, components, nav, footer from base.html.
   ============================================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

.vs-section-heading {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -1px;
  color: var(--text-primary);
  margin-bottom: 32px;
}

/* ==================== HERO ==================== */
.vs-hero {
  background: var(--bg-hero);
  padding: 160px 0 80px;
  text-align: left;
}

.vs-hero .section-label {
  color: var(--accent);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.vs-hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 110px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -1.5px;
  color: var(--text-primary);
  margin-top: 12px;
  max-width: 1100px;
}

.vs-hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 760px;
  margin-top: 32px;
}

.vs-hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.vs-hero-trust {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 32px;
}

/* ==================== PROBLEM ==================== */
.vs-problem {
  padding: 100px 0 60px;
  background: var(--bg-page);
}

.vs-problem-body {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.6;
  color: var(--text-primary);
  max-width: 760px;
  margin-bottom: 20px;
}

/* ==================== SOLUTION ==================== */
.vs-solution {
  padding: 80px 0;
  background: var(--bg-alt);
}

.vs-solution-body {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.6;
  color: var(--text-primary);
  max-width: 760px;
  margin-bottom: 20px;
}

.vs-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.vs-feature {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.vs-feature h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.vs-feature p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* ==================== COMPARISON TABLE ==================== */
.vs-table-section {
  padding: 100px 0 80px;
  background: var(--bg-page);
}

.vs-table {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.vs-table-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  background: var(--navy-light);
}

.vs-table-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.vs-table-cell {
  padding: 18px 24px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-primary);
}

.vs-table-head .vs-table-cell {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
}

.vs-table-label {
  font-weight: 600;
  background: rgba(0, 0, 0, 0.015);
}

.vs-table-them {
  color: var(--text-secondary);
}

.vs-table-us {
  background: rgba(239, 62, 35, 0.04);
  font-weight: 500;
  color: var(--text-primary);
}

.vs-table-head .vs-table-us {
  background: var(--orange);
  color: #fff;
}

/* ==================== WHEN SECTIONS ==================== */
.vs-when-them,
.vs-when-us {
  padding: 80px 0;
}

.vs-when-them {
  background: var(--bg-alt);
}

.vs-when-us {
  background: var(--bg-page);
}

.vs-when-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 760px;
}

.vs-when-list li {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.55;
  color: var(--text-primary);
  padding: 12px 0 12px 28px;
  position: relative;
}

.vs-when-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.vs-when-them .vs-when-list li::before {
  background: var(--text-muted);
}

/* ==================== HOW IT WORKS ==================== */
.vs-how {
  padding: 100px 0;
  background: var(--bg-alt);
}

.vs-how-steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}

.vs-how-step {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.vs-how-num {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 20px;
}

.vs-how-body h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.vs-how-body p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.vs-how-cta {
  margin-top: 48px;
  text-align: center;
}

/* ==================== SOCIAL PROOF ==================== */
.vs-proof {
  padding: 100px 0;
  background: var(--bg-page);
}

.vs-proof-quote {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.vs-proof-quote p {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 36px);
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.vs-proof-quote p::before {
  content: "\201C";
  font-family: var(--font-quote);
  color: var(--orange);
  margin-right: 4px;
}

.vs-proof-quote p::after {
  content: "\201D";
  font-family: var(--font-quote);
  color: var(--orange);
  margin-left: 4px;
}

.vs-proof-quote footer {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-secondary);
}

.vs-proof-quote footer strong {
  color: var(--text-primary);
  display: block;
  font-weight: 600;
}

/* ==================== FAQ ==================== */
.vs-faq {
  padding: 100px 0;
  background: var(--bg-alt);
}

.vs-faq-list {
  max-width: 880px;
  margin: 0 auto;
}

.vs-faq-item {
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 12px;
  overflow: hidden;
}

.vs-faq-item summary {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 56px;
}

.vs-faq-item summary::-webkit-details-marker {
  display: none;
}

.vs-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-size: 24px;
  color: var(--orange);
  font-weight: 300;
}

.vs-faq-item[open] summary::after {
  content: "\2212";
}

.vs-faq-item p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  padding: 0 24px 20px;
  margin: 0;
}

/* ==================== FINAL CTA ==================== */
.vs-final {
  padding: 120px 0;
  background: var(--navy-dark);
  text-align: center;
}

.vs-final-heading {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 80px);
  line-height: 1.05;
  letter-spacing: -1px;
  color: #fff;
  max-width: 900px;
  margin: 0 auto 24px;
}

.vs-final-body {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.6;
  color: #d8d8d8;
  max-width: 660px;
  margin: 0 auto 36px;
}

.vs-final-ctas {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .vs-hero {
    padding: 120px 0 60px;
  }
  .vs-feature-grid,
  .vs-how-steps {
    grid-template-columns: 1fr 1fr;
  }
  .vs-table-head,
  .vs-table-row {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .vs-hero {
    padding: 100px 0 48px;
  }
  .vs-feature-grid,
  .vs-how-steps {
    grid-template-columns: 1fr;
  }
  .vs-table-head,
  .vs-table-row {
    grid-template-columns: 1fr;
  }
  .vs-table-row,
  .vs-table-head {
    border-radius: 0;
  }
  .vs-table-cell {
    padding: 14px 20px;
    font-size: 14px;
  }
  .vs-table-head {
    display: none;
  }
  .vs-table-row {
    padding: 8px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }
  .vs-table-label {
    font-weight: 700;
    background: transparent;
    padding-bottom: 4px;
  }
  .vs-table-them::before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: var(--text-muted);
  }
  .vs-table-us::before {
    content: attr(data-label) ": ";
    font-weight: 700;
    color: var(--orange);
  }
}
