/* =====================================================================
   BASE — reset, tipografia base, header/rodapé globais, utilidades.
   Compartilhado por TODAS as páginas (home e internas herdam).
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  background: var(--bg-1);
  color: var(--txt);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv01";
  /* clip (não hidden) evita scroll horizontal SEM virar container de scroll —
     senão quebra position:sticky dos filhos (ex.: rail do catálogo no mobile). */
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
::selection { background: var(--laranja); color: #fff; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* --- Utilidades --- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* --- Eyebrow / overline (kicker frio, não gasta laranja) --- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--roxo);
}

/* --- Botão CTA (laranja — só no clímax/conversão) --- */
.btn {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--laranja); color: #fff; font-weight: 600; font-size: 1rem;
  padding: 17px 34px; border-radius: 99px; letter-spacing: .005em;
  transition: transform var(--dur-fast), box-shadow var(--dur-fast);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(232,85,46,.32); }
.btn svg { width: 18px; height: 18px; }
.btn--ghost {
  background: transparent; color: var(--txt);
  border: 1px solid var(--line-2);
}
.btn--ghost:hover { background: rgba(244,244,242,.04); box-shadow: none; border-color: var(--line-3); }

/* =====================================================================
   HEADER GLOBAL — overlay fixo, idêntico em todas as páginas.
   Sem laranja: a conversão é EARNED no clímax.
   ===================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: clamp(1.1rem, 2.4vw, 1.7rem) clamp(1.4rem, 5vw, 4.5rem);
  background: linear-gradient(180deg, rgba(17,17,32,.82) 0%, rgba(17,17,32,.5) 55%, rgba(17,17,32,0) 100%);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  pointer-events: none;
}
.site-header__logo { display: block; line-height: 0; pointer-events: auto; }
.site-header__logo svg { height: 30px; width: auto; display: block; color: var(--off); }
.site-nav { position: relative; display: flex; align-items: center; gap: 1rem; pointer-events: auto; }
.site-nav__panel { display: flex; align-items: center; gap: clamp(1.4rem, 2.6vw, 2.6rem); }
.site-nav__list { display: flex; gap: clamp(1.4rem, 2.6vw, 2.4rem); list-style: none; margin: 0; padding: 0; }
.site-nav__list a {
  color: rgba(244,244,242,.62); font-size: .86rem; font-weight: 500; letter-spacing: .01em;
  transition: color var(--dur-fast);
}
.site-nav__list a:hover,
.site-nav__list .current-menu-item > a { color: var(--off); }
.site-nav__cta {
  color: var(--off); font-size: .86rem; font-weight: 600; white-space: nowrap;
  padding-bottom: 3px; border-bottom: 1px solid rgba(244,244,242,.38);
  transition: border-color var(--dur-fast);
}
.site-nav__cta:hover { border-color: var(--off); }

/* Botão hambúrguer (mobile) */
.site-nav__toggle { display: none; }

@media (max-width: 860px) {
  .site-header { padding: 1rem 1.4rem; }
  /* No mobile fica SÓ o logo + o hambúrguer. Menu e CTA vão pra dentro do dropdown. */
  .site-nav__panel { display: none; }
  .site-nav__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 11px; color: var(--off);
    border: 1px solid var(--line-2); background: rgba(244,244,242,.04); pointer-events: auto;
  }
  .site-nav__toggle svg { width: 20px; height: 20px; }

  /* dropdown aberto: menu em coluna + o "Falar com um especialista" dentro */
  .site-nav[data-open="true"] .site-nav__panel {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: calc(100% + 10px); right: 0;
    background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 16px;
    padding: 18px 22px; min-width: 240px;
    box-shadow: 0 24px 60px rgba(0,0,0,.5);
  }
  .site-nav[data-open="true"] .site-nav__list { flex-direction: column; gap: 16px; width: 100%; }
  .site-nav[data-open="true"] .site-nav__list a { font-size: 1.02rem; }
  /* o CTA vira a ação destacada do menu (separador acima), mantendo a sobriedade da marca */
  .site-nav[data-open="true"] .site-nav__cta {
    font-size: 1.02rem; margin-top: 14px; padding-top: 16px; padding-bottom: 0;
    width: 100%; border-top: 1px solid var(--line-2); border-bottom: none;
  }
}

/* =====================================================================
   RODAPÉ GLOBAL — respiro escuro, calmo. A assinatura da casa.
   (estilos detalhados em components; aqui o esqueleto)
   ===================================================================== */
.site-footer { background: var(--bg-1); border-top: 1px solid var(--line); }

/* --- Rodapé (detalhe) --- */
.site-footer__inner {
  position: relative; z-index: 2; width: 100%; max-width: var(--maxw-wide); margin: 0 auto;
  padding: clamp(4rem,9vh,7rem) clamp(1.4rem,5vw,4.5rem) clamp(2rem,4vh,3rem);
}
.site-footer {
  background: radial-gradient(120% 100% at 50% -10%, #16162a 0%, var(--bg-1) 50%, #0D0D19 100%);
}
.site-footer__top {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: clamp(2.4rem,5vw,5rem); align-items: start;
  padding-bottom: clamp(2.6rem,5.5vh,4rem); border-bottom: 1px solid rgba(244,244,242,.1);
}
.site-footer__brand { max-width: 34ch; }
.site-footer__logo svg { height: 30px; width: auto; color: var(--off); margin-bottom: 1.3rem; }
.site-footer__tagline { font-size: 1.04rem; line-height: 1.45; font-weight: 600; letter-spacing: -.01em; }
.site-footer__subtag { margin-top: .5rem; font-size: .92rem; line-height: 1.5; color: rgba(244,244,242,.55); }
.site-footer__social { display: flex; gap: 10px; margin-top: 1.3rem; }
.site-footer__social a {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: 10px; border: 1px solid var(--line-2); color: rgba(244,244,242,.6);
  transition: color var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast);
}
.site-footer__social a:hover { color: var(--off); border-color: var(--line-3); background: rgba(244,244,242,.05); }
.site-footer__social svg { width: 18px; height: 18px; }
.site-footer__wa { display: inline-flex; align-items: center; gap: .45rem; }
.site-footer__wa svg { width: 16px; height: 16px; color: #25D366; flex: none; }
.site-footer__col { display: flex; flex-direction: column; gap: .85rem; }
.site-footer__coltitle { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(244,244,242,.4); margin-bottom: .3rem; }
.site-footer__col a { color: rgba(244,244,242,.78); font-size: .96rem; font-weight: 500; transition: color var(--dur-fast); }
.site-footer__col a:hover { color: var(--off); }
.site-footer__lead { display: inline-flex; align-items: center; gap: .5rem; color: var(--off) !important; font-weight: 600 !important; }
.site-footer__lead i { width: 6px; height: 6px; border-radius: 50%; background: var(--laranja); flex: none; }
.site-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; margin-top: clamp(1.6rem,3vh,2.2rem); }
.site-footer__bottom span { font-size: .84rem; color: rgba(244,244,242,.45); }
.site-footer__sig { color: rgba(244,244,242,.38) !important; }

/* =====================================================================
   COMPONENTES COMPARTILHADOS (reusados na home E nas internas)
   ===================================================================== */
/* Clímax — anel pulsante + hover do botão navy (reusado em várias páginas) */
@keyframes cl-ring { 0%,100% { box-shadow: 0 0 0 1.5px rgba(255,255,255,.22), 0 18px 50px -12px rgba(0,0,0,.6); } 50% { box-shadow: 0 0 0 4px rgba(255,255,255,.10), 0 18px 60px -10px rgba(0,0,0,.7); } }
.cl-cta { transition: transform var(--dur-fast), background var(--dur-fast); }
.cl-cta:hover { background: #1F1F38 !important; transform: translateY(-2px); }

/* Calculadora — slider (reusado na home e na página A Conta) */
.yep-range { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 99px; outline: none; background: rgba(244,244,242,.14); cursor: pointer; }
.yep-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #F4F4F2; border: 2px solid #E8552E; box-shadow: 0 0 0 5px rgba(232,85,46,.18); cursor: pointer; }
.yep-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #F4F4F2; border: 2px solid #E8552E; box-shadow: 0 0 0 5px rgba(232,85,46,.18); cursor: pointer; }
@media (prefers-reduced-motion: reduce) { [data-ring] { animation: none !important; } }

/* =====================================================================
   Marcação de seção PADRÃO: o iconezinho Yep antes do rótulo (.yep-eyebrow).
   Injeta o ícone via mask (herda escala em em, cor laranja) e esconde o
   marcador antigo (pontinho/traço). Variante --light pros fechos quentes.
   ===================================================================== */
.yep-eyebrow > i { display: none; } /* esconde o ponto/traço que era o marcador */
.yep-eyebrow::before {
  content: ""; flex: none; align-self: center;
  width: 1.15em; height: 1.15em;
  background-color: var(--laranja);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 841.89 595.28'%3E%3Cpolygon points='405.61 518.01 438.19 461.49 334.45 461.71 301.94 518.01 405.61 518.01'/%3E%3Cpolyline points='452.15 438.2 607.77 167.11 555.9 77.26 400.3 347.76 452.15 437.71'/%3E%3Cpolygon points='234.12 270.16 335.86 270.09 437.61 446.6 335.86 446.39 234.12 270.16'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 841.89 595.28'%3E%3Cpolygon points='405.61 518.01 438.19 461.49 334.45 461.71 301.94 518.01 405.61 518.01'/%3E%3Cpolyline points='452.15 438.2 607.77 167.11 555.9 77.26 400.3 347.76 452.15 437.71'/%3E%3Cpolygon points='234.12 270.16 335.86 270.09 437.61 446.6 335.86 446.39 234.12 270.16'/%3E%3C/svg%3E") center / contain no-repeat;
}
.yep-eyebrow--light::before { background-color: currentColor; }

/* =====================================================================
   PARCEIROS — ecossistema de integrações
   Prova visual do que a 06-ferramentas afirma em texto.
   Regra de cor respeitada: SEM laranja. Laranja é munição do clímax.
   Logos: PNG branco, normalizados por área de tinta (mesmo peso óptico).
   ===================================================================== */

/* ═══════════════════════════════════════════════════════════════════
   ECOSSISTEMA — logos de parceiro + o sob medida + a API
   Home: só a linha (.yp-eco-linha). Plataforma: a seção inteira.
   Destaque em ROXO (--roxo): zero laranja, racionado pro clímax.
   ═══════════════════════════════════════════════════════════════════ */

/* ── logo: monocromático, discreto. É lastro, não anúncio. ── */
.yp-logo{
  max-height:26px; width:auto; display:block;
  opacity:.42; filter:saturate(0);
  transition:opacity var(--dur-fast) var(--ease),
             transform var(--dur-fast) var(--ease);
}
.yp-eco .yp-logo:hover{ opacity:1; transform:translateY(-2px); }

/* ── Home: a linha. Uma frase, sem parede de logos. ── */
.yp-eco-linha{
  margin:clamp(1.4rem,3vh,2.1rem) 0 0;
  padding-top:clamp(1.1rem,2.4vh,1.5rem);
  border-top:1px solid rgba(244,244,242,.07);
  font-size:.95rem; line-height:1.55; font-weight:450;
  color:rgba(244,244,242,.6); letter-spacing:-.005em;
}
.yp-eco-linha b{ color:rgba(244,244,242,.92); font-weight:700; }

/* ── kicker: rótulo de movimento. Dá respiro e nomeia cada bloco. ── */
.yp-eco-kicker{
  margin:0 0 clamp(1.1rem,2.4vh,1.5rem);
  font-size:.7rem; font-weight:600; letter-spacing:.2em; text-transform:uppercase;
  color:rgba(244,244,242,.42);
}
.yp-eco-kicker--roxo{ color:var(--roxo,#9D96C8); }

/* ── 1. O ATALHO: a grade de categorias ── */
.yp-eco-bloco{ margin-top:clamp(3rem,6vh,4.4rem); }
.yp-eco{
  /* COLUNAS DE FLUXO, não grid rígido.
     As categorias têm alturas muito diferentes (13 logos vs 4) — num grid de
     linhas, a categoria alta empurra e a baixa deixa buraco. Em multi-column
     cada categoria é um bloco íntegro (break-inside:avoid) que se acomoda
     sozinho, e a coluna fecha sem rio branco. */
  column-count:2;
  column-gap:clamp(2.6rem,5.5vw,5rem);
}
.yp-eco__cat{
  break-inside:avoid; -webkit-column-break-inside:avoid; page-break-inside:avoid;
  min-width:0;
  /* o respiro entre categorias empilhadas na mesma coluna */
  margin:0 0 clamp(3.2rem,6.5vh,4.8rem);
  display:inline-block; width:100%;   /* trava o avoid no Safari */
}
.yp-eco__cat:last-child{ margin-bottom:0; }
.yp-eco__titulo{
  margin:0 0 clamp(1.2rem,2.6vh,1.6rem);
  padding-bottom:.75rem;
  border-bottom:1px solid rgba(244,244,242,.08);
  font-size:.8rem; font-weight:600; letter-spacing:.1em; text-transform:uppercase;
  color:rgba(244,244,242,.72);
}
.yp-eco__logos{
  display:flex; flex-wrap:wrap; align-items:center;
  /* ar entre as fileiras de logo dentro da própria categoria */
  gap:clamp(1.5rem,3.2vh,2.1rem) clamp(1.6rem,3.2vw,2.6rem);
}

/* ── 2. A GARANTIA: o sob medida. Sem isto, a grade é lista de features. ── */
.yp-sob{
  margin-top:clamp(3.4rem,7vh,5rem);
  padding-top:clamp(2.4rem,5vh,3.4rem);
  border-top:1px solid rgba(244,244,242,.09);
  display:grid;
  grid-template-columns:minmax(0,5fr) minmax(0,6fr);
  gap:clamp(1.8rem,4vw,4rem);
  align-items:start;
}
.yp-sob__h{
  margin:0; font-size:clamp(1.3rem,2.2vw,1.75rem); font-weight:800;
  letter-spacing:-.025em; color:#F4F4F2; line-height:1.15;
}
.yp-sob__h em{ font-style:normal; color:var(--roxo,#9D96C8); }
.yp-sob__p{
  margin:.75rem 0 0; font-size:.98rem; line-height:1.55; font-weight:450;
  color:rgba(244,244,242,.6); max-width:36ch;
}
/* as provas: cliente + o que foi talhado. Concreto vence adjetivo. */
.yp-sob__provas{ list-style:none; margin:0; padding:0; }
.yp-sob__provas li{
  display:grid; grid-template-columns:minmax(0,auto) minmax(0,1fr);
  gap:.35rem 1.4rem; align-items:baseline;
  padding:clamp(.9rem,2vh,1.15rem) 0;
  border-bottom:1px solid rgba(244,244,242,.07);
}
.yp-sob__provas li:first-child{ padding-top:0; }
.yp-sob__quem{
  font-size:1rem; font-weight:700; color:#F4F4F2;
  letter-spacing:-.01em; white-space:nowrap;
}
.yp-sob__oque{
  font-size:.93rem; font-weight:450; line-height:1.45;
  color:rgba(244,244,242,.6);
}

/* ── 3. A PORTA: a API. O fecho — ganha o palco sozinha. ── */
.yp-api{
  margin-top:clamp(3.4rem,7vh,5rem);
  padding:clamp(2rem,4.5vh,3rem) clamp(1.6rem,4vw,3rem);
  border:1px solid rgba(157,150,200,.22);
  border-radius:14px;
  background:linear-gradient(180deg, rgba(92,93,163,.09) 0%, rgba(92,93,163,.02) 100%);
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,auto);
  gap:clamp(1.4rem,3vw,3rem);
  align-items:center;
}
.yp-api__frase{
  grid-column:1; margin:0;
  font-size:clamp(1.25rem,2.2vw,1.7rem); font-weight:600;
  line-height:1.25; letter-spacing:-.025em;
  color:rgba(244,244,242,.66);
}
.yp-api__frase b{ color:var(--roxo,#9D96C8); font-weight:800; }
.yp-api__sub{
  grid-column:1; margin:.9rem 0 0;
  font-size:.95rem; line-height:1.55; font-weight:450;
  color:rgba(244,244,242,.55); max-width:52ch;
}
.yp-api__link{
  grid-column:2; grid-row:1 / span 2;
  display:inline-flex; align-items:center; gap:.6rem;
  padding:.85rem 1.4rem;
  border:1px solid rgba(157,150,200,.45); border-radius:999px;
  color:#F4F4F2; text-decoration:none;
  font-size:.95rem; font-weight:600; letter-spacing:-.01em; white-space:nowrap;
  transition:border-color var(--dur-fast) var(--ease),
             background-color var(--dur-fast) var(--ease);
}
.yp-api__link span:last-child{ color:var(--roxo,#9D96C8); font-size:1.1em; line-height:0; }
.yp-api__link:hover{
  border-color:rgba(157,150,200,.9);
  background:rgba(92,93,163,.14);
}

.yp-eco-legal{
  margin:clamp(2rem,4vh,2.8rem) 0 0;
  font-size:.84rem; font-weight:500; color:rgba(244,244,242,.35);
}

@media (prefers-reduced-motion:reduce){
  .yp-logo{ transition:none; }
  .yp-eco .yp-logo:hover{ transform:none; }
}
@media (max-width:900px){
  .yp-eco{ column-count:1; }
  .yp-eco__cat{ margin-bottom:clamp(2.4rem,5vh,3.2rem); }
  .yp-logo{ max-height:22px; }
  .yp-sob{ grid-template-columns:1fr; gap:clamp(1.6rem,3.5vh,2.2rem); }
  .yp-sob__provas li{ grid-template-columns:1fr; gap:.2rem; }
  .yp-sob__quem{ white-space:normal; }
  .yp-api{ grid-template-columns:1fr; text-align:left; }
  .yp-api__link{ grid-column:1; grid-row:auto; justify-self:start; margin-top:.5rem; }
}
