/* Comparison pages styles (vs Slack, Teams, Discord) */

/* Plan Comparison */
.plan-comparison-section {
  padding: var(--section-padding) 24px;
  background: var(--gray-50);
}

.plan-comparison {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.plan-box {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 36px;
  text-align: center;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.plan-box.community {
  border: 2px solid var(--orange);
}

.plan-box.business {
  border: 2px solid var(--blue);
}

.plan-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.plan-box.community .plan-label {
  background: rgba(255, 159, 10, 0.1);
  color: var(--orange);
}

.plan-box.business .plan-label {
  background: var(--blue-light);
  color: var(--blue);
}

.plan-price {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--gray-700);
}

.plan-price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--gray-500);
}

.plan-users {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 4px;
}

.plan-extra {
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 24px;
}

.plan-features {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
  width: 100%;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-600);
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
}

.plan-features li:last-child {
  border-bottom: none;
}

.plan-features i {
  color: var(--green);
  font-size: 12px;
}

.plan-box .btn-primary,
.plan-box .btn-secondary {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

@media (max-width: 768px) {
  .plan-comparison {
    grid-template-columns: 1fr;
  }
}

/* Discord Comparison */
.discord-comparison {
  padding: var(--section-padding) 24px;
}

/* Discord vs mssgs Table (Wide) */
.comparison-table-wide {
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: auto;
}

/* Sticky mssgs column */
.vs-comparison th.mssgs-col,
.vs-comparison tbody tr:not(.comparison-section-header) td:last-child {
  position: sticky;
  right: 0;
  background: rgba(66, 123, 180, 0.06);
  z-index: 1;
}

[data-theme="dark"] .vs-comparison th.mssgs-col,
[data-theme="dark"] .vs-comparison tbody tr:not(.comparison-section-header) td:last-child {
  background: rgba(66, 123, 180, 0.12);
}

.vs-comparison thead th.mssgs-col {
  background: rgba(66, 123, 180, 0.08);
}

[data-theme="dark"] .vs-comparison thead th.mssgs-col {
  background: rgba(66, 123, 180, 0.15);
}

.vs-comparison {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

.vs-comparison th,
.vs-comparison td {
  padding: 16px 24px;
  text-align: left;
}

.vs-comparison thead th {
  background: var(--bg-tertiary);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.vs-comparison thead th:first-child {
  width: 40%;
}

.vs-comparison thead th.competitor-col {
  width: 30%;
  color: var(--text-tertiary);
}

.vs-comparison thead th.mssgs-col {
  width: 30%;
  color: var(--brand);
}

.vs-comparison tbody tr {
  border-bottom: 1px solid var(--border-color);
}

.vs-comparison tbody tr:last-child {
  border-bottom: none;
}

.vs-comparison tbody tr:hover {
  background: var(--bg-hover);
}

.vs-comparison tbody tr:not(.comparison-section-header):hover td:last-child {
  background: rgba(66, 123, 180, 0.10);
}

[data-theme="dark"] .vs-comparison tbody tr:not(.comparison-section-header):hover td:last-child {
  background: rgba(66, 123, 180, 0.18);
}

.vs-comparison .feature-label {
  font-weight: 500;
  color: var(--text-primary);
}

.vs-comparison .negative {
  color: var(--text-tertiary);
}

.vs-comparison .positive {
  color: var(--brand);
  font-weight: 500;
}

.vs-comparison .neutral {
  color: var(--text-secondary);
}

/* 4-column comparison table (Slack, Teams, Discord, mssgs) */
.vs-comparison-4col thead th:first-child {
  width: 28%;
  min-width: 180px;
}

.vs-comparison-4col thead th.competitor-col {
  width: 18%;
  min-width: 120px;
}

.vs-comparison-4col thead th.mssgs-col {
  width: 18%;
  min-width: 130px;
}

.vs-comparison .comparison-section-header td {
  background: var(--bg-tertiary);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 24px;
  border-top: 1px solid var(--border-color);
}

.vs-comparison tbody tr.comparison-section-header:hover {
  background: var(--bg-tertiary);
}

.vs-comparison tbody tr.comparison-section-header:first-child td {
  border-top: none;
}

.comparison-note {
  max-width: 700px;
  margin: 24px auto 0;
  padding: 16px 20px;
  background: var(--bg-secondary);
  border-radius: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  border: 1px solid var(--border-color);
}

.comparison-note strong {
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .vs-comparison th,
  .vs-comparison td {
    padding: 12px 14px;
    font-size: 14px;
  }

  .vs-comparison thead th:first-child {
    width: 35%;
  }

  .vs-comparison thead th.competitor-col,
  .vs-comparison thead th.mssgs-col {
    width: 32.5%;
  }

  .vs-comparison-4col thead th:first-child {
    width: 26%;
  }

  .vs-comparison-4col thead th.competitor-col,
  .vs-comparison-4col thead th.mssgs-col {
    width: 18.5%;
  }

  .vs-comparison .comparison-section-header td {
    padding: 10px 14px;
    font-size: 12px;
  }
}

@media (max-width: 900px) {
  .comparison-table-wide {
    margin: 0 -16px;
    padding: 0 16px;
  }

  .vs-comparison-4col {
    min-width: 700px;
  }

  .vs-comparison-4col th,
  .vs-comparison-4col td {
    padding: 10px 12px;
    font-size: 13px;
  }
}

/* ===== VS SLACK PAGE ===== */

.vs-hero {
  padding: 160px 24px 60px;
  text-align: center;
}

.vs-hero-content {
  max-width: 600px;
  margin: 0 auto;
}

.vs-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.vs-logo {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
}

.vs-logo.mssgs {
  background: var(--blue-light);
}

.vs-logo.mssgs svg {
  width: 36px;
  height: 36px;
  fill: var(--blue);
}

.vs-logo.slack {
  background: #4a154b;
}

.vs-logo.teams {
  background: #f3f3f3;
}

.vs-logo.discord {
  background: #5865f2;
}

.vs-logo svg {
  width: 42px;
  height: 42px;
}

.vs-divider {
  font-size: 24px;
  font-weight: 600;
  color: var(--gray-400);
}

.vs-hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 12px;
}

.quick-comparison {
  padding: 0 24px 60px;
}

.quick-compare-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 32px 48px;
  background: var(--gray-50);
  border-radius: 20px;
  max-width: 700px;
  margin: 0 auto;
}

.compare-side {
  text-align: center;
}

.compare-label {
  display: block;
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.compare-price {
  font-size: 40px;
  font-weight: 700;
}

.compare-price.old {
  color: var(--gray-400);
  text-decoration: line-through;
}

.compare-note {
  display: block;
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 6px;
}

.compare-arrow {
  width: 48px;
  height: 48px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compare-arrow i {
  color: var(--white);
  font-size: 18px;
}

.savings-highlight {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 24px;
  background: var(--green-light);
  color: var(--green);
  border-radius: 980px;
  font-size: 16px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.comparison-section {
  padding: 60px 24px;
  background: var(--gray-50);
}

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

.vs-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.vs-table th,
.vs-table td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
}

.vs-table th {
  background: var(--gray-50);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
}

.vs-table th.winner-col {
  color: var(--blue);
}

.vs-table td {
  font-size: 15px;
}

.vs-table .winner {
  color: var(--blue);
  font-weight: 600;
}

.vs-table .loser {
  color: var(--gray-400);
}

.vs-table .positive {
  color: var(--green);
}

.vs-table .negative {
  color: var(--gray-400);
}

.vs-table .coming-soon {
  font-size: 12px;
  color: var(--gray-400);
  font-style: italic;
}

.why-switch-section {
  padding: var(--section-padding) 24px;
}

.why-switch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-switch-item {
  text-align: center;
  padding: 28px;
}

.why-switch-icon {
  width: 56px;
  height: 56px;
  background: var(--blue-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.why-switch-icon i {
  font-size: 24px;
  color: var(--blue);
}

.why-switch-icon.eu i {
  color: var(--blue);
}

.why-switch-icon.green {
  background: var(--green-light);
}

.why-switch-icon.green i {
  color: var(--green);
}

.why-switch-icon.orange {
  background: var(--orange-light);
}

.why-switch-icon.orange i {
  color: var(--orange);
}

.why-switch-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.why-switch-item p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.5;
}

.keep-gain-section {
  padding: 60px 24px;
  background: var(--gray-50);
}

.keep-gain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.keep-card,
.gain-card {
  padding: 32px;
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.keep-card h3,
.gain-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.keep-card h3 i {
  color: var(--blue);
}

.gain-card h3 i {
  color: var(--orange);
}

.keep-card ul,
.gain-card ul {
  list-style: none;
}

.keep-card li,
.gain-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 15px;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
}

.keep-card li:last-child,
.gain-card li:last-child {
  border-bottom: none;
}

.keep-card li i {
  font-size: 12px;
  color: var(--green);
}

.gain-card li i {
  font-size: 12px;
  color: var(--orange);
}

.migration-section {
  padding: var(--section-padding) 24px;
}

.migration-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto 32px;
}

.migration-step {
  text-align: center;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.migration-step h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.migration-step p {
  font-size: 14px;
  color: var(--gray-500);
}

.migration-note {
  text-align: center;
  font-size: 14px;
  color: var(--gray-500);
}

.migration-note a {
  color: var(--blue);
  text-decoration: none;
}

.migration-note a:hover {
  text-decoration: underline;
}

/* ================================ */
/* Also compare (cross-links)       */
/* ================================ */

.also-compare {
  padding: 48px 0 0;
}

.also-compare h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.also-compare-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.also-compare-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 14px;
  color: var(--text-primary);
  text-decoration: none;
  overflow: hidden;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.also-compare-card:hover {
  border-color: var(--border-secondary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.also-compare-accent {
  width: 4px;
  align-self: stretch;
  border-radius: 4px;
  flex-shrink: 0;
}

.also-compare-accent.slack { background: #4a154b; }
.also-compare-accent.discord { background: #5865f2; }
.also-compare-accent.teams { background: #5059c9; }

.also-compare-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.also-compare-title {
  font-weight: 600;
  font-size: 0.9375rem;
}

.also-compare-subtitle {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.also-compare-card i {
  color: var(--text-tertiary);
  font-size: 0.875rem;
  flex-shrink: 0;
  transition: transform 0.2s, color 0.2s;
}

.also-compare-card:hover i {
  transform: translateX(3px);
  color: var(--text-primary);
}

@media (max-width: 600px) {
  .also-compare-links {
    grid-template-columns: 1fr;
  }
}
