/* ══════════════════════════════════════════════════
   DESIGN TOKENS
══════════════════════════════════════════════════ */
:root {
    --primary:       #441D89;
    --primary-light: #5d2dbd;
    --primary-dark:  #2d135e;
    --bg:            #FFFFFF;
    --text:          #191919;
    --surface:       #F7F5FC;
    --surface-2:     #EDE8F7;
    --border:        #E4DCF5;
    --success:       #10B981;
    --danger:        #EF4444;

    --shadow-sm:  0 2px 8px rgba(68,29,137,.05);
    --shadow-md:  0 8px 24px rgba(68,29,137,.10);
    --shadow-lg:  0 20px 48px rgba(68,29,137,.14);

    --radius-md:  12px;
    --radius-lg:  20px;
    --radius-xl:  28px;

    --transition: all 0.28s cubic-bezier(0.25,0.8,0.25,1);
}

/* ══════════════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════════════ */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* bloqueia scroll horizontal */
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* bloqueia scroll horizontal */
    max-width: 100vw;   /* garante que nada ultrapasse a tela */
    width: 100%;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-style: italic;
    letter-spacing: -0.09em;
    color: var(--primary);
    line-height: 1.2;
}

p, label, span, li, td, th {
    font-family: 'Inter', sans-serif;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hidden { display: none !important; }

/* ══════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════ */
.hero {
    background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 3rem 0;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    top: -200px; right: -150px;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,.03);
    bottom: -150px; left: -100px;
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    color: rgba(255,255,255,.9);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: .35rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.hero-title {
    color: #fff;
    font-size: clamp(2.03rem, 4.61vw, 3.13rem);
    margin-bottom: .5rem;
}

.hero-title-sub {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-style: italic;
    color: #c8b9f4;
    font-size: clamp(1.05rem, 2vw, 1.5rem);
    line-height: 1.25;
    margin-bottom: 1rem;
}

.hero-title em,
.hero-title-sub em {
    font-style: italic;
    color: #c8b9f4;
}

.hero-sub {
    color: rgba(255,255,255,.75);
    font-weight: 400;
    letter-spacing: -.5px;
    font-size: 1.14rem;
    max-width: 520px;
    margin: 0 auto;
}

/* ══════════════════════════════════════════════════
   SPIN SELLING SLIDES
   Copy: Dan Kennedy (PAS) + Gary Halbert (Starving Crowd)
   Design: Visual Generator + UI Engineer
══════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════
   MDW HORIZONTAL SCROLL — SPIN SLIDES
   Scroll vertical converte-se em deslocamento horizontal
══════════════════════════════════════════════════ */
.mdw-horizontal-scroll {
    position: relative;
    width: 100%;
    /* altura setada via JS: (n-1)*100vw + 100vh */
}

.mdw-horizontal-scroll .e-con {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    will-change: transform;
}

.mdw-horizontal-scroll .elementor-element {
    flex: 0 0 100vw;
    width: 100vw;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 0;
}

/* ── Mobile: empilhamento vertical dos slides ── */
@media (max-width: 768px) {
    .mdw-horizontal-scroll {
        height: auto !important; /* anula height definido pelo JS */
    }

    .mdw-horizontal-scroll .e-con {
        flex-direction: column; /* empilha em vez de enfileirar */
        transform: none !important; /* remove qualquer translateX do JS */
        position: static !important;
        width: 100% !important;
    }

    .mdw-horizontal-scroll .elementor-element {
        flex: 0 0 auto;
        width: 100%;           /* ocupa toda a largura disponível */
        min-height: auto;      /* altura cresce com o conteúdo */
        padding: 3rem 0;
    }
}

/* Barra de progresso MDW */
.mdw-progress-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 0;
    background: var(--primary);
    z-index: 9999;
    pointer-events: none;
    transition: width 0.06s linear;
}

/* Indicador de passo dentro do slide */
.slide-step-indicator {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #868e96;
    margin-bottom: .5rem;
}

.slide-step-indicator--light { color: rgba(255,255,255,.4); }

/* Citações / Fontes */
sup {
    font-size: .65em;
    color: inherit;
    opacity: .7;
    vertical-align: super;
    font-style: normal;
}

.slide-sources {
    margin-top: 2rem;
    padding: .85rem 1.1rem;
    background: rgba(0,0,0,.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: .72rem;
    font-weight: 400;
    letter-spacing: -.1px;
    color: #868e96;
    line-height: 1.5;
}

.slide-sources strong {
    font-weight: 700;
    color: #6c757d;
    margin-right: .3rem;
}

.slide-sources em { font-style: italic; }

.slide-sources--light {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.12);
    color: rgba(255,255,255,.45);
}

.slide-sources--light strong { color: rgba(255,255,255,.65); }

/* ── Base de cada lâmina ── */
.slide {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.slide-eyebrow {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: .3rem .9rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.slide-eyebrow--light {
    color: rgba(255,255,255,.7);
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.2);
}

.slide-title {
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    margin-bottom: 1.25rem;
    color: var(--primary);
    max-width: 760px;
}

.slide-title--light { color: #fff; }

.slide-title em { font-style: italic; }

.slide-sub {
    font-weight: 400;
    letter-spacing: -.5px;
    color: #495057;
    font-size: 1.1rem;
    max-width: 640px;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.slide-sub--light { color: rgba(255,255,255,.75); }
.slide-sub strong { color: var(--text); font-weight: 700; }
.slide-sub--light strong { color: #fff; }

/* ── Callout box ── */
.slide-callout {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    margin-top: 2.5rem;
    max-width: 680px;
}

.slide-callout--neutral {
    background: var(--surface-2);
    border-left: 4px solid var(--primary);
}

.slide-callout--dark {
    background: rgba(255,255,255,.08);
    border-left: 4px solid rgba(255,255,255,.4);
}

.slide-callout--danger {
    background: #fff4e6;
    border-left: 4px solid #e67e22;
}

.slide-callout p {
    font-size: .95rem;
    font-weight: 400;
    letter-spacing: -.3px;
    color: var(--text);
    line-height: 1.5;
}

.slide-callout--dark p { color: rgba(255,255,255,.85); }
.slide-callout--danger p { color: #7c4a03; }
.slide-callout p strong { font-weight: 700; }

.callout-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: .05rem; }

/* ════════════════════════════════════════
   S — SITUAÇÃO (fundo branco/limpo)
════════════════════════════════════════ */
.slide--situation {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.slide-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    padding: 1.75rem 1.5rem;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(68,29,137,.2);
    transform: translateY(-2px);
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-style: italic;
    font-size: 2.6rem;
    letter-spacing: -.09em;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: .88rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.5px;
}

.stat-context {
    font-size: .78rem;
    font-weight: 400;
    letter-spacing: -.2px;
    color: #868e96;
    padding-top: .4rem;
    border-top: 1px solid var(--border);
    margin-top: .25rem;
}

/* ════════════════════════════════════════
   P — PROBLEMA (fundo roxo escuro)
════════════════════════════════════════ */
.slide--problem {
    background: linear-gradient(160deg, #1e0d4a 0%, var(--primary-dark) 50%, #2a1060 100%);
    position: relative;
}

/* Círculo decorativo de fundo (referência ao logo) */
.slide--problem::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: rgba(255,255,255,.03);
    top: -150px; right: -100px;
    pointer-events: none;
}

.slide--problem::after {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,.02);
    bottom: -100px; left: 5%;
    pointer-events: none;
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.problem-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.problem-item:hover {
    background: rgba(255,255,255,.1);
}

.problem-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: .1rem; }

.problem-item strong {
    display: block;
    font-size: .95rem;
    color: #fff;
    letter-spacing: -.8px;
    margin-bottom: .2rem;
}

.problem-item span {
    display: block;
    font-size: .78rem;
    font-weight: 400;
    letter-spacing: -.2px;
    color: rgba(255,255,255,.6);
}

/* ════════════════════════════════════════
   I — IMPLICAÇÃO (fundo off-white, tensão)
════════════════════════════════════════ */
.slide--implication {
    background: #fafaf8;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* Tabela de comparação */
.implication-table {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 2rem;
}

.impl-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 0;
}

.impl-row > span {
    padding: .85rem 1.25rem;
    font-size: .88rem;
    font-weight: 400;
    letter-spacing: -.3px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.impl-row > span:not(:last-child) {
    border-right: 1px solid var(--border);
}

.impl-row--header > span {
    font-weight: 700;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #868e96;
    background: var(--surface);
}

.impl-row--total > span {
    font-weight: 700;
    background: var(--surface-2);
    border-bottom: none;
}

/* Atributos data para o layout card no mobile */
.impl-row > span[data-label] {
    position: relative;
}

.impl-bad {
    color: #c0392b !important;
    font-weight: 700 !important;
}

.impl-good {
    color: var(--success) !important;
    font-weight: 700 !important;
}

.impl-delta {
    color: var(--primary) !important;
    font-weight: 700 !important;
}

.impl-delta--big {
    font-size: 1rem !important;
    color: var(--primary) !important;
}

/* Loss boxes */
.implication-loss {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 0;
}

.loss-box {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    padding: 1.75rem;
    border-radius: var(--radius-md);
    background: #fff3cd;
    border: 1.5px solid #f0c040;
}

.loss-box--year {
    background: #fde8e8;
    border-color: #e74c3c;
}

.loss-label {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #7c6200;
}

.loss-box--year .loss-label { color: #9b2335; }

.loss-value {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-style: italic;
    font-size: 2rem;
    letter-spacing: -.09em;
    color: #7c6200;
    line-height: 1;
}

.loss-box--year .loss-value { color: #c0392b; }

.loss-sub {
    font-size: .8rem;
    font-weight: 400;
    letter-spacing: -.2px;
    color: #6c5800;
    margin-top: .25rem;
}

.loss-box--year .loss-sub { color: #8e1a2a; }
.loss-sub strong { font-weight: 700; }

/* ════════════════════════════════════════
   N — NEED-PAYOFF (fundo gradiente marca)
════════════════════════════════════════ */
.slide--payoff {
    background: linear-gradient(150deg, var(--primary) 0%, #3a1880 40%, #5d2dbd 100%);
    position: relative;
    overflow: hidden;
}

.slide--payoff::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    top: -200px; right: -200px;
    pointer-events: none;
}

.payoff-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 3rem;
}

.payoff-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.payoff-item:hover { background: rgba(255,255,255,.12); }

.payoff-check {
    font-size: 1.4rem;
    flex-shrink: 0;
    line-height: 1;
    align-self: center;
}

.payoff-item strong {
    display: block;
    font-size: .95rem;
    color: #fff;
    letter-spacing: -.8px;
    margin-bottom: .25rem;
}

.payoff-item span {
    display: block;
    font-size: .78rem;
    font-weight: 400;
    letter-spacing: -.2px;
    color: rgba(255,255,255,.65);
    line-height: 1.4;
}

/* Ponte CTA → calculadora */
.payoff-cta-bridge {
    text-align: center;
    padding: 2.5rem;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius-lg);
    max-width: 540px;
    margin: 0 auto;
}

.bridge-text {
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: -.5px;
    color: rgba(255,255,255,.85);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.bridge-text strong { color: #fff; font-weight: 700; }

.bridge-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
}

.bridge-arrow > span:first-child {
    font-size: 2rem;
    color: #fff;
    animation: bounce 1.4s ease infinite;
    line-height: 1;
}

.bridge-arrow-label {
    font-size: .78rem !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase;
    color: rgba(255,255,255,.55) !important;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(6px); }
}

/* ── Responsive SPIN slides ── */
@media (max-width: 768px) {
    .mdw-horizontal-scroll .elementor-element {
        padding: 2.5rem 0;
    }
    .slide-stats {
        grid-template-columns: 1fr 1fr;
        gap: .75rem;
    }
    .stat-card:last-child {
        grid-column: span 2;
    }
    .problem-grid     { grid-template-columns: 1fr; }
    .payoff-benefits  { grid-template-columns: 1fr; }
    .implication-loss { grid-template-columns: 1fr; }

    /* Tabela implication: comprime colunas */
    .impl-row { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
    .impl-row > span { padding: .6rem .6rem; font-size: .75rem; }
}

@media (max-width: 520px) {
    /* Formato card-line: cada linha da tabela vira um bloco independente */
    .implication-table {
        border: none;
        background: transparent;
        display: flex;
        flex-direction: column;
        gap: .6rem;
    }

    /* Header da tabela: linha com 3 colunas de rótulos */
    .impl-row--header {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        background: var(--surface);
        border-radius: var(--radius-md);
        overflow: hidden;
        border: 1px solid var(--border);
    }
    .impl-row--header > span {
        padding: .5rem .5rem;
        font-size: .65rem;
        border: none;
        border-right: 1px solid var(--border);
        text-align: center;
        background: var(--surface);
    }
    .impl-row--header > span:last-child { border-right: none; }

    /* Linhas de dados: card com nome em cima + 3 valores embaixo */
    .impl-row:not(.impl-row--header) {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        border: 1.5px solid var(--border);
        border-radius: var(--radius-md);
        overflow: hidden;
        background: var(--bg);
    }

    .impl-row:not(.impl-row--header) > span {
        padding: .7rem .5rem;
        font-size: .8rem;
        border: none;
        border-right: 1px solid var(--border);
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .impl-row:not(.impl-row--header) > span:last-child {
        border-right: none;
    }

    /* Linha total — destaque */
    .impl-row--total {
        border-color: var(--primary) !important;
        background: var(--surface-2) !important;
    }
    .impl-row--total > span {
        background: var(--surface-2);
        font-weight: 700;
        font-size: .82rem !important;
    }
}

/* ── Mobile: Lâminas 1, 2 e 4 ── */
@media (max-width: 768px) {

    /* === LÂMINA 1 — SITUAÇÃO ===
       Cria um layout super compacto para os stats */
    .stat-number {
        font-size: 1.5rem;
    }
    .stat-card {
        padding: .85rem .75rem;
        gap: .2rem;
    }
    .stat-label  { font-size: .75rem; line-height: 1.2; }
    .stat-context { font-size: .65rem; margin-top: .15rem; padding-top: .3rem; }

    /* Reduz margin de títulos para compactar altura */
    .slide-title { margin-bottom: .5rem; font-size: 1.45rem; }

    /* Callout boxes menores */
    .slide-callout {
        padding: .85rem .95rem;
        gap: .65rem;
        margin-top: 1.25rem;
    }
    .slide-callout p { font-size: .82rem; }

    /* Subtítulo dos slides mais colado */
    .slide-sub {
        font-size: .95rem;
        margin-bottom: 1.25rem;
    }

    /* === LÂMINA 2 — PROBLEMA ===
       Reduz padding dos itens de problema */
    .problem-item {
        padding: .9rem 1rem;
        gap: .75rem;
    }
    .problem-item strong { font-size: .88rem; }
    .problem-item span  { font-size: .74rem; }
    .problem-icon { font-size: 1.1rem; }

    /* === LÂMINA 4 — SOLUÇÃO ===
       Compacta os itens de benefícios e a caixa CTA bridge */
    .payoff-item {
        padding: .9rem 1rem;
        gap: .75rem;
    }
    .payoff-check     { font-size: 1.2rem; }
    .payoff-item strong { font-size: .88rem; }
    .payoff-item span   { font-size: .74rem; }

    .payoff-cta-bridge {
        padding: 1.5rem 1rem;
        max-width: 100%;
    }
    .bridge-text { font-size: .95rem; margin-bottom: 1rem; }
}

@media (max-width: 480px) {
    /* Números das stats ainda menores */
    .stat-number { font-size: 1.7rem; }

    /* Badge do hero e eyebrow dos slides */
    .hero-badge { font-size: .7rem; padding: .3rem .8rem; }
    .slide-eyebrow { font-size: .65rem; }
    .slide-step-indicator { font-size: .65rem; }

    /* Fontes de slide-sub menores */
    .slide-sub { font-size: .9rem; }

    /* Slide sources mais compacto */
    .slide-sources { font-size: .65rem; padding: .65rem .85rem; margin-top: 1rem; }
}

/* ══════════════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════════════ */
.app-container {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    padding-top: 2.5rem;
    padding-bottom: 4rem;
}

/* ══════════════════════════════════════════════════
   CARD
══════════════════════════════════════════════════ */
.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    animation: fadeInUp .5s ease backwards;
}

.card:hover { box-shadow: var(--shadow-md); }

.card:nth-child(1) { animation-delay: .05s; }
.card:nth-child(2) { animation-delay: .10s; }
.card:nth-child(3) { animation-delay: .15s; }
.card:nth-child(4) { animation-delay: .20s; }
.card:nth-child(5) { animation-delay: .25s; }
.card:nth-child(6) { animation-delay: .30s; }
.card:nth-child(7) { animation-delay: .35s; }

.card-title {
    font-size: 1.7rem;
    margin-bottom: .5rem;
    border-bottom: 2px solid var(--surface);
    padding-bottom: .75rem;
    margin-bottom: 1.25rem;
}

.card-sub {
    font-weight: 400;
    letter-spacing: -.5px;
    color: #6c757d;
    font-size: .95rem;
    margin-bottom: 1.5rem;
}

/* ══════════════════════════════════════════════════
   MODE BUTTONS
══════════════════════════════════════════════════ */
.mode-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.mode-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    padding: 1.25rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg);
    cursor: pointer;
    transition: var(--transition);
}

.mode-btn:hover { border-color: var(--primary-light); background: var(--surface); }

.mode-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.mode-icon { font-size: 1.5rem; }

.mode-name {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -1px;
    color: var(--text);
}

.mode-btn.active .mode-name { color: #fff; }

.mode-hint {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: .8rem;
    letter-spacing: -.3px;
    color: #6c757d;
}

.mode-btn.active .mode-hint { color: rgba(255,255,255,.7); }

/* ══════════════════════════════════════════════════
   INPUTS
══════════════════════════════════════════════════ */
.input-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.input-group { display: flex; flex-direction: column; gap: .5rem; }
.input-group.span-2 { grid-column: span 2; }

label {
    display: block;
    font-size: .9rem;
    color: var(--text);
    font-weight: 700;
    letter-spacing: -1px;
}

.label-hint {
    display: block;
    font-weight: 400;
    font-size: .78rem;
    letter-spacing: -.3px;
    color: #868e96;
    margin-top: .1rem;
}

input[type="text"],
input[type="number"] {
    width: 100%;
    padding: .75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -1px;
    color: var(--primary);
    background: var(--bg);
    transition: var(--transition);
    outline: none;
}

input[type="text"]:focus,
input[type="number"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(68,29,137,.08);
}

.input-prefix,
.input-suffix {
    display: flex;
    align-items: center;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.input-prefix:focus-within,
.input-suffix:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(68,29,137,.08);
}

.input-prefix span,
.input-suffix span {
    padding: .75rem 1rem;
    background: var(--surface);
    color: #495057;
    font-weight: 700;
    font-size: .9rem;
    white-space: nowrap;
}

.input-prefix span { border-right: 1px solid var(--border); }
.input-suffix span { border-left: 1px solid var(--border); }

.input-prefix input,
.input-suffix input {
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: .75rem 1rem;
}

/* Range slider */
.range-track {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border);
    cursor: pointer;
    margin-top: .5rem;
}

.range-track::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 0 3px rgba(68,29,137,.2);
    transition: var(--transition);
}

.range-track::-webkit-slider-thumb:hover { transform: scale(1.15); }

/* ══════════════════════════════════════════════════
   SCENARIOS
══════════════════════════════════════════════════ */
.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.scenario-card {
    position: relative;
    padding: 1.5rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg);
}

.scenario-card:hover { border-color: var(--primary-light); background: var(--surface); }

.scenario-card.active {
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.scenario-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: .2rem .75rem;
    border-radius: 50px;
    letter-spacing: 0;
    white-space: nowrap;
}

.scenario-header {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .75rem;
}

.scenario-icon { font-size: 1.4rem; }

.scenario-header h3 {
    font-size: 1.2rem;
    color: var(--primary);
}

.scenario-desc {
    font-weight: 400;
    letter-spacing: -.3px;
    font-size: .82rem;
    color: #6c757d;
    margin-bottom: 1rem;
    min-height: 2.4em;
}

.scenario-rates {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.scenario-rates li {
    display: flex;
    justify-content: space-between;
    font-size: .85rem;
    padding: .3rem .6rem;
    border-radius: 6px;
    background: var(--surface-2);
}

.scenario-rates li span { font-weight: 400; color: #6c757d; }
.scenario-rates li strong { color: var(--primary); }

.scenario-card.active .scenario-rates li { background: rgba(68,29,137,.08); }

/* ─── Card Personalizado ─── */
.scenario-card--custom {
    grid-column: 1 / -1;   /* ocupa toda a largura da grid */
}

.custom-rates {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .75rem;
    margin-top: 1rem;
}

.custom-rate-item {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.custom-rate-item label {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: -.3px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.custom-unit {
    font-weight: 400;
    font-size: .7rem;
    color: #adb5bd;
    text-transform: none;
    letter-spacing: 0;
}

.custom-rate-input {
    width: 100%;
    padding: .55rem .75rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -1px;
    color: var(--primary);
    background: var(--bg);
    transition: var(--transition);
    outline: none;
    -moz-appearance: textfield;
}

.custom-rate-input::-webkit-outer-spin-button,
.custom-rate-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.custom-rate-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(68,29,137,.1);
}

.scenario-card--custom.active .custom-rate-input {
    border-color: rgba(68,29,137,.35);
    background: rgba(68,29,137,.03);
}

@media (max-width: 768px) {
    .scenario-card--custom { grid-column: 1 / -1; }
    .custom-rates { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .custom-rates { grid-template-columns: 1fr 1fr; }
    .scenario-card--custom { grid-column: 1 / -1; }
}

/* ══════════════════════════════════════════════════
   LEVERS
══════════════════════════════════════════════════ */
.levers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .9rem;
}

.lever-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    background: var(--bg);
}

.lever-card:hover { border-color: var(--primary-light); background: var(--surface); }

.lever-left { flex-shrink: 0; position: relative; }

.lever-input {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
}

.lever-toggle {
    display: block;
    width: 40px; height: 22px;
    background: var(--border);
    border-radius: 11px;
    position: relative;
    transition: var(--transition);
}

.lever-toggle::after {
    content: '';
    position: absolute;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: #fff;
    top: 3px; left: 3px;
    transition: var(--transition);
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
}

.lever-input:checked + .lever-toggle {
    background: var(--primary);
}

.lever-input:checked + .lever-toggle::after {
    transform: translateX(18px);
}

.lever-card:has(.lever-input:checked) {
    border-color: var(--primary);
    background: var(--surface);
}

.lever-icon { font-size: 1.3rem; flex-shrink: 0; }

.lever-info {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.lever-info strong {
    font-size: .95rem;
    color: var(--text);
    letter-spacing: -.8px;
}

.lever-info span {
    font-weight: 400;
    font-size: .78rem;
    letter-spacing: -.3px;
    color: #6c757d;
}

/* ══════════════════════════════════════════════════
   FUNNEL CENTRALIZADO
══════════════════════════════════════════════════ */
.fc {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* Cada step tem largura decrescente → forma de funil */
.fc-step {
    width: 100%;
    border-radius: var(--radius-md);
    padding: 1rem 1.4rem 1rem;
    color: #fff;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Brilho sutil */
.fc-step::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.07) 0%, transparent 60%);
    pointer-events: none;
}

/* Larguras decrescentes — o funil (7 etapas) */
.fc-s1 { width: 100%;  background: #6535c9; }
.fc-s2 { width: 87%;   background: #5d2dbd; }
.fc-s3 { width: 74%;   background: #5429b3; }
.fc-s4 { width: 62%;   background: #4a22a0; }
.fc-s5 { width: 51%;   background: #3d1a8c; }
.fc-s6 { width: 41%;   background: #2d1378; }
.fc-s7 { width: 32%;   background: #1a0a45; border: 2px solid var(--success); }

/* Conteúdo interno */
.fc-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .7rem;
}

.fc-left {
    display: flex;
    align-items: center;
    gap: .6rem;
    min-width: 0;
}

.fc-icon { font-size: 1.1rem; flex-shrink: 0; }

.fc-label {
    display: block;
    font-size: .88rem;
    font-weight: 700;
    color: rgba(255,255,255,.95);
    letter-spacing: -.8px;
    white-space: nowrap;
}

.fc-sublabel {
    display: block;
    font-size: .72rem;
    font-weight: 400;
    letter-spacing: -.2px;
    color: rgba(255,255,255,.6);
    white-space: nowrap;
}

.fc-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}

.fc-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -1.5px;
    line-height: 1;
    transition: var(--transition);
}

.fc-value--xl { font-size: 2rem; color: #6ee7b7; }

.fc-pct {
    font-size: .72rem;
    font-weight: 700;
    color: rgba(255,255,255,.55);
    letter-spacing: -.3px;
}

/* Barra dentro do step */
.fc-bar-track {
    height: 4px;
    background: rgba(255,255,255,.15);
    border-radius: 2px;
    overflow: hidden;
}

.fc-bar-fill {
    height: 100%;
    background: rgba(255,255,255,.55);
    border-radius: 2px;
    transition: width .6s cubic-bezier(0.25,0.8,0.25,1);
    min-width: 4px;
}

.fc-bar-fill--success {
    background: linear-gradient(90deg, var(--success), #34d399);
}

/* ── Tips expansíveis dentro de cada etapa ── */
.fc-tips { margin-top: .6rem; }

.fc-tips > summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
    transition: color .2s;
    user-select: none;
    padding: .25rem 0;
}
.fc-tips > summary::after {
    content: '▸';
    font-size: .6rem;
    transition: transform .2s;
}
.fc-tips[open] > summary       { color: rgba(255,255,255,.8); }
.fc-tips[open] > summary::after { transform: rotate(90deg); }
.fc-tips > summary::-webkit-details-marker { display: none; }

.fc-tips-body {
    margin-top: .65rem;
    background: rgba(0,0,0,.22);
    border-radius: var(--radius-md);
    padding: .85rem 1rem;
    border: 1px solid rgba(255,255,255,.08);
}
.fc-tips-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .8rem;
}
.fc-tips-col-title {
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: .45rem;
    display: block;
}
.fc-tips-col-title--danger  { color: #fca5a5; }
.fc-tips-col-title--success { color: #6ee7b7; }

.fc-tips-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}
.fc-tips-list li {
    font-size: .72rem;
    color: rgba(255,255,255,.72);
    line-height: 1.45;
    letter-spacing: -.01em;
    padding-left: .85rem;
    position: relative;
}
.fc-tips-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .5em;
    width: 4px; height: 4px;
    border-radius: 50%;
}
.fc-tips-list--danger li::before  { background: #fca5a5; }
.fc-tips-list--success li::before { background: #6ee7b7; }

/* Pescoço do funil — a seta de transição */
.fc-neck {
    width: 2px;
    height: 10px;
    background: var(--border);
    position: relative;
}

.fc-neck::after {
    content: '▼';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    font-size: .55rem;
    color: var(--border);
    line-height: 1;
}

/* ══════════════════════════════════════════════════
   RESULTS GRID
══════════════════════════════════════════════════ */
.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.result-card {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    padding: 1.5rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg);
    transition: var(--transition);
}

.result-card:hover { box-shadow: var(--shadow-sm); }

.result-card--primary {
    border-color: var(--primary);
    background: var(--surface);
    grid-column: span 1;
}

.result-label {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #868e96;
}

.result-value {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -1.5px;
    color: var(--primary);
    transition: var(--transition);
}

.result-card--primary .result-value { font-size: 1.9rem; }

.result-desc {
    font-size: .78rem;
    font-weight: 400;
    letter-spacing: -.3px;
    color: #868e96;
}

/* ══════════════════════════════════════════════════
   COMPARISON TABLE
══════════════════════════════════════════════════ */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}

.comparison-table th {
    padding: .9rem 1.25rem;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-style: italic;
    font-size: 1.1rem;
    letter-spacing: -0.06em;
    text-align: left;
    background: var(--surface);
    border-bottom: 2px solid var(--border);
}

.comparison-table th:first-child { color: var(--text); }
.th-convencional { color: #868e96; }
.th-metodo { color: var(--primary); }

.comparison-table td {
    padding: .85rem 1.25rem;
    border-bottom: 1px solid var(--border);
    font-weight: 400;
    letter-spacing: -.3px;
    vertical-align: middle;
}

.comparison-table tr:last-child td { border-bottom: none; }

.comparison-table td:first-child {
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.8px;
}

.td-convencional { color: #868e96; }
.td-metodo { color: var(--text); }
.td-metodo strong { color: var(--primary); }

.comparison-table tr:nth-child(even) td {
    background: rgba(68,29,137,.02);
}

/* ══════════════════════════════════════════════════
   CTA
══════════════════════════════════════════════════ */
.cta-section { animation: fadeInUp .5s ease backwards .4s; }

.cta-card {
    background: linear-gradient(145deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
    border-radius: var(--radius-xl);
    padding: 3.5rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.cta-circle {
    position: absolute;
    width: 360px; height: 360px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    top: -120px; right: -100px;
    pointer-events: none;
}

.cta-body { position: relative; z-index: 1; }

.cta-title {
    color: #fff;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: .75rem;
}

.cta-sub {
    color: rgba(255,255,255,.75);
    font-weight: 400;
    letter-spacing: -.5px;
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.cta-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.25rem;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius-md);
    padding: 1.25rem 2rem;
    flex-wrap: wrap;
}

.cta-summary-item {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    text-align: center;
}

.cta-summary-item span {
    font-size: .75rem;
    color: rgba(255,255,255,.65);
    letter-spacing: -.3px;
    font-weight: 400;
}

.cta-summary-item strong {
    font-size: 1.3rem;
    color: #fff;
    letter-spacing: -1px;
}

.cta-summary-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,.2);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: #fff;
    color: var(--primary);
    padding: 1rem 2rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -1px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,.12);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,.18);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: rgba(255,255,255,.1);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.3);
    padding: 1rem 2rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -1px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(255,255,255,.18);
    transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════
   RESULT CARDS — VARIANTES DE STATUS
══════════════════════════════════════════════════ */

/* Lucro Real ocupa 2 colunas */
.result-card--lucro-real {
    grid-column: span 2;
}

.result-card--lucro-real .result-value {
    font-size: 2.1rem;
    transition: color .3s ease;
}

.result-card--danger  { border-color: var(--danger)  !important; background: #fff8f8; }
.result-card--warning { border-color: #f59e0b !important; background: #fffdf5; }
.result-card--success { border-color: var(--success) !important; background: #f0fdf4; }

.result-card--danger  .result-value { color: var(--danger); }
.result-card--warning .result-value { color: #b45309; }
.result-card--success .result-value { color: var(--success); }

/* ROAS — ponto colorido */
.roas-dot {
    display: inline-block;
    width: 9px; height: 9px;
    border-radius: 50%;
    vertical-align: middle;
    margin-left: .35rem;
    transition: background .3s ease;
}
.roas-dot--danger  { background: var(--danger); }
.roas-dot--warning { background: #f59e0b; }
.roas-dot--success { background: var(--success); }

/* ══════════════════════════════════════════════════
   DIAGNOSTIC BANNER
══════════════════════════════════════════════════ */
.diagnostic-banner {
    margin-top: 1.25rem;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border);
    overflow: hidden;
    animation: fadeInUp .4s ease backwards .05s;
}

.diag--danger  { border-color: #fca5a5; }
.diag--warning { border-color: #fcd34d; }
.diag--success { border-color: #6ee7b7; }

/* Cabeçalho */
.diag-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.5rem;
}
.diag--danger  .diag-header { background: #fef2f2; }
.diag--warning .diag-header { background: #fffbeb; }
.diag--success .diag-header { background: #f0fdf4; }

.diag-header-icon { font-size: 1.5rem; flex-shrink: 0; }

.diag-title {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -.8px;
}
.diag--danger  .diag-title { color: #991b1b; }
.diag--warning .diag-title { color: #78350f; }
.diag--success .diag-title { color: #064e3b; }

.diag-subtitle {
    display: block;
    font-size: .8rem;
    font-weight: 400;
    letter-spacing: -.3px;
    color: #6c757d;
    margin-top: .15rem;
    line-height: 1.4;
}

/* Matemática */
.diag-math {
    padding: 1rem 1.5rem;
    background: var(--surface);
    border-top: 1px solid var(--border);
}
.diag-math-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .3rem 0;
    font-size: .88rem;
    font-weight: 400;
    letter-spacing: -.3px;
    color: #495057;
}
.diag-math-row strong { font-weight: 700; color: var(--text); }
.diag-math-row--sub { border-top: 1px dashed var(--border); margin-top: .25rem; padding-top: .55rem; }
.diag-math-row--sub strong { color: var(--danger); }
.diag-math-row--result {
    border-top: 2px solid var(--border);
    margin-top: .3rem;
    padding-top: .55rem;
    font-weight: 700;
    font-size: .95rem;
}
.diag-negative { color: var(--danger) !important; }
.diag-positive { color: var(--success) !important; }

/* Gargalo */
.diag-gargalo {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--bg);
}
.diag-gargalo-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #868e96;
    margin-bottom: .4rem;
}
.diag-gargalo-etapa {
    display: block;
    font-size: 1rem;
    color: var(--primary);
    letter-spacing: -.8px;
    margin-bottom: .3rem;
}
.diag-gargalo-text {
    font-size: .88rem;
    font-weight: 400;
    letter-spacing: -.3px;
    color: #495057;
    line-height: 1.5;
}
.diag-gargalo-text strong { font-weight: 700; color: var(--text); }
.diag-gargalo-ganho { font-weight: 700; color: var(--success); }

/* Ações */
.diag-actions {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--bg);
}
.diag-actions-title {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #868e96;
    margin-bottom: .85rem;
}
.diag-action-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .6rem 0;
    border-bottom: 1px solid var(--surface-2);
}
.diag-action-item:last-child { border-bottom: none; }
.diag-action-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: .05rem; }
.diag-action-item strong {
    display: block;
    font-size: .9rem;
    letter-spacing: -.7px;
    color: var(--text);
    margin-bottom: .1rem;
}
.diag-action-item span {
    display: block;
    font-size: .8rem;
    font-weight: 400;
    letter-spacing: -.3px;
    color: #6c757d;
    line-height: 1.4;
}

/* Rodapé equilíbrio */
.diag-equilibrio {
    padding: .85rem 1.5rem;
    background: var(--surface);
    border-top: 1px solid var(--border);
    font-size: .82rem;
    font-weight: 400;
    letter-spacing: -.3px;
    color: #6c757d;
    text-align: center;
    line-height: 1.8;
}
.diag-equilibrio strong { font-weight: 700; color: var(--text); }

/* Responsive */
@media (max-width: 768px) {
    .result-card--lucro-real { grid-column: span 2; }
}
@media (max-width: 480px) {
    .result-card--lucro-real { grid-column: span 1; }
    .diag-math-row { flex-direction: column; align-items: flex-start; gap: .15rem; }
}

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    font-size: .85rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.5px;
}

.footer-disclaimer {
    font-weight: 400 !important;
    font-size: .75rem !important;
    color: #868e96 !important;
    max-width: 560px;
    margin: .4rem auto 0;
}

/* ══════════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════════ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes countUp {
    from { opacity: 0; transform: scale(.92); }
    to   { opacity: 1; transform: scale(1); }
}

.value-updated {
    animation: countUp .25s ease;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .mode-grid           { grid-template-columns: 1fr; }
    .input-grid          { grid-template-columns: 1fr; }
    .input-group.span-2  { grid-column: span 1; }
    .scenarios-grid      { grid-template-columns: 1fr; }
    .levers-grid         { grid-template-columns: 1fr; }
    .results-grid        { grid-template-columns: 1fr 1fr; }
    .result-card--primary { grid-column: span 2; }
    .cta-summary         { gap: 1rem; }
    .cta-summary-divider { display: none; }
    .cta-buttons         { flex-direction: column; align-items: stretch; }

    /* Card — padding reduzido no mobile */
    .card { padding: 1.25rem 1rem; }

    /* CTA */
    .cta-card { padding: 2rem 1.25rem; }

    /* Funil mobile — larguras ajustadas para caber na tela */
    .fc-s1 { width: 100%; }
    .fc-s2 { width: 95%; }
    .fc-s3 { width: 88%; }
    .fc-s4 { width: 81%; }
    .fc-s5 { width: 74%; }
    .fc-s6 { width: 68%; }
    .fc-s7 { width: 62%; }
    .fc-tips-cols { grid-template-columns: 1fr; }

    .fc-label    { font-size: .78rem; }
    .fc-sublabel { display: none; }
    .fc-value    { font-size: 1.2rem; }
    .fc-value--xl { font-size: 1.6rem; }
}

@media (max-width: 480px) {
    /* Bloqueia qualquer elemento que possa vazar */
    * { min-width: 0; }

    body { letter-spacing: -.8px; }

    .results-grid        { grid-template-columns: 1fr; }
    .result-card--primary { grid-column: span 1; }
    .result-card--lucro-real { grid-column: span 1; }

    /* Slides — reduz padding lateral */
    .mdw-horizontal-scroll .elementor-element { padding: 2rem 0; }

    /* Funil pequenos */
    .fc-s1 { width: 100%; }
    .fc-s2 { width: 97%; }
    .fc-s3 { width: 93%; }
    .fc-s4 { width: 89%; }
    .fc-s5 { width: 85%; }
    .fc-s6 { width: 81%; }
    .fc-s7 { width: 77%; }

    /* Loss boxes */
    .implication-loss { grid-template-columns: 1fr; }

    /* Tipografia de títulos menores */
    .slide-title {
        font-size: clamp(1.45rem, 6vw, 1.85rem);
    }
    .card-title { font-size: 1.35rem; }
    .result-value { font-size: 1.3rem; }
    .result-card--primary .result-value { font-size: 1.5rem; }
    .result-card--lucro-real .result-value { font-size: 1.5rem; }
}
