/* ============================================================
   pricing.css  —  Nathbrok pricing page
   Depends on base.css for: --dark-bg, --gov-navy, --gov-gold,
   --gov-dark, --gov-light, --light-text, Poppins font
   ============================================================ */

/* ---------- local tokens ----------------------------------- */
:root {
  --pr-surface:      rgba(255,255,255,0.04);
  --pr-surface-mid:  rgba(255,255,255,0.07);
  --pr-border:       rgba(255,255,255,0.08);
  --pr-border-mid:   rgba(255,255,255,0.14);
  --pr-text:         #e8eaf0;
  --pr-muted:        #8892a8;
  --pr-faint:        #4a5168;
  --pr-gold:         var(--gov-gold);
  --pr-green:        #3ecf8e;
  --pr-green-bg:     rgba(62,207,142,0.12);
  --pr-blue:         #4f8cff;
  --pr-blue-bg:      rgba(79,140,255,0.12);
  --pr-amber-bg:     rgba(212,175,55,0.12);
  --pr-red:          #f87171;
  --pr-radius:       14px;
  --pr-radius-sm:    8px;
  --pr-card-pad:     1.75rem;
}

/* ---------- page wrapper ----------------------------------- */
.pricing-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

/* ---------- hero ------------------------------------------- */
.pricing-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.pricing-hero__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pr-gold);
  background: var(--pr-amber-bg);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 1.25rem;
}

.pricing-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--pr-text);
  margin: 0 0 .75rem;
  line-height: 1.2;
}

.pricing-hero__sub {
  font-size: 1rem;
  color: var(--pr-muted);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* ---------- billing toggle --------------------------------- */
.pricing-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--pr-surface);
  border: 1px solid var(--pr-border);
  border-radius: 30px;
  padding: 4px;
  gap: 4px;
}

.pricing-toggle__btn {
  padding: 7px 22px;
  border-radius: 24px;
  border: none;
  background: transparent;
  color: var(--pr-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.pricing-toggle__btn.active {
  background: var(--pr-gold);
  color: #0d1117;
}

/* ---------- cards grid ------------------------------------- */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 4rem;
  align-items: start;
}

/* ---------- individual card -------------------------------- */
.pricing-card {
  background: var(--pr-surface);
  border: 1px solid var(--pr-border);
  border-radius: var(--pr-radius);
  padding: var(--pr-card-pad);
  position: relative;
  transition: border-color .2s, transform .2s;
}

.pricing-card:hover {
  border-color: var(--pr-border-mid);
  transform: translateY(-3px);
}

.pricing-card--featured {
  border: 2px solid var(--pr-gold);
  background: rgba(212,175,55,0.04);
}

.pricing-card--featured:hover {
  border-color: var(--pr-gold);
}

.pricing-card__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pr-gold);
  color: #0d1117;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 3px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: .75rem;
}

.pricing-card__name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--pr-muted);
}

.pricing-card__inactive {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(248,113,113,0.12);
  color: var(--pr-red);
  border: 1px solid rgba(248,113,113,0.2);
}

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

.pricing-card__currency {
  font-size: 15px;
  color: var(--pr-muted);
  margin-top: 6px;
}

.pricing-card__amount {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--pr-text);
  line-height: 1;
}

.pricing-card__period {
  font-size: 12px;
  color: var(--pr-muted);
  margin-bottom: 1rem;
}

.pricing-card__desc {
  font-size: 13px;
  color: var(--pr-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.pricing-card__divider {
  height: 1px;
  background: var(--pr-border);
  margin-bottom: 1.25rem;
}

/* ---------- feature groups --------------------------------- */
.feat-group {
  margin-bottom: 1.1rem;
}

.feat-group__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--pr-faint);
  margin-bottom: .45rem;
}

.feat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  font-size: 13px;
  color: var(--pr-text);
}

.feat-row--muted {
  color: var(--pr-faint);
}

.feat-icon {
  font-size: 12px;
  width: 14px;
  flex-shrink: 0;
  color: var(--pr-muted);
}

.feat-icon--check { color: var(--pr-green); }
.feat-icon--cross  { color: var(--pr-faint); }

/* ---------- pills ------------------------------------------ */
.feat-pill {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
}

.feat-pill--green  { background: var(--pr-green-bg);  color: var(--pr-green); }
.feat-pill--blue   { background: var(--pr-blue-bg);   color: var(--pr-blue); }
.feat-pill--muted  { background: var(--pr-surface-mid); color: var(--pr-muted); }

/* ---------- card CTA --------------------------------------- */
.pricing-card__cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--pr-border);
}

.cta-btn {
  display: block;
  text-align: center;
  padding: 11px;
  border-radius: var(--pr-radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .15s, background .15s;
  border: none;
}

.cta-btn--primary {
  background: var(--pr-gold);
  color: #0d1117;
}

.cta-btn--primary:hover { opacity: .88; }

.cta-btn--secondary {
  background: transparent;
  color: var(--pr-muted);
  border: 1px solid var(--pr-border-mid);
}

.cta-btn--secondary:hover {
  background: var(--pr-surface-mid);
  color: var(--pr-text);
}

.cta-btn--disabled {
  background: var(--pr-surface-mid);
  color: var(--pr-faint);
  cursor: not-allowed;
  opacity: .6;
}

/* ---------- compare table ---------------------------------- */
.compare-section {
  margin-bottom: 4rem;
}

.compare-section__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--pr-text);
  text-align: center;
  margin-bottom: 1.5rem;
}

.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--pr-radius);
  border: 1px solid var(--pr-border);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 540px;
}

.compare-table thead th {
  background: var(--pr-surface-mid);
  color: var(--pr-text);
  font-weight: 600;
  padding: 12px 16px;
  text-align: center;
  border-bottom: 1px solid var(--pr-border);
}

.compare-table thead th:first-child {
  text-align: left;
  width: 38%;
}

.compare-table tbody td {
  padding: 9px 16px;
  border-bottom: 1px solid var(--pr-border);
  color: var(--pr-text);
  text-align: center;
  vertical-align: middle;
}

.compare-table tbody td:first-child {
  text-align: left;
  color: var(--pr-muted);
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table tbody tr:hover td {
  background: var(--pr-surface);
}

.compare-table__group td {
  background: rgba(212,175,55,0.06);
  color: var(--pr-gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-bottom: 1px solid var(--pr-border);
  text-align: left !important;
}

.ct-check { color: var(--pr-green);  font-size: 14px; }
.ct-cross  { color: var(--pr-faint); font-size: 14px; }

/* ---------- empty state ------------------------------------ */
.pricing-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--pr-muted);
}

.pricing-empty__icon {
  font-size: 3rem;
  color: var(--pr-faint);
  margin-bottom: 1rem;
}

.pricing-empty h2 {
  color: var(--pr-text);
  margin-bottom: .5rem;
}

/* ---------- FAQ -------------------------------------------- */
.faq-section {
  margin-top: 1rem;
}

.faq-section__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--pr-text);
  text-align: center;
  margin-bottom: 1.5rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.faq-item {
  background: var(--pr-surface);
  border: 1px solid var(--pr-border);
  border-radius: var(--pr-radius-sm);
  padding: 1.25rem 1.4rem;
  transition: border-color .2s;
}

.faq-item:hover {
  border-color: var(--pr-border-mid);
}

.faq-item h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--pr-text);
  margin: 0 0 .5rem;
}

.faq-item p {
  font-size: 13px;
  color: var(--pr-muted);
  line-height: 1.7;
  margin: 0;
}

/* ---------- responsive ------------------------------------- */
@media (max-width: 900px) {
  .pricing-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .pricing-page {
    padding: 2rem 1rem 4rem;
  }

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

  .pricing-hero__title {
    font-size: 1.8rem;
  }

  .pricing-card__amount {
    font-size: 2.2rem;
  }

  .compare-section__title,
  .faq-section__title {
    font-size: 1.2rem;
  }

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