/* ── Comparison table (Free vs Teams, Passive vs Partnership) ── */

.comparison-table {
  margin: 2rem 0;
  border: 2px solid #b8a88a;
  border-radius: 0.75rem;
  overflow: hidden;
}

.comparison-table h2 {
  padding: 1.25rem 1.5rem 0.5rem;
  margin: 0;
  font-size: 1.3rem;
  color: #2c2417;
}

.comparison-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.2fr;
  border-bottom: 1px solid #e0d6c4;
}

.comparison-row:last-child {
  border-bottom: none;
}

.comparison-header {
  background: #2c2417;
}

.comparison-header .comparison-cell {
  color: #f0ebe1 !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 1rem 1.25rem;
  background: #2c2417 !important;
}

.comparison-header .comparison-label {
  background: #2c2417 !important;
  color: #f0ebe1 !important;
}

.comparison-header .comparison-cell p,
.comparison-header .comparison-cell strong {
  color: #f0ebe1 !important;
}

.comparison-cell {
  padding: 0.85rem 1.25rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #3d3428;
}

.comparison-label {
  font-weight: 700;
  color: #2c2417;
  background: #f5f0e6;
  border-right: 1px solid #e0d6c4;
}

.comparison-highlight {
  background: #f5eeda;
  color: #2c2417;
  font-weight: 500;
  border-left: 3px solid #8b6914;
}

.comparison-row:nth-child(even) .comparison-cell:not(.comparison-label):not(.comparison-highlight) {
  background: #fdfbf7;
}

.comparison-row:nth-child(even) .comparison-highlight {
  background: #f0e7cc;
}

/* ── Pricing cards ── */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.pricing-card {
  background: #faf6ee;
  border: 2px solid #d4c9b0;
  border-radius: 0.75rem;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.pricing-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: #2c2417;
}

.pricing-card-featured {
  border-color: #8b6914;
  box-shadow: 0 4px 20px rgba(139, 105, 20, 0.15);
  position: relative;
}

.pricing-card-featured::before {
  content: "Most popular";
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: #8b6914;
  color: #faf6ee;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 1rem;
  border-radius: 1rem;
  white-space: nowrap;
}

.pricing-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: #2c2417;
  line-height: 1.1;
  margin-bottom: 0.15rem;
}

.pricing-period {
  font-size: 0.85rem;
  color: #7a6e5c;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e0d6c4;
}

.pricing-card p {
  font-size: 0.9rem;
  color: #5a4e3e;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.pricing-card li {
  font-size: 0.88rem;
  color: #3d3428;
  line-height: 1.5;
  padding: 0.4rem 0 0.4rem 1.4rem;
  position: relative;
}

.pricing-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #8b6914;
  font-weight: 700;
}

.pricing-card li strong {
  color: #2c2417;
}

/* ── Responsive ── */

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

  .comparison-header {
    display: none;
  }

  .comparison-label {
    border-right: none;
    border-bottom: 1px solid #e0d6c4;
    padding: 0.75rem 1rem 0.35rem;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .comparison-cell:not(.comparison-label) {
    padding: 0.35rem 1rem 0.75rem;
  }

  .comparison-row {
    border-bottom: 2px solid #e0d6c4;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .pricing-card-featured::before {
    top: -0.6rem;
  }
}

@media (min-width: 769px) and (max-width: 960px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
}
