:root {
  --bg:       #ffffff;
  --bg-alt:   #f5f0ea;
  --text:     #1d1a16;
  --muted:    #6c6057;   /* texto de apoio: 6,09:1 em --bg, 5,37:1 em --bg-alt */
  --mid:      var(--muted);   /* alias antigo */
  --light:    var(--muted);   /* alias antigo (era #756960) */
  --border:   #ddd4c6;
  --photo-bg: #e8ddd0;   /* fundo enquanto a foto carrega */
  --wa:       #0f7a40;   /* verde WhatsApp escurecido: branco sobre ele >= 4,5:1 (#25d366 dava 1,98:1) */
  --wa-hover: #0c6634;
  --wa-text:  #177f41;   /* link verde sobre branco: 5,1:1 */
  --r-sm:     6px;
  --r-md:     14px;
  --r-full:   999px;
  --btn-bg:   #211b15;
  --btn-fg:   #f3ede2;
  --serif:    'Cormorant Garamond', Georgia, serif;
  --sans:     'DM Sans', system-ui, sans-serif;
  /* room palette */
  --room-top:   #c9b89a;
  --room-mid:   #b09074;
  --room-deep:  #8c7560;
  --room-dark:  #6b5844;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--nav-h, 152px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
img { max-width: 100%; }
picture { display: contents; }

/* foco visível e consistente em todo elemento interativo */
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--room-deep); outline-offset: 3px; border-radius: var(--r-sm);
}
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 300;
  background: var(--btn-bg); color: var(--btn-fg); padding: 12px 18px; border-radius: var(--r-sm);
  text-decoration: none; font-size: 15px;
}
.skip-link:focus { top: 12px; }
body {
  margin: 0; font-family: var(--sans);
  background: var(--bg); color: var(--text);
  line-height: 1.7; font-size: 19px;
}
a { color: inherit; }

/* ── NAV ── */
/* o <header> é o elemento sticky (sticky no <nav> interno ficaria preso à altura do header) */
.site-header { position: sticky; top: 0; z-index: 100; }
.site-header nav {
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 0 clamp(20px, 5vw, 88px);
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h, 152px); gap: 16px;
}
.logo { text-decoration: none; display: flex; align-items: center; }
.logo img { height: 138px; width: auto; display: block; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: none; font-size: 16px; color: var(--text);
  opacity: .7; transition: opacity .18s;
}
.nav-links a:hover { opacity: 1; }

.btn-pill {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px;
  background: var(--btn-bg); color: var(--btn-fg);
  padding: 10px 22px; border-radius: var(--r-full); font-size: 14px;
  font-weight: 400; text-decoration: none; border: none; cursor: pointer;
  white-space: nowrap; transition: opacity .18s; font-family: var(--sans);
}
.btn-pill:hover { opacity: .82; }
.btn-pill svg { flex-shrink: 0; }

/* ── HERO ── */
/* foto full-bleed em toda a faixa (nav → fim do hero); texto numa camada parada por cima, à esquerda.
   Altura: ~min(92vh, 860px), mín. 560px, sem passar da 1ª dobra abaixo da nav sticky. */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: center;
  min-height: clamp(560px, 92vh, 860px);
  background: var(--photo-bg);
}

.hero-text {
  grid-area: 1 / 1; position: relative; z-index: 2;
  width: min(100%, 680px);
  padding: clamp(32px, 4vw, 60px) clamp(20px, 5vw, 88px);  /* esquerda alinhada ao logo da nav */
  display: flex; flex-direction: column; justify-content: center;
}
.hero-cta { align-self: flex-start; }
.eyebrow {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--mid); margin: 0 0 20px;
}
.hero-h1 {
  font-family: var(--serif); font-size: clamp(56px, 5.5vw, 78px);
  font-weight: 400; line-height: 1.15; margin: 0 0 4px; text-wrap: balance; /* 1.0/1.1 aproximavam a cedilha de "espaço" do acento de "você" */
}
.hero-rule { display: block; width: 48px; height: 1px; background: var(--border); margin: 22px 0 24px; }
.hero-sub {
  font-family: var(--sans); font-size: clamp(22px, 1.8vw, 26px);
  font-weight: 400; color: var(--muted); margin: 0 0 14px; line-height: 1.45;
}
.hero-body {
  font-size: clamp(18px, 1.8vw, 24px); color: var(--mid); max-width: 540px;
  margin: 0 0 36px; line-height: 1.75;
}

/* ── HERO MEDIA (foto de fundo = LCP; "foto 3D" WebGL por cima em assets/js/hero-depth.js) ── */
.hero-media {
  grid-area: 1 / 1; align-self: stretch; position: relative; z-index: 0;
  overflow: hidden; background: var(--photo-bg);
  --hero-bleed: 12px;   /* folga acima: as bordas do deslocamento por profundidade ficam fora da área visível */
}
.hero-media picture { display: block; position: absolute; inset: calc(-1 * var(--hero-bleed)) 0 0 0; }
.hero-media img.hero-photo {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: 72% 0%;   /* topo da foto: o quadro com a frase começa no alto da imagem */
  transform: scale(1.06);                        /* mesma escala base do shader: o canvas entra sem salto */
  transform-origin: 50% 0;                       /* o zoom cresce para baixo e para os lados, nunca corta o quadro */
}
.hero-media canvas.hero-depth {
  position: absolute; inset: calc(-1 * var(--hero-bleed)) 0 0 0; display: block;
  width: 100%; height: calc(100% + var(--hero-bleed));
  opacity: 0; transition: opacity .6s ease;      /* só aparece depois do 1º quadro desenhado */
}
.hero-media canvas.hero-depth.is-ready { opacity: 1; }
/* véu claro da esquerda: texto escuro legível sobre janela/planta, quadro livre à direita */
.hero-media::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  /* paradas em px: a coluna de texto tem no máx. 680 px em qualquer largura → véu ≥ .92 sob todo o texto */
  background: linear-gradient(90deg,
    rgba(255,255,255,.95) 0, rgba(255,255,255,.92) 640px,
    rgba(255,255,255,.55) 760px, rgba(255,255,255,.15) 880px, rgba(255,255,255,0) 1000px);
}
.hero-quote-box { display: none; }   /* o quadro da própria foto já mostra a frase */
.hero-italic {
  position: absolute; z-index: 2; right: max(132px, 7vw); bottom: clamp(24px, 3.5vw, 44px);  /* ≥ 132 px: fora da coluna da bolha flutuante (22 + 84 px) */
  font-family: var(--serif); font-style: italic; font-size: clamp(18px, 1.4vw, 22px);
  font-weight: 400; color: #3b3027; text-align: right; line-height: 1.4;
  padding: 8px 16px; border-radius: 10px;
  background: rgba(250,245,236,.74);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 10px 26px -12px rgba(60,42,24,.3);
  pointer-events: none;
}

/* ── SHARED ── */
.section { padding: clamp(56px, 7vw, 104px) clamp(20px, 6vw, 96px); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section-head--left { text-align: left; max-width: 760px; margin: 0 auto 48px; }
.section-cta { display: flex; justify-content: center; margin-top: 52px; }
.section-h2 {
  font-family: var(--serif); font-size: clamp(44px, 3.8vw, 54px);
  font-weight: 400; margin: 0 0 14px; text-wrap: balance;
}
.section-sub { font-size: 18px; color: var(--mid); margin: 0; line-height: 1.7; }

/* ── PARA QUEM ── */
.section-light { background: var(--bg-alt); }
.cards {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; max-width: 1080px; margin: 0 auto;
}
.card {
  display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 14px; padding: 8px 10px;
}
.card-icon-wrap {
  width: 90px; height: 90px; border-radius: 50%;
  background: var(--bg); display: flex; align-items: center;
  justify-content: center; color: var(--mid); flex-shrink: 0;
}
.card h3 {
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  margin: 0; line-height: 1.25;
}
.card p { font-size: 17px; color: var(--mid); margin: 0; line-height: 1.65; }

/* ── SOBRE MIM ── */
.about-wrap {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 64px; align-items: start; max-width: 960px; margin: 0 auto;
}
.about-photo {
  width: 280px; height: 350px; border-radius: var(--r-sm);
  flex-shrink: 0; overflow: hidden; position: relative;
  background: var(--photo-bg);
}
.about-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 8%;
  display: block;
}

.about-eyebrow {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--mid); margin: 0 0 14px;
}
.about-h2 {
  font-family: var(--serif); font-size: clamp(32px, 3vw, 46px);
  font-weight: 400; margin: 0 0 18px; line-height: 1.1; text-wrap: balance;
}
.about-p { font-size: 18px; color: var(--mid); margin: 0 0 16px; line-height: 1.75; }
.credentials {
  display: flex; align-items: center; gap: 10px; font-size: 14px;
  color: var(--mid); letter-spacing: .04em;
  margin: 22px 0 26px; padding-top: 18px; border-top: 1px solid var(--border);
}
.credentials span.sep { opacity: .3; }
.btn-outline {
  display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--text);
  border: 1px solid var(--text); padding: 9px 22px; border-radius: var(--r-full);
  font-size: 14px; font-family: var(--sans); transition: background .18s, color .18s;
}
.btn-outline:hover { background: var(--text); color: var(--bg); }
/* frase de apoio na coluna do texto, abaixo do botão (antes caía órfã sob a foto) */
.about-aside { text-align: left; margin-top: 32px; }
.about-aside-quote {
  font-family: var(--serif); font-style: italic; font-size: 21px;
  font-weight: 300; color: var(--light); line-height: 1.6; margin: 0;
}

/* ── COMO FUNCIONA ── */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 48px; max-width: 860px; margin: 0 auto;
}
.step { display: flex; align-items: flex-start; gap: 22px; }
.step-num {
  width: 62px; height: 62px; border-radius: 50%; border: 1px solid var(--room-deep); /* 3,8:1 em --bg-alt (era --border 1,30:1) */
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 28px; font-weight: 400;
  color: var(--mid); flex-shrink: 0;
}
.step h3 {
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  margin: 0 0 7px; line-height: 1.2;
}
.step p { font-size: 17px; color: var(--mid); margin: 0; line-height: 1.65; }

/* ── ATENDIMENTO ── */
.features {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 28px; max-width: 960px; margin: 0 auto;
}
.feature { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.feature svg { color: var(--mid); }
.feature h3 { font-family: var(--serif); font-size: 22px; font-weight: 500; margin: 0; line-height: 1.25; }
.feature p { font-size: 17px; color: var(--mid); margin: 0; line-height: 1.6; }

/* ── CTA BANNER ── */
.cta-banner {
  padding: clamp(40px, 5vw, 62px) clamp(24px, 6vw, 96px);
  position: relative; overflow: hidden;
  background: #d4c9b8;
  height: 528px;
  display: flex; align-items: center;
}
.cta-banner-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 61%;
  display: block;
}
/* dark overlay so text reads on photo */
.cta-banner::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg,
    rgba(30,24,16,.84) 0%,
    rgba(30,24,16,.78) 38%,
    rgba(30,24,16,.45) 58%,
    rgba(30,24,16,.12) 78%,
    transparent 100%);
}
/* folhas decorativas: fora do fluxo (antes eram item flex e empurravam o texto para a direita, sobre a parte clara da foto) */
.cta-leaves { position: absolute; right: 0; top: 0; height: 100%; width: auto; z-index: 1; pointer-events: none; }
/* book stack suggestion on right */
.cta-books { display: none; }

.cta-inner { position: relative; z-index: 3; max-width: 560px; }
.cta-h2 {
  font-family: var(--serif); font-size: clamp(30px, 3.8vw, 50px);
  font-weight: 400; color: #f5ede0; margin: 0 0 12px; line-height: 1.15; text-wrap: balance;
}
.cta-sub { font-size: 17px; color: rgba(245,237,224,.95); margin: 0 0 28px; }


/* ── FAQ ── */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  padding: 22px 0; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; color: var(--text); line-height: 1.3;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+'; font-family: var(--sans); font-size: 22px;
  font-weight: 300; color: var(--mid); flex-shrink: 0;
  transition: transform .2s;
}
details[open] .faq-q::after { content: '−'; }
.faq-a {
  font-size: 17px; color: var(--mid); line-height: 1.75;
  margin: 0 0 22px; max-width: 640px;
}

/* ── FOOTER ── */
footer {
  background: var(--bg); border-top: 1px solid var(--border);
  /* padding-right reserva o espaço da bolha flutuante (foto da Aline ou WhatsApp) */
  padding: 28px max(clamp(20px, 6vw, 88px), 128px) 28px clamp(20px, 6vw, 88px);  /* 128 = 22 + bolha 84 + 22 */
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.footer-links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.footer-links a {
  display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 15px; color: var(--text); opacity: .65;
}
.footer-links a:hover { opacity: 1; }
.footer-social { display: flex; align-items: center; gap: 4px; margin: 0 -12px; }
.footer-social a {
  color: var(--mid); transition: color .18s;
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
}
.footer-social a:hover { color: var(--text); }
.footer-legal { font-size: 13px; color: var(--light); text-align: right; line-height: 1.6; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  :root { --nav-h: 88px; }
  .logo img { height: 72px; }
  /* mobile: foto em cima na largura toda (mostra o quadro), texto abaixo sobre branco */
  .hero { min-height: 0; align-items: start; background: var(--bg); }
  .hero-media { grid-area: auto; order: -1; height: max(56vw, 280px); --hero-bleed: 0px; }
  .hero-media img.hero-photo { object-position: 80% 0%; }
  .hero-media::after { background: linear-gradient(to bottom, transparent 70%, rgba(255,255,255,.35) 100%); }
  .hero-text { grid-area: auto; width: 100%; padding: 32px 20px 48px; background: var(--bg); }
  .hero-italic { display: none; }   /* sobre a foto pequena competiria com o quadro */
  .cards { grid-template-columns: 1fr 1fr; gap: 24px; }
  .about-wrap { grid-template-columns: 1fr; text-align: left; gap: 28px; }
  /* retrato 4:5 com largura limitada: em 768 px a faixa 100% × 340 px cortava o rosto na altura dos olhos */
  .about-photo { width: 100%; max-width: 420px; height: auto; aspect-ratio: 4 / 5; }
  .credentials { justify-content: flex-start; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .features { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .footer-links { display: none; }
  footer { justify-content: space-between; }
  .footer-legal { text-align: right; }
  .cta-leaves { display: none; }
  /* no mobile o texto ocupa a largura toda: véu uniforme para manter contraste AA sobre a parte clara da foto */
  .cta-banner { height: auto; min-height: 528px; }
  .cta-banner-bg { object-position: 62% 61%; }
  .cta-banner::before { background: linear-gradient(90deg, rgba(30,24,16,.76), rgba(30,24,16,.66)); }
}
@media (max-width: 480px) {
  :root { --nav-h: 72px; }
  .site-header nav { padding: 0 16px; gap: 12px; }
  .logo img { height: 58px; }
  nav .btn-pill { padding: 10px 16px; font-size: 13.5px; }
  .cards { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; gap: 20px; }
  /* rodapé empilhado: sobra espaço embaixo para o conteúdo não ficar sob as bolhas fixas */
  footer { flex-direction: column; align-items: flex-start; padding: 28px 20px 150px; }
  .footer-legal { text-align: left; }
}

/* ── WHATSAPP FLUTUANTE ── */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.22);
  text-decoration: none; transition: transform .18s, box-shadow .18s;
}
.wa-float:hover { transform: scale(1.07); box-shadow: 0 6px 22px rgba(0,0,0,.28); }
/* um único flutuante: chat.js monta a bolha com a foto e põe .has-bubble no <html> (sem JS o WhatsApp fica) */
.has-bubble .wa-float, .has-ai .wa-float { display: none; }
@media (max-width: 480px) {
  .wa-float { right: 16px; bottom: 16px; width: 76px; height: 76px; }
  .wa-float svg { width: 38px; height: 38px; }
}

/* ── BOLHA DA ALINE + ASSISTENTE DE IA (assets/js/chat.js) ──
   A bolha (foto + bolinha verde de online) existe sempre que há JS e ocupa o lugar do .wa-float.
   Com data-endpoint abre o painel da assistente; sem endpoint é um link para o WhatsApp. */
.ai-chat-bubble {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  width: 84px; height: 84px; border-radius: 50%; padding: 0;
  border: 0; cursor: pointer; background: var(--photo-bg);
  box-shadow: 0 4px 16px rgba(0,0,0,.22);
  transition: transform .18s, box-shadow .18s;
  display: block; text-decoration: none;
}
.ai-chat-bubble picture { display: block; width: 100%; height: 100%; line-height: 0; }
.ai-chat-bubble-img {
  display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
}
/* bolinha "online": verde vivo, borda branca, canto inferior direito, pulso suave */
.ai-chat-bubble::after {
  content: ''; position: absolute; right: 3px; bottom: 3px;
  width: 16px; height: 16px; border-radius: 50%; box-sizing: border-box;
  background: #22c55e; border: 3px solid #fff;
  box-shadow: 0 0 0 0 rgba(34,197,94,.55);
  animation: ai-online 2.4s ease-out infinite;
}
@keyframes ai-online { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(34,197,94,0); } }
/* dica ao lado da bolha (1ª visita da sessão; some em ~6 s ou ao rolar) */
.ai-chat-tip {
  position: fixed; right: 120px; bottom: 44px; z-index: 199;
  max-width: calc(100vw - 150px); padding: 10px 16px; border-radius: var(--r-md);
  background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.35;
  border: 1px solid var(--border); box-shadow: 0 8px 24px -8px rgba(29,26,22,.3);
  pointer-events: none; white-space: nowrap;
  opacity: 0; transform: translateX(6px); transition: opacity .3s ease, transform .3s ease;
}
.ai-chat-tip.is-on { opacity: 1; transform: none; }
.ai-chat-tip::after {
  content: ''; position: absolute; right: -6px; top: 50%; width: 10px; height: 10px; margin-top: -5px;
  background: var(--bg); border: solid var(--border); border-width: 1px 1px 0 0; transform: rotate(45deg);
}
.ai-chat-open .ai-chat-tip { display: none; }
.ai-chat-bubble:hover { transform: scale(1.07); box-shadow: 0 6px 22px rgba(0,0,0,.28); }
.ai-chat-bubble:focus-visible,
.ai-chat-panel button:focus-visible,
.ai-chat-panel a:focus-visible,
.ai-chat-input:focus-visible,
.ai-chat-log:focus-visible { outline: 2px solid var(--room-deep); outline-offset: 2px; }
.ai-chat-icon { display: inline-flex; line-height: 0; }

.ai-chat-panel {
  position: fixed; right: 22px; bottom: 118px; z-index: 210;
  width: 370px; max-width: calc(100vw - 32px);
  height: 600px; max-height: calc(100vh - 142px); max-height: calc(100dvh - 142px);
  display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: 0 12px 40px rgba(29,26,22,.22);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  overflow: hidden;
}
.ai-chat-panel[hidden] { display: none; }
.ai-chat-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 12px 12px 16px; background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.ai-chat-header-img { flex: none; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.ai-chat-heading { flex: 1 1 auto; min-width: 0; }
.ai-chat-title { font-family: var(--serif); font-weight: 600; font-size: 20px; line-height: 1.15; margin: 0; }
.ai-chat-sub {
  margin: 2px 0 0; font-size: 13px; color: var(--mid); line-height: 1.4;
}
.ai-chat-close {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: transparent; color: var(--mid); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.ai-chat-close:hover { background: var(--bg); color: var(--text); }

.ai-chat-log {
  flex: 1 1 auto; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  overscroll-behavior: contain;
}
.ai-chat-msg {
  max-width: 88%; padding: 10px 14px; border-radius: var(--r-md);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.ai-chat-msg a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ai-chat-msg--assistant { align-self: flex-start; background: var(--bg-alt); border-bottom-left-radius: 4px; }
.ai-chat-msg--user { align-self: flex-end; background: var(--btn-bg); color: var(--btn-fg); border-bottom-right-radius: 4px; }
.ai-chat-msg--error { border: 1px solid var(--border); }
.ai-chat-row { display: flex; align-items: flex-end; gap: 8px; max-width: 94%; }
.ai-chat-row .ai-chat-msg { max-width: none; }
.ai-chat-msg-img { flex: none; width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }

/* card de conclusão da triagem (link do WhatsApp com o resumo) */
.ai-chat-lead {
  margin: 4px 0 0 34px; padding: 14px; border-radius: var(--r-md);
  background: var(--bg); border: 1px solid var(--room-top);
  box-shadow: 0 2px 10px rgba(29,26,22,.06);
}
.ai-chat-lead-title { margin: 0 0 6px; font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.2; }
.ai-chat-lead-preview {
  margin: 0 0 12px; padding: 10px 12px; border-radius: var(--r-sm);
  background: var(--bg-alt); color: var(--mid); font-size: 13.5px; line-height: 1.5;
  white-space: pre-wrap; overflow-wrap: anywhere; max-height: 160px; overflow-y: auto;
}
.ai-chat-lead-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 16px; border-radius: var(--r-full);
  background: var(--wa); color: #fff; font-weight: 600; font-size: 15.5px;
  text-decoration: none; text-align: center; line-height: 1.25;
  transition: background .15s, transform .15s;
}
.ai-chat-lead-btn:hover { background: var(--wa-hover); }
.ai-chat-lead-icon { display: inline-flex; line-height: 0; }
.ai-chat-lead-icon svg { width: 25px; height: 25px; }
.ai-chat-lead-note { margin: 8px 0 0; font-size: 12.5px; color: var(--light); text-align: center; }

.ai-chat-suggestions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ai-chat-chip {
  font: inherit; font-size: 14.5px; text-align: left; cursor: pointer;
  min-height: 44px; padding: 8px 16px; border-radius: var(--r-full);
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
  transition: background .15s, border-color .15s;
}
.ai-chat-chip:hover { background: var(--bg-alt); border-color: var(--room-top); }

.ai-chat-typing { display: flex; gap: 5px; padding: 0 16px 10px 50px; }
.ai-chat-typing[hidden] { display: none; }
.ai-chat-typing span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--light);
  animation: ai-chat-dot 1.2s infinite ease-in-out;
}
.ai-chat-typing span:nth-child(2) { animation-delay: .15s; }
.ai-chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes ai-chat-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) {
  .ai-chat-typing span { animation: none; opacity: .7; }
  .ai-chat-bubble, .ai-chat-bubble:hover { transition: none; transform: none; }
  .ai-chat-bubble::after { animation: none; }
  .ai-chat-tip { transition: none; transform: none; }
}
.ai-chat-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.ai-chat-form {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 10px 12px; border-top: 1px solid var(--border);
}
.ai-chat-input {
  flex: 1 1 auto; resize: none; min-height: 48px; max-height: 120px;
  font: inherit; font-size: 16px; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--r-md); padding: 9px 12px;
}
.ai-chat-input:disabled { background: var(--bg-alt); color: var(--muted); }
.ai-chat-input:focus { border-color: var(--room-mid); outline: none; }
.ai-chat-send {
  flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-fg);
  display: flex; align-items: center; justify-content: center;
}
.ai-chat-send:disabled { opacity: .5; cursor: default; }
.ai-chat-privacy { margin: 0; padding: 0 16px 2px; font-size: 12px; line-height: 1.45; color: var(--muted); text-align: center; }
.ai-chat-footer {
  padding: 4px 16px 10px; text-align: center; background: var(--bg);
}
.ai-chat-wa {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-size: 14px; color: var(--wa-text); font-weight: 500; text-decoration: none;
}
.ai-chat-wa:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .ai-chat-bubble { right: 16px; bottom: 16px; width: 76px; height: 76px; }
  .ai-chat-bubble::after { width: 15px; height: 15px; right: 2px; bottom: 2px; }
  .ai-chat-tip { right: 104px; bottom: 36px; font-size: 14px; max-width: calc(100vw - 124px); }
  .ai-chat-panel {
    left: 8px; right: 8px; top: 8px; bottom: 8px;
    width: auto; max-width: none; height: auto; max-height: none;
    border-radius: 14px;
  }
  .ai-chat-open .ai-chat-bubble,
  .ai-chat-open .wa-float { display: none; }
}

/* ── T11: conteúdo para pais, novas seções, placeholders, reduzir movimento ── */
/* placeholders a preencher pela Aline: amarelo-claro, fáceis de achar (buscar "[" ou class="ph") */
mark.ph {
  background: #fff1a8; color: #3d3200; font: inherit; padding: 0 .28em; border-radius: 4px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
/* hero: h1 com palavra-chave é mais longo que o antigo → corpo menor */
.hero-h1 { font-size: clamp(38px, 3.7vw, 58px); line-height: 1.12; }
.hero-id { font-size: 15px; color: var(--text); margin: -8px 0 18px; letter-spacing: .02em; }
.hero-sub { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2vw, 28px); color: var(--text); }
.hero-body { margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.hero-link {
  display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; color: var(--text);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.hero-link:hover { text-decoration-thickness: 2px; }
.cta-note { font-size: 14px; color: var(--muted); margin: 12px 0 0; line-height: 1.5; max-width: 520px; }
/* botão do topo: rótulo curto no celular */
.btn-label-short { display: none; }
@media (max-width: 480px) { .btn-label-long { display: none; } .btn-label-short { display: inline; } }
@media (min-width: 901px) and (max-width: 1240px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 15px; }
  .site-header .logo img { height: 110px; }
}
@media (min-width: 901px) and (max-width: 1100px) { .nav-links li:nth-child(n+5) { display: none; } }

.about-lead { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--text); margin: -6px 0 18px; line-height: 1.35; }
.credentials { flex-wrap: wrap; }

/* "Como é a primeira conversa" dentro de Como funciona */
.prep {
  max-width: 860px; margin: 56px auto 0; padding: 28px 32px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-md);
}
.prep-h3 { font-family: var(--serif); font-size: 26px; font-weight: 500; margin: 0 0 12px; line-height: 1.2; }
.prep-list { margin: 0; padding-left: 1.2em; color: var(--mid); font-size: 17px; line-height: 1.65; }
.prep-list li { margin: 0 0 8px; }
.prep-list strong { color: var(--text); font-weight: 500; }

.features--3 { grid-template-columns: repeat(3, 1fr); max-width: 900px; }
.section-cta--pair { flex-wrap: wrap; gap: 14px 18px; align-items: center; }

/* Onde atendo */
.place-wrap {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center;
  max-width: 1040px; margin: 0 auto;
}
.place-p { font-size: 18px; color: var(--mid); margin: 0 0 14px; line-height: 1.7; }
.place-card {
  font-style: normal; background: var(--bg-alt); border-radius: var(--r-md); padding: 28px 30px;
  border: 1px solid var(--border);
}
.place-name { font-family: var(--serif); font-size: 24px; font-weight: 500; margin: 0 0 8px; line-height: 1.2; }
.place-addr, .place-tel { font-size: 17px; color: var(--mid); margin: 0 0 12px; line-height: 1.6; }
.place-tel a { color: var(--text); }
.place-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* rodapé: identificação CFP, emergência, privacidade, reduzir movimento */
.footer-legal p { margin: 0; }
.footer-legal a { color: var(--text); }
.footer-id { color: var(--text); font-size: 14px; }
.motion-toggle {
  background: none; border: 0; padding: 0; min-height: 32px; font: inherit; color: var(--text);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.motion-toggle[aria-pressed="true"] { font-weight: 500; }

@media (max-width: 900px) {
  .features--3 { grid-template-columns: 1fr; max-width: 520px; }
  .place-wrap { grid-template-columns: 1fr; gap: 28px; }
  .prep { padding: 22px 20px; margin-top: 40px; }
}
@media (max-width: 480px) {
  .hero-h1 { font-size: 36px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 6px; }
  .place-card { padding: 22px 20px; }
}

/* celular: a bolha e a dica só aparecem depois que o CTA do hero sai da tela (chat.js põe .bubble-hold) */
.bubble-hold .ai-chat-bubble, .bubble-hold .ai-chat-tip { opacity: 0; visibility: hidden; pointer-events: none; }
.ai-chat-bubble { transition: transform .18s, box-shadow .18s, opacity .3s, visibility .3s; }

/* Reduzir movimento (botão no rodapé → html.reduce-motion, persistido em localStorage).
   Espelha o bloco prefers-reduced-motion: nada escondido, nada em loop. hero-calm.js deve checar a classe também. */
html.reduce-motion { scroll-behavior: auto !important; }
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after {
  animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important;
}
html.reduce-motion .mo-rv { opacity: 1 !important; transform: none !important; }
html.reduce-motion .mo-cur { display: none !important; }
html.reduce-motion .mo-rest { color: inherit !important; }
html.reduce-motion .mo-logo-wrap::after { display: none !important; }
html.reduce-motion .hero-calm, html.reduce-motion canvas.hero-depth { display: none !important; }
html.reduce-motion .ai-chat-bubble:hover { transform: none; }
/* T11: passos com títulos mais longos → faixa mais larga; celular: foto do hero mais baixa para o h1 subir */
.steps { max-width: 1040px; gap: 40px; }
@media (max-width: 480px) { .hero-media { height: max(50vw, 196px); } }
