/* ============================================
   Avraa Smart — páginas institucionais
   (funcionalidades, preços, FAQ, blog)
   Estende css/styles.css. Páginas geradas por tools/gerar-paginas.mjs.
============================================ */

/* ---- navbar: no celular a home esconde a navbar inteira; aqui fica a
   versão compacta (logo + CTA), senão a página não tem saída nenhuma ---- */
.nav-links a[aria-current="page"] { color: var(--text-on-dark); }
@media (max-width: 900px) {
  nav.site-nav { display: flex; padding: 12px 20px; }
  nav.site-nav .nav-links { display: none; }
  nav.site-nav .nav-logo-img { height: 32px; }
  nav.site-nav .nav-cta { padding: 8px 16px; font-size: 13px; }
}

/* ---- hero ---- */
.page-hero {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 70% 30%, #0a1f55 0%, #040D1F 65%);
  padding: 148px 64px 88px;
}
.page-hero .hero-grid { opacity: .05; }
.page-hero-inner { position: relative; z-index: 2; max-width: 860px; animation: fadeInUp .7s ease both; }
.page-hero-inner--center { margin: 0 auto; text-align: center; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 800; line-height: 1.12; letter-spacing: -0.02em;
  color: var(--text-on-dark);
  margin: 0 0 20px;
}
.page-hero h1 .accent { color: var(--green); }
.page-hero-lead { font-size: 18px; line-height: 1.7; color: var(--text-muted); max-width: 680px; }
.page-hero-inner--center .page-hero-lead { margin: 0 auto; }
.page-hero .hero-buttons { margin: 32px 0 0; }
.page-hero-inner--center .hero-buttons { justify-content: center; }
.page-hero .hero-overline { margin-bottom: 16px; }

.breadcrumb { margin-bottom: 22px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--text-subtle); }
.page-hero-inner--center .breadcrumb ol { justify-content: center; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--border); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--green); }

/* ---- blocos de conteúdo ---- */
.page-section { padding: 88px 0; }
.page-section-head { max-width: 760px; margin: 0 auto 8px; text-align: center; }
.page-section-head .section-desc,
.page-section-head .section-desc-dark { margin: 0 auto; max-width: 640px; }
.page-section .features-grid { margin-top: 48px; }

.steps-list {
  list-style: none; counter-reset: passo;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px; margin: 48px auto 0; max-width: 1100px;
}
.steps-list li {
  counter-increment: passo;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,180,255,0.18);
  border-radius: var(--radius-md);
  padding: 22px 20px;
}
.steps-list li::before {
  content: counter(passo, decimal-leading-zero);
  display: block; margin-bottom: 10px;
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  color: var(--green); letter-spacing: .08em;
}
.steps-list h3 { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--text-on-dark); margin-bottom: 6px; }
.steps-list p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

.note-box {
  max-width: 760px; margin: 40px auto 0;
  padding: 16px 20px;
  background: rgba(0,200,150,0.08); border-left: 3px solid var(--green); border-radius: 6px;
  font-size: 15px; color: var(--text-on-light); line-height: 1.6;
}
.section-dark-content .note-box { color: var(--text-on-dark); }

/* ---- cartões de links internos ---- */
.link-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px; margin-top: 44px;
}
.link-card {
  display: flex; flex-direction: column; gap: 8px;
  background: #fff; border: 1.5px solid #e8ecf4; border-radius: var(--radius-lg);
  padding: 24px; text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.link-card:hover { border-color: rgba(0,200,150,0.4); box-shadow: 0 8px 28px rgba(0,200,150,0.08); transform: translateY(-3px); }
.link-card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--text-on-light); }
.link-card p { font-size: 14px; color: var(--text-body); line-height: 1.6; }
.link-card .link-card-more { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 600; color: var(--green-dark); }
.link-card time { font-size: 12.5px; color: var(--text-subtle); }

/* ---- preços ---- */
.pricing-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px; max-width: 920px; margin: 48px auto 0;
}
.price-card {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff; border: 1.5px solid #e8ecf4; border-radius: var(--radius-xl);
  padding: 32px 28px;
}
.price-card--dark { background: var(--bg-primary); border-color: var(--border); color: var(--text-on-dark); }
.price-badge {
  position: absolute; top: -13px; left: 28px;
  padding: 5px 12px; border-radius: var(--radius-pill);
  background: var(--green); color: #04121F;
  font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: .03em;
}
.price-card h2 { font-family: var(--font-display); font-size: 22px; font-weight: 800; margin-bottom: 6px; color: inherit; }
.price-card .price-audience { font-size: 14px; color: var(--text-body); margin-bottom: 22px; }
.price-card--dark .price-audience { color: var(--text-muted); }
.price-amount { font-family: var(--font-display); font-size: 36px; font-weight: 800; line-height: 1.1; }
.price-amount small { font-size: 15px; font-weight: 600; color: var(--text-subtle); }
.price-annual { margin-top: 8px; font-size: 14px; color: var(--text-body); }
.price-card--dark .price-annual { color: var(--text-muted); }
.price-annual strong { color: var(--green-dark); }
.price-card--dark .price-annual strong { color: var(--green); }
.price-features { list-style: none; margin: 24px 0 28px; display: flex; flex-direction: column; gap: 10px; }
.price-features li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.5; }
.price-features svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; color: var(--green); }
.price-card .btn-primary, .price-card .btn-outline { margin-top: auto; justify-content: center; }
.price-card .btn-outline { color: var(--text-on-light); border-color: #cbd5e1; }
.price-card--dark .btn-outline { color: var(--text-on-dark); border-color: var(--border); }
.price-footnote { max-width: 760px; margin: 28px auto 0; text-align: center; font-size: 13.5px; color: var(--text-body); }

/* ---- blog / texto longo ---- */
.prose-wrap { background: var(--bg-light); color: var(--text-on-light); padding: 72px 24px 88px; }
.prose { max-width: 740px; margin: 0 auto; font-size: 17px; line-height: 1.8; color: var(--text-body); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--font-display); font-size: 26px; font-weight: 800; line-height: 1.25; color: var(--text-on-light); margin-top: 2em; }
.prose h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--text-on-light); margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose strong { color: var(--text-on-light); }
.prose a { color: var(--blue-dark); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
.prose th { font-family: var(--font-display); font-size: 14px; color: var(--text-on-light); background: var(--bg-alt); }
.table-scroll { overflow-x: auto; }
.post-meta { margin-top: 18px; font-size: 14px; color: var(--text-subtle); }
.post-cta {
  max-width: 740px; margin: 56px auto 0;
  padding: 28px; border-radius: var(--radius-lg);
  background: var(--bg-primary); color: var(--text-on-dark);
}
.post-cta h2 { font-family: var(--font-display); font-size: 21px; font-weight: 800; margin-bottom: 8px; }
.post-cta p { font-size: 15px; color: var(--text-muted); margin-bottom: 18px; }
.post-disclaimer { max-width: 740px; margin: 32px auto 0; font-size: 13.5px; color: var(--text-subtle); }

@media (max-width: 900px) {
  .page-hero { padding: 112px 24px 64px; }
  .page-hero-lead { font-size: 16.5px; }
  .page-hero .hero-buttons { flex-direction: column; align-items: stretch; }
  .page-hero .hero-buttons a { justify-content: center; }
  .page-section { padding: 64px 0; }
  .pricing-grid { grid-template-columns: 1fr; }
  .prose { font-size: 16.5px; }
  .prose h2 { font-size: 22px; }
}
.price-footnote a { color: var(--green-dark); font-weight: 600; }

/* ===== RODAPÉ DO SITE — cópia temporária =====
   Estas regras existem (iguais) em `css/styles.css`, no trabalho de reforma do
   site que ainda NÃO foi publicado. As páginas legais precisam delas para o
   rodapé novo renderizar, mas `styles.css` é carregado pela home no ar, que
   ainda usa o rodapé antigo — commitar aquele arquivo mudaria o site atual.
   Então a cópia mora aqui, que só é carregado pelas páginas geradas.
   AO PUBLICAR a reforma: apague este bloco, pois `styles.css` passa a tê-lo. */

/* ===== RODAPÉ DO SITE (links internos + redes sociais) =====
   Gerado por tools/gerar-paginas.mjs e reaplicado em todas as páginas: o
   rodapé é o único bloco de navegação que aparece no celular (a navbar some
   abaixo de 900px), então é por ele que o Google e o visitante mobile chegam
   às páginas de funcionalidade, preços, FAQ e blog. */
footer.site-footer {
  display: block;
  padding: 56px 64px 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.site-footer .footer-logo-img { margin: 0; height: 46px; }
.site-footer .footer-tagline { text-align: left; font-size: 12.5px; margin-top: 10px; color: var(--text-muted); }
.footer-col h2 {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-on-dark);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 14px; color: var(--text-muted); text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--green); }
.site-footer .footer-contact { flex-direction: column; align-items: flex-start; gap: 10px; }
.site-footer .footer-contact-item { font-size: 14px; color: var(--text-muted); }
.site-footer .footer-contact-item a { color: inherit; text-decoration: none; }
.site-footer .footer-contact-item a:hover { color: var(--green); }
.footer-social { display: flex; gap: 10px; margin-top: 20px; list-style: none; }
.footer-social a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color .2s, border-color .2s, background .2s;
}
.footer-social a:hover { color: var(--green); border-color: rgba(0,200,150,0.5); background: rgba(0,200,150,0.06); }
.footer-social svg { width: 18px; height: 18px; display: block; }
.footer-bottom {
  max-width: 1200px; margin: 40px auto 0; padding-top: 20px;
  border-top: 1px solid #0d1f3c;
  font-size: 12.5px; color: var(--text-subtle);
  display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between;
}
/* Privacidade e Termos: exigência legal, então ficam em toda página, no rodapé. */
.footer-legal a { color: var(--text-subtle); }
.footer-legal a:hover { color: #fff; }
@media (max-width: 900px) {
  footer.site-footer { padding: 44px 24px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* link "saiba mais" das seções da home para as páginas de funcionalidade */
.section-more {
  display: inline-block; margin-top: 24px;
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  color: var(--green-dark); text-decoration: none;
  border-bottom: 1.5px solid rgba(0,168,125,0.35);
  transition: color .2s, border-color .2s;
}
.section-more:hover { color: var(--green); border-color: var(--green); }
.section-more--dark { color: var(--green); border-color: rgba(0,200,150,0.4); }

/* o seletor `nav` lá em cima é a navbar fixa do topo; os <nav> do rodapé e o
   breadcrumb são navegação comum e não podem herdar posição/fundo/ocultação */
footer nav, nav.breadcrumb {
  position: static; display: block; z-index: auto;
  padding: 0; background: none; border: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
@media (max-width: 900px) {
  footer nav, nav.breadcrumb { display: block; }
}
