/* Pricing page (pricing.html) — builds on styles.css tokens. */
.pricing-page .topbar .btn { color: var(--text); text-decoration: none; }
.pricing { max-width: 1120px; margin: 0 auto; padding: 8px 16px 40px; }
.pricing .hero { text-align: center; padding: 24px 0 8px; }
.pricing h1 { font-size: clamp(26px, 4vw, 40px); margin: 0 0 8px; }
.pricing h2 { font-size: 20px; margin: 0 0 6px; }
.pricing .muted { color: var(--muted); }

.billing { display: inline-flex; gap: 4px; margin-top: 18px; padding: 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.billing button { border: 0; background: none; color: var(--muted); padding: 8px 16px; border-radius: 999px; font: inherit; cursor: pointer; }
.billing button.on { background: var(--panel-2); color: var(--text); }
.billing b { color: var(--accent-2); font-size: 12px; margin-left: 4px; }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
@media (max-width: 980px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px 18px 18px; }
.plan.popular { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 12px 40px rgba(255, 61, 139, .18); }
.ribbon { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #120d24; font-weight: 800; font-size: 12px; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.plan h3 { margin: 0; font-size: 20px; }
.tagline-sm { margin: 2px 0 12px; font-size: 13px; }
.price b { font-size: 34px; font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); margin-left: 2px; }
.billed { font-size: 12px; min-height: 18px; }
.plan .credits { margin-top: 12px; font-weight: 700; color: var(--accent-2); }
.plan .approx { font-size: 12px; margin-top: 2px; }
.plan ul { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 7px; font-size: 14px; flex: 1; }
.plan li::before { content: '✓'; color: var(--accent-3); margin-right: 8px; font-weight: 700; }
.plan li.inc { color: var(--muted); }
.plan li.inc::before { content: '＋'; }
.plan .cta { text-align: center; text-decoration: none; display: block; }
.plan .cta[disabled] { opacity: .55; cursor: default; }
.soon-note { text-align: center; color: var(--muted); margin: 18px 0 0; }

.pricing .block { margin-top: 44px; }
.costs { width: 100%; max-width: 560px; border-collapse: collapse; margin-top: 10px; background: var(--panel); border-radius: 12px; overflow: hidden; }
.costs td { padding: 11px 14px; border-bottom: 1px solid var(--line); }
.costs td:last-child { text-align: right; font-weight: 700; color: var(--accent-2); white-space: nowrap; }
.costs td.free { color: var(--accent-3); }
.costs tr:last-child td { border-bottom: 0; }

.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 12px; margin-top: 12px; }
@media (max-width: 560px) { .packs { grid-template-columns: 1fr; } }
.pack { display: flex; flex-direction: column; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.pack-price { font-size: 24px; font-weight: 800; }
.pack .btn[disabled] { opacity: .55; cursor: default; }

.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-top: 8px; max-width: 760px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { color: var(--muted); margin: 8px 0 0; }
.test-note { color: #f5a623; font-size: 14px; margin-top: 6px; }
.test-note:empty { display: none; }
.you-are { display: inline-block; margin: 0 0 8px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 210, 63, .14); color: var(--accent-2, #ffd23f); font-weight: 700; font-size: 14px; }
.you-are:empty { display: none; }
.plan.is-current { outline: 2px solid var(--accent-2, #ffd23f); outline-offset: 2px; }
.btn.current { opacity: 1; border-color: var(--accent-2, #ffd23f); color: var(--accent-2, #ffd23f); background: transparent; }
