/* pricing.css — Pricing page styles (amber/obsidian aesthetic) */

.pricing-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.pricing-header {
  text-align: center;
  margin-bottom: 56px;
}

.pricing-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.pricing-title {
  font-family: var(--head);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 16px;
  line-height: 1.1;
}

.pricing-subtitle {
  font-family: var(--body);
  font-size: 18px;
  color: var(--text-muted);
  margin: 0;
}

.pricing-flash {
  max-width: 680px;
  margin: 0 auto 32px;
  padding: 14px 20px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 14px;
  text-align: center;
}
.pricing-flash--success {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: #4ade80;
}
.pricing-flash--error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #f87171;
}

/* ── Cards ── */

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  position: relative;
}

.pricing-card--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 32px rgba(255,180,0,0.08);
  padding-top: 44px; /* room for the badge */
}

.pricing-card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #0d0d0d;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-card-header {
  margin-bottom: 24px;
}

.plan-badge {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 10px;
  display: inline-block;
  margin-bottom: 16px;
}
.plan-badge--accent {
  color: var(--accent);
  border-color: var(--accent);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 12px;
}
.plan-price-amount {
  font-family: var(--head);
  font-size: 48px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.plan-price-period {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-muted);
}

.plan-desc {
  font-family: var(--body);
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ── Features ── */

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-feature {
  font-family: var(--body);
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-feature--dim {
  color: var(--text-dim);
}

.feat-check {
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  width: 16px;
}

.feat-x {
  color: var(--text-dim);
  font-weight: 700;
  flex-shrink: 0;
  width: 16px;
}

/* ── CTAs ── */

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkout-email {
  width: 100%;
  background: var(--surface2, #1a1a1a);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.checkout-email:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255,180,0,0.12);
}
.checkout-email::placeholder {
  color: var(--text-dim);
}

.plan-cta {
  display: block;
  width: 100%;
  text-align: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 12px 20px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.plan-cta--primary {
  background: var(--accent);
  color: #0d0d0d;
}
.plan-cta--primary:hover {
  opacity: 0.9;
  box-shadow: 0 0 16px rgba(255,180,0,0.25);
}

.plan-cta--secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.plan-cta--secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.plan-cta--dark {
  background: var(--surface2, #1a1a1a);
  border: 1px solid var(--border);
  color: var(--text);
}
.plan-cta--dark:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.plan-cta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cta-spinner {
  letter-spacing: 0.2em;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ── FAQ ── */

.pricing-faq {
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.faq-title {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 32px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.faq-q {
  font-family: var(--head);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.faq-a {
  font-family: var(--body);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Upgrade inline banner (used from manage page) ── */

.upgrade-banner {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.upgrade-banner-text {
  font-family: var(--body);
  font-size: 14px;
  color: var(--text-muted);
}
.upgrade-banner-text strong {
  color: var(--text);
}

.upgrade-banner-cta {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: #0d0d0d;
  background: var(--accent);
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.upgrade-banner-cta:hover {
  opacity: 0.9;
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
}
