/* ============================================================================
   seo-pages.css — estilos das landing pages de aquisição orgânica do LoopSign.
   COMPLEMENTA marketing.css: reutiliza tokens (:root), .button, tipografia,
   cores e espaçamentos. Não redefine o design system.
   Carregado depois de marketing.css em cada página /assinatura-*.
   ========================================================================== */

.seo-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 40px;
}
/* quebra de palavras longas (títulos, code, URLs) para não empurrar a largura da página */
.seo-page :is(h1, h2, h3) { overflow-wrap: break-word; }
.seo-page code { overflow-wrap: anywhere; }

/* ---------- breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 26px 0 6px;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb a { color: var(--secondary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 700; }

/* ---------- hero ---------- */
.seo-hero {
  padding: 28px 0 40px;
  border-bottom: 1px solid var(--line);
}
.seo-hero .eyebrow {
  margin: 0 0 12px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.seo-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -.02em;
  max-width: 20ch;
}
.seo-hero-sub {
  margin: 0 0 24px;
  max-width: 62ch;
  font-size: clamp(16px, 2.1vw, 19px);
  color: var(--ink);
  opacity: .82;
}
.seo-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}
.seo-hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}
.seo-hero-proof li::before { content: "✓ "; color: var(--secondary); }

/* ---------- seções genéricas ---------- */
.seo-section {
  padding: 46px 0;
  border-bottom: 1px solid var(--line);
}
.seo-section > h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3.4vw, 34px);
  letter-spacing: -.01em;
}
.seo-section > .seo-lead {
  margin: 0 0 28px;
  max-width: 68ch;
  color: var(--ink);
  opacity: .8;
  font-size: 16px;
}
.seo-section p { line-height: 1.6; }
.seo-section h3 {
  margin: 26px 0 8px;
  font-size: 19px;
}

/* ---------- grid de blocos (benefícios / recursos / casos de uso) ---------- */
.seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.seo-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}
.seo-grid article h3 {
  margin: 0 0 8px;
  font-size: 17px;
}
.seo-grid article p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- passos "como funciona" ---------- */
.seo-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  counter-reset: seo-step;
}
.seo-steps li {
  list-style: none;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-alt);
}
.seo-steps li::before {
  counter-increment: seo-step;
  content: counter(seo-step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-family: var(--font-titulo);
}
.seo-steps li strong { display: block; margin-bottom: 4px; font-size: 15px; }
.seo-steps li span { font-size: 13px; color: var(--muted); }

/* ---------- fluxo textual (API) ---------- */
.seo-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: var(--bg-alt);
  font-weight: 700;
  color: var(--primary);
}
.seo-flow span { overflow-wrap: anywhere; }
.seo-flow span:not(:last-child)::after {
  content: " →";
  color: var(--muted);
  font-weight: 800;
}
@media (max-width: 560px) {
  .seo-flow { flex-direction: column; align-items: flex-start; }
  .seo-flow span:not(:last-child)::after { content: " ↓"; }
}

/* ---------- bloco de segurança / confiança ---------- */
.seo-trust {
  display: grid;
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}
.seo-trust ul { margin: 0; padding-left: 20px; }
.seo-trust li { margin: 6px 0; line-height: 1.55; }
.seo-trust .seo-note {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- páginas relacionadas (links internos no conteúdo) ---------- */
.seo-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.seo-related-grid a {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s ease, transform .15s ease;
}
.seo-related-grid a:hover {
  border-color: var(--secondary);
  transform: translateY(-2px);
}
.seo-related-grid a strong { display: block; font-size: 15px; margin-bottom: 3px; }
.seo-related-grid a span { font-size: 13px; color: var(--muted); }

/* ---------- FAQ (nativo, sem JS) ---------- */
.seo-faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  margin-bottom: 10px;
  padding: 0 18px;
}
.seo-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 700;
  font-family: var(--font-titulo);
  font-size: 16px;
}
.seo-faq summary::-webkit-details-marker { display: none; }
.seo-faq summary::after {
  content: "+";
  float: right;
  margin-left: 12px;
  color: var(--secondary);
  font-weight: 800;
}
.seo-faq details[open] summary::after { content: "–"; }
.seo-faq details[open] summary { border-bottom: 1px solid var(--line); }
.seo-faq details > p {
  margin: 14px 0 18px;
  color: var(--ink);
  opacity: .85;
  line-height: 1.6;
}

/* ---------- CTA final ---------- */
.seo-cta-band {
  margin-top: 46px;
  padding: 40px;
  border-radius: var(--radius-card);
  background: linear-gradient(145deg, #2d0f49, var(--primary));
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-lift);
}
.seo-cta-band h2 { margin: 0 0 10px; font-size: clamp(22px, 3vw, 30px); }
.seo-cta-band p { margin: 0 auto 22px; max-width: 56ch; opacity: .88; }
.seo-cta-band .button.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
}

/* ---------- dropdown "Soluções" no header (usado nas páginas SEO) ----------
   O estilo base do .nav-dd fica em marketing.css (compartilhado com a home). */

@media (max-width: 720px) {
  .seo-page { padding-inline: 18px; }
  .seo-cta-band { padding: 28px 22px; }
  .seo-hero h1 { max-width: none; }
}
