﻿/* Classes Novas */

.parcela-grid {
    display : grid;
    grid-template-columns : repeat(1, 1fr);
    gap : var(--s-3)
}

.parcela-grid .parcela {
    padding : var(--s-4);
    border : 1px solid var(--l-border);
    display : flex;
    flex-direction : row;
    align-items : center;
    gap : var(--s-4);
    border-radius : var(--r-md)
}

.parcela-grid .parcela p {
    color : var(--l-text-2);
    margin : 0px
}

.parcela-grid .result-final {
    margin-left : auto;
    min-width : 200px
}

    .parcela-grid .result-final strong {
        font-family: var(--font-mono);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: clamp(18px, 1rem + 1.5vw, 28px);
    }

    .parcela-grid .parcela .step {
        border : 1px solid var(--l-border);
        border-radius : 50%;
        padding : 0px;
        width : 50px;
        height : 50px;
        display : flex;
        font-family: var(--font-mono);
        font-weight: bold;
        font-size: clamp(15px,20px, 25px);
        background : var(--l-surface);
        justify-content : center;
        align-items : center
    }


.mono-font {
    font-family : var(--font-mono);
    font-size : 13px;
    text-transform : uppercase;
    color : var(--l-text-2);
}

.variation-div {
    display : grid;
    grid-template-columns : 1fr auto 1fr auto 1fr;
    margin-bottom : var(--s-5);
    color : var(--l-text-2);
    font-size : 14px;
    font-family : var(--font-mono);
    border : 1px solid var(--l-border);
    border-radius : var(--r-md)
}

.svg-step {
    display : flex;
    align-items : center;
    width : fit-content
}

.svg-step svg {
    flex-shrink: 0;
    fill: none;
    stroke: var(--l-text-2);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    height: 25px;
    width: 25px;
    margin-block: auto;
    margin-inline : var(--s-2)
}

.variation-step {
    padding : var(--s-4) var(--s-5);
    display : flex;
    flex-direction : column;
    background : var(--l-bg)
}

.variation-step.gray {
    background : var(--l-surface)
}

.variation-step:first-child{
    border-top-left-radius : var(--r-md);
    border-bottom-left-radius : var(--r-md)
}

.variation-step:last-child {
    border-top-right-radius: var(--r-md);
    border-bottom-right-radius: var(--r-md)
}

.variation-step * {
    margin : 0px
}

.variation-step b {
    font-family : var(--font-sans)
}

.variation-step p {
    font-size : 11px;
    text-transform : uppercase
}

.variation-step span {
    margin-top : auto;
    font-size : 14px
}

.variation-step h3 {
    padding-block : var(--s-2);
    color : var(--l-text);
    font-size : 24px
}

.verdict {
    color: var(--l-text);
    display: flex;
    align-items: center;
    gap: var(--s-3);
    font-size: 14px;
    border-radius: var(--r-md);
    background: var(--l-surface);
    border-radius: var(--r-md);
    padding : var(--s-3);
    padding-left : var(--s-5);
    border : 1px solid var(--l-border);
}

.verdict-number {
    font-family : var(--font-mono);
    font-size : 18px;
    white-space : nowrap;
    font-weight : bold;
}

.verdict.yellow {
    background : color-mix(in srgb, var(--pb-yellow) 10%, transparent);
    border-color : var(--pb-gold)
}

.verdict.green {
    background : color-mix(in srgb, var(--pb-green) 10%, transparent);
    border-color : var(--pb-green)
}

.verdict.green .verdict-number {
    color : var(--pb-green)
}

.verdict.yellow .verdict-number {
    color : var(--pb-yellow )
}


/* ==========================================================================
   1. UTILITÁRIOS E CLASSES GLOBAIS
   ========================================================================== */
.is-visible {
    display: block;
}

.is-hidden {
    display: none !important;
}

.is-invisible {
    visibility : hidden !important
}

.is-neg {
    color: var(--pb-red) !important;
}

.is-pos {
    color: var(--pb-green) !important;
}

.text-highlight-green {
    color: var(--pb-green);
    font-weight: 600;
}

.money {
    white-space: nowrap;
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}

.muted {
    color: var(--l-text-2);
}

.positive {
    color: var(--pb-green-hover);
}

/* ==========================================================================
   2. LAYOUT BASE
   ========================================================================== */
.pb-calc {
    width: min(100%, 1040px);
    margin: 0 auto;
    padding-top: var(--s-7);
    color: var(--l-text);
    position: relative;
    background: transparent;
}

    .pb-calc,
    .pb-calc * {
        box-sizing: border-box;
        min-width: 0;
    }

.pb-tool-header,
.pb-brand-row,
.pb-mark,
.pb-trust-mini,
.pb-tool-header h1,
.pb-tool-header p {
    display: none;
}

.pb-tool-label {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    color: var(--pb-red);
    font-family: var(--font-mono);
    letter-spacing: .16em;
    text-transform: uppercase;
}

    .pb-tool-label::before {
        content: "";
        width: 6px;
        height: 6px;
        background: var(--pb-red);
        border-radius: 50%;
    }

.calc-card,
.calc-section,
.results,
.result-hero,
.comparison-section,
.guide-section,
.graphic-section,
.table-wrap {
    max-width: 100%;
}

/* ==========================================================================
   3. FORMULÁRIOS, INPUTS E GRIDS
   ========================================================================== */
.input-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-3);
}

.two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.one-column {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.max-field {
    flex: 1;
    width: 100%;
}

.field {
    font-size: 14px;
}

.duo-field {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--s-4);
    font-size: 14px;
}

    .duo-field label,
    .field label {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-bottom: var(--s-2);
        color: var(--l-text-2);
        font-family: var(--font-mono);
        letter-spacing: .12em;
        text-transform: uppercase;
        font-size: 11px;
    }

.inner-grid {
    display: grid;
    height: 100%;
    width: 100%;
    gap: var(--s-4);
    align-items: flex-end;
}

    .inner-grid.two {
        grid-template-columns: 3fr auto;
    }

    .inner-grid.two.joint {
        grid-template-columns : 3fr auto;
        gap : 0px
    }
        .inner-grid.two.joint.right div:last-child div select {
            border-bottom-left-radius: 0px;
            border-top-left-radius: 0px;
        }

        .inner-grid.two.joint.right div:first-child div {
            border-bottom-right-radius: 0px;
            border-top-right-radius: 0px;
        } 

        .inner-grid .field {
            flex: 1;
            min-width: 0;
            margin: 0px;
        }

.text-box,
.currency-box {
    display: flex;
    align-items: center;
    max-height: 48px;
    border: 1px solid var(--l-border-2);
    border-radius: var(--r-md);
    background: var(--l-bg);
    transition: border-color var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease), background var(--d-fast) var(--ease);
}

    .currency-box.pad {
        padding-left: var(--s-3);
    }

.text-box {
    justify-content: space-between;
}

    .text-box input {
        box-shadow: none !important;
        font-size: 14px;
        padding-block: 0px;
    }

    .currency-box input,
    .text-box input {
        border: 0px !important;
        outline: none !important;
        box-shadow: none !important;
        font-size: 14px;
    }

    .text-box:focus-within,
    .text-box:hover,
    .currency-box:hover,
    .currency-box:focus-within {
        border-color: var(--l-text);
        outline: none;
    }

.prefix {
    padding-left: var(--s-3);
    padding-right: var(--s-2);
    color: var(--l-text-3);
    font-family: var(--font-mono);
    white-space: nowrap;
}

    .prefix.right {
        padding-left: var(--s-2);
        padding-right: var(--s-3);
    }

.pb-calc radio-pill,
.pb-calc input,
.pb-calc select {
    width: 100%;
    min-height: 46px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--l-text);
}

.pb-calc .select-wrapper {
    display : flex;
    position : relative
}

    .pb-calc .select-wrapper::after {
        content: "";
        position: absolute;
        right: var(--s-2);
        top: 50%;
        transform: translateY(-50%);
        width: 18px;
        height: 18px;
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0B0B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center;
        transition : transform var(--d-base) var(--ease)
    }

    .pb-calc .select-wrapper:focus-within::after{
        transform : translateY(-50%) rotate(180deg)
    }

.pb-calc .select-wrapper.green select {
    border-color : var(--pb-green)
}

.pb-calc select {
    min-height: 48px;
    padding: 0 var(--s-3);
    padding-right: 40px !important;
    min-width: fit-content;
    border: 1px solid var(--l-border-2);
    border-radius: var(--r-md);
    background: var(--l-bg);
    -webkit-appearance: none;
    appearance: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Switches e Radios */
.radio-row {
    display: flex;
    flex-direction: row;
    gap: var(--s-2);
}

    .radio-row .btn {
        height: fit-content;
    }

.radio-pill {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--s-2) var(--s-3);
    border: 1px solid var(--l-border-2);
    border-radius: var(--r-md);
    background: var(--l-bg);
    color: var(--l-text-2);
    cursor: pointer;
    text-align: center;
    outline: none;
    user-select: none;
    font-size: 14px;
    transition: opacity var(--d-fast) var(--ease), transform var(--d-fast) var(--ease);
}

    .radio-pill:hover {
        border-color: var(--d-border);
    }

    .radio-pill input[type="radio"] {
        display: none;
    }

    .radio-pill.is-active {
        border: 2px solid var(--d-border);
        font-weight: bold;
        color: var(--l-text);
    }

#viewModeRow {
    align-items: center;
}

    #viewModeRow .radio-pill {
        padding: var(--s-2) var(--s-3);
        height: fit-content;
        white-space: nowrap;
    }

        #viewModeRow .radio-pill.is-active {
            background: var(--d-bg);
            color: var(--d-text);
            border-color: var(--d-border);
        }

.switch-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--s-4);
    margin-top: var(--s-4);
}

.switch-item {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    color: var(--l-text-2);
    cursor: pointer;
    user-select: none;
}

    .switch-item input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

.switch-track {
    position: relative;
    flex: 0 0 auto;
    width: 38px;
    height: 21px;
    border-radius: 999px;
    background: var(--l-border);
    transition: background var(--d-fast) var(--ease);
}

    .switch-track::before {
        content: "";
        position: absolute;
        left: 2px;
        top: 2px;
        width: 17px;
        height: 17px;
        border-radius: 999px;
        background: var(--l-bg);
        box-shadow: 0 1px 2px rgba(11,11,11,.2);
        transition: transform var(--d-fast) var(--ease);
    }

.switch-item input:checked + .switch-track {
    background: var(--pb-green);
}

    .switch-item input:checked + .switch-track::before {
        transform: translateX(17px);
    }

/* Tooltips e Mensagens */
.error-msg {
    display: none;
    transition: color var(--d-fast) var(--ease);
    margin-top: var(--s-4);
    color: var(--l-text);
}

    .error-msg.is-visible {
        display: block;
        color: var(--pb-red);
    }

.tooltip {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 16px;
    height: 16px;
    border: 1px solid var(--l-border-2);
    border-radius: 999px;
    color: var(--l-text-3);
    cursor: help;
}

    .tooltip::after {
        content: attr(data-tip);
        position: absolute;
        left: 50%;
        bottom: calc(100% + 8px);
        transform: translateX(-50%);
        width: 248px;
        padding: 10px 11px;
        border-radius: var(--r-md);
        background: var(--l-text);
        color: var(--d-text);
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--d-fast) var(--ease);
        z-index: 30;
        box-shadow: 0 14px 30px rgba(11,11,11,.16);
        text-transform: none;
        letter-spacing: 0;
    }

    .tooltip:hover::after {
        opacity: 1;
    }

.advanced-toggle {
    display: flex;
    flex-direction : row;
    align-items: center;
    gap: var(--s-2);
    margin-top: var(--s-4);
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--l-text-2);
    cursor: pointer;
}

    .advanced-toggle:focus {
        outline: none;
    }

    .advanced-toggle svg {
        transition: transform var(--d-fast) var(--ease);
        flex-shrink: 0;
        fill: none;
        stroke: var(--l-text-2);
        stroke-width: 1.5;
        stroke-linecap: round;
        stroke-linejoin: round;
        height : 20px;
        width : 20px;
    }

    .advanced-toggle.is-open svg {
        transform: rotate(180deg);
    }

.advanced-panel {
    display: none;
    margin-top: var(--s-3);
    padding-top: var(--s-3);
    border-top: 1px solid var(--l-border);
}

    .advanced-panel.is-open {
        display: block;
    }

/* ==========================================================================
   4. ESTRUTURA DOS CARDS PRINCIPAIS E CTA's
   ========================================================================== */
.calc-card {
    overflow: hidden;
    border-radius: var(--r-lg);
    background: transparent;
    box-shadow: 0 10px 30px rgba(11,11,11,.035);
    padding: 0px !important;
    margin-bottom: var(--s-6);
}

.calc-inner {
    padding: var(--s-6);
}

.calc-title {
    margin: 0;
}


.calc-subtitle {
    max-width: 720px;
    margin: var(--s-2) 0 var(--s-4);
    color: var(--l-text-2);
}

.calc-footer {
    padding: var(--s-4) var(--s-6);
    border-top: 1px solid var(--l-border);
    background: transparent;
}

.calc-button {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: var(--r-md);
    background: var(--pb-green);
    color: var(--d-text);
    cursor: pointer;
    transition: transform var(--d-fast) var(--ease), background var(--d-fast) var(--ease);
}

    .calc-button:hover {
        background: var(--pb-green-hover);
        transform: translateY(-1px);
    }

.cta-card {
    background-color: var(--d-bg);
    margin-block: var(--s-5);
    padding: var(--s-4) var(--s-5);
    border-radius: var(--r-md);
    display: grid;
    grid-template-columns: 2fr 1fr;
    align-items: center;
    gap: var(--s-4);
}

    .cta-card .btn {
        justify-self: end;
        width: max-content;
    }

    .cta-card b {
        color: var(--d-text);
    }

.cta-text {
    display: flex;
    flex-direction: column;
}

.cta-card p {
    margin: 0px;
    color: var(--d-text-2);
}

.final-cta {
    position: relative;
    grid-template-columns: 220px 1fr;
    overflow: hidden;
    margin-block: var(--s-4);
    display: grid;
    align-items: center;
    gap: var(--s-5);
    padding: var(--s-4);
    border: 1px solid var(--pb-red);
    border-radius: var(--r-lg);
    background: var(--pb-red);
    color: var(--d-text);
}

.kicker {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--l-surface-2);
    text-transform: uppercase;
    margin-bottom: var(--s-3);
}

.final-cta::after {
    content: "";
    position: absolute;
    top: -72px;
    right: -72px;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    pointer-events: none;
}

.final-cta .content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-2);
    width: 75%;
    justify-content: space-between;
}

.final-cta btn {
    width: max-content;
}

.final-cta .image {
    display: flex;
    position: relative;
    align-items: flex-end;
    justify-content: center;
    border-radius: var(--r-md);
}

    .final-cta .image img {
        height: 100%;
        width: 100%;
        object-fit: contain;
        border-radius: var(--r-md);
    }

/* ==========================================================================
   5. RESULTADOS E SEÇÕES INFORMATIVAS
   ========================================================================== */
.results {
    margin-top: var(--s-4);
    padding-block: 0px;
    padding-bottom: var(--s-6);
    display: none;
}

    .results.is-visible {
        display: block;
    }

.calc-section {
    display : flex;
    flex-direction : column;
    position : relative;
    overflow : hidden;
    border : 1px solid var(--l-border);
    border-radius : var(--r-lg);
    background : var(--l-bg);
    padding : var(--s-4)
}

.result-hero {
    display : flex;
    gap : var(--s-4);
    flex-direction : column;
    position: relative;
    overflow: hidden;
    padding: var(--s-6);
    border: 1px solid rgba(22,179,100,.36);
    border-radius: var(--r-lg);
    background: var(--l-bg);
    box-shadow: inset 5px 0 0 var(--pb-green), 0 10px 30px rgba(11,11,11,.035);
}

    .result-hero.red.top {
        box-shadow: inset 0 3.5px 0 var(--pb-red), 0 10px 30px rgba(11,11,11,.035);
    }

    .result-hero.top {
        box-shadow: inset 0px 3.5px 0 var(--pb-green), 0 10px 30px rgba(11,11,11,.035);
    }

    .result-hero.red {
        border-color: var(--pb-red);
        box-shadow: inset 5px 0 0 var(--pb-red), 0 10px 30px rgba(11,11,11,.035);
    }

    .result-hero.clean {
        box-shadow :  none;
        border-color : var(--l-border);
        background : var(--l-bg)
    }

.result-hero * {
    margin : 0px !important
}

.result-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--s-4);
    margin-bottom: var(--s-3);
}

.result-hero h3 {
    margin: 0;
}

.result-hero h2 {
    display : block;
    font-family : var(--font-mono);
    font-size: clamp(16px, 2rem + 2.5vw, 56px);
    color : var(--pb-green);
    white-space : nowrap;
    overflow : hidden;
    text-overflow : ellipsis;
    width : 100%;
    height : auto;
    line-height : 1.1
}

    .result-hero h2.minor {
        font-size: clamp(16px, 1rem + 1.25vw, 34px);
        white-space : wrap;
        font-family : var(--font-sans);
        color : var(--l-text)
    }

.result-copy {
    font-size : clamp(12px, 0.75rem + 0.6vw, 16px);
    max-width: 780px;
    margin: 0 0 var(--s-4);
    color: var(--l-text-2);
}

.result-huge {
    font-size: clamp(24px, 4rem + 1.5vw, 48px)
}

.result-mono {
    font-family : var(--font-mono);
    color : var(--l-text-2);
    font-size : 11px;
    text-transform : uppercase;
    padding-bottom : var(--s-2)
}

.result-listcopy {
    font-size: clamp(11.5px, 0.75rem + 0.6vw, 15.5px);
    font-family: var(--font-mono);
    color: var(--l-text-3);
}

.result-subcopy {
    margin-block: 0px;
    font-size: clamp(11.5px, 0.75rem + 0.6vw, 16px);
    color: var(--l-text-2)
}

/* Status (Eyebrows) */
.eyebrow-cost {
    color: var(--pb-red-hover);
    border-color: rgba(225,17,56,.26);
    background: var(--pb-red-soft);
}

.eyebrow--projection {
    color: var(--pb-blue);
    border-color: rgba(29,78,216,.20);
    background: var(--pb-blue-soft);
}

.eyebrow--discount {
    color: var(--pb-green-hover);
    border-color: rgba(22,179,100,.24);
    background: var(--pb-green-soft);
}

.eyebrow--neutral {
    color: var(--l-text-2);
    border-color: var(--l-border-2);
    background: var(--l-surface);
}

/* COMPOSIÇÃO DE VALORES (BARRAS HORIZONTAIS) */
.composition-section {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
}

    .composition-section .compo-title {
        font-size: 11px;
        color: var(--l-text-3);
        font-family: var(--font-mono);
        text-transform: uppercase;
    }

    .composition-section .compo-legend {
        display: flex;
        flex-direction: row;
        gap: var(--s-4);
        font-size: 14px;
    }

        .composition-section .compo-bar .compo-seg.principal,
        .composition-section .compo-legend .item.principal::before {
            background: var(--d-bg);
        }

        .composition-section .compo-bar .compo-seg.juros,
        .composition-section .compo-legend .item.juros::before {
            background: var(--pb-red);
        }

        .composition-section .compo-bar .compo-seg.multa,
        .composition-section .compo-legend .item.multa::before {
            background: var(--pb-gold-border);
        }

        .composition-section .compo-legend .item {
            font-size: 12px;
            color: var(--l-text-2);
            display: inline-flex;
            font-weight: bold;
            align-items: center;
            gap: var(--s-1);
        }

            .composition-section .compo-legend .item::before {
                content: "";
                background: var(--pb-red);
                display: block;
                margin-right: var(--s-1);
                height: 8px;
                width: 8px;
            }

            .composition-section .compo-legend .item span {
                color: var(--l-text-3);
            }

    .composition-section .compo-bar {
        display: flex;
        flex-direction: row;
        height: 50px;
        border-radius: var(--r-md);
        overflow: hidden;
    }

        .composition-section .compo-bar .compo-seg {
            height: 100%;
        }

/* ALERTAS E NOTAS DENTRO DO RESULTADO */
.alert-copy {
    gap: var(--s-3);
    display: flex;
    align-items: center;
    flex-direction: row;
    margin-block: var(--s-4);
    padding-inline: var(--s-3);
    padding-block: var(--s-3);
    background: color-mix(in srgb, var(--pb-red) 10%, transparent);
    border: 1px solid var(--pb-red);
    border-radius: var(--r-md);
}

    .alert-copy.green {
        background: color-mix(in srgb, var(--pb-green) 10%, transparent);
        border-color: var(--pb-green);
    }

    .alert-copy.yellow {
        background : color-mix(in srgb, var(--pb-gold) 15%, transparent);
        border-color : var(--pb-gold-border)
    }

    .alert-copy.yellow span {
        color : var(--pb-gold);
    }

    .alert-copy span {
        display: block;
        color: var(--pb-red);
        font-family: var(--font-mono);
        text-transform: uppercase;
        font-size: 12px;
    }

    .alert-copy p {
        color: var(--l-text);
        margin: 0px;
        padding: 0px;
        white-space: normal;
        font-size: 13.5px;
        flex: 1;
        font-weight : 500
    }

.notes {
    display: grid;
    gap: var(--s-2);
    margin-top: var(--s-3);
    color: var(--l-text-3);
}

.result-footnotes {
    margin-top: var(--s-3);
    padding: var(--s-3);
    border: 1px solid var(--l-border);
    border-radius: var(--r-md);
    background: var(--l-surface);
}

.red-final {
    margin-top: var(--s-3);
    padding-top: var(--s-3);
    border-top: 1px solid rgba(225,17,56,.18);
    color: var(--pb-red);
}

.motivation-title {
    margin: 0 0 var(--s-3);
}

.projection-div {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    margin-bottom: var(--s-4);
}

    .projection-div p {
        color: var(--l-text-2);
    }

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: var(--s-3);
    margin: 0;
    padding: 0;
    list-style: none;
}

    .benefit-grid li {
        display: grid;
        grid-template-columns: 24px 1fr;
        gap: var(--s-3);
        padding: var(--s-3);
        border: 1px solid rgba(22,179,100,.22);
        border-radius: var(--r-md);
        background: #F7FFF9;
        color: #064E3B;
    }

    .benefit-grid span {
        font-size: 16px;
    }

    .benefit-grid li::before {
        content: "✓";
        display: inline-grid;
        place-items: center;
        width: 24px;
        height: 24px;
        margin-top: 1px;
        border-radius: 999px;
        background: var(--pb-green);
        color: var(--d-text);
    }

    .benefit-grid li strong {
        display: block;
        margin-bottom: var(--s-1);
        color: #065F46;
    }

.reasons-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
    padding-left: 0px;
}

    .reasons-list li {
        display: flex;
        align-items: flex-start;
        font-size: 14px;
        color: var(--l-text-2);
        gap: var(--s-2);
    }

        .reasons-list li::before {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            font-family: var(--font-mono);
            content: "✓";
            color: var(--pb-green);
            font-size: 10px;
            background: color-mix(in srgb, var(--pb-green) 10%, transparent);
            border: 1px solid var(--pb-green);
            width: 18px;
            height: 18px;
            font-weight: bold;
            border-radius: 50%;
        }

/* ALERTAS INTERATIVOS COM TOGGLE */
.alert {
    overflow: hidden;
    margin-top: var(--s-5);
    border: 2px solid var(--pb-red);
    border-radius: var(--r-md);
    background: color-mix(in srgb, var(--pb-red) 8.5%, transparent);
    padding: var(--s-3);
}

    .alert button {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: var(--s-3);
        color: var(--pb-red);
        border: 0;
        outline: none !important;
        background: transparent;
        text-align: left;
        cursor: pointer;
        transition: background var(--d-fast) var(--ease);
    }

.alert-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--s-3);
    width: 100%;
}

    .alert-title * {
        margin: 0px;
    }

    .alert-title svg {
        flex-shrink: 0;
        fill: none;
        stroke: var(--pb-red);
        stroke-width: 1.5;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

        .alert-title svg:first-child {
            height: 24px;
            width: 24px;
        }

        .alert-title svg:last-child {
            height: 20px;
            width: 20px;
            margin-left: auto;
        }

.alert-content {
    display: none;
    padding: 0 var(--s-3) var(--s-3);
}

.alert.is-open button {
    margin-bottom: var(--s-3);
}

.alert.is-open .alert-content {
    display: block;
}

.questions {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--s-3);
    padding: var(--s-3) 0px 0px 0px;
    border-top: 1px solid var(--pb-red);
}

    .questions li {
        display: flex;
        flex-direction: row;
        gap: var(--s-3);
        align-items: center;
        color: color-mix(in srgb, var(--l-text) 50%, var(--pb-red-hover));
    }

        .questions li svg {
            flex-shrink: 0;
            fill: none;
            stroke: var(--pb-red);
            stroke-width: 1.5;
            stroke-linecap: round;
            stroke-linejoin: round;
            height: 20px;
            width: 20px;
        }

/* BARRAS DE PROGRESSÃO */
.progression-div {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
}

    .progression-div span {
        font-size: 11px;
        font-family: var(--font-mono);
        text-transform: uppercase;
        color: var(--l-text-3);
    }

    .progression-div .bar-div {
        position: relative;
        height: 35px;
        border-radius: var(--r-md);
        background: var(--l-surface-2);
        overflow: hidden;
    }

        .progression-div .bar-div .fill {
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            border-radius: var(--r-md) 0 0 var(--r-md);
            transition: width var(--d-base) var(--ease);
        }

            .progression-div .bar-div .fill.win {
                background: color-mix(in srgb, var(--pb-green) 80%, transparent);
                border-right: 2px solid var(--pb-green);
            }

            .progression-div .bar-div .fill.warn {
                background: color-mix(in srgb, var(--pb-red) 80%, transparent);
                border-right: 2px solid var(--pb-red);
            }

        .progression-div .bar-div .valor {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            left: 12px;
            font-size: 14px;
            font-family: var(--font-mono);
            color: var(--l-text);
            text-transform: uppercase;
            font-weight: bold;
            z-index: 5;
            margin: 0;
        }

            .progression-div .bar-div .valor.win {
                color: #00572a
            }

            .progression-div .bar-div .valor.warn {
                color: #570000
            }

        .progression-div .bar-div .divisor {
            position: absolute;
            top: 0;
            bottom: 0;
            width: 2px;
            background: var(--d-bg);
            z-index: 2;
        }

            .progression-div .bar-div .divisor::after {
                content: "28%";
                position: absolute;
                top: 4px;
                left: 8px;
                font-family: var(--font-mono);
                font-size: 14px;
                font-weight: bold;
                color: var(--l-text);
            }

            .progression-div .bar-div .divisor.warn::after {
                color: #570000
            }

            .progression-div .bar-div .divisor.win::after {
                color: #00572a
            }


    .progression-div .progression-footer {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

        .progression-div .progression-footer span {
            color: var(--l-text-3);
            font-size: 11px;
            font-family: var(--font-mono);
        }

/* SUMMARY GRIDS E CARDS */

.equation-grid {
    width : 100%;
    border : 1px solid var(--l-border);
    padding : var(--s-4);
    display : grid;
    grid-template-columns : 1fr auto 1fr auto 1fr;
    gap : var(--s-2);
    margin-block : var(--s-3);
    border-radius : var(--r-md);
    align-items : center
}

.equation-grid .symbol {
    text-align : center;
    margin : 0px;
    font-size : clamp(24px, 2rem, 48px);
    opacity : 0.75;
    color : var(--l-text-2)
}

.equation-card {
    display : flex;
    flex-direction : column;
    text-align : center;
    gap : var(--s-3)
}

.equation-card span {
    font-family : var(--font-mono);
    text-transform : uppercase;
    color : var(--l-text-2);
    font-size : 12px
}

.equation-card strong {
    font-family : var(--font-mono);
    white-space : nowrap;
    overflow : hidden;
    text-overflow : ellipsis;
    font-size: clamp(18px, 1rem + 1.5vw, 28px);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-3);
    margin-block : var(--s-5);
    overflow: hidden;
}

    .summary-grid.duo {
        grid-template-columns: repeat(2, 1fr);
    }

.duo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background: none;
    border: none;
    gap: var(--s-4);
}

    .duo-grid .summary-card {
        border: 1px solid var(--l-border);
        border-radius: var(--r-md);
    }

.triple-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: none;
    border: none;
    gap: var(--s-3);
}

    .triple-grid .card.is-winner {
        border-color: var(--pb-green);
        box-shadow: 0 0 0 1px var(--pb-green);
    }

        .triple-grid .card.is-winner h2 {
            color: var(--pb-green);
        }

    .triple-grid .card {
        border-radius: var(--r-md);
        padding: var(--s-4);
        display: flex;
        flex-direction: column;
        gap: var(--s-4);
    }

        .triple-grid .card * {
            margin: 0px;
        }

        .triple-grid .card span {
            font-weight: bold;
        }

        .triple-grid .card .result {
            display: flex;
            flex-direction: column;
            gap: var(--s-1);
        }

            .triple-grid .card .result h2 {
                font-size: clamp(18px, 1rem + 1.5vw, 28px);
            }

        .triple-grid .card .quota {
            display: flex;
            flex-direction: column;
            gap: var(--s-1);
        }

            .triple-grid .card .quota p,
            .triple-grid .card .result p {
                color: var(--l-text-2);
                font-family: var(--font-mono);
                font-size: 11px;
                text-transform: uppercase;
            }

            .triple-grid .card .quota b {
                color: var(--l-text-2);
            }

        .triple-grid .card .result-card-footer {
            padding-top: var(--s-2);
            border-top: 1px solid var(--l-border);
            font-family: var(--font-mono);
            font-size: 14px;
            color: var(--l-text-2);
        }

.summary-card {
    padding: var(--s-4);
    position: relative;
    background: var(--l-bg);
    border-radius: var(--r-sm);
    border: 1px solid var(--l-border);
}

    .summary-card.winner {
        border-color: var(--pb-green);
        box-shadow: 0 0 0 1px var(--pb-green);
    }

        .summary-card.winner::after {
            content: "✓ MELHOR OPÇÃO";
            position: absolute;
            top: -1px;
            right: 15px;
            background-color: var(--pb-green);
            color: var(--d-text);
            font-family: var(--font-mono);
            font-size: 12px;
            padding: var(--s-1) var(--s-3);
            border-radius: 0 0 var(--r-md) var(--r-md);
        }

        .summary-card.winner span,
        .summary-card.winner strong {
            color: var(--pb-green);
        }

    .summary-card p {
        color: var(--l-text-3);
        margin-top: var(--s-3);
        margin-bottom: 0px;
        font-size: 14px;
    }

    .summary-card span {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        margin-bottom: var(--s-1);
        color: var(--l-text-3);
        font-family: var(--font-mono);
        letter-spacing: .12em;
        font-size: 12px;
        min-height: clamp(24px, 4vh, 48px);
        text-transform: uppercase;
    }

        .summary-card span span {
            margin: 0px;
            padding: 0px;
            display: block;
            color: var(--l-text-2);
            font-size: 11px;
            font-family: var(--font-mono);
            text-transform: uppercase;
        }

    .summary-card strong {
        display: block;
        color: var(--l-text);
        font-family: var(--font-mono);
        font-variant-numeric: tabular-nums;
        font-size: clamp(16px, 1rem + 1.5vw, 24px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis
    }

    .summary-card:nth-child(3) strong {
        color: var(--pb-green-hover);
    }

/* SEÇÃO GUIA E COMPARAÇÕES AVANÇADAS */
.guide-section {
    padding: var(--s-5);
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
    overflow: hidden;
    margin-top: var(--s-5);
    border: 1px solid var(--l-border);
    border-radius: var(--r-lg);
    background: var(--l-surface-2);
}
    
    .guide-section .alternative-title {
        padding-block : 0px;
        font-size : 20px;
        border : none
    }

    .guide-section h3 {
        margin: 0px;
        padding-block: var(--s-4);
        border-bottom: 1px solid var(--l-border);
    }

.guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-5);
}

.guide-grid.triple {
    grid-template-columns : repeat(3, minmax(0,1fr))
}

.guide-card {
    gap: var(--s-2);
    display: flex;
    flex-direction: column;
}

.guide-card-dotted strong {
    display : flex;
    flex-direction : row;
    align-items : center
}

.guide-card-dotted p {
    color : var(--l-text-2);
    font-size : 14px;
    margin-top : var(--s-1)
}

.guide-card-dotted strong::before {
    content : "";
    display : flex;
    margin-right : var(--s-2);
    border-radius : 35%;
    height : 10px;
    width : 10px;
    background : var(--pb-green)
}

.guide-card-dotted.brown strong::before {
    background : var(--pb-gold-border)
}

.guide-card-dotted.gray strong::before {
    background : var(--l-text-2)
}

    .guide-card p {
        color: var(--l-text-2);
        padding: 0px;
        margin: 0px;
    }

    .guide-card .black {
        color: var(--l-text);
    }

    .guide-card .green {
        color: var(--pb-green);
    }

    .guide-card .red {
        color: var(--pb-red);
    }

.comparison-section {
    padding: var(--s-3);
    overflow: hidden;
    margin-top: var(--s-5);
    border: 1px solid var(--l-border);
    border-radius: var(--r-lg);
    background: var(--l-bg);
}

    .comparison-section .section-head {
        padding: var(--s-4);
        border-bottom: 1px solid var(--l-border);
    }

        .comparison-section .section-head h3 {
            margin: 0;
        }

        .comparison-section .section-head p {
            margin: var(--s-2) 0 0;
            color: var(--l-text-2);
        }

    .comparison-section .moreViews {
        margin-top : var(--s-3);
        display : flex;
        justify-content : center
    }

.form-section {
    display: none;
    margin-bottom: var(--s-3);
}

    .form-section.is-visible {
        display: block;
    }

.form-label {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    color: var(--l-text-2);
}

.form-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-4);
    margin-bottom: var(--s-3);
}

.form-option {
    background: transparent;
    display: flex;
    flex-direction: column;
    border-radius: var(--r-md);
    padding: var(--s-4);
    border: 1px solid var(--l-border);
    text-align: left;
    transition: border-color var(--d-fast), background var(--d-fast);
    gap: var(--s-2);
}

    .form-option.is-active {
        border: 2px solid var(--d-border);
    }

    .form-option:hover {
        background: var(--l-surface);
        border-color: var(--d-border);
    }

    .form-option * {
        margin-block: 0px;
    }

    .form-option p {
        color: var(--l-text-2);
        font-size: 14px;
    }

    .form-option span {
        border-radius: var(--r-sm);
        padding: var(--s-2);
        height: 40px;
        background: var(--l-surface-2);
        width: 40px;
        align-items: center;
        justify-content: center;
    }

        .form-option span svg {
            fill: none;
            stroke: var(--l-text);
            stroke-width: 1.6;
        }

.compare {
    gap: var(--s-2);
}

    .compare.duo {
        display: grid;
        gap: var(--s-5);
        grid-template-columns: repeat(2, 1fr);
    }

    .compare .card {
        display: flex;
        flex-direction: column;
        background: var(--l-bg);
        border-radius: var(--r-md);
        border: 1px solid var(--l-border);
        min-width: 0;
    }

        .compare .card.is-winner {
            border-color: var(--pb-green);
            box-shadow: 0 0 0 1px var(--pb-green);
        }

        .compare .card .head,
        .compare .card .rows {
            padding: var(--s-4);
        }

        .compare .card .head {
            display: flex;
            flex-direction: column;
            border-bottom: 1px solid var(--l-border);
        }

            .compare .card .head * {
                margin: 0px;
            }

            .compare .card .head p {
                color: var(--l-text-2);
                font-size: 14px;
            }

            .compare .card .head span {
                text-transform: uppercase;
                color: var(--l-text-2);
                font-family: var(--font-mono);
                font-size: 10px;
            }

        .compare .card .rows {
            display: flex;
            flex: 1;
            flex-direction: column;
        }

            .compare .card .rows .row {
                gap: var(--s-3);
                padding: var(--s-2);
                align-items: baseline;
                font-size: 14px;
                display: flex;
                flex-direction: row;
                border-bottom: 1px solid var(--l-border);
                justify-content: space-between;
            }

                .compare .card .rows .row p,
                .compare .card .rows .row.is-expandable p,
                .compare .card .rows .row.subrow p {
                    margin-block: 0px;
                }

                .compare .card .rows .row p {
                    color: var(--l-text-2);
                    display: flex;
                    align-items: center;
                    gap: var(--s-2);
                    flex: 1;
                    min-width: 0;
                }

                .compare .card .rows .row span {
                    font-family: var(--font-mono);
                    color: var(--l-text-2);
                    white-space: nowrap;
                    flex-shrink: 0;
                }

                    .compare .card .rows .row span.neg {
                        color: var(--pb-red);
                    }

                    .compare .card .rows .row span.pos {
                        color: var(--pb-green);
                    }

                .compare .card .rows .row.is-expandable {
                    cursor: pointer;
                    user-select: none;
                    border-bottom: none;
                }

                    .compare .card .rows .row.is-expandable:hover p {
                        color: var(--l-text);
                    }

                    .compare .card .rows .row.is-expandable svg {
                        width: 14px;
                        height: 14px;
                        stroke: var(--l-text-2);
                        fill: none;
                        stroke-width: 2;
                        transition: transform var(--d-base) var(--ease);
                    }

                    .compare .card .rows .row.is-expandable.is-open svg {
                        transform: rotate(90deg);
                    }

            .compare .card .rows .subrows-div {
                display: grid;
                grid-template-rows: 0fr;
                transition: grid-template-rows var(--d-base) var(--ease);
                border-bottom: 1px solid var(--l-border);
            }

                .compare .card .rows .subrows-div.is-open {
                    grid-template-rows: 1fr;
                }

            .compare .card .rows .subrows-inner {
                overflow: hidden;
                padding-bottom: var(--s-1);
            }

            .compare .card .rows .row.subrow {
                width: 100%;
                display: flex;
                flex-direction: row;
                padding: var(--s-1) 0 var(--s-1) var(--s-4);
                font-size: 13px;
                border-bottom: none;
            }

        .compare .card .row.subrow p {
            color: var(--l-text-3);
        }

            .compare .card .row.subrow p::before {
                content: '';
                width: 5px;
                height: 5px;
                border-radius: 50%;
                background: var(--l-border-2);
            }

        .compare .card .rows .row.subrow span.v {
            color: var(--l-text-2);
        }

        .compare .card .rows .row.is-total {
            border-top: 2px solid var(--d-border);
            border-bottom: none;
            margin-top: auto;
            font-weight: bold;
            padding-top: var(--s-3);
        }

            .compare .card .rows .row.is-total p {
                color: var(--l-text);
            }

            .compare .card .rows .row.is-total span.v {
                font-size: 20px;
                color: var(--l-text);
            }

        .compare .card.is-winner .rows .row.is-total span.v {
            color: var(--pb-green);
        }

/* ==========================================================================
   6. GRÁFICOS (CSS GRID)
   ========================================================================== */
.graphic-section {
    padding: var(--s-3);
    overflow: hidden;
    margin-top: var(--s-5);
    border: 1px solid var(--l-border);
    border-radius: var(--r-lg);
    background: var(--l-bg);
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
    color: var(--l-text-2);
    font-family: var(--font-mono);
}

    .graphic-section .graphic-header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        font-size: 12px;
        text-transform: uppercase;
        color: var(--l-text-2);
    }

        .graphic-section .graphic-header div {
            display: flex;
            flex-direction: row;
            gap: var(--s-3);
        }

            .graphic-section .graphic-header div p {
                display: flex;
                gap: var(--s-2);
                margin: 0px;
                justify-content: center;
                align-items: center;
            }

            .graphic-section .graphic-header div .dark-bar::before {
                background: var(--d-bg);
            }

            .graphic-section .graphic-header div .light-bar::before {
                background: var(--pb-green);
            }

            .graphic-section .graphic-header div p::before {
                border-radius: 20%;
                content: "";
                width: 10px;
                height: 10px;
                background: var(--pb-red);
            }

    .graphic-section button {
        width : fit-content;
        display : flex;
        align-self : center
    }

    .graphic-section .graphic-body {
        min-height: 400px;
        width : 100%;
        position : relative
    }

/* ==========================================================================
   7. TABELAS DE DADOS
   ========================================================================== */
.table-wrap {
    overflow-x: auto;
}

.pb-calc table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.pb-calc th {
    padding: 14px var(--s-3);
    border-bottom: 1px solid var(--l-border);
    background: var(--l-surface);
    color: var(--l-text-3);
    text-align: left;
    font-family: var(--font-mono);
    letter-spacing: .12em;
    font-size: 11px;
    text-transform: uppercase;
}

.pb-calc td {
    padding: 15px var(--s-3);
    font-size: 14px;
    border-bottom: 1px solid var(--l-border);
    vertical-align: top;
}

tr.group-row td {
    background: var(--l-bg);
    color: var(--l-text);
    cursor: pointer;
}

tr.group-row:hover td {
    background: var(--l-surface-2);
}

.centered-table tr td:nth-child(2),
.centered-table tr td:nth-child(3) {
    text-align: center !important;
}

.cmp-card-grid {
    display : grid;
    grid-template-columns : repeat(3,1fr);
    gap : var(--s-4);
    width : 100%;
    align-items : stretch
}

.cmp-card {
    position : relative;
    border-radius : var(--r-md);
    border : 1px solid var(--l-border);
    padding : var(--s-3);
    height : 100%;
    display : flex;
    flex-direction : column;
    gap : var(--s-2);
    color : var(--l-text-2);
    text-align : left
}

.cmp-card.is-now {
    background : var(--l-surface)
}

.cmp-card.is-best {
    border-color : var(--pb-green)
}

.cmp-card *,
.cmp-card-footer *,
.cmp-card-result * {
    margin :0px
}


.cmp-card span {
    font-family : var(--font-mono);
    text-transform : uppercase;
    font-size : 11px
}

.cmp-card p {
    font-size : 12px
}

.cmp-card h3 {
    color : var(--l-text);
    font-size : 18px
}

.cmp-card-badge {
    height : fit-content;
    position : absolute;
    top : -1px;
    border-radius : var(--r-lg);
    background : var(--pb-green);
    color : var(--d-text);
    right : var(--s-3);
    font-size : 10px;
    font-family : var(--font-mono);
    text-transform : uppercase;
    padding : 0px var(--s-3);
    transform : translateY(-50%)
}

.cmp-card-result {
    display : flex;
    flex-direction :column;
    gap : var(--s-3);
    border-top : 1px solid var(--l-border);
    padding-block : var(--s-3);
    margin-bottom : auto;
    padding-top : var(--s-2)
}

.cmp-card-result p {
    width : 100%;
    display : flex;
    flex-direction : row;
    justify-content : space-between;
    white-space : nowrap
}

.cmp-card-result p span {
    color : var(--l-text);
    font-family : var(--font-mono);
    font-size : 14px;
    text-transform : none
}

.cmp-card-result span {
    margin-left : auto;
    text-align : right;
    flex-direction : row;
    font-weight : bold;
    font-size : 26px;
    color : var(--l-text);
}

.cmp-card-result span span {
    margin-top : auto;
    color : var(--l-text-2);
    font-size : 0.6em;
}

.cmp-card-footer {
    border-top: 1px dotted var(--l-border);
    display: flex;
    padding-top: var(--s-3);
    flex-direction: row;
    font-weight: bold;
    justify-content: space-between
}

.cmp-card-footer p {
    color : var(--l-text);
}

.cmp-card-footer span {
    display : flex;
    font-size : 14px;
    flex-direction : row;
    color : var(--pb-green-hover);
    white-space : nowrap
}

.cmp-card-footer span span {
    font-size : 0.75em;
    color : var(--l-text-2);
    font-weight : normal
}


#cmpTable {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

    #cmpTable th,
    #cmpTable td {
        padding: 12px;
        border-bottom: 1px solid var(--l-border);
    }

        #cmpTable th:not(:last-child),
        #cmpTable td:not(:last-child) {
            text-align: left;
        }

        #cmpTable th:last-child,
        #cmpTable td:last-child {
            text-align: right;
        }

    #cmpTable thead th {
        font-size: 11px;
        color: var(--l-text-3);
        text-transform: uppercase;
    }

        #cmpTable thead th .periodo-sub {
            display: block;
            font-size: 9px;
            font-weight: normal;
            opacity: 0.8;
            margin-top: 2px;
            text-transform: none;
        }

    #cmpTable tbody td {
        align-content : center;
        font-size: 14px;
        align-self : center;
        color: var(--l-text);
    }

        #cmpTable tbody td:first-child {
            color: var(--l-text-2);
        }

    #cmpTable tr.cmp-section-title td {
        font-size: 11px;
        font-family: var(--font-mono);
        font-weight: 700;
        color: var(--l-text-3);
        text-transform: uppercase;
        letter-spacing: 1px;
        padding-top: 24px;
        padding-bottom: 8px;
        border-bottom: none;
    }

    #cmpTable tr.cmp-row-total td {
        border-top: 2px solid var(--d-border);
        border-bottom: 0px;
        font-size: 15px;
        font-weight: bold;
        color: var(--l-text);
    }

    #cmpTable th.is-winner,
    #cmpTable td.is-winner {
        background-color: color-mix(in srgb, var(--pb-green) 10%, transparent);
    }

    #cmpTable th.is-winner {
        color: var(--pb-green);
        border-bottom: 1px solid var(--pb-green);
    }

        #cmpTable th.is-winner span {
            color: var(--l-text-2);
        }

    #cmpTable tbody td.is-winner {
        font-weight: 600;
    }

    #cmpTable tr.cmp-row-total td.is-winner {
        color: var(--pb-green);
    }

.group-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chev {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border: 1px solid var(--l-border-2);
    border-radius: 999px;
    background: var(--l-bg);
    color: var(--l-text-3);
    transition: transform var(--d-fast) var(--ease);
}

.group-row.is-open .chev,
.alert.is-open .chev {
    transform: rotate(90deg);
}

.detail-row {
    display: none;
}

    .detail-row.is-open {
        display: table-row;
    }

    .detail-row td {
        background: var(--l-surface-2);
        color: var(--l-text-2);
    }

/* ==========================================================================
   8. MEDIA QUERIES
   ========================================================================== */
@media (min-width: 761px) {
    .pb-calc {
        padding-inline: var(--s-3);
    }
}

@media (max-width: 760px) {
    .hide-mobile {
        display: none !important;
    }

    .variation-div {
        grid-template-columns : none;
        grid-template-rows : 1fr auto 1fr auto 1fr 
    }

    .variation-div svg {
        transform : rotate(0.25turn);
    }

    .cmp-card-grid {
        gap : var(--s-6)
    }

    .pb-calc {
        width: 100%;
        padding: var(--s-6) var(--s-3) var(--s-4);
        overflow-x: hidden;
    }

    .calc-inner,
    .calc-footer,
    .result-hero {
        padding: var(--s-4);
    }

    .input-grid,
    .summary-grid,
    .summary-grid.duo,
    .benefit-grid,
    .questions,
    .cta-card {
        padding-top: var(--s-4);
        gap: var(--s-4);
        grid-template-columns: 1fr;
    }

    .duo-field,
    .form-options-grid,
    .cmp-card-grid,
    .guide-grid,
    .guide-grid.triple,
    .triple-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .compare.duo {
        grid-template-columns: repeat(1, 1fr);
        gap: var(--s-5);
    }

    .radio-row,
    .projection-div,
    .alert-copy {
        flex-direction: column;
    }

    #viewModeRow {
        flex-direction: row;
    }

    .cta-card {
        display: grid;
        padding: var(--s-4);
    }

        .cta-card .cta-text, .cta-card .btn {
            width: 100%;
            max-width: 100%;
        }

        .cta-card .btn {
            font-size: clamp(10px, 3.5vw, 16px);
        }

    .final-cta {
        align-items: flex-start;
        display: flex;
        flex-direction: column;
        gap: var(--s-2);
    }

        .final-cta .content {
            align-items: flex-start;
            text-align: left;
            width: 100%;
            display: flex;
            flex-direction: column;
            gap: var(--s-2);
        }

        .final-cta .btn {
            align-self: center;
        }

    .alert {
        padding: var(--s-1);
    }

    .summary-card.winner {
        padding-top: var(--s-6);
    }

    .benefit-grid {
        gap: var(--s-4);
    }

    .switch-row {
        gap: var(--s-3);
    }

    .results {
        margin-top: var(--s-5);
        overflow-x: hidden;
    }

    .result-top {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: var(--s-3);
    }

    .summary-grid {
        padding: var(--s-3);
        margin: var(--s-4) 0 var(--s-5);
    }

    .composition-section .compo-legend {
        flex-direction: column;
        gap: var(--s-2);
    }

    .guide-grid {
        gap: var(--s-6);
    }

    .guide-grid.triple {
        gap : var(--s-3)
    }
    
    .graphic-section {
        display: none;
    }

    .tooltip::after {
        left: auto;
        right: 0;
        transform: none;
        width: min(248px, calc(100vw - 48px));
    }

    /* ---- TABELAS NO MOBILE ---- */
    .comparison-section {
        margin-top: var(--s-4);
        overflow: hidden;
    }

        .comparison-section .section-head {
            padding: var(--s-4);
            margin-bottom: 0px !important;
        }

    .comparison-section .moreViews button {
        width : 100%
    }

    .table-wrap {
        padding: var(--s-4);
        width: 100%;
        overflow-x: hidden;
    }

    .pb-calc table,
    .pb-calc thead,
    .pb-calc tbody,
    .pb-calc tr,
    .pb-calc th,
    .pb-calc td,
    #cmpTable,
    #cmpTable tbody,
    #cmpTable th,
    #cmpTable td,
    #cmpTable tr {
        display: block;
        width: 100%;
        min-width: 0 !important;
        max-width: 100%;
    }

    .pb-calc table {
        table-layout: fixed;
        border-collapse: separate;
    }

    .pb-calc thead,
    #cmpTable thead {
        display: none;
    }

    .pb-calc tbody {
        gap: var(--s-2);
    }

    .money,
    .type-chip,
    .pb-calc .money,
    .pb-calc .eyebrow {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    /* Tabela de Comparação (#cmpTable) */
    #cmpTable tbody tr {
        margin-bottom: var(--s-6);
        border: 1px solid var(--l-border);
        border-radius: var(--r-md);
        overflow: hidden;
    }

        #cmpTable tbody tr.cmp-section-title {
            border: none;
            background: transparent;
            margin-bottom: var(--s-1);
            margin-top: var(--s-6);
        }

            #cmpTable tbody tr.cmp-section-title td {
                padding: 0;
                margin-bottom: var(--s-2);
                border: none;
            }

    #cmpTable tbody td:first-child {
        background-color: var(--l-surface-2);
        color: var(--l-text);
        text-align: center;
        border-bottom: 1px solid var(--l-border);
        padding: var(--s-3);
    }

    #cmpTable tbody td:not(:first-child) {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        padding: var(--s-3) var(--s-4);
        border-bottom: 1px solid var(--l-border);
    }

    #cmpTable tbody td:last-child {
        border-bottom: none;
    }

    #cmpTable tbody td:not(:first-child)::before {
        content: attr(data-label);
        font-size: clamp(8px, 3vw, 10px);
        color: var(--l-text-3);
        font-weight: 600;
        text-transform: uppercase;
    }

    #cmpTable tbody tr.cmp-row-total td:first-child {
        background-color: var(--d-bg);
        color: var(--d-text);
    }

    #cmpTable tbody tr.cmp-row-total td {
        border-top: 0px;
    }

    /* Tabela Simples e Detalhada */
    .pb-calc tr.group-row {
        display: grid;
        grid-template-columns: 1fr;
        padding: var(--s-3);
        border-bottom: 1px solid var(--l-border);
        background: var(--l-bg);
        border-radius: var(--r-md);
        margin-bottom: var(--s-5);
    }

    .pb-calc .group-row {
        margin-top: var(--s-6);
    }

        .pb-calc .group-row:first-of-type {
            margin-top: 0;
        }

    .pb-calc tr.group-row td {
        padding: 6px;
        border: 0;
        background: transparent;
        overflow-wrap: anywhere;
    }

        .pb-calc tr.group-row td:first-child {
            grid-column: 1 / -1;
        }

            .pb-calc tr.group-row td:first-child::before {
                display: none;
            }

    .pb-calc .group-name {
        align-items: flex-start;
    }

    .pb-calc .detail-row {
        display: none !important;
    }

        .pb-calc .detail-row.is-open {
            display: grid !important;
            grid-template-columns: 1fr;
            gap: var(--s-3);
            padding: var(--s-3);
            border-bottom: 1px solid var(--l-border);
            background: var(--l-bg);
        }

        .pb-calc .detail-row td {
            padding: 6px;
            border: 0;
            background: transparent;
            overflow-wrap: anywhere;
        }

            .pb-calc .detail-row td:first-child {
                grid-column: 1 / -1;
            }

                .pb-calc .detail-row td:first-child::before {
                    display: none;
                }

            .pb-calc tr.group-row td:not(:first-child)::before,
            .pb-calc .detail-row td:not(:first-child)::before {
                content: attr(data-label);
                display: block;
                margin-bottom: var(--s-1);
                color: var(--l-text-3);
                font-family: var(--font-mono);
                letter-spacing: .1em;
                text-transform: uppercase;
            }

    .simple-table tr {
        margin-bottom: var(--s-6);
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }

        .simple-table tr:last-child {
            margin-bottom: 0px;
        }

        .simple-table tr td:nth-child(1) {
            border-bottom: 1px solid var(--l-border);
            width: 100%;
            text-align: center;
            flex: 0 0 100%;
        }

        .simple-table tr td {
            flex: 1;
            text-align: left;
            border-bottom: none;
        }

    .is-total td:nth-child(2) {
        display: none;
    }

    .is-total td:nth-child(3) {
        text-align: center;
    }

    .verdict-number {
        min-width : fit-content
    }
    
    .verdict-text::first-letter {
        text-transform : uppercase
    }

    .svg-step {
        width : 100%;
        display : flex;
        justify-content : center;
        border-block : 1px solid var(--l-border);
        background : var(--l-surface)
    }

    .parcela-grid .parcela {
        flex-direction : column;
    }

    .parcela-grid .parcela .result-final {
        margin :0px;
        text-align : left;
        align-self : flex-start
    }

    .equation-grid {
        grid-template-rows: 1fr auto 1fr auto 1fr;
        grid-template-columns : none
    }

}
