/* ── Newspilot Pricing Page ── */

html, body { overflow: auto; height: auto; }

.pricing-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 24px;
}

/* ── Title ── */
.pricing-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}

.pricing-subtitle {
  text-align: center;
  color: var(--text-2);
  font-size: 18px;
  margin-top: 12px;
  font-weight: 400;
}

/* ── Grid ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

/* ── Plan Card ── */
.plan-card {
  background: var(--bg-2);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s, border-color .25s;
}

.plan-card:hover {
  box-shadow: var(--shadow-lg);
}

.plan-card.featured {
  border: 2px solid var(--text);
  box-shadow: var(--shadow-lg);
}

.plan-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.plan-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}

.plan-price span {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-2);
}

.plan-desc {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 8px;
  line-height: 1.5;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  flex: 1;
}

.plan-features li {
  font-size: 13px;
  color: var(--text-2);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  line-height: 1.4;
}

.plan-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 10px;
  height: 10px;
  background: var(--bg-3);
  border-radius: 50%;
  border: 2px solid var(--text-3);
}

.plan-card.featured .plan-features li::before {
  background: var(--text);
  border-color: var(--text);
}

.plan-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 500;
  font-size: 13px;
  color: #fff;
  background: var(--text);
  padding: 10px 24px;
  border-radius: 980px;
  text-decoration: none;
  text-align: center;
  transition: opacity .2s;
  cursor: pointer;
  border: none;
  width: 100%;
}

.plan-contact {
  padding: 10px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.8;
}

.plan-contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.xianyu-link {
  cursor: pointer;
  color: #d4853a;
  font-weight: 500;
  transition: opacity .2s;
}
.xianyu-link:hover { opacity: .7; }
.wechat-link {
  cursor: pointer;
  color: #5a9e6f;
  font-weight: 500;
  transition: opacity .2s;
}
.wechat-link:hover { opacity: .7; }

/* QR popup */
.qr-popup {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.4); z-index: 200;
  align-items: center; justify-content: center;
}
.qr-popup.show { display: flex; }
.qr-popup-box {
  background: var(--bg-2); border-radius: var(--radius);
  padding: 48px; text-align: center; position: relative;
  box-shadow: var(--shadow-lg); max-width: 540px;
}
.qr-popup-title { font-size: 20px; font-weight: 600; margin-bottom: 24px; }
.qr-popup-img { max-width: 440px; max-height: 70vh; border-radius: var(--radius-sm); object-fit: contain; }
.qr-popup-hint { font-size: 13px; color: var(--text-3); margin-top: 16px; }
.qr-popup-close {
  position: absolute; top: 12px; right: 16px; background: none; border: none;
  font-size: 28px; color: var(--text-3); cursor: pointer; padding: 4px 8px;
}
.qr-popup-close:hover { color: var(--text); }

.plan-cta:hover {
  opacity: .85;
  color: #fff;
}

/* ── FAQ Section ── */
.faq-section {
  margin-top: 80px;
}

.faq-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 32px;
}

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

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

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  user-select: none;
  transition: color .2s;
}

.faq-question:hover {
  color: var(--text-2);
}

.faq-arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  color: var(--text-3);
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.4,0,.2,1), padding .35s;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding-bottom: 20px;
}

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

  .pricing-title {
    font-size: 28px;
  }

  .pricing-subtitle {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
