/* Thinqee, Pricing. Tokens in tokens.css, shared nav/footer/layout in base.css. */

/* ─── PER-CARD BILLING TOGGLE ─── */
/* Checkbox-hack, same technique as .nav-toggle in base.css: a hidden checkbox,
   a <label for="..."> to click it, and sibling selectors to react to :checked.
   Scoped per price-card since Core and Plus have different billing cadences
   (Plus has no true month-to-month option, so its label reads "6 months"). */
.billing-toggle { display: none; }
.billing-switch {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 6px 14px; margin-bottom: 18px;
  border: 1px solid var(--border); border-radius: 100px; background: var(--card-solid);
}
.billing-switch-option { font-size: 0.78rem; font-weight: 600; color: var(--muted); transition: color .2s; }
.billing-switch-monthly { color: var(--white); }
.billing-switch-save {
  display: inline-block; margin-left: 4px; padding: 2px 7px; border-radius: 100px;
  background: rgba(249,115,22,0.16); color: var(--golden); font-size: 0.68rem; font-weight: 700;
}
.billing-switch-track { position: relative; width: 34px; height: 18px; border-radius: 100px; background: var(--border2); flex-shrink: 0; }
.billing-switch-thumb {
  position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--white); transition: transform .2s, background .2s;
}
.billing-toggle:checked ~ .billing-switch .billing-switch-thumb { transform: translateX(16px); background: var(--golden); }
.billing-toggle:checked ~ .billing-switch .billing-switch-monthly { color: var(--muted); }
.billing-toggle:checked ~ .billing-switch .billing-switch-annual { color: var(--white); }

.price-amount-annual, .billing-link-annual { display: none; }
.billing-toggle:checked ~ .price-amount-monthly,
.billing-toggle:checked ~ .billing-link-monthly { display: none; }
.billing-toggle:checked ~ .price-amount-annual,
.billing-toggle:checked ~ .billing-link-annual { display: block; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 28px; transition: transform .2s, border-color .2s, box-shadow .25s;
}
.price-card:hover { transform: translateY(-4px); border-color: var(--border2); box-shadow: 0 14px 44px rgba(249,115,22,0.12); }
.price-card.featured { background: linear-gradient(165deg, rgba(249,115,22,0.16), rgba(249,115,22,0.04)); border-color: var(--border2); }
.price-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.price-amount { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.1rem); font-weight: 700; color: var(--golden); margin-bottom: 4px; }
.price-amount span { font-family: var(--font-body); font-size: 0.8rem; font-weight: 500; color: var(--muted); }
.price-for { color: var(--muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 22px; }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 28px; flex: 1; }
.price-features li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--text); line-height: 1.5; }
.price-features li::before { content: "✓"; color: var(--sunrise); font-weight: 700; flex-shrink: 0; }
.price-card .btn-primary, .price-card .btn-ghost { text-align: center; }
.price-note { color: var(--muted); font-size: 0.78rem; line-height: 1.5; margin: 14px 0 22px; text-align: center; }
.price-note a { color: var(--peach); font-weight: 600; border-bottom: 1px solid var(--border2); }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
.credits-jump { text-align: center; margin-top: 28px; }

/* ─── THINQSHIFTER CREDITS ─── */
.credit-tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.credit-tier-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; text-align: center;
}
.credit-tier-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--white); margin-bottom: 14px; }
.credit-tier-price { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--golden); margin-bottom: 4px; }
.credit-tier-price:nth-of-type(2) { margin-bottom: 14px; }
.credit-tier-price span { font-family: var(--font-body); font-size: 0.72rem; font-weight: 500; color: var(--muted); }
.credit-tier-desc { color: var(--muted); font-size: 0.82rem; line-height: 1.5; }
.credit-note { font-size: 0.82rem; margin-top: 18px; text-align: center; }
.credit-extra {
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px;
  margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border);
}
.credit-extra-title { font-family: var(--font-display); font-weight: 700; color: var(--text); font-size: 0.98rem; margin-bottom: 8px; }
.credit-extra-desc { color: var(--muted); font-size: 0.88rem; line-height: 1.6; }
.credit-extra-desc a { color: var(--peach); font-weight: 600; border-bottom: 1px solid var(--border2); }
@media (max-width: 820px) {
  .credit-tier-grid { grid-template-columns: 1fr; }
  .credit-extra { grid-template-columns: 1fr; }
}
