/* The one table of the plans (home/lab/planos.js `tabelaHtml`): the homepage's #planos section (card C8) and
   the Lab round "Preços na home" (lab/vendas/precos/, card C3) load this one file. Token names only, no raw
   hex: each value is the design system's token (E2, as the Lab loads them) or, on the homepage, which has its
   own names (home/lab/shared.css), the homepage's. Phone first: the table never scrolls sideways; under 700px
   it shows one plan at a time, picked by the radio buttons above it. */

.ph-oculto { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* The price: the monthly amount large (the one place with weight 600), the yearly billing small under it */
.ph-preco { display: grid; gap: 4px; margin: 0; }
.ph-amt { font-size: 40px; font-weight: 600; letter-spacing: -.04em; line-height: 1.05; color: var(--ink); }
.ph-amt small { font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.ph-mensal { font-size: 13px; color: var(--muted); }
.hi :is(.ph-amt small, .ph-mensal) { color: var(--muted-on-pastel, var(--muted)); }
.ph-btn { justify-content: center; text-align: center; }

/* The table */
.ph-moldura { background: var(--card); border-radius: var(--radius-card, var(--radius)); box-shadow: var(--hairline, inset 0 0 0 1px var(--line)); overflow: clip; }
.ph-tabela table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 15px; }
.ph-tabela :is(th, td) { text-align: left; vertical-align: top; padding: 14px 16px; border-top: 1px solid var(--rule); }
.ph-tabela thead :is(th, td) { border-top: 0; padding-block: 20px 18px; }
.ph-tabela thead th { font-weight: 400; }
.ph-tabela thead th > * + * { margin-top: 12px; }
.ph-tabela .ph-canto { width: 28%; }
.ph-tabela tbody th { font-weight: 500; font-size: 14px; color: var(--muted); }
.ph-tabela .hi { background: var(--lavender, var(--lime)); }
.ph-nome { display: block; font-size: 20px; letter-spacing: -.02em; }
.ph-tabela thead .btn { display: flex; }

/* The plan picker, on a phone only: a segmented pill, the picked plan in ink */
.ph-abas { display: flex; gap: 4px; margin: 0 0 12px; padding: 4px; border: 0; border-radius: var(--radius-pill, 999px); background: var(--fill-secondary, var(--line)); min-width: 0; }
.ph-abas legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ph-abas label { flex: 1; position: relative; text-align: center; cursor: pointer; }
.ph-abas input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.ph-abas span { display: block; padding: 10px 6px; border-radius: var(--radius-pill, 999px); font-size: 14px; font-weight: 500; }
.ph-abas input:checked + span { background: var(--ink); color: var(--on-ink, var(--white)); }
.ph-abas input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

@media (max-width: 699px) {
  .ph-tabela .ph-canto { width: 40%; }
  .ph-tabela:has(input[value="ativacao"]:checked) [data-col]:not([data-col="ativacao"]),
  .ph-tabela:has(input[value="presenca"]:checked) [data-col]:not([data-col="presenca"]),
  .ph-tabela:has(input[value="expansao"]:checked) [data-col]:not([data-col="expansao"]) { display: none; }
}
@media (min-width: 700px) { .ph-abas { display: none; } }
