/* =============================================
   LP E-book Metas de Captação — ebook-metas.css
   ============================================= */

:root {
    --primary-color: #083FCF;
    --secondary-color: #FC7D55;
    --tertiary-color: #B073FF;
    --quaternary-color: #FFE4DC;
    --senary-color: #EFE2FF;
    --text-color: #1F2937;
    --text-light: #6b7280;
    --background-color: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 40px rgba(8,63,207,0.12);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    --font-family-headings: 'Outfit', sans-serif;
    --font-family-body: 'Nunito', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-family-body);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a  { text-decoration: none; color: inherit; }

/* =============================================
   UTILITY
   ============================================= */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.title-accent      { color: var(--secondary-color); }
.title-accent-blue { color: var(--primary-color); }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-family-headings);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--tertiary-color) 100%);
    color: #fff;
    padding: 0 var(--spacing-md);
    height: 56px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--tertiary-color) 0%, var(--secondary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(252,125,85,0.35);
}

.btn-large {
    height: 60px;
    padding: 0 var(--spacing-lg);
    font-size: 1.05rem;
}

.btn-full { width: 100%; }

/* =============================================
   HERO
   ============================================= */
.em-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--tertiary-color) 100%);
    padding: var(--spacing-xxl) 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Subtle background pattern */
.em-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(255,255,255,0.06) 0%, transparent 50%),
        radial-gradient(circle at 85% 80%, rgba(252,125,85,0.12) 0%, transparent 50%);
    pointer-events: none;
}

image.png.em-hero .container,
.em-topics .container {
    max-width: 1140px;
}

.em-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
    position: relative;
    z-index: 1;
}

/* ---- LEFT: mockup ---- */
.em-hero-left {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.em-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.28);
    backdrop-filter: blur(8px);
    color: #fff;
    font-family: var(--font-family-headings);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 30px;
    width: fit-content;
}

.em-hero-title {
    font-family: var(--font-family-headings);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.12;
    color: #fff;
}

.em-hero-subtitle {
    font-family: var(--font-family-body);
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    max-width: 480px;
    margin-top: -0.5rem;
}

.em-hero-subtitle strong {
    color: #fff;
    font-weight: 700;
}

/* CTAs do hero */
.em-hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
    margin-top: var(--spacing-sm);
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    color: var(--primary-color);
    font-family: var(--font-family-headings);
    font-size: 1rem;
    font-weight: 700;
    padding: 0 var(--spacing-lg);
    height: 56px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.20);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.28);
}

.em-hero-cta-note {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-family-body);
    font-size: 0.82rem;
    color: rgba(255,255,255,0.70);
    margin: 0;
}

/* =============================================
   E-BOOK MOCKUP
   Estilo: quase frontal, sombra flutuante suave,
   lombada fina à esquerda — baseado em mockup físico de livro
   ============================================= */
.em-book-mockup {
    width: 360px;
    position: relative;
}

/* Sombra de profundidade atrás do livro */
.em-book-mockup::before {
    content: '';
    position: absolute;
    inset: 12px 30px -16px 16px;
    background: rgba(0, 0, 0, 0.32);
    filter: blur(22px);
    border-radius: 6px;
    z-index: 0;
    pointer-events: none;
}

.em-book-cover-wrap {
    position: relative;
    z-index: 1;
    border-radius: 3px 6px 6px 3px;
    /* Perspectiva quase frontal — estilo referência */
    transform: perspective(1400px) rotateY(-6deg) rotateX(3deg) scale(1);
    transform-origin: center center;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.5s ease;
    overflow: hidden;
    /* Espessura fina de páginas à direita */
    box-shadow:
        2px 0 0 0 #bab6b0,
        4px 0 0 0 #cac6c0,
        6px 0 0 0 #d8d4ce,
        8px 0 0 0 #e4e0da;
}

.em-book-mockup:hover .em-book-cover-wrap {
    transform: perspective(1400px) rotateY(-2deg) rotateX(1deg) scale(1.02);
    box-shadow:
        2px 0 0 0 #bab6b0,
        4px 0 0 0 #cac6c0,
        6px 0 0 0 #d8d4ce,
        8px 0 0 0 #e4e0da;
}

.em-cover-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: inherit;
}

/* Lombada fina — sombra suave no lado esquerdo da capa */
.em-book-cover-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.22) 0%,
        rgba(0, 0, 0, 0.06) 60%,
        transparent 100%
    );
    border-radius: 3px 0 0 3px;
    z-index: 2;
    pointer-events: none;
}

/* Brilho semi-fosco premium */
.em-book-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        112deg,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(255, 255, 255, 0.05) 20%,
        transparent 50%,
        rgba(0, 0, 0, 0.02) 78%,
        rgba(0, 0, 0, 0.08) 100%
    );
    pointer-events: none;
    border-radius: inherit;
    z-index: 3;
}

/* ---- RIGHT: texto + CTAs ---- */
.em-hero-right {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    justify-content: center;
    color: #fff;
    min-width: 0;
}

/* =============================================
   SEÇÃO FORMULÁRIO (última seção)
   ============================================= */
.em-form-section {
    background: linear-gradient(160deg, #f8f7ff 0%, #eeeafa 100%);
    padding: var(--spacing-xxl) 0;
}

.em-form-section .container {
    max-width: 860px;
}

.em-form-layout {
    display: flex;
    justify-content: center;
}

/* Formulário centralizado com gradiente */
.em-form-body {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--tertiary-color) 100%);
    border-radius: 20px;
    padding: var(--spacing-xl) var(--spacing-xl);
    box-shadow: 0 24px 60px rgba(8,63,207,0.22);
}

/* Labels brancos no fundo escuro */
.em-form-body .form-group label {
    color: rgba(255,255,255,0.92);
}

.em-form-body .form-required {
    color: #ffb347;
}

/* Inputs translúcidos no fundo escuro */
.em-form-body .form-group input,
.em-form-body .form-group select {
    background-color: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.25);
    color: #fff;
}

.em-form-body .form-group input::placeholder {
    color: rgba(255,255,255,0.45);
}

.em-form-body .form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ffffff' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.em-form-body .form-group select option {
    background: #3a3dbf;
    color: #fff;
}

.em-form-body .form-group input:focus,
.em-form-body .form-group select:focus {
    background-color: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.6);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.12);
}

/* Disclaimer branco */
.em-form-body .em-form-disclaimer {
    color: rgba(255,255,255,0.6);
}

/* Cabeçalho do formulário */
.em-form-header {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(255,255,255,0.18);
    text-align: center;
}

.em-form-header-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-family: var(--font-family-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    margin-bottom: 0.6rem;
}

.em-form-header-title {
    font-family: var(--font-family-headings);
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin: 0 0 0.4rem;
}

.em-form-header-sub {
    font-family: var(--font-family-body);
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.72);
    margin: 0;
}

/* Botão laranja no fundo escuro */
.em-form-body .waitlist-form .btn-primary {
    background: linear-gradient(90deg, #ff7d54 0%, #e8571a 100%);
    border: none;
    box-shadow: 0 6px 24px rgba(232,87,26,0.35);
}

/* =============================================
   FORM STYLES
   ============================================= */
.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-family: var(--font-family-body);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-color);
}

.form-required {
    color: var(--secondary-color);
    font-weight: 700;
}

.form-group input,
.form-group select {
    width: 100%;
    height: 48px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0 var(--spacing-sm);
    font-family: var(--font-family-body);
    font-size: 0.95rem;
    color: var(--text-color);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 2.5rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(8,63,207,0.1);
}

.form-group input::placeholder {
    color: #9ca3af;
}

.input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.1) !important;
}

.field-error-msg {
    font-size: 0.78rem;
    color: #ef4444;
    font-family: var(--font-family-body);
    margin-top: 0.1rem;
}

.em-form-disclaimer {
    font-family: var(--font-family-body);
    font-size: 0.78rem;
    color: var(--text-light);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: var(--spacing-xs);
}

.em-form-disclaimer i {
    color: var(--primary-color);
    font-size: 0.72rem;
}

/* Form grid 2 colunas (legado) */
.em-form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
}

.em-form-span-2 {
    grid-column: 1 / -1;
}

/* Form grid 3 colunas (nova seção horizontal) */
.em-form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--spacing-sm);
}

.em-form-span-3 {
    grid-column: 1 / -1;
}

/* Submit button inside form */
.waitlist-form .btn-primary {
    margin-top: var(--spacing-xs);
    font-size: 1rem;
    height: 56px;
}

.waitlist-form .btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* =============================================
   TOPICS SECTION
   ============================================= */
.em-topics {
    padding: var(--spacing-xxl) 0;
    background: #fafbff;
}

.em-section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.em-section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--senary-color);
    color: var(--primary-color);
    font-family: var(--font-family-headings);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 30px;
}

.em-section-title {
    font-family: var(--font-family-headings);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.2;
    max-width: 620px;
}

.em-section-subtitle {
    font-family: var(--font-family-body);
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 580px;
    line-height: 1.7;
}

/* Grid */
.em-topics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

/* Topic Card */
.em-topic-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.em-topic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--tertiary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.em-topic-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.em-topic-card:hover::before {
    transform: scaleX(1);
}

.em-topic-number {
    font-family: var(--font-family-headings);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
}

.em-topic-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--tertiary-color) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
    transition: transform 0.3s ease;
}

.em-topic-card:hover .em-topic-icon {
    transform: scale(1.08);
}

.em-topic-title {
    font-family: var(--font-family-headings);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.3;
    margin-bottom: var(--spacing-xs);
}

.em-topic-desc {
    font-family: var(--font-family-body);
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.65;
}

/* CTA below grid */
.em-topics-cta {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-xl);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .em-hero-grid {
        gap: var(--spacing-lg);
    }

    .em-hero-title {
        font-size: 2.4rem;
    }

    .em-book-mockup {
        width: 300px;
    }

    .em-topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 768px) {
    .em-hero {
        padding: var(--spacing-xl) 0 var(--spacing-xxl);
        min-height: auto;
    }

    .em-hero-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .em-hero-left {
        order: 1;
    }

    .em-hero-right {
        order: 0;
        align-items: center;
        text-align: center;
    }

    .em-hero-ctas {
        align-items: center;
    }

    .em-hero-title {
        font-size: 1.9rem;
    }

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

    .em-book-mockup {
        width: 260px;
    }

    .em-form-body {
        padding: var(--spacing-lg) var(--spacing-md);
    }

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

    .em-topics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
}

@media (max-width: 560px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .em-hero-title {
        font-size: 1.65rem;
    }

    .em-book-mockup {
        width: 220px;
    }

    .em-topics-grid {
        grid-template-columns: 1fr;
    }

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

    .em-section-title {
        font-size: 1.5rem;
    }
}
