/* The pricing proposal uses the Fenaky palette, type and existing checkout. */
.pricing-page { width: 100%; max-width: none; margin: 0; padding: 0 0 12px; }
.pricing-header { text-align: center; padding: 22px 16px 38px; }
.pricing-header h1 { margin: 0; font: 500 clamp(32px, 3.3vw, 48px)/1.12 var(--display); letter-spacing: -.035em; }
.pricing-header p { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.pricing-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.pricing-toolbar h2 { margin: 0; font-size: 14px; font-weight: 600; }
.pricing-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px 12px; }
.pricing-card { position: relative; min-width: 0; padding: 22px 18px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.pricing-card-popular { border-color: var(--purple); background: linear-gradient(155deg, var(--brand-card-top), var(--brand-card-bottom)); }
.pricing-card-popular :is(.pricing-credits, .pricing-cycle, .pricing-unit, .pricing-videos, .pricing-quality) { color: var(--brand-card-muted); }
.pricing-card-popular .pricing-output, .pricing-card-popular .pricing-output > ul + .pricing-swap-title { border-color: var(--brand-card-line); }
.pricing-popular { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 4px 12px; border-radius: 6px; background: var(--brand-fill); color: var(--brand-fill-ink); font-size: 12px; font-weight: 700; line-height: 18px; white-space: nowrap; }
/* The plan name and, facing it on the right, the price with "mensal"; the cycle drops under the price when the card is narrow. */
.pricing-head { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; }
.pricing-card h3 { margin: 0; font: 500 21px/1.2 var(--display); letter-spacing: -.025em; white-space: nowrap; }
.pricing-price { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: 0 6px; margin: 0 0 0 auto; text-align: right; }
.pricing-amount { display: inline-flex; align-items: baseline; gap: 3px; font: 500 clamp(22px, 1.75vw, 30px)/1.15 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pricing-currency { font: 400 13px var(--font); letter-spacing: 0; }
.pricing-cycle { color: var(--muted); font: 400 12px var(--font); letter-spacing: 0; white-space: nowrap; }
.pricing-unit { margin: 4px 0 0; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
/* Plan names (Start … Max) always next to their credits; the second badge is factual. */
.pricing-credits { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.pricing-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 4px 12px; border: 1px solid var(--accent-border); border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; line-height: 18px; white-space: nowrap; }
.pricing-card-current { border-color: #5b5466; }
.pricing-choose:disabled { cursor: default; opacity: .72; }
/* The account already has a plan the server keeps: why the cards are closed and what to do. */
.pricing-subscription-notice { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 22px; padding: 12px 14px; border-radius: 10px; background: #221d2b; color: #e2d6ec; font-size: 13px; line-height: 1.55; }
.pricing-subscription-notice .icon { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--purple); }
.pricing-subscription-notice a { color: var(--purple); }
/* Why the person came to the plans, with the way back to what they were making. */
.pricing-context { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 24px; padding: 14px 16px; border: 1px solid #4a3f5c; border-radius: 12px; background: #1f1a29; }
.pricing-context > .icon { flex: none; width: 18px; height: 18px; color: var(--purple); }
.pricing-context > p { flex: 1 1 260px; margin: 0; font-size: 13px; line-height: 1.55; }
.pricing-context-actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* 47 px: the 18 px it always had plus the line of the use phrase that left the card (10 px + 12 px x 1.6), so nothing moves. */
.pricing-choose { width: 100%; min-height: 44px; margin-top: 47px; padding: 10px 8px; font-size: 12px; white-space: nowrap; }
.pricing-choose.button-secondary:not(:disabled):not([aria-disabled="true"]) { background: var(--accent-soft); color: var(--accent); outline: 1px solid var(--accent-border); outline-offset: -1px; }
.pricing-choose.button-secondary:hover:not(:disabled):not([aria-disabled="true"]) { background: var(--accent-soft-hover); color: var(--accent-hover); outline-color: var(--accent); }
.pricing-choose:focus-visible, .pricing-choose.button-secondary:not(:disabled):not([aria-disabled="true"]):focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.pricing-output { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.pricing-output > p { margin: 0 0 12px; color: var(--text); font-size: 12px; font-weight: 500; }
/* "25 vídeos 5 s" on the left, the resolution of the swap ("1080p Full HD") on the right; it wraps under a narrow row. */
.pricing-output ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.pricing-output li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 8px; }
.pricing-videos { color: var(--muted); font-size: 12px; white-space: nowrap; }
.pricing-videos strong { color: var(--text); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pricing-seconds { margin-left: 2px; color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.pricing-quality { color: var(--muted); font-size: 12px; white-space: nowrap; }
/* Five narrow cards (about 1200 to 1300 px): the price stacks over "mensal" and the rows keep one line with "1080p". */
.pricing-card { container: pricing-card / inline-size; }
@container pricing-card (max-width: 189px) {
  .pricing-price { flex-direction: column; align-items: flex-end; }
  .pricing-hd { display: none; }
}
/* Gerar com Ginga comes first in the card; the character-swap counts follow under a divider. */
.pricing-output > ul + .pricing-swap-title { margin: 14px 0 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.pricing-comparison-note { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px 24px; flex-wrap: wrap; margin-top: 16px; font-size: 12px; color: var(--muted); }
.pricing-comparison-note p { margin: 0; }
/* Only while the catalogue sells the Passe Ilimitado (PASS_SALES_ENABLED). */
.pricing-extras { margin-top: 28px; border-top: 1px solid var(--line); }
.pricing-extra { border-bottom: 1px solid var(--line); }
.pricing-extra summary { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 12px 0; font-size: 13px; font-weight: 500; list-style: none; cursor: pointer; }
.pricing-extra summary::-webkit-details-marker { display: none; }
.pricing-extra summary > span { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 400; }
.pricing-extra summary > .icon { width: 16px; height: 16px; margin-left: auto; color: var(--muted); }
.pricing-extra summary > span + .icon { margin-left: 0; }
.pricing-extra[open] summary > .icon { transform: rotate(180deg); }
.pricing-pass-option { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 4px 0 18px; }
.pricing-pass-option h3 { margin: 0 0 8px; font: 500 24px/1.2 var(--display); }
.pricing-pass-option h3 small { font: 400 12px var(--font); color: var(--muted); }
.pricing-pass-option p { margin: 3px 0; color: var(--muted); font-size: 13px; }
.pricing-pass-option .button { flex-shrink: 0; min-height: 44px; }
.pricing-review { max-width: 540px; margin: 0 auto; }
.pricing-back { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 0; margin-bottom: 20px; color: var(--muted); font-size: 13px; }
.pricing-back:hover { color: var(--text); }
.pricing-back .icon { width: 16px; height: 16px; }
.pricing-review .plan-summary { position: static; padding: 24px; }
.pricing-review .plan-summary-body { gap: 18px; }
.pricing-review h1 { margin: 0; font: 500 30px/1.15 var(--display); letter-spacing: -.03em; }
.pricing-review .plan-summary-name { gap: 8px; }
.pricing-review .plan-summary-name strong { font-size: 15px; }
.pricing-review .plan-summary-price { animation: none; }
.pricing-review .plan-summary-terms { font-size: 13px; }
.pricing-review .plan-purchase > .button { font-size: 13px; }
.pricing-review .plan-summary-note { font-size: 12px; }
.pricing-page .billing-state { margin: 8px 0 24px; }
@media (min-width: 1440px) {
  .pricing-card { padding: 26px 24px 22px; }
  .pricing-card h3 { font-size: 24px; }
  .pricing-videos strong { font-size: 17px; }
}
@media (max-width: 1199px) {
  .pricing-card { padding: 20px 13px 16px; }
  .pricing-card h3 { font-size: 18px; }
  .pricing-amount { font-size: 22px; }
}
@media (max-width: 1040px) {
  .pricing-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pricing-card { padding: 22px 18px; }
  .pricing-card h3 { font-size: 21px; }
  .pricing-amount { font-size: 26px; }
}
@media (max-width: 650px) {
  .pricing-header { padding: 6px 0 28px; text-align: left; }
  .pricing-header p { font-size: 13px; }
  .pricing-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 10px; }
  .pricing-card { padding: 20px 13px 16px; }
  .pricing-card h3 { font-size: 18px; }
  .pricing-amount { font-size: 22px; }
  .pricing-review .plan-summary { padding: 20px; }
}
@media (max-width: 480px) {
  .pricing-cards { grid-template-columns: 1fr; }
  .pricing-card { padding: 20px; }
  .pricing-card h3 { font-size: 21px; }
  .pricing-amount { font-size: 26px; }
  .pricing-pass-option { align-items: flex-start; flex-direction: column; gap: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .pricing-choose { transition: background-color 150ms var(--ease); }
}
