/* ========================================
   Glippa — Brand CSS
   Cores: Blue #1EA5E5 | Teal #3AC6EC | Green #3FCB71
   Fontes: Nunito (títulos) | Nunito Sans (corpo)
   ======================================== */

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

:root {
    --blue:       #1EA5E5;
    --teal:       #3AC6EC;
    --green:      #3FCB71;
    --gradient:   linear-gradient(135deg, #1EA5E5, #3FCB71);
    --dark:       #2D3436;
    --mid-gray:   #636E72;
    --light-gray: #DFE6E9;
    --mint:       #F0F7F4;
    --white:      #FFFFFF;
    --success:    #00B894;
    --warning:    #FDCB6E;
    --error:      #E17055;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--mint);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========== TIPOGRAFIA ========== */

h1, h2, h3, h4 {
    font-family: 'Nunito', sans-serif;
    color: var(--dark);
    line-height: 1.3;
}

h1 { font-size: clamp(28px, 5vw, 40px); font-weight: 800; }
h2 { font-size: clamp(22px, 4vw, 32px); font-weight: 700; }
h3 { font-size: clamp(17px, 3vw, 22px); font-weight: 600; }
h4 { font-size: 16px; font-weight: 600; }

p { color: var(--mid-gray); font-size: 16px; line-height: 1.7; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ========== LAYOUT ========== */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

section { padding: 64px 0; }

/* ========== HEADER ========== */

.glippa-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    box-shadow: 0 1px 12px rgba(30,165,229,0.10);
    padding: 14px 0;
}

.glippa-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.glippa-header .logo img { height: 112px; }

.glippa-header .tagline {
    font-size: 13px;
    color: var(--mid-gray);
    display: none;
}

@media (min-width: 600px) {
    .glippa-header .tagline { display: block; }
}

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

.btn-primary {
    display: inline-block;
    background: var(--gradient);
    color: var(--white);
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 17px;
    padding: 16px 36px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(30,165,229,0.30);
    transition: transform 0.15s, box-shadow 0.15s;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30,165,229,0.40);
    text-decoration: none;
    color: var(--white);
}

.btn-primary:active { transform: translateY(0); }

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

.hero-section {
    background: var(--white);
    padding: 72px 0 64px;
    position: relative;
    overflow: hidden;
}

.hero-blob {
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: var(--gradient);
    opacity: 0.06;
    pointer-events: none;
}

.hero-content { text-align: center; max-width: 720px; margin: 0 auto; }

.hero-logo { display: inline-block; margin-bottom: 28px; }
.hero-logo img { height: 112px; }

.hero-content h1 { margin-bottom: 20px; }

.hero-content .subtitle {
    font-size: 18px;
    color: var(--mid-gray);
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-cta { margin-bottom: 12px; }

.hero-price {
    font-size: 15px;
    color: var(--mid-gray);
    margin-bottom: 28px;
}

.hero-price del { color: var(--light-gray); margin-right: 6px; }
.hero-price strong { color: var(--blue); font-size: 18px; }

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.trust-badge {
    background: rgba(58,198,236,0.10);
    color: var(--teal);
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ========== DORES ========== */

.dores-section { background: var(--mint); }

.dores-section h2 { text-align: center; margin-bottom: 32px; }

.dores-list {
    max-width: 600px;
    margin: 0 auto 24px;
    list-style: none;
}

.dores-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
    font-size: 16px;
    color: var(--dark);
}

.dores-list li:last-child { border-bottom: none; }

.dores-list .check {
    color: var(--green);
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.dores-fechamento {
    text-align: center;
    font-size: 15px;
    color: var(--mid-gray);
    font-style: italic;
    max-width: 500px;
    margin: 0 auto;
}

/* ========== CARDS DO GUIA ========== */

.guia-section { background: var(--white); }

.guia-section h2 { text-align: center; margin-bottom: 40px; }

.guia-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 768px) {
    .guia-grid { grid-template-columns: repeat(4, 1fr); }
}

.guia-card {
    background: var(--white);
    border: 1.5px solid var(--light-gray);
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.guia-card:hover {
    border-color: var(--teal);
    box-shadow: 0 4px 16px rgba(58,198,236,0.15);
}

.guia-card .card-icon { font-size: 28px; margin-bottom: 10px; }
.guia-card h4 { color: var(--dark); margin-bottom: 6px; }
.guia-card p { font-size: 13px; color: var(--mid-gray); line-height: 1.5; }

/* ========== PARA QUEM É ========== */

.para-quem-section { background: var(--mint); }

.para-quem-section h2 { text-align: center; margin-bottom: 36px; }

.para-quem-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 600px) {
    .para-quem-grid { grid-template-columns: repeat(3, 1fr); }
}

.para-quem-card {
    background: var(--white);
    border: 1.5px solid var(--teal);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
}

.para-quem-card .persona-icon { font-size: 32px; margin-bottom: 12px; }
.para-quem-card p { font-size: 15px; color: var(--dark); }

/* ========== PREÇO ========== */

.preco-section {
    background: linear-gradient(135deg, rgba(30,165,229,0.06), rgba(63,203,113,0.06));
    text-align: center;
    padding: 80px 0;
}

.preco-section h2 { margin-bottom: 16px; }

.preco-badge {
    display: inline-block;
    margin-bottom: 24px;
}

.preco-badge del {
    font-size: 18px;
    color: var(--mid-gray);
    margin-right: 8px;
}

.preco-badge .preco-atual {
    font-family: 'Nunito', sans-serif;
    font-size: 52px;
    font-weight: 800;
    color: var(--blue);
    line-height: 1;
}

.preco-subtitulo {
    font-size: 15px;
    color: var(--mid-gray);
    margin-bottom: 32px;
}

.payment-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.payment-badge {
    font-size: 13px;
    color: var(--mid-gray);
    display: flex;
    align-items: center;
    gap: 4px;
}

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

.faq-section { background: var(--white); }

.faq-section h2 { text-align: center; margin-bottom: 40px; }

.faq-list { max-width: 700px; margin: 0 auto; }

.faq-list details {
    border-bottom: 1px solid var(--light-gray);
    padding: 4px 0;
}

.faq-list details:last-child { border-bottom: none; }

.faq-list summary {
    cursor: pointer;
    padding: 16px 0;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--dark);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.faq-list summary::after {
    content: '+';
    color: var(--blue);
    font-size: 22px;
    font-weight: 400;
    flex-shrink: 0;
}

.faq-list details[open] summary::after { content: '−'; }

.faq-list details p {
    padding: 0 0 16px;
    font-size: 15px;
    line-height: 1.7;
}

/* ========== AVISO LEGAL ========== */

.aviso-legal {
    background: var(--mint);
    border-left: 4px solid var(--teal);
    padding: 20px 24px;
    border-radius: 0 8px 8px 0;
    margin: 40px auto;
    max-width: 700px;
    font-size: 13px;
    color: var(--mid-gray);
    line-height: 1.7;
}

/* ========== FOOTER ========== */

.glippa-footer {
    background: var(--dark);
    padding: 40px 0;
    text-align: center;
}

.glippa-footer .logo img { height: 32px; filter: brightness(10); opacity: 0.9; margin-bottom: 16px; }

.glippa-footer p {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    margin-bottom: 8px;
}

.glippa-footer a { color: rgba(255,255,255,0.6); font-size: 13px; margin: 0 8px; }

/* ========== CHECKOUT FORM ========== */

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
    margin: 0 auto 16px;
}

.checkout-form input {
    border: 1.5px solid var(--light-gray);
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 16px;
    font-family: 'Nunito Sans', sans-serif;
    color: var(--dark);
    background: var(--white);
    transition: border-color 0.2s;
    width: 100%;
}

.checkout-form input:focus {
    outline: none;
    border-color: var(--blue);
}

.checkout-form input::placeholder { color: var(--mid-gray); }

.checkout-form .btn-primary { width: 100%; }

.checkout-error {
    color: var(--error);
    font-size: 14px;
    text-align: center;
    min-height: 20px;
}

/* ========== SPINNER (página meu-guia) ========== */

.spinner-container {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--light-gray);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 24px;
}

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

.spinner-container h2 { margin-bottom: 8px; font-size: 20px; }
.spinner-container p { font-size: 15px; }

/* ========== GUIA CONTENT (meu-guia.html) ========== */

.guia-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

@media (min-width: 900px) {
    .guia-layout { grid-template-columns: 240px 1fr; }
}

.guia-sidebar {
    display: none;
}

@media (min-width: 900px) {
    .guia-sidebar {
        display: block;
        position: sticky;
        top: 90px;
        align-self: start;
        background: var(--white);
        border-radius: 12px;
        padding: 20px;
        border: 1px solid var(--light-gray);
    }
}

.guia-sidebar h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--mid-gray);
    margin-bottom: 12px;
}

.guia-sidebar ul { list-style: none; }

.guia-sidebar li { margin-bottom: 4px; }

.guia-sidebar a {
    font-size: 14px;
    color: var(--mid-gray);
    display: block;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
}

.guia-sidebar a:hover { background: var(--mint); color: var(--blue); }

.guia-sidebar a.active { color: var(--blue); font-weight: 600; }

.guia-content {
    background: var(--white);
    border-radius: 12px;
    padding: 32px;
    border: 1px solid var(--light-gray);
}

/* Estilos do markdown renderizado */
.guia-content h1 { font-size: 28px; margin-bottom: 24px; color: var(--dark); }
.guia-content h2 {
    font-size: 22px;
    margin: 40px 0 16px;
    padding-top: 40px;
    border-top: 1px solid var(--light-gray);
    color: var(--dark);
    scroll-margin-top: 90px;
}
.guia-content h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.guia-content h3 { font-size: 18px; margin: 24px 0 12px; color: var(--dark); }
.guia-content p { margin-bottom: 16px; color: var(--dark); font-size: 16px; }
.guia-content ul, .guia-content ol { margin: 0 0 16px 20px; }
.guia-content li { margin-bottom: 6px; color: var(--dark); font-size: 16px; }
.guia-content strong { color: var(--dark); }
.guia-content em { color: var(--mid-gray); }
.guia-content table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 14px; }
.guia-content th { background: var(--mint); padding: 10px 12px; text-align: left; font-weight: 600; border: 1px solid var(--light-gray); }
.guia-content td { padding: 10px 12px; border: 1px solid var(--light-gray); }
.guia-content tr:nth-child(even) td { background: rgba(240,247,244,0.5); }

/* Nota de rodapé / aviso legal no guia */
.guia-content hr + em, .guia-content hr + p em {
    font-size: 13px;
    color: var(--mid-gray);
    display: block;
    padding: 16px;
    background: var(--mint);
    border-radius: 8px;
    border-left: 3px solid var(--teal);
    font-style: normal;
    line-height: 1.6;
}

.btn-pdf {
    position: fixed;
    top: 70px;
    right: 20px;
    background: var(--white);
    border: 1.5px solid var(--blue);
    color: var(--blue);
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(30,165,229,0.15);
    z-index: 90;
    transition: background 0.15s, color 0.15s;
}

.btn-pdf:hover { background: var(--blue); color: var(--white); }

/* ========== PRINT ========== */

@media print {
    .glippa-header,
    .glippa-footer,
    .guia-sidebar,
    .btn-pdf,
    .breadcrumb,
    .spinner-container { display: none !important; }

    body { background: white; color: #2D3436; font-size: 12pt; }

    .guia-layout {
        display: block;
        padding: 0;
        max-width: 100%;
    }

    .guia-content {
        border: none;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
    }

    .guia-content h1 { font-size: 22pt; }
    .guia-content h2 { font-size: 16pt; color: #1EA5E5; border-top: 0.5pt solid #DFE6E9; page-break-after: avoid; }
    .guia-content h3 { font-size: 13pt; page-break-after: avoid; }
    .guia-content p, .guia-content li { font-size: 11pt; }
    .guia-content a { text-decoration: none; color: inherit; }

    @page { margin: 2cm; }
}
