/* Agente Atende — landing page
 * Base: design system do agente-atende (Inter + Archivo, tinta com viés verde,
 * chrome quieto: fio de 1px, raio pequeno, balão de mensagem arredondado).
 * Cor de marca: o azul da logo. */

@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-var.woff2') format('woff2');
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-var.woff2') format('woff2');
  font-weight: 400 700; font-stretch: 62% 125%; font-style: normal; font-display: swap;
}

:root {
  --paper:      #F6F7F9;
  --surface:    #FFFFFF;
  --line:       #E2E5EB;
  --ink:        #111614;
  --ink-2:      #4A5450;
  --ink-3:      #5F6965;

  --brand:       #1A4FD6;   /* azul da logo — branco por cima 6,4:1 */
  --brand-hover: #1643B8;
  --brand-press: #12399C;
  --brand-soft:  #E8EEFC;
  --on-brand:    #FFFFFF;

  --bubble-them: #FFFFFF;
  --bubble-us:   #1A4FD6;
  --chat-bg:     #EEF1F6;

  --night:      #0D110F;
  --night-ink:  #8C9792;

  --font-ui:      'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Archivo', system-ui, sans-serif;

  --radius:        4px;
  --radius-bubble: 12px;
  --content-max:   1120px;
}

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

html { scroll-behavior: smooth; color-scheme: light; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

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

h1, h2 {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.25rem, 5.5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); margin-bottom: 32px; }
h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.3; }

/* botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: 600 1rem/1 var(--font-ui);
  text-decoration: none;
  transition: background-color .12s, border-color .12s, color .12s;
}
.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--primary:hover { background: var(--brand-hover); }
.btn--primary:active { background: var(--brand-press); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink-3); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }

/* topo */
.topo {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.topo__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}
.topo__marca img { width: 180px; }

/* hero */
.hero { padding: 72px 0 80px; background: var(--surface); }
.hero__in {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
  align-items: center;
}
.selo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 4px 10px;
  border-left: 3px solid var(--brand);
  background: var(--brand-soft);
  color: var(--brand-press);
  font-size: .875rem;
  font-weight: 600;
}
.selo__ponto {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
  animation: pulso 1.6s ease-in-out infinite;
}
.hero__lead {
  margin-top: 20px;
  max-width: 34em;
  font-size: 1.1875rem;
  color: var(--ink-2);
}
.hero__acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* conversa de exemplo */
.chat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--chat-bg);
  overflow: hidden;
  max-width: 420px;
  justify-self: end;
  width: 100%;
}
.chat__topo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-size: .9375rem;
}
.chat__topo strong { display: block; line-height: 1.2; }
.chat__sub { font-size: .8125rem; color: var(--ink-3); }
.chat__avatar {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--surface);
  font-size: .8125rem;
  font-weight: 600;
}
.chat__corpo {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 16px 24px;
}
.msg {
  position: relative;
  max-width: 85%;
  padding: 8px 12px 20px;
  border-radius: var(--radius-bubble);
  font-size: .9375rem;
  line-height: 1.4;
}
.msg--eles { align-self: flex-start; background: var(--bubble-them); border-bottom-left-radius: 2px; }
.msg--nos  { align-self: flex-end; background: var(--bubble-us); color: var(--on-brand); border-bottom-right-radius: 2px; }
.msg__hora {
  position: absolute;
  right: 10px; bottom: 4px;
  font-size: .6875rem;
  opacity: .7;
}
.digitando {
  align-self: flex-end;
  display: flex;
  gap: 4px;
  padding: 12px 14px;
  background: var(--surface);
  border-radius: var(--radius-bubble);
  border-bottom-right-radius: 2px;
}
.digitando span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ink-3);
  animation: digita 1.2s ease-in-out infinite;
}
.digitando span:first-child { background: var(--brand); }
.digitando span:nth-child(2) { animation-delay: .15s; }
.digitando span:nth-child(3) { animation-delay: .3s; }

/* faixa de valores */
.faixa {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.faixa__in {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.faixa__in > div {
  padding: 28px 24px;
  border-left: 1px solid var(--line);
}
.faixa__in > div:first-child { border-left: 0; padding-left: 0; }
.faixa strong { display: block; font-size: 1.0625rem; margin-bottom: 4px; }
.faixa span { color: var(--ink-2); font-size: .9375rem; }

/* seções */
.secao { padding: 88px 0; background: var(--surface); }
.secao--alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.passos {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.passos li { border-top: 2px solid var(--ink); padding-top: 20px; }
.passos__n {
  display: block;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-size: 2rem;
  font-weight: 650;
  line-height: 1;
  color: var(--brand);
  margin-bottom: 16px;
}
.passos p { margin-top: 8px; color: var(--ink-2); }

.produtos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.produto {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius);
}
.produto__tag {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}
.produto h3 { font-size: 1.375rem; }
.produto > p:not(.produto__tag) { margin-top: 12px; color: var(--ink-2); }
.produto ul { list-style: none; margin-top: 24px; border-top: 1px solid var(--line); }
.produto li {
  padding: 12px 0 12px 22px;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-size: .9375rem;
}
.produto li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 8px; height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--brand);
}

/* chamada final */
.cta { text-align: center; }
.cta__in { display: flex; flex-direction: column; align-items: center; }
.cta__simbolo { width: 72px; margin-bottom: 24px; }
.cta h2 { margin-bottom: 12px; }
.cta p { color: var(--ink-2); font-size: 1.125rem; max-width: 32em; margin-bottom: 32px; }

/* rodapé */
.rodape {
  background: var(--night);
  color: var(--night-ink);
  font-size: .8125rem;
}
.rodape__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}
.rodape__zyanx {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--night-ink);
  text-decoration: none;
  opacity: .75;
  transition: opacity .12s;
}
.rodape__zyanx:hover { opacity: 1; }
.rodape__zyanx img { width: 24px; }

@keyframes pulso { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes digita { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-3px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .selo__ponto, .digitando span { animation: none; }
}

@media (max-width: 1023px) {
  .hero__in { grid-template-columns: 1fr; gap: 48px; }
  .chat { justify-self: start; }
}

@media (max-width: 640px) {
  .chat { max-width: none; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .topo__marca img { width: 148px; }
  .hero { padding: 48px 0 56px; }
  .hero__acoes .btn { flex: 1 1 100%; }
  .faixa__in { grid-template-columns: 1fr; }
  .faixa__in > div { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0; }
  .faixa__in > div:first-child { border-top: 0; }
  .secao { padding: 64px 0; }
  .passos, .produtos { grid-template-columns: 1fr; }
  .produto { padding: 24px 20px; }
  .rodape__in { justify-content: center; text-align: center; padding: 16px; }
}
