/* ==========================================================================
   Comparativo de recursos (Home/Compare e Home/CompareMenudino).
   Depende de Content/planos.css (tokens e componentes .pv2-*).
   A coluna em destaque é indicada no <table> com pv2-cmp--feat-N (N = coluna).
   ========================================================================== */

.planos-v2 .pv2-hero--cmp { padding-bottom: 32px; }

.pv2-cmp-scroll { margin-top: 8px; }

.pv2-cmp { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 15px; color: var(--ink); }
.pv2-cmp th, .pv2-cmp td { padding: 16px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; background: var(--card); }
.pv2-cmp-col-feature { width: 34%; }

/* ── Cabeçalho com os planos (fixo ao rolar) ── */
.pv2-cmp thead th { position: sticky; top: 68px; z-index: 2; background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ink); vertical-align: bottom; padding: 22px 12px 18px; text-align: center; font-weight: 400; }
.pv2-cmp thead th.pv2-cmp-corner { text-align: left; font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pv2-cmp-name { display: block; font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.pv2-cmp-price { display: block; margin-top: 8px; font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pv2-cmp-price small { font-family: var(--body); font-size: 13.5px; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 2px; }
.pv2-cmp-note { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.pv2-cmp-badge { display: inline-block; margin-bottom: 10px; font-family: var(--display); font-weight: 700; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: var(--red); color: #fff; }
.planos-v2 .pv2-cmp .pv2-cta { height: 42px; margin-top: 14px; padding-inline: 10px; font-size: 13px; }

/* ── Linhas de recurso ── */
.pv2-cmp tbody th { text-align: left; font-weight: 400; }
.pv2-cmp tbody th b { display: block; font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.pv2-cmp tbody th span { display: block; margin-top: 3px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.pv2-cmp tbody td { text-align: center; color: var(--ink-2); font-size: 14.5px; line-height: 1.35; }
.pv2-cmp tbody td strong { font-weight: 600; color: var(--ink); }
.pv2-cmp tbody tr:not(.pv2-cmp-sec):hover > * { background: var(--surface); }

.pv2-yes { width: 22px; height: 22px; color: var(--ok); vertical-align: middle; }
.pv2-no { display: inline-block; width: 14px; height: 2px; border-radius: 2px; background: #CFC7C5; vertical-align: middle; }

/* ── Separador de seção ── */
.pv2-cmp tr.pv2-cmp-sec th { padding: 36px 14px 12px; background: var(--card); border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); text-align: left; }
.pv2-cmp tbody tr.pv2-cmp-sec:first-child th { padding-top: 24px; }

/* ── Coluna em destaque ── */
.pv2-cmp--feat-3 th:nth-child(3), .pv2-cmp--feat-3 td:nth-child(3),
.pv2-cmp--feat-5 th:nth-child(5), .pv2-cmp--feat-5 td:nth-child(5) { background: #FFF7F6; box-shadow: inset 2px 0 0 var(--red), inset -2px 0 0 var(--red); }
.pv2-cmp--feat-3 thead th:nth-child(3), .pv2-cmp--feat-5 thead th:nth-child(5) { background: #FFF7F6; border-radius: 16px 16px 0 0; box-shadow: inset 2px 0 0 var(--red), inset -2px 0 0 var(--red), inset 0 2px 0 var(--red); }
.pv2-cmp--feat-3 tbody tr:last-child td:nth-child(3), .pv2-cmp--feat-5 tbody tr:last-child td:nth-child(5) { border-radius: 0 0 16px 16px; box-shadow: inset 2px 0 0 var(--red), inset -2px 0 0 var(--red), inset 0 -2px 0 var(--red); }
.pv2-cmp.pv2-cmp--feat-3 tbody tr:not(.pv2-cmp-sec):hover > td:nth-child(3),
.pv2-cmp.pv2-cmp--feat-5 tbody tr:not(.pv2-cmp-sec):hover > td:nth-child(5) { background: #FDEEEC; }

/* ── Legenda e observações ── */
.pv2-cmp-legend { display: flex; justify-content: flex-end; gap: 20px; flex-wrap: wrap; margin-top: 16px; font-size: 14px; color: var(--muted); }
.pv2-cmp-legend span { display: inline-flex; align-items: center; gap: 8px; }
.pv2-cmp-legend .pv2-yes { width: 18px; height: 18px; }
.planos-v2 .pv2-cmp-foot { margin: 28px auto 0; max-width: 90ch; text-align: center; font-size: 13.5px; line-height: 1.6; color: var(--muted); }

/* ── Tablet / celular: rolagem horizontal com a coluna de recursos fixa ── */
@media (max-width: 900px) {
    .pv2-cmp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-inline: -24px; padding-inline: 24px; }
    .pv2-cmp { min-width: 640px; }
    .pv2-cmp--5 { min-width: 760px; }
    .pv2-cmp thead th { position: static; -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--card); }
    .pv2-cmp tbody tr:not(.pv2-cmp-sec) th, .pv2-cmp thead th.pv2-cmp-corner { position: sticky; left: 0; z-index: 1; }
    .pv2-cmp tr.pv2-cmp-sec th > span { position: sticky; left: 10px; }
    .pv2-cmp tbody tr:not(.pv2-cmp-sec) th, .pv2-cmp thead th.pv2-cmp-corner { box-shadow: 1px 0 0 var(--line); }
    .pv2-cmp-col-feature { width: 180px; }
    .pv2-cmp th, .pv2-cmp td { padding: 14px 10px; }
    .pv2-cmp tbody th span { font-size: 13px; }
    .pv2-cmp-name { font-size: 16px; }
    .pv2-cmp-price { font-size: 21px; }
    .pv2-cmp-legend { justify-content: flex-start; }
}

@media (max-width: 480px) {
    .pv2-cmp-col-feature { width: 150px; }
    .pv2-cmp tbody th b { font-size: 14px; }
    .pv2-cmp tbody th span { font-size: 12.5px; }
    .planos-v2 .pv2-cmp .pv2-cta { height: 38px; font-size: 12px; }
}
