/* ============================================================
   pricing.css — page-specific overrides for pricing.php
   Loaded after /css/main.css.
   Tokens used: --brand, --brand-strong, --brand-soft, --brand-contrast,
                --bg, --surface, --surface-2,
                --ink, --ink-2, --muted, --faint,
                --border, --border-strong,
                --success,
                --space-1..7, --step--1..5, --radius-sm,
                --shadow-focus,
                --ease-out, --dur-fast.
   ============================================================ */


/* ---- Page wrapper ---- */
.pricing-page {
  max-width: var(--container-base);
  padding-top: var(--space-5);
  padding-bottom: var(--space-7);
}


/* ---- Page header ---- */
.page-header {
  text-align: center;
  margin-bottom: var(--space-6);
}
.page-header h1 {
  margin-bottom: var(--space-2);
}
.page-header .lede {
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 36rem;
}


/* ---- Alert visibility ---- */
.alert {
  margin-bottom: var(--space-5);
}
.alert[hidden] {
  display: none;
}


/* ---- Plans grid ---- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-7);
}

.plan-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
}
/* Push CTA to bottom so cards align even if Annual is taller (badge) */
.plan-card .btn {
  width: 100%;
  margin-top: auto;
}


/* ---- Featured badge (only differentiator vs Monthly) ---- */
.plan-badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--brand);
  color: var(--brand-contrast);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
}


/* ---- Plan label / price ---- */
.plan-label {
  font-size: var(--step--1);
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.price-amount {
  font-size: var(--step-5);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.price-period {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
}


/* ---- Trial headline (text-driven, brand accent on FREE) ---- */
.trial-headline {
  margin-bottom: var(--space-4);
}
.trial-free {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.05em;
}
.trial-then {
  display: block;
  font-size: var(--step--1);
  color: var(--muted);
  margin-top: 2px;
}


/* ---- Plan features list ---- */
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.plan-features li {
  font-size: var(--step-0);
  color: var(--ink-2);
  line-height: 1.45;
  position: relative;
  padding-left: 1.5em;
  /* override main.css's potential prose max-width on li */
  max-width: none;
}
.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--success);
  font-weight: 700;
}
.plan-features li strong {
  color: var(--brand);
  font-weight: 600;
}


/* ---- Promo section ---- */
.promo-section {
  margin: 0 0 var(--space-7);
}
.promo-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  color: var(--muted);
  font-size: var(--step--1);
  font-weight: 500;
}
.promo-divider::before,
.promo-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.promo-divider span {
  white-space: nowrap;
}

.promo-row {
  display: flex;
  gap: var(--space-2);
  max-width: 28rem;
  margin: 0 auto;
}
.promo-row .input {
  flex: 1;
}


/* ---- Trust row ---- */
.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}
.trust-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.trust-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
}
.trust-text {
  flex: 1;
  min-width: 0;
}
.trust-title {
  font-weight: 600;
  color: var(--ink);
  font-size: var(--step-0);
  margin-bottom: 4px;
}
.trust-sub {
  font-size: var(--step--1);
  color: var(--muted);
  line-height: 1.5;
}


/* ---- Responsive ---- */
@media (max-width: 720px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }
  .trust-row {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
}
@media (max-width: 420px) {
  .promo-row {
    flex-direction: column;
  }
  .promo-row .btn {
    width: 100%;
  }
}


/* footer.php still uses .site-footer — styled in main.css as a fallback
   until Stage D rebuilds footer.php with proper structured content. */
