/**
 * VJInfotech Comparison Landing Page Stylesheet
 * WP Import Export vs WP All Import
 * High-Converting, Responsive, Modern Design System
 */

/* ==========================================================================
   1. Comparison Hero Section
   ========================================================================== */
.cmp-hero {
  position: relative;
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.12) 0%, rgba(248, 250, 252, 1) 80%);
  border-bottom: 1px solid var(--vji-border, #e2e8f0);
  overflow: hidden;
}

.cmp-hero::before {
  content: '';
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(99, 102, 241, 0) 70%);
  filter: blur(50px);
  pointer-events: none;
}

.cmp-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.25rem;
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.22);
  border-radius: 9999px;
  color: var(--vji-primary, #4f46e5);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.08);
}

.cmp-hero__title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 850;
  line-height: 1.15;
  color: var(--vji-text-heading, #0f172a);
  letter-spacing: -0.035em;
  max-width: 900px;
  margin: 0 auto 1.25rem;
}

.cmp-hero__title-gradient {
  background: linear-gradient(135deg, #4338ca 0%, #6366f1 50%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cmp-hero__desc {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--vji-text-muted, #475569);
  max-width: 780px;
  margin: 0 auto 2.25rem;
}

/* Head-to-Head Hero Matchup Bar */
.cmp-hero__matchup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: #ffffff;
  padding: 0.85rem 1.75rem;
  border-radius: 9999px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--vji-border, #e2e8f0);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.cmp-matchup__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.05rem;
}

.cmp-matchup__item--ours {
  color: var(--vji-primary, #4f46e5);
}

.cmp-matchup__item--theirs {
  color: #64748b;
}

.cmp-matchup__badge-win {
  background: #dcfce7;
  color: #15803d;
  font-size: 0.725rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cmp-matchup__vs {
  background: #f1f5f9;
  color: #475569;
  font-weight: 800;
  font-size: 0.8rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cmp-hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cmp-hero__guarantees {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  margin-top: 1.75rem;
  color: var(--vji-text-muted, #64748b);
  font-size: 0.875rem;
  flex-wrap: wrap;
}

.cmp-hero__guarantee {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ==========================================================================
   2. "Why Switch" 3 Battleground Cards
   ========================================================================== */
.cmp-pillars {
  padding: 4.5rem 0;
  background: #ffffff;
}

.cmp-pillars__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.cmp-pillars__title {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 800;
  color: var(--vji-text-heading, #0f172a);
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

.cmp-pillars__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.cmp-pillar-card {
  background: #ffffff;
  border: 1px solid var(--vji-border, #e2e8f0);
  border-radius: 16px;
  padding: 2.25rem 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.cmp-pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
  border-color: rgba(99, 102, 241, 0.35);
}

.cmp-pillar-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.cmp-pillar-card__icon--blue {
  background: rgba(79, 70, 229, 0.1);
  color: #4f46e5;
}

.cmp-pillar-card__icon--green {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.cmp-pillar-card__icon--purple {
  background: rgba(139, 92, 246, 0.1);
  color: #7c3aed;
}

.cmp-pillar-card__title {
  font-size: 1.35rem;
  font-weight: 750;
  color: var(--vji-text-heading, #0f172a);
  margin-bottom: 0.75rem;
}

.cmp-pillar-card__desc {
  font-size: 0.975rem;
  line-height: 1.6;
  color: var(--vji-text-muted, #475569);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.cmp-pillar-card__vs-box {
  background: #f8fafc;
  border-radius: 10px;
  padding: 1rem 1.15rem;
  font-size: 0.875rem;
  border-left: 3px solid #6366f1;
}

.cmp-pillar-card__vs-line {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.cmp-pillar-card__vs-line:last-child {
  margin-bottom: 0;
}

.cmp-pillar-card__vs-line--good {
  color: #0f172a;
  font-weight: 600;
}

.cmp-pillar-card__vs-line--bad {
  color: #64748b;
  text-decoration: line-through;
}

/* ==========================================================================
   3. The Comprehensive Comparison Table Section
   ========================================================================== */
.cmp-matrix {
  padding: 5rem 0;
  background: #f8fafc;
  border-top: 1px solid var(--vji-border, #e2e8f0);
  border-bottom: 1px solid var(--vji-border, #e2e8f0);
}

.cmp-matrix__header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.cmp-matrix__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 850;
  color: var(--vji-text-heading, #0f172a);
  margin-bottom: 0.85rem;
  letter-spacing: -0.025em;
}

.cmp-matrix__desc {
  font-size: 1.1rem;
  color: var(--vji-text-muted, #475569);
  line-height: 1.6;
}

/* Table Controls (Filter Pills + Search) */
.cmp-table-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.cmp-filter-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cmp-pill-btn {
  background: #ffffff;
  border: 1px solid var(--vji-border, #e2e8f0);
  color: var(--vji-text-muted, #475569);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.cmp-pill-btn:hover {
  background: #f1f5f9;
  color: var(--vji-text-heading, #0f172a);
}

.cmp-pill-btn.is-active {
  background: var(--vji-primary, #4f46e5);
  color: #ffffff;
  border-color: var(--vji-primary, #4f46e5);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.cmp-pill-btn .count {
  background: rgba(0, 0, 0, 0.08);
  padding: 0.1rem 0.4rem;
  border-radius: 9999px;
  font-size: 0.75rem;
}

.cmp-pill-btn.is-active .count {
  background: rgba(255, 255, 255, 0.25);
}

.cmp-search-box {
  position: relative;
  min-width: 280px;
}

.cmp-search-box input {
  width: 100%;
  padding: 0.55rem 1rem 0.55rem 2.5rem;
  border-radius: 9999px;
  border: 1px solid var(--vji-border, #e2e8f0);
  background: #ffffff;
  font-size: 0.875rem;
  color: var(--vji-text-heading, #0f172a);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cmp-search-box input:focus {
  border-color: var(--vji-primary, #4f46e5);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.cmp-search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

/* The Matrix Table */
.cmp-table-wrapper {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--vji-border, #e2e8f0);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
  overflow-x: auto;
}

.cmp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}

.cmp-table th,
.cmp-table td {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.cmp-table thead th {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 1.5rem;
  border-bottom: 2px solid var(--vji-border, #e2e8f0);
}

.cmp-table__th-feature {
  width: 44%;
}

.cmp-table__th-ours {
  width: 28%;
  background: rgba(79, 70, 229, 0.04) !important;
  border-left: 2px solid rgba(79, 70, 229, 0.2);
  border-right: 2px solid rgba(79, 70, 229, 0.2);
}

.cmp-table__th-theirs {
  width: 28%;
}

.cmp-table__th-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cmp-table__th-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  width: fit-content;
}

.cmp-table__th-badge--ours {
  background: #4f46e5;
  color: #ffffff;
}

.cmp-table__th-badge--theirs {
  background: #e2e8f0;
  color: #475569;
}

.cmp-table__th-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--vji-text-heading, #0f172a);
}

.cmp-table__th-subtitle {
  font-size: 0.85rem;
  color: var(--vji-text-muted, #64748b);
}

/* Category Section Rows */
.cmp-row-cat td {
  background: #f8fafc;
  font-weight: 750;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--vji-primary, #4f46e5);
  padding: 0.9rem 1.5rem;
  border-top: 1px solid var(--vji-border, #e2e8f0);
}

/* Feature Rows */
.cmp-row-feat:hover {
  background: #fafafa;
}

.cmp-row-feat.is-hidden,
.cmp-row-cat.is-hidden {
  display: none !important;
}

.cmp-row-feat td.cmp-col-ours {
  background: rgba(79, 70, 229, 0.02);
  border-left: 2px solid rgba(79, 70, 229, 0.15);
  border-right: 2px solid rgba(79, 70, 229, 0.15);
}

.cmp-feat-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--vji-text-heading, #0f172a);
  margin-bottom: 0.25rem;
}

.cmp-feat-desc {
  font-size: 0.85rem;
  color: var(--vji-text-muted, #64748b);
  line-height: 1.45;
}

.cmp-val {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.925rem;
}

.cmp-val--positive {
  color: #0f172a;
  font-weight: 650;
}

.cmp-val--negative {
  color: #64748b;
}

.cmp-icon-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cmp-icon-check svg {
  width: 14px;
  height: 14px;
  stroke-width: 3;
}

.cmp-icon-cross {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fee2e2;
  color: #dc2626;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cmp-icon-cross svg {
  width: 14px;
  height: 14px;
  stroke-width: 3;
}

.cmp-icon-warning {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fef3c7;
  color: #d97706;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cmp-icon-warning svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}

.cmp-badge-highlight {
  display: inline-block;
  background: rgba(79, 70, 229, 0.1);
  color: #4f46e5;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-top: 0.35rem;
}

/* ==========================================================================
   4. Side-by-Side Total Cost Breakdown Card
   ========================================================================== */
.cmp-pricing {
  padding: 5rem 0;
  background: #ffffff;
}

.cmp-pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.cmp-cost-card {
  border-radius: 20px;
  padding: 2.75rem 2.25rem;
  border: 1px solid var(--vji-border, #e2e8f0);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  position: relative;
}

.cmp-cost-card--flagship {
  border: 2px solid #6366f1;
  box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.2);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.03) 0%, #ffffff 100%);
}

.cmp-cost-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #4f46e5, #0ea5e9);
  color: #ffffff;
  font-size: 0.775rem;
  font-weight: 800;
  padding: 0.3rem 1rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.cmp-cost-card__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--vji-text-heading, #0f172a);
  margin-bottom: 0.5rem;
}

.cmp-cost-card__price-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin: 1.25rem 0;
}

.cmp-cost-card__price {
  font-size: 3rem;
  font-weight: 850;
  color: var(--vji-text-heading, #0f172a);
}

.cmp-cost-card__period {
  font-size: 1rem;
  color: var(--vji-text-muted, #64748b);
  font-weight: 600;
}

.cmp-cost-card__list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex-grow: 1;
}

.cmp-cost-card__item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--vji-text-heading, #1e293b);
  line-height: 1.45;
}

.cmp-cost-card__item--extra {
  color: #64748b;
}

.cmp-cost-card__item--extra strong {
  color: #b91c1c;
}

/* ==========================================================================
   5. FAQ Accordion Section
   ========================================================================== */
.cmp-faq {
  padding: 5rem 0;
  background: #f8fafc;
  border-top: 1px solid var(--vji-border, #e2e8f0);
}

.cmp-faq__container {
  max-width: 840px;
  margin: 0 auto;
}

.cmp-faq-item {
  background: #ffffff;
  border: 1px solid var(--vji-border, #e2e8f0);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.2s ease;
}

.cmp-faq-item.is-active {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
}

.cmp-faq-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 750;
  color: var(--vji-text-heading, #0f172a);
  cursor: pointer;
}

.cmp-faq-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease;
  color: #64748b;
  flex-shrink: 0;
}

.cmp-faq-item.is-active .cmp-faq-icon {
  transform: rotate(180deg);
  color: var(--vji-primary, #4f46e5);
}

.cmp-faq-body {
  padding: 0 1.5rem 1.35rem;
  font-size: 0.975rem;
  line-height: 1.65;
  color: var(--vji-text-muted, #475569);
  display: none;
}

.cmp-faq-item.is-active .cmp-faq-body {
  display: block;
}

/* ==========================================================================
   6. Legal Disclaimer Footer Box (Nominative Fair Use)
   ========================================================================== */
.cmp-disclaimer-box {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-top: 3.5rem;
  font-size: 0.825rem;
  line-height: 1.6;
  color: #64748b;
}

.cmp-disclaimer-box strong {
  color: #334155;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .cmp-hero {
    padding: 3.5rem 1rem 2.5rem;
  }
  .cmp-hero__matchup {
    flex-direction: column;
    gap: 0.75rem;
    border-radius: 16px;
    padding: 1rem;
  }
  .cmp-matchup__vs {
    display: none;
  }
  .cmp-table-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .cmp-search-box {
    width: 100%;
  }
  .cmp-table th,
  .cmp-table td {
    padding: 0.85rem 1rem;
  }
  .cmp-feat-title {
    font-size: 0.925rem;
  }
  .cmp-feat-desc {
    font-size: 0.8rem;
  }
}
