/* ============================================================
   PUSHFY — PÁGINAS INTERNAS (/solucoes/, /sms-marketing/, /faq/)
   Herda tokens.css + base.css + components.css (nav, footer, btn).
   Aqui vive só o que é específico de página de conteúdo:
   hero compacto, breadcrumbs, índice fixo, prosa, tabelas,
   cards, passos, acordeão de FAQ e faixas de CTA.
   ============================================================ */

/* ---------- Fundo: aurora estática (substitui a cena 3D) ----------
   Mesma paleta da home, custo zero de JS — essencial para o CWV
   das páginas de conteúdo, que existem para rankear. */
.page-aura {
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 620px at 82% -8%, rgba(73, 121, 255, 0.20), transparent 62%),
    radial-gradient(760px 520px at 8% 12%, rgba(139, 123, 255, 0.14), transparent 60%),
    radial-gradient(680px 480px at 50% 108%, rgba(73, 121, 255, 0.10), transparent 62%);
}

/* ---------- Skip link (acessibilidade) ---------- */
.skip-link {
  position: absolute; left: 50%; top: 0;
  transform: translate(-50%, -140%);
  z-index: 100;
  padding: 0.7rem 1.2rem;
  background: var(--accent); color: #fff;
  border-radius: 0 0 12px 12px;
  font-size: var(--fs-small); font-weight: 600;
  transition: transform 0.25s var(--ease-out);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- Hero de página ---------- */
.page-hero {
  padding-block: clamp(7rem, 12vw, 10rem) clamp(2.6rem, 5vw, 4rem);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.1rem + 3.2vw, 3.5rem);
  font-weight: 600; line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1.1rem;
  max-width: 20ch;
}
.page-hero .lead { max-width: 54ch; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.7rem; }

/* ---------- Breadcrumbs ---------- */
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem;
  font-size: var(--fs-tiny);
  color: var(--ink-dim);
  margin-bottom: 1.4rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.crumbs a { color: var(--ink-mute); transition: color 0.2s; }
.crumbs a:hover { color: var(--accent-2); }
.crumbs [aria-current] { color: var(--ink-soft); }
.crumbs .sep { opacity: 0.45; }

/* ---------- Barra de fatos do hero ---------- */
.facts {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 2.6rem;
  background: var(--stroke);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  overflow: hidden;
}
.facts div { background: rgba(7, 11, 22, 0.82); padding: 1.15rem 1.3rem; }
.facts b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem; line-height: 1.2;
  color: var(--ink);
}
.facts span { font-size: var(--fs-tiny); color: var(--ink-mute); }

/* ---------- Layout com índice lateral ---------- */
.page-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding-block: clamp(2rem, 4vw, 3rem) var(--section-pad);
}
.toc { position: sticky; top: 92px; }
.toc-title {
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-dim);
  margin-bottom: 0.9rem;
}
.toc ol { list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: 0.15rem; }
.toc a {
  display: block;
  padding: 0.42rem 0.7rem;
  font-size: var(--fs-small);
  line-height: 1.35;
  color: var(--ink-mute);
  border-left: 2px solid var(--stroke);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.toc a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.03); }
.toc a.is-active {
  color: var(--ink);
  border-left-color: var(--accent);
  background: rgba(73, 121, 255, 0.09);
}
@media (max-width: 1024px) {
  .page-layout { grid-template-columns: 1fr; }
  .toc { position: static; margin-bottom: 2.4rem; }
  .toc ol { flex-direction: row; flex-wrap: wrap; gap: 0.4rem; }
  .toc a { border-left: 0; border: 1px solid var(--stroke); border-radius: 999px; padding: 0.4rem 0.85rem; }
  .toc a.is-active { border-color: var(--accent); }
}

/* ---------- Prosa ---------- */
.prose { max-width: 74ch; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.1rem);
  font-weight: 600; line-height: 1.18;
  letter-spacing: -0.02em;
  margin-top: 3.6rem;
  scroll-margin-top: 96px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  margin-top: 2.2rem;
  scroll-margin-top: 96px;
}
.prose p { color: var(--ink-soft); }
.prose a:not(.btn) {
  color: #8fb0ff;
  text-decoration: underline;
  text-decoration-color: rgba(143, 176, 255, 0.35);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.prose a:not(.btn):hover { color: #b9ccff; text-decoration-color: #b9ccff; }
.prose ul, .prose ol { display: flex; flex-direction: column; gap: 0.6rem; padding-left: 1.35rem; color: var(--ink-soft); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--accent); }
.prose li > strong:first-child { color: var(--ink); }

/* ---------- Destaques ---------- */
.callout {
  border: 1px solid var(--stroke);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(73, 121, 255, 0.06);
  padding: 1.2rem 1.4rem;
  font-size: var(--fs-small);
  color: var(--ink-soft);
}
.callout b { display: block; margin-bottom: 0.3rem; color: var(--ink); }
.callout.is-warn { border-left-color: var(--warn); background: rgba(255, 176, 32, 0.07); }
.callout.is-ok { border-left-color: var(--accent-4); background: rgba(73, 121, 255, 0.07); }

.keytake {
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--glass);
  padding: 1.4rem 1.5rem;
}
.keytake b {
  display: block; margin-bottom: 0.7rem;
  font-family: var(--font-mono); font-size: var(--fs-tiny);
  text-transform: uppercase; letter-spacing: 0.13em; color: var(--accent-2);
}
.keytake ul { margin: 0; }

/* ---------- Tabelas ---------- */
.tbl-wrap {
  overflow-x: auto;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: rgba(7, 11, 22, 0.6);
  -webkit-overflow-scrolling: touch;
}
.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-small); min-width: 560px; }
.tbl caption { text-align: left; padding: 1rem 1.2rem 0; color: var(--ink-mute); font-size: var(--fs-tiny); }
.tbl th, .tbl td { padding: 0.85rem 1.1rem; text-align: left; vertical-align: top; }
.tbl thead th {
  font-family: var(--font-mono); font-size: var(--fs-tiny);
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-mute); font-weight: 500;
  border-bottom: 1px solid var(--stroke-strong);
  white-space: nowrap;
}
.tbl tbody tr + tr td { border-top: 1px solid var(--stroke); }
.tbl tbody th { color: var(--ink); font-weight: 600; border-top: 1px solid var(--stroke); }
.tbl td { color: var(--ink-soft); }
.tbl .yes { color: var(--accent-4); font-weight: 600; }
.tbl .no { color: var(--ink-dim); }

/* ---------- Cards ---------- */
.cardgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 1.1rem;
}
.card {
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--glass);
  padding: 1.5rem;
  transition: border-color 0.3s var(--ease-soft), transform 0.3s var(--ease-out);
}
.card:hover { border-color: var(--stroke-strong); transform: translateY(-3px); }
.card-ico {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  font-size: 1.15rem;
  background: rgba(73, 121, 255, 0.14);
  border: 1px solid rgba(73, 121, 255, 0.28);
  margin-bottom: 1rem;
}
.card h3 { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; margin-bottom: 0.5rem; }
.card p { font-size: var(--fs-small); color: var(--ink-mute); }
.card ul {
  list-style: none; padding: 0;
  margin-top: 0.9rem;
  display: flex; flex-direction: column; gap: 0.45rem;
  font-size: var(--fs-small); color: var(--ink-soft);
}
.card ul li { padding-left: 1.25rem; position: relative; }
.card ul li::before {
  content: "→"; position: absolute; left: 0;
  color: var(--accent); font-size: 0.85em; top: 0.15em;
}
.card .card-more {
  display: inline-block; margin-top: 1rem;
  font-size: var(--fs-small); font-weight: 600; color: var(--accent-2);
}
.card .card-more:hover { text-decoration: underline; }

/* ---------- Passos numerados ---------- */
.steps { counter-reset: step; display: flex; flex-direction: column; gap: 1rem; list-style: none; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.2rem 1.4rem 1.2rem 3.6rem;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: rgba(7, 11, 22, 0.55);
  color: var(--ink-soft);
  font-size: var(--fs-small);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 1.3rem; top: 1.2rem;
  font-family: var(--font-mono); font-size: var(--fs-tiny);
  color: var(--accent-2);
}
.steps li b { display: block; color: var(--ink); margin-bottom: 0.25rem; font-size: var(--fs-body); }

/* ---------- Navegação por categoria (pílulas) ---------- */
.pill-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.6rem; }
.pill-nav a {
  padding: 0.5rem 1rem;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: var(--glass);
  font-size: var(--fs-small);
  color: var(--ink-soft);
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.pill-nav a:hover { color: var(--ink); border-color: var(--accent); background: rgba(73, 121, 255, 0.1); }

/* FAQ (details): componente movido para components.css — usado
   tanto pelas páginas internas quanto pela home. */

/* ---------- Bloco de links relacionados ---------- */
.related {
  display: grid; gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.related a {
  display: block;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(7, 11, 22, 0.55);
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
}
.related a:hover { border-color: var(--accent); transform: translateY(-2px); }
.related b { display: block; font-size: var(--fs-small); line-height: 1.4; color: var(--ink); }
.related span { font-size: var(--fs-tiny); color: var(--ink-dim); font-family: var(--font-mono); }

/* ---------- Faixa de CTA ---------- */
.cta-band {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(700px 320px at 15% 0%, rgba(73, 121, 255, 0.18), transparent 65%),
    var(--glass-strong);
  padding: clamp(2rem, 5vw, 3.4rem);
  text-align: center;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem);
  font-weight: 600; line-height: 1.15; letter-spacing: -0.02em;
  margin-bottom: 0.9rem;
}
.cta-band p { color: var(--ink-soft); max-width: 52ch; margin-inline: auto; }
.cta-band .page-hero-actions { justify-content: center; }

/* ---------- Autoria / atualização (E-E-A-T) ---------- */
.byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  font-size: var(--fs-tiny);
  color: var(--ink-dim);
  font-family: var(--font-mono);
}
.byline b { color: var(--ink-soft); font-weight: 500; }

/* ---------- Glossário ---------- */
.glossary { display: grid; gap: 0; border: 1px solid var(--stroke); border-radius: var(--radius); overflow: hidden; }
.glossary div { padding: 1rem 1.3rem; background: rgba(7, 11, 22, 0.55); }
.glossary div + div { border-top: 1px solid var(--stroke); }
.glossary dt { font-weight: 600; color: var(--ink); font-size: var(--fs-small); margin-bottom: 0.25rem; }
.glossary dd { color: var(--ink-mute); font-size: var(--fs-small); }

/* ---------- Utilidades ---------- */
.mt-lg { margin-top: 3rem; }
.section-tight { padding-block: clamp(3rem, 6vw, 5rem); }
