/* Tabela comparativa — estrutura Hostinger + cabeçalho fixo ao rolar */
#planos-comparativo {
    --pp-compare-sticky-top: 4.5rem;
    --pp-compare-cols: minmax(12rem, 1.35fr) repeat(3, minmax(0, 1fr));
    position: relative;
}

.pp-compare-grid {
    width: 100%;
}

.pp-compare-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.pp-compare-table {
    width: 100%;
    min-width: 52rem;
    background: #fff;
    color: #111827;
}

.pp-compare-table-header-placeholder {
    display: none;
    grid-column: 1 / -1;
}

/* Cabeçalho: gruda abaixo da navbar até o fim da seção (via JS is-pinned) */
.pp-compare-table-header {
    display: grid;
    grid-template-columns: var(--pp-compare-cols);
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    transition: box-shadow 0.2s ease;
    will-change: transform;
}

.pp-compare-table-header.is-pinned {
    position: fixed;
    z-index: 45;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e5e7eb;
}

.pp-compare-table.is-stuck .pp-compare-table-header:not(.is-pinned) {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.pp-compare-table-header > div:first-child {
    min-height: 10.5rem;
    background: #fff;
}

.pp-compare-table-header__product-card {
    padding: 1.25rem 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    min-height: 10.5rem;
    background: #fff;
}

.pp-compare-table-header__product-card.is-popular {
    background: rgba(234, 179, 8, 0.08);
    box-shadow: inset 1px 0 0 rgba(234, 179, 8, 0.3), inset -1px 0 0 rgba(234, 179, 8, 0.3);
}

.pp-compare-table-header__product-card-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.pp-compare-table-header__badge {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 0.25rem;
    margin-bottom: 0.4rem;
    background: #EAB308;
    color: #000;
    line-height: 1.2;
}

.pp-compare-table-header__badge--hidden {
    visibility: hidden;
    pointer-events: none;
}

.pp-compare-table-header__badge--outline {
    visibility: visible;
    background: transparent;
    color: #a16207;
    border: 2px solid #EAB308;
}

.pp-compare-table-header__product-card-title-text {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
}

.pp-compare-table-header__price {
    display: block;
    margin-top: 0.35rem;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.pp-price__wrapper {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    line-height: 1.2;
}

.pp-price__currency,
.pp-price__number,
.pp-price__suffix {
    font-size: 1rem;
    font-weight: 400;
    color: #1f2937;
}

.pp-price__number {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.pp-price__suffix {
    font-size: 1rem;
    color: #6b7280;
}

.pp-compare-table-header__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 11.5rem;
    min-height: 2.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease, opacity 0.15s ease;
}

.pp-compare-table-header__button--primary {
    background: #EAB308;
    color: #000;
}

.pp-compare-table-header__button--primary:hover {
    background: #FDE047;
}

.pp-compare-table-header__button--neutral {
    background: #171717;
    color: #fff;
}

.pp-compare-table-header__button--neutral:hover {
    opacity: 0.88;
}

.pp-compare-table__end-sentinel {
    height: 1px;
    width: 100%;
    pointer-events: none;
    visibility: hidden;
}

.pp-compare-table-data {
    background: #fff;
}

.pp-compare-table-data__feature {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #111827;
}

.pp-compare-table-data__group:first-child .pp-compare-table-data__feature {
    border-top: none;
}

.pp-compare-table-data__feature > div:first-child {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pp-compare-table-data__feature-icon {
    flex-shrink: 0;
    color: #111827;
    font-size: 1rem;
}

.pp-compare-table-data__feature--cols {
    display: grid;
    grid-template-columns: var(--pp-compare-cols);
    border-top: 1px solid #f3f4f6;
    padding: 0;
    font-weight: 400;
}

.pp-compare-feature,
.pp-plan-feature {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    min-height: 3.25rem;
}

.pp-compare-feature {
    justify-content: flex-start;
}

.pp-compare-feature__content,
.pp-plan-feature__content {
    width: 100%;
    font-size: 0.9375rem;
    line-height: 1.4;
    color: #374151;
}

.pp-plan-feature {
    justify-content: center;
    text-align: center;
}

.pp-plan-feature__content {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    color: #111827;
}

.pp-plan-feature.is-popular {
    background: rgba(234, 179, 8, 0.05);
}

.pp-compare-icon-check {
    display: inline-flex;
    color: #22c55e;
    width: 1.5rem;
    height: 1.5rem;
}

.pp-compare-icon-check svg {
    width: 100%;
    height: 100%;
}

.pp-compare-icon-line {
    display: inline-flex;
    color: #6b7280;
    width: 1.5rem;
    height: 1.5rem;
}

.pp-compare-icon-line svg {
    width: 100%;
    height: 100%;
}

.dark .pp-compare-table,
.dark .pp-compare-table-header,
.dark .pp-compare-table-header > div:first-child,
.dark .pp-compare-table-header__product-card,
.dark .pp-compare-table-data {
    background: #0a0a0a;
    color: #f9fafb;
}

.dark .pp-compare-table-header {
    border-bottom-color: #262626;
}

.dark .pp-compare-table-header__product-card-title-text,
.dark .pp-price__currency,
.dark .pp-price__number,
.dark .pp-plan-feature__content {
    color: #fff;
}

.dark .pp-price__suffix {
    color: #9ca3af;
}

.dark .pp-compare-table-data__feature {
    color: #e5e7eb;
    border-top-color: #262626;
}

.dark .pp-compare-table-data__feature--cols {
    border-top-color: #1f1f1f;
}

.dark .pp-compare-feature__content {
    color: #d1d5db;
}

.dark .pp-compare-icon-line {
    color: #4b5563;
}

@media (max-width: 767px) {
    #planos-comparativo .compare-desc-desktop {
        display: none;
    }
}
