/* =========================================================
   Site público do Intervi — CRM de atendimento para equipes.
   Sem build, sem framework, sem biblioteca. Tokens em :root; a janela do
   produto (.demo …) reproduz a interface real do CRM.
   Reescrito em 21/09/2026: menos texto, uma mensagem por seção, um acento.
   ========================================================= */
:root {
  /* Paleta do Intervi (a mesma do CRM): brancos, cinzas com um toque de verde e UM acento teal (AA sobre branco). */
  --bg: #FFFFFF;
  --surface: #F5F7F6;
  --surface-2: #EAEEED;
  --line: #E2E7E5;
  --line-strong: #CBD3D0;
  --ink: #111B21;
  --ink-2: #4A5A62;
  --ink-3: #8696A0;
  --brand: #0B7F6E;             /* botões, links, destaque (branco sobre ele: 4,9:1) */
  --brand-hover: #075E54;
  --brand-soft: #E6F8F1;
  --brand-ring: rgba(0, 168, 132, .32);
  --brand-deep: #075E54;        /* barra do CRM na janela do produto */
  --on-brand: #FFFFFF;
  --green: #25D366;             /* não lidas (só dentro da janela do produto) */
  --on-green: #0B141A;
  --ok: #128C7E;
  --ok-soft: #E3F6EF;
  --ok-text: #0B6B5D;
  --warn: #B26A00;
  --warn-soft: #FFF3D6;
  --warn-text: #8A5300;
  --crit: #D2413B;
  --crit-soft: #FDE8E6;
  --chat: #EFEAE2;
  --chat-dot: rgba(17, 27, 33, .07);
  --bubble-in: #FFFFFF;
  --bubble-out: #D9FDD3;
  --bubble-meta: #667781;
  --tick-read: #53BDEB;
  --shadow-sm: 0 1px 2px rgba(11, 20, 26, .08);
  --shadow-md: 0 6px 18px rgba(11, 20, 26, .10);
  --shadow-lg: 0 24px 64px -24px rgba(11, 20, 26, .28);
  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(72px, 9vw, 128px);
  --topbar-h: 64px;
  --radius: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .18em; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
strong { font-weight: 600; }

/* Foco: anel teal sem mudar a forma do elemento */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.btn--primary:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--brand); }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; font-size: 14px; }
.skip-link:focus { top: 12px; text-decoration: none; }

/* ---------- Tipografia ----------
   Escala: display 40–68, title 30–40, heading 22, body 17, lead 19, caption 14.
   Dentro da janela do produto valem os tamanhos da interface reproduzida (11–13,5 px). */
.display {
  font-size: clamp(40px, 6.4vw, 68px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -.028em;
  text-wrap: balance;
  max-width: 14ch;
}
.title {
  font-size: clamp(30px, 3.6vw, 40px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -.022em;
  text-wrap: balance;
  max-width: 22ch;
}
.heading { font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -.012em; text-wrap: balance; }
.lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.5; color: var(--ink-2); max-width: 52ch; text-wrap: pretty; }
.text { font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 56ch; text-wrap: pretty; }
.caption { font-size: 14px; line-height: 1.45; color: var(--ink-2); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-hover); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface); }
.btn--lg { height: 52px; padding: 0 26px; font-size: 17px; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* ---------- Barra superior ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; gap: 32px; height: var(--topbar-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 26px; height: 26px; color: var(--brand); flex: none; }
.topbar__menu { display: flex; align-items: center; flex: 1; gap: 32px; min-width: 0; }
.nav { display: flex; gap: 2px; margin-inline: auto; }
.nav a { color: var(--ink-2); font-size: 15.5px; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: var(--ink); background: var(--surface); text-decoration: none; }
.topbar__actions { display: flex; gap: 8px; }
.topbar__actions .btn { height: 40px; padding: 0 16px; font-size: 15px; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; align-items: center; justify-content: center; color: var(--ink); }
.menu-toggle:hover { background: var(--surface); }
.menu-toggle .ico-close { display: none; }
html.menu-open .menu-toggle .ico-close { display: block; }
html.menu-open .menu-toggle .ico-menu { display: none; }

@media (max-width: 860px) {
  .topbar__inner { gap: 12px; }
  .topbar__menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--topbar-h);
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  html.menu-open .topbar__menu { display: flex; }
  .nav { flex-direction: column; margin: 0; gap: 0; }
  .nav a { padding: 12px; font-size: 16px; }
  .topbar__actions { flex-direction: column; }
  .topbar__actions .btn { width: 100%; height: 46px; font-size: 16px; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  /* Sem JS: não há botão de menu; os links ficam visíveis abaixo da marca. */
  html:not(.js) .menu-toggle { display: none; }
  html:not(.js) .topbar__inner { flex-wrap: wrap; height: auto; padding-block: 12px; }
  html:not(.js) .topbar__menu { display: flex; position: static; flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 0; border: 0; box-shadow: none; }
  html:not(.js) .nav { flex-direction: row; flex-wrap: wrap; }
  html:not(.js) .nav a { padding: 6px 8px; }
  html:not(.js) .topbar__actions { flex-direction: row; margin-left: auto; }
  html:not(.js) .topbar__actions .btn { width: auto; height: 38px; padding: 0 14px; }
}

/* ---------- Seções ---------- */
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section--surface { background: var(--surface); }
.section__head { max-width: 640px; }
.section__head .text { margin-top: 14px; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(56px, 8vw, 112px); position: relative; z-index: 1; }
.hero__copy { max-width: 780px; }
.hero__copy .lead { margin-top: 24px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__price { margin-top: 18px; color: var(--ink-2); font-size: 15px; }
.hero__price strong { color: var(--ink); font-weight: 600; }
.hero__demo { margin-top: clamp(48px, 6vw, 88px); position: relative; }
/* Único gradiente da página: um véu muito leve atrás da janela do produto */
.hero__demo::before {
  content: "";
  position: absolute;
  inset: -12% 0 20%;
  background: radial-gradient(60% 60% at 50% 30%, var(--brand-soft) 0%, transparent 70%);
  opacity: .8;
  z-index: -1;
  pointer-events: none;
}
/* A única sequência de entrada da página: título, texto, botões e a janela sobem uma vez, no carregamento. */
html.js .hero__copy > *, html.js .hero__demo { animation: rise .7s var(--ease) both; }
html.js .hero__copy > :nth-child(2) { animation-delay: .08s; }
html.js .hero__copy > :nth-child(3) { animation-delay: .16s; }
html.js .hero__copy > :nth-child(4) { animation-delay: .22s; }
html.js .hero__demo { animation-delay: .3s; animation-duration: .9s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Dor: as perguntas que a equipe faz, como mensagens ---------- */
.pain { padding-block: var(--section); }
.pain__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.pain__thread { display: flex; flex-direction: column; gap: 10px; max-width: 520px; }
.bubble {
  position: relative;
  align-self: flex-start;
  max-width: 88%;
  padding: 11px 16px;
  border-radius: 16px;
  border-top-left-radius: 4px;
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
}
.bubble--answer {
  align-self: flex-end;
  border-radius: 16px;
  border-top-right-radius: 4px;
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
  font-weight: 500;
  margin-top: 10px;
}
.bubble__meta { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-2); font-family: var(--mono); }
.bubble--answer .bubble__meta { color: rgba(255, 255, 255, .78); }
/* Com JS, as mensagens aparecem em sequência quando a seção entra na tela (uma vez) */
html.js .pain__thread[data-reveal] .bubble { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
html.js .pain__thread[data-reveal].is-in .bubble { opacity: 1; transform: none; }
html.js .pain__thread[data-reveal].is-in .bubble:nth-child(2) { transition-delay: .12s; }
html.js .pain__thread[data-reveal].is-in .bubble:nth-child(3) { transition-delay: .24s; }
html.js .pain__thread[data-reveal].is-in .bubble:nth-child(4) { transition-delay: .36s; }
html.js .pain__thread[data-reveal].is-in .bubble:nth-child(5) { transition-delay: .48s; }
html.js .pain__thread[data-reveal].is-in .bubble--answer { transition-delay: .75s; }
@media (max-width: 860px) {
  .pain__grid { grid-template-columns: minmax(0, 1fr); }
  .pain__thread { max-width: none; }
  .bubble { max-width: 94%; font-size: 15px; }
}

/* ---------- Produto: benefícios ---------- */
.benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; margin-top: 48px; }
.benefit { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; }
.benefit__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.benefit__icon svg { width: 22px; height: 22px; }
.benefit h3 { font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -.012em; text-wrap: balance; }
.benefit p { margin-top: 6px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); max-width: 40ch; }
@media (max-width: 720px) { .benefits { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* ---------- Como funciona: 3 passos (é uma sequência de verdade) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; counter-reset: passo; }
.step { position: relative; padding: 24px 24px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.step::before {
  counter-increment: passo;
  content: counter(passo);
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 18px;
}
.step h3 { font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -.012em; }
.step p { margin-top: 8px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Planos ---------- */
.plans__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.billing {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  position: relative;
  isolation: isolate;
}
.billing button {
  position: relative;
  z-index: 1;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color .2s var(--ease);
  white-space: nowrap;
}
.billing button[aria-pressed="true"] { color: var(--ink); }
.billing button:focus-visible { outline-offset: -3px; }
.billing__thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: var(--surface-2);
  transition: transform .25s var(--ease);
  z-index: 0;
}
.billing[data-period="annual"] .billing__thumb { transform: translateX(100%); }
.billing__save { margin-left: 6px; font-size: 12.5px; font-weight: 600; color: var(--brand); }
.plan-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; align-items: stretch; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 26px 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.plan:hover { border-color: var(--line-strong); }
.plan--featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow-lg); }
.plan__tag { position: absolute; top: -13px; left: 24px; height: 26px; padding: 0 12px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; }
.plan__name { font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--ink-2); }
.plan__price { display: flex; align-items: baseline; gap: 4px; margin-top: 14px; }
.plan__price .cur { font-size: 20px; font-weight: 600; color: var(--ink-2); }
.plan__price .amount { font-size: 48px; line-height: 1; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; transition: opacity .2s var(--ease); }
.plan__price .per { font-size: 16px; color: var(--ink-2); }
.plan.is-switching .amount { opacity: .35; }
.plan__billed { margin-top: 8px; font-size: 14px; color: var(--ink-2); min-height: 1.45em; }
.plan__desc { margin-top: 16px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.plan__limits { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 15px; }
.plan__limits li { display: flex; gap: 10px; align-items: center; }
.plan__limits svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.plan__limits strong { font-weight: 600; }
.plan .btn { margin-top: 24px; width: 100%; }
.plan__status { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); min-height: 1.4em; }
.plans__note { margin-top: 28px; font-size: 14.5px; color: var(--ink-2); max-width: 64ch; }
@media (max-width: 960px) { .plan-cards { grid-template-columns: minmax(0, 1fr); max-width: 460px; } .plan--featured { order: -1; } }

/* ---------- Chamada final e rodapé ---------- */
.cta { padding-block: var(--section); }
.cta__box { padding: clamp(32px, 5vw, 56px); border-radius: 20px; background: var(--ink); color: var(--bg); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.cta__box .title { color: var(--bg); }
.cta__box .text { color: rgba(255, 255, 255, .78); margin-top: 10px; }
.cta__box .btn--primary { box-shadow: none; }
.cta__box .btn--primary:focus-visible { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--bg); }
.footer { border-top: 1px solid var(--line); padding-block: 36px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 32px; }
.footer__links { display: flex; gap: 6px 24px; flex-wrap: wrap; }
.footer a { color: var(--ink-2); font-size: 14.5px; }
.footer a:hover { color: var(--ink); }
.footer__meta { font-size: 14px; color: var(--ink-2); width: 100%; display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- Página de planos ---------- */
.page-head { padding-top: clamp(48px, 7vw, 96px); }
.page-head .lead { margin-top: 18px; }
.faq { display: grid; gap: 12px; margin-top: 40px; max-width: 760px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; background: var(--bg); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--ink-3); font-size: 18px; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 18px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.howto { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 40px; counter-reset: passo; }
.howto .step { padding: 20px 20px 22px; }
@media (max-width: 960px) { .howto { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .howto { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Janela do produto (hero) ----------
   A altura vem do conteúdo: a coluna mais alta (a lista, com 6 conversas
   inteiras) define a janela; as outras se esticam. Nada é cortado. */
.demo {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md), 0 30px 80px -24px rgba(20, 23, 31, .18);
  overflow: hidden;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  text-align: left;
}
.demo__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 48px;
  padding: 0 16px;
  background: var(--brand-deep);   /* mesma barra teal do CRM */
  color: #FFFFFF;
  flex: none;
}
.demo__bar .demo__search { background: rgba(255, 255, 255, .12); border-color: transparent; color: rgba(255, 255, 255, .8); }
.demo__bar .avatar--co { background: #FFFFFF; color: var(--brand-deep); }
.demo__company { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.demo__search {
  margin-inline: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 10px;
  width: min(320px, 40%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-3);
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
}
.demo__search svg { width: 14px; height: 14px; flex: none; }
.demo__user { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; white-space: nowrap; }
.demo__body {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 272px;
  flex: 1;
  min-height: 0;
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  flex: none;
}
.avatar--me { background: var(--brand-soft); color: var(--brand); }
.avatar--co { border-radius: 7px; background: var(--ink); color: var(--bg); } /* logotipo neutro da empresa fictícia */
.avatar--sm { width: 26px; height: 26px; font-size: 10px; }
.avatar--xs { width: 20px; height: 20px; font-size: 9px; }
.avatar--lg { width: 48px; height: 48px; font-size: 15px; }

.pill {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.pill--you { background: var(--ok-soft); color: var(--ok-text); }
.pill--wait { background: var(--warn-soft); color: var(--warn-text); }
.pill--closed { background: var(--surface-2); color: var(--ink-2); }

.badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--green);
  color: var(--on-green);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  display: inline-grid;
  place-items: center;
  flex: none;
}

/* Lista de conversas */
.demo__list { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.demo__tabs {
  display: flex;
  gap: 4px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  flex: none;
  overflow: hidden;
}
.demo__tabs span {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
}
.demo__tabs span.is-active { background: var(--surface-2); color: var(--ink); }
.demo__tabs b { font-family: var(--mono); font-weight: 500; font-size: 11.5px; color: var(--ink-3); }
.convos { flex: 1; }
.convo {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.convo:last-child { border-bottom: 0; }
.convo.is-active { background: var(--surface); box-shadow: inset 2px 0 0 var(--brand); }
.convo__main { min-width: 0; }
.convo__top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.convo__name { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convo__time { font-size: 11px; color: var(--ink-3); flex: none; }
.convo__bottom { display: flex; gap: 8px; align-items: center; margin-top: 2px; }
.convo__preview { color: var(--ink-2); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.convo__tags { display: flex; gap: 8px; align-items: center; margin-top: 7px; }
.convo__owner { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-2); }

/* Conversa */
.demo__chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.chat__who { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.chat__who strong { font-size: 13.5px; }
.chat__phone { font-size: 12px; color: var(--ink-2); }
.chat__actions { display: flex; gap: 8px; align-items: center; flex: none; }
.btn-mini {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.btn-mini--primary { background: var(--brand); color: var(--on-brand); border-color: transparent; }
.chat__body {
  flex: 1;
  min-height: 0;
  padding: 16px;
  background-color: var(--chat);
  background-image: radial-gradient(var(--chat-dot) 1px, transparent 1.2px);
  background-size: 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.day {
  align-self: center;
  font-size: 11px;
  color: var(--ink-2);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
  margin: 2px 0;
}
.msg {
  max-width: 78%;
  padding: 8px 12px 5px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
}
.msg p { margin: 0; }
.msg--in { align-self: flex-start; background: var(--bubble-in); box-shadow: 0 1px .5px rgba(11, 20, 26, .13); border-top-left-radius: 4px; }
.msg--out { align-self: flex-end; background: var(--bubble-out); box-shadow: 0 1px .5px rgba(11, 20, 26, .13); border-top-right-radius: 4px; }
.msg__meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  font-size: 10.5px;
  color: var(--ink-3);
}
.ticks { width: 18px; height: 11px; color: var(--ink-3); }
.ticks--read { color: var(--brand); }
.note {
  align-self: stretch;
  background: var(--warn-soft);
  border-left: 2px solid var(--warn);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.note strong { color: var(--ink); font-weight: 600; }
.chat__composer {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  align-items: center;
  flex: none;
}
.composer__input {
  flex: 1;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  color: var(--ink-3);
  font-size: 13px;
}

/* Painel do contato */
.demo__contact {
  border-left: 1px solid var(--line);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 0;
}
.contact__id { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.contact__id strong { font-size: 14px; margin-top: 2px; }
.contact__id .mono { font-size: 12.5px; color: var(--ink-2); }
.contact__fields { display: grid; gap: 10px; }
.contact__fields > div { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; align-items: center; }
.contact__fields dt { color: var(--ink-2); }
.contact__fields dd { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.contact__label { font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.contact__block p { font-size: 12.5px; color: var(--ink); line-height: 1.45; }
.contact__history li {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
}
.contact__history li:last-child { border-bottom: 1px solid var(--line); }
.contact__history .mono { color: var(--ink-2); font-size: 11.5px; flex: none; }
.contact__history .pill { margin-left: auto; }
.contact__history span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 1023px) {
  .demo__body { grid-template-columns: 280px minmax(0, 1fr); }
  .demo__contact { display: none; }
}
@media (max-width: 719px) {
  .demo__body { grid-template-columns: minmax(0, 1fr); }
  .demo__chat { display: none; }
  .demo__list { border-right: 0; }
  .demo__search { display: none; }
  .convo:nth-child(n + 6) { display: none; } /* no celular, 5 conversas inteiras */
}


/* ---------- Movimento reduzido: tudo no estado final, sem transições ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html.js .pain__thread[data-reveal] .bubble { opacity: 1; transform: none; }
}
