/* ============================================================
   Saúde No Prato — CSS Principal (Mobile First)
   ============================================================ */

:root {
    --verde:       #2d8a4e;
    --verde-esc:   #1a5c35;
    --verde-claro: #e8f5e9;
    --cta:         #ff6b35;
    --cta-hover:   #e55a25;
    --fundo:       #f8fdf9;
    --branco:      #ffffff;
    --texto:       #1a1a1a;
    --texto-sec:   #555555;
    --borda:       #d4edda;
    --sombra:      0 2px 16px rgba(0,0,0,0.08);
    --raio:        12px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: var(--fundo);
    color: var(--texto);
    font-size: 17px;
    line-height: 1.65;
    -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--verde); text-decoration: none; }

/* ============================================================
   HERO — primeira dobra
   ============================================================ */

.hero {
    background: linear-gradient(160deg, #1a5c35 0%, #2d8a4e 60%, #4caf50 100%);
    color: var(--branco);
    padding: 36px 20px 40px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-img {
    width: 100%;
    max-width: 340px;
    margin: 0 auto 22px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.hero-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* Imagem placeholder quando não há foto */
.hero-img-placeholder {
    width: 100%;
    max-width: 340px;
    height: 220px;
    margin: 0 auto 22px;
    border-radius: 16px;
    background: linear-gradient(135deg, #4caf50 0%, #81c784 50%, #a5d6a7 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    font-size: 64px;
}

.hero-img-placeholder span {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
}

.hero h1 {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.hero p {
    font-size: 16px;
    color: rgba(255,255,255,0.90);
    margin-bottom: 22px;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

/* Checkmarks */
.hero-checks {
    list-style: none;
    margin-bottom: 24px;
    text-align: left;
    display: inline-block;
}

.hero-checks li {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-checks li::before {
    content: '✅';
    font-size: 16px;
    flex-shrink: 0;
}

/* Preço */
.preco-bloco {
    margin-bottom: 20px;
}

.preco-de {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    text-decoration: line-through;
    margin-bottom: 2px;
}

.preco-por {
    font-size: 42px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.preco-por span {
    font-size: 20px;
    font-weight: 600;
}

.preco-aviso {
    font-size: 12px;
    color: rgba(255,255,255,0.70);
    margin-top: 4px;
}

/* Botão CTA */
.btn-cta {
    display: block;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    background: var(--cta);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    padding: 18px 20px;
    border: none;
    border-radius: var(--raio);
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(255,107,53,0.45);
    transition: background 0.2s, transform 0.1s;
    text-decoration: none;
    line-height: 1.2;
}

.btn-cta:hover  { background: var(--cta-hover); color: #fff; }
.btn-cta:active { transform: scale(0.98); }

.btn-cta small {
    display: block;
    font-size: 12px;
    font-weight: 400;
    opacity: 0.85;
    margin-top: 3px;
}

/* Segurança abaixo do botão */
.hero-seguranca {
    margin-top: 14px;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ============================================================
   SEÇÃO GERAL
   ============================================================ */

section {
    padding: 40px 20px;
}

section + section {
    border-top: 1px solid var(--borda);
}

.secao-titulo {
    font-size: 22px;
    font-weight: 800;
    color: var(--verde-esc);
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.3;
}

.secao-titulo em {
    font-style: normal;
    color: var(--cta);
}

/* ============================================================
   MOCKUP / CAPA
   ============================================================ */

.mockup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    max-width: 420px;
    margin: 0 auto;
}

.mockup-card {
    background: var(--branco);
    border-radius: var(--raio);
    overflow: hidden;
    box-shadow: var(--sombra);
    border: 1px solid var(--borda);
    text-align: center;
    padding: 20px 12px;
}

.mockup-card .icone {
    font-size: 40px;
    margin-bottom: 8px;
}

.mockup-card p {
    font-size: 13px;
    font-weight: 600;
    color: var(--verde-esc);
}

/* ============================================================
   O QUE VOCÊ VAI RECEBER
   ============================================================ */

.receber-lista {
    list-style: none;
    max-width: 460px;
    margin: 0 auto;
}

.receber-lista li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--borda);
}

.receber-lista li:last-child { border-bottom: none; }

.receber-icone {
    font-size: 28px;
    flex-shrink: 0;
    margin-top: 2px;
}

.receber-texto strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--verde-esc);
    margin-bottom: 2px;
}

.receber-texto span {
    font-size: 14px;
    color: var(--texto-sec);
}

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

.faq-lista {
    max-width: 480px;
    margin: 0 auto;
}

.faq-item {
    background: var(--branco);
    border: 1px solid var(--borda);
    border-radius: var(--raio);
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-pergunta {
    width: 100%;
    background: none;
    border: none;
    padding: 16px 18px;
    font-size: 15px;
    font-weight: 700;
    color: var(--verde-esc);
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.faq-pergunta::after {
    content: '+';
    font-size: 22px;
    font-weight: 300;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.faq-item.aberto .faq-pergunta::after {
    transform: rotate(45deg);
}

.faq-resposta {
    display: none;
    padding: 0 18px 16px;
    font-size: 14px;
    color: var(--texto-sec);
    line-height: 1.6;
}

.faq-item.aberto .faq-resposta { display: block; }

/* ============================================================
   CONFIANÇA
   ============================================================ */

.confianca-bg {
    background: var(--verde-claro);
}

.confianca-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    max-width: 420px;
    margin: 0 auto 24px;
}

.confianca-item {
    background: var(--branco);
    border-radius: var(--raio);
    padding: 18px 14px;
    text-align: center;
    box-shadow: var(--sombra);
}

.confianca-item .icone { font-size: 32px; margin-bottom: 8px; }

.confianca-item strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--verde-esc);
    margin-bottom: 2px;
}

.confianca-item span {
    font-size: 12px;
    color: var(--texto-sec);
}

/* CTA Final */
.cta-final {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(160deg, #1a5c35 0%, #2d8a4e 100%);
    color: var(--branco);
}

.cta-final h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
}

.cta-final p {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 24px;
}

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

footer {
    background: #1a1a1a;
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 24px 20px 80px; /* padding bottom para não esconder atrás do botão fixo */
    font-size: 13px;
}

footer strong { color: rgba(255,255,255,0.9); }

/* ============================================================
   BOTÃO FIXO MOBILE
   ============================================================ */

.btn-fixo {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 12px 16px;
    background: rgba(26, 92, 53, 0.97);
    box-shadow: 0 -2px 16px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-fixo a {
    display: block;
    width: 100%;
    max-width: 480px;
    background: var(--cta);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    padding: 15px 20px;
    border-radius: var(--raio);
    text-align: center;
    letter-spacing: 0.4px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(255,107,53,0.4);
}

/* Esconde botão fixo em telas grandes */
@media (min-width: 768px) {
    .btn-fixo { display: none; }
    footer     { padding-bottom: 24px; }
    body       { font-size: 18px; }

    .hero h1          { font-size: 34px; }
    .hero p           { font-size: 18px; }
    .hero-img         { max-width: 480px; }
    .hero-img-placeholder { max-width: 480px; height: 280px; }

    .mockup-grid      { grid-template-columns: repeat(4, 1fr); max-width: 600px; }
    .confianca-grid   { grid-template-columns: repeat(4, 1fr); max-width: 600px; }

    .secao-titulo     { font-size: 26px; }
}

/* ============================================================
   UTILITÁRIOS
   ============================================================ */

.text-center { text-align: center; }
.mt-16       { margin-top: 16px; }
.mb-16       { margin-bottom: 16px; }

/* ============================================================
   CHECKOUT — novo layout limpo
   ============================================================ */

.co-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 16px 40px;
    background: #f8fdf9;
}

.co-header {
    width: 100%;
    max-width: 480px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    font-size: 14px;
}

.co-voltar { color: var(--verde); font-weight: 600; text-decoration: none; }
.co-voltar:hover { text-decoration: underline; }
.co-seguro { color: #555; font-size: 13px; }

.co-card {
    width: 100%;
    max-width: 420px;
    background: var(--branco);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    padding: 28px 24px 32px;
    text-align: center;
}

/* Capa do ebook */
.co-capa {
    width: 160px;
    height: 160px;
    margin: 0 auto 18px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.co-capa img { width: 100%; height: 100%; object-fit: cover; }

.co-capa-emoji {
    font-size: 52px;
    margin-bottom: 14px;
    letter-spacing: 4px;
}

/* Info do produto */
.co-produto-nome {
    font-size: 20px;
    font-weight: 800;
    color: var(--verde-esc);
    margin-bottom: 4px;
}

.co-produto-desc {
    font-size: 14px;
    color: var(--texto-sec);
    margin-bottom: 16px;
}

.co-preco {
    font-size: 40px;
    font-weight: 900;
    color: var(--texto);
    margin-bottom: 8px;
    line-height: 1;
}

.co-pix-info {
    font-size: 13px;
    color: #666;
    margin-bottom: 24px;
}

/* Botão pagar */
.co-btn-pagar {
    width: 100%;
    background: var(--cta);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    padding: 17px 20px;
    border: none;
    border-radius: var(--raio);
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(255,107,53,0.4);
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.3px;
}

.co-btn-pagar:hover    { background: var(--cta-hover); }
.co-btn-pagar:active   { transform: scale(0.98); }
.co-btn-pagar:disabled { background: #bbb; box-shadow: none; cursor: default; }

/* Área do QR Code */
.co-pix-titulo {
    font-size: 16px;
    font-weight: 700;
    color: var(--verde-esc);
    margin-bottom: 16px;
}

.co-qrcode-box {
    width: 200px;
    height: 200px;
    margin: 0 auto 14px;
    border: 3px solid var(--borda);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.co-qrcode-box img { width: 100%; height: 100%; object-fit: contain; }

.co-ou {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 12px;
}

.co-codigo-label {
    font-size: 13px;
    font-weight: 700;
    color: #555;
    margin-bottom: 6px;
    text-align: left;
}

.co-codigo-texto {
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 11px;
    color: #333;
    word-break: break-all;
    text-align: left;
    max-height: 72px;
    overflow: hidden;
    font-family: monospace;
    margin-bottom: 10px;
}

.co-btn-copiar {
    width: 100%;
    background: var(--verde);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 13px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 14px;
    transition: background 0.2s;
}

.co-btn-copiar:hover { background: var(--verde-esc); }

.co-expiracao {
    font-size: 13px;
    color: #888;
    margin-bottom: 14px;
}

.co-expiracao strong { color: var(--cta); }

.co-status {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
}

.co-status-ok {
    background: #f0fdf4;
    color: #166534;
    border-color: #86efac;
}

.co-rodape {
    margin-top: 24px;
    font-size: 12px;
    color: #aaa;
    text-align: center;
}

/* ============================================================
   CHECKOUT — layout antigo (mantido por compatibilidade)
   ============================================================ */

.checkout-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--fundo);
}

.checkout-header {
    background: var(--verde);
    color: #fff;
    text-align: center;
    padding: 16px 20px;
}

.checkout-header h1 { font-size: 18px; font-weight: 700; }
.checkout-header p  { font-size: 13px; opacity: 0.85; margin-top: 2px; }

.checkout-corpo {
    flex: 1;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
    padding: 24px 20px;
}

.checkout-resumo {
    background: var(--branco);
    border: 1px solid var(--borda);
    border-radius: var(--raio);
    padding: 18px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkout-resumo .produto-nome {
    font-size: 15px;
    font-weight: 700;
    color: var(--verde-esc);
}

.checkout-resumo .produto-preco {
    font-size: 22px;
    font-weight: 900;
    color: var(--cta);
}

.form-grupo {
    margin-bottom: 16px;
}

.form-grupo label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--texto);
    margin-bottom: 6px;
}

.form-grupo input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid var(--borda);
    border-radius: 10px;
    background: var(--branco);
    color: var(--texto);
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
}

.form-grupo input:focus { border-color: var(--verde); }

.form-grupo .hint {
    font-size: 12px;
    color: var(--texto-sec);
    margin-top: 4px;
}

.btn-gerar-pix {
    width: 100%;
    background: var(--verde);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    padding: 17px;
    border: none;
    border-radius: var(--raio);
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s;
}

.btn-gerar-pix:hover    { background: var(--verde-esc); }
.btn-gerar-pix:disabled { background: #aaa; cursor: default; }

/* PIX Box */
.pix-box {
    background: var(--branco);
    border: 2px solid var(--verde);
    border-radius: var(--raio);
    padding: 24px 20px;
    text-align: center;
    margin-top: 20px;
    display: none;
}

.pix-box.visivel { display: block; }

.pix-box h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--verde-esc);
    margin-bottom: 6px;
}

.pix-box .instrucao {
    font-size: 14px;
    color: var(--texto-sec);
    margin-bottom: 18px;
}

.pix-qrcode {
    width: 200px;
    height: 200px;
    margin: 0 auto 18px;
    border: 3px solid var(--borda);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pix-qrcode img { width: 100%; height: 100%; object-fit: contain; }

.pix-codigo-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--texto-sec);
    margin-bottom: 8px;
}

.pix-codigo-texto {
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 11px;
    color: #333;
    word-break: break-all;
    text-align: left;
    max-height: 80px;
    overflow: hidden;
    font-family: monospace;
}

.btn-copiar {
    width: 100%;
    background: var(--verde);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 13px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 12px;
    transition: background 0.2s;
}

.btn-copiar:hover { background: var(--verde-esc); }
.btn-copiar.copiado { background: #1a5c35; }

.pix-expiracao {
    font-size: 13px;
    color: var(--texto-sec);
    margin-top: 14px;
}

.pix-expiracao strong { color: var(--cta); }

/* Status do pagamento */
.status-box {
    margin-top: 18px;
    padding: 14px;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.status-box.aprovado {
    background: #f0fdf4;
    color: #166534;
    border-color: #86efac;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

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

/* ============================================================
   SUCCESS PAGE
   ============================================================ */

.success-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(160deg, #1a5c35, #2d8a4e);
    color: #fff;
}

.success-icone { font-size: 72px; margin-bottom: 20px; }

.success-wrapper h1 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 12px;
}

.success-wrapper p {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 28px;
    max-width: 400px;
}

.btn-download {
    display: inline-block;
    background: var(--cta);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    padding: 18px 36px;
    border-radius: var(--raio);
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(255,107,53,0.4);
    margin-bottom: 16px;
}

.success-aviso {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
}
