/* ============================================
   VARIÁVEIS E ESTILOS GLOBAIS
   ============================================ */

:root {
    --primary-blue: #1e40af;
    --dark-blue: #0f2847;
    --light-gray: #f8f9fa;
    --medium-gray: #e5e7eb;
    --dark-gray: #6b7280;
    --white: #ffffff;
    --success-green: #10b981;
    --error-red: #ef4444;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    --transition: all 0.3s ease;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--dark-gray);
    background-color: var(--white);
    line-height: 1.6;
}

/* ============================================
   CONTAINER E LAYOUT
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   BARRA SUPERIOR
   ============================================ */

.top-bar {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 12px 0;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

.top-bar-text {
    margin: 0;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-headline {
    font-size: 40px;
    font-weight: 700;
    color: var(--dark-blue);
    line-height: 1.2;
}

.hero-subheadline {
    font-size: 18px;
    color: var(--dark-gray);
    line-height: 1.5;
}

.hero-benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.hero-benefits li {
    font-size: 16px;
    color: var(--dark-gray);
    padding-left: 28px;
    position: relative;
}

.hero-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-green);
    font-weight: bold;
    font-size: 18px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mockup-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--box-shadow-hover);
}

/* ============================================
   FORMULÁRIO
   ============================================ */

.lead-form {
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--dark-blue);
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    padding: 12px 16px;
    border: 2px solid var(--medium-gray);
    border-radius: 8px;
    font-size: 16px;
    font-family: var(--font-family);
    transition: var(--transition);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group input[type="text"]:invalid,
.form-group input[type="email"]:invalid {
    border-color: var(--error-red);
}

.form-group.checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}

.form-group.checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary-blue);
    flex-shrink: 0;
}

.consent-label {
    font-size: 14px;
    color: var(--dark-gray);
    font-weight: 400;
    line-height: 1.5;
    cursor: pointer;
}

.error-message {
    font-size: 12px;
    color: var(--error-red);
    display: none;
}

.error-message.show {
    display: block;
}

.form-disclaimer {
    font-size: 12px;
    color: var(--dark-gray);
    text-align: center;
    margin-top: 10px;
}

/* ============================================
   BOTÕES
   ============================================ */

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--dark-blue);
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-2px);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    background-color: var(--medium-gray);
    color: var(--dark-gray);
    cursor: not-allowed;
    opacity: 0.6;
}

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

.btn-primary.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 0.6s linear infinite;
}

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

/* ============================================
   SEÇÕES TEMÁTICAS
   ============================================ */

.why-matters,
.what-you-get,
.how-to-use,
.about-ats,
.faq,
.cta-final {
    padding: 60px 0;
}

.why-matters {
    background-color: var(--light-gray);
}

.what-you-get h2,
.how-to-use h2,
.about-ats h2,
.faq h2,
.cta-final h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 30px;
    text-align: center;
}

.why-matters h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 20px;
    text-align: center;
}

.why-matters p {
    font-size: 16px;
    color: var(--dark-gray);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================
   CARDS GRID
   ============================================ */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--medium-gray);
}

.card:hover {
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-4px);
}

.card-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 12px;
}

.card p {
    font-size: 14px;
    color: var(--dark-gray);
    line-height: 1.6;
}

/* ============================================
   STEPS
   ============================================ */

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step {
    text-align: center;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.step h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.step p {
    font-size: 14px;
    color: var(--dark-gray);
    line-height: 1.6;
}

/* ============================================
   SEÇÃO ABOUT ATS
   ============================================ */

.about-ats {
    background-color: var(--light-gray);
}

.about-ats p {
    font-size: 16px;
    color: var(--dark-gray);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================
   FAQ
   ============================================ */

.faq-list {
    max-width: 800px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background-color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-blue);
    transition: var(--transition);
    font-family: var(--font-family);
}

.faq-question:hover {
    background-color: var(--light-gray);
}

.faq-icon {
    font-size: 20px;
    transition: var(--transition);
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 20px;
    background-color: var(--light-gray);
    border-top: 1px solid var(--medium-gray);
}

.faq-answer p {
    font-size: 14px;
    color: var(--dark-gray);
    line-height: 1.6;
}

/* ============================================
   CTA FINAL
   ============================================ */

.cta-final {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    text-align: center;
}

.cta-final h2 {
    color: var(--white);
    font-size: 32px;
}

.cta-final p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.lead-form-final {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--dark-gray);
    max-width: 500px;
    margin: 0 auto;
}

.lead-form-final .form-group label {
    color: var(--dark-blue);
}

/* ============================================
   RODAPÉ
   ============================================ */

.footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
    align-items: start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo {
    max-width: 150px;
    height: auto;
}

.footer-disclaimer {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: right;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-headline {
        font-size: 28px;
    }

    .hero-subheadline {
        font-size: 16px;
    }

    .hero-benefits {
        margin: 15px 0;
    }

    .hero-benefits li {
        font-size: 14px;
    }

    .lead-form {
        padding: 20px;
    }

    .what-you-get h2,
    .how-to-use h2,
    .about-ats h2,
    .faq h2,
    .cta-final h2 {
        font-size: 24px;
    }

    .why-matters h2 {
        font-size: 24px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: left;
    }

    .footer-links {
        text-align: left;
    }

    .why-matters,
    .what-you-get,
    .how-to-use,
    .about-ats,
    .faq,
    .cta-final {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-headline {
        font-size: 24px;
    }

    .hero-subheadline {
        font-size: 14px;
    }

    .hero-benefits li {
        font-size: 13px;
        padding-left: 24px;
    }

    .lead-form {
        padding: 16px;
        gap: 16px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .what-you-get h2,
    .how-to-use h2,
    .about-ats h2,
    .faq h2,
    .cta-final h2 {
        font-size: 20px;
    }

    .why-matters h2 {
        font-size: 20px;
    }

    .card {
        padding: 20px;
    }

    .card h3 {
        font-size: 16px;
    }

    .card p {
        font-size: 13px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .step h3 {
        font-size: 16px;
    }

    .step p {
        font-size: 13px;
    }

    .faq-question {
        padding: 16px;
        font-size: 14px;
    }

    .faq-answer {
        padding: 16px;
    }

    .faq-answer p {
        font-size: 13px;
    }

    .top-bar-text {
        font-size: 12px;
    }

    .footer-logo {
        max-width: 120px;
    }
}

/* ============================================
   ACESSIBILIDADE
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   PÁGINA DE OBRIGADO (THANK YOU PAGE)
   ============================================ */

.thank-you-confirmation {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    text-align: center;
}

.confirmation-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: scaleIn 0.6s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.confirmation-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.confirmation-text {
    font-size: 16px;
    margin-bottom: 15px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.confirmation-support {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
}

.thank-you-transition {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.thank-you-transition h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 20px;
    text-align: center;
}

.thank-you-transition p {
    font-size: 16px;
    color: var(--dark-gray);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.thank-you-offer {
    padding: 60px 0;
    background-color: var(--white);
}

.offer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.offer-text h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.offer-subtitle {
    font-size: 16px;
    color: var(--dark-gray);
    margin-bottom: 30px;
    line-height: 1.6;
}

.offer-features {
    list-style: none;
    margin-bottom: 30px;
}

.offer-features li {
    font-size: 15px;
    color: var(--dark-gray);
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    line-height: 1.5;
}

.offer-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-green);
    font-weight: bold;
    font-size: 18px;
}

.offer-price {
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--light-gray);
    border-radius: 8px;
    text-align: center;
}

.price-label {
    display: block;
    font-size: 14px;
    color: var(--dark-gray);
    margin-bottom: 8px;
}

.price-amount {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-blue);
}

.btn-offer {
    width: 100%;
    padding: 16px 32px;
    font-size: 16px;
}

.offer-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.offer-logo {
    max-width: 100%;
    height: auto;
    max-height: 300px;
}

.thank-you-transparency {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.thank-you-transparency h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 20px;
    text-align: center;
}

.thank-you-transparency p {
    font-size: 16px;
    color: var(--dark-gray);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.thank-you-secondary-cta {
    padding: 60px 0;
    background-color: var(--white);
    text-align: center;
}

.thank-you-secondary-cta h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 20px;
}

.thank-you-secondary-cta p {
    font-size: 16px;
    color: var(--dark-gray);
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--medium-gray);
    color: var(--dark-blue);
    border: 2px solid var(--primary-blue);
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: var(--light-gray);
    transform: translateY(-2px);
}

/* ============================================
   RESPONSIVIDADE - THANK YOU PAGE
   ============================================ */

@media (max-width: 768px) {
    .thank-you-confirmation {
        padding: 40px 0;
    }

    .confirmation-title {
        font-size: 24px;
    }

    .confirmation-text {
        font-size: 14px;
    }

    .thank-you-transition h2,
    .thank-you-offer h2,
    .thank-you-transparency h2,
    .thank-you-secondary-cta h2 {
        font-size: 24px;
    }

    .thank-you-transition p,
    .thank-you-offer .offer-subtitle,
    .thank-you-transparency p,
    .thank-you-secondary-cta p {
        font-size: 14px;
    }

    .offer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .offer-features li {
        font-size: 14px;
    }

    .price-amount {
        font-size: 28px;
    }

    .btn-offer {
        font-size: 14px;
        padding: 12px 24px;
    }
}

@media (max-width: 480px) {
    .thank-you-confirmation {
        padding: 30px 0;
    }

    .confirmation-icon {
        font-size: 48px;
    }

    .confirmation-title {
        font-size: 20px;
    }

    .confirmation-text {
        font-size: 13px;
    }

    .thank-you-transition,
    .thank-you-offer,
    .thank-you-transparency,
    .thank-you-secondary-cta {
        padding: 30px 0;
    }

    .thank-you-transition h2,
    .thank-you-offer h2,
    .thank-you-transparency h2,
    .thank-you-secondary-cta h2 {
        font-size: 20px;
    }

    .offer-features li {
        font-size: 13px;
        padding-left: 24px;
    }

    .price-amount {
        font-size: 24px;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --white: #1a1a1a;
        --light-gray: #2d2d2d;
        --medium-gray: #404040;
        --dark-gray: #b0b0b0;
    }

    body {
        background-color: var(--white);
        color: var(--dark-gray);
    }

    .lead-form {
        background-color: var(--light-gray);
    }

    .card {
        background-color: var(--light-gray);
    }

    .faq-question {
        background-color: var(--light-gray);
    }

    .faq-question:hover {
        background-color: var(--medium-gray);
    }

    .offer-price {
        background-color: var(--medium-gray);
    }
}
