/* Estilo compartilhado pelas paginas de nicho (rotas tipo
   sistema-para-eletricistas) e pelo hub de ramos - mesma paleta e
   componentes do index.html (tema Aurora), extraido aqui porque sao 30+
   paginas praticamente identicas nesses elementos; duplicar esse bloco de
   CSS em cada arquivo seria inviavel de manter. O index.html continua com
   seu proprio estilo inline (nao usa este arquivo) pra nao arriscar nada
   na pagina mais importante do site. */
:root {
  --navy: #12312B;
  --green: #0F9B8E;
  --green-dark: #0C7A70;
  --text: #1f2937;
  --muted: #5B7069;
  --border: #DCE7E2;
  --bg-soft: #F7FBF9;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}
a { color: var(--green); }
img { max-width: 100%; }

.topbar-wrap { background: #fff; border-bottom: 1px solid var(--border); }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1080px;
  margin: 0 auto;
}
.topbar .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--navy); text-decoration: none; }
.topbar .brand img { width: 30px; height: 30px; border-radius: 8px; }
.topbar a.entrar {
  background: var(--green);
  color: #fff;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}

.hero {
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
  padding: 48px 24px 40px;
  text-align: center;
}
.hero-inner { max-width: 720px; margin: 0 auto; }
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #E6F5F2;
  color: var(--green-dark);
  border: 1px solid #BFE4DE;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--navy);
  font-weight: 800;
}
.hero h1 .accent { color: var(--green); }
.hero p.lead { font-size: 16.5px; color: var(--muted); margin: 0 auto 26px; max-width: 560px; }
.eyebrow {
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--green-dark);
  font-size: 15px;
  margin-bottom: 12px;
}
.hero .subtext { font-size: 14.5px; color: var(--muted); margin: 0 0 18px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 16px; }
.cta-primary {
  display: inline-block;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 8px 20px rgba(15,155,142,0.3);
}
.cta-secondary {
  background: #fff;
  color: var(--navy);
  text-decoration: none;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid var(--border);
}
.microcopy { font-size: 13px; color: var(--muted); }

.checklist {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-width: 300px;
  margin: 4px auto 0;
  text-align: left;
}
.checklist .item { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text); }
.checklist .item .check { color: var(--green); font-weight: 800; font-size: 15px; }

main { max-width: 900px; margin: 0 auto; padding: 0 24px; }
h2.section-title { color: var(--navy); font-size: 24px; text-align: center; margin: 56px 0 8px; letter-spacing: -0.01em; }
.sub { text-align: center; color: var(--muted); font-size: 15px; margin-bottom: 32px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* Serviços do catálogo, como chips */
.servicos-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 16px; }
.servicos-chips .chip {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
}
.servicos-chips .chip .check { color: var(--green); font-weight: 700; margin-right: 6px; }
.video-ramo { max-width: 340px; margin: 0 auto 16px; border-radius: 24px; overflow: hidden; box-shadow: 0 20px 50px rgba(11, 42, 91, .18); background: var(--navy); }
.video-ramo video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; }
.servicos-nota { text-align: center; font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }

/* CTA leve entre seções — reforça a chamada sem repetir o botão grande
   toda hora. */
.cta-mid { text-align: center; margin: 28px 0 8px; }
.cta-mid a {
  color: var(--green-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 14.5px;
  border-bottom: 1.5px solid var(--green);
  padding-bottom: 2px;
}

/* Bloco "voce esta no cliente..." - fala direto com a rotina de quem le */
.relatable {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 26px;
  margin: 40px 0;
  font-size: 15.5px;
  color: var(--text);
  line-height: 1.7;
}
.relatable p { margin: 0 0 10px; }
.relatable p:last-child { margin-bottom: 0; }
.relatable .pergunta { font-weight: 700; color: var(--navy); font-size: 17px; }
.relatable .nao { color: var(--muted); }

/* Galeria de telas reais (mesmos mockups do index.html) */
.demo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  margin-bottom: 12px;
}
.demo-item { text-align: center; }
.phone-frame {
  width: 160px;
  border-radius: 24px;
  background: var(--navy);
  padding: 8px;
  margin: 0 auto 12px;
  box-shadow: 0 20px 40px -16px rgba(18,49,43,0.35);
}
.phone-frame .screen { border-radius: 18px; overflow: hidden; background: #fff; display: block; }
.phone-frame img, .papel-frame img { display: block; width: 100%; height: auto; }
.papel-frame {
  width: 150px;
  margin: 0 auto 12px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 20px 36px -14px rgba(18,49,43,0.3);
  overflow: hidden;
  transform: rotate(-1.4deg);
}
.demo-item p { font-size: 12.5px; color: var(--muted); margin: 0; }

/* Ciclo de vida do orcamento - fluxo vertical numerado */
.lifecycle { max-width: 340px; margin: 0 auto; }
.lifecycle .etapa {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
}
.lifecycle .etapa .num {
  width: 32px; height: 32px; flex: none;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.lifecycle .etapa .txt { font-size: 15px; font-weight: 600; color: var(--navy); }
.lifecycle .seta { text-align: center; color: var(--border); font-size: 18px; line-height: 1; }

/* "Feito pra sua rotina" - perguntas e respostas curtas */
.rotina-list { max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.rotina-list .linha { display: flex; gap: 10px; font-size: 15px; line-height: 1.5; }
.rotina-list .linha .pergunta { font-weight: 700; color: var(--navy); white-space: nowrap; }
.rotina-list .linha .resposta { color: var(--muted); }

/* Passos (como funciona), mesma estrutura do index.html */
.passos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.passo { position: relative; padding-top: 8px; }
.passo .num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
}
.passo h4 { margin: 0 0 6px; font-size: 15px; color: var(--navy); }
.passo p { margin: 0; font-size: 13.5px; color: var(--muted); }

.ciclo-completo {
  max-width: 620px;
  margin: 32px auto 8px;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.5;
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ciclo-completo .accent { color: var(--green); }

.cta-final {
  background: var(--navy);
  border-radius: 24px;
  padding: 40px 28px;
  text-align: center;
  margin: 48px 0 56px;
}
.cta-final h2 { color: #fff; margin: 0 0 8px; font-size: 22px; }
.cta-final p.lancamento {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  color: #FFE49B;
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin: 0 0 14px;
}
.cta-final p { color: rgba(255,255,255,0.75); margin: 0 0 22px; font-size: 14.5px; }

/* Grid de ramos (hub /ramos/) */
.ramos-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 48px;
}
.ramo-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--text);
  background: #fff;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.ramo-card:hover {
  border-color: var(--green);
  box-shadow: 0 8px 20px -8px rgba(15,155,142,0.35);
  transform: translateY(-1px);
}
.ramo-card .emoji { font-size: 20px; }
.ramo-card .nome { font-weight: 600; font-size: 14.5px; }
.ramo-card .qtd { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }

.breadcrumb { max-width: 900px; margin: 16px auto 0; padding: 0 24px; font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: underline; }

footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px 40px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
footer a { color: var(--muted); text-decoration: underline; }
footer .links { margin-bottom: 8px; }
footer .links a { margin: 0 8px; }

@media (max-width: 620px) {
  .hero h1 { font-size: 28px; }
}

/* Artigos (/artigos/...) — texto longo de leitura, pro Google e pra quem
   chega pesquisando "como fazer orçamento", "modelo de ordem de serviço"
   etc. Coluna estreita e fonte maior pra ler bem no celular. */
.artigo { max-width: 720px; margin: 0 auto; padding: 8px 24px 48px; }
.artigo h1 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 20px 0 10px;
}
.artigo .resumo { font-size: 18px; color: var(--muted); margin: 0 0 8px; }
.artigo .meta { font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.artigo h2 { font-size: 24px; color: var(--navy); margin: 36px 0 10px; line-height: 1.3; }
.artigo h3 { font-size: 18.5px; color: var(--navy); margin: 26px 0 8px; }
.artigo p, .artigo li { font-size: 17px; }
.artigo ul, .artigo ol { padding-left: 22px; }
.artigo li { margin-bottom: 6px; }
.artigo .caixa {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 22px 0;
}
.artigo .caixa p:first-child { margin-top: 0; }
.artigo .caixa p:last-child { margin-bottom: 0; }
.artigo .mensagem {
  background: #E7F7EF;
  border-radius: 12px 12px 12px 2px;
  padding: 14px 18px;
  margin: 12px 0 18px;
  font-size: 16px;
  white-space: pre-line;
}
.artigo table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15.5px; }
.artigo th, .artigo td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; vertical-align: top; }
.artigo th { background: var(--bg-soft); color: var(--navy); }
.artigo .tabela-rolavel { overflow-x: auto; }
.artigo .cta-artigo {
  text-align: center;
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 22px;
  margin: 40px 0 24px;
}
.artigo .cta-artigo h2 { margin-top: 0; }
.artigo .cta-artigo p { color: var(--muted); }
.artigo .relacionados { border-top: 1px solid var(--border); margin-top: 36px; padding-top: 18px; }
.artigo .relacionados h2 { font-size: 19px; margin-top: 0; }
.lista-artigos { max-width: 720px; margin: 0 auto 48px; padding: 0 24px; display: grid; gap: 14px; }
.lista-artigos a {
  display: block;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--text);
}
.lista-artigos a:hover { border-color: var(--green); }
.lista-artigos .titulo { font-weight: 700; font-size: 17.5px; color: var(--navy); display: block; margin-bottom: 4px; }
.lista-artigos .desc { font-size: 15px; color: var(--muted); }

@media (max-width: 620px) {
  .artigo h1 { font-size: 27px; }
  .artigo h2 { font-size: 21px; }
}

.cta-play {
  display: inline-block;
  background: #0b2540;
  color: #fff;
  text-decoration: none;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid rgba(255,255,255,0.35);
}
.cta-final .cta-play { margin-left: 8px; }
.qr-play {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  text-align: left;
}
.qr-play img { background: #fff; padding: 6px; border-radius: 10px; }
@media (min-width: 900px) { .qr-play { display: flex; } }
@media (max-width: 520px) { .cta-final .cta-play { margin: 10px 0 0; } }
