/* Plans page — Chatbase-inspired pricing layout */

.plans-page {
  background: var(--bg);
}

.plans-hero {
  padding: 72px 0 48px;
  text-align: center;
}

.plans-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.1;
  margin: 0 0 12px;
  max-width: 720px;
  margin-inline: auto;
}

.plans-hero p {
  font-size: 1.125rem;
  color: var(--muted);
  margin: 0;
  max-width: 520px;
  margin-inline: auto;
}

.plans-billing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 40px 0 48px;
  font-size: .9375rem;
}

.plans-billing span {
  color: var(--muted);
  transition: color .15s;
}

.plans-billing span.active {
  color: var(--fg);
  font-weight: 600;
}

.plans-billing .save-badge {
  font-size: .75rem;
  background: #dcfce7;
  color: #166534;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}

/* Cards row — Chatbase horizontal layout */
.plans-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 64px;
}

@media (max-width: 1024px) {
  .plans-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .plans-cards {
    grid-template-columns: 1fr;
  }
}

.plan-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow .2s, border-color .2s;
}

.plan-card:hover {
  box-shadow: var(--shadow);
}

.plan-card.is-featured {
  border-color: var(--fg);
  box-shadow: 0 0 0 1px var(--fg);
}

.plan-card .plan-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--fg);
  color: #fff;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-card h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 4px;
  letter-spacing: -.01em;
}

.plan-card .plan-tagline {
  font-size: .8125rem;
  color: var(--muted);
  margin: 0 0 20px;
  min-height: 2.5em;
}

.plan-card .plan-price {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: 4px;
}

.plan-card .plan-price small {
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
}

.plan-card .plan-billed {
  font-size: .75rem;
  color: var(--muted);
  min-height: 1.25rem;
  margin-bottom: 20px;
}

.plan-card .plan-cta {
  width: 100%;
  margin-bottom: 24px;
  justify-content: center;
}

.plan-card .plan-includes {
  font-size: .75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 12px;
}

.plan-card .plan-includes:first-of-type {
  margin-top: 0;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  flex: 1;
}

.plan-features li {
  font-size: .8125rem;
  color: var(--fg);
  padding: 6px 0 6px 22px;
  position: relative;
  line-height: 1.45;
}

.plan-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2322c55e'%3E%3Cpath d='M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.75.75 0 0 1 1.06-1.06L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.plan-features li.muted {
  color: var(--muted);
}

.plan-features li.muted::before {
  opacity: .35;
}

/* Trust strip */
.plans-trust {
  text-align: center;
  padding: 32px 0 56px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 64px;
}

.plans-trust p {
  font-size: .875rem;
  color: var(--muted);
  margin: 0;
}

.plans-trust strong {
  color: var(--fg);
  font-weight: 600;
}

/* Compare table */
.plans-compare {
  margin-bottom: 80px;
}

.plans-compare .section-header {
  margin-bottom: 32px;
}

.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: .875rem;
}

.compare-table th,
.compare-table td {
  padding: 14px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--fg);
  position: sticky;
  left: 0;
  background: var(--card);
  min-width: 200px;
}

.compare-table thead th {
  font-weight: 600;
  font-size: .9375rem;
  padding-top: 20px;
  background: #fafafa;
  border-bottom: 1px solid var(--border);
}

.compare-table thead th.featured-col {
  background: #f5f5f5;
  position: relative;
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table tbody tr:hover td {
  background: #fafafa;
}

.compare-table tbody tr:hover td:first-child {
  background: #fafafa;
}

.compare-table .cell-yes {
  color: #16a34a;
  font-weight: 600;
}

.compare-table .cell-no {
  color: #d4d4d4;
}

.compare-table .compare-section td {
  background: #f5f5f5;
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  padding: 10px 20px;
  text-align: left;
}

.compare-table .featured-col {
  background: rgba(37, 99, 235, .04);
}

/* FAQ on plans page */
.plans-faq {
  margin-bottom: 80px;
}

.plans-faq .section-header {
  margin-bottom: 32px;
}

/* CTA */
.plans-cta {
  text-align: center;
  padding: 64px 24px;
  background: var(--fg);
  color: #fff;
  border-radius: var(--radius-lg);
  margin-bottom: 64px;
}

.plans-cta h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -.03em;
  margin: 0 0 12px;
}

.plans-cta p {
  color: rgba(255, 255, 255, .7);
  margin: 0 0 28px;
  font-size: 1.0625rem;
}

.plans-cta .btn-primary {
  background: #fff;
  color: var(--fg);
}

.plans-cta .btn-primary:hover {
  background: #f5f5f5;
}

.nav-desktop a.is-active,
.mobile-nav a.is-active {
  color: var(--accent);
  font-weight: 600;
}
