/* Credits and fund polish (as-6ty.227): buy-credits, credits-overview, fund.
   Presentation only. Loaded after styles.css, the page <style> blocks and
   fund.css so it wins on equal footing without !important where possible.
   No price, bonus or checkout logic is touched. */

/* ---- Pack ladder (buy-credits) ------------------------------------------ */

/* Seven packs: 4 + 3 beats the old 5 + 2 orphan row on desktop. */
@media (min-width: 1000px) {
  .pack-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
}
@media (min-width: 640px) and (max-width: 999px) {
  .pack-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Ribbons are label pills in the shared label rule, which forces a muted
   grey ink. The "best rate" variant also sets a light-blue fill from the page
   style, leaving grey-on-pale text that cannot be read. Make both ribbons the
   same calm band: air-tinted for the rate, neutral for most popular. */
html body .pack-card .pc-ribbon {
  inset: 0 0 auto 0;
  border: 0;
  border-bottom: 1px solid var(--border-strong);
  border-radius: 0;
  padding: 7px 0 6px;
  background: var(--bg-2);
  color: var(--text-1);
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: .14em;
}
html body .pack-card .pc-ribbon.alt {
  background: rgba(var(--air-rgb), .16);
  border-bottom-color: rgba(var(--air-rgb), .4);
  color: var(--text-1);
}
.pack-card:has(.pc-ribbon) { padding-top: 42px; }

.pack-card { padding: 18px 18px 16px; }
.pc-eyebrow { margin-bottom: 8px; }
.pc-unit { margin: 6px 0 10px; }
.pc-meter { margin-bottom: 8px; }
html body .pack-card .pc-rate {
  min-height: 0;
  margin-bottom: 14px;
  font-size: 13px !important;
  line-height: 1.5;
}
.pc-price { padding: 10px 0; }

/* Cards: a quiet focus ring so keyboard users can find the pick. */
.pack-card:focus-within { border-color: var(--border-hover); }
.pack-card :focus-visible { outline: 2px solid var(--focus-ring, var(--air)); outline-offset: 2px; }

@media (max-width: 480px) {
  .pack-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pack-card { padding: 18px 18px 16px; }
  .pc-total { font-size: 28px; }
  .pc-chips { min-height: 0; margin-bottom: 12px; }
  html body .pack-card .pc-chip { font-size: 12px !important; }
  html body .pack-card .pc-unit { font-size: 14px !important; }
  .pc-price { padding: 12px 0; }
}

/* ---- Overview (credits-overview) ---------------------------------------- */

.cr-h1,
.cr-h2 { line-height: 1.2; text-wrap: balance; }
.cr-lead,
.cr-body { text-wrap: pretty; }
.cr-fact { padding: 20px; }
.cr-fact strong { margin-bottom: 8px; font-size: 15px; }
.cr-fact span { font-size: 14px; }
.subnav a { padding: 0 2px; }
.subnav a:focus-visible { outline: 2px solid var(--focus-ring, var(--air)); outline-offset: -4px; border-radius: var(--r-sm); }
@media (max-width: 600px) {
  .cr-explain { padding: 56px 20px; }
  .cr-h1 { font-size: 30px; }
  .cr-h2 { font-size: 24px; }
  .subnav { gap: 22px; }
}

/* ---- Fund --------------------------------------------------------------- */

@media (max-width: 880px) {
  /* The fixed site header used to sit on the kicker. */
  .fund-hero { padding-top: calc(var(--header) + 36px); }
}
@media (max-width: 560px) {
  .fund-hero { padding: calc(var(--header) + 28px) 0 56px; }
  .fund-intro h1 {
    font-size: clamp(34px, 10.5vw, 44px);
    line-height: 1.06;
    letter-spacing: -.04em;
    text-wrap: balance;
  }
  .fund-kicker { margin-bottom: 16px; }
  .fund-lead { margin-top: 20px; }
}
