/* ═══════════════════════════════════════════════════
   Blog — complementa style.css
   ═══════════════════════════════════════════════════ */

/* ── Variáveis de cor por categoria ─────────────── */
:root {
  --cover-gestao-a:    #1D4ED8; --cover-gestao-b:    #6366F1;
  --cover-comissao-a:  #0F766E; --cover-comissao-b:  #14B8A6;
  --cover-agenda-a:    #7C3AED; --cover-agenda-b:    #A78BFA;
  --cover-financeiro-a:#B45309; --cover-financeiro-b:#F59E0B;
  --cover-sistema-a:   #BE123C; --cover-sistema-b:   #FB7185;
}

/* ── Gradient covers (cards e featured) ──────────── */
.cover--gestao     { background: linear-gradient(135deg, var(--cover-gestao-a), var(--cover-gestao-b)); }
.cover--comissao   { background: linear-gradient(135deg, var(--cover-comissao-a), var(--cover-comissao-b)); }
.cover--agenda     { background: linear-gradient(135deg, var(--cover-agenda-a), var(--cover-agenda-b)); }
.cover--financeiro { background: linear-gradient(135deg, var(--cover-financeiro-a), var(--cover-financeiro-b)); }
.cover--sistema    { background: linear-gradient(135deg, var(--cover-sistema-a), var(--cover-sistema-b)); }

/* Textura sutil sobre o gradiente */
.cover--gestao::before, .cover--comissao::before,
.cover--agenda::before, .cover--financeiro::before,
.cover--sistema::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background-image: repeating-linear-gradient(
    -45deg, transparent, transparent 18px,
    rgba(255,255,255,0.04) 18px, rgba(255,255,255,0.04) 36px
  );
}

/* ══ BLOG INDEX ══════════════════════════════════════ */

/* ── Masthead ────────────────────────────────────── */
.blog-masthead {
  background: var(--ink);
  padding: 48px 0 40px;
  position: relative;
  overflow: hidden;
}
.blog-masthead::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(20,184,166,0.14) 0%, transparent 65%);
  pointer-events: none;
}
.masthead-inner {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 40px;
  position: relative; z-index: 1;
}
.masthead-label {
  font-size: 0.75rem; font-weight: 700; color: var(--teal-light);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px;
}
.masthead-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  color: var(--white); margin-bottom: 12px;
}
.masthead-title span { color: var(--teal-light); }
.masthead-desc { font-size: 1rem; color: #94A3B8; margin-bottom: 24px; max-width: 440px; }
.masthead-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.masthead-pill {
  font-size: 0.8125rem; font-weight: 600;
  background: rgba(255,255,255,0.07); color: #CBD5E1;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 6px 14px; border-radius: 999px;
  text-decoration: none; transition: all 0.15s;
}
.masthead-pill:hover { background: rgba(20,184,166,0.2); color: var(--teal-light); border-color: rgba(20,184,166,0.4); }

.masthead-signup {
  flex-shrink: 0; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 24px 28px; text-align: center;
  position: relative; z-index: 1; min-width: 220px;
}
.masthead-signup p { font-size: 0.875rem; color: #94A3B8; margin-bottom: 14px; }
.masthead-signup .btn--primary { background: var(--teal); width: 100%; }
.masthead-signup .btn--primary:hover { background: var(--teal-light); }
.masthead-signup small { display: block; font-size: 0.75rem; color: #475569; margin-top: 10px; }

/* ── Eyebrow label ──────────────────────────────── */
.eyebrow {
  font-size: 0.75rem; font-weight: 700; color: var(--gray-400);
  text-transform: uppercase; letter-spacing: 0.1em;
  display: block; margin-bottom: 16px;
}

/* ── Featured post ──────────────────────────────── */
.featured-section { padding: 44px 0 32px; background: var(--gray-50); border-bottom: 1px solid var(--gray-100); }

.featured-card {
  display: grid; grid-template-columns: 1fr 360px;
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
  text-decoration: none; color: inherit;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.featured-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.featured-card__cover {
  position: relative; min-height: 280px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 28px;
}
.featured-card__cover::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
}
.cover-bg-emoji {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 7rem; opacity: 0.18; filter: blur(2px); user-select: none;
  line-height: 1;
}
.featured-card__cover-content { position: relative; z-index: 2; }
.featured-card__cover-content h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.2rem, 2.4vw, 1.75rem);
  font-weight: 800; color: var(--white); line-height: 1.2;
  margin: 10px 0 10px;
}
.featured-card__meta { font-size: 0.875rem; color: rgba(255,255,255,0.7); font-weight: 500; }

.featured-card__body {
  padding: 32px 32px 32px 28px;
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
}
.featured-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem; font-weight: 700; color: var(--teal-dark);
  background: var(--teal-faint); border: 1px solid var(--teal-pale);
  padding: 5px 12px; border-radius: 999px; width: fit-content;
}
.featured-card__body p { font-size: 1rem; color: var(--gray-600); line-height: 1.7; margin: 0; }
.featured-read {
  font-size: 0.9375rem; font-weight: 700; color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--gray-200); padding: 10px 20px;
  border-radius: 999px; width: fit-content; transition: all 0.2s;
}
.featured-read:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.featured-read svg { transition: transform 0.15s; }
.featured-card:hover .featured-read svg { transform: translateX(4px); }

/* ── Ad / Publicidade ───────────────────────────── */
.ad-section { padding: 24px 0; background: var(--gray-50); }
.ad-banner {
  background: linear-gradient(120deg, #0B1320 0%, #142236 60%, #0F2030 100%);
  border-radius: var(--radius); padding: 20px 28px;
  display: flex; align-items: center; gap: 24px; position: relative;
  border: 1px solid rgba(255,255,255,0.06);
}
.ad-banner::before {
  content: '';
  position: absolute; inset: 0; border-radius: var(--radius);
  background: radial-gradient(ellipse at 85% 50%, rgba(20,184,166,0.15) 0%, transparent 55%);
  pointer-events: none;
}
.ad-label {
  position: absolute; top: -10px; left: 20px;
  font-size: 0.65rem; font-weight: 700; color: var(--white);
  background: #334155; padding: 2px 10px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.ad-logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; position: relative; z-index: 1; }
.ad-logo img { width: 32px; height: 32px; border-radius: 8px; }
.ad-logo-name { font-family: 'Montserrat', sans-serif; font-size: 1.125rem; font-weight: 800; color: var(--white); }
.ad-logo-name em { color: var(--teal-light); font-style: normal; }
.ad-sep { width: 1px; height: 40px; background: rgba(255,255,255,0.1); flex-shrink: 0; }
.ad-text { flex: 1; position: relative; z-index: 1; }
.ad-text strong { display: block; color: var(--white); font-size: 0.9375rem; font-weight: 700; margin-bottom: 3px; }
.ad-text span { font-size: 0.875rem; color: #64748B; }
.ad-cta { flex-shrink: 0; position: relative; z-index: 1; text-align: center; }
.ad-cta .btn { background: var(--teal); color: var(--white); white-space: nowrap; }
.ad-cta .btn:hover { background: var(--teal-light); }
.ad-cta small { display: block; font-size: 0.7rem; color: #475569; margin-top: 6px; }

/* ── Posts section ──────────────────────────────── */
.posts-section { padding: 48px 0; }
.posts-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 32px;
}
.posts-header h2 { font-size: 1.375rem; margin: 0; }
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-pill {
  font-size: 0.8125rem; font-weight: 600; color: var(--gray-500);
  background: var(--white); border: 1.5px solid var(--gray-200);
  padding: 6px 16px; border-radius: 999px; transition: all 0.15s;
  text-decoration: none;
}
.filter-pill:hover, .filter-pill.active {
  background: var(--ink); color: var(--white); border-color: var(--ink);
}

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

/* Post card */
.post-card {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.post-card__cover {
  height: 190px; position: relative; overflow: hidden; flex-shrink: 0;
  display: flex; align-items: flex-start; padding: 16px;
}
.post-cover-emoji {
  position: absolute; right: 16px; bottom: -10px;
  font-size: 6rem; opacity: 0.2; filter: blur(1px);
  user-select: none; line-height: 1;
}
.post-cover-tag { position: relative; z-index: 2; }

.post-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-card__eyebrow {
  font-size: 0.8rem; font-weight: 600; color: var(--gray-400);
  margin-bottom: 10px; display: flex; align-items: center; gap: 10px;
}
.post-card__eyebrow time { color: var(--gray-400); }
.post-card__eyebrow span { color: var(--gray-200); }
.post-card__title {
  font-family: 'Montserrat', sans-serif; font-size: 1rem; font-weight: 700;
  color: var(--ink); line-height: 1.35; margin-bottom: 10px;
}
.post-card__excerpt { font-size: 0.9rem; color: var(--gray-600); line-height: 1.6; flex: 1; margin-bottom: 18px; }
.post-card__read {
  font-size: 0.875rem; font-weight: 700; color: var(--teal-dark);
  display: flex; align-items: center; gap: 6px; margin-top: auto;
}
.post-card__read svg { transition: transform 0.15s; }
.post-card:hover .post-card__read svg { transform: translateX(4px); }

/* ── CTA strip ──────────────────────────────────── */
.cta-strip {
  background: var(--teal-faint); border-top: 1px solid var(--teal-pale);
  border-bottom: 1px solid var(--teal-pale); padding: 26px 0;
}
.cta-strip__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-strip__text strong { display: block; font-weight: 700; color: var(--ink); font-size: 0.9375rem; margin-bottom: 2px; }
.cta-strip__text span { font-size: 0.875rem; color: var(--gray-600); }
.cta-strip .btn--primary { background: var(--ink); white-space: nowrap; flex-shrink: 0; }
.cta-strip .btn--primary:hover { background: var(--teal-dark); }

/* ── Promo block ────────────────────────────────── */
.promo-block { padding: 56px 0; background: var(--gray-50); border-top: 1px solid var(--gray-100); }
.promo-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.promo-label {
  font-size: 0.75rem; font-weight: 700; color: var(--teal-dark);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px;
}
.promo-inner h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 14px; }
.promo-inner > div > p { font-size: 1rem; color: var(--gray-600); margin-bottom: 24px; }
.promo-list { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 10px; }
.promo-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9375rem; color: var(--gray-700); font-weight: 500;
}
.promo-list li::before {
  content: '';
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  background: var(--teal) url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4l3 3 5-6' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat;
}
.promo-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.promo-note { font-size: 0.8125rem; color: var(--gray-400); }

.promo-visual {
  background: var(--ink); border-radius: var(--radius-lg); padding: 36px;
  display: flex; flex-direction: column; gap: 16px;
}
.promo-visual__header { display: flex; align-items: center; gap: 12px; }
.promo-visual__header img { width: 40px; height: 40px; border-radius: 10px; }
.promo-visual__header-name {
  font-family: 'Montserrat', sans-serif; font-size: 1.1rem;
  font-weight: 800; color: var(--white);
}
.promo-visual__header-name em { color: var(--teal-light); font-style: normal; }
.promo-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.promo-stat {
  background: rgba(255,255,255,0.07); border-radius: 12px; padding: 14px 16px;
}
.promo-stat small { display: block; font-size: 0.75rem; color: #64748B; font-weight: 600; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.promo-stat strong { font-size: 1.25rem; color: var(--white); font-weight: 700; }
.promo-stat--accent strong { color: var(--teal-light); }
.promo-price {
  background: rgba(20,184,166,0.1); border: 1px solid rgba(20,184,166,0.2);
  border-radius: 12px; padding: 14px 16px; text-align: center;
}
.promo-price strong { display: block; color: var(--teal-light); font-size: 1.5rem; font-weight: 800; font-family: 'Montserrat', sans-serif; }
.promo-price span { font-size: 0.8125rem; color: #64748B; }

/* ── Tags ───────────────────────────────────────── */
.tag {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.tag--gestao     { background: #EFF6FF; color: #1D4ED8; }
.tag--comissao   { background: var(--teal-faint); color: var(--teal-dark); }
.tag--financeiro { background: #FEF3C7; color: #92400E; }
.tag--agenda     { background: #F3E8FF; color: #7E22CE; }
.tag--sistema    { background: #FFF7ED; color: #9A3412; }
.tag--light      { background: rgba(255,255,255,0.18); color: var(--white); border: 1px solid rgba(255,255,255,0.3); }

/* ══ ARTICLE PAGE ════════════════════════════════════ */
.article-page { padding: 48px 0 88px; }

.breadcrumb { margin-bottom: 32px; }
.breadcrumb ol { display: flex; align-items: center; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; font-size: 0.875rem; }
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li + li::before { content: '/'; margin: 0 8px; color: var(--gray-200); }
.breadcrumb a { color: var(--gray-500); font-weight: 500; }
.breadcrumb a:hover { color: var(--teal-dark); }
.breadcrumb [aria-current="page"] { color: var(--gray-400); }

.article__header { margin-bottom: 48px; }
.article__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; font-size: 0.875rem; color: var(--gray-400); font-weight: 500; }
.article__header h1 { font-size: clamp(1.75rem, 3.8vw, 2.75rem); line-height: 1.15; margin-bottom: 18px; color: var(--ink); }
.article__lead { font-size: 1.175rem; color: var(--gray-600); line-height: 1.65; max-width: 680px; margin: 0; }

/* Prose */
.prose { font-size: 1.0625rem; line-height: 1.78; color: var(--gray-700); }
.prose > * { margin-top: 0; margin-bottom: 0; }
.prose > * + * { margin-top: 1.5em; }
.prose h2 { font-family: 'Montserrat', sans-serif; font-size: clamp(1.25rem, 2.4vw, 1.55rem); font-weight: 800; color: var(--ink); margin-top: 2.75em !important; margin-bottom: 0.6em !important; padding-top: 1.25em; border-top: 2px solid var(--gray-100); }
.prose h2:first-child { border-top: none; margin-top: 0 !important; padding-top: 0; }
.prose h3 { font-family: 'Montserrat', sans-serif; font-size: 1.0625rem; font-weight: 700; color: var(--ink); margin-top: 2em !important; margin-bottom: 0.4em !important; }
.prose p + p { margin-top: 1.25em; }
.prose a { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--teal); }
.prose strong { font-weight: 700; color: var(--ink); }
.prose ul { padding-left: 1.5em; list-style: disc; }
.prose ol { padding-left: 1.5em; list-style: decimal; }
.prose li + li { margin-top: 0.5em; }
.table-wrap { overflow-x: auto; margin: 2em 0; border-radius: 12px; border: 1px solid var(--gray-200); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; margin: 0; }
.table-wrap th { background: var(--gray-50); font-weight: 700; color: var(--ink); text-align: left; padding: 11px 16px; font-size: 0.8125rem; border-bottom: 1px solid var(--gray-200); }
.table-wrap td { padding: 11px 16px; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); }
.table-wrap tr:last-child td { border-bottom: none; }
.table-wrap tr:nth-child(even) td { background: var(--gray-50); }
.callout { background: var(--teal-faint); border-left: 4px solid var(--teal); border-radius: 0 12px 12px 0; padding: 18px 24px; margin: 2em 0; }
.callout strong { display: block; color: var(--teal-dark); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.callout p { color: var(--gray-700); font-size: 1rem; margin: 0 !important; line-height: 1.6; }
.formula { background: var(--ink); color: var(--white); border-radius: var(--radius-sm); padding: 20px 28px; margin: 2em 0; font-family: 'Montserrat', sans-serif; font-size: 1.0625rem; font-weight: 700; text-align: center; }
.formula small { display: block; font-size: 0.8125rem; font-weight: 500; color: #94A3B8; margin-top: 6px; font-family: 'Inter', sans-serif; }
.article-cta { background: linear-gradient(135deg, var(--ink) 0%, #1e2d45 100%); border-radius: var(--radius-lg); padding: 40px 44px; margin: 3.5em 0; color: var(--white); }
.article-cta h3 { font-size: 1.375rem; color: var(--white); margin-bottom: 10px; }
.article-cta p { color: #94A3B8; font-size: 1rem; margin-bottom: 24px !important; }
.article-cta .btn--primary { background: var(--teal); }
.article-cta .btn--primary:hover { background: var(--teal-light); }
.article-cta__note { font-size: 0.8125rem !important; color: #64748B !important; margin-top: 12px !important; margin-bottom: 0 !important; }
.article-faq { margin-top: 3.5em; }
.article-faq > h2 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); margin-bottom: 1.25em; }
.related { margin-top: 3.5em; padding-top: 2em; border-top: 2px solid var(--gray-100); }
.related > h2 { font-size: 1.375rem; margin-bottom: 1.25em; }
.related__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.related-card { background: var(--gray-50); border: 1px solid var(--gray-100); border-radius: var(--radius-sm); padding: 22px; text-decoration: none; color: inherit; transition: all 0.2s var(--ease); }
.related-card:hover { background: var(--white); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.related-card .tag { margin-bottom: 10px; }
.related-card h3 { font-size: 0.9375rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; line-height: 1.4; }
.related-card p { font-size: 0.875rem; color: var(--gray-500); margin: 0; }

/* ══ RESPONSIVE ══════════════════════════════════════ */
@media (max-width: 900px) {
  .masthead-inner { flex-direction: column; }
  .masthead-signup { width: 100%; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-card__cover { min-height: 220px; }
  .featured-card__body { padding: 24px; }
  .promo-inner { grid-template-columns: 1fr; gap: 36px; }
  .ad-banner { flex-wrap: wrap; gap: 16px; }
  .ad-sep { display: none; }
}
@media (max-width: 768px) {
  .posts-grid { grid-template-columns: 1fr; }
  .related__grid { grid-template-columns: 1fr; }
  .article-cta { padding: 28px 24px; }
  .cta-strip__inner { flex-direction: column; align-items: flex-start; }
  .posts-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .article__header h1 { font-size: 1.625rem; }
  .article__lead { font-size: 1.0625rem; }
  .formula { padding: 16px 20px; font-size: 0.9375rem; }
  .ad-banner { padding: 20px 18px; }
  .blog-masthead { padding: 36px 0 32px; }
}
