/* ============================================================
   CHAMA IA — inner.css
   CSS base compartilhado por TODAS as páginas internas.
   Carregado após global.css e components.css.
   ============================================================ */

/* ══════════════════════════════════════════
   1. ESCALA TIPOGRÁFICA — PÁGINAS INTERNAS
   ══════════════════════════════════════════ */
.page-hero h1,
.func-hero h1 {
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.12;
  margin: 12px 0 20px;
}

section h2 {
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.15;
}

section.bg-navy h2 {
  font-size: clamp(22px, 2.4vw, 34px);
}

section h3 {
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.25;
}

section h4 {
  font-size: 16px;
  line-height: 1.3;
}

section p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray-500);
}
/* ══════════════════════════════════════════
   ESPAÇAMENTO PADRÃO — PÁGINAS INTERNAS
   O global.css usa 96px. Aqui reduzimos para
   64px em todas as seções internas.
   Isso é o padrão definitivo — não alterar.
   ══════════════════════════════════════════ */
body section {
  padding-top: 64px;
  padding-bottom: 64px;
}

/* Hero sempre maior */
.page-hero,
.page-hero-img {
  padding-top: 120px !important;
  padding-bottom: 64px !important;
}

/* CTA final — levemente menor */
section.bg-navy.page-cta,
section.page-cta {
  padding-top: 56px !important;
  padding-bottom: 56px !important;
}

/* Seção bg-offwhite adjacente a outra — sem dobrar espaço */
section + section.bg-offwhite,
section.bg-offwhite + section {
  padding-top: 64px;
}



.page-hero p,
.func-hero p {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  max-width: 540px;
  line-height: 1.8;
  margin-bottom: 36px;
}

/* ══════════════════════════════════════════
   2. BOTÕES — PADRÃO DE CORES POR INTENÇÃO
   ══════════════════════════════════════════ */

/* Contato / WhatsApp → verde WhatsApp */
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  font-weight: 700;
}
.btn-whatsapp:hover {
  background: #20BA58;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37,211,102,.28);
  color: #fff;
}

/* Demonstração → laranja */
.btn-demo {
  background: #E8702A;
  color: #fff;
  font-weight: 700;
}
.btn-demo:hover {
  background: #F08244;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(232,112,42,.28);
  color: #fff;
}

/* Outline demo (fundo escuro) */
.btn-outline-demo {
  background: transparent;
  color: #E8702A;
  border: 1.5px solid rgba(232,112,42,.45);
  font-weight: 600;
}
.btn-outline-demo:hover {
  border-color: #E8702A;
  background: rgba(232,112,42,.08);
  color: #E8702A;
}

/* ══════════════════════════════════════════
   3. SEÇÕES — ESPAÇAMENTO EQUILIBRADO
   O global.css define padding:96px 5vw em section.
   Aqui garantimos consistência entre todas as
   seções internas sem cortar conteúdo.
   ══════════════════════════════════════════ */

/* Seção padrão já tem 96px top+bottom pelo global.
   Não sobrescrever padding geral — só casos específicos. */

/* Hero de página interna */
.page-hero {
  padding: 140px 5vw 96px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 5vw; right: 5vw;
  height: 1px;
  background: rgba(255,255,255,0.07);
}

.page-hero-content {
  max-width: 680px;
  position: relative;
  z-index: 1;
}

/* CTA final de página — levemente menor */
section.bg-navy.page-cta {
  padding: 80px 5vw;
}

/* ══════════════════════════════════════════
   4. SECTION HEADER
   ══════════════════════════════════════════ */
.section-header {
  text-align: center;
  margin-bottom: 56px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 { margin-top: 8px; }

/* ══════════════════════════════════════════
   5. CONTENT GRID
   ══════════════════════════════════════════ */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.content-grid h2 { margin-bottom: 20px; }
.content-grid p  { margin-bottom: 16px; }

/* ══════════════════════════════════════════
   6. IMPL GRID (cards de processo)
   ══════════════════════════════════════════ */
.impl-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.impl-card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.impl-card:hover {
  border-color: rgba(34,197,227,.35);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.impl-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--cyan);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 16px;
}

.impl-card h4 { font-size: 16px; color: var(--navy); margin-bottom: 10px; }
.impl-card p  { font-size: 13.5px; color: var(--gray-500); line-height: 1.75; }

/* ══════════════════════════════════════════
   7. MVV
   ══════════════════════════════════════════ */
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.mvv-card {
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}

.mvv-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--cyan);
}

.mvv-card:hover { border-color: rgba(34,197,227,.4); transform: translateY(-3px); }
.mvv-icon { font-size: 28px; margin-bottom: 16px; display: block; }
.mvv-card h3 { font-size: 19px; color: var(--navy); margin-bottom: 12px; }
.mvv-card p  { font-size: 14px; color: var(--gray-500); line-height: 1.75; }

/* ══════════════════════════════════════════
   8. INFO CARDS
   ══════════════════════════════════════════ */
.sobre-info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.info-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.info-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gray-300); margin-bottom: 5px; }
.info-value  { font-size: 15px; font-weight: 600; color: var(--navy); }

/* ══════════════════════════════════════════
   9. VALORES GRID
   ══════════════════════════════════════════ */
.valores-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.valor-card {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  transition: border-color .2s, box-shadow .2s;
}

.valor-card:hover { border-color: rgba(34,197,227,.4); box-shadow: var(--shadow-sm); }
.valor-icon { font-size: 26px; display: block; margin-bottom: 14px; }
.valor-card h4 { color: var(--navy); margin-bottom: 10px; font-size: 16px; }
.valor-card p  { font-size: 13px; color: var(--gray-500); line-height: 1.7; }

/* ══════════════════════════════════════════
   10. COMP ROW
   ══════════════════════════════════════════ */
.comp-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: rgba(255,255,255,.05);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 880px;
  margin: 0 auto;
}

.comp-item { background: rgba(255,255,255,.03); padding: 36px 24px; text-align: center; }
.comp-num  { display: block; font-family: var(--font-display); font-size: 40px; font-weight: 800; color: var(--cyan); line-height: 1; margin-bottom: 8px; }
.comp-text { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.5; }

/* ══════════════════════════════════════════
   11. LEGAL
   ══════════════════════════════════════════ */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h2 { font-size: 24px; margin: 48px 0 16px; color: var(--navy); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 17px; margin: 32px 0 12px; color: var(--navy); }
.legal-content p  { font-size: 15px; color: var(--gray-700); line-height: 1.85; margin-bottom: 16px; }
.legal-content ul { margin: 12px 0 20px 20px; list-style: disc; }
.legal-content ul li { font-size: 15px; color: var(--gray-700); line-height: 1.75; margin-bottom: 8px; }
.legal-updated { display: inline-block; background: var(--gray-100); border-radius: var(--radius-sm); padding: 6px 14px; font-size: 13px; color: var(--gray-500); margin-bottom: 40px; }

/* ══════════════════════════════════════════
   12. ETAPAS LIST (como-funciona)
   ══════════════════════════════════════════ */
.etapas-list { max-width: 860px; margin: 0 auto; }

.etapa-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 36px;
  padding: 48px 0;
  border-bottom: 1px solid var(--gray-100);
  align-items: start;
}

.etapa-item:last-child { border-bottom: none; }

.etapa-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: rgba(34,197,227,.2);
  line-height: 1;
  padding-top: 4px;
}

.etapa-content h3 { font-size: clamp(17px, 1.6vw, 21px); color: var(--navy); margin-bottom: 12px; }
.etapa-content p  { font-size: 15px; color: var(--gray-500); line-height: 1.8; margin-bottom: 14px; }

.etapa-destaque {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(34,197,227,.07);
  border: 1px solid rgba(34,197,227,.2);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 13.5px;
  color: var(--gray-700);
  line-height: 1.5;
  margin-top: 4px;
}

.etapa-destaque-icon { font-size: 16px; flex-shrink: 0; }

/* ══════════════════════════════════════════
   13. COMPARAÇÃO GRID (api-oficial-meta)
   ══════════════════════════════════════════ */
.comparacao-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.comp-col { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gray-100); }
.comp-col-header { padding: 16px 24px; background: var(--gray-50); border-bottom: 1px solid var(--gray-100); }
.comp-col.comp-sim .comp-col-header { background: rgba(34,197,227,.06); border-bottom-color: rgba(34,197,227,.15); }
.comp-badge { display: inline-block; font-size: 13px; font-weight: 600; color: var(--gray-700); }
.comp-badge-sim { color: var(--navy); }
.comp-items { padding: 20px 24px; display: grid; gap: 12px; }
.comp-items li { font-size: 14px; color: var(--gray-700); line-height: 1.5; }

.vantagens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.vantagem-card {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color .2s, transform .2s;
}

.vantagem-card:hover { border-color: rgba(34,197,227,.35); transform: translateY(-3px); }
.vantagem-icon { font-size: 26px; display: block; margin-bottom: 14px; }
.vantagem-card h4 { font-size: 16px; color: var(--navy); margin-bottom: 8px; }
.vantagem-card p  { font-size: 13.5px; color: var(--gray-500); line-height: 1.7; }


/* ══ HERO LEGAL (política, termos) ══ */
.page-hero-legal {
  padding-top: 120px;
  padding-bottom: 48px;
}

.page-hero-legal + section,
.page-hero-legal + .legal-section {
  padding-top: 48px;
}

/* Seção de conteúdo legal — sem padding excessivo */
.legal-section {
  padding-top: 48px;
  padding-bottom: 96px;
}


/* ══════════════════════════════════════════
   HERO COM IMAGEM — page-hero-img
   Usado em: funcionalidades, como-funciona,
   api-oficial-meta, missao
   Layout: 2 colunas texto + imagem
   ══════════════════════════════════════════ */
.page-hero-img {
  min-height: 88vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding: 120px 5vw 96px;
  position: relative;
  overflow: hidden;
}

.page-hero-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(34,197,227,.06) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

.phi-left h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 800;
  line-height: 1.12;
  margin: 12px 0 0;
}

/* Imagem real */
.phi-img-wrap img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
  display: block;
}

/* Placeholder enquanto imagem não existe */
.phi-placeholder {
  width: 100%;
  aspect-ratio: 3/2;
  background: rgba(255,255,255,.04);
  border: 1.5px dashed rgba(34,197,227,.3);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.phi-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(34,197,227,.06) 0%, transparent 70%);
}

.phi-placeholder-inner {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 24px;
}

.phi-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,.6);
  margin: 16px 0 4px;
}

.phi-filename {
  font-family: monospace;
  font-size: 12px;
  color: var(--cyan);
  opacity: .7;
  margin-bottom: 4px;
}

.phi-dim {
  font-size: 11px;
  color: rgba(34,197,227,.45);
  letter-spacing: .5px;
  margin-bottom: 18px;
}

.phi-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34,197,227,.08);
  border: 1px solid rgba(34,197,227,.2);
  border-radius: 100px;
  padding: 7px 16px;
  font-size: 12px;
  color: rgba(255,255,255,.5);
}

/* Responsivo */
@media (max-width: 1024px) {
  .page-hero-img {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 40px;
    padding: 120px 5vw 72px;
  }
}

/* ══════════════════════════════════════════
   14. RESPONSIVO
   ══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .content-grid    { grid-template-columns: 1fr; gap: 48px; }
  .mvv-grid        { grid-template-columns: 1fr 1fr; }
  .valores-grid    { grid-template-columns: 1fr 1fr; }
  .comp-row        { grid-template-columns: 1fr 1fr; }
  .impl-grid       { grid-template-columns: 1fr 1fr; }
  .comparacao-grid { grid-template-columns: 1fr; }
  .vantagens-grid  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .page-hero { padding: 110px 5vw 72px; }
  .etapa-item { grid-template-columns: 40px 1fr; gap: 20px; padding: 36px 0; }
  .etapa-num { font-size: 28px; }
}

@media (max-width: 640px) {
  .page-hero { padding: 96px 5vw 64px; }
  .mvv-grid        { grid-template-columns: 1fr; }
  .valores-grid    { grid-template-columns: 1fr; }
  .comp-row        { grid-template-columns: 1fr 1fr; }
  .sobre-info-cards{ grid-template-columns: 1fr; }
  .impl-grid       { grid-template-columns: 1fr; }
  .vantagens-grid  { grid-template-columns: 1fr; }
  .etapa-item      { grid-template-columns: 1fr; gap: 12px; }
  .etapa-num       { font-size: 22px; }
  section h2       { font-size: clamp(22px, 6vw, 30px); }
  section.bg-navy h2 { font-size: clamp(20px, 5.5vw, 28px); }
}
