/*
Theme Name: Funil Marionete
Theme URI: https://claudiocaesco.com
Author: SUEDHOST
Description: Tema de funil de vendas para livros.
Version: 1.2.0
Text Domain: funil-marionete
*/

/* =========================================================
   RESET E CONFIGURAÇÕES GERAIS
   ========================================================= */

:root {
    --mei-bg: #07131d;
    --mei-bg-dark: #0a1822;
    --mei-bg-light: #102330;
    --mei-card: #142733;
    --mei-text: #f4f7f8;
    --mei-muted: #b9c8ce;
    --mei-gold: #f3c34f;
    --mei-gold-light: #ffe28a;
    --mei-border: rgba(243, 195, 79, 0.45);
    --mei-shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--mei-text);
    background: var(--mei-bg);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.mei-page {
    width: 100%;
    overflow: hidden;
}

.mei-container {
    width: 100%;
    max-width: 1180px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 24px;
    padding-left: 24px;
}

/* =========================================================
   FAIXA SUPERIOR
   ========================================================= */

.mei-topbar {
    position: relative;
    z-index: 5;
    width: 100%;
    padding: 11px 20px;
    color: #18252b;
    background: linear-gradient(
        90deg,
        #d6a72f,
        #ffe28a,
        #d6a72f
    );
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

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

.mei-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    margin-top: 30px;
}

.mei-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 13px 25px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 10px;
    color: #ffffff;
    background: rgba(8, 20, 29, 0.78);
    box-shadow: 0 9px 22px rgba(0, 0, 0, 0.18);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease,
        color 0.25s ease;
}

.mei-button:hover {
    color: #ffffff;
    background: #172e3b;
    box-shadow: 0 13px 28px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
}

.mei-button.gold {
    border-color: transparent;
    color: #17232a;
    background: linear-gradient(
        135deg,
        var(--mei-gold-light),
        #e5ae2f
    );
}

.mei-button.gold:hover {
    color: #17232a;
    background: linear-gradient(
        135deg,
        #ffebae,
        #efbb3d
    );
}

/* =========================================================
   HERO / TOPO
   ========================================================= */

.mei-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 620px;
    padding: 100px 0;
    background-color: #17232b;
    background-position: center;
    background-size: cover;
}

.mei-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(
            90deg,
            rgba(4, 13, 20, 0.9) 0%,
            rgba(4, 13, 20, 0.72) 48%,
            rgba(4, 13, 20, 0.3) 100%
        );
}

.mei-hero .mei-container {
    position: relative;
    z-index: 1;
}

.mei-hero-content {
    width: 100%;
    max-width: 650px;
    color: #ffffff;
}

.mei-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border: 1px solid rgba(243, 195, 79, 0.8);
    border-radius: 999px;
    color: var(--mei-gold-light);
    background: rgba(243, 195, 79, 0.08);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.25;
    text-transform: uppercase;
}

.mei-hero h1 {
    max-width: 650px;
    margin: 22px 0 20px;
    color: #ffffff;
    font-size: clamp(42px, 6vw, 78px);
    font-weight: 700;
    line-height: 0.98;
}

.mei-hero h1 strong {
    display: block;
    color: var(--mei-gold-light);
    font-weight: 700;
}

.mei-hero-subtitle {
    max-width: 620px;
    margin: 0;
    color: #e5edf0;
    font-size: 20px;
    line-height: 1.55;
}

.mei-small-note {
    margin-top: 15px;
    color: #c8d4d8;
    font-size: 13px;
}

/* =========================================================
   SEÇÕES GERAIS
   ========================================================= */

.mei-section {
    position: relative;
    padding: 95px 0;
    color: var(--mei-text);
    background: #f0f3f3;
}

.mei-section.dark {
    color: var(--mei-text);
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(243, 195, 79, 0.08),
            transparent 40%
        ),
        var(--mei-bg-dark);
}

.mei-section-title {
    max-width: 820px;
    margin: 0 auto 48px;
    text-align: center;
}

.mei-section-title h2 {
    margin: 0 0 18px;
    color: #17303b;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.15;
}

.mei-section.dark .mei-section-title h2 {
    color: #ffffff;
}

.mei-section-title p {
    margin: 0 auto;
    color: #536870;
    font-size: 18px;
    line-height: 1.65;
}

.mei-section.dark .mei-section-title p {
    color: var(--mei-muted);
}

/* =========================================================
   CARDS DE DORES E TÓPICOS
   ========================================================= */

.mei-pain-grid,
.mei-topics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.mei-topics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mei-card {
    position: relative;
    padding: 31px 27px;
    border: 1px solid rgba(20, 55, 69, 0.12);
    border-radius: 17px;
    color: #233943;
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(18, 46, 58, 0.1);
}

.mei-section.dark .mei-card {
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.055);
}

.mei-card h3 {
    margin: 18px 0 13px;
    color: #163542;
    font-size: 23px;
    line-height: 1.25;
}

.mei-section.dark .mei-card h3 {
    color: #ffffff;
}

.mei-card p {
    margin: 0;
    color: #5a6d74;
    font-size: 16px;
    line-height: 1.65;
}

.mei-section.dark .mei-card p {
    color: #c4d1d6;
}

.mei-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #172833;
    background: linear-gradient(
        135deg,
        var(--mei-gold-light),
        #d8a42d
    );
    font-size: 16px;
    font-weight: 800;
}

/* =========================================================
   BLOCO DE DESTAQUE
   ========================================================= */

.mei-highlight {
    max-width: 900px;
    margin: 0 auto;
    padding: 55px 55px;
    border: 1px solid rgba(243, 195, 79, 0.4);
    border-radius: 24px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            rgba(243, 195, 79, 0.13),
            rgba(255, 255, 255, 0.035)
        ),
        #132832;
    box-shadow: var(--mei-shadow);
    text-align: center;
}

.mei-highlight h2 {
    margin: 0 0 20px;
    color: var(--mei-gold-light);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.15;
}

.mei-highlight p {
    max-width: 760px;
    margin: 0 auto;
    color: #d1dde1;
    line-height: 1.7;
}

.mei-list {
    max-width: 690px;
    margin: 30px auto;
    padding: 0;
    list-style: none;
    text-align: left;
}

.mei-list li {
    position: relative;
    margin: 13px 0;
    padding-left: 30px;
    color: #ecf3f5;
}

.mei-list li::before {
    position: absolute;
    top: 0.65em;
    left: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    content: "";
    background: var(--mei-gold);
    transform: translateY(-50%);
}

/* =========================================================
   SEÇÃO DO AUTOR / LIVRO
   ========================================================= */

.mei-author {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: 65px;
}

.mei-author-image {
    min-height: 460px;
    border: 1px solid rgba(243, 195, 79, 0.34);
    border-radius: 22px;
    background-color: #162c37;
    background-position: center;
    background-size: cover;
    box-shadow: var(--mei-shadow);
}

.mei-author-text {
    width: 100%;
    max-width: 680px;
}

.mei-author-text h2 {
    max-width: 600px;
    margin: 0 0 20px;
    color: var(--mei-gold-light);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.08;
    text-align: left;
}

.mei-author-text p {
    margin: 0 0 20px;
    color: #cbd7db;
    font-size: 17px;
    line-height: 1.65;
    text-align: justify;
    text-justify: inter-word;
}

.mei-author-text p:last-child {
    margin-bottom: 0;
}

/* =========================================================
   OFERTA E COMPRA
   ========================================================= */

.mei-offer {
    position: relative;
    width: 100%;
    padding: 100px 20px;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(218, 168, 54, 0.14),
            transparent 38%
        ),
        linear-gradient(
            135deg,
            #07131d 0%,
            #0a1822 50%,
            #111c20 100%
        );
    text-align: center;
}

.mei-offer::before {
    position: absolute;
    top: 0;
    left: 50%;
    width: 190px;
    height: 3px;
    content: "";
    background: linear-gradient(
        90deg,
        transparent,
        var(--mei-gold),
        transparent
    );
    transform: translateX(-50%);
}

.mei-offer .mei-container {
    position: relative;
    z-index: 1;
    max-width: 1120px;
}

.mei-offer-kicker {
    margin-bottom: 22px;
}

.mei-offer-title {
    max-width: 850px;
    margin: 0 auto 18px;
    color: #ffffff;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.15;
    text-align: center;
}

.mei-offer-description {
    max-width: 720px;
    margin: 0 auto 45px;
    color: #c6d3da;
    font-size: 18px;
    line-height: 1.65;
    text-align: center;
}

.mei-purchase-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 30px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 34px;
}

.mei-purchase-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 440px;
    padding: 42px 34px 35px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.09),
            rgba(255, 255, 255, 0.025)
        );
    box-shadow: var(--mei-shadow);
    text-align: center;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.mei-purchase-card::before {
    position: absolute;
    top: 0;
    right: 12%;
    left: 12%;
    height: 3px;
    border-radius: 0 0 10px 10px;
    content: "";
    background: linear-gradient(
        90deg,
        transparent,
        var(--mei-gold),
        transparent
    );
}

.mei-purchase-card:hover {
    border-color: rgba(243, 195, 79, 0.8);
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.4),
        0 0 28px rgba(243, 195, 79, 0.1);
    transform: translateY(-7px);
}

.mei-purchase-card.featured {
    border: 2px solid rgba(243, 195, 79, 0.8);
    background:
        linear-gradient(
            145deg,
            rgba(243, 195, 79, 0.15),
            rgba(255, 255, 255, 0.035)
        );
    transform: translateY(-10px);
}

.mei-purchase-card.featured:hover {
    transform: translateY(-16px);
}

.mei-purchase-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin-bottom: 24px;
    padding: 8px 18px;
    border-radius: 999px;
    color: #18252b;
    background: linear-gradient(
        135deg,
        var(--mei-gold-light),
        #dda72d
    );
    box-shadow: 0 8px 20px rgba(218, 168, 54, 0.2);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-transform: uppercase;
}

.mei-purchase-card h3 {
    width: 100%;
    margin: 0 0 17px;
    color: #ffffff;
    font-size: 30px;
    line-height: 1.2;
    text-align: center;
}

.mei-purchase-description {
    width: 100%;
    max-width: 390px;
    min-height: 78px;
    margin: 0 auto 25px;
    color: #cbd6db;
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
}

.mei-purchase-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 93px;
    margin: auto 0 27px;
    text-align: center;
}

.mei-purchase-price strong {
    display: block;
    color: var(--mei-gold-light);
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
}

.mei-purchase-price span {
    display: block;
    margin-top: 9px;
    color: #d5e0e5;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.mei-purchase-button {
    width: 100%;
    max-width: 310px;
    min-height: 60px;
    margin: 0 auto;
}

.mei-offer .mei-security {
    max-width: 780px;
    margin: 25px auto 0;
    color: #a5b6bd;
    font-size: 13px;
    line-height: 1.55;
    text-align: center;
}

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

.mei-faq {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
}

.mei-faq details {
    margin-bottom: 13px;
    overflow: hidden;
    border: 1px solid rgba(18, 57, 72, 0.16);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(18, 46, 58, 0.07);
}

.mei-faq summary {
    position: relative;
    padding: 20px 52px 20px 22px;
    color: #193743;
    cursor: pointer;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    list-style: none;
}

.mei-faq summary::-webkit-details-marker {
    display: none;
}

.mei-faq summary::after {
    position: absolute;
    top: 50%;
    right: 22px;
    color: var(--mei-gold);
    content: "+";
    font-family: Arial, sans-serif;
    font-size: 25px;
    font-weight: 400;
    transform: translateY(-50%);
}

.mei-faq details[open] summary::after {
    content: "−";
}

.mei-faq details p {
    margin: 0;
    padding: 0 22px 22px;
    color: #5a6d74;
    font-size: 16px;
    line-height: 1.65;
}

/* =========================================================
   CHAMADA FINAL
   ========================================================= */

.mei-final {
    position: relative;
    padding: 115px 20px;
    overflow: hidden;
    background-color: #162b36;
    background-position: center;
    background-size: cover;
    text-align: center;
}

.mei-final::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(
            135deg,
            rgba(5, 16, 23, 0.9),
            rgba(5, 16, 23, 0.65)
        );
}

.mei-final .mei-container {
    position: relative;
    z-index: 1;
}

.mei-final h2 {
    max-width: 850px;
    margin: 0 auto 20px;
    color: #ffffff;
    font-size: clamp(31px, 4vw, 54px);
    line-height: 1.12;
}

.mei-final p {
    max-width: 700px;
    margin: 0 auto;
    color: #d3dfe3;
    font-size: 18px;
    line-height: 1.65;
}

.mei-final .mei-button {
    margin-top: 30px;
}

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

.mei-footer {
    padding: 25px 20px;
    color: #aebec4;
    background: #061018;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

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

@media (max-width: 900px) {
    .mei-hero {
        min-height: 560px;
    }

    .mei-pain-grid,
    .mei-topics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mei-author {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .mei-author-image {
        min-height: 360px;
        max-width: 620px;
        width: 100%;
        margin: 0 auto;
    }

    .mei-author-text {
        max-width: 760px;
        margin: 0 auto;
    }
}

@media (max-width: 760px) {
    .mei-container {
        padding-right: 18px;
        padding-left: 18px;
    }

    .mei-hero {
        min-height: 570px;
        padding: 80px 0;
    }

    .mei-hero h1 {
        font-size: clamp(40px, 11vw, 62px);
    }

    .mei-hero-subtitle {
        font-size: 18px;
    }

    .mei-buttons {
        justify-content: center;
    }

    .mei-section {
        padding: 70px 0;
    }

    .mei-pain-grid,
    .mei-topics-grid,
    .mei-purchase-options {
        grid-template-columns: 1fr;
    }

    .mei-card {
        max-width: 560px;
        width: 100%;
        margin: 0 auto;
    }

    .mei-highlight {
        padding: 38px 25px;
    }

    .mei-purchase-card.featured,
    .mei-purchase-card.featured:hover {
        transform: none;
    }

    .mei-author-text h2 {
        font-size: 32px;
    }
}

@media (max-width: 520px) {
    body {
        font-size: 16px;
    }

    .mei-topbar {
        padding: 9px 14px;
        font-size: 12px;
    }

    .mei-hero {
        min-height: 520px;
        padding: 65px 0;
    }

    .mei-hero h1 {
        font-size: 43px;
    }

    .mei-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .mei-buttons .mei-button {
        width: 100%;
    }

    .mei-section-title h2,
    .mei-highlight h2 {
        font-size: 31px;
    }

    .mei-author-image {
        min-height: 290px;
    }

    .mei-author-text h2 {
        font-size: 29px;
    }

    .mei-author-text p {
        font-size: 16px;
        line-height: 1.6;
    }

    .mei-offer {
        padding: 70px 15px 75px;
    }

    .mei-offer-title {
        font-size: 31px;
    }

    .mei-offer-description {
        font-size: 16px;
    }

    .mei-purchase-card {
        min-height: 400px;
        padding: 32px 22px 28px;
    }

    .mei-purchase-card h3 {
        font-size: 26px;
    }

    .mei-purchase-description {
        min-height: auto;
        font-size: 15px;
    }

    .mei-purchase-price strong {
        font-size: 36px;
    }

    .mei-purchase-button {
        max-width: 100%;
    }

    .mei-final {
        padding: 80px 18px;
    }
}