/* ════════════════════════════════════════════════════════════════
   XALQ · camada compartilhada v8
   Carregada em todas as páginas, depois do estilo inline de cada uma.
   Tudo que for comum a partir de agora entra aqui, não nas 36 páginas.
   Seções: 1 tokens e acessibilidade · 2 movimento · 3 hero v8 ·
   4 componentes novos · 5 formulário · 6 responsivo · 7 movimento reduzido
   ════════════════════════════════════════════════════════════════ */

/* ── 1. TOKENS E ACESSIBILIDADE ── */
:root {
  /* Contraste WCAG AA para texto. O logo, os pontos, as barras e as bordas
     continuam com as cores originais da marca. */
  --gray-400: #6e6e68;          /* era #888880 (3,4:1) → 4,9:1 */
  --teal-dark: #176b84;         /* era #1a7a96 (4,45:1 no papel) → 5,5:1 */
  --green-text: #4e7a12;        /* verde da marca quando vira texto: 4,9:1 */
  --teal-text: #176b84;

  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --dur-hover: 160ms;
  --dur-ui: 240ms;
  --dur-enter: 560ms;
  --lift: -2px;
  --rise: 12px;
}
html, body { overflow-x: clip; }  /* o painel do menu mobile não alarga a página (iOS) */

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--black); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 1rem; }
main:focus { outline: none; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

/* Verde usado como texto passa para o tom legível */
.delivery-card:nth-child(3) .delivery-tag,
.delivery-card:nth-child(3) > a,
.casa-headline em,
.execucao-band-link:hover { color: var(--green-text); }
.execucao-band .execucao-band-label, .cunha .cunha-label { color: var(--green-soft); } /* sobre fundo preto o verde original passa */

/* ── 2. MOVIMENTO (Fase 3) ── */
.js-motion [data-reveal] { opacity: 0; transform: translateY(var(--rise)); transition: opacity var(--dur-enter) var(--ease-out), transform var(--dur-enter) var(--ease-out); transition-delay: var(--d, 0ms); }
.js-motion [data-reveal].is-in { opacity: 1; transform: none; }

.btn-primary, .btn-secondary, .nav-cta { transition: background var(--dur-hover) var(--ease-out), color var(--dur-hover) var(--ease-out), border-color var(--dur-hover) var(--ease-out), transform var(--dur-hover) var(--ease-out); }
.btn-primary:hover, .nav-cta:hover { background: var(--teal-dark); }
.btn-secondary:hover { border-color: var(--black); color: var(--black); }
.btn-primary:active, .btn-secondary:active, .nav-cta:active { transform: translateY(1px); }

.path-card, .delivery-card, .stake-card, .audience-card, .diag-card { transition: transform var(--dur-hover) var(--ease-out), border-color var(--dur-hover) var(--ease-out), box-shadow var(--dur-hover) var(--ease-out); }
@media (hover: hover) {
  .path-card:hover, .delivery-card:hover, .stake-card:hover, .audience-card:hover, .diag-card:hover { transform: translateY(var(--lift)); border-color: var(--teal); }
}

@view-transition { navigation: auto; }
nav { view-transition-name: site-nav; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 200ms; animation-timing-function: var(--ease-out); }

/* O que nunca se mexe: número, compromisso, campo de formulário */
.scen-val, .proof-client, .proof-client *, form, form *, .geo-faq *, .privacy-modal *, table, table * { animation: none !important; transform: none !important; }

/* ── 3. HERO v8 (home) ── */
.hero.hero-v8 { padding: 4.5rem 2rem 5rem; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr); gap: 3.5rem; align-items: center; }
.hero-v8 .hero-eyebrow { margin-bottom: 2rem; }
.hero-v8 h1 { font-size: clamp(40px, 4.7vw, 66px); margin-bottom: 1.5rem; }
.hero-v8 .hero-lede { font-size: 18px; line-height: 1.65; color: var(--gray-700); max-width: 560px; margin: 0; animation: fadeUp .6s .25s ease both; }
.hero-v8 .hero-lede strong { color: var(--black); font-weight: 600; }
.hero-v8 .hero-ctas { margin-top: 2.25rem; }
.hero-v8 .btn-primary { font-size: 15px; padding: 15px 24px; }
.hero-v8 .btn-secondary { font-size: 15px; padding: 15px 20px; }
.hero-cta-note { font-size: 13px; color: var(--gray-500); margin-top: 0.9rem; }

.hero-proof { list-style: none; padding: 0; margin: 2.75rem 0 0; display: flex; flex-wrap: wrap; border-top: var(--border); animation: fadeUp .6s .5s ease both; }
.hero-proof li { flex: 1 1 0; min-width: 150px; padding: 1.1rem 1.25rem 0 0; margin-right: 1.25rem; font-size: 13px; line-height: 1.45; color: var(--gray-600); }
.hero-proof li b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -0.4px; color: var(--black); margin-bottom: 2px; }

.dossier { background: var(--white); border: var(--border-strong); border-radius: var(--radius-lg); box-shadow: 0 1px 2px rgba(16,16,16,.04), 0 18px 48px -18px rgba(16,16,16,.18); padding: 1.6rem 1.6rem 1.3rem; position: relative; animation: fadeUp .6s .35s ease both; }
.dossier::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: linear-gradient(90deg, var(--teal) 0%, var(--green) 100%); }
.dossier-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: 11px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gray-500); }
.dossier-title { font-family: var(--font-display); font-size: 21px; font-weight: 500; letter-spacing: -0.4px; color: var(--black); margin: 0.85rem 0 1.25rem; line-height: 1.2; }
.scen { display: grid; grid-template-columns: 74px 1fr auto; align-items: center; gap: 12px; padding: 9px 0; border-top: var(--border); font-size: 13px; color: var(--gray-600); }
.scen-bar { height: 8px; border-radius: 4px; background: var(--gray-100); overflow: hidden; }
.scen-bar i { display: block; height: 100%; border-radius: 4px; background: var(--gray-300); }
.scen.is-main { color: var(--black); font-weight: 600; }
.scen.is-main .scen-bar i { background: var(--teal-dark); }
.scen-val { font-family: var(--font-display); font-size: 17px; font-weight: 500; color: var(--black); font-variant-numeric: tabular-nums; }
.dossier-conf { margin-top: 0.9rem; font-size: 12.5px; color: var(--gray-600); }
.dossier-conf b { color: var(--teal-dark); font-weight: 600; }
.dossier-sign { margin-top: 1.1rem; padding-top: 0.95rem; border-top: 1px dashed var(--gray-200); display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--gray-700); }
.dossier-sign::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }
.dossier-note { margin-top: 0.85rem; font-size: 11.5px; color: var(--gray-500); line-height: 1.4; }
/* Assinatura do site: o forecast se calcula uma vez. Os números não contam. */
.js-motion .hero-v8 .scen-bar i { transform-origin: left center; animation: barGrow .7s var(--ease-out) both; }
.js-motion .hero-v8 .scen:nth-of-type(1) .scen-bar i { animation-delay: .65s; }
.js-motion .hero-v8 .scen:nth-of-type(2) .scen-bar i { animation-delay: .75s; }
.js-motion .hero-v8 .scen:nth-of-type(3) .scen-bar i { animation-delay: .85s; }
@keyframes barGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ── 4. COMPONENTES NOVOS ── */
/* Alternativas: "onde para" */
.path-stop { margin-top: 0.9rem; padding-top: 0.8rem; border-top: var(--border); font-size: 13px; line-height: 1.5; color: var(--gray-700); }
.path-stop b { color: var(--black); font-weight: 600; }
/* Etiqueta "comece por aqui" no card do Pipeline */
.delivery-flag { display: inline-block; margin: 0 0 0.75rem; padding: 4px 10px; border-radius: 100px; background: rgba(23,107,132,0.08); color: var(--teal-dark); font-size: 11.5px; font-weight: 600; letter-spacing: 0.2px; }
.delivery-not { margin-top: 0.75rem; font-size: 13.5px; line-height: 1.55; color: var(--gray-700); }
.delivery-not b { color: var(--black); }
.delivery-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 1.2rem; font-size: 13px; font-weight: 600; color: var(--teal-dark); text-decoration: none; border-bottom: 1.5px solid var(--teal-light); padding-bottom: 2px; }
.delivery-link:hover { color: var(--black); }

/* Seção "Em operação" da home: aproveita o cartão de prova do Pipeline */
.proof-note { margin-top: 1rem; font-size: 12px; color: var(--gray-500); }
.proof-cta { margin-top: 1.75rem; }

/* Fatos do Diagnóstico (fundo preto da .cunha) */
.diag-facts { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 2rem; }
.diag-facts li { font-size: 14px; line-height: 1.55; color: rgba(250,250,247,0.82); }
.diag-facts li b { display: block; font-size: 11px; font-weight: 600; letter-spacing: 1.3px; text-transform: uppercase; color: var(--green-soft); margin-bottom: 3px; }
.diag-actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.diag-actions .btn-primary { background: var(--white); color: var(--black); }
.diag-actions .btn-primary:hover { background: var(--green-soft); color: var(--black); }
.diag-actions small { font-size: 12.5px; color: rgba(250,250,247,0.7); }

/* Quem atende: sócios junto ao botão final */
.partners-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem 2rem; margin: 2.25rem auto 0; max-width: 820px; }
.partner { display: flex; align-items: center; gap: 12px; text-align: left; text-decoration: none; color: inherit; }
.partner img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--white); box-shadow: 0 1px 6px rgba(16,16,16,.12); }
.partner b { display: block; font-size: 14px; font-weight: 600; color: var(--black); }
.partner span { font-size: 12.5px; color: var(--gray-500); }
.partners-label { margin-top: 2.5rem; font-size: 11px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gray-500); text-align: center; }
.casa .partners-strip, .casa .partners-label { justify-content: flex-start; text-align: left; margin-left: 0; }

/* Bloco de agendamento em Contato e Sobre */
.book-band { margin: 0 auto; max-width: var(--max-narrow); padding: 2rem; border: var(--border-strong); border-radius: var(--radius-lg); background: var(--white); display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: center; justify-content: space-between; }
.book-band p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--gray-700); max-width: 440px; }
.book-band p strong { color: var(--black); }

/* ── 5. FORMULÁRIO ── */
.field-help { display: block; margin-top: 6px; font-size: 12px; color: var(--gray-500); }
.field-error { display: none; margin-top: 6px; font-size: 12.5px; color: #a3261b; }
.has-error .field-error { display: block; }
.has-error input, .has-error select { border-color: #a3261b !important; }
.form-status { display: none; padding: 1rem 1.15rem; border-radius: var(--radius-md); font-size: 14.5px; line-height: 1.55; }
.form-status.is-ok { display: block; background: rgba(78,122,18,0.08); border: 1px solid rgba(78,122,18,0.35); color: var(--black); }
.form-status.is-fail { display: block; background: rgba(163,38,27,0.06); border: 1px solid rgba(163,38,27,0.35); color: var(--black); }
.form-promise { font-size: 13px; color: var(--gray-600); margin: 0; }

/* ── 6. RESPONSIVO (padrão v8: 420 · 560 · 880 · exceção do hero em 980) ── */
@media (max-width: 980px) {
  .hero.hero-v8 { grid-template-columns: 1fr; gap: 2.75rem; padding: 4rem 1.25rem 3.5rem; }
  .hero-v8 .hero-lede { font-size: 16.5px; }
  .dossier { max-width: 520px; }
}
@media (max-width: 880px) {
  .diag-facts { grid-template-columns: 1fr; }
  .book-band { padding: 1.5rem; }
}
@media (max-width: 560px) {
  .hero-v8 .hero-ctas, .diag-actions { flex-direction: column; align-items: stretch; }
  .hero-v8 .hero-ctas a, .diag-actions a { justify-content: center; }
  .hero-proof li { flex: 1 1 100%; margin-right: 0; padding-right: 0; }
  .partners-strip { justify-content: flex-start; }
}

/* ── 7. MOVIMENTO REDUZIDO ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js-motion [data-reveal] { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}

/* ── 8. HOME v8: títulos de bloco dentro da seção do problema ── */
.block-head { margin: 4.5rem 0 1.75rem; }
.block-head .section-label { margin-bottom: 1rem; }
.alt-h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; letter-spacing: -0.8px; color: var(--black); max-width: 760px; margin: 0; }
.alt-h2 em { font-style: italic; color: var(--teal-dark); }
.manifesto-body .problem-close { font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 24px); font-weight: 500; letter-spacing: -0.4px; color: var(--black); }
.next-step h3.next-step-h3 { font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -0.4px; color: var(--black); margin: 2.5rem 0 0.75rem; }
/* Títulos que viraram h3 (hierarquia) mantêm o visual do div original */
:where(h3.path-name, h3.delivery-name, h3.method-function, h3.proof-col-title) { margin: 0; font-size: inherit; font-weight: inherit; line-height: inherit; }
/* Verde da marca usado como texto em fundo claro (páginas de linha) → tom legível */
.nao-block .sim-nao-title { color: var(--gray-600); }
.sim-block .sim-nao-title { color: #44690f; }
.fund-card .fund-num { color: var(--teal-dark); }
[id] { scroll-margin-top: 88px; }  /* âncoras não ficam sob o menu fixo */
