/* Pricing, Terms and Privacy pages. Builds on styles.css. */
.page-hero { padding-bottom: 32px; }
.page-hero .lede { max-width: 640px; }
.billing-toggle { display: inline-flex; gap: 4px; padding: 4px; margin-top: 28px; border-radius: 999px; background: var(--surface); }
.billing-toggle button { font: 500 .92rem var(--body); border: 0; background: transparent; color: var(--ink-2); padding: 10px 18px; border-radius: 999px; cursor: pointer; }
.billing-toggle button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.save { font-size: .75rem; font-weight: 500; color: var(--ketchup); margin-left: 4px; }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 6px; background: var(--surface); border-radius: 22px; padding: 28px 24px; }
.plan h2 { font-size: 1.35rem; margin: 0; letter-spacing: -0.02em; }
.plan-for { color: var(--muted); font-size: .92rem; min-height: 3em; margin: 0; }
.price { font: 600 2.8rem/1.05 var(--display); letter-spacing: -0.045em; margin: 14px 0 0; }
.price small { display: block; font: 400 .85rem var(--body); letter-spacing: 0; color: var(--muted); margin-top: 6px; }
.credits { font-weight: 500; margin: 6px 0 18px; }
.plan .btn { margin-bottom: 18px; }
.plan .btn-ghost { background: #fff; border-color: #fff; }
.plan .btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: .92rem; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 1px; top: .5em; width: 9px; height: 5px; border-left: 1.5px solid var(--ketchup); border-bottom: 1.5px solid var(--ketchup); transform: rotate(-45deg); }
.plan-pop { background: var(--ink); color: #fff; }
.plan-pop .plan-for, .plan-pop .price small { color: rgba(255, 255, 255, .62); }
.plan-pop .btn { background: #fff; color: var(--ink); border-color: #fff; }
.plan-pop .btn:hover { background: var(--ketchup); border-color: var(--ketchup); color: #fff; }
.pop-tag { position: absolute; top: 24px; right: 20px; background: var(--ketchup); color: #fff; font-size: .72rem; font-weight: 500; padding: 6px 10px; border-radius: 999px; }

.enterprise { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 14px; background: var(--surface); border-radius: 22px; padding: clamp(24px, 4vw, 40px); }
.enterprise h2 { font-size: 1.6rem; }
.enterprise p { color: var(--muted); margin: 0; max-width: 640px; }
.enterprise .btn { flex: none; }

.table-wrap { overflow-x: auto; }
.credit-table { width: 100%; border-collapse: collapse; margin-top: 24px; background: var(--paper); }
.credit-table th, .credit-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.credit-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.credit-table td:nth-child(2) { font-weight: 600; white-space: nowrap; }

.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; max-width: 820px; }
.faq summary { font: 500 1.1rem var(--display); letter-spacing: -0.015em; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ketchup); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

.legal { max-width: 760px; padding-top: 48px; padding-bottom: 80px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.3rem; margin-top: 32px; }
.legal p, .legal li { color: #3f3a35; }

@media (max-width: 980px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .plans { grid-template-columns: 1fr; }
  .enterprise { flex-direction: column; align-items: flex-start; }
  .plan-for { min-height: 0; }
}
