/* ============================================
   Pricing & Comparison Modal
   ============================================ */

/* ── Pricing Section ── */
.pricing-section {
  padding: 3rem var(--page-px) 5rem;
  background: var(--white);
}
.pricing-inner { max-width: var(--max-w); margin: 0 auto; }
.pricing-header {
  text-align: center; margin-bottom: 3rem;
}
.pricing-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700; line-height: 1.1;
  letter-spacing: -0.03em; color: var(--ink);
  margin-bottom: 0.6rem;
}
.pricing-header h2 span { color: var(--accent-teal); }
.pricing-header p {
  font-size: 1rem; color: var(--body-text); line-height: 1.7;
}
.pricing-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-bottom: 2rem;
}
.pricing-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex; flex-direction: column;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.pricing-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.06);
}
.pricing-card.featured {
  border-color: var(--blue);
  box-shadow: 0 4px 20px rgba(13,148,136,0.1);
}
.pricing-card-header {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.pricing-card-name {
  font-family: var(--font-heading);
  font-size: 1.1rem; font-weight: 700;
}
.pricing-badge {
  font-family: var(--font-heading);
  font-size: 0.65rem; font-weight: 700;
  background: var(--blue); color: var(--white);
  padding: 0.2rem 0.6rem; border-radius: var(--radius-full);
  letter-spacing: 0.03em;
}
.pricing-price {
  font-family: var(--font-heading);
  font-size: 2rem; font-weight: 700;
  color: var(--ink); letter-spacing: -0.03em;
  line-height: 1; margin-bottom: 0.25rem;
}
.pricing-price-sub {
  font-size: 0.8rem; color: var(--muted);
  margin-bottom: 1.25rem;
}
.pricing-desc {
  font-size: 0.88rem; color: var(--body-text);
  line-height: 1.6; margin-bottom: 1.5rem;
  flex: 1;
}
.pricing-features {
  list-style: none;
  display: flex; flex-direction: column; gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.pricing-features li {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.84rem; color: var(--ink); font-weight: 500;
}
.pricing-features svg { color: var(--blue); flex-shrink: 0; }
.pricing-card .btn-blue {
  width: 100%; justify-content: center;
  padding: 0.7rem 1.5rem; font-size: 0.85rem;
}
.pricing-card .btn-card-outline {
  display: flex; align-items: center; justify-content: center;
  width: 100%;
  padding: 0.7rem 1.5rem; border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.85rem; font-weight: 600;
  color: var(--ink); background: var(--white);
  border: 1.5px solid var(--rule);
  text-decoration: none; transition: all 0.2s;
}
.pricing-card .btn-card-outline:hover {
  border-color: var(--blue); color: var(--blue);
}
.pricing-footer {
  text-align: center;
}
.pricing-footer a {
  font-size: 0.88rem; font-weight: 600;
  color: var(--body-text); text-decoration: none;
  transition: color 0.2s;
}
.pricing-footer a:hover { color: var(--blue); }

/* ── Comparison Modal ── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
  padding: 2rem;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white); border-radius: var(--radius-lg);
  max-width: 900px; width: 100%; max-height: 85vh;
  overflow-y: auto; position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.15);
  padding: 2.5rem;
}
.modal-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  background: none; border: none; cursor: pointer;
  color: var(--muted); transition: color 0.2s;
  width: 32px; height: 32px; display: grid; place-items: center;
}
.modal-close:hover { color: var(--ink); }
.modal-title {
  font-family: var(--font-heading);
  font-size: 1.5rem; font-weight: 700;
  color: var(--ink); letter-spacing: -0.02em;
  margin-bottom: 2rem; text-align: center;
}

/* Comparison table */
.cmp-table { width: 100%; border-collapse: collapse; }
.cmp-table th, .cmp-table td {
  padding: 0.7rem 1rem; font-size: 0.84rem;
  text-align: center; border-bottom: 1px solid var(--rule);
}
.cmp-table th:first-child, .cmp-table td:first-child {
  text-align: left; color: var(--ink); font-weight: 500;
}
.cmp-table thead th {
  font-family: var(--font-heading);
  font-size: 1rem; font-weight: 700;
  color: var(--ink); padding-bottom: 1rem;
  border-bottom: 2px solid var(--rule);
}
.cmp-table thead th.pro-col {
  background: #eaf1f7; border-radius: 12px 12px 0 0;
}
.cmp-table td.pro-col { background: #f6f9fc; }
.cmp-table .cmp-group td {
  font-family: var(--font-heading);
  font-weight: 700; font-size: 0.9rem;
  color: var(--ink); padding-top: 1.5rem;
  border-bottom: 2px solid var(--rule);
  text-align: left;
}
.cmp-check { color: var(--blue); }
.cmp-check-pro {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 5px;
  background: var(--blue); color: var(--white);
}
.cmp-dash { color: var(--muted); }
.cmp-value { font-weight: 600; color: var(--ink); }
.cmp-table .cmp-cta td { border-bottom: none; padding-top: 1.5rem; }
.cmp-table .cmp-cta a {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.5rem 1.25rem; border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.8rem; font-weight: 600;
  text-decoration: none; transition: all 0.2s;
}
.cmp-cta-outline {
  border: 1.5px solid var(--rule); color: var(--ink); background: var(--white);
}
.cmp-cta-outline:hover { border-color: var(--blue); color: var(--blue); }
.cmp-cta-fill {
  background: var(--blue); color: var(--white); border: 1.5px solid var(--blue);
}
.cmp-cta-fill:hover { background: #154068; border-color: #154068; }

@media (max-width: 600px) {
  .modal-box { padding: 1.5rem 1rem; }
  .cmp-table th, .cmp-table td { padding: 0.5rem 0.5rem; font-size: 0.75rem; }
  .cmp-table thead th { font-size: 0.85rem; }
}
