/* =========================================================
   Trazcá — landing page
   Identidade: preto e branco · Bricolage Grotesque
   ========================================================= */

:root {
  --black: #0b0b0b;
  --white: #ffffff;
  --paper: #f2f2f0;
  --graphite: #3a3a3a;
  --line: #e4e4e0;
  --soft: #d4d4d4;
  --wa: #25d366;

  --radius: 20px;
  --pad-x: clamp(20px, 6vw, 88px);
  --section-y: clamp(56px, 9vw, 112px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 500;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
h1 { font-size: clamp(44px, 6vw, 80px); letter-spacing: -0.045em; line-height: .98; }
h2 { font-size: clamp(36px, 4.4vw, 60px); }
h3 { font-size: clamp(20px, 1.8vw, 25px); letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
a { color: inherit; }

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--pad-x); }

.ico { width: 20px; height: 20px; flex-shrink: 0; }
.ico--lg { width: 30px; height: 30px; }

.only-mobile { display: none; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 14px; border: 0;
  font: inherit; font-weight: 800; text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }
.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { box-shadow: 0 12px 24px -12px rgba(11, 11, 11, .55); }
.btn--light { background: var(--white); color: var(--black); }
.btn--light:hover { box-shadow: 0 12px 24px -12px rgba(255, 255, 255, .35); }
.btn--light:focus-visible { outline-color: var(--white); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 16px; border-radius: 12px; }
.btn--lg { min-height: 64px; padding: 0 30px; font-size: 20px; }
.btn--lg .ico { width: 24px; height: 24px; }

.link { font-weight: 700; font-size: 18px; text-underline-offset: 4px; }
.link:hover { text-decoration-thickness: 2px; }

/* ---------- Navegação ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0, 0, 0, .35); }
.nav__inner { height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__links { display: flex; gap: 36px; margin-left: auto; margin-right: 12px; font-size: 17px; }
.nav__links a { text-decoration: none; position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--black); }
.brand__icon { width: 40px; height: 40px; }
.brand__name { font-size: 34px; font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.brand--light { color: var(--white); --logo-bg: var(--white); --logo-mark: var(--black); }
.brand--light .brand__icon { width: 36px; height: 36px; }
.brand--light .brand__name { font-size: 30px; }

/* ---------- Hero ---------- */
.hero { background: var(--paper); padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 8vw, 104px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero__text { display: flex; flex-direction: column; gap: 28px; }
.pill {
  align-self: flex-start; padding: 8px 14px;
  border: 1.5px solid var(--black); border-radius: 999px;
  font-size: 15px; font-weight: 700;
}
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: var(--graphite); max-width: 600px; }
.lead--strong { color: var(--black); font-weight: 700; }
.lead--light { color: var(--soft); margin-bottom: 28px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 16px; font-weight: 700; color: var(--graphite); }
.checks li { display: inline-flex; align-items: center; gap: 8px; }
.checks .ico { width: 18px; height: 18px; color: var(--black); }

.caption { font-size: 14px; font-weight: 700; color: var(--graphite); text-align: center; margin-top: 12px; }
.chat-wrap .caption { margin: 0 0 12px; }

/* ---------- Conversa de exemplo ---------- */
.chat-wrap { display: flex; flex-direction: column; align-items: center; }
.chat {
  width: 100%; max-width: 440px;
  background: var(--white); border: 1px solid #dcdcd8; border-radius: 28px; overflow: hidden;
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .45);
}
.chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--black); color: var(--white); }
.chat__head strong { display: block; font-size: 17px; }
.chat__status { font-size: 13px; color: #bdbdbd; }
.chat__avatar { width: 40px; height: 40px; border-radius: 50%; --logo-bg: var(--white); --logo-mark: var(--black); }
.chat__body { display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--paper); min-height: 470px; }

.msg { max-width: 88%; font-size: 15px; line-height: 1.35; }
.msg--out { align-self: flex-end; background: var(--black); color: var(--white); border-radius: 18px 18px 4px 18px; }
.msg--in {
  align-self: flex-start; width: 100%; max-width: 350px;
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 18px 18px 18px 4px;
}
.msg--audio { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.msg__time { font-size: 14px; font-weight: 700; }
.msg--photo { width: 250px; padding: 8px; }
.paper { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: var(--white); color: var(--black); border-radius: 12px; }
.paper span:not(:last-child) { border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.paper .paper__label { font-size: 12px; font-weight: 800; color: var(--graphite); border: 0; padding: 0; }
.quote { display: flex; justify-content: space-between; gap: 12px; }
.quote--best { padding: 8px 10px; margin: 0 -10px; background: var(--black); color: var(--white); border-radius: 10px; font-weight: 800; }
.muted { color: var(--graphite); }
.blur { filter: blur(4.5px); user-select: none; }

.wave { display: inline-flex; align-items: center; gap: 4px; height: 24px; }
.wave i { display: block; width: 4px; border-radius: 2px; background: currentColor; height: 40%; }
.wave i:nth-child(3n) { height: 85%; }
.wave i:nth-child(4n) { height: 60%; }
.wave i:nth-child(5n) { height: 100%; }
.wave i:nth-child(7n) { height: 30%; }

.typing {
  align-self: flex-start; display: inline-flex; gap: 5px;
  padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 18px 18px 18px 4px;
}
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9a9a9a; animation: typing 1.2s infinite var(--ease); }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* Sequência da conversa (ativada pelo script) */
.js .chat [data-step] { opacity: 0; transform: translateY(12px) scale(.98); }
.js .chat [data-step].is-in { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .chat [data-typing] { display: none; }
.js .chat [data-typing].is-in { display: inline-flex; animation: fade-in .3s var(--ease); }
.js .chat.is-playing .wave i { animation: wave 1s infinite ease-in-out; }
.wave i:nth-child(2n) { animation-delay: .1s; }
.wave i:nth-child(3n) { animation-delay: .25s; }
@keyframes wave { 50% { transform: scaleY(.45); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Seções ---------- */
.section { padding: var(--section-y) 0; }
.section--white { background: var(--white); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--black); color: var(--white); }
.section__head { display: flex; flex-direction: column; gap: 16px; margin-bottom: clamp(32px, 4vw, 56px); max-width: 900px; }
.eyebrow { font-size: 15px; font-weight: 800; letter-spacing: .08em; margin-bottom: 4px; }
.eyebrow--light { color: var(--soft); margin-bottom: 20px; }

/* Passos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.step {
  display: flex; flex-direction: column; gap: 16px; padding: 32px;
  background: var(--paper); border-radius: var(--radius);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -30px rgba(0, 0, 0, .5); }
.step p { font-size: 17px; line-height: 1.5; color: var(--graphite); }
.step__top { display: flex; justify-content: space-between; align-items: center; }
.step__n { font-size: 56px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.step--dark { background: var(--black); color: var(--white); }
.step--dark p { color: var(--soft); }

/* Duas colunas */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px); align-items: center; }
.split__text { display: flex; flex-direction: column; gap: 22px; }
.split--center { align-items: center; }

/* Recibo */
.receipt {
  display: flex; flex-direction: column; gap: 18px;
  padding: clamp(24px, 3vw, 40px); background: var(--white); border-radius: 24px;
  font-size: clamp(16px, 1.4vw, 20px);
  box-shadow: 0 30px 60px -45px rgba(0, 0, 0, .5);
}
.receipt hr { width: 100%; border: 0; height: 2px; background: var(--black); margin: 0; }
.receipt__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.receipt__row--muted { color: var(--graphite); }
.receipt__row--save { padding: 16px 18px; margin: 0 -18px; background: var(--black); color: var(--white); border-radius: 14px; font-weight: 800; }
.receipt b { font-weight: 800; }

/* Cartões */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column; gap: 14px; padding: 32px;
  background: var(--paper); border-radius: var(--radius);
  transition: transform .35s var(--ease), background-color .35s var(--ease);
}
.card:hover { transform: translateY(-4px); background: #ebebe8; }
.card p { font-size: 17px; line-height: 1.5; color: var(--graphite); }
.for-who { margin-top: 32px; font-size: 19px; font-weight: 700; color: var(--graphite); }

/* Dúvidas */
#duvidas h2 { margin-bottom: clamp(24px, 3vw, 40px); }
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; align-items: start; }
.faq__item { border-top: 2px solid var(--black); }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 24px 0; font-size: clamp(19px, 1.7vw, 23px); font-weight: 800;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex-shrink: 0; width: 14px; height: 14px;
  border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform .3s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq__item p { padding: 0 0 24px; font-size: 18px; line-height: 1.5; color: var(--graphite); }
.faq__item[open] p { animation: faq-open .35s var(--ease); }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* CTA final */
.cta__inner { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.cta h2 { font-size: clamp(38px, 5vw, 72px); max-width: 1000px; }

/* Rodapé */
.footer { background: var(--black); color: var(--white); padding: 48px 0 110px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer__meta { display: flex; gap: 32px; font-size: 15px; color: var(--soft); }

/* ---------- Botão flutuante do WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
  opacity: 0; transform: translateY(16px) scale(.9);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.wa-float.is-visible { opacity: 1; transform: none; }
.wa-float__btn {
  position: relative;
  display: grid; place-items: center;
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--wa); color: var(--white);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.wa-float__btn svg { width: 32px; height: 32px; }
.wa-float__btn::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--wa); z-index: -1;
  animation: wa-pulse 2.8s var(--ease) infinite;
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
.wa-float__label {
  padding: 10px 14px; border-radius: 12px;
  background: var(--black); color: var(--white);
  font-size: 15px; font-weight: 800; white-space: nowrap;
  opacity: 0; transform: translateX(8px); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.wa-float:hover .wa-float__btn, .wa-float:focus-visible .wa-float__btn { transform: scale(1.07); box-shadow: 0 14px 28px -8px rgba(0, 0, 0, .5); }
.wa-float:hover .wa-float__label, .wa-float:focus-visible .wa-float__label { opacity: 1; transform: none; }
.wa-float:focus-visible { outline: none; }
.wa-float:focus-visible .wa-float__btn { outline: 3px solid var(--black); outline-offset: 3px; }

/* ---------- Animação de entrada ao rolar ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--delay, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .steps, .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav__inner { height: 64px; }
  .nav__links { display: none; }
  .brand__icon { width: 30px; height: 30px; }
  .brand__name { font-size: 26px; }
  .only-desktop { display: none; }
  .only-mobile { display: inline; }
  .btn--sm .ico { display: none; }

  .hero__grid, .split { grid-template-columns: minmax(0, 1fr); }
  .hero__text { gap: 22px; }
  .pill { font-size: 13px; padding: 6px 12px; }
  .hero__cta .btn { width: 100%; }
  .hero__cta .link { display: none; }
  .btn--lg { font-size: 17px; min-height: 60px; padding: 0 16px; gap: 8px; }
  .checks { gap: 8px 16px; font-size: 14px; }
  .chat__body { min-height: 0; padding: 16px; }
  .msg--in { max-width: none; font-size: 14px; }

  .steps, .cards, .faq { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .faq { gap: 0; }
  .step, .card { padding: 24px; }
  .step__n { font-size: 44px; }
  .for-who { font-size: 15px; }
  .section--dark .btn { width: 100%; }
  .cta .btn { width: 100%; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__meta { flex-direction: column; gap: 6px; }
  .wa-float__label { display: none; }
  .wa-float { right: 16px; bottom: 16px; }
  .wa-float__btn { width: 58px; height: 58px; }
}

/* Respeita quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .chat [data-step] { opacity: 1; transform: none; }
  .wa-float { opacity: 1; transform: none; }
}

.quote b { white-space: nowrap; }
