/* public/css/landing_page.css */
body { font-family: 'Inter', sans-serif; transition: background-color 0.3s, color 0.3s; }

/* Customização SweetAlert */
.swal2-popup { border-radius: 2rem !important; padding: 2rem !important; }
.dark .swal2-popup { background: #1e293b !important; color: #f1f5f9 !important; }

.swal-input-custom {
    width: 100%; padding: 1rem; margin-top: 0.5rem;
    background: #f8fafc; border: 1px solid #dbeafe;
    border-radius: 1rem; outline: none; transition: 0.25s;
}
.dark .swal-input-custom { background: #0f172a; border-color: #1e293b; color: #f1f5f9; }

/* Grids e Efeitos */
.hero-grid {
    background-image:
        linear-gradient(rgba(37,99,235,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37,99,235,0.04) 1px, transparent 1px);
    background-size: 36px 36px;
}
.dark .hero-grid {
    background-image:
        linear-gradient(rgba(37,99,235,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37,99,235,0.1) 1px, transparent 1px);
}

.glass-card { background: rgba(255,255,255,0.75); backdrop-filter: blur(12px); }
.dark .glass-card { background: rgba(15, 23, 42, 0.8); border-color: rgba(30, 41, 59, 0.5); }

.blue-shadow { box-shadow: 0 20px 60px rgba(37, 99, 235, 0.16); }

/* Scroller da Prova Social */
.scroller-container {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.scroller-track { display: flex; gap: 1.5rem; width: max-content; }


/* Scrollbar elegante para modais */
.modal-scroll::-webkit-scrollbar {
    width: 5px;
}

.modal-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.modal-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.modal-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Firefox */
.modal-scroll {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

/* =========================================
   SCROLLBAR E TEXTO DOS MODAIS
   ========================================= */

.modal-scroll {
    /* Texto justificado */
    text-align: justify;

    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

/* Títulos e elementos estruturais permanecem alinhados à esquerda */
.modal-scroll h3,
.modal-scroll h4,
.modal-scroll strong,
.modal-scroll ul {
    text-align: left;
}

/* Chrome, Edge, Safari */
.modal-scroll::-webkit-scrollbar {
    width: 5px;
}

.modal-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.modal-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.modal-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Dark Mode */
.dark .modal-scroll {
    scrollbar-color: #475569 transparent;
}

.dark .modal-scroll::-webkit-scrollbar-thumb {
    background: #475569;
}

.dark .modal-scroll::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* =========================================================
   HERO CTA — BOTÃO PRINCIPAL
   ========================================================= */

.hero-btn-primary {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    min-height: 54px;
    padding: 0 10px 0 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            #2563eb 0%,
            #315eea 45%,
            #4f46e5 100%
        );

    box-shadow:
        0 10px 25px rgba(37, 99, 235, 0.28),
        0 4px 10px rgba(79, 70, 229, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);

    cursor: pointer;

    transition:
        transform 220ms cubic-bezier(.2,.8,.2,1),
        box-shadow 220ms ease,
        filter 220ms ease;
}


/* Conteúdo fica acima do brilho */
.hero-btn-content {
    position: relative;
    z-index: 3;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.01em;
}


/* Círculo da seta */
.hero-btn-arrow {
    width: 34px;
    height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.16);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.18);

    transition:
        transform 220ms ease,
        background 220ms ease;
}


/* Brilho que atravessa o botão */
.hero-btn-shine {
    position: absolute;
    z-index: 1;

    top: -100%;
    left: -45%;

    width: 45%;
    height: 300%;

    transform: rotate(25deg);

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.18),
        transparent
    );

    pointer-events: none;
}


/* Hover */
.hero-btn-primary:hover {
    transform: translateY(-3px) scale(1.015);

    filter: brightness(1.06);

    box-shadow:
        0 18px 38px rgba(37, 99, 235, 0.36),
        0 7px 16px rgba(79, 70, 229, 0.25),
        inset 0 1px 0 rgba(255,255,255,.25);
}


.hero-btn-primary:hover .hero-btn-arrow {
    transform: translateX(4px);

    background: rgba(255, 255, 255, 0.23);
}


.hero-btn-primary:hover .hero-btn-shine {
    animation: heroButtonShine 700ms ease forwards;
}


.hero-btn-primary:active {
    transform: translateY(-1px) scale(.99);
}


@keyframes heroButtonShine {
    from {
        left: -45%;
    }

    to {
        left: 125%;
    }
}

/* =========================================================
   HERO CTA — BOTÃO SECUNDÁRIO
   ========================================================= */

.hero-btn-secondary {
    position: relative;

    min-height: 54px;
    padding: 0 23px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    border-radius: 16px;

    color: #334155;

    background: rgba(255,255,255,.55);

    border: 1px solid rgba(148,163,184,.28);

    box-shadow:
        0 5px 15px rgba(15,23,42,.05),
        inset 0 1px 0 rgba(255,255,255,.75);

    backdrop-filter: blur(10px);

    font-size: 14px;
    font-weight: 750;

    transition:
        transform 200ms ease,
        background 200ms ease,
        border-color 200ms ease,
        box-shadow 200ms ease;
}


.hero-btn-secondary:hover {
    transform: translateY(-2px);

    color: #172033;

    background: rgba(255,255,255,.82);

    border-color: rgba(37,99,235,.25);

    box-shadow:
        0 10px 24px rgba(15,23,42,.08),
        0 0 0 3px rgba(37,99,235,.05);
}


.hero-secondary-arrow {
    transition: transform 200ms ease;
}


.hero-btn-secondary:hover .hero-secondary-arrow {
    transform: translateY(3px);
}

.hero-cta-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    margin-top: 11px;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .01em;

    color: #64748b;
}


.hero-trust-dot {
    position: relative;
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

/* Onda expansiva (Efeito Radar) */
.hero-trust-dot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #22c55e;
    animation: trustDotPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes trustDotPing {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    75%, 100% {
        transform: scale(2.8);
        opacity: 0;
    }
}


.hero-trust-separator {
    opacity: .4;
}


.dark .hero-cta-trust {
    color: #7890b2;
}

.hero-btn-secondary {
    color: #1e3a5f;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(37,99,235,.16);
    box-shadow: 0 5px 15px rgba(15,23,42,.06);
}

.hero-btn-secondary:hover {
    color: #2563eb;
    border-color: rgba(37,99,235,.35);
    background: #fff;
    box-shadow:
        0 10px 25px rgba(37,99,235,.10),
        0 0 0 3px rgba(37,99,235,.04);
}

.hero-btn-secondary {
    min-height: 44px;
    padding: 0 22px;
    border-radius: 999px;
}

@media (max-width: 639px) {
    .hero-btn-secondary {
        width: auto !important;
    }
}

/* ========================================== */
/* ANIMAÇÕES NATIVAS TIPO POWERPOINT (MODAL)  */
/* ========================================== */
@keyframes surgirDeCima {
    0% { transform: translateY(-150vh); opacity: 1; }
    100% { transform: translateY(0); opacity: 1; }
}
@keyframes cairParaBaixo {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(150vh); opacity: 1; }
}
@keyframes tremerErro {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* O cubic-bezier(0.25, 1, 0.5, 1) dá aquela freiada suave quando o modal chega no centro */
.swal-surgir { animation: surgirDeCima 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards !important; } 
/* O ease-in faz ele acelerar como se estivesse caindo com a gravidade */
.swal-cair { animation: cairParaBaixo 0.7s ease-in forwards !important; }
.shake-erro { animation: tremerErro 0.7s ease-in-out; }

/* ============================================================
   AUTO DIGYO — REFINO VISUAL DA LANDING
   Light Mode confortável + textos de conteúdo justificados
   ============================================================ */


/* ------------------------------------------------------------
   DNA VISUAL — LIGHT
   ------------------------------------------------------------ */

:root {
    --landing-bg: #eef2f7;
    --landing-section: #f2f5f9;
    --landing-card: #f8fafc;
    --landing-card-elevated: #fbfdff;
    --landing-border: #cbd5e1;

    --landing-text: #0f172a;
    --landing-muted: #526276;

    --landing-nav:
        rgba(226, 232, 240, 0.94);
}


/* ------------------------------------------------------------
   FUNDO PRINCIPAL

   Sai do branco/cinza muito luminoso e entra na mesma
   filosofia confortável que adotamos dentro do Auto Digyo.
   ------------------------------------------------------------ */

html:not(.dark) body {
    background-color:
        var(--landing-bg) !important;
}


/* ------------------------------------------------------------
   NAVBAR LIGHT
   ------------------------------------------------------------ */

html:not(.dark) nav {
    background:
        var(--landing-nav) !important;

    border-color:
        var(--landing-border) !important;
}


/* Menu Mobile */

html:not(.dark) #mobile-menu {
    background:
        rgba(248, 250, 252, 0.97) !important;

    border-color:
        var(--landing-border) !important;
}


/* ------------------------------------------------------------
   SEÇÕES PRINCIPAIS

   Mantém diferença sutil entre seções sem voltar ao branco puro.
   ------------------------------------------------------------ */

html:not(.dark) #recursos,
html:not(.dark) #sobre,
html:not(.dark) #faq {
    background:
        var(--landing-bg) !important;
}


/* ------------------------------------------------------------
   PLANOS

   Preserva o leve azul da seção, mas elimina o final branco puro.
   ------------------------------------------------------------ */

html:not(.dark) #planos {
    background:
        linear-gradient(
            to bottom,
            rgba(219, 234, 254, 0.55) 0%,
            var(--landing-bg) 100%
        ) !important;
}


/* ------------------------------------------------------------
   TODOS OS COMPONENTES QUE USAM bg-white

   Aqui está a principal cura do "BRANCO QUEIMA OLHO" 😅

   Não alteramos botões azuis, verdes, anuais etc.
   Apenas componentes explicitamente brancos.
   ------------------------------------------------------------ */

html:not(.dark) [class~="bg-white"] {
    background-color:
        var(--landing-card) !important;
}


/* ------------------------------------------------------------
   GLASS CARD DO HERO
   ------------------------------------------------------------ */

html:not(.dark) .glass-card {
    background:
        rgba(248, 250, 252, 0.86);

    border-color:
        rgba(203, 213, 225, 0.85);
}


/* ------------------------------------------------------------
   CARDS DE FUNCIONALIDADES

   Um pouquinho mais de definição de superfície.
   ------------------------------------------------------------ */

html:not(.dark) #recursos .grid > div {
    background:
        var(--landing-card) !important;

    border-color:
        var(--landing-border) !important;

    box-shadow:
        0 10px 30px -22px
        rgba(15, 23, 42, 0.30);
}


/* Hover continua elegante sem virar branco estourado */

html:not(.dark) #recursos .grid > div:hover {
    background:
        var(--landing-card-elevated) !important;

    box-shadow:
        0 18px 40px -22px
        rgba(15, 23, 42, 0.28);
}


/* ------------------------------------------------------------
   FAQ
   ------------------------------------------------------------ */

html:not(.dark) #faq details {
    background:
        var(--landing-card) !important;

    border-color:
        var(--landing-border) !important;
}


/* ------------------------------------------------------------
   TEXTOS JUSTIFICADOS

   Apenas conteúdos de leitura.
   Títulos, botões, badges e Hero NÃO são afetados.
   ------------------------------------------------------------ */

#recursos .grid > div > p,

.scroller-track > div > p,

#planos h3 + p,

#sobre p,

#faq details > div {

    text-align:
        justify;

    text-justify:
        inter-word;

    text-align-last:
        left;

    -webkit-hyphens:
        auto;

    hyphens:
        auto;
}


/* ------------------------------------------------------------
   Pequeno refinamento da leitura no Light
   ------------------------------------------------------------ */

html:not(.dark) #recursos p,
html:not(.dark) #sobre p,
html:not(.dark) #faq details > div,
html:not(.dark) .scroller-track > div > p {

    color:
        var(--landing-muted);
}

/* =========================================================
   SCROLLBAR PRINCIPAL — DISCRETA
   ========================================================= */

/* Chrome, Edge e Safari */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 2px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: transparent;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.35);
    border-radius: 999px;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.55);
}


/* Dark Mode */
.dark::-webkit-scrollbar-thumb,
.dark body::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.28);
}

.dark::-webkit-scrollbar-thumb:hover,
.dark body::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.45);
}


/* Firefox */
html,
body {
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 116, 139, 0.35) transparent;
}

.dark,
.dark body {
    scrollbar-color: rgba(100, 116, 139, 0.28) transparent;
}

/* ============================================================
   AUTO DIGYO — TIPOGRAFIA LEGÍVEL DOS MODAIS DE ACESSO
   ============================================================ */

.auth-modal-legivel .font-black {
    font-weight: 700 !important;
}

.auth-modal-legivel .font-bold {
    font-weight: 600 !important;
}

.auth-modal-legivel .text-\[8px\]:not(i):not(svg):not(input):not(select):not(textarea) {
    font-size: 10px !important;
}

.auth-modal-legivel .text-\[9px\]:not(i):not(svg):not(input):not(select):not(textarea) {
    font-size: 11px !important;
}

.auth-modal-legivel .text-\[10px\]:not(i):not(svg):not(input):not(select):not(textarea) {
    font-size: 12px !important;
}

.auth-modal-legivel .tracking-widest {
    letter-spacing: 0.065em !important;
}

.auth-modal-legivel .tracking-wider {
    letter-spacing: 0.035em !important;
}

.swal-close-mini {
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 14px !important;
    background: transparent !important;
    box-shadow: none !important;
}

