/* =========================================
   VS COMPARISON PAGES — Leadsmith
   Glassmorphism dark theme, matching theme.css
   ========================================= */

/* ── Page wrapper ─────────────────────────── */
.vs-page {
  min-height: 100vh;
  padding-bottom: 0;
}

/* ── Hero ───────────────────────────────────── */
.vs-hero {
  position: relative;
  text-align: center;
  padding: 120px 40px 80px;
  overflow: hidden;
  background: var(--bg-dark);
}

.vs-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.vs-hero-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59,130,246,0.2) 0%, transparent 70%);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  animation: orb-float 8s ease-in-out infinite;
}
.vs-hero-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(200,245,38,0.08) 0%, transparent 70%);
  bottom: 0;
  right: -100px;
  animation: orb-float 10s ease-in-out infinite reverse;
}

@keyframes orb-float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-20px); }
}

.vs-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 20px;
}

.vs-headline {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-white);
  max-width: 820px;
  margin: 0 auto 24px;
}

.vs-subheadline {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── Stats bar ──────────────────────────────── */
.vs-stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  background: rgba(255,255,255,0.03);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  padding: 28px 40px;
}

.vs-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 40px;
}

.vs-stat-value {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-white);
  line-height: 1;
  margin-bottom: 6px;
}

.vs-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  max-width: 130px;
  line-height: 1.4;
}

.vs-stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border-glass);
}

@media (max-width: 640px) {
  .vs-stats-bar { flex-direction: column; gap: 24px; padding: 28px 24px; }
  .vs-stat-divider { display: none; }
  .vs-stat { padding: 0; }
}

/* ── Comparison table ───────────────────────── */
.vs-table-section {
  padding: 80px 40px;
  background: var(--bg-deep);
}

.vs-table-wrap {
  max-width: 900px;
  margin: 0 auto;
  overflow-x: auto;
}

.vs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.vs-table th {
  text-align: left;
  padding: 14px 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-glass);
}

.vs-th-lead { color: var(--text-faint); }

.vs-th-leadsmith {
  background: rgba(200,245,38,0.06);
  border-left: 2px solid var(--lime);
}

.vs-th-competitor {
  background: rgba(255,255,255,0.02);
}

.vs-th-badge {
  display: inline-block;
  background: var(--lime);
  color: #0a0a0f;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

.vs-tr-category td {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 20px 20px 10px;
  border-bottom: 1px solid var(--border-glass);
}

.vs-tr-category:first-of-type td {
  padding-top: 32px;
}

.vs-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
}

.vs-table tbody tr:hover {
  background: rgba(255,255,255,0.02);
}

.vs-td-feature {
  padding: 14px 20px;
  color: var(--text-muted);
  vertical-align: middle;
}

.vs-td-yes {
  padding: 14px 20px;
  vertical-align: middle;
  color: #c8f526;
  background: rgba(200,245,38,0.04);
}

.vs-td-no {
  padding: 14px 20px;
  vertical-align: middle;
  color: rgba(255,255,255,0.3);
  font-style: italic;
}

.vs-td-maybe {
  padding: 14px 20px;
  vertical-align: middle;
  color: rgba(255,255,255,0.5);
}

.vs-check-icon {
  display: inline-block;
  margin-right: 6px;
  font-weight: 700;
}

/* ── Gap section ────────────────────────────── */
.vs-gap-section {
  padding: 80px 40px;
  background: var(--bg-dark);
}

.vs-gap-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 48px 52px;
}

.vs-gap-icon {
  font-size: 36px;
  margin-bottom: 20px;
}

.vs-gap-card h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-white);
  margin-bottom: 20px;
  line-height: 1.25;
}

.vs-gap-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.vs-gap-card p:last-child {
  margin-bottom: 0;
}

/* ── CTA section ────────────────────────────── */
.vs-cta-section {
  padding: 80px 40px 100px;
  background: var(--bg-deep);
  text-align: center;
}

.vs-cta-card {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid rgba(200,245,38,0.3);
  border-radius: 20px;
  padding: 52px 60px;
  max-width: 520px;
}

.vs-cta-tag {
  display: inline-block;
  background: rgba(200,245,38,0.12);
  color: var(--lime);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.vs-cta-headline {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-white);
  margin-bottom: 12px;
  line-height: 1.2;
}

.vs-cta-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.vs-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lime);
  color: #0a0a0f;
  font-size: 15px;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  text-decoration: none;
}

.vs-cta-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  text-decoration: none;
}

.vs-cta-btn:active { transform: scale(0.97); }

.vs-cta-note {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 14px;
}

/* ── Footer ─────────────────────────────────── */
.vs-footer {
  border-top: 1px solid var(--border-glass);
}

/* ── Modal (mirrors partials/demo-modal) ────── */
.demo-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.demo-modal-overlay.is-open {
  display: flex;
}

.demo-modal-panel {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 48px 40px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  border-radius: 8px;
  transition: background 0.2s;
}

.modal-close:hover { background: var(--bg-card-hover); }

.modal-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.modal-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.5;
}

#demo-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text-white);
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-faint); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ffffff50' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-group select option { background: #1a1f2e; }

.form-submit-btn {
  background: var(--accent);
  color: var(--text-white);
  font-size: 14px;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  margin-top: 4px;
}

.form-submit-btn:hover { background: #2563eb; }
.form-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.form-feedback {
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 8px;
  margin-top: 4px;
  display: none;
}

.form-feedback--error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  color: #ff8080;
  display: block;
}

.demo-success-panel {
  text-align: center;
  padding: 20px 0;
}

.demo-success-icon {
  width: 56px;
  height: 56px;
  background: rgba(200,245,38,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  color: var(--lime);
}

.demo-success-panel h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 12px;
}

.demo-success-panel p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Scroll progress (reuse from theme.css) ── */
.vs-page { position: relative; }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 768px) {
  .vs-hero { padding: 100px 24px 60px; }
  .vs-table-section { padding: 60px 24px; }
  .vs-gap-section { padding: 60px 24px; }
  .vs-gap-card { padding: 36px 28px; }
  .vs-cta-section { padding: 60px 24px 80px; }
  .vs-cta-card { padding: 40px 28px; }
  .demo-modal-panel { padding: 40px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .vs-table-wrap { overflow-x: auto; }
  .vs-table { min-width: 560px; }
}

/* ── Injected social proof (matches index styling) ───────── */
.vs-stats-bar + .trust-section,
.vs-gap-section + .testimonials {
  margin-top: 0;
  padding-top: 56px;
  padding-bottom: 56px;
}
.vs-cta-section + .testimonials { display: none; } /* defensive: never repeat above CTA */