/* ==========================================================================
   Loja Pr. Luciano Zanetti | estilo Apple Books
   Paleta: verde-água (a partir da cor do hero #9dc6c5)
   ========================================================================== */

:root {
    --cream:      #E8F2F1;
    --cream-2:    #DBEAE9;
    --paper:      #F4FBFA;
    --gold:       #2F7C77;
    --gold-deep:  #245F5B;
    --bronze:     #3E8A85;
    --brown:      #234643;
    --brown-soft: #47615F;
    --ink:        #1C3634;
    --white:      #ffffff;
    --line:       rgba(28, 54, 52, .12);
    --shadow-sm:  0 4px 16px rgba(28, 54, 52, .10);
    --shadow-md:  0 12px 34px rgba(28, 54, 52, .16);
    --shadow-lg:  0 30px 60px rgba(28, 54, 52, .24);
    --radius:     18px;
    --radius-sm:  12px;
}

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

/* garante que [hidden] realmente esconda (mesmo com display:flex/grid) */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 78px; /* espaço p/ CTA fixa no mobile */
}

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

.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 22px;
}
.container--narrow { max-width: 720px; }

h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; line-height: 1.15; }

.center { text-align: center; }

/* ---------- Botões ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--gold);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    padding: 12px 22px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(47, 124, 119, .35);
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { background: var(--gold-deep); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(47, 124, 119, .45); }
.btn:active { transform: translateY(0); }
.btn--sm  { padding: 8px 16px; font-size: 13px; }
.btn--lg  { padding: 15px 30px; font-size: 16px; }
.btn--full { width: 100%; }

/* ---------- Topbar ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(232, 242, 241, .85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.topbar__inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 10px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.topbar__title { font-family: 'Playfair Display', serif; font-weight: 700; color: var(--brown); font-size: 17px; }

/* ---------- Tags ---------- */
.tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gold-deep);
    background: rgba(47, 124, 119, .14);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.tag--dark { color: #fff; background: var(--bronze); }

/* ---------- HERO ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 60%, var(--cream-2) 100%);
    padding: 34px 0 54px;
}
.hero__glow {
    position: absolute;
    top: -180px; left: 50%;
    width: 620px; height: 620px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(157, 198, 197, .55) 0%, rgba(157, 198, 197, 0) 68%);
    pointer-events: none;
}
.hero__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}

/* Mockup do livro (imagem real) */
.hero__cover { display: flex; justify-content: center; }
.hero__mockup {
    width: 100%;
    max-width: 680px;
    /* sombra natural já vem embutida no render (PNG); sem filtro pra não cortar */
}

/* Capa (fallback antigo) */
.hero__cover--frame { perspective: 1400px; }
.cover-frame {
    position: relative;
    width: 250px;
    aspect-ratio: 5 / 7;
    border-radius: 6px 12px 12px 6px;
    overflow: hidden;
    box-shadow: var(--shadow-lg), -8px 0 0 -2px rgba(0,0,0,.06);
    transform: rotateY(-14deg) rotateX(3deg);
    transition: transform .5s cubic-bezier(.2,.7,.2,1);
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-2) 100%);
}
.cover-frame:hover { transform: rotateY(-4deg) rotateX(1deg) translateY(-4px); }
.cover-frame img { width: 100%; height: 100%; object-fit: cover; }
/* Fallback quando não há capa */
.cover-fallback { display: none; }
.cover-frame--empty .cover-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
    text-align: center;
    color: var(--gold-deep);
    background: linear-gradient(160deg, #dbeeed, #bfe0de);
}
.cover-fallback__k   { font-family: 'Playfair Display', serif; font-size: 22px; letter-spacing: .12em; }
.cover-fallback__big { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 92px; line-height: 1; color: var(--gold); }
.cover-fallback__s   { font-style: italic; margin-top: 6px; }
.cover-fallback em   { font-size: 11px; color: var(--brown-soft); margin-top: 16px; font-style: normal; }

/* Info */
.hero__info { max-width: 440px; }
.hero__title { font-size: 52px; color: var(--brown); }
.hero__subtitle { font-family: 'Playfair Display', serif; font-style: italic; font-size: 22px; color: var(--gold-deep); margin-top: 2px; }
.hero__author { margin-top: 12px; color: var(--brown-soft); }
.hero__author strong { color: var(--brown); }
.hero__meta { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; font-size: 14px; color: var(--brown-soft); }
.hero__price { margin: 22px 0 6px; }
.hero__price-from { display: block; font-size: 13px; color: var(--brown-soft); }
.hero__price-value { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 40px; color: var(--brown); }
.hero__note { margin-top: 14px; font-size: 13px; color: var(--brown-soft); }

/* ---------- Seções ---------- */
.section { padding: 56px 0; }
.section--tint { background: var(--cream-2); }
.section__title { font-size: 32px; color: var(--brown); margin-bottom: 10px; }
.section__lead { color: var(--brown-soft); margin-bottom: 26px; }

.prose p { margin-bottom: 16px; color: #2E4B49; font-size: 17px; }
.prose em { color: var(--gold-deep); }

.features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 28px;
}
.features li {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    font-weight: 500;
    font-size: 14.5px;
    color: var(--brown);
}

/* ---------- Autor ---------- */
.author { display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; }
.author__photo {
    position: relative;
    width: 150px; height: 150px;
    flex: 0 0 auto;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 4px solid var(--paper);
}
.author__photo img { width: 100%; height: 100%; object-fit: cover; }
.author__photo-fallback {
    display: none;
    width: 100%; height: 100%;
    align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 46px; color: #fff;
    background: linear-gradient(150deg, var(--bronze), var(--gold-deep));
}
.author__photo--empty .author__photo-fallback { display: flex; }
.author__text p { margin-bottom: 14px; color: #2E4B49; }

/* ---------- Compra ---------- */
.options { display: grid; gap: 14px; margin-bottom: 20px; }
.options--pay { grid-template-columns: 1fr 1fr; }
@media (max-width: 420px) { .options--pay { grid-template-columns: 1fr; } }
#card-wrap { margin-bottom: 20px; }

/* ---- Combo (leve todos os e-books) ---- */
.combo-offer { display: block; cursor: pointer; margin-bottom: 20px; }
.combo-offer input { position: absolute; opacity: 0; pointer-events: none; }
.combo-offer__box {
    display: block; position: relative;
    border: 2px solid var(--gold); border-radius: 14px;
    background: linear-gradient(160deg, var(--paper), var(--cream));
    padding: 16px; transition: box-shadow .2s, background .2s;
}
.combo-offer input:checked + .combo-offer__box {
    box-shadow: 0 0 0 3px rgba(47, 124, 119, .22);
    background: linear-gradient(160deg, #e4f3f1, var(--cream));
}
.combo-offer__tag {
    display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    color: #fff; background: var(--gold); padding: 3px 10px; border-radius: 999px; margin-bottom: 8px;
}
.combo-offer__name { display: block; font-family: 'Playfair Display', Georgia, serif; font-weight: 600; font-size: 18px; color: var(--ink); }
.combo-offer__desc { display: block; font-size: 13px; color: var(--brown-soft); margin: 3px 0 9px; }
.combo-offer__price { display: block; font-size: 15px; }
.combo-offer__price s { color: var(--brown-soft); margin-right: 6px; }
.combo-offer__price b { color: var(--gold-deep); font-size: 20px; }

/* ---- Zoom na capa (single page do e-book) ---- */
.zoomimg {
    position: relative; overflow: hidden; border-radius: 14px;
    margin: 0 auto; max-width: 300px; cursor: zoom-in;
    box-shadow: 0 30px 60px rgba(28, 54, 52, .30);
}
.zoomimg img {
    display: block; width: 100%; height: auto; max-width: 100%;
    filter: none; transition: transform .2s ease-out; will-change: transform;
}
.zoomimg.on img { transform: scale(2.2); }
.zoomimg::after {
    content: "🔍 ampliar"; position: absolute; right: 10px; bottom: 10px;
    font-size: 11px; font-weight: 600; color: var(--ink);
    background: rgba(255, 255, 255, .88); border-radius: 999px; padding: 4px 9px;
    opacity: .85; pointer-events: none; transition: opacity .2s;
}
.zoomimg.on::after { opacity: 0; }
@media (hover: none) { .zoomimg { cursor: default; } .zoomimg::after { display: none; } }

/* Botão secundário (contorno) */
.btn--ghost { background: transparent; color: var(--gold-deep); box-shadow: none; border: 1.5px solid var(--gold); }
.btn--ghost:hover { background: rgba(47, 124, 119, .08); color: var(--gold-deep); box-shadow: none; }
.option { display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; }
.option__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: var(--paper);
    border: 2px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.option input:checked + .option__body {
    border-color: var(--gold);
    background: #fff;
    box-shadow: 0 8px 22px rgba(47, 124, 119, .18);
}
.option__head { display: flex; align-items: center; gap: 14px; }
.option__icon { font-size: 28px; }
.option__name { display: block; font-weight: 700; color: var(--brown); font-size: 17px; }
.option__desc { display: block; font-size: 13px; color: var(--brown-soft); }
.option__price { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 22px; color: var(--brown); white-space: nowrap; }

.delivery {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 20px;
}
.delivery__label { display: block; font-weight: 600; color: var(--brown); margin-bottom: 10px; }
.delivery__opt { display: flex; align-items: center; gap: 10px; padding: 8px 0; cursor: pointer; color: #2E4B49; }
.delivery__opt input { accent-color: var(--gold); width: 18px; height: 18px; }
.delivery__opt b { color: var(--gold-deep); }

.checkout {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}
.checkout__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.checkout__total span { color: var(--brown-soft); }
.checkout__total strong { font-family: 'Playfair Display', serif; font-size: 30px; color: var(--brown); }
.checkout__secure { text-align: center; font-size: 13px; color: var(--brown-soft); margin-top: 12px; }
.checkout__demo { text-align: center; font-size: 12px; color: #2f726f; background: #e9f5f4; border-radius: 8px; padding: 8px; margin-top: 10px; }

/* ---------- FAQ ---------- */
.faq {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 4px 18px;
    margin-bottom: 12px;
}
.faq summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--brown);
    padding: 14px 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font-size: 22px; font-weight: 400; }
.faq[open] summary::after { content: '–'; }
.faq p { padding: 0 0 16px; color: #2E4B49; }

/* ---------- Rodapé ---------- */
.footer { background: var(--brown); color: #d6e8e6; text-align: center; padding: 40px 0; }
.footer__title { font-family: 'Playfair Display', serif; font-size: 20px; }
.footer__author { color: var(--gold); margin-top: 4px; }
.footer__copy { font-size: 13px; opacity: .7; margin-top: 14px; }

/* ---------- CTA fixa mobile ---------- */
.sticky-cta {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 18px;
    background: rgba(244, 251, 250, .92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 24px rgba(28, 54, 52, .10);
}
.sticky-cta__info { display: flex; flex-direction: column; line-height: 1.1; }
.sticky-cta__info span { font-size: 11px; color: var(--brown-soft); }
.sticky-cta__info strong { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--brown); }

/* ==========================================================================
   Responsivo — Desktop
   ========================================================================== */
@media (min-width: 860px) {
    body { padding-bottom: 0; }
    .prose p { text-align: justify; }
    .hero { padding: 60px 0 80px; }
    .hero__inner { flex-direction: row; text-align: left; justify-content: center; gap: 28px; }
    .hero__info { max-width: 380px; flex: 0 0 auto; }
    .hero__cover { flex: 1 1 auto; }
    .hero__meta { justify-content: flex-start; }
    .hero__price { text-align: left; }
    .hero__mockup { max-width: 780px; }
    .hero__title { font-size: 62px; }

    .author { flex-direction: row; text-align: left; align-items: flex-start; gap: 40px; }
    .author__photo { width: 190px; height: 190px; }

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

    .sticky-cta { display: none; }
}

@media (min-width: 560px) and (max-width: 859px) {
    .features { grid-template-columns: 1fr 1fr; }
}


/* ==========================================================================
   Formulário de dados + Modal PIX
   ========================================================================== */
.fields { display: grid; gap: 14px; margin: 4px 0 20px; }
.fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--brown); }
.field label .opt { font-weight: 400; color: var(--brown-soft); }
.field input {
    font-family: inherit;
    font-size: 15px;
    color: var(--ink);
    background: var(--paper);
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.field input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(47,124,119,.15); background:#fff; }
.field--cep { max-width: 55%; }
.field--num, .field--uf { max-width: 100%; }

.checkout__erro {
    background: #fbe9e2; color: #b03f18;
    border-radius: 10px; padding: 10px 14px; margin-top: 12px;
    font-size: 14px; text-align: center;
}

/* Modal */
.pix-modal {
    position: fixed; inset: 0; z-index: 200;
    display: flex; align-items: center; justify-content: center;
    padding: 18px;
    background: rgba(20, 38, 36, .55);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.pix-modal[hidden] { display: none; }
.pix-modal__box {
    position: relative;
    width: 100%; max-width: 400px;
    max-height: 92vh; overflow-y: auto;
    background: var(--paper);
    border-radius: 22px;
    padding: 30px 26px 26px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: pop .25s ease;
}
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.pix-modal__close {
    position: absolute; top: 12px; right: 16px;
    background: none; border: none; cursor: pointer;
    font-size: 30px; line-height: 1; color: var(--brown-soft);
}
.pix-modal__title { font-size: 24px; color: var(--brown); }
.pix-modal__sub { font-size: 14px; color: var(--brown-soft); margin-top: 8px; }
.pix-modal__qr { display: flex; justify-content: center; margin: 18px 0 14px; }
.pix-modal__qr img { width: 220px; height: 220px; border-radius: 12px; border: 1px solid var(--line); background:#fff; }
.pix-copia { display: flex; gap: 8px; }
.pix-copia input {
    flex: 1; min-width: 0;
    font-size: 12px; color: var(--brown-soft);
    background: #fff; border: 1.5px solid var(--line);
    border-radius: 10px; padding: 10px 12px;
}
.pix-modal__valor { margin-top: 14px; color: var(--brown-soft); }
.pix-modal__valor strong { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--brown); }
.pix-modal__status {
    margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--gold-deep);
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.spin {
    width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid rgba(47,124,119,.3); border-top-color: var(--gold-deep);
    display: inline-block; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.pix-ok {
    width: 72px; height: 72px; margin: 6px auto 14px;
    border-radius: 50%;
    background: linear-gradient(150deg, #6fae52, #3f8a4a);
    color: #fff; font-size: 40px; line-height: 72px;
    box-shadow: 0 10px 24px rgba(63,138,74,.35);
}
.pix-pago-msg { color: #2E4B49; margin-bottom: 18px; }
#pix-download { width: 100%; }


/* ==========================================================================
   Ícones + refinamentos (v2)
   ========================================================================== */
.ic { width: 20px; height: 20px; flex: 0 0 auto; vertical-align: -4px; }
.ic--sm { width: 16px; height: 16px; }
.ic--lg { width: 28px; height: 28px; }
.flip { transform: rotate(180deg); }
.btn .ic { width: 18px; height: 18px; }

.kicker, .eyebrow {
    display: inline-block;
    font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
    color: var(--gold-deep); font-weight: 700; margin-bottom: 10px;
}
.eyebrow.center { display: block; text-align: center; }

.hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero__meta .ic { color: var(--gold-deep); }
.hero__note { display: inline-flex; align-items: center; gap: 7px; justify-content: center; }
.hero__note .ic { color: var(--gold-deep); }

/* Sobre — ícones em tiles */
.features li { align-items: center; }
.features__ic {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 11px; flex: 0 0 auto;
    background: rgba(47, 124, 119, .12); color: var(--gold-deep);
}
.features__ic .ic { width: 22px; height: 22px; }

/* Epígrafe */
.epigraph {
    text-align: center; margin-top: 42px; padding: 30px 20px;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.epigraph__mark { width: 30px; height: 30px; color: var(--gold); opacity: .7; }
.epigraph blockquote {
    font-family: 'Playfair Display', serif; font-style: italic;
    font-size: 22px; color: var(--brown); margin: 10px 0; line-height: 1.45;
}
.epigraph figcaption { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); }

/* Planos (formatos) */
.plans { display: grid; gap: 16px; margin-top: 26px; }
.plan {
    position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
    background: var(--paper); border: 1.5px solid var(--line); border-radius: 20px;
    padding: 26px 24px; text-decoration: none;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.plan__badge {
    position: absolute; top: 18px; right: 18px;
    font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    color: #fff; background: var(--gold); padding: 4px 10px; border-radius: 999px;
}
.plan__ic {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 14px;
    background: rgba(28, 54, 52, .06); color: var(--brown);
}
.plan__ic .ic { width: 26px; height: 26px; }
.plan__name { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--brown); }
.plan__desc { font-size: 14px; color: var(--brown-soft); }
.plan__price { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 28px; color: var(--brown); margin-top: 2px; }
.plan__cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--gold-deep); margin-top: 4px; }

/* Topbar back */
.topbar__back { display: inline-flex; align-items: center; gap: 6px; color: var(--brown); text-decoration: none; font-weight: 600; font-size: 14px; }

/* Option icon (svg) */
.option__ic {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 12px; flex: 0 0 auto;
    background: rgba(28, 54, 52, .06); color: var(--brown);
}
.option__ic .ic { width: 24px; height: 24px; }

/* Delivery (novo) */
.delivery__opt { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1.5px solid transparent; border-radius: 12px; cursor: pointer; }
.delivery__opt:has(input:checked) { border-color: var(--gold); background: #fff; }
.delivery__opt input { accent-color: var(--gold); width: 18px; height: 18px; flex: 0 0 auto; }
.delivery__ic { display: inline-flex; color: var(--brown-soft); }
.delivery__ic .ic { width: 22px; height: 22px; }
.delivery__txt { color: #2E4B49; }
.delivery__txt b { color: var(--gold-deep); }

/* ==========================================================================
   Página de Checkout
   ========================================================================== */
.checkout-page { background: var(--cream); padding-bottom: 40px; }
.co { padding: 24px 0 50px; }
.co__wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.co__card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 26px 22px; box-shadow: var(--shadow-sm); }
.co__h1 { font-size: 26px; color: var(--brown); margin-bottom: 18px; }
.co__summary { display: flex; gap: 14px; align-items: center; padding: 14px; background: var(--cream-2); border-radius: 16px; margin-bottom: 8px; }
.co__summary img { width: 62px; height: auto; filter: drop-shadow(0 6px 12px rgba(28, 54, 52, .25)); }
.co__summary strong { display: block; font-family: 'Playfair Display', serif; font-size: 18px; color: var(--brown); }
.co__summary span { display: block; font-size: 13px; color: var(--brown-soft); }
.co__label { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--brown-soft); font-weight: 700; margin: 22px 0 10px; }
.co__total { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 0 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.co__total span { color: var(--brown-soft); }
.co__total strong { font-family: 'Playfair Display', serif; font-size: 28px; color: var(--brown); }
.co__secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--brown-soft); margin-top: 12px; }
.co__secure .ic { color: var(--gold-deep); }
.co__erro { background: #fbe9e2; color: #b03f18; border-radius: 10px; padding: 10px 14px; margin-top: 14px; font-size: 14px; text-align: center; }
.co__sub { color: var(--brown-soft); text-align: center; margin-bottom: 18px; }
.co__back-link { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; cursor: pointer; color: var(--brown-soft); font: inherit; font-size: 14px; font-weight: 600; margin-bottom: 12px; text-decoration: none; }
.co__back-link--center { display: inline-flex; margin: 18px auto 0; }
.co__card--ok { text-align: center; }
.co__ok-msg { color: #2E4B49; margin: 6px 0 20px; }
#ok-download, #ok-comprovante { width: 100%; margin-bottom: 10px; }

/* PIX inline */
.pix-qr { display: flex; justify-content: center; margin: 6px 0 14px; }
.pix-qr img { width: 230px; height: 230px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.pix-copia { display: flex; gap: 8px; }
.pix-copia input { flex: 1; min-width: 0; font-size: 12px; color: var(--brown-soft); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; }
#pix-copiar.ok { background: #3f8a4a; }
.pix-valor { text-align: center; margin-top: 14px; color: var(--brown-soft); }
.pix-valor strong { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--brown); }
.pix-status { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; font-weight: 600; color: var(--gold-deep); }

.pix-ok {
    width: 74px; height: 74px; margin: 0 auto 14px; border-radius: 50%;
    background: linear-gradient(150deg, #6fae52, #3f8a4a); color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 24px rgba(63, 138, 74, .35);
}
.ic--ok { width: 38px; height: 38px; stroke-width: 2.4; }

/* ==========================================================================
   Comprovante
   ========================================================================== */
.cp-page { background: var(--cream-2); padding: 24px 12px; }
.cp { max-width: 440px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 30px 26px; box-shadow: var(--shadow-md); }
.cp__head { text-align: center; padding-bottom: 18px; border-bottom: 1px dashed var(--line); }
.cp__badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #3f8a4a; background: rgba(63, 138, 74, .12); padding: 5px 12px; border-radius: 999px; }
.cp__title { font-family: 'Playfair Display', serif; font-size: 26px; color: var(--brown); margin-top: 12px; }
.cp__sub { font-size: 14px; color: var(--brown-soft); margin-top: 4px; }
.cp__code { text-align: center; margin: 22px 0; }
.cp__code span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--brown-soft); margin-bottom: 4px; }
.cp__code strong { font-family: 'Playfair Display', serif; font-size: 30px; color: var(--gold-deep); letter-spacing: .05em; }
.cp__rows { display: flex; flex-direction: column; }
.cp__row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.cp__row span { color: var(--brown-soft); flex: 0 0 auto; }
.cp__row b { color: var(--brown); text-align: right; }
.cp__row--total { border-bottom: none; padding-top: 14px; }
.cp__row--total b { font-family: 'Playfair Display', serif; font-size: 18px; }
.cp__note { display: flex; gap: 8px; align-items: flex-start; background: var(--cream-2); border-radius: 12px; padding: 14px; margin: 18px 0; font-size: 14px; color: #2E4B49; }
.cp__note .ic { color: var(--gold-deep); margin-top: 2px; }
.cp__foot { text-align: center; font-size: 12px; color: var(--brown-soft); margin-top: 14px; }
@media print {
    .cp__print { display: none; }
    body { background: #fff; }
    .cp { box-shadow: none; border: none; }
}

/* Desktop */
@media (min-width: 700px) {
    .plans { grid-template-columns: 1fr 1fr; align-items: stretch; }
}


/* ==========================================================================
   Ajustes finos — Mobile
   ========================================================================== */
@media (max-width: 640px) {
    /* mockup ampliado: a sombra só corta ao encostar na borda da tela */
    .hero { padding: 30px 0 20px; overflow: hidden; }
    .hero__cover { padding: 6px 0 52px; }
    .hero__mockup { max-width: 100%; transform: scale(1.18); transform-origin: top right; }

    /* features: ícone em cima do texto */
    .features li {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 16px 18px;
    }
}


/* ==========================================================================
   Correção de overflow dos inputs (mobile) + Admin
   ========================================================================== */
.field { min-width: 0; }
.field input { width: 100%; max-width: 100%; }
.fields-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.co__card { overflow: hidden; }

/* ---------- Painel admin ---------- */
.adm-page { background: var(--cream); min-height: 100vh; }
.adm-top { background: var(--brown); color: #e0efed; padding: 16px 22px; display: flex; align-items: center; justify-content: space-between; }
.adm-top h1 { font-family: 'Playfair Display', serif; font-size: 20px; color: #fff; }
.adm-top a { color: #bfe0dd; text-decoration: none; font-size: 14px; font-weight: 600; }
.adm-wrap { max-width: 1080px; margin: 0 auto; padding: 22px 18px 60px; }

.adm-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.adm-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.adm-card span { font-size: 13px; color: var(--brown-soft); }
.adm-card strong { display: block; font-family: 'Playfair Display', serif; font-size: 26px; color: var(--brown); margin-top: 4px; }

.adm-filtros { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.adm-filtros a { padding: 8px 16px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--brown); background: var(--paper); border: 1px solid var(--line); }
.adm-filtros a.on { background: var(--gold); color: #fff; border-color: var(--gold); }

.adm-tablewrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.adm-table th { text-align: left; padding: 12px 14px; color: var(--brown-soft); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--line); }
.adm-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--brown); vertical-align: top; }
.adm-table tr:last-child td { border-bottom: none; }
.adm-code { font-family: 'Playfair Display', serif; font-weight: 700; color: var(--gold-deep); }
.adm-sub { display: block; font-size: 12px; color: var(--brown-soft); }

.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.badge--pendente { background: #fbe9d5; color: #a5710f; }
.badge--pago { background: #dff0e0; color: #2f7a3b; }
.badge--enviado { background: #dce8fb; color: #2b5aa5; }
.badge--entregue { background: #e5e0f5; color: #5a44a5; }
.badge--cancelado { background: #f7dede; color: #a53b3b; }

.adm-acoes { display: flex; gap: 6px; flex-wrap: wrap; }
.adm-acoes button { font: inherit; font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--brown); cursor: pointer; }
.adm-acoes button:hover { background: var(--cream-2); }

.adm-empty { text-align: center; padding: 40px; color: var(--brown-soft); }

/* Login admin */
.adm-login { max-width: 360px; margin: 60px auto; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 30px 26px; text-align: center; box-shadow: var(--shadow-sm); }
.adm-login h1 { font-family: 'Playfair Display', serif; font-size: 24px; color: var(--brown); margin-bottom: 6px; }
.adm-login p { color: var(--brown-soft); font-size: 14px; margin-bottom: 20px; }
.adm-login input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; margin-bottom: 14px; }
.adm-login .erro { color: #b03f18; font-size: 14px; margin-bottom: 12px; }

@media (max-width: 640px) {
    .adm-cards { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .adm-card { padding: 12px 10px; }
    .adm-card span { font-size: 11px; }
    .adm-card strong { font-size: 18px; }
    .adm-top h1 { font-size: 16px; }
    /* filtros: menores e todos na mesma linha */
    .adm-filtros { flex-wrap: nowrap; gap: 6px; }
    .adm-filtros a { padding: 6px 12px; font-size: 12px; white-space: nowrap; }
}


/* ==========================================================================
   Prazo (checkout) + Meta de pré-venda (admin)
   ========================================================================== */
.co__prazo {
    display: flex; align-items: center; gap: 7px;
    margin-top: 12px; padding: 10px 14px;
    background: var(--cream-2); border-radius: 10px;
    font-size: 13px; color: #2E4B49;
}
.co__prazo .ic { color: var(--gold-deep); }
.co__prazo strong { color: var(--brown); }

.adm-alerta {
    display: flex; align-items: center; gap: 10px;
    background: #dff0e0; color: #2f7a3b;
    border: 1px solid #b7ddbc; border-radius: 14px;
    padding: 14px 18px; margin-bottom: 16px; font-size: 15px;
}
.adm-alerta .ic { flex: 0 0 auto; }

.adm-progresso {
    background: var(--paper); border: 1px solid var(--line);
    border-radius: 14px; padding: 16px 18px; margin-bottom: 16px;
}
.adm-progresso__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.adm-progresso__top span { color: var(--brown-soft); font-size: 14px; }
.adm-progresso__top strong { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--brown); }
.adm-progresso__bar { height: 10px; background: var(--cream-2); border-radius: 999px; overflow: hidden; }
.adm-progresso__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-deep)); border-radius: 999px; transition: width .4s ease; }

/* ---------- Loja / galeria de produtos ---------- */
.loja {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 30px;
}
.prod {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease;
}
.prod:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.prod__cover {
    position: relative;
    display: block;
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-2) 100%);
    padding: 26px 24px 14px;
    text-align: center;
}
.prod__cover img {
    display: block; margin: 0 auto;
    width: auto; max-width: 70%; height: 240px;
    object-fit: contain;
    filter: drop-shadow(0 16px 26px rgba(28, 54, 52, .28));
}
.prod__badge {
    display: inline-block; vertical-align: middle;
    font-size: 10.5px; font-weight: 600; letter-spacing: .02em;
    color: #fff; background: var(--bronze);
    padding: 3px 9px; border-radius: 999px; margin-left: 6px;
    position: relative; top: -2px; white-space: nowrap;
}
.prod__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.prod__title { font-family: 'Playfair Display', serif; font-size: 19px; color: var(--brown); line-height: 1.25; }
.prod__sub { font-size: 13.5px; color: var(--brown-soft); margin-top: 3px; }
.prod__author { font-size: 12.5px; color: var(--gold-deep); margin-top: 6px; }
.prod__foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.prod__price { font-weight: 700; color: var(--ink); font-size: 18px; line-height: 1.1; }
.prod__price small { font-size: 11px; font-weight: 500; color: var(--brown-soft); }
@media (max-width: 860px) { .loja { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .loja { grid-template-columns: 1fr; } }

/* variante "itens relacionados": centraliza quando há poucos cards */
.loja--rel { display: flex; flex-wrap: wrap; justify-content: center; }
.loja--rel .prod { width: 320px; max-width: 100%; }

/* ---------- Checkout: order-bump (adquira também) ---------- */
.bump { margin-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.bump__item {
    display: flex; align-items: center; gap: 12px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 10px 12px; cursor: pointer; background: var(--paper);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.bump__item:hover { border-color: var(--gold); }
.bump__item input { width: 20px; height: 20px; accent-color: var(--gold-deep); flex: 0 0 auto; }
.bump__cover { width: 44px; height: 56px; object-fit: contain; flex: 0 0 auto; filter: drop-shadow(0 4px 8px rgba(28,54,52,.25)); }
.bump__txt { flex: 1; min-width: 0; }
.bump__name { display: block; font-weight: 600; color: var(--brown); font-size: 14px; }
.bump__desc { display: block; font-size: 12px; color: var(--brown-soft); }
.bump__price { font-weight: 700; color: var(--gold-deep); white-space: nowrap; }

/* ---------- Página "meus livros" (downloads) ---------- */
.ml { max-width: 640px; margin: 0 auto; padding: 30px 18px 60px; }
.ml__item {
    display: flex; align-items: center; gap: 14px;
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 12px;
}
.ml__cover { width: 54px; height: 68px; object-fit: contain; flex: 0 0 auto; filter: drop-shadow(0 6px 12px rgba(28,54,52,.25)); }
.ml__info { flex: 1; min-width: 0; }
.ml__title { font-weight: 600; color: var(--brown); }
.ml__sub { font-size: 12.5px; color: var(--brown-soft); }

/* ---------- Admin: nav + produtos ---------- */
.adm-nav { display: inline-flex; align-items: center; gap: 16px; }
.adm-nav a { display: inline-flex; align-items: center; gap: 5px; }
.adm-prod {
    display: flex; align-items: center; gap: 14px;
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 10px;
}
.adm-prod img { width: 44px; height: 56px; object-fit: contain; flex: 0 0 auto; }
.adm-prod__info { flex: 1; min-width: 0; }
.adm-prod__title { font-weight: 600; color: var(--brown); }
.adm-prod__meta { font-size: 12.5px; color: var(--brown-soft); }
.adm-prod__acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-prod--off { opacity: .55; }
.pill { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--cream-2); color: var(--brown); }
.pill--gold { background: var(--gold); color: #fff; }
.adm-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; max-width: 640px; }
.adm-form .field { margin-bottom: 14px; }
.adm-form label { display: block; font-size: 13px; font-weight: 600; color: var(--brown); margin-bottom: 5px; }
.adm-form input[type=text], .adm-form input[type=number], .adm-form input[type=file], .adm-form textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff;
}
.adm-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.adm-check { display: inline-flex; align-items: center; gap: 8px; margin-right: 18px; font-size: 14px; }
.adm-check input { width: 18px; height: 18px; accent-color: var(--gold-deep); }

/* ---------- Página individual do e-book ---------- */
.ebp-hero { background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 65%, var(--cream-2) 100%); padding: 40px 0 46px; }
.ebp-hero__inner { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: center; }
.ebp-cover { text-align: center; }
.ebp-cover img { width: 100%; max-width: 300px; height: auto; border-radius: 14px; filter: drop-shadow(0 30px 60px rgba(28, 54, 52, .34)); }
.ebp-info h1 { font-family: 'Playfair Display', serif; font-size: 38px; line-height: 1.1; color: var(--brown); margin: 8px 0 6px; }
.ebp-sub { font-size: 17px; color: var(--brown-soft); }
.ebp-author { font-size: 14px; color: var(--gold-deep); margin-top: 10px; }
.ebp-price { font-family: 'Playfair Display', serif; font-size: 34px; color: var(--ink); font-weight: 700; margin: 20px 0 14px; }
.ebp-note { font-size: 13px; color: var(--brown-soft); margin-top: 12px; display: flex; align-items: center; gap: 6px; }
.ebp-outros { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }
.ebp-outros a { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.ebp-outros img { width: 40px; height: 52px; object-fit: contain; }
.ebp-outros span { font-weight: 600; color: var(--brown); font-size: 14px; }
@media (max-width: 720px) {
    .ebp-hero__inner { grid-template-columns: 1fr; gap: 22px; text-align: center; }
    .ebp-note { justify-content: center; }
}

/* ---------- Página de e-books (single page) ---------- */
.eb-hero { text-align: center; padding: 46px 18px 10px; }
.eb-hero h1 { font-family: 'Playfair Display', serif; font-size: 34px; color: var(--brown); }
.eb-hero p { color: var(--brown-soft); max-width: 560px; margin: 10px auto 0; }
.eb { border-bottom: 1px solid var(--line); }
.eb:last-of-type { border-bottom: 0; }
.eb__row { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: center; }
.eb__row--rev .eb__cover { order: 2; }
.eb__cover { text-align: center; }
.eb__cover img { width: 100%; max-width: 250px; height: auto; border-radius: 12px; filter: drop-shadow(0 20px 40px rgba(28, 54, 52, .30)); }
.eb__info h2 { font-family: 'Playfair Display', serif; font-size: 29px; color: var(--brown); margin: 10px 0 4px; }
.eb__sub { color: var(--brown-soft); font-size: 15px; }
.eb__desc { margin: 14px 0 22px; color: var(--ink); line-height: 1.75; white-space: pre-line; }
.eb__buy { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.eb__buy .price { font-weight: 700; font-size: 22px; color: var(--ink); }
@media (max-width: 720px) {
    .eb__row { grid-template-columns: 1fr; gap: 18px; text-align: center; }
    .eb__row--rev .eb__cover { order: 0; }
    .eb__buy { justify-content: center; }
}
