/* ===== Pricing page styles ===== */

.nav-links a.is-current { color: var(--text); }

/* Plans */
.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 36px 32px;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  min-height: 520px;
}

.plan-popular {
  border-color: rgba(56, 120, 255, 0.5);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(56,120,255,0.14), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg-1));
  box-shadow:
    0 0 0 1px rgba(56,120,255,0.18),
    0 30px 80px -40px rgba(56,120,255,0.45);
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 28px;
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #4d88ff, var(--accent));
  border: 1px solid var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow:
    0 0 0 4px var(--bg),
    0 8px 24px -8px var(--accent-glow);
}

.plan-head { border-bottom: 1px dashed var(--border); padding-bottom: 24px; margin-bottom: 24px; }

.plan-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: -0.005em;
  margin-bottom: 14px;
}
.plan-popular .plan-name { color: var(--accent-2); }

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.plan-price-amt {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
}
.plan-price-per {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-dim);
}

.plan-credits {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.plan-blurb {
  margin: 14px 0 0;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.5;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 12px;
  flex: 1;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  color: var(--text);
}
.plan-features .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  background: rgba(40, 194, 103, 0.12);
  color: var(--success);
  margin-top: 1px;
}
.plan-popular .plan-features .check {
  background: var(--accent-soft);
  color: var(--accent-2);
}

.plan-cta {
  width: 100%;
  justify-content: center;
  height: 52px;
  font-size: 15px;
  font-weight: 600;
}
.plan-cta .bolt { display: inline-flex; }

/* Note row */
.plans-note {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  margin-top: 28px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-dim);
}
.plans-note-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-2);
  font-weight: 500;
  transition: color .15s;
}
.plans-note-link:hover { color: #fff; }
.plans-note-link .arr { transition: transform .15s; }
.plans-note-link:hover .arr { transform: translateX(2px); }

/* Credits table */
.credits-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.credits-table thead th {
  text-align: left;
  padding: 16px 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}
.credits-table thead th:nth-child(2) { width: 120px; }
.credits-table thead th:nth-child(3) { width: 44%; }

.credits-table tbody td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text);
  vertical-align: middle;
}
.credits-table tbody tr:last-child td { border-bottom: 0; }

.credits-cost { font-family: var(--font-mono); }
.credits-cost-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(56,120,255,0.3);
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.credits-row-free .credits-cost-num {
  background: rgba(40, 194, 103, 0.08);
  border-color: rgba(40, 194, 103, 0.3);
  color: var(--success);
}
.credits-row-free td { color: var(--text-dim); }
.credits-row-free td:first-child { color: var(--success); font-weight: 500; }

.credits-note { color: var(--text-dim); font-family: var(--font-mono); font-size: 12.5px; }

/* FAQ */
.faq-list {
  display: grid;
  gap: 8px;
  max-width: 900px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-2);
  overflow: hidden;
  transition: border-color .15s, background .15s;
}
.faq-item.is-open {
  border-color: var(--border-hi);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: transparent;
  border: 0;
  color: var(--text);
  text-align: left;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: color .15s;
}
.faq-q:hover { color: #fff; }

.faq-chev {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-hi);
  color: var(--text-dim);
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), background .15s, color .15s;
}
.faq-item.is-open .faq-chev {
  transform: rotate(45deg);
  background: var(--accent-soft);
  border-color: rgba(56,120,255,0.4);
  color: var(--accent-2);
}

.faq-a {
  padding: 0 24px 22px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
  max-width: 70ch;
}

/* Responsive */
@media (max-width: 960px) {
  .plans-grid { grid-template-columns: 1fr; gap: 28px; }
  .plan { padding: 32px 26px 28px; min-height: 0; }
  .plan-badge { left: 22px; }
  .plan-price-amt { font-size: 52px; }

  .credits-table thead th,
  .credits-table tbody td { padding: 14px 16px; }
  .credits-table thead th:nth-child(3),
  .credits-table tbody td:nth-child(3) { display: none; }

  .faq-q { padding: 18px 18px; font-size: 15px; }
  .faq-a { padding: 0 18px 18px; }
}
