/* Blog — estilos compartilhados por todas as páginas do blog (hub e posts). */
:root {
    /* Mesmos tokens do app (assets/css/variables.css): violeta + verde-limao */
    --brand: #6D4AFF;
    --brand-hover: #5B3BEB;
    --accent: #5B3BEB;
    --lime: #C6F432;
    --lime-hover: #A6D41A;
    --ink: #120E2B;
    --text: #4B4766;
    --muted: #6E6A89;
    --line: #ECEAF5;
    --bg: #F6F5FB;
    --surface: #FFFFFF;
    --soft: #F3F0FF;
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: var(--font);
    --cover-gradient: linear-gradient(135deg, #8B6CFF 0%, #5B3BEB 100%);
    --cta-kicker: var(--lime);
    --radius: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand); color: #fff; font-weight: 700; text-decoration: none; padding: 14px 26px; border-radius: 999px; transition: background .2s, transform .2s; }
.btn:hover { background: var(--brand-hover); transform: translateY(-1px); }
.btn-sm { padding: 9px 18px; font-size: .875rem; }
.btn-ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
.btn-ghost:hover { background: var(--soft); }

/* Cabeçalho */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.04em; }
.brand img, .footer-brand img { width: 34px; height: 34px; }
.brand b, .footer-brand b { color: var(--brand); font-weight: 800; }
.main-nav { display: flex; gap: 24px; margin-left: auto; }
.main-nav a { color: var(--text); text-decoration: none; font-size: .9rem; font-weight: 600; }
.main-nav a:hover { color: var(--brand); }

/* Hub */
.hub-hero { padding: 64px 0 32px; }
.eyebrow { display: inline-block; color: var(--accent); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.hub-hero h1 { font-family: var(--font-display); color: var(--ink); font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.08; margin: 10px 0 14px; letter-spacing: -.04em; font-weight: 800; }
.hub-hero p { font-size: 1.15rem; color: var(--muted); max-width: 680px; margin: 0; }
.hub-list { padding-bottom: 72px; }
.empty { color: var(--muted); padding: 40px 0; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 18px 40px -12px rgba(18, 14, 43, .16); transform: translateY(-4px); }
.card-img img, .card-ph { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-ph { display: block; background: var(--cover-gradient); }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.25; letter-spacing: -.02em; font-weight: 800; margin: 0; color: var(--ink); }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--brand); }
.card-body p { margin: 0; color: var(--muted); font-size: .95rem; }
.card-meta { margin-top: auto; padding-top: 8px; font-size: .8rem; color: var(--muted); }
.tag { align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-hover); background: var(--soft); padding: 4px 10px; border-radius: 999px; }

/* Post */
.post { padding: 40px 0 24px; }
.post-head, .post-content, .post .cta-box, .post-cover { max-width: 760px; margin-left: auto; margin-right: auto; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span { margin: 0 4px; }
.post-head h1 { font-family: var(--font-display); color: var(--ink); font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.1; letter-spacing: -.035em; font-weight: 800; margin: 0 0 16px; }
.post-dek { font-size: 1.2rem; color: var(--muted); margin: 0 0 14px; }
.post-meta { font-size: .875rem; color: var(--muted); margin: 0; }
.post-cover { margin-top: 28px; margin-bottom: 0; max-width: 960px; }
.post-cover img { width: 100%; border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; }

.post-content { font-size: 1.1rem; line-height: 1.8; padding-top: 28px; }
.post-content h2 { font-family: var(--font-display); color: var(--ink); font-size: 1.75rem; line-height: 1.2; letter-spacing: -.025em; font-weight: 800; margin: 2.2em 0 .6em; scroll-margin-top: 90px; }
.post-content h3 { color: var(--ink); font-size: 1.25rem; line-height: 1.35; margin: 1.8em 0 .5em; scroll-margin-top: 90px; }
.post-content p, .post-content ul, .post-content ol { margin: 0 0 1.2em; }
.post-content li { margin-bottom: .4em; }
.post-content strong { color: var(--ink); }
.post-content a { text-underline-offset: 3px; }
.post-content figure { margin: 2em 0; }
.post-content figure img { border-radius: 14px; width: 100%; }
.post-content figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; text-align: center; }
.post-content blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--lime); color: var(--ink); font-style: italic; }
.post-content .table-wrap { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--line); border-radius: 12px; }
.post-content table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--surface); }
.post-content th, .post-content td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.post-content th { background: var(--soft); color: var(--ink); }
.post-content tr:last-child td { border-bottom: 0; }

.summary-box { background: var(--soft); border-radius: 16px; padding: 20px 24px; margin: 0 0 2em; }
.summary-box p:first-child { font-weight: 700; color: var(--ink); margin-bottom: .4em; }
.summary-box ul { margin: 0; }
.callout { border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 14px 14px 0; padding: 16px 20px; margin: 1.6em 0; box-shadow: 0 1px 0 var(--line); }
.callout p:last-child { margin-bottom: 0; }

.faq h2 { margin-top: 2.2em; }
.faq h3 { margin-top: 1.4em; }

.cta-box { margin-top: 48px; background: var(--ink); color: #C9C5E0; border-radius: 28px; padding: 36px 32px; }
.cta-box .btn:not(.btn-ghost) { background: var(--lime); color: var(--ink); }
.cta-box .btn:not(.btn-ghost):hover { background: var(--lime-hover); }
.cta-kicker { color: var(--cta-kicker); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 8px; }
.cta-title { font-family: var(--font-display); color: #fff; font-size: 1.6rem; line-height: 1.25; margin: 0 0 10px; font-weight: 800; }
.cta-box p { margin: 0 0 18px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-box .btn-ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); }
.cta-box .btn-ghost:hover { background: rgba(255, 255, 255, .08); }

.related { padding: 56px 20px 72px; }
.related h2 { font-family: var(--font-display); color: var(--ink); font-size: 1.6rem; margin: 0 0 24px; }
.related .card-title { font-size: 1.1rem; }

/* Rodapé */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 56px 0 28px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-brand { margin-bottom: 14px; }
.footer-grid p { color: var(--muted); max-width: 360px; margin: 0; }
.footer-grid nav { display: flex; flex-direction: column; gap: 8px; }
.footer-grid nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.footer-grid nav a:hover { color: var(--brand); }
.footer-title { font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.footer-copy { color: var(--muted); font-size: .85rem; text-align: center; padding-top: 28px; margin-top: 40px; border-top: 1px solid var(--line); }
.footer-copy a { color: inherit; }

.whatsapp-float { position: fixed; right: 24px; bottom: 24px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(0, 0, 0, .18); z-index: 60; transition: transform .2s; }
.whatsapp-float:hover { transform: scale(1.08); }

@media (max-width: 960px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
    .main-nav { display: none; }
    .header-inner { justify-content: space-between; }
    .grid { grid-template-columns: 1fr; }
    .wrap { padding: 0 16px; }
    .post { padding-top: 24px; }
    .hub-hero { padding: 40px 16px 24px; }
    .post-content { font-size: 1.05rem; }
    .cta-box { padding: 28px 22px; }
    .whatsapp-float { right: 16px; bottom: 16px; }
}
