/* ============================================================
   Ágil Fiscal — Estilos de landing pages, hubs e blog
   Usa os tokens definidos em main.css. Carregar SEMPRE depois do main.css.
   ============================================================ */

/* Breadcrumb */
.breadcrumb-nav {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--ink-muted);
}
.breadcrumb-nav a { color: var(--ink-muted); transition: color 0.2s; }
.breadcrumb-nav a:hover { color: var(--accent); }
.breadcrumb-nav .sep { color: var(--accent); opacity: 0.6; margin: 0 0.5rem; }

.article-meta {
    display: flex; flex-wrap: wrap; gap: 1.5rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-muted);
    border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
    padding: 1rem 0; margin-top: 2rem;
}

/* Coluna de leitura */
.article-wrap { max-width: 840px; margin: 0 auto; }
.article-body { font-size: 1.06rem; color: var(--ink-soft); line-height: 1.78; }
.article-body > h2 {
    font-family: 'Newsreader', serif; font-variation-settings: "opsz" 72; font-weight: 400;
    font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.1; letter-spacing: -0.02em;
    color: var(--ink); margin: 3.25rem 0 1.1rem; scroll-margin-top: 6rem;
}
.article-body h2 em, .article-body h3 em { font-style: italic; color: var(--accent); font-weight: 500; }
.article-body h3 {
    font-family: 'Newsreader', serif; font-variation-settings: "opsz" 36; font-weight: 500;
    font-size: 1.4rem; color: var(--ink); margin: 2.2rem 0 0.7rem;
}
.article-body h4 { font-size: 1.05rem; color: var(--ink); margin: 1.5rem 0 0.5rem; font-weight: 600; }
.article-body p { margin-bottom: 1.15rem; }
.article-body ul, .article-body ol { margin: 0 0 1.3rem 1.35rem; }
.article-body li { margin-bottom: 0.55rem; }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body a { color: var(--accent); text-decoration: none; }
.article-body a:hover { text-decoration: underline; }
.article-lede {
    font-family: 'Newsreader', serif; font-weight: 400;
    font-size: 1.4rem; line-height: 1.5; color: var(--ink); margin-bottom: 1.5rem;
}

/* Índice / TOC */
.toc { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 1.75rem 2rem; margin: 2.5rem 0; }
.toc h4 { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-muted); margin-bottom: 1.1rem; }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2.5rem; color: var(--ink-soft); }
.toc li { margin-bottom: 0.55rem; }
.toc a { color: var(--ink-soft); }
.toc a:hover { color: var(--accent); }
@media (max-width: 620px) { .toc ol { columns: 1; } }

/* Callouts */
.callout { border-radius: var(--radius); padding: 1.5rem 1.6rem; margin: 2rem 0; border: 1px solid var(--hairline); background: var(--surface); }
.callout--accent { border-left: 3px solid var(--accent); }
.callout--warn   { border-left: 3px solid var(--warning); }
.callout--ok     { border-left: 3px solid var(--success); }
.callout h4 { margin-bottom: 0.45rem; color: var(--ink); }
.callout p:last-child { margin-bottom: 0; }

/* Pull quote */
.pullquote { font-family: 'Newsreader', serif; font-style: italic; font-size: clamp(1.35rem, 2.6vw, 1.7rem); line-height: 1.4; color: var(--ink); border-left: 3px solid var(--accent); padding-left: 1.4rem; margin: 2.5rem 0; }
.pullquote em { color: var(--accent); font-style: italic; }

/* Cards de dor */
.pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 2rem 0; }
.pain-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 1.4rem; transition: border-color 0.3s, transform 0.3s; }
.pain-card:hover { border-color: rgba(56,228,222,0.3); transform: translateY(-3px); }
.pain-card .ico { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 0.85rem; background: rgba(56,228,222,0.1); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.pain-card h4 { margin-bottom: 0.35rem; color: var(--ink); font-size: 1rem; }
.pain-card p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

/* Tabelas */
.tbl-wrap { overflow-x: auto; margin: 1.75rem 0; border: 1px solid var(--hairline); border-radius: var(--radius); }
.tbl { width: 100%; border-collapse: collapse; font-size: 0.94rem; min-width: 480px; }
.tbl th, .tbl td { padding: 0.85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--hairline); }
.tbl thead th { background: var(--surface-strong); color: var(--ink); font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: var(--surface); }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tfoot td { background: rgba(56,228,222,0.08); color: var(--accent); font-weight: 700; font-size: 1.02rem; border-bottom: none; }
.tbl .sim { color: var(--success); font-weight: 600; }
.tbl .nao { color: var(--error); font-weight: 600; }

/* Benefícios (chips) */
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.65rem; margin: 1.75rem 0; }
.benefit { display: flex; gap: 0.65rem; align-items: flex-start; padding: 0.8rem 1rem; background: var(--surface); border: 1px solid var(--hairline); border-radius: 10px; font-size: 0.92rem; color: var(--ink-soft); }
.benefit svg { flex-shrink: 0; color: var(--accent); margin-top: 0.15rem; }

/* Timeline */
.timeline { position: relative; padding-left: 2rem; margin: 2rem 0; }
.timeline::before { content: ''; position: absolute; left: 0.5rem; top: 0.4rem; bottom: 0.4rem; width: 1px; background: var(--hairline); }
.tl-step { position: relative; margin-bottom: 1.6rem; }
.tl-step::before { content: ''; position: absolute; left: -1.62rem; top: 0.3rem; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(56,228,222,0.15); }
.tl-step h4 { margin-bottom: 0.25rem; color: var(--ink); }
.tl-step p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* SEO local (chips) */
.local-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 0.55rem; margin: 1.75rem 0; }
.local-chip { padding: 0.7rem 0.85rem; background: var(--surface); border: 1px solid var(--hairline); border-radius: 10px; font-size: 0.85rem; color: var(--ink); transition: border-color 0.2s; }
.local-chip:hover { border-color: rgba(56,228,222,0.3); }
.local-chip small { display: block; color: var(--ink-muted); font-family: 'IBM Plex Mono', monospace; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.25rem; }

/* FAQ acordeão */
.faq { max-width: 840px; margin: 1.75rem auto 0; }
.faq details { border: 1px solid var(--hairline); border-radius: var(--radius); margin-bottom: 0.7rem; background: var(--surface); overflow: hidden; transition: border-color 0.2s; }
.faq details[open] { border-color: rgba(56,228,222,0.3); }
.faq summary { cursor: pointer; padding: 1.15rem 1.35rem; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; font-size: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 1.4rem; line-height: 1; flex-shrink: 0; }
.faq details[open] summary::after { content: '–'; }
.faq details[open] summary { color: var(--accent); }
.faq .faq-a { padding: 0 1.35rem 1.25rem; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.65; }
.faq .faq-a a { color: var(--accent); }

/* Bloco "leia também" */
.related { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--hairline); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 2rem 0; }
.related .txt { flex: 1 1 260px; color: var(--ink-soft); font-size: 0.95rem; }
.related .txt strong { color: var(--ink); }

/* Hub (grade de links: sistemas / cidades / posts) */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.hub-card { display: flex; flex-direction: column; padding: 1.6rem; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); transition: transform 0.3s, border-color 0.3s, background 0.3s; text-decoration: none; }
.hub-card:hover { transform: translateY(-4px); border-color: rgba(56,228,222,0.3); background: var(--surface-strong); text-decoration: none; }
.hub-card .kicker { font-family: 'IBM Plex Mono', monospace; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 0.7rem; }
.hub-card h3 { font-family: 'Newsreader', serif; font-variation-settings: "opsz" 36; font-weight: 500; font-size: 1.25rem; color: var(--ink); margin-bottom: 0.4rem; }
.hub-card p { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.5; margin: 0; flex: 1; }
.hub-card .go { margin-top: 1rem; color: var(--accent); font-weight: 600; font-size: 0.88rem; display: inline-flex; align-items: center; gap: 0.4rem; }

/* Chips simples de cidade (listagem compacta) */
.city-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.5rem; margin-top: 1.25rem; }
.city-links a { padding: 0.7rem 0.9rem; background: var(--surface); border: 1px solid var(--hairline); border-radius: 10px; color: var(--ink); font-size: 0.9rem; transition: border-color 0.2s, color 0.2s; text-decoration: none; }
.city-links a:hover { border-color: rgba(56,228,222,0.35); color: var(--accent); }

/* Lista de posts do blog */
.post-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.post-item { padding: 1.5rem 1.6rem; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); transition: border-color 0.2s; }
.post-item:hover { border-color: rgba(56,228,222,0.3); }
.post-item .kicker { font-family: 'IBM Plex Mono', monospace; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-muted); margin-bottom: 0.5rem; }
.post-item h3 { font-family: 'Newsreader', serif; font-weight: 500; font-size: 1.35rem; margin-bottom: 0.4rem; }
.post-item h3 a { color: var(--ink); }
.post-item h3 a:hover { color: var(--accent); text-decoration: none; }
.post-item p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* WhatsApp flutuante */
.wpp-float { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(180deg, var(--brand-light), var(--brand)); border: 1px solid var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px -8px rgba(56,228,222,0.5); transition: transform 0.2s; }
.wpp-float:hover { transform: scale(1.08); }
