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

/* Page layout */
.pricing-page {
  min-height: 100vh;
  padding-top: 80px;
}

/* Section spacing */
.pricing-section {
  padding: 80px 32px;
}
.pricing-section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Tier cards grid */
.pricing-tiers {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.tier-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tier-card:hover {
  border-color: var(--border-strong);
}

/* Featured tier — slightly elevated, accent border */
.tier-card--featured {
  background: linear-gradient(160deg, #1a3560 0%, var(--bg-card) 100%);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 16px 48px rgba(232,168,56,0.25);
  transform: scale(1.03);
}
.tier-card--featured:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 20px 56px rgba(232,168,56,0.32);
}

/* Lifetime Deal tier — green accent */
.tier-card--lifetime {
  border-color: #50c878;
  box-shadow: 0 0 0 1px #50c878, 0 8px 32px rgba(80,200,120,0.12);
}
.tier-card--lifetime:hover {
  border-color: #50c878;
  box-shadow: 0 0 0 1px #50c878, 0 12px 40px rgba(80,200,120,0.2);
}

/* "Best Value" badge — green */
.tier-badge--lifetime {
  background: #50c878;
  color: #0a1a10;
}

/* Lifetime feature icon — green tint */
.tier-feature-icon--lifetime {
  background: rgba(80,200,120,0.12);
  border-color: rgba(80,200,120,0.2);
}

/* Lifetime CTA button — green */
.tier-cta--lifetime {
  background: #50c878;
  color: #0a1a10;
}
.tier-cta--lifetime:hover {
  opacity: 0.9;
}

/* "Most Popular" badge */
.tier-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

/* Tier header */
.tier-name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.tier-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}
.price-amount {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--fg);
  line-height: 1;
}
.price-period {
  font-size: 0.85rem;
  color: var(--fg-muted);
}
.tier-tagline {
  font-size: 0.82rem;
  color: var(--fg-muted);
  margin-bottom: 28px;
  min-height: 40px;
}

/* Divider */
.tier-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 24px;
}

/* Feature list */
.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  flex: 1;
}
.tier-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--fg-muted);
}
.tier-feature-icon {
  width: 18px;
  height: 18px;
  background: var(--accent-dim);
  border: 1px solid rgba(232,168,56,0.2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.tier-feature-icon svg {
  display: block;
}

/* CTA button */
.tier-cta {
  display: block;
  width: 100%;
  padding: 13px 20px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  letter-spacing: -0.01em;
}
.tier-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.tier-cta:active {
  transform: translateY(0);
}

/* Feature comparison table */
.pricing-table-wrap {
  max-width: 1100px;
  margin: 0 auto;
  overflow-x: auto;
}
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.pricing-table th {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  padding: 14px 16px;
  border-bottom: 2px solid var(--border-strong);
  color: var(--fg);
}
.pricing-table th:first-child {
  text-align: left;
  color: var(--fg-muted);
}
.pricing-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  color: var(--fg-muted);
  vertical-align: middle;
}
.pricing-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--fg);
}
.pricing-table tr:last-child td {
  border-bottom: none;
}
.pricing-table .check {
  color: #28CA41;
  font-size: 1rem;
}
.pricing-table .no {
  color: var(--fg-muted);
  opacity: 0.4;
  font-size: 1rem;
}
.pricing-table .feature-group {
  background: var(--bg-card);
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding: 10px 16px;
  text-align: left;
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child {
  border-bottom: none;
}
.faq-item summary {
  list-style: none;
  padding: 20px 24px;
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--fg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background 0.15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover {
  background: var(--bg-alt);
}
.faq-item[open] summary {
  color: var(--accent);
}
.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}
.faq-answer {
  padding: 0 24px 20px;
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* Responsive */
@media (max-width: 1100px) {
  .pricing-tiers {
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 720px !important;
  }
}
@media (max-width: 900px) {
  .pricing-tiers {
    grid-template-columns: 1fr !important;
    max-width: 480px;
  }
  .tier-card--featured {
    transform: none;
  }
  .pricing-section {
    padding: 60px 20px;
  }
}
@media (max-width: 480px) {
  .price-amount {
    font-size: 2.2rem;
  }
  .tier-card {
    padding: 28px 20px;
  }
}

/* Trial email input — matches dark theme */
.trial-email-input {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 10px 14px;
  background: #12122a;
  border: 1px solid #2a2a40;
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  box-sizing: border-box;
}
.trial-email-input::placeholder { color: #555; }
.trial-email-input:focus { outline: none; border-color: #e8a838; }

/* ===== BILLING INTERVAL TOGGLE ===== */
.pricing-billing-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: -40px auto 0;
  padding: 0 32px;
  flex-wrap: wrap;
}
.billing-toggle-btn {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--bg-elevated, #16172e);
  color: var(--fg-muted);
  border: 1px solid var(--border);
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.billing-toggle-btn:hover {
  border-color: var(--border-strong);
}
.billing-toggle-btn.is-active {
  background: #E8A838;
  color: #0B1F3A;
  border-color: #E8A838;
}
.billing-save {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(80,200,120,0.16);
  color: #50c878;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 1px;
}

/* Interval price visibility — show only the matching child */
[data-interval="annual"] { display: none; }
body.is-annual [data-interval="monthly"] { display: none; }
body.is-annual [data-interval="annual"] { display: inline; }

@media (max-width: 720px) {
  .pricing-billing-toggle {
    flex-direction: column;
    gap: 6px;
  }
  .billing-toggle-btn {
    width: 100%;
    max-width: 280px;
  }
}