/* Landing Page Styles */

/* Hero Landing Section */
.hero-landing {
    background: linear-gradient(180deg, #F3E8FF 0%, #FDFCFF 50%, #FFFFFF 100%);
    padding: 2rem 0 4rem 0;
}

.hero-landing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-landing-content {
    position: relative;
    text-align: left;
    z-index: 2;
}

.hero-landing-image {
    position: relative;
    z-index: 1;
}

/* Align content to left when upload section is present (logged in) */
.hero-landing-grid:has(.hero-landing-upload) .hero-landing-content {
    text-align: left;
}

.hero-landing-grid:has(.hero-landing-upload) .hero-landing-content h1,
.hero-landing-grid:has(.hero-landing-upload) .hero-landing-content .hero-subtitle,
.hero-landing-grid:has(.hero-landing-upload) .hero-landing-content .extract-list {
    text-align: left;
}

.badge-new-feature {
    display: inline-block;
    background-color: var(--badge-new);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.hero-landing h1 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-align: left;
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: left;
}

.hero-subtitle strong {
    font-weight: 600;
}

.btn-cta {
    display: inline-block;
    position: relative;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.0625rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-cta:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
}

.btn-cta-large {
    display: inline-block;
    position: relative;
    background-color: var(--primary-color);
    color: white;
    padding: 1.25rem 3rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    border: none;
    cursor: pointer;
}

.btn-cta-large:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
}

/* Document Preview */
.hero-landing-image {
    position: relative;
}

.document-preview {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.document-preview-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    padding: 1rem 1.5rem;
    color: white;
}

.doc-label {
    font-weight: 600;
    font-size: 0.875rem;
}

.document-preview-content {
    padding: 2rem 1.5rem;
}

.doc-line {
    height: 0.75rem;
    background: #E5E7EB;
    border-radius: 0.25rem;
    margin-bottom: 0.75rem;
}

.doc-line.short {
    width: 60%;
}

.doc-line.highlight-removed {
    background: #FEE2E2;
    border-left: 3px solid #EF4444;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

.section-title-center {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle-center {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 3.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.feature-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem 1.75rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Why Choose Section */
.why-choose-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #FDFCFF 0%, #F9FAFB 100%);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.why-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.why-icon {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.why-icon svg {
    width: 100%;
    height: 100%;
}

.why-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.why-content p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
}

.cta-center {
    text-align: center;
    margin-top: 3rem;
}

/* Unique Features Section */
.unique-section {
    padding: 5rem 0;
    background-color: var(--text-dark);
    color: white;
}

.unique-section .section-title-center {
    color: white;
}

.unique-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.unique-item {
    padding: 1.5rem;
}

.unique-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.unique-item p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works-section {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin: 3rem 0;
}

.step-item {
    text-align: center;
}

.step-number {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.step-item p {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* CTA Final Section */
.cta-final-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
}

.cta-final-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.cta-final-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-final-content > p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.95;
}

.form-wrapper {
    background: white;
    border-radius: 0.75rem;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.form-row:last-of-type {
    grid-template-columns: 1fr;
}

.cta-form input,
.cta-form select {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.cta-form input:focus,
.cta-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background-color: #F9FAFB;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid #E5E7EB;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.faq-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.faq-item p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Extract List in Hero */
.extract-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2rem;
    margin: 1.5rem 0 2rem 0;
}

.extract-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.extract-list li {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.5rem;
    padding-left: 1.25rem;
    position: relative;
}

.extract-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: white;
    font-weight: bold;
}

/* =============================================
   HERO SPLIT — layout 2 colunas com animação
   ============================================= */
.hero-split {
    background: linear-gradient(160deg, #f5f0ff 0%, #fdfcff 60%, #ffffff 100%);
    padding: 2.5rem 0 5rem;
    overflow: hidden;
}

.hero-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-split-content {
    text-align: left;
}

.hero-split-content .badge-new-feature {
    margin-bottom: 1.25rem;
}

.hero-split-content h1 {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #111827;
    margin-bottom: 1.25rem;
}

.hero-split-content .hero-subtitle {
    font-size: 1.0625rem;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-split-content .btn-cta {
    margin-bottom: 1.5rem;
}

.hero-split-trust {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.hero-split-trust-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    color: #6b7280;
    font-weight: 500;
}

.hero-split-trust-item svg {
    width: 15px;
    height: 15px;
    color: #7c3aed;
    flex-shrink: 0;
}

/* Animação — painel direito */
.hero-split-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-doc-card {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(109,40,217,0.12), 0 4px 16px rgba(0,0,0,0.06);
    padding: 1.75rem;
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 2;
}

.ai-doc-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.ai-doc-header-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-doc-header-icon svg {
    width: 18px;
    height: 18px;
    color: white;
}

.ai-doc-header-text {
    flex: 1;
}

.ai-doc-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}

.ai-doc-subtitle {
    font-size: 0.7rem;
    color: #9ca3af;
    margin-top: 0.1rem;
}

.ai-doc-status {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #7c3aed;
    background: #f5f0ff;
    padding: 0.25rem 0.6rem;
    border-radius: 99px;
}

.ai-doc-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7c3aed;
    animation: pulse-dot 1.2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

/* Linhas de texto animadas */
.ai-doc-lines {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ai-doc-line {
    height: 10px;
    border-radius: 99px;
    background: #e5e7eb;
    position: relative;
    overflow: hidden;
}

.ai-doc-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
    border-radius: 99px;
    transform: scaleX(0);
    transform-origin: left;
    animation: type-line var(--dur, 1s) var(--delay, 0s) ease forwards;
}

@keyframes type-line {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(var(--width, 1)); }
}

.ai-doc-line.short { --width: 0.6; }
.ai-doc-line.medium { --width: 0.8; }
.ai-doc-line.full { --width: 1; }
.ai-doc-line.xshort { --width: 0.4; }

.ai-doc-section-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #9ca3af;
    margin: 1.25rem 0 0.6rem;
}

.ai-doc-field {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid #f3f4f6;
}

.ai-doc-field-label {
    font-size: 0.7rem;
    color: #9ca3af;
    font-weight: 500;
    white-space: nowrap;
    min-width: 80px;
}

.ai-doc-field-value {
    height: 8px;
    border-radius: 99px;
    background: #e5e7eb;
    flex: 1;
    position: relative;
    overflow: hidden;
}

.ai-doc-field-value::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
    border-radius: 99px;
    transform: scaleX(0);
    transform-origin: left;
    animation: type-line var(--dur, 0.8s) var(--delay, 0s) ease forwards;
}

.ai-doc-badge-done {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #ecfdf5;
    color: #059669;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    border-radius: 99px;
    margin-top: 1.25rem;
    opacity: 0;
    animation: fade-in-up 0.5s 3.2s ease forwards;
}

.ai-doc-badge-done svg {
    width: 13px;
    height: 13px;
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Bolinha decorativa atrás do card */
.hero-split-visual::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(124,58,237,0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* Responsive hero-split + seções landing */
@media (max-width: 1024px) {
    .hero-split-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .ai-doc-card {
        max-width: 100%;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-split {
        padding: 2.5rem 0 3rem;
    }

    .hero-split-content h1 {
        font-size: 1.75rem;
    }

    .hero-split-content .hero-subtitle {
        font-size: 0.9375rem;
    }

    .hero-split-trust {
        gap: 0.875rem;
    }

    .ai-doc-card {
        padding: 1.25rem;
    }

    .ai-doc-title {
        font-size: 0.75rem;
    }

    .why-section {
        padding: 3rem 1rem;
    }

    .why-card {
        padding: 1.5rem;
    }

    .why-number {
        font-size: 2rem;
    }

    .faq-section {
        padding: 3rem 0;
    }

    .faq-item {
        padding: 1.25rem;
    }

    .cta-final-section {
        padding: 3rem 1.25rem;
    }

    .cta-final-content h2 {
        font-size: 1.625rem;
    }

    .cta-final-content > p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 1.625rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .feature-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-split-content h1 {
        font-size: 1.5rem;
    }

    .hero-split-trust {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .btn-cta {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* =============================================
   FIM HERO SPLIT
   ============================================= */

/* Responsive */
@media (max-width: 1024px) {
    .hero-landing-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .unique-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-landing h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title-center {
        font-size: 1.75rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .why-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .why-icon {
        margin: 0 auto;
    }

    .extract-list {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .extract-list li {
        font-size: 0.875rem;
    }
}
