/* ============================================================
   pricing.css – Devfolio Studio Pricing Page Styles
   ============================================================ */

/* ---------- Base ---------- */
.pricing-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px 64px;
}
.pricing-header {
  text-align: center;
  margin-bottom: 48px;
}
.pricing-header h1 {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.pricing-header p {
  color: var(--muted);
  font-size: 18px;
  max-width: 560px;
  margin: 12px auto 0;
}

/* ---------- Toggle ---------- */
.toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 24px 0 32px;
  font-size: 14px;
  font-weight: 600;
}
.toggle-wrap .toggle {
  width: 56px;
  height: 30px;
  background: var(--border);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: background .25s;
  flex-shrink: 0;
}
.toggle-wrap .toggle.active {
  background: var(--purple);
}
.toggle-wrap .toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  transition: transform .25s;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.toggle-wrap .toggle.active::after {
  transform: translateX(26px);
}
.toggle-wrap .save-badge {
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  letter-spacing: .04em;
}

/* ---------- Pricing Cards ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}
.pricing-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px 24px;
  transition: all .25s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(124,58,237,.10);
}
.pricing-card.popular {
  border-color: var(--purple);
  box-shadow: 0 8px 32px rgba(124,58,237,.12);
}
.pricing-card.popular::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--purple);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 18px;
  border-radius: 999px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pricing-card .plan-name {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted-2);
}
.pricing-card .price {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 8px 0 2px;
}
.pricing-card .price span {
  font-size: 18px;
  font-weight: 600;
  color: var(--muted-2);
}
/* Hide/Show classes for monthly/yearly labels */
.pricing-card .price .yearly-price {
  display: none;
}
.pricing-card .price .yearly-price.show {
  display: inline;
}
.pricing-card .price .monthly-price.hide {
  display: none;
}
.pricing-card .plan-desc {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
  min-height: 40px;
}
.pricing-card .features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}
.pricing-card .features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-2);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pricing-card .features li:last-child {
  border-bottom: none;
}
.pricing-card .features li .check {
  color: var(--green);
  font-weight: 700;
  font-size: 16px;
}
.pricing-card .features li .cross {
  color: var(--muted-2);
  font-size: 16px;
}
.pricing-card .btn {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 15px;
  border-radius: 14px;
  margin-top: auto;
}
.pricing-card .btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
}
.pricing-card .btn-outline:hover {
  border-color: var(--text);
}

/* ---------- FAQ ---------- */
.pricing-faq {
  margin-top: 60px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.pricing-faq h2 {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}
.pricing-faq details {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 10px;
}
.pricing-faq summary {
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pricing-faq summary::after {
  content: '+';
  font-size: 20px;
  color: var(--muted-2);
}
.pricing-faq details[open] summary::after {
  content: '−';
}
.pricing-faq details p {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
  .pricing-card.popular {
    order: -1;
  }
  .pricing-header h1 {
    font-size: 32px;
  }
}