/* ============================================================
   emailzeno — vs-competitor & alternatives hub styles
   Loaded on: /vs/  /vs/{slug}  /alternatives/{slug}
   Depends on: tokens.css, site.css, bootstrap 5
   ============================================================ */

/* ── Shared section spacing ───────────────────────────────── */
.vs-hero,
.vs-tldr,
.vs-comparison,
.vs-pricing,
.vs-honest,
.vs-wins,
.vs-migration,
.vs-cta-faq,
.vs-hub-hero,
.vs-hub-grid,
.vs-hub-trust {
  padding-block: 4rem;
}

.vs-section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.vs-breadcrumb {
  font-size: 0.85rem;
  color: var(--ec-muted, #6c757d);
}
.vs-breadcrumb a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.vs-breadcrumb span[aria-hidden] {
  margin-inline: 0.35rem;
  opacity: 0.5;
}

/* ── Hero ─────────────────────────────────────────────────── */
.vs-hero {
  background: var(--ec-surface-2, #f8fafc);
  border-bottom: 1px solid var(--ec-border, #e2e8f0);
}
[data-theme="dark"] .vs-hero {
  background: var(--ec-surface-dark-2, #0f172a);
  border-color: var(--ec-border-dark, #1e293b);
}

.vs-hero__logos {
  flex-wrap: wrap;
}
.vs-hero__logo-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: var(--ec-surface, #fff);
  border: 1px solid var(--ec-border, #e2e8f0);
  border-radius: 999px;
  font-size: 0.95rem;
}
[data-theme="dark"] .vs-hero__logo-chip {
  background: var(--ec-surface-dark, #1e293b);
  border-color: var(--ec-border-dark, #334155);
}
.vs-hero__vs-badge {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ec-muted, #6c757d);
  letter-spacing: 0.1em;
}
.vs-hero__h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.vs-hero__sub {
  font-size: 1.1rem;
  color: var(--ec-muted, #475569);
  max-width: 640px;
}
[data-theme="dark"] .vs-hero__sub {
  color: var(--ec-muted-dark, #94a3b8);
}
.vs-hero__disclaimer {
  font-size: 0.8rem;
  color: var(--ec-muted, #64748b);
  opacity: 0.85;
}

/* ── Winner icons ─────────────────────────────────────────── */
.vs-win {
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
}

/* ── TL;DR card ───────────────────────────────────────────── */
.vs-tldr {
  background: var(--ec-surface, #fff);
}
[data-theme="dark"] .vs-tldr {
  background: var(--ec-surface-dark, #0f172a);
}
.vs-tldr__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}
.vs-tldr__cell {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--ec-border, #e2e8f0);
  background: var(--ec-surface-2, #f8fafc);
  font-size: 0.88rem;
  font-weight: 500;
  transition: border-color 0.15s;
}
.vs-tldr__cell--win {
  border-color: #16a34a;
  background: #f0fdf4;
}
.vs-tldr__cell--loss {
  border-color: #ca8a04;
  background: #fefce8;
}
[data-theme="dark"] .vs-tldr__cell {
  background: #1e293b;
  border-color: #334155;
}
[data-theme="dark"] .vs-tldr__cell--win {
  border-color: #16a34a;
  background: #052e16;
}
[data-theme="dark"] .vs-tldr__cell--loss {
  border-color: #ca8a04;
  background: #1c1400;
}
.vs-tldr__dim {
  flex: 1;
}

/* ── Comparison table ─────────────────────────────────────── */
.vs-comparison {
  background: var(--ec-surface-2, #f8fafc);
}
[data-theme="dark"] .vs-comparison {
  background: #0f172a;
}
.vs-table {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.vs-table thead th {
  background: var(--ec-brand, #0f766e);
  color: #fff;
  font-weight: 600;
  padding: 0.9rem 1rem;
  white-space: nowrap;
}
.vs-table tbody tr {
  border-bottom: 1px solid var(--ec-border, #e2e8f0);
}
.vs-table tbody tr:last-child {
  border-bottom: none;
}
.vs-table tbody td {
  padding: 0.85rem 1rem;
  vertical-align: middle;
  font-size: 0.9rem;
  background: var(--ec-surface, #fff);
}
[data-theme="dark"] .vs-table tbody td {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}
.vs-table__row--us td {
  background: #f0fdf4 !important;
}
.vs-table__row--them td {
  background: #fefce8 !important;
}
[data-theme="dark"] .vs-table__row--us td {
  background: #052e16 !important;
}
[data-theme="dark"] .vs-table__row--them td {
  background: #1c1400 !important;
}

/* ── Pricing side-by-side ─────────────────────────────────── */
.vs-pricing {
  background: var(--ec-surface, #fff);
}
[data-theme="dark"] .vs-pricing {
  background: #0f172a;
}
.vs-pricing__card {
  border-radius: 0.75rem;
  border: 2px solid var(--ec-border, #e2e8f0);
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.vs-pricing__card--us {
  border-color: var(--ec-brand, #0f766e);
}
[data-theme="dark"] .vs-pricing__card {
  border-color: #334155;
  background: #1e293b;
}
[data-theme="dark"] .vs-pricing__card--us {
  border-color: var(--ec-brand, #0f766e);
}
.vs-pricing__card-header {
  display: flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--ec-border, #e2e8f0);
}
[data-theme="dark"] .vs-pricing__card-header {
  border-color: #334155;
}
.vs-pricing__list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}
.vs-pricing__list li {
  display: grid;
  grid-template-columns: 6rem 5rem 1fr;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--ec-border, #e2e8f0);
  font-size: 0.88rem;
  align-items: center;
}
[data-theme="dark"] .vs-pricing__list li {
  border-color: #334155;
}
.vs-pricing__list li:last-child {
  border-bottom: none;
}
.vs-pricing__tier {
  font-weight: 600;
}
.vs-pricing__price {
  font-weight: 700;
  color: var(--ec-brand, #0f766e);
}
.vs-pricing__desc {
  color: var(--ec-muted, #64748b);
  font-size: 0.82rem;
}
[data-theme="dark"] .vs-pricing__desc {
  color: #94a3b8;
}

/* ── Honest sections ──────────────────────────────────────── */
.vs-honest,
.vs-wins {
  background: var(--ec-surface-2, #f8fafc);
}
[data-theme="dark"] .vs-honest,
[data-theme="dark"] .vs-wins {
  background: #0f172a;
}
.vs-honest__card {
  border-radius: 0.75rem;
  padding: 2rem 2.5rem;
  border-left: 4px solid transparent;
}
.vs-honest__card--them {
  background: #fefce8;
  border-left-color: #ca8a04;
}
.vs-honest__card--us {
  background: #f0fdf4;
  border-left-color: #16a34a;
}
[data-theme="dark"] .vs-honest__card--them {
  background: #1c1400;
  border-left-color: #ca8a04;
}
[data-theme="dark"] .vs-honest__card--us {
  background: #052e16;
  border-left-color: #16a34a;
}
.vs-honest__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.vs-honest__icon {
  font-size: 1.5rem;
}
.vs-honest__body {
  font-size: 0.97rem;
  line-height: 1.75;
  margin-bottom: 0;
  color: var(--ec-text, #1e293b);
}
[data-theme="dark"] .vs-honest__body {
  color: #e2e8f0;
}

/* ── Migration ────────────────────────────────────────────── */
.vs-migration {
  background: var(--ec-surface, #fff);
}
[data-theme="dark"] .vs-migration {
  background: #0f172a;
}
.vs-migration .lead {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ec-text, #1e293b);
}
[data-theme="dark"] .vs-migration .lead {
  color: #e2e8f0;
}

/* ── CTA + FAQ ────────────────────────────────────────────── */
.vs-cta-faq {
  background: var(--ec-surface-2, #f8fafc);
}
[data-theme="dark"] .vs-cta-faq {
  background: #0f172a;
}
.vs-cta-strip {
  padding: 2.5rem;
  border-radius: 1rem;
  background: var(--ec-brand, #0f766e);
  color: #fff;
  margin-bottom: 3rem;
}
.vs-cta-strip__title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.vs-cta-strip__sub {
  opacity: 0.9;
  margin-bottom: 1.5rem;
}
.vs-faq .accordion-item {
  border-color: var(--ec-border, #e2e8f0);
  border-radius: 0.5rem !important;
  margin-bottom: 0.5rem;
  overflow: hidden;
}
[data-theme="dark"] .vs-faq .accordion-item {
  border-color: #334155;
  background: #1e293b;
}
[data-theme="dark"] .vs-faq .accordion-button {
  background: #1e293b;
  color: #e2e8f0;
}
[data-theme="dark"] .vs-faq .accordion-button:not(.collapsed) {
  background: #0f2d27;
  color: #6ee7b7;
}
[data-theme="dark"] .vs-faq .accordion-body {
  background: #1e293b;
  color: #cbd5e1;
}

/* ── Hub hero ─────────────────────────────────────────────── */
.vs-hub-hero {
  background: var(--ec-surface-2, #f8fafc);
  border-bottom: 1px solid var(--ec-border, #e2e8f0);
}
[data-theme="dark"] .vs-hub-hero {
  background: #0f172a;
  border-color: #1e293b;
}
.vs-hub-hero__h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.vs-hub-hero__sub {
  font-size: 1.1rem;
  color: var(--ec-muted, #475569);
  max-width: 620px;
  margin-inline: auto;
}
[data-theme="dark"] .vs-hub-hero__sub {
  color: #94a3b8;
}

/* ── Hub grid cards ───────────────────────────────────────── */
.vs-hub-grid {
  background: var(--ec-surface, #fff);
}
[data-theme="dark"] .vs-hub-grid {
  background: #0f172a;
}
.vs-hub-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--ec-border, #e2e8f0);
  background: var(--ec-surface, #fff);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  height: 100%;
}
.vs-hub-card:hover {
  border-color: var(--ec-brand, #0f766e);
  box-shadow: 0 4px 20px rgba(15,118,110,0.12);
  transform: translateY(-2px);
  color: inherit;
}
[data-theme="dark"] .vs-hub-card {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}
[data-theme="dark"] .vs-hub-card:hover {
  border-color: var(--ec-brand, #0f766e);
}
.vs-hub-card__vs {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.vs-hub-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.vs-hub-card__sub {
  font-size: 0.85rem;
  color: var(--ec-muted, #64748b);
  line-height: 1.55;
  margin-bottom: 0;
  flex: 1;
}
[data-theme="dark"] .vs-hub-card__sub {
  color: #94a3b8;
}
.vs-hub-card__scores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.vs-hub-card__cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ec-brand, #0f766e);
}

/* ── Score badges ─────────────────────────────────────────── */
.vs-badge-us {
  background: #dcfce7;
  color: #15803d;
  font-weight: 600;
  font-size: 0.75rem;
}
.vs-badge-tie {
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
  font-size: 0.75rem;
}
.vs-badge-them {
  background: #fef9c3;
  color: #854d0e;
  font-weight: 600;
  font-size: 0.75rem;
}
[data-theme="dark"] .vs-badge-us   { background: #052e16; color: #86efac; }
[data-theme="dark"] .vs-badge-tie  { background: #1e293b; color: #94a3b8; }
[data-theme="dark"] .vs-badge-them { background: #1c1400; color: #fde047; }

/* ── Hub trust note ───────────────────────────────────────── */
.vs-hub-trust {
  background: var(--ec-surface-2, #f8fafc);
}
[data-theme="dark"] .vs-hub-trust {
  background: #0f172a;
}
.vs-hub-trust__card {
  background: var(--ec-surface, #fff);
  border: 1px solid var(--ec-border, #e2e8f0);
  border-radius: 0.75rem;
  padding: 2rem;
  max-width: 680px;
  margin-inline: auto;
}
[data-theme="dark"] .vs-hub-trust__card {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

/* ── Responsive tweaks ────────────────────────────────────── */
@media (max-width: 575.98px) {
  .vs-hero,
  .vs-tldr,
  .vs-comparison,
  .vs-pricing,
  .vs-honest,
  .vs-wins,
  .vs-migration,
  .vs-cta-faq,
  .vs-hub-hero,
  .vs-hub-grid,
  .vs-hub-trust {
    padding-block: 2.5rem;
  }

  .vs-honest__card {
    padding: 1.25rem 1.5rem;
  }

  .vs-pricing__list li {
    grid-template-columns: 5rem 4.5rem 1fr;
    font-size: 0.82rem;
  }

  .vs-cta-strip {
    padding: 1.5rem;
  }

  .vs-tldr__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
