/* ==========================================================================
   Dr. Mosíah: "ficha" direction
   The site reads like a clinical record: porcelain paper, ink-navy type,
   hairline rules, and one teal accent. No cards, no eyebrows.
   ========================================================================== */

:root {
  --paper: #f3f7fa;
  --paper-2: #e4edf4;
  --ink: #002c60;
  --ink-2: #22395a;
  --muted: #55667c;
  --rule: #cbd9e6;
  --accent: #00777a;
  --accent-light: #5fd9d4;
  --wa: #25d366;
  --container: 1160px;
  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  /* The site is a light, printed-record piece by design; keep it light. */
  :root:not([data-theme="dark"]) { color-scheme: light; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--paper);
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--paper); }

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 1px; }
p { margin: 0 0 1em; max-width: 66ch; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 5.6vw, 5rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--accent); }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding: clamp(48px, 6vw, 80px) 0; }
.section-soft { background: var(--paper-2); }
.section-ink { background: var(--ink); color: var(--paper); }
.section-ink h2 { color: var(--paper); }
.section-ink h2 em { color: var(--accent-light); }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-body); font-weight: 600; font-size: 16px; letter-spacing: .01em;
  text-decoration: none; border: 0; cursor: pointer;
  transition: background-color .25s var(--ease-out), transform .25s var(--ease-out);
}
.btn:hover { background: var(--accent); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-wa { background: var(--wa); color: var(--ink); }
.btn-wa:hover { background: #1fb858; color: var(--ink); }
.text-link { font-weight: 600; color: var(--ink); }

/* ----- Header ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease-out);
}
.site-header.scrolled { border-bottom-color: var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 44px; height: auto; flex: none; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.brand-text small { font-size: 12.5px; color: var(--muted); }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.main-nav a:hover { color: var(--accent); }
.main-nav .nav-cta {
  color: var(--paper); background: var(--ink);
  padding: 10px 20px; border-radius: 999px;
}
.main-nav .nav-cta:hover { background: var(--accent); color: var(--paper); }

.menu-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  background: none; border: 1px solid var(--rule); border-radius: 999px; cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink);
  transition: transform .3s var(--ease-out), opacity .2s;
}
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 25px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ----- Hero ----- */
/* Desktop: the whole photo is shown at its natural proportion, full width,
   with the text set over the empty paper on the left. */
.hero { position: relative; display: grid; overflow: hidden; background: var(--paper); }
.hero-photo { grid-area: 1 / 1; margin: 0; }
.hero-photo img { width: 100%; height: auto; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--paper) 0%, rgba(243, 247, 250, .92) 30%, rgba(243, 247, 250, .35) 56%, rgba(243, 247, 250, 0) 72%);
}
.hero-inner { grid-area: 1 / 1; position: relative; z-index: 1; align-self: center; }
.hero-text { max-width: 520px; padding: clamp(56px, 8vw, 110px) 0; }
.hero-text p.hero-lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--ink-2); margin: 28px 0 36px; max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }

/* ----- Sobre ----- */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.lead-p { font-family: var(--font-display); font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.4; color: var(--ink); letter-spacing: -0.015em; }

.ficha { margin-top: 40px; border-top: 1px solid var(--ink); }
.ficha > div { display: grid; grid-template-columns: 160px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.ficha dt { font-size: 14px; font-weight: 600; color: var(--muted); }
.ficha dd { color: var(--ink); }
.ficha a { color: var(--ink); }

/* ----- Diferenciais ----- */
.section-ink .container > h2 { max-width: 20ch; }
.pillars {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: clamp(48px, 6vw, 72px);
}
.pillar { padding: 28px 28px 8px 0; border-top: 1px solid rgba(244,242,236,.22); }
.pillar + .pillar { padding-left: 28px; }
.pillar h3 { color: var(--paper); font-size: 1.45rem; }
.pillar p { color: rgba(244,242,236,.78); font-size: 16px; }

/* ----- Photo band ----- */
.photo-band { margin: 0; }
.photo-band img { width: 100%; height: clamp(280px, 46vw, 540px); object-fit: cover; object-position: center 40%; }

/* ----- Procedimentos ----- */
.procedures { margin-top: clamp(40px, 5vw, 64px); }
.procedures > li {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start;
  padding: clamp(32px, 4vw, 48px) 0; border-top: 1px solid var(--rule);
}
.procedures > li:last-child { border-bottom: 1px solid var(--rule); }
#lentes { padding-top: 0; }
#procedimentos { padding-bottom: 0; }
#lentes .procedures > li { border-top: 0; padding-top: 0; }
.procedures .case-text h3 { margin-top: 0; }
.procedures > li:nth-child(even) .case-media { order: 2; }
.procedures > li { grid-template-columns: 300px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
.procedures > li:nth-child(even) { grid-template-columns: minmax(0, 1fr) 300px; }
.case-media { width: 100%; max-width: 440px; justify-self: start; }
.procedures > li:nth-child(even) .case-media { justify-self: end; }
.case-text h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.case-text p { color: var(--ink-2); }
.tags { font-size: 15px; color: var(--muted); margin-top: 20px; }
.proc-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }

/* Before/after comparator */
.compare {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 880 / 1000; --pos: 50%;
  cursor: ew-resize; user-select: none; touch-action: pan-y;
  background: var(--paper-2);
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-label {
  position: absolute; top: 14px; z-index: 2;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(0, 44, 96, .8); color: var(--paper);
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
}
.compare-label-before { left: 14px; }
.compare-label-after { right: 14px; }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; z-index: 3;
  background: var(--paper); transform: translateX(-1px);
}
.compare-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 36px; height: 36px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: var(--paper); box-shadow: 0 6px 18px -6px rgba(0, 44, 96, .5);
}
.compare-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; max-width: none; }

/* ----- Procedimentos: cada tratamento aberto ao rolar ----- */
.procedures .case-media { max-width: 300px; }
.procedures .proc-img { aspect-ratio: 1 / 1; object-fit: cover; object-position: 100% 50%; border-radius: 16px; }

/* ----- Dúvidas ----- */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  position: relative; cursor: pointer; list-style: none;
  padding: 24px 56px 24px 0;
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; line-height: 1.35; letter-spacing: -0.01em;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 1.5px;
  background: var(--ink); transform: translateY(-50%);
  transition: transform .35s var(--ease-out);
}
.faq summary::after { transform: translateY(-50%) rotate(90deg); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(0deg); }
.faq summary:hover { color: var(--accent); }
.faq details p { padding: 0 48px 26px 0; color: var(--ink-2); max-width: 60ch; }

/* ----- Contato ----- */
.contato { background: var(--paper-2); }
.contato .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.contato h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.contato .contact-main p { font-size: 1.1rem; margin: 20px 0 32px; color: var(--ink-2); }
.contato .ficha { margin-top: 0; }
.map-box { margin: 48px 0 0; aspect-ratio: 16 / 9; border: 1px solid var(--rule); border-radius: 16px; background: var(--paper-2); overflow: hidden; display: grid; place-items: center; }
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.contato .map-actions { grid-column: 1 / -1; margin: 24px 0 0; }
.contato .map-box { grid-column: 1 / -1; aspect-ratio: 16 / 6; margin-top: clamp(48px, 6vw, 80px); }
.contato .ficha dd { font-size: 16px; line-height: 1.6; }

/* ----- Footer ----- */
.site-footer { padding: 48px 0 96px; background: var(--paper); border-top: 1px solid var(--rule); }
.footer-inner { display: grid; gap: 20px; }
.disclaimer { font-size: 14px; color: var(--muted); margin: 0; max-width: 70ch; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer nav a { color: var(--ink-2); font-size: 15px; text-decoration: none; }
.site-footer nav a:hover { color: var(--accent); }
.copy { font-size: 13px; color: var(--muted); margin: 0; }

/* ----- WhatsApp pill ----- */
.whatsapp-pill {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px 14px 16px; border-radius: 999px;
  background: var(--wa); color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: 15px;
  box-shadow: 0 14px 30px -14px rgba(0, 44, 96, .55);
  transition: transform .3s var(--ease-out);
}
.whatsapp-pill:hover { transform: translateY(-2px); }
.whatsapp-pill svg { width: 22px; height: 22px; flex: none; }

/* ----- One authored moment: hero entrance ----- */
.js .hero-text > * { animation: rise .9s var(--ease-out) both; }
.js .hero-text > :nth-child(2) { animation-delay: .08s; }
.js .hero-text > :nth-child(3) { animation-delay: .16s; }
.js .hero-photo { animation: rise 1.1s var(--ease-out) .12s both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* ----- Responsive ----- */
@media (max-width: 1000px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(odd) { padding-left: 0; }
  .pillar:nth-child(even) { padding-left: 28px; }
  .pillar:nth-child(3) { border-top-color: rgba(244,242,236,.22); }
}

@media (max-width: 860px) {
  .split, .contato .container, .procedures > li { grid-template-columns: 1fr; }
  .procedures > li:nth-child(even) { grid-template-columns: 1fr; }
  .contato .map-box { aspect-ratio: 4 / 3; }
  .procedures > li:nth-child(even) .case-media { order: 0; justify-self: start; }
  .hero { display: block; }
  .hero-photo::after { background: linear-gradient(180deg, rgba(243, 247, 250, 0) 55%, var(--paper) 100%); }
  .hero-inner { position: relative; }
  .hero-text { padding: 28px 0 64px; }
  .case-media { max-width: 100%; }
  .compare { max-width: 440px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 8px 20px 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), visibility .25s;
  }
  .menu-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .main-nav a { padding: 16px 0; border-bottom: 1px solid var(--rule); font-size: 17px; }
  .main-nav .nav-cta { margin-top: 16px; text-align: center; border-bottom: 0; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 24px 0; }
  .ficha > div { grid-template-columns: 1fr; gap: 4px; }
  .faq summary { font-size: 1.1rem; }
}

@media (max-width: 380px) {
  .brand-text small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ----- Triagem de agendamento ----- */
.triagem { padding: clamp(48px, 6vw, 88px) 0 clamp(64px, 8vw, 110px); }
.triagem-inner { max-width: 760px; }
.triagem-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 8px 0 16px; }
.triagem-head .lead-p { font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.triagem-form { margin-top: clamp(32px, 4vw, 48px); display: grid; gap: 28px; }
.pergunta { border: 0; margin: 0; padding: 0; min-width: 0; }
.pergunta legend { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--ink); margin-bottom: 14px; padding: 0; }
.opcoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.opcoes label, .campos label { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 12px; background: #fff; cursor: pointer; color: var(--ink-2); font-size: 16px; }
.opcoes label:hover { border-color: var(--accent); }
.opcoes input[type="radio"] { width: 18px; height: 18px; accent-color: var(--accent); flex: none; margin: 0; }
.opcoes label:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); color: var(--ink); font-weight: 600; }
.campos { display: grid; gap: 14px; }
.campos label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: default; }
.campos input { font: inherit; font-size: 16px; font-weight: 400; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 12px; background: #fff; color: var(--ink); min-width: 0; }
.campos input:focus-visible, .opcoes input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.privacidade { font-size: 13px; color: var(--muted); margin: 14px 0 0; max-width: none; }
.urgencia { margin-top: 24px; padding: 16px 20px; border-radius: 12px; background: var(--paper-2); border-left: 4px solid var(--ink); color: var(--ink); font-size: 15px; }
.triagem-acao { display: grid; gap: 12px; justify-items: start; }
.triagem-acao .btn { cursor: pointer; border: 0; font: inherit; }
.erro { margin: 0; color: var(--ink); font-size: 14px; font-weight: 600; }

/* ----- Triagem: uma pergunta por vez ----- */
[hidden] { display: none !important; }
.progresso { margin: 28px 0 8px; }
.progresso p { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.barra { height: 6px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.barra span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .3s var(--ease-out); }
.triagem-form .pergunta { min-height: 0; }
.pergunta[hidden] { display: none !important; }
.opcoes label { font-size: 17px; padding: 16px 18px; }
.triagem-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.triagem-nav .text-link { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.triagem-nav .btn { cursor: pointer; border: 0; font: inherit; }
.sair-triagem { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--rule); }
.sair-triagem p { margin: 0 0 10px; font-size: 15px; color: var(--muted); }
.sair-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.confirmacao { margin-top: 32px; display: grid; gap: 18px; justify-items: start; }
.confirmacao h2 { margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.confirmacao h2:focus { outline: none; }
.confirmacao .btn { cursor: pointer; }

/* ----- Chat de triagem (flutuante, uma pergunta por vez) ----- */
.chat-overlay { position: fixed; inset: 0; background: rgba(0, 44, 96, .35); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease-out); z-index: 80; }
.chat-overlay.aberto { opacity: 1; pointer-events: auto; }
.chat-painel { position: fixed; right: 20px; bottom: 20px; width: min(400px, calc(100vw - 40px)); height: min(640px, calc(100vh - 40px)); background: var(--paper); border-radius: 20px; box-shadow: 0 24px 60px -20px rgba(0, 44, 96, .45); display: flex; flex-direction: column; overflow: hidden; transform: translateY(24px); opacity: 0; pointer-events: none; transition: transform .3s var(--ease-out), opacity .3s var(--ease-out); z-index: 81; }
.chat-painel.aberto { transform: none; opacity: 1; pointer-events: auto; }
.chat-cab { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--rule); background: #fff; }
.chat-marca { width: 40px; height: 40px; flex: none; }
.chat-titulos { display: grid; flex: 1; min-width: 0; }
.chat-titulos strong { font-family: var(--font-display); color: var(--ink); font-size: 16px; }
.chat-titulos small { color: var(--accent); font-size: 13px; }
.chat-fechar { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--rule); background: none; color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; flex: none; }
.chat-fechar:focus-visible, .chat-opcao:focus-visible, .chat-input:focus-visible, .chat-enviar:focus-visible, .chat-enviar-wa:focus-visible, .chat-sair:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chat-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.chat-bolha { max-width: 85%; padding: 12px 15px; border-radius: 16px; font-size: 15px; line-height: 1.5; white-space: pre-line; animation: chat-entra .3s var(--ease-out) both; }
.chat-bot { align-self: flex-start; background: var(--paper-2); color: var(--ink); border-bottom-left-radius: 4px; }
.chat-eu { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.chat-digitando { letter-spacing: 3px; font-weight: 700; color: var(--muted); }
@keyframes chat-entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.chat-area { padding: 14px 18px 8px; border-top: 1px solid var(--rule); background: #fff; max-height: 45%; overflow-y: auto; }
.chat-area:empty { display: none; }
.chat-opcoes { display: grid; gap: 8px; }
.chat-opcao { text-align: left; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; }
.chat-opcao:hover { border-color: var(--accent); }
.chat-campo { display: flex; gap: 8px; }
.chat-input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); color: var(--ink); }
.chat-enviar, .chat-enviar-wa { font: inherit; font-weight: 600; border: 0; border-radius: 12px; background: var(--ink); color: var(--paper); cursor: pointer; }
.chat-enviar { padding: 0 18px; }
.chat-enviar-wa { display: block; text-align: center; text-decoration: none; padding: 14px 16px; background: var(--wa); color: var(--ink); }
.chat-rodape { padding: 12px 18px 16px; border-top: 1px solid var(--rule); background: #fff; display: grid; gap: 6px; }
.chat-sair { font-size: 14px; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.chat-privacidade { margin: 0; font-size: 12px; color: var(--muted); }
@media (max-width: 560px) {
  .chat-painel { right: 0; left: 0; bottom: 0; width: 100%; height: 88vh; border-radius: 20px 20px 0 0; }
  .chat-privacidade { display: none; }
  .chat-area { max-height: 50%; }
}
