/* ============================================================
   PRICING PAGE
   ============================================================ */

/* --- Hero --- */
.pricing-hero {
  padding: calc(var(--nav-h) + 80px) 0 80px;
}

.pricing-hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  max-width: 700px;
}

.pricing-hero .section-sub {
  max-width: 600px;
}

/* --- How it works --- */
.pricing-how {
  padding: 60px 0 80px;
  border-top: 1px solid var(--border);
}

.pricing-how__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.pricing-how__step {
  padding: 28px;
}

.pricing-how__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}

.pricing-how__step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.pricing-how__step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Pricing tiers --- */
.pricing-tiers {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-top: 20px;
}

.pricing-card {
  background: var(--bg-card);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background 0.2s ease;
}

/* First and last card — round corners since grid lost its overflow:hidden */
.pricing-card:first-child {
  border-top-left-radius: var(--radius-lg);
  border-bottom-left-radius: var(--radius-lg);
}
.pricing-card:last-child {
  border-top-right-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

.pricing-card:hover {
  background: var(--bg-card-hover);
}

.pricing-card--featured {
  background: var(--bg-surface);
}

.pricing-card--featured:hover {
  background: var(--bg-card-hover);
}

.pricing-card__badge {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 5px 12px;
  border-radius: 999px;
  display: inline-block;
  position: absolute;
  top: -14px;
  left: 32px;
}

.pricing-card__header {
  margin-bottom: 28px;
}

.pricing-card__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 12px;
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 12px;
}

.pricing-card__amount {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.pricing-card__period {
  font-size: 15px;
  color: var(--text-muted);
}

.pricing-card__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- Features list --- */
.pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
}

.pricing-card__features li {
  font-size: 14px;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-dim);
  line-height: 1.5;
}

.pricing-card__features li:last-child {
  border-bottom: none;
}

.pricing-card__features li strong {
  color: var(--text);
  font-weight: 600;
}

/* --- Best for --- */
.pricing-card__ideal {
  margin-bottom: 24px;
}

.pricing-card__ideal-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}

.pricing-card__ideal p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

.pricing-card__cta {
  margin-top: auto;
  text-align: center;
  justify-content: center;
  width: 100%;
}

/* --- Specialist bench --- */
.pricing-bench {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.bench-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.bench-card {
  background: var(--bg-card);
  padding: 28px 24px;
  transition: background 0.2s ease;
}

.bench-card:hover {
  background: var(--bg-card-hover);
}

.bench-card__icon {
  color: var(--accent);
  font-size: 14px;
  display: block;
  margin-bottom: 14px;
}

.bench-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.bench-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- FAQ --- */
.pricing-faq {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.faq-list {
  max-width: 720px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item__q {
  padding: 20px 0;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item__q::-webkit-details-marker {
  display: none;
}

.faq-item__q::after {
  content: '+';
  font-family: var(--mono);
  font-size: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-item__q::after {
  content: '−';
  color: var(--accent);
}

.faq-item__a {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  padding: 0 0 20px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .bench-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .pricing-hero {
    padding: calc(var(--nav-h) + 60px) 0 60px;
  }

  .pricing-how__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .pricing-card {
    padding: 32px 24px;
  }

  .pricing-card__amount {
    font-size: 32px;
  }

  .bench-grid {
    grid-template-columns: 1fr;
  }

  .pricing-tiers,
  .pricing-bench,
  .pricing-faq {
    padding: 60px 0;
  }
}
