/* ===================================================================
   QUAD — Landing de captura (lead magnet) do ebook M4D
   Tema escuro (marinho + vermelho da marca). Modelo: páginas de iscas.
   =================================================================== */

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

:root {
    --red:      #D52B34;
    --red-dark: #A1242A;
    --navy-0:   #0b1626;
    --ink:      #F4F6FA;
    --ink-2:    rgba(244, 246, 250, 0.74);
    --ink-3:    rgba(244, 246, 250, 0.50);
    --line:     rgba(255, 255, 255, 0.12);
    --display:  'Mona Sans', ui-sans-serif, system-ui, sans-serif;
    --body:     'Inter', ui-sans-serif, system-ui, sans-serif;
    --mono:     'Fragment Mono', ui-monospace, monospace;
    --ease:     cubic-bezier(0.22, 1, 0.36, 1);
}

body {
    font-family: var(--body);
    color: var(--ink);
    background: var(--navy-0);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Fundo: marinho + brilhos (vermelho no topo direito, azul embaixo) */
.bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(1100px 620px at 80% 8%, rgba(213, 43, 52, 0.18), transparent 60%),
        radial-gradient(900px 700px at 8% 92%, rgba(38, 74, 130, 0.34), transparent 60%),
        linear-gradient(160deg, #13253f 0%, #0b1626 55%, #070e1a 100%);
}

/* ---------- Topbar ---------- */
.lp-topbar {
    max-width: 1240px;
    margin: 0 auto;
    padding: 22px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { height: 52px; width: auto; display: block; }
.topbar-tag {
    font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--ink-3);
}

/* ---------- Layout principal ---------- */
.lp {
    max-width: 1240px;
    margin: 0 auto;
    padding: 4px 40px 64px;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 48px;
    align-items: start;
    min-height: calc(100vh - 86px);
}

/* ---------- Coluna visual: dupla + ebook ---------- */
.lp-visual { display: flex; flex-direction: column; align-items: center; gap: 14px; align-self: start; }
.stage {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
}
.duo {
    width: 100%;
    max-width: 480px;
    height: auto;
    display: block;
    transform: translateX(3%);
    filter: drop-shadow(0 30px 48px rgba(0, 0, 0, 0.55));
}
/* Capa do ebook — puxada para cima, sobrepondo levemente a dupla,
   para aparecer completa sem rolar a página */
.ebook-capa {
    width: 100%;
    max-width: 450px;
    margin-top: -125px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 22px 38px rgba(0, 0, 0, 0.5));
}
.ebook-capa img { width: 100%; height: auto; display: block; }
.book {
    position: absolute;
    left: -3%;
    bottom: 4%;
    width: 32%;
    max-width: 176px;
    transform: perspective(1200px) rotateY(-19deg) rotate(-3deg);
    transform-origin: bottom left;
    border-radius: 3px 9px 9px 3px;
    overflow: hidden;
    box-shadow: 0 34px 54px -12px rgba(0, 0, 0, 0.7);
}
.book img { width: 100%; height: auto; display: block; }
.book::before { /* brilho da lombada */
    content: '';
    position: absolute; top: 0; left: 0; bottom: 0; width: 16px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0) 75%);
}
.book::after { /* leve escurecido na direita (dobra) */
    content: '';
    position: absolute; top: 0; right: 0; bottom: 0; width: 30%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.18));
}

/* Prova social */
.social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
}
.rating { display: flex; align-items: center; gap: 10px; }
.stars { color: #F5B301; font-size: 18px; letter-spacing: 2px; }
.rating-txt { font-size: 13px; color: var(--ink-2); }
.rating-txt strong { color: var(--ink); font-weight: 700; }
.downloads {
    font-size: 12px; color: var(--ink-2);
    border: 1px solid var(--line); border-radius: 100px;
    padding: 8px 14px; background: rgba(255, 255, 255, 0.04);
}
.downloads strong { color: var(--ink); }

/* ---------- Coluna conteúdo / formulário ---------- */
.lp-content { max-width: 540px; }
.lp-content h1 {
    font-family: var(--display); font-weight: 800;
    font-size: clamp(30px, 3.9vw, 47px);
    line-height: 1.03; letter-spacing: -0.03em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.lp-content h1 .accent { color: var(--red); }
.subtitle {
    font-family: var(--display); font-weight: 600;
    font-size: clamp(14px, 1.8vw, 19px);
    letter-spacing: 0.02em; text-transform: uppercase;
    color: var(--ink-2);
    margin-bottom: 14px;
}
.byline { margin-bottom: 16px; }
.byline-quad { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--ink); }
.badges { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.badge {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase;
    color: var(--ink-2); border: 1px solid var(--line); border-radius: 100px;
    padding: 6px 12px; background: rgba(255, 255, 255, 0.04);
}
.badge-ic { font-size: 13px; }
.desc { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin-bottom: 14px; }
.desc strong { color: var(--ink); font-weight: 600; }

/* Formulário */
.lead-form { display: flex; flex-direction: column; gap: 9px; }
.field input {
    width: 100%;
    padding: 11px 15px;
    background: #fff;
    border: 1px solid transparent;
    border-radius: 10px;
    font-family: var(--body); font-size: 15px; color: #1a2a4a;
    transition: box-shadow 0.2s var(--ease);
}
.field input::placeholder { color: #8a93a6; }
.field input:focus { outline: none; box-shadow: 0 0 0 3px rgba(213, 43, 52, 0.45); }
/* DDI (intl-tel-input) legível no campo branco — sobrescreve o tema escuro do phone-validator */
.field .iti__selected-dial-code { color: #1a2a4a; }
.field .iti__selected-flag:hover,
.field .iti__selected-flag:focus { background-color: rgba(0, 0, 0, 0.04); }

/* Campo de patrimônio — clique revela as faixas na própria página */
.patri { position: relative; }
.patri-toggle {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between;
    padding: 11px 15px;
    background: #fff; border: 1px solid transparent; border-radius: 10px;
    font-family: var(--body); font-size: 15px; color: #8a93a6;
    text-align: left; cursor: pointer;
    transition: box-shadow 0.2s var(--ease);
}
.patri-toggle:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(213, 43, 52, 0.45); }
.patri-toggle.filled { color: #1a2a4a; }
.patri-caret { color: #8a93a6; font-size: 12px; transition: transform 0.2s var(--ease); }
.patri.open .patri-caret { transform: rotate(180deg); }
.patri-opcoes {
    display: flex; flex-direction: column;
    margin-top: 6px;
    background: #fff; border-radius: 10px; overflow: hidden;
    box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.5);
}
.patri-opcoes[hidden] { display: none; }
.patri-opt {
    padding: 11px 15px;
    background: #fff; border: none; border-top: 1px solid #eef1f6;
    font-family: var(--body); font-size: 14.5px; color: #1a2a4a;
    text-align: left; cursor: pointer;
    transition: background 0.12s var(--ease);
}
.patri-opt:first-child { border-top: none; }
.patri-opt:hover { background: #f4f6fa; }
.patri-opt.sel { background: rgba(213, 43, 52, 0.08); color: var(--red); font-weight: 600; }
.consent {
    display: flex; gap: 10px; align-items: flex-start;
    font-size: 12px; color: var(--ink-3); line-height: 1.5;
    cursor: pointer; margin-top: 2px;
}
.consent input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--red); flex-shrink: 0; cursor: pointer; }
.consent a { color: var(--red); text-decoration: underline; }
.cta {
    margin-top: 4px;
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    width: 100%;
    padding: 14px 24px;
    border: none; border-radius: 10px; cursor: pointer;
    font-family: var(--display); font-weight: 800; font-size: 16px;
    letter-spacing: 0.06em; text-transform: uppercase; color: #fff;
    background: linear-gradient(180deg, var(--red), var(--red-dark));
    box-shadow: 0 16px 34px -12px rgba(213, 43, 52, 0.6);
    transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 22px 42px -12px rgba(213, 43, 52, 0.72); }
.cta:active { transform: translateY(0); }
.cta-ic { font-size: 15px; }
.form-msg { font-size: 13px; margin-top: 4px; padding: 12px 14px; border-radius: 8px; }
.form-msg.ok  { color: #8AE6B0; background: rgba(22, 148, 79, 0.15);  border: 1px solid rgba(22, 148, 79, 0.42); }
.form-msg.err { color: #F5A3A8; background: rgba(213, 43, 52, 0.15); border: 1px solid rgba(213, 43, 52, 0.42); }

/* ---------- Responsivo ---------- */
@media (max-width: 920px) {
    .lp {
        /* minmax(0,1fr): evita o "grid blowout" (a track não encolhia abaixo
           do min-content das imagens, empurrando a página além da largura da tela) */
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
        padding: 8px 22px 52px;
        min-height: 0;
    }
    .lp-visual, .lp-content { min-width: 0; }
    .lp-topbar { padding: 16px 22px; }
    .lp-content { max-width: none; order: 2; }
    .lp-content .desc { overflow-wrap: break-word; }
    .lp-visual { order: 1; }
    .stage { min-height: 380px; }
    .duo { transform: none; max-width: 440px; }
    .ebook-capa { margin-top: -80px; max-width: 380px; }
}
@media (max-width: 560px) {
    .topbar-tag { display: none; }
    .brand-logo { height: 44px; }
    .stage { min-height: 300px; }
    .duo { max-width: 360px; }
    .ebook-capa { margin-top: -64px; max-width: 300px; }
    .lp-content h1 { font-size: clamp(28px, 8.5vw, 40px); }
}
