/* ==========================================================================
   BOA CONTA - ESTILOS PERSONALIZADOS (REFATORADO)
   ========================================================================== */

/* --- 1. CONFIGURAÇÕES GERAIS, TIPOGRAFIA E ACESSIBILIDADE --- */

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Balanceamento de Texto e Legibilidade */
h1, h2, h3 { 
    text-wrap: balance; 
}
p { 
    text-wrap: pretty; 
}

/* Cor de Seleção Customizada */
::selection {
    background: rgba(162, 255, 26, 0.25);
    color: #003819;
}
::-moz-selection {
    background: rgba(162, 255, 26, 0.25);
    color: #003819;
}

/* Indicadores de Foco no Teclado (:focus-visible) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid #137a28 !important;
    outline-offset: 2px !important;
}

/* Indicadores de foco de alto contraste para superfícies escuras */
section.bg-primary a:focus-visible,
section.bg-primary button:focus-visible,
section.bg-\[\#001b0c\] a:focus-visible,
section.bg-\[\#001b0c\] button:focus-visible,
footer a:focus-visible,
footer button:focus-visible {
    outline: 2px solid #a2ff1a !important;
    outline-offset: 2px !important;
}

/* Remove contorno padrão do navegador apenas quando focus-visible for suportado */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
[role="button"]:focus:not(:focus-visible) {
    outline: none !important;
}

/* Marca: os assets atuais sao quadrados; este lockup recorta a area util da logo. */
.brand-lockup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: hidden;
}

.brand-lockup-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.brand-lockup-header {
    width: clamp(126px, 10vw, 154px);
    height: 54px;
    margin-left: -8px;
}

.brand-lockup-footer {
    width: 174px;
    height: 70px;
    margin-left: -10px;
    border-radius: 12px;
    background: transparent;
}

.brand-lockup-footer .brand-lockup-image {
    filter: brightness(0) invert(1);
    opacity: 0.96;
}

.support-nav-trigger,
.support-menu-trigger {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    cursor: pointer;
}

.support-chat-popover[hidden] {
    display: none !important;
}

.support-chat-popover {
    --support-chat-bg: #f7f4ee;
    --support-chat-dot: #e0ddd5;
    position: fixed;
    right: clamp(14px, 2.5vw, 30px);
    bottom: clamp(14px, 2.5vw, 28px);
    width: min(372px, calc(100vw - 28px));
    max-height: calc(100svh - 32px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 16px;
    background: #ffffff;
    color: #191c1e;
    box-shadow: 0 24px 56px -30px rgba(0, 56, 25, 0.58),
                0 8px 22px -18px rgba(0, 0, 0, 0.28);
    z-index: 70;
    transform-origin: bottom right;
}

.support-chat-popover.is-open {
    animation: support-pop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.support-chat-header {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-height: 132px;
    padding: 22px 20px 28px;
    flex: 0 0 auto;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 88% 14%, rgba(162, 255, 26, 0.18), transparent 32%),
        linear-gradient(135deg, #003819 0%, #008069 100%);
}

.support-chat-header::after {
    content: '';
    position: absolute;
    left: -12%;
    right: -12%;
    bottom: -38px;
    height: 58px;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    background:
        radial-gradient(var(--support-chat-dot) 1px, transparent 0),
        radial-gradient(var(--support-chat-dot) 1px, transparent 0),
        var(--support-chat-bg);
    background-size: 16px 16px;
    background-position: 0 0, 8px 8px;
}

.support-chat-header > * {
    position: relative;
    z-index: 1;
}

.support-chat-avatar {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(0, 56, 25, 0.08);
}

.support-chat-avatar img {
    width: 39px;
    height: 39px;
    object-fit: contain;
}

.support-chat-header p {
    margin: 2px 0 2px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    font-weight: 800;
}

.support-chat-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.05;
}

.support-chat-header span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.86rem;
    font-weight: 700;
}

.support-chat-header i {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #a2ff1a;
    box-shadow: 0 0 0 4px rgba(162, 255, 26, 0.18);
}

.support-chat-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: background-color 0.18s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.support-chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.support-chat-close .material-symbols-outlined {
    color: #ffffff;
    font-size: 1.65rem;
    line-height: 1;
}

.support-chat-thread {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 16px 16px 14px;
    background:
        radial-gradient(var(--support-chat-dot) 1px, transparent 0),
        radial-gradient(var(--support-chat-dot) 1px, transparent 0),
        var(--support-chat-bg);
    background-size: 16px 16px;
    background-position: 0 0, 8px 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 56, 25, 0.24) transparent;
}

.support-message {
    max-width: 84%;
    padding: 9px 11px 10px;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.42;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.support-message-name {
    display: block;
    margin-bottom: 4px;
    font-size: 0.74rem;
    font-weight: 900;
    line-height: 1;
}

.support-message-agent {
    align-self: flex-start;
    border-top-left-radius: 4px;
    color: #191c1e;
    background: #ffffff;
}

.support-message-agent .support-message-name {
    color: #137a28;
}

.support-message-user {
    align-self: flex-end;
    border-top-right-radius: 4px;
    color: #003819;
    background: #d9fdd3;
}

.support-message-user .support-message-name {
    color: #008069;
}

.support-chat-form {
    padding: 10px 12px 12px;
    border-top: 1px solid rgba(0, 56, 25, 0.08);
    background: #f4f1ea;
    flex: 0 0 auto;
}

.support-chat-compose {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    align-items: end;
    gap: 8px;
}

.support-chat-compose textarea {
    min-height: 46px;
    max-height: 108px;
    resize: none;
    border: 1px solid #dfe8df;
    border-radius: 18px;
    padding: 10px 12px;
    color: #191c1e;
    background: #ffffff;
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.35;
}

.support-chat-compose textarea:focus {
    outline: none !important;
    box-shadow: none !important;
}

.support-chat-compose:focus-within textarea {
    border-color: rgba(0, 128, 105, 0.42);
}

.support-chat-compose button {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: #00897b;
    cursor: pointer;
    box-shadow: 0 12px 24px -16px rgba(0, 137, 123, 0.8);
    transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.support-chat-compose button:hover {
    transform: translateY(-1px);
    background: #007866;
}

.support-chat-compose button .material-symbols-outlined,
.journey-whatsapp-send .material-symbols-outlined {
    color: #ffffff;
    font-size: 1.25rem;
    line-height: 1;
}

.support-chat-status {
    min-height: 0;
    margin: 6px 2px 0;
    color: #52645a;
    font-size: 0.78rem;
    font-weight: 700;
}

.support-chat-status:empty {
    display: none;
}

.support-chat-status[data-tone="error"] {
    color: #b42318;
}

.support-chat-status[data-tone="success"] {
    color: #008069;
}

@keyframes support-pop {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 640px) {
    .support-menu-trigger {
        font-size: inherit;
        line-height: inherit;
        color: inherit;
    }

    .support-chat-popover {
        top: auto;
        bottom: 12px;
        left: 12px;
        right: 12px;
        width: auto;
        max-height: calc(100svh - 24px);
    }

    .support-chat-header {
        min-height: 126px;
        padding: 20px 18px 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .support-chat-popover.is-open {
        animation: none;
    }
}

.site-footer {
    position: relative;
    overflow: hidden;
    width: 100%;
    color: #ffffff;
    background:
        linear-gradient(180deg, #003819 0%, #002b13 100%);
}

.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(162, 255, 26, 0.08) 1px, transparent 1px),
        linear-gradient(180deg, rgba(162, 255, 26, 0.06) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, transparent 0%, black 22%, black 100%);
    opacity: 0.32;
}

.site-footer-inner,
.site-footer-bottom {
    position: relative;
    z-index: 1;
}

.site-footer-inner {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(150px, 0.45fr) minmax(230px, 0.65fr);
    gap: clamp(34px, 6vw, 92px);
    align-items: start;
    padding-top: clamp(48px, 7vw, 78px);
    padding-bottom: clamp(40px, 6vw, 68px);
}

.site-footer-brand p {
    max-width: 35rem;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.74);
    font-size: clamp(0.98rem, 1.1vw, 1.08rem);
    line-height: 1.7;
}

.site-footer-nav,
.site-footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
}

.site-footer-nav span,
.site-footer-contact span {
    margin-bottom: 4px;
    color: #a2ff1a;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.site-footer-nav a,
.site-footer-secondary-link,
.site-footer-bottom a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.94rem;
    font-weight: 700;
    transition: color 0.18s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-footer-nav a:hover,
.site-footer-secondary-link:hover,
.site-footer-bottom a:hover {
    color: #ffffff;
    transform: translateX(2px);
}

.site-footer-whatsapp {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 9999px;
    color: #003819;
    background: #a2ff1a;
    font-size: 0.95rem;
    font-weight: 900;
    transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-footer-whatsapp:hover {
    transform: translateY(-1px);
    background: #ffffff;
}

.site-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 18px;
    padding-bottom: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.82rem;
    font-weight: 600;
}

.site-footer-bottom div {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 18px;
}

.site-footer-bottom a {
    min-height: 32px;
    font-size: 0.82rem;
}

@media (max-width: 900px) {
    .site-footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .brand-lockup-header {
        width: 122px;
        height: 50px;
    }

    .brand-lockup-footer {
        width: 160px;
        height: 64px;
    }

    .site-footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .site-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer-bottom div {
        justify-content: flex-start;
    }
}


/* --- 2. ANIMAÇÕES, REVEALS E EFEITOS VISUAIS --- */

/* Reveal Animations (Conteúdo visível por padrão, aprimorado com JS) */
.reveal {
    opacity: 1;
    transform: none;
}
.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal[data-reveal].visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal[data-reveal="1"] { transition-delay: 0.08s; }
.reveal[data-reveal="2"] { transition-delay: 0.16s; }
.reveal[data-reveal="3"] { transition-delay: 0.24s; }

/* Blur Reveal Variant */
.reveal-blur[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(4px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-blur[data-reveal].visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}
.reveal-blur[data-reveal="1"] { transition-delay: 0.12s; }
.reveal-blur[data-reveal="2"] { transition-delay: 0.24s; }
.reveal-blur[data-reveal="3"] { transition-delay: 0.36s; }

/* Entrada em Cascata do Hero (Blur) */
.hero-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(16px) translateZ(0);
    filter: blur(6px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--hero-d, 0s),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--hero-d, 0s),
                filter 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--hero-d, 0s);
}
.hero-entrance.visible .hero-word {
    opacity: 1;
    transform: translateY(0) translateZ(0);
    filter: blur(0);
}
.hero-subtitle-entrance {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(3px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.1s,
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.1s,
                filter 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.1s;
}
.hero-entrance.visible .hero-subtitle-entrance {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}
.hero-cta-entrance {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.4s,
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.4s;
}
.hero-entrance.visible .hero-cta-entrance {
    opacity: 1;
    transform: translateY(0);
}

/* Efeito Flutuante de Elementos */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(1deg); }
    50% { transform: translateY(-8px) rotate(1deg); }
}
@media (prefers-reduced-motion: no-preference) {
    .float-hero { animation: float 6s ease-in-out infinite; }
}

/* 3D Entry Animation and Tilt (Hero Phone Frame) */
.phone-3d-container {
    perspective: 1200px;
    perspective-origin: 50% 50%;
}
.phone-3d-container .float-hero {
    transform-style: preserve-3d;
    transform: rotateY(7.95deg) rotateX(2deg) rotateZ(1deg);
    animation: hero-roll 1s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}
@keyframes hero-roll {
    0% {
        transform: rotateY(180deg) rotateX(-20deg) scale(0.9);
        opacity: 0;
    }
    100% {
        transform: rotateY(7.95deg) rotateX(2deg) rotateZ(1deg) scale(1);
        opacity: 1;
    }
}

/* Mouse Spotlight (Hero background) */
.hero-spotlight {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.hero-spotlight.active {
    opacity: 1;
}

/* Divisores Luminosos das Seções */
.section-glow-divider {
    height: 1px;
    width: 0%;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent, rgba(19, 122, 40, 0.2) 30%, rgba(162, 255, 26, 0.15) 50%, rgba(19, 122, 40, 0.2) 70%, transparent);
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.section-glow-divider.visible {
    width: 80%;
}


/* --- 3. ELEMENTOS INTERATIVOS E EFEITOS DE HOVER --- */

/* Glow de Botões no Hover */
.btn-glow-green {
    transition: background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-glow-green:hover {
    box-shadow: 0 0 28px -4px rgba(19, 122, 40, 0.35),
                0 4px 12px -2px rgba(19, 122, 40, 0.18);
    transform: translateY(-2px);
}
.btn-glow-accent {
    transition: background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-glow-accent:hover {
    box-shadow: 0 0 28px -4px rgba(162, 255, 26, 0.3),
                0 4px 12px -2px rgba(162, 255, 26, 0.15);
    transform: translateY(-2px);
}

/* Card Flat Rest Rule: elevação e borda gradiente no hover */
.card-rest {
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.25s ease-out, transform 0.25s ease-out;
}
.card-rest:hover {
    box-shadow: 0 10px 15px -3px rgba(25, 28, 30, 0.08), 0 4px 6px -2px rgba(25, 28, 30, 0.03);
    transform: translateY(-2px);
}
.card-rest::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #137a28, #a2ff1a);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}
.card-rest:hover::before {
    opacity: 1;
}

/* Tabela Comparativa: Efeito de Pulse na Célula de Destaque */
@keyframes highlight-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.04); }
    100% { transform: scale(1); }
}
.table-highlight-cell {
    display: inline-block;
}
.table-highlight-cell.animated {
    animation: highlight-pulse 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- 4. COMPONENTE WHATSAPP CHAT --- */

.whatsapp-chat-area {
    background-color: #efeae2;
    background-image: radial-gradient(#d5d0c7 1px, transparent 0), radial-gradient(#d5d0c7 1px, transparent 0);
    background-size: 16px 16px;
    background-position: 0 0, 8px 8px;
    overflow-y: hidden !important;
    overscroll-behavior: none !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    transition:
        opacity 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.whatsapp-chat-area.is-chat-transitioning {
    opacity: 0.68;
    filter: blur(1.6px) saturate(0.88);
    transform: translateY(5px);
}

/* Esconder barra de rolagem customizada do chat para visual limpo */
.whatsapp-chat-area::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* Balões de Mensagem */
.wa-bubble {
    --wa-delay: 0ms;
    --wa-enter-x: 0px;
    --wa-origin-x: center;
    --wa-pop-duration: 0.48s;
    max-width: 85%;
    padding: 6px 10px 8px 10px;
    border-radius: 12px;
    font-size: 11px;
    line-height: 1.4;
    position: relative;
    box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
    opacity: 0;
    transform: translate3d(var(--wa-enter-x), 12px, 0) scale(0.96);
    transform-origin: var(--wa-origin-x) 80%;
    filter: blur(5px);
    animation: wa-pop var(--wa-pop-duration) cubic-bezier(0.16, 1, 0.3, 1) var(--wa-delay) forwards;
    will-change: transform, opacity, filter;
}

@keyframes wa-pop {
    0% {
        opacity: 0;
        transform: translate3d(var(--wa-enter-x), 12px, 0) scale(0.96);
        filter: blur(5px);
    }
    70% {
        opacity: 1;
        transform: translate3d(0, -1px, 0) scale(1.012);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        filter: blur(0);
    }
}

/* Balão Esquerdo (Bot) */
.wa-bubble.wa-left {
    background-color: #ffffff;
    color: #191c1e;
    align-self: flex-start;
    border-top-left-radius: 0;
}
.wa-bubble.wa-left::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    border-width: 0 6px 6px 0;
    border-color: transparent #ffffff transparent transparent;
}

/* Balão Direito (Usuário) */
.wa-bubble.wa-right {
    background-color: #d9fdd3;
    color: #191c1e;
    align-self: flex-end;
    border-top-right-radius: 0;
}
.wa-bubble.wa-right::before {
    content: '';
    position: absolute;
    right: -6px;
    top: 0;
    border-width: 0 0 6px 6px;
    border-color: transparent transparent transparent #d9fdd3;
}

/* Indicador de Horário e Status das Mensagens */
.wa-time {
    font-size: 8px;
    color: #667781;
    text-align: right;
    margin-top: 2px;
    display: block;
    user-select: none;
}
.wa-right .wa-time {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
}

.wa-input-placeholder {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.wa-input-placeholder::after {
    content: '';
    width: 1px;
    height: 1.2em;
    border-radius: 999px;
    background: #00897b;
    opacity: 0;
    transform: translateY(1px);
    animation: journey-caret-blink 1.05s steps(1, end) infinite;
}

/* Efeito de Digitanto ("Typing Indicator") */
.wa-typing {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 4px 8px;
}
.wa-typing-dot {
    width: 4px;
    height: 4px;
    background-color: #667781;
    border-radius: 50%;
    animation: wa-typing-bounce 1s infinite ease-in-out;
}
.wa-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.wa-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes wa-typing-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Elementos Internos de Anexos no WhatsApp */
.wa-document {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(0,0,0,0.03);
    padding: 6px;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.06);
    margin-bottom: 2px;
}
.wa-chart-container, 
.wa-image-container {
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 4px;
    border: 1px solid rgba(0,0,0,0.06);
}

.whatsapp-chat-area .wa-bubble {
    transition:
        opacity 0.82s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.82s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.82s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.82s cubic-bezier(0.22, 1, 0.36, 1);
}


/* --- 4.1 JORNADA WHATSAPP: HERO A CONTATO --- */

:root {
    --journey-contact-cover: 0px;
}

.whatsapp-journey {
    --journey-contact-hold: 0px;
    --journey-lead-progress: 0;
    isolation: isolate;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.whatsapp-journey.overflow-hidden {
    overflow: visible !important;
}

.journey-bg-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(0, 56, 25, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(0, 56, 25, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, black 0%, black 72%, transparent 100%);
}

.journey-cinematic-veil {
    position: fixed;
    pointer-events: none;
    opacity: calc(var(--journey-lead-progress, 0) * 0.5);
    z-index: 0;
    transition: opacity 0.56s cubic-bezier(0.22, 1, 0.36, 1);
}

.journey-cinematic-veil {
    inset: 0;
    background:
        radial-gradient(ellipse at 58% 62%, rgba(255, 255, 255, 0) 0 42%, rgba(0, 56, 25, 0.025) 76%, rgba(0, 56, 25, 0.06) 100%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.02) 38%, rgba(255, 255, 255, 0.02) 62%, rgba(255, 255, 255, 0.34));
}

.journey-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
    gap: clamp(48px, 7vw, 96px);
    align-items: start;
}

.journey-copy {
    min-width: 0;
    position: relative;
    z-index: 1;
    transition: opacity 0.56s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.56s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.56s cubic-bezier(0.22, 1, 0.36, 1);
}

.journey-panel {
    min-height: 78svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 660px;
    padding: 56px 0;
    opacity: 0.42;
    transform: translateY(12px);
    transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.journey-panel.is-active,
.journey-panel-hero {
    opacity: 1;
    transform: translateY(0);
}

.journey-panel-hero {
    min-height: calc(100svh - 5rem);
    padding-top: 72px;
}

.journey-contact-panel {
    min-height: 92svh;
    padding-bottom: 104px;
}

.journey-step-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: #137a28;
}

.journey-step-kicker span {
    width: 34px;
    height: 34px;
    border-radius: 9999px;
    background: rgba(19, 122, 40, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 900;
}

.journey-step-kicker strong {
    font-size: 0.78rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.journey-panel h2 {
    color: #003819;
    font-size: clamp(2.15rem, 4vw, 4.4rem);
    line-height: 1.04;
    letter-spacing: -0.02em;
    font-weight: 900;
    max-width: 11ch;
    margin-bottom: 22px;
    text-wrap: balance;
}

.journey-panel p {
    color: #404940;
    font-size: clamp(1rem, 1.25vw, 1.16rem);
    line-height: 1.7;
    max-width: 54ch;
}

.journey-visual {
    position: relative;
    align-self: stretch;
    min-height: 100%;
    z-index: 2;
}

.journey-cover-spacer {
    display: none;
}

.journey-visual-stage {
    position: relative;
    position: sticky;
    top: 5rem;
    height: calc(100svh - 5rem);
    min-height: 620px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.journey-phone-aura {
    position: absolute;
    width: min(38vw, 420px);
    height: min(38vw, 420px);
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(19, 122, 40, 0.08), rgba(162, 255, 26, 0.035) 42%, transparent 70%);
    filter: blur(20px);
    opacity: 1;
    transform: scale(1);
    transition:
        opacity 0.58s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.58s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.58s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.journey-contact-nudge {
    display: none;
}

.journey-phone-wrap {
    --journey-phone-x: 0px;
    --journey-phone-y: 96px;
    --journey-phone-scale: 1.11;
    position: relative;
    width: min(34vw, 375px);
    min-width: 320px;
    transform: translate(var(--journey-phone-x), var(--journey-phone-y)) scale(var(--journey-phone-scale));
    transform-origin: center bottom;
    opacity: 1;
    filter: none;
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.42s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

.journey-phone {
    box-shadow: 0 26px 60px -24px rgba(0, 56, 25, 0.42);
    transition: box-shadow 0.58s cubic-bezier(0.22, 1, 0.36, 1);
}

.journey-input-mimic[hidden],
.journey-whatsapp-form[hidden] {
    display: none !important;
}

.journey-whatsapp-form {
    background: #efeae2;
    border-top: 1px solid #e3dfd7;
    padding: 7px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.journey-whatsapp-form-phone {
    padding: 18px 8px 8px;
    gap: 0;
}

.journey-whatsapp-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #003819;
    font-size: 10px;
    font-weight: 800;
}

.journey-whatsapp-compose {
    display: flex;
    align-items: flex-end;
    gap: 6px;
}

.journey-compose-shell {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 44px;
    border: 1px solid #e3dfd7;
    border-radius: 22px;
    background: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 11px;
    box-shadow: 0 1px 0.5px rgba(0,0,0,0.08);
}

.journey-compose-shell::after {
    content: '';
    width: 1px;
    height: 18px;
    margin: 0 1px 0 0;
    border-radius: 999px;
    background: #00897b;
    opacity: 0;
    flex: 0 0 auto;
}

.journey-compose-shell:has(textarea:focus)::after,
.journey-compose-shell:has(textarea:not(:placeholder-shown))::after {
    opacity: 0 !important;
    animation: none !important;
}

.journey-compose-shell > .material-symbols-outlined {
    color: #667781;
    font-size: 17px;
    line-height: 1;
    margin-bottom: 0;
    flex: 0 0 auto;
}

.journey-whatsapp-form textarea {
    flex: 1 1 auto;
    min-width: 0;
    border: 1px solid #d6d1c8;
    border-color: transparent;
    border-radius: 0;
    background: transparent;
    color: #191c1e;
    font-size: 11px;
    line-height: 1.35;
    padding: 0;
    outline: none;
    resize: none;
    min-height: 22px;
    max-height: 76px;
    box-shadow: none;
    caret-color: #00897b;
    align-self: center;
    overflow: hidden;
}

.journey-whatsapp-form textarea:focus,
.journey-whatsapp-form textarea:focus-visible {
    outline: none !important;
    outline-offset: 0 !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.journey-compose-shell:focus-within {
    border-color: rgba(19, 122, 40, 0.22);
    box-shadow:
        0 1px 0.5px rgba(0,0,0,0.08),
        0 0 0 2px rgba(19, 122, 40, 0.08);
}

.journey-whatsapp-send {
    border: 0;
    border-radius: 9999px;
    background: #00897b;
    color: #ffffff;
    width: 44px;
    height: 44px;
    padding: 0;
    flex: 0 0 44px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.journey-whatsapp-send:hover {
    background: #00796b;
    transform: translateY(-1px);
}

.journey-whatsapp-send:active {
    transform: translateY(0) scale(0.96);
}

.journey-whatsapp-send:disabled {
    opacity: 0.64;
    cursor: wait;
    transform: none;
}

.journey-form-message {
    min-height: 16px;
    margin: 0;
    color: #404940;
    font-size: 10px;
    line-height: 1.35;
}

.journey-form-message:empty {
    display: none;
    min-height: 0;
}

.journey-form-message[data-tone="error"] {
    color: #b42318;
}

.journey-form-message[data-tone="success"] {
    color: #137a28;
}

.journey-form-message[data-tone="loading"] {
    color: #404940;
}

.journey-mobile-chat,
.journey-mobile-whatsapp {
    display: none;
}

@media (max-width: 1023px) {
    .journey-layout {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .journey-copy {
        display: contents;
    }

    .journey-panel {
        min-height: auto;
        opacity: 1;
        transform: none;
        padding: 72px 0 32px;
        max-width: none;
    }

    .journey-panel-hero {
        order: 1;
        min-height: auto;
        padding-top: 52px;
    }

    .journey-visual {
        order: 2;
        position: relative;
        top: auto;
        min-height: auto;
        width: 100%;
    }

    .journey-visual-stage {
        height: min(78svh, 570px);
        min-height: 470px;
        margin: 0 -20px 18px;
        align-items: flex-start;
        padding-top: 8px;
    }

    .journey-phone-wrap {
        width: min(82vw, 330px);
        min-width: 0;
        transform: translateY(44px) scale(1);
    }

    .journey-panel h2 {
        max-width: 13ch;
        font-size: clamp(2rem, 9vw, 3.25rem);
    }

    .jornada-step[data-journey-step="receipt"] { order: 3; }
    .jornada-step[data-journey-step="schedule"] { order: 4; }
    .jornada-step[data-journey-step="reconcile"] { order: 5; }
    .jornada-step[data-journey-step="report"] { order: 6; }
    .jornada-step[data-journey-step="lead_capture"] { order: 7; }

    .journey-mobile-chat {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 24px;
        padding: 14px;
        border: 1px solid #e3dfd7;
        border-radius: 14px;
        background-color: #efeae2;
        background-image: radial-gradient(#d5d0c7 1px, transparent 0);
        background-size: 10px 10px;
    }

    .journey-mobile-whatsapp {
        display: block;
        margin-top: 28px;
    }

    .journey-mobile-whatsapp .journey-mobile-chat {
        margin-top: 0;
        margin-bottom: 12px;
    }

    .journey-mobile-whatsapp .journey-whatsapp-form {
        border: 1px solid #e3dfd7;
        border-radius: 14px;
        background: #efeae2;
        padding: 8px;
    }

    .journey-mobile-whatsapp .journey-whatsapp-compose {
        align-items: flex-end;
    }

    .journey-mobile-whatsapp .journey-whatsapp-form label {
        font-size: 12px;
    }

    .journey-mobile-whatsapp .journey-compose-shell {
        min-height: 96px;
        border-radius: 16px;
        align-items: flex-start;
        padding: 12px;
    }

    .journey-mobile-whatsapp .journey-compose-shell > .material-symbols-outlined {
        margin-top: 1px;
        margin-bottom: 0;
    }

    .journey-mobile-whatsapp .journey-whatsapp-form textarea {
        min-height: 70px;
        font-size: 14px;
        padding: 0;
    }

    .journey-mobile-whatsapp .journey-whatsapp-send {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }
}

@media (min-width: 1024px) {
    :root {
        --journey-contact-cover: clamp(880px, 112svh, 980px);
    }

    .whatsapp-journey {
        --journey-contact-hold: clamp(2200px, 270svh, 2420px);
        --journey-contact-dwell: clamp(1940px, 244svh, 2140px);
    }

    .whatsapp-journey + .quote-kinetic-section {
        position: relative;
        display: flex;
        align-items: center;
        min-height: 100svh;
        z-index: 6;
        margin-top: calc(-1 * var(--journey-contact-cover));
    }

    .whatsapp-journey.is-quote-cover-complete {
        background: transparent !important;
        pointer-events: none;
    }

    .journey-cover-spacer {
        display: block;
        height: var(--journey-contact-hold);
    }

    .journey-copy::after {
        content: '';
        display: block;
        height: var(--journey-contact-dwell);
    }

    .whatsapp-journey.is-phone-focus .journey-cinematic-veil {
        opacity: calc(0.14 + (var(--journey-lead-progress, 0) * 0.36));
    }

    .whatsapp-journey.is-phone-focus .journey-copy {
        opacity: max(0.38, calc(1 - (var(--journey-lead-progress, 0) * 0.62)));
        filter: none;
        transform: translateX(calc(var(--journey-lead-progress, 0) * -10px));
        pointer-events: none;
    }

    .whatsapp-journey.is-phone-focus .journey-visual-stage {
        overflow: visible;
    }

    .whatsapp-journey.is-phone-focus .journey-phone {
        box-shadow:
            0 38px 84px -42px rgba(0, 56, 25, 0.56),
            0 0 0 1px rgba(0, 56, 25, 0.12);
    }

    .whatsapp-journey.is-phone-focus .journey-phone-aura {
        opacity: 1;
        filter: blur(26px);
        transform: scale(1.14);
    }

    .whatsapp-journey.is-quote-cover-complete .journey-phone-wrap,
    .whatsapp-journey.is-quote-cover-complete .phone-reflection {
        opacity: 0;
        filter: blur(10px);
        pointer-events: none;
    }

    .journey-contact-panel {
        scroll-margin-top: clamp(360px, 48svh, 430px);
    }

    .whatsapp-journey.is-lead-active .journey-contact-panel {
        max-width: 470px;
    }

    .whatsapp-journey.is-lead-active .journey-contact-panel h2 {
        max-width: 8.7ch;
        opacity: 0;
        transform: translateX(-18px);
        transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .journey-phone-wrap .journey-contact-nudge {
        position: absolute;
        right: calc(100% + 14px);
        bottom: 14%;
        z-index: 4;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        width: 205px;
        max-width: 205px;
        padding: 10px 10px 10px 15px;
        border: 1px solid rgba(19, 122, 40, 0.18);
        border-radius: 9999px;
        background: rgba(255, 255, 255, 0.94);
        color: #003819;
        box-shadow: 0 10px 18px -16px rgba(0, 56, 25, 0.45);
        opacity: 0;
        transform: translateY(10px) scale(0.72);
        transform-origin: right center;
        transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
        pointer-events: none;
    }

    .journey-contact-nudge-copy {
        display: flex;
        min-width: 0;
        flex-direction: column;
        gap: 2px;
        line-height: 1;
    }

    .journey-contact-nudge-copy span {
        font-size: clamp(0.78rem, 1vw, 0.9rem);
        font-weight: 800;
        color: rgba(0, 56, 25, 0.72);
        white-space: nowrap;
    }

    .journey-contact-nudge-copy strong {
        font-size: clamp(1.02rem, 1.55vw, 1.36rem);
        line-height: 1;
        font-weight: 900;
        color: #003819;
        white-space: nowrap;
    }

    .journey-contact-nudge-icon {
        width: 28px;
        height: 28px;
        border-radius: 9999px;
        background: #00897b;
        color: #ffffff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 17px;
        line-height: 1;
        flex: 0 0 auto;
    }

    .whatsapp-journey.is-lead-active .journey-contact-nudge {
        opacity: 1;
        transform: translateY(0) scale(0.72);
    }

    .whatsapp-journey.is-lead-active .journey-contact-nudge-icon {
        animation: journey-nudge-pointer 1.45s cubic-bezier(0.16, 1, 0.3, 1) infinite;
    }

    .whatsapp-journey.is-lead-active .wa-avatar-container {
        animation: journey-agent-presence 2.8s ease-in-out infinite;
        box-shadow:
            0 0 0 2px rgba(19, 122, 40, 0.16),
            0 0 14px -8px rgba(19, 122, 40, 0.56);
    }

    .whatsapp-journey.is-lead-active .wa-contact-status {
        color: #a2ff1a;
        text-shadow: none;
    }

    .whatsapp-journey.is-lead-active .wa-lead-agent-bubble {
        opacity: 1;
        filter: none;
        transform: translateY(0) scale(1.02);
        z-index: 3;
        transition-duration: 0.88s;
        box-shadow:
            0 14px 28px -18px rgba(0, 56, 25, 0.42),
            0 0 0 2px rgba(162, 255, 26, 0.1),
            inset 0 0 0 1px rgba(19, 122, 40, 0.18);
    }

    .whatsapp-journey.is-lead-active .whatsapp-chat-area .wa-bubble:not(.wa-lead-agent-bubble) {
        animation: none;
        opacity: 0.24;
        filter: grayscale(0.36) saturate(0.78) blur(0.35px);
        transform: scale(0.985);
        transition-duration: 0.88s;
    }

    .whatsapp-journey.is-lead-active .whatsapp-chat-area::after {
        content: '';
        position: sticky;
        bottom: 0;
        display: block;
        width: 100%;
        height: 56px;
        margin-top: -56px;
        pointer-events: none;
        background: linear-gradient(to top, rgba(239, 234, 226, 0.92), rgba(239, 234, 226, 0));
    }

    .whatsapp-journey.is-lead-active .journey-compose-shell {
        border-color: rgba(19, 122, 40, 0.28);
        animation: journey-compose-breathe 2.6s ease-in-out infinite;
    }

    .whatsapp-journey.is-lead-active .journey-compose-shell::after {
        opacity: 1;
        animation: journey-caret-blink 1.05s steps(1, end) infinite;
    }

    .whatsapp-journey.is-lead-active .journey-whatsapp-send {
        animation: journey-send-breathe 1.9s ease-in-out infinite;
    }

    .journey-mobile-whatsapp {
        display: none !important;
    }
}

@keyframes journey-compose-breathe {
    0%, 100% {
        box-shadow:
            0 1px 0.5px rgba(0,0,0,0.08),
            0 0 0 0 rgba(19, 122, 40, 0);
    }
    50% {
        box-shadow:
            0 1px 0.5px rgba(0,0,0,0.08),
            0 0 0 4px rgba(19, 122, 40, 0.12);
    }
}

@keyframes journey-send-breathe {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 0 0 0 rgba(0, 137, 123, 0.32);
    }
    50% {
        transform: translateY(-1px) scale(1.04);
        box-shadow: 0 0 0 9px rgba(0, 137, 123, 0);
    }
}

@keyframes journey-caret-blink {
    0%, 48% {
        opacity: 1;
    }
    49%, 100% {
        opacity: 0;
    }
}

@keyframes journey-agent-presence {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.06);
    }
}

@keyframes journey-nudge-pointer {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(3px, 3px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .journey-cinematic-veil,
    .journey-phone,
    .journey-phone-wrap,
    .journey-phone-aura,
    .whatsapp-chat-area,
    .phone-reflection {
        transition-duration: 0.01ms;
    }

    .whatsapp-journey.is-lead-active .wa-avatar-container,
    .whatsapp-journey.is-lead-active .journey-contact-nudge-icon,
    .whatsapp-journey.is-lead-active .journey-compose-shell,
    .whatsapp-journey.is-lead-active .journey-whatsapp-send,
    .wa-input-placeholder::after,
    .whatsapp-journey.is-lead-active .journey-compose-shell::after {
        animation: none;
    }

    .whatsapp-journey.is-lead-active .whatsapp-chat-area .wa-bubble:not(.wa-lead-agent-bubble) {
        filter: none;
    }

    .whatsapp-chat-area.is-chat-transitioning {
        opacity: 1;
        filter: none;
        transform: none;
    }
}

/* Decoração com curvas SVG em background */
.svg-curve {
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

/* --- 5. PERSPECTIVA 3D DO SMARTPHONE --- */

.phone-scene {
    perspective: 1200px;
    perspective-origin: 60% 50%;
}
.phone-3d {
    transform: rotateY(-8deg) rotateX(2deg);
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    animation: phone-float 5s ease-in-out infinite;
}
.phone-scene:hover .phone-3d {
    transform: rotateY(-3deg) rotateX(1deg);
    animation-play-state: paused;
}

@keyframes phone-float {
    0%, 100% { transform: rotateY(-8deg) rotateX(2deg) translateY(0); }
    50% { transform: rotateY(-8deg) rotateX(2deg) translateY(-6px); }
}

/* Brilho da tela do celular */
.phone-3d .whatsapp-phone-frame {
    box-shadow: 0 25px 50px -12px rgba(25, 28, 30, 0.15);
}

/* Reflexão suave abaixo do celular */
.phone-reflection {
    position: absolute;
    bottom: -20px;
    left: 10%;
    right: 10%;
    height: 40px;
    background: radial-gradient(ellipse at center, rgba(0,56,25,0.08) 0%, transparent 70%);
    filter: blur(8px);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Layout Compósito da Foto + Smartphone Frame */
.person-phone-composite {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.person-phone-composite .person-image {
    position: relative;
    z-index: 1;
}
.person-phone-composite .phone-overlay {
    position: absolute;
    z-index: 2;
}

/* Responsividade Mobile: Empilhar celular em cima do retrato */
@media (max-width: 767px) {
    .person-phone-composite {
        flex-direction: column;
        align-items: center;
    }
    .person-phone-composite .phone-overlay {
        position: relative;
        right: auto !important;
        bottom: auto !important;
        width: 280px !important;
        margin-bottom: -40px;
        z-index: 20;
    }
    .phone-3d {
        transform: rotateY(-4deg) rotateX(1deg);
    }
    @keyframes phone-float {
        0%, 100% { transform: rotateY(-4deg) rotateX(1deg) translateY(0); }
        50% { transform: rotateY(-4deg) rotateX(1deg) translateY(-4px); }
    }
}


/* --- 6. 3D KINETIC TYPOGRAPHY (Citação/Sundar Pichai) --- */

.quote-kinetic-section {
    position: relative;
    overflow: hidden;
}
.quote-kinetic-section .reveal-kinetic .q-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(12px) translateZ(0);
    filter: blur(4px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) var(--d),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) var(--d),
                filter 0.8s cubic-bezier(0.16, 1, 0.3, 1) var(--d);
}
.quote-kinetic-section .reveal-kinetic.visible .q-word {
    opacity: 1;
    transform: translateY(0) translateZ(0);
    filter: blur(0);
}
.quote-kinetic-section .reveal-kinetic .sig-container {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 1.5s,
                transform 1s cubic-bezier(0.16, 1, 0.3, 1) 1.5s;
}
.quote-kinetic-section .reveal-kinetic.visible .sig-container {
    opacity: 1;
    transform: translateY(0);
}
.quote-kinetic-section .sig-line {
    width: 3.0rem;
}

/* --- 7. PARTICULAS FLUTUANTES DO CTA --- */

.cta-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}
.cta-particle {
    position: absolute;
    width: var(--size, 3px);
    height: var(--size, 3px);
    background: rgba(162, 255, 26, var(--particle-alpha, 0.15));
    border-radius: 50%;
    filter: blur(1px);
    animation: cta-float var(--duration, 8s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}
@keyframes cta-float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: var(--particle-alpha, 0.15);
    }
    25% {
        transform: translate(var(--dx1, 30px), var(--dy1, -40px)) scale(1.2);
        opacity: calc(var(--particle-alpha, 0.15) * 1.5);
    }
    50% {
        transform: translate(var(--dx2, -20px), var(--dy2, -60px)) scale(0.8);
        opacity: var(--particle-alpha, 0.15);
    }
    75% {
        transform: translate(var(--dx3, 15px), var(--dy3, -30px)) scale(1.1);
        opacity: calc(var(--particle-alpha, 0.15) * 1.3);
    }
}


/* --- 8. SIMULADOR DE ECONOMIA (CALCULADORA) --- */

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-top: 3.5rem;
}

@media (min-width: 768px) {
    .calculator-grid {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 4rem;
    }
}

.calc-group {
    margin-bottom: 2.25rem;
}

.calc-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.calc-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--md-sys-color-on-surface-variant, #404940);
}

.calc-value-display {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--md-sys-color-primary, #003819);
}

/* Customização dos Slider Tracks e Thumbs (Multi-navegador) */
.calc-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(to right, #137a28 var(--value-percent, 0%), #e6e8ea var(--value-percent, 0%));
    outline: none;
    transition: background 0.1s ease;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #137a28;
    border: 2.5px solid #ffffff;
    box-shadow: 0 3px 8px rgba(0, 56, 25, 0.15);
    cursor: pointer;
    transition: transform 0.1s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.1s ease;
}

.calc-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #137a28;
    border: 2.5px solid #ffffff;
    box-shadow: 0 3px 8px rgba(0, 56, 25, 0.15);
    cursor: pointer;
    transition: transform 0.1s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.1s ease;
}

.calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background-color: #003819;
}

.calc-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    background-color: #003819;
}

.calc-slider:focus-visible::-webkit-slider-thumb {
    outline: 2px solid #a2ff1a;
    outline-offset: 2px;
}

.calc-slider:focus-visible::-moz-range-thumb {
    outline: 2px solid #a2ff1a;
    outline-offset: 2px;
}

/* Card de Resultados da Calculadora */
.calc-results-card {
    background-color: #003819;
    color: #ffffff;
    border-radius: 0.75rem;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(19, 122, 40, 0.25);
    box-shadow: 0 10px 15px -3px rgba(0, 56, 25, 0.1), 0 4px 6px -2px rgba(0, 56, 25, 0.05);
}

.calc-results-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #137a28, #a2ff1a);
}

.calc-result-main {
    margin-bottom: 1.75rem;
}

.calc-result-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

.calc-result-value {
    font-size: 3.5rem;
    font-weight: 900;
    color: #a2ff1a;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.calc-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.12);
    margin: 1.5rem 0;
}

.calc-submetrics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2.25rem;
}

@media (min-width: 480px) {
    .calc-submetrics-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.calc-submetric-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.25rem;
}

.calc-submetric-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
}

.calc-cta-btn {
    width: 100%;
    text-align: center;
    display: block;
    background-color: #a2ff1a;
    color: #003819;
    font-weight: 800;
    padding: 1.125rem;
    border-radius: 9999px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.calc-cta-btn:hover {
    background-color: #ffffff;
    color: #003819;
}

/* Painel de Notas de Rodapé Expansível */
.calc-info-container {
    margin-top: 0.75rem;
}

.calc-info-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-family: inherit;
    font-size: 0.6875rem; /* 11px */
    font-weight: 600;
    color: #137a28;
    cursor: pointer;
    transition: color 0.2s ease, opacity 0.2s ease;
    outline: none;
}

.calc-info-trigger:hover,
.calc-info-trigger:focus-visible {
    color: #003819;
}

.calc-info-trigger:focus-visible {
    outline: 2px solid #a2ff1a;
    outline-offset: 2px;
    border-radius: 0.25rem;
}

.calc-info-trigger .material-symbols-outlined {
    font-size: 0.875rem;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.calc-info-trigger[aria-expanded="true"] .material-symbols-outlined {
    transform: rotate(180deg);
}

.calc-info-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.calc-info-panel.is-expanded {
    grid-template-rows: 1fr;
}

.calc-info-content {
    min-height: 0;
    transition: visibility 0.3s ease;
    visibility: hidden;
}

.calc-info-panel.is-expanded .calc-info-content {
    visibility: visible;
}

.calc-info-text {
    padding-top: 0.5rem;
    padding-bottom: 0.25rem;
    font-size: 0.6875rem; /* 11px */
    line-height: 1.5;
    color: #404940;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}


/* --- 9. DEPOIMENTOS (TESTIMONIALS) --- */

.testimonial-select-btn.is-active {
    border-color: #137a28 !important;
    background-color: #ffffff !important;
}


/* --- 10. OVERRIDES PARA REDUÇÃO DE MOVIMENTO (ACESSIBILIDADE) --- */

@media (prefers-reduced-motion: reduce) {
    .reveal[data-reveal],
    .reveal-blur[data-reveal] {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
    
    .float-hero, 
    .wa-bubble,
    .phone-3d,
    .journey-phone-wrap,
    .cta-particle {
        animation: none !important;
        transform: none !important;
        filter: none !important;
        opacity: 1 !important;
    }

    .journey-panel {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    .phone-scene:hover .phone-3d {
        transform: none !important;
    }

    .hero-word,
    .hero-subtitle-entrance,
    .hero-cta-entrance {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }

    .section-glow-divider {
        width: 80% !important;
        transition: none !important;
    }

    .table-highlight-cell {
        animation: none !important;
    }

    .btn-glow-green:hover,
    .btn-glow-accent:hover {
        transform: none !important;
    }

    .calc-slider,
    .calc-slider::-webkit-slider-thumb,
    .calc-slider::-moz-range-thumb,
    .calc-cta-btn,
    .calc-info-panel,
    .calc-info-trigger .material-symbols-outlined {
        transition: none !important;
    }
}
