/* Página /leads (landing antiga) - CSS modernizado com animações e gradientes */
/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores do dashboard - gradientes purple/blue */
    --color-primary: #8b5cf6;
    --color-primary-dark: #7c3aed;
    --color-primary-light: #a78bfa;
    --color-blue: #212b5f;
    --color-blue-dark: #212b5f;
    --color-green: #22c55e;
    
    /* Cores neutras */
    --color-text: #1e293b;
    --color-text-light: #374151;
    --color-text-muted: #6b7280;
    --color-bg: #ffffff;
    --color-bg-light: #f9fafb;
    --color-border: #e5e7eb;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.4;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

/* Background animado sutil */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.03) 0%, rgba(33, 43, 95, 0.03) 50%, rgba(139, 92, 246, 0.03) 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.home-page-container {
    min-height: 100vh;
    max-height: 100vh;
    background-color: transparent;
    padding: 0.5rem 1rem;
    padding-top: 0.75rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
}

@media (min-width: 640px) {
    .home-page-container {
        padding: 0.75rem 1.5rem;
        padding-top: 1rem;
    }
}

@media (min-width: 1024px) {
    .home-page-container {
        padding: 1rem 2rem;
        padding-top: 1.5rem;
    }
}

.container {
    max-width: 32rem; /* 512px */
    margin: 0 auto;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Container para conteúdo de texto (exceto imagem) */
.text-content {
    max-width: 32rem;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .text-content {
        padding: 0 1.5rem;
    }
}

/* Logo modernizado */
.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
    margin-top: 0;
    flex-shrink: 0;
    animation: fadeInDown 0.6s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    height: 7.5rem !important;   /* 3x do original (2.5rem) */
    object-fit: contain;
    transition: transform 0.3s ease;
	width: auto;
}

.logo:hover {
    transform: scale(1.05);
}

@media (min-width: 640px) {
    .logo {
        height: 9rem !important;   /* 3x do original (3rem) */
    }
}

/* Ilustração modernizada */
.illustration-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    margin-top: 0.25rem;
    width: calc(100vw - 2rem);
    max-width: calc(100vw - 2rem);
    position: relative;
    padding: 0.25rem 0;
    flex-shrink: 0;
    margin-left: calc(-50vw + 50% + 1rem);
    margin-right: calc(-50vw + 50% + 1rem);
    animation: fadeInUp 0.8s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 640px) {
    .illustration-container {
        width: calc(100vw - 3rem);
        max-width: calc(100vw - 3rem);
        margin-left: calc(-50vw + 50% + 1.5rem);
        margin-right: calc(-50vw + 50% + 1.5rem);
    }
}

@media (min-width: 1024px) {
    .illustration-container {
        width: calc(100vw - 4rem);
        max-width: calc(100vw - 4rem);
        margin-left: calc(-50vw + 50% + 2rem);
        margin-right: calc(-50vw + 50% + 2rem);
    }
}

/* Fade nas laterais modernizado */
.illustration-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 255, 255, 0) 18%, 
        rgba(255, 255, 255, 0) 82%, 
        rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Fade no topo */
.illustration-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 25%;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 255, 255, 0.8) 20%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 2;
}

.illustration-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-bottom: 0.375rem;
}

.illustration-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 25%;
    background: linear-gradient(to top, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 255, 255, 0.8) 20%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 2;
}

.illustration {
    max-height: 25vh;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 0;
    transition: transform 0.3s ease;
}

.illustration:hover {
    transform: scale(1.02);
}

@media (min-width: 640px) {
    .illustration-container {
        margin-bottom: 0.75rem;
        padding: 0.5rem 0;
        width: calc(100% + 3rem + 10px);
        max-width: calc(100% + 3rem + 10px);
        margin-left: calc(-1.5rem - 5px);
        margin-right: calc(-1.5rem - 5px);
    }
    
    .illustration-container::before {
        background: linear-gradient(to right, 
            rgba(255, 255, 255, 1) 0%, 
            rgba(255, 255, 255, 0) 15%, 
            rgba(255, 255, 255, 0) 85%, 
            rgba(255, 255, 255, 1) 100%);
    }
    
    .illustration-container::after {
        height: 22%;
    }
    
    .illustration-wrapper::after {
        height: 22%;
    }
    
    .illustration {
        max-width: 100%;
        max-height: 25vh;
    }
}

@media (min-width: 1024px) {
    .illustration-container::before {
        background: linear-gradient(to right, 
            rgba(255, 255, 255, 1) 0%, 
            rgba(255, 255, 255, 0) 12%, 
            rgba(255, 255, 255, 0) 88%, 
            rgba(255, 255, 255, 1) 100%);
    }
    
    .illustration-container::after {
        height: 20%;
    }
    
    .illustration-wrapper::after {
        height: 20%;
    }
    
    .illustration {
        max-width: 100%;
        max-height: 28vh;
    }
}

/* Blocos */
.block {
    margin-bottom: 0.5rem;
}

.block-1 {
    margin-bottom: 0.25rem;
}

.block-2 {
    margin-top: calc(0.25rem - 5px);
    animation: fadeInUp 0.8s ease 0.4s both;
}

.block-2 .headline {
    margin-top: -5px;
}

/* Headlines modernizados */
.headline {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 0.375rem;
    line-height: 1.3;
    flex-shrink: 0;
    animation: fadeInUp 0.6s ease;
}

@media (min-width: 640px) {
    .headline {
        font-size: 1.875rem;
    }
}

@media (min-width: 1024px) {
    .headline {
        font-size: 2rem;
    }
}

.subline {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    font-style: italic;
    animation: fadeInUp 0.6s ease 0.2s both;
}

@media (min-width: 640px) {
    .subline {
        font-size: 1rem;
    }
}

/* Textos Explicativos */
.text-explanatory {
    font-size: 0.875rem;
    color: var(--color-text-light);
    text-align: justify;
    margin-bottom: 0.5rem;
    line-height: 1.6;
    animation: fadeInUp 0.6s ease 0.3s both;
}

@media (min-width: 640px) {
    .text-explanatory {
        font-size: 0.9375rem;
    }
}

/* Lista */
.list-items {
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.list-text {
    font-size: 0.875rem;
    color: var(--color-text-light);
    text-align: center;
    margin: 0;
    line-height: 1.6;
}

/* Texto QR Code */
.text-qr {
    font-size: 1rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 0.375rem;
    font-weight: 600;
    line-height: 1.4;
    animation: fadeInUp 0.6s ease 0.5s both;
}

@media (min-width: 640px) {
    .text-qr {
        font-size: 1.125rem;
    }
}

/* Frase de Impacto modernizada */
.impact-phrase {
    font-size: 0.9375rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-top: -1.5rem;
    margin-bottom: 0;
    padding-top: 1rem;
    line-height: 1.4;
    font-style: italic;
    position: relative;
    z-index: 3;
    animation: fadeInUp 0.6s ease 0.6s both;
}

@media (min-width: 640px) {
    .impact-phrase {
        font-size: 1rem;
        margin-top: -2rem;
        padding-top: 1.25rem;
    }
}

/* Texto de Convite */
.text-invite {
    font-size: 0.875rem;
    color: var(--color-text-light);
    text-align: justify;
    margin-bottom: 0.75rem;
    margin-top: 0.5rem;
    line-height: 1.6;
    animation: fadeInUp 0.6s ease 0.7s both;
}

@media (min-width: 640px) {
    .text-invite {
        font-size: 0.9375rem;
    }
}

/* Botão Saiba mais modernizado */
.know-more-container {
    text-align: center;
    margin-bottom: 0.75rem;
    margin-top: 0.25rem;
    animation: fadeInUp 0.6s ease 0.8s both;
}

.know-more-link {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.know-more-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-blue));
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.know-more-link:hover {
    color: var(--color-primary);
    background: rgba(139, 92, 246, 0.08);
    transform: translateY(-2px);
}

.know-more-link:hover::after {
    width: 80%;
}

/* Formulário modernizado */
.form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    min-height: 0;
    animation: fadeInUp 0.6s ease 0.9s both;
}

.form-group {
    width: 100%;
}

.input-email {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: 12px;
    font-size: 0.9375rem;
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.input-email:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15), 0 4px 12px rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 1);
}

.input-email:disabled {
    background-color: #f3f4f6;
    cursor: not-allowed;
    opacity: 0.6;
}

.input-email::placeholder {
    color: var(--color-text-muted);
}

/* Checkboxes modernizados */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 16px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.checkbox-group:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(139, 92, 246, 0.25);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
}

.checkbox-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.checkbox-items-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.checkbox-item:hover {
    background: rgba(139, 92, 246, 0.08);
    transform: translateY(-2px);
}

.checkbox-input {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: var(--color-primary);
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.checkbox-input:hover {
    transform: scale(1.1);
}

.checkbox-input:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.checkbox-label-text {
    font-size: 0.875rem;
    color: var(--color-text-light);
    cursor: pointer;
    transition: color 0.3s ease;
}

.checkbox-item:hover .checkbox-label-text {
    color: var(--color-primary);
}

/* Botão modernizado com gradiente */
.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-blue) 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9375rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4), 0 0 0 0 rgba(139, 92, 246, 0.5);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4), 0 0 0 0 rgba(139, 92, 246, 0.5);
    }
    50% {
        box-shadow: 0 10px 25px rgba(139, 92, 246, 0.5), 0 0 0 8px rgba(139, 92, 246, 0);
    }
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-submit:hover:not(:disabled)::before {
    width: 300px;
    height: 300px;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.5), 0 5px 15px rgba(33, 43, 95, 0.3);
}

.btn-submit:active:not(:disabled) {
    transform: translateY(-1px);
}

.btn-submit:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
    animation: none;
    box-shadow: none;
}

.btn-submit.loading {
    position: relative;
    color: transparent;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    width: 1.25rem;
    height: 1.25rem;
    top: 50%;
    left: 50%;
    margin-left: -0.625rem;
    margin-top: -0.625rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mensagem de erro modernizada */
.error-message {
    background: linear-gradient(135deg, rgba(254, 226, 226, 0.9) 0%, rgba(254, 202, 202, 0.9) 100%);
    backdrop-filter: blur(10px);
    color: #991b1b;
    padding: 0.875rem 1.25rem;
    border-radius: 12px;
    margin-top: 1rem;
    text-align: center;
    font-size: 0.875rem;
    border: 1px solid rgba(220, 38, 38, 0.2);
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Disclaimer modernizado */
.disclaimer {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 0.75rem;
    flex-shrink: 0;
    padding: 0.5rem;
    background: rgba(249, 250, 251, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    border: 1px solid rgba(139, 92, 246, 0.1);
    animation: fadeInUp 0.6s ease 1s both;
}

/* ============================================
   LAYOUT DESKTOP (a partir de 1200px)
   ============================================ */
@media (min-width: 1200px) {
    .home-page-container {
        min-height: 100vh;
        max-height: none;
        padding: 1.5rem 4%;
        padding-top: 1.5rem;
        overflow-y: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .container {
        max-width: 1400px;
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 80px;
        align-items: start;
        padding: 40px 0;
    }

    /* Logo no topo centralizado */
    .logo-container {
        grid-column: 1 / -1;
        margin-bottom: 20px;
        margin-top: 0;
    }

    .logo {
        height: 231px !important; /* 3x do tamanho base para destaque */
        width: auto;
    }

    /* BLOCO 1: Conteúdo à esquerda */
    .block-1 {
        display: flex;
        flex-direction: column;
        gap: 32px;
        margin-bottom: 0;
    }

    .block-1 .text-content {
        max-width: 100%;
        padding: 0;
        order: 1;
    }

    .block-1 .headline {
        font-size: clamp(36px, 4vw, 48px);
        text-align: left;
        margin-bottom: 24px;
    }

    .block-1 .text-explanatory {
        font-size: 18px;
        text-align: left;
        margin-bottom: 20px;
        line-height: 1.7;
    }

    .block-1 .list-text {
        font-size: 16px;
        text-align: left;
        line-height: 1.7;
    }

    .block-1 .text-qr {
        font-size: 20px;
        text-align: left;
        margin-bottom: 0;
    }

    /* Ilustração no desktop - lado esquerdo */
    .block-1 .illustration-container {
        order: 2;
        width: 100%;
        max-width: 100%;
        margin: 0;
        margin-left: 0;
        margin-right: 0;
        padding: 0;
        position: relative;
    }

    .block-1 .illustration-container::before,
    .block-1 .illustration-container::after {
        display: none;
    }

    .block-1 .illustration-wrapper::after {
        display: none;
    }

    .block-1 .illustration {
        max-height: 400px;
        width: 100%;
        object-fit: contain;
    }

    .block-1 .impact-phrase {
        font-size: 20px;
        text-align: left;
        margin-top: 24px;
        padding-top: 0;
        margin-bottom: 0;
    }

    /* BLOCO 2: Formulário à direita */
    .block-2 {
        margin-top: 0;
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    .block-2 .text-content {
        max-width: 100%;
        padding: 0;
    }

    .block-2 .headline {
        font-size: clamp(32px, 3.5vw, 42px);
        text-align: left;
        margin-bottom: 16px;
        margin-top: 0;
    }

    .block-2 .subline {
        font-size: 18px;
        text-align: left;
        margin-bottom: 24px;
        font-style: normal;
    }

    .block-2 .text-invite {
        font-size: 16px;
        text-align: left;
        margin-bottom: 32px;
        line-height: 1.7;
    }

    .know-more-container {
        text-align: left;
        margin-bottom: 32px;
    }

    .know-more-link {
        font-size: 16px;
    }

    /* Formulário desktop */
    .form {
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(139, 92, 246, 0.2);
        border-radius: 24px;
        padding: 40px;
        box-shadow: 0 20px 60px rgba(139, 92, 246, 0.15);
        transition: all 0.3s ease;
    }

    .form:hover {
        box-shadow: 0 25px 80px rgba(139, 92, 246, 0.2);
        border-color: rgba(139, 92, 246, 0.3);
    }

    .input-email {
        padding: 16px 20px;
        font-size: 16px;
        border-radius: 16px;
    }

    .checkbox-group {
        padding: 24px;
        border-radius: 20px;
        gap: 20px;
    }

    .checkbox-label {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .checkbox-items-container {
        gap: 24px;
    }

    .checkbox-item {
        padding: 12px 16px;
    }

    .checkbox-label-text {
        font-size: 16px;
    }

    .btn-submit {
        padding: 18px 32px;
        font-size: 18px;
        border-radius: 16px;
    }

    .disclaimer {
        font-size: 14px;
        padding: 16px;
        border-radius: 12px;
        margin-top: 24px;
    }

    /* Ajustes adicionais para melhor espaçamento desktop */
    .block {
        margin-bottom: 0;
    }

    /* Garantir que o container não tenha max-height no desktop */
    .home-page-container {
        align-items: flex-start;
        padding-top: 60px;
    }

    /* Melhorar visualização da ilustração no desktop */
    .block-1 .illustration-container {
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(33, 43, 95, 0.05) 100%);
        border-radius: 24px;
        padding: 40px;
        border: 1px solid rgba(139, 92, 246, 0.1);
    }

    /* Ajustar alinhamento do conteúdo do bloco 2 */
    .block-2 .text-content {
        display: flex;
        flex-direction: column;
    }
}
