/* Vision Play - página de planos (usa os tokens e componentes de style.css) */

/* Topo da página */
.pl-hero { position: relative; isolation: isolate; padding: clamp(2.4rem, 6vw, 5.2rem) 0 clamp(1rem, 3vw, 2rem); overflow: clip; }
.pl-hero::before { content: ""; position: absolute; z-index: -1; right: -10%; top: -40%; width: 56rem; height: 40rem; background: radial-gradient(closest-side, rgba(242, 169, 59, .18), transparent 72%); }
.pl-hero h1 { max-width: 15em; }
.pl-hero .lead { max-width: 38em; }
.pl-sec { padding-top: clamp(2rem, 5vw, 4rem); }

/* Cartões (celular e tablet) */
.plan-cards { display: grid; gap: clamp(.8rem, 1.6vw, 1.2rem); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 38rem) { .plan-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan {
  display: flex; flex-direction: column; gap: 1rem; min-width: 0;
  padding: clamp(1.3rem, 2.4vw, 1.8rem); border-radius: var(--radius); border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-2), var(--surface) 55%);
}
.plan:hover { border-color: var(--border-2); }
.plan-kicker { color: var(--accent); font: 700 .78rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; }
.plan h3 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); margin-top: -.3rem; }
.price { display: flex; flex-direction: column; gap: .15rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.amount { font: 800 clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem)/1.05 var(--display); letter-spacing: -.03em; color: var(--text); }
.amount .ask { color: var(--muted); font-weight: 600; letter-spacing: -.01em; }
.unit { color: var(--muted); font-size: .95rem; }
.plan dl { margin: 0; display: grid; gap: .85rem; }
.plan dl div { display: grid; gap: .15rem; }
.plan dt { color: var(--muted); font: 700 .75rem/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; }
.plan dd { margin: 0; color: var(--text); }
.plan-all { display: flex; align-items: center; gap: .6rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border); color: var(--muted); font-weight: 500; }
.plan-all .i { color: var(--accent); width: 1.3rem; height: 1.3rem; stroke-width: 2.2; }

/* Tabela (computador e TV) */
.plan-table { display: none; }
@media (min-width: 52rem) {
  .plan-cards { display: none; }
  .plan-table { display: block; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
}
.plan-table table { width: 100%; border-collapse: collapse; min-width: 44rem; }
.plan-table th, .plan-table td { padding: 1.05rem 1.2rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.plan-table thead th { font: 700 1.35rem/1.1 var(--display); letter-spacing: -.01em; color: var(--text); background: var(--surface-2); padding-block: 1.3rem; }
.plan-table tbody th { width: 11rem; color: var(--muted); font: 700 .78rem/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; padding-top: 1.2rem; }
.plan-table td { color: var(--text); width: 22%; }
.plan-table tbody tr:last-child > * { border-bottom: 0; }
.plan-table .row-price > * { background: rgba(242, 169, 59, .06); }
.plan-table .row-price .amount { font-size: 1.7rem; }
.plan-table thead td { background: var(--surface-2); }

/* Ativação: etiquetas lado a lado com os passos */
.pl-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.pl-grid > * { min-width: 0; }
@media (min-width: 62rem) { .pl-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.pl-grid .sec-head { margin-bottom: 1.8rem; }
.stack { display: grid; gap: 1.2rem; }
@media (min-width: 62rem) { .stack { position: sticky; top: 6rem; } }
.code-label .code { letter-spacing: .22em; }

/* Situações da licença */
.status-grid { display: grid; gap: clamp(.8rem, 1.6vw, 1.1rem); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 70rem) { .status-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.status { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem 1.3rem; border-radius: 1rem; border: 1px solid var(--border); background: var(--surface); }
.status .i { color: var(--accent); width: 1.7rem; height: 1.7rem; margin-top: .1rem; }
.status b { display: block; font: 700 1.05rem/1.3 var(--display); }
.status p { margin-top: .35rem; color: var(--muted); font-size: .95rem; }
.pl-sec .note { margin-top: clamp(1.4rem, 3vw, 2rem); }

/* Contato (só aparece quando planos.js recebe um valor) */
.contato[hidden] { display: none; }
.contato-card { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 52rem) { .contato-card { grid-template-columns: minmax(0, 1fr) auto; } }
.contato-title { font-size: clamp(1.6rem, 1rem + 2vw, 2.4rem); margin: 0 0 .6rem; }

/* TV: alvos maiores nos botões e linhas navegáveis */
html.tv .plan-table th, html.tv .plan-table td { padding-block: 1.3rem; }
