/* LeadFlow — página de vendas */

:root {
  /* Paleta oficial (docs/guia-leadflow.docx) */
  --laranja: #FF6804;   /* color_primary_orange_ff6804: identidade, CTA, destaques */
  --grafite: #202020;   /* color_neutral_black_202020: texto, fundos escuros */
  --cinza: #6E6E6E;     /* color_neutral_gray_6e6e6e: subtítulos, bordas, divisores */
  --branco: #FFFFFF;    /* color_neutral_white_ffffff: fundos claros, texto sobre escuro */

  /* Derivados (transparências das cores oficiais) */
  --superficie: rgba(32, 32, 32, .04);
  --linha: rgba(110, 110, 110, .28);
  --grade: rgba(110, 110, 110, .12);
  --texto-sobre-escuro: rgba(255, 255, 255, .72);
  --linha-sobre-escuro: rgba(255, 255, 255, .16);

  --display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--branco);
  color: var(--grafite);
  font: 400 1.125rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--laranja); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip:focus { position: fixed; top: 12px; left: 12px; z-index: 100; background: var(--grafite); color: var(--branco); padding: 10px 16px; }

/* ---------- Tipografia ---------- */
.section-title {
  font-family: var(--display);
  font-variation-settings: "wdth" 88;
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 20ch;
}
h3 {
  font-family: var(--display);
  font-variation-settings: "wdth" 92;
  font-weight: 650;
  font-size: 1.375rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* ---------- Botões ---------- */
.btn {
  --lift: 0px;
  display: inline-flex; align-items: center; gap: .6em;
  padding: .9em 1.4em;
  background: var(--laranja);
  color: var(--grafite);
  font: 600 1.0625rem/1 var(--body);
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(255, 104, 4, .45);
  transform: translateY(var(--lift));
  transition: transform .25s var(--ease), box-shadow .35s var(--ease), background-color .2s;
}
.btn:hover { --lift: -2px; box-shadow: 0 10px 28px -10px rgba(255, 104, 4, .75); }
.btn:active { --lift: 0px; }
.btn-small { padding: .7em 1.1em; font-size: .9375rem; }
.btn-big { font-size: 1.25rem; padding: 1em 1.7em; }
.wa-icon { width: 1.25em; height: 1.25em; fill: currentColor; }

.link-quiet {
  font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
  transition: background-size .3s var(--ease);
  padding-bottom: 2px;
}
.link-quiet:hover { background-size: 0 1.5px; background-position: 100% 100%; }

/* ---------- Topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .75);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.topbar.scrolled { border-bottom-color: var(--linha); background: rgba(255, 255, 255, .92); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; gap: 28px; font-size: .9375rem; font-weight: 500; }
.nav a { text-decoration: none; color: var(--cinza); transition: color .2s; }
.nav a:hover { color: var(--grafite); }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(64px, 9vw, 120px); position: relative; }
.hero::before {
  /* grade sutil, desaparece nas bordas */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--grade) 1px, transparent 1px),
    linear-gradient(90deg, var(--grade) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 75% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 75% 40%, #000 0%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }

.hero-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-variation-settings: "wdth" 92, "opsz" 96;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
@media (min-width: 981px) { .hero-title .line { white-space: nowrap; } }
.hero-title .line > span { display: inline-block; transform: translateY(105%); animation: rise 1s var(--ease) forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: .09s; }
.hero-title .line:nth-child(3) > span { animation-delay: .18s; }
@keyframes rise { to { transform: none; } }

.hero-lede { margin-top: 28px; max-width: 34em; color: var(--cinza); font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero-note { margin-top: 20px; font-size: .9375rem; color: var(--cinza); }
.hero-lede, .hero-actions, .hero-note { opacity: 0; animation: fade .8s .45s var(--ease) forwards; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Board (demonstração ao vivo) ---------- */
.board-wrap { min-width: 0; opacity: 0; animation: fade 1s .3s var(--ease) forwards; }
.board {
  background: var(--branco);
  border: 1px solid var(--linha);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 1px 0 rgba(32, 32, 32, .04), 0 30px 60px -30px rgba(32, 32, 32, .28);
  font-size: .875rem;
  line-height: 1.35;
}
.board-head { display: flex; justify-content: space-between; align-items: center; margin: 4px 2px 10px; }
.board-head:not(:first-child) { margin-top: 18px; }
.board-title { font-weight: 600; font-size: .8125rem; color: var(--cinza); }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: .75rem; color: var(--cinza); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--laranja); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 104, 4, .5); } 100% { box-shadow: 0 0 0 8px rgba(255, 104, 4, 0); } }

.lane { position: relative; border-radius: 12px; background: var(--superficie); padding: 8px; }
.lane-in { min-height: 70px; }
.lane-ai { min-height: 112px; overflow: hidden; border: 1px dashed rgba(110, 110, 110, .45); }
.scanline {
  position: absolute; left: 0; right: 0; top: 0; height: 40%;
  background: linear-gradient(180deg, transparent, rgba(255, 104, 4, .10) 70%, rgba(255, 104, 4, .55) 100%);
  border-bottom: 1px solid rgba(255, 104, 4, .7);
  transform: translateY(-110%);
  pointer-events: none;
}
.lane-ai.scanning .scanline { animation: scan 1.1s var(--ease); }
@keyframes scan { from { transform: translateY(-110%); } to { transform: translateY(260%); } }

.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.col { background: var(--superficie); border-radius: 12px; padding: 8px; min-height: 176px; }
.col-name { display: block; font-size: .75rem; font-weight: 600; color: var(--cinza); margin: 2px 2px 8px; }
.col:last-child .col-name { color: var(--grafite); }
.col-body { display: flex; flex-direction: column; gap: 6px; }

.lead {
  background: var(--branco);
  border: 1px solid var(--linha);
  border-radius: 10px;
  padding: 10px 12px;
  will-change: transform;
}
.lead-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.lead-name { font-weight: 600; color: var(--grafite); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead-score { font: 500 .8125rem/1 var(--mono); color: var(--cinza); opacity: 0; transition: opacity .3s; }
.lead-meta { color: var(--cinza); font-size: .8125rem; margin-top: 2px; }
.lead-ai { display: none; margin-top: 10px; }
.lead-bar { height: 4px; border-radius: 4px; background: var(--linha); overflow: hidden; }
.lead-bar i { display: block; height: 100%; width: 0; background: var(--laranja); border-radius: inherit; transition: width 1s var(--ease); }
.lead-reason { margin-top: 8px; font-size: .8125rem; color: var(--grafite); opacity: 0; transform: translateY(4px); transition: opacity .4s .5s, transform .4s .5s var(--ease); }

.lane-ai .lead-ai { display: block; }
.lead.scored .lead-score { opacity: 1; }
.lead.scored .lead-reason { opacity: 1; transform: none; }
.lead.fit .lead-score { color: var(--grafite); font-weight: 600; }
.lead.nofit .lead-bar i { background: var(--cinza); }

.lead.enter { animation: enter .6s var(--ease); }
@keyframes enter { from { opacity: 0; transform: translateX(-24px); } }
.lead.leave { animation: leave .5s var(--ease) forwards; }
@keyframes leave { to { opacity: 0; transform: translateX(24px) scale(.96); } }

/* versão compacta dentro das colunas do funil */
.col .lead { padding: 8px 9px; border-radius: 8px; }
.col .lead-meta, .col .lead-ai { display: none; }
.col .lead-top { flex-direction: column; gap: 3px; }
.col .lead-name { font-size: .78rem; max-width: 100%; }
.col .lead-score { font-size: .72rem; }
.col:last-child .lead { border-color: rgba(255, 104, 4, .45); box-shadow: inset 3px 0 0 var(--laranja); }

/* ---------- Personas ---------- */
.personas { padding: clamp(72px, 10vw, 140px) 0; border-top: 1px solid var(--linha); }
.persona {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 80px);
  align-items: start;
  margin-top: clamp(48px, 7vw, 96px);
}
.persona-alt .persona-quote { order: 2; }
.persona-alt .persona-body { order: 1; }
.persona-quote {
  font-family: var(--display);
  font-variation-settings: "wdth" 90;
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--grafite);
  padding-left: 22px;
  border-left: 4px solid var(--laranja);
}
.persona-body p { margin-top: 14px; color: var(--cinza); max-width: 36em; }
.persona-body .persona-change { color: var(--grafite); }

/* ---------- Como funciona (grafite) ---------- */
.how { background: var(--grafite); color: var(--branco); padding: clamp(80px, 11vw, 150px) 0; }
.how-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.how-intro { position: sticky; top: 120px; }
.how-intro p { margin-top: 20px; color: var(--texto-sobre-escuro); max-width: 30em; }

.steps { position: relative; padding-left: 64px; }
.steps-track { position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: var(--linha-sobre-escuro); border-radius: 2px; }
.steps-fill { position: absolute; inset: 0 0 auto 0; height: 0; background: var(--laranja); border-radius: inherit; box-shadow: 0 0 14px rgba(255, 104, 4, .6); }
.step { position: relative; padding-bottom: clamp(56px, 8vw, 96px); }
.step:last-child { padding-bottom: 0; }
.step-num {
  position: absolute; left: -64px; top: -4px;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font: 700 1rem/1 var(--display);
  background: var(--grafite); color: var(--texto-sobre-escuro);
  border: 2px solid var(--linha-sobre-escuro);
  transition: background-color .4s, color .4s, border-color .4s;
}
.step.on .step-num { background: var(--laranja); color: var(--grafite); border-color: var(--laranja); }
.step h3 { font-size: clamp(1.4rem, 2.4vw, 1.875rem); }
.step p { margin-top: 12px; color: var(--texto-sobre-escuro); max-width: 34em; transition: color .4s; }
.step.on p { color: var(--branco); }

/* ---------- IA + você ---------- */
.split { padding: clamp(80px, 11vw, 150px) 0; }
.split-title { max-width: 18ch; }
.split-grid {
  display: grid; grid-template-columns: 1fr 120px 1fr; align-items: stretch; gap: 24px;
  margin-top: clamp(40px, 6vw, 72px);
}
.split-col { padding: 28px; border-radius: 18px; border: 1px solid var(--linha); background: var(--branco); }
.split-col-human { background: var(--grafite); color: var(--branco); border-color: var(--grafite); }
.split-col ul { margin-top: 18px; display: grid; gap: 12px; }
.split-col li { position: relative; padding-left: 22px; }
.split-col li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 2px; background: var(--laranja); }
.split-handoff { align-self: center; }
.split-handoff svg { width: 100%; overflow: visible; }
.split-handoff path { stroke: var(--linha); stroke-width: 2; stroke-dasharray: 4 6; fill: none; }
.handoff-dot { fill: var(--laranja); }
.split-note { margin-top: 36px; max-width: 46em; color: var(--cinza); }

/* ---------- Personalizado + valores ---------- */
.custom { padding: 0 0 clamp(80px, 11vw, 150px); }
.custom-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px);
  padding-top: clamp(64px, 8vw, 110px); border-top: 1px solid var(--linha);
}
.custom-lede { margin-top: 20px; color: var(--cinza); max-width: 32em; }
.values ul { margin-top: 18px; }
.values li { padding: 16px 0; border-bottom: 1px solid var(--linha); color: var(--cinza); }
.values li:first-child { border-top: 1px solid var(--linha); }
.values strong { color: var(--grafite); font-weight: 600; }

/* ---------- Como começar ---------- */
.start {
  position: relative; overflow: hidden;
  background: var(--laranja); color: var(--grafite);
  padding: clamp(80px, 11vw, 150px) 0;
}
.start::after {
  /* símbolo da marca, grande e recortado */
  content: ""; position: absolute; right: -6vw; bottom: -14vw;
  width: min(52vw, 640px); aspect-ratio: 1;
  background: url("/assets/symbol_solid_primary_light.png") center / contain no-repeat;
  filter: brightness(0); opacity: .07;
  transform: rotate(-8deg);
  pointer-events: none;
}
.start .wrap { position: relative; z-index: 1; }
.start-title {
  font-family: var(--display);
  font-variation-settings: "wdth" 92, "opsz" 96;
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.start-steps { margin: 40px 0 44px; display: grid; gap: 14px; max-width: 40em; font-size: 1.1875rem; }
.start-steps li { display: flex; gap: 16px; align-items: baseline; }
.start-steps span {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--grafite);
  font: 700 .875rem/1 var(--display);
  transform: translateY(-2px);
}
.start .btn { background: var(--grafite); color: var(--branco); }
.start .btn:hover { box-shadow: 0 14px 30px -12px rgba(32, 32, 32, .7); }
.start-phone { margin-top: 18px; font-size: 1rem; }
.start-phone a { font-weight: 600; }
.start :focus-visible { outline-color: var(--grafite); }

/* ---------- Rodapé ---------- */
.footer { background: var(--grafite); color: var(--texto-sobre-escuro); padding: 40px 0; font-size: .9375rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer img { height: 30px; width: auto; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--laranja); color: var(--grafite);
  box-shadow: 0 12px 30px -10px rgba(32, 32, 32, .5);
  transform: translateY(120px); opacity: 0;
  transition: transform .45s var(--ease), opacity .3s;
}
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }
.wa-float.show { transform: none; opacity: 1; }
.wa-float.hide-near-cta { transform: translateY(120px); opacity: 0; }

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .nav { display: none; }
  .hero-grid, .how-grid, .custom-grid { grid-template-columns: minmax(0, 1fr); }
  .how-intro { position: static; }
  .persona { grid-template-columns: minmax(0, 1fr); }
  .persona-alt .persona-quote, .persona-alt .persona-body { order: 0; }
  .split-grid { grid-template-columns: minmax(0, 1fr); }
  .split-handoff { width: 40px; height: 64px; margin: -8px auto; transform: rotate(90deg); transform-origin: center; display: grid; place-items: center; }
  .split-handoff svg { width: 64px; }
}
@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .topbar-inner { height: 64px; }
  .brand img { height: 28px; }
  .topbar .btn-small { font-size: .8125rem; padding: .65em .9em; }
  .board { padding: 12px; border-radius: 16px; }
  .cols { gap: 5px; }
  .col { padding: 6px; min-height: 150px; }
  .col .lead-name { font-size: .72rem; }
  .steps { padding-left: 54px; }
  .step-num { left: -54px; width: 36px; height: 36px; }
  .steps-track { left: 17px; }
  .split-col { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .hero-title .line > span { transform: none; }
}
