/* Avanty Seguros — identidade do brand book (Fulgor Studio).
   Cores: grafite, floresta, creme, areia. O verde vibrante só aparece em botões; o menta só no triângulo da marca.
   Tipografia: Archivo em uma família só. Largura expandida nos títulos, normal no texto. */

:root {
  --grafite: #272B28;
  --floresta: #364B45;
  --creme: #F5F0E9;
  --creme-claro: #FBF9F5;
  --areia: #D9CEB8;
  --vibrante: #39E673;
  --verde: #21AB5B;
  --verde-texto: #1A7023;
  --menta: #75E380;
  --texto-suave: #4F5A55;
  --branco: #FFFFFF;
  --raio-botao: 8px;
  --raio-card: 20px;
  --corte: 56px;
  --fonte: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--fonte);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--grafite);
  background: var(--creme);
}
img { max-width: 100%; display: block; }
[id] { scroll-margin-top: 84px; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; color: var(--texto-suave); max-width: 66ch; }
h1, h2, h3, h4 {
  font-family: var(--fonte);
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 0.5em;
  color: var(--grafite);
}
h1, h2 { text-wrap: balance; }
p, dd, summary { text-wrap: pretty; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.55rem); }
h3 { font-size: 1.2rem; font-stretch: 100%; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
/* coluna de leitura: o container mantém o eixo da página; só o conteúdo fica mais estreito */
.container-estreito > * { max-width: 712px; }

:focus-visible { outline: 3px solid var(--grafite); outline-offset: 3px; border-radius: 4px; }
.bloco-escuro :focus-visible, .site-footer :focus-visible { outline-color: var(--vibrante); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--grafite); color: var(--creme);
  padding: 12px 20px; z-index: 3000;
}
.skip-link:focus { left: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ===== Botões ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: var(--raio-botao);
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  border: 2px solid transparent; cursor: pointer; text-align: center;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--vibrante); color: var(--grafite); }
.btn-primary:hover:not(:disabled) { background: #2DD066; }
.btn-outline { background: transparent; color: var(--grafite); border-color: var(--grafite); }
.btn-outline:hover { background: var(--grafite); color: var(--creme); }
.btn-lg { padding: 17px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-header { padding: 10px 20px; font-size: 0.95rem; }

/* ===== Cabeçalho ===== */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--creme); border-bottom: 1px solid var(--areia); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px 24px; }
.logo { display: flex; align-items: center; }
.logo-img { height: 54px; width: auto; display: block; }
.logo-footer .logo-img { height: 56px; }

.main-nav { display: flex; gap: 30px; flex: 1; justify-content: center; align-items: center; }
.main-nav a, .nav-dropdown summary {
  font-weight: 600; font-size: 0.95rem; color: var(--grafite);
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active,
.nav-dropdown summary:hover, .nav-dropdown[open] summary, .nav-dropdown summary.active { border-bottom-color: var(--verde); }

.nav-dropdown { position: relative; }
.nav-dropdown summary { cursor: pointer; list-style: none; user-select: none; display: flex; align-items: center; gap: 8px; }
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary::after {
  content: ""; width: 6px; height: 6px; margin-top: -3px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 12px); left: 0;
  background: var(--creme-claro); border: 1px solid var(--areia); border-radius: 12px;
  padding: 8px; min-width: 220px; z-index: 20;
  display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 16px 36px -16px rgba(39, 43, 40, 0.35);
}
.main-nav .nav-dropdown-menu a { padding: 10px 12px; border-bottom: 0; border-radius: 8px; }
.main-nav .nav-dropdown-menu a:hover { background: var(--creme); }

.menu-toggle { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 44px; min-height: 44px; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { width: 24px; height: 3px; background: var(--grafite); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.main-nav a.nav-cta { display: none; }

/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, min(48vw, 740px));
  min-height: clamp(580px, 82vh, 760px);
  background: var(--creme);
  overflow: hidden;
  container-type: inline-size; /* permite medir a largura útil (sem a barra de rolagem) com cqw */
}
.hero-copy {
  align-self: center;
  padding: 72px 48px 72px max(24px, calc((100vw - 1160px) / 2 + 24px));
  /* alinha o texto com o .container; cqw não conta a barra de rolagem, ao contrário de vw */
  padding-left: max(24px, calc((100cqw - 1160px) / 2 + 24px));
}
.hero h1 { font-weight: 700; font-stretch: 108%; letter-spacing: -0.025em; line-height: 1.06; font-size: clamp(2.2rem, 3.9vw, 3.5rem); margin-bottom: 0.45em; }
.hero-lead { font-size: 1.18rem; max-width: 46ch; margin-bottom: 28px; color: var(--texto-suave); }
.hero-link { font-weight: 700; text-decoration: underline; text-decoration-color: var(--verde); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.hero-link:hover { color: var(--verde-texto); }

.hero-painel {
  position: relative; isolation: isolate;
  display: flex; align-items: center; justify-content: center;
  padding: 56px 40px 56px 96px;
}
.hero-fundo {
  --recorte: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background: var(--floresta);
  clip-path: var(--recorte);
}
.hero-fundo svg { position: absolute; right: -16%; bottom: -12%; width: 118%; height: auto; }
.hero .cotador { width: 100%; max-width: 480px; margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  .hero-fundo { animation: painelEntra 0.95s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero .cotador { animation: cartaoEntra 0.35s ease both; }
}
@keyframes painelEntra {
  from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); }
  to   { clip-path: var(--recorte); }
}
@keyframes cartaoEntra { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ===== Cotação em 3 perguntas ===== */
.cotador {
  background: var(--branco); border: 1px solid var(--areia); border-radius: var(--raio-card);
  padding: 24px; box-shadow: 0 18px 40px -22px rgba(39, 43, 40, 0.4);
}
.cotador-topo { display: none; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 0.9rem; color: var(--texto-suave); font-weight: 600; }
.cotador.is-js .cotador-topo { display: flex; }
.cotador-progresso { display: flex; gap: 6px; }
.cotador-progresso span { width: 30px; height: 4px; border-radius: 2px; background: var(--areia); transition: background-color 0.2s ease; }
.cotador-progresso span.is-feito { background: var(--verde); }
.cotador fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.cotador legend, .cotador-campo { display: block; padding: 0; margin-bottom: 14px; font-weight: 700; font-size: 1.1rem; color: var(--grafite); }
.cotador-passo + .cotador-passo { margin-top: 22px; }
/* Com JS, os passos ficam empilhados na mesma célula da grade: o cartão tem a altura do maior passo
   e não pula de tamanho a cada pergunta. Os passos inativos saem do foco e da leitura (visibility). */
.cotador.is-js { display: grid; grid-template-columns: minmax(0, 1fr); }
.cotador.is-js .cotador-topo { grid-row: 1; }
.cotador.is-js .cotador-passo { grid-area: 2 / 1; margin-top: 0; visibility: hidden; }
.cotador.is-js .cotador-passo.is-ativo { visibility: visible; animation: passoEntra 0.25s ease both; }
.cotador.is-js .cotador-nota { grid-row: 3; }
.cotador-erro { margin: 8px 0 0; font-size: 0.9rem; font-weight: 600; color: #B3261E; }
.cotador input[aria-invalid="true"] { border-color: #B3261E; }
@keyframes passoEntra { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cotador.is-js .cotador-passo.is-ativo { animation: none; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-block; padding: 10px 16px; border-radius: 999px;
  border: 1.5px solid var(--areia); background: var(--creme-claro);
  font-weight: 600; font-size: 0.97rem; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.chip span:hover { border-color: var(--grafite); }
.chip input:checked + span { background: var(--grafite); border-color: var(--grafite); color: var(--creme); }
.chip input:focus-visible + span { outline: 3px solid var(--grafite); outline-offset: 2px; }

.cotador input[type="text"] {
  width: 100%; font: inherit; padding: 14px 16px; border-radius: 10px;
  border: 1.5px solid var(--areia); background: var(--creme-claro); color: var(--grafite);
}
.cotador-acoes { display: flex; align-items: center; gap: 18px; margin-top: 18px; flex-wrap: wrap; }
.cotador-voltar {
  background: none; border: 0; padding: 12px 8px; min-height: 44px; font: inherit; font-weight: 600; cursor: pointer;
  color: var(--texto-suave); text-decoration: underline; text-underline-offset: 3px;
}
.cotador:not(.is-js) .cotador-continuar, .cotador:not(.is-js) .cotador-voltar { display: none; }
.cotador-nota { margin: 18px 0 0; font-size: 0.86rem; line-height: 1.5; max-width: none; }
.cotador-nota a { color: var(--grafite); text-decoration: underline; text-underline-offset: 3px; }
.cotador-nota a:hover { color: var(--verde-texto); }

/* ===== Parceiras ===== */
.partners { background: var(--creme-claro); border-top: 1px solid var(--areia); border-bottom: 1px solid var(--areia); padding: 22px 0; }
.partners .container { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 32px; }
.partners-label { margin: 0; font-size: 0.92rem; font-weight: 600; color: var(--texto-suave); max-width: none; }
.partners-grid { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.partners-grid span { font-weight: 700; font-size: 0.98rem; color: var(--grafite); }
.partners-grid .partners-more { color: var(--verde-texto); }
.partners-group { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; width: 100%; }
.partners-group + .partners-group { margin-top: 14px; }

/* ===== Seções ===== */
.section { padding: clamp(60px, 8vw, 108px) 0; }
.section-alt { background: var(--creme-claro); }
.section-header { max-width: 720px; margin: 0 0 44px; }
.section-header h2 { margin-bottom: 0.35em; }
.section-header p { margin: 0; font-size: 1.12rem; }
.duas-colunas { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.duas-colunas .section-header { margin-bottom: 0; }

.bloco-escuro { background: var(--floresta); color: var(--creme); }
.bloco-escuro h2, .bloco-escuro h3 { color: var(--creme); }
.bloco-escuro p { color: rgba(245, 240, 233, 0.82); }
.corte-diagonal {
  margin-top: calc(var(--corte) * -1);
  padding-top: calc(clamp(60px, 8vw, 108px) + var(--corte));
  clip-path: polygon(0 var(--corte), 100% 0, 100% 100%, 0 100%);
}

/* ===== Tabela de modalidades ===== */
.tabela-planos { width: 100%; border-collapse: collapse; }
.tabela-planos th, .tabela-planos td { text-align: left; vertical-align: top; padding: 24px 24px 24px 0; border-top: 1px solid var(--areia); }
.tabela-planos thead th { border-top: 0; padding-bottom: 12px; font-size: 0.92rem; font-weight: 600; color: var(--texto-suave); }
.tabela-planos tbody th { width: 24%; font-weight: 800; font-stretch: 108%; font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1.25; }
.tabela-planos tbody td { color: var(--texto-suave); }
.tabela-planos tbody tr:last-child th, .tabela-planos tbody tr:last-child td { border-bottom: 1px solid var(--areia); }
.tabela-planos td:last-child { padding-right: 0; text-align: right; white-space: nowrap; }
.tabela-planos a { font-weight: 700; color: var(--grafite); text-decoration: underline; text-decoration-color: var(--verde); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.tabela-planos a:hover { color: var(--verde-texto); }

/* ===== Como funciona ===== */
.passos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 5vw, 64px); }
.passo { border-top: 1px solid rgba(245, 240, 233, 0.3); padding-top: 22px; }
.passo-numero { display: block; margin-bottom: 18px; font-weight: 800; font-stretch: 125%; font-size: 3rem; line-height: 1; color: var(--vibrante); }
.passo p { margin: 0; }

/* ===== Listas de links (proteções e regiões) ===== */
.protecoes-grid { border-top: 1px solid var(--areia); }
.protecao-card {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px 32px; flex-wrap: wrap;
  padding: 22px 0; border-bottom: 1px solid var(--areia);
}
.protecao-card h3 { margin: 0; font-stretch: 108%; font-weight: 800; font-size: 1.3rem; }
.protecao-card p { margin: 0; max-width: 34ch; font-size: 1rem; }
.protecao-card:hover h3 { color: var(--verde-texto); text-decoration: underline; text-decoration-color: var(--verde); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* ===== Por que a Avanty ===== */
.vantagens { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(32px, 6vw, 96px); }
.vantagens dt {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px;
  font-weight: 800; font-stretch: 108%; font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.25;
}
.vantagens dt::before, .beneficios-list li::before, .selo::before {
  content: ""; flex: 0 0 12px; width: 12px; height: 10px; background: var(--verde);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.vantagens dd { margin: 0 0 0 24px; color: var(--texto-suave); max-width: 40ch; }

/* ===== Dúvidas frequentes ===== */
.faq-list { border-top: 1px solid var(--areia); }
.faq-item { border-bottom: 1px solid var(--areia); }
.faq-item summary { position: relative; cursor: pointer; list-style: none; padding: 22px 48px 22px 0; font-weight: 700; font-size: 1.12rem; line-height: 1.35; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before, .faq-item summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 2px; margin-top: -1px; background: var(--grafite);
  transition: transform 0.2s ease;
}
.faq-item summary::after { transform: rotate(90deg); }
.faq-item[open] summary::after { transform: rotate(0deg); }
.faq-item p { margin: 0 0 24px; max-width: 62ch; }
@media (prefers-reduced-motion: reduce) { .faq-item summary::before, .faq-item summary::after { transition: none; } }

/* ===== CTA final ===== */
.section-cta { position: relative; overflow: hidden; background: var(--floresta); color: var(--creme); }
.section-cta h2 { color: var(--creme); }
.section-cta p { color: rgba(245, 240, 233, 0.82); }
.section-cta::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: min(28vw, 420px);
  background: rgba(245, 240, 233, 0.05); clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%); pointer-events: none;
}
.section-cta .container { position: relative; z-index: 1; }
.section-cta h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); max-width: 20ch; margin-bottom: 0.45em; }
.section-cta p { font-size: 1.1rem; }
.section-cta .btn { margin-top: 8px; }
.cta-inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; }
.cta-contatos p { margin: 0 0 6px; color: var(--creme); font-weight: 600; }
.cta-contatos a:hover { color: var(--vibrante); }

/* ===== Páginas internas (produto e região) ===== */
.breadcrumb { padding-top: 22px; padding-bottom: 0; font-size: 0.9rem; color: var(--texto-suave); }
.breadcrumb a { font-weight: 600; color: var(--grafite); text-decoration: underline; text-decoration-color: var(--verde); text-underline-offset: 3px; }
.pagina-header { position: relative; overflow: hidden; background: var(--creme); padding: 36px 0 clamp(52px, 7vw, 96px); }
.pagina-header::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: min(26vw, 380px);
  background: var(--floresta) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 90'%3E%3Cpath d='M32 84 L4 84 L34 6 L48 6 L34 42 Z' fill='%23fff'/%3E%3Cpath d='M68 84 L96 84 L58 6 L44 6 L58 42 Z' fill='%23fff'/%3E%3Cpath d='M50 52 L64 84 L36 84 Z' fill='%2375E380'/%3E%3C/svg%3E") no-repeat right -70px bottom -60px / 135% auto;
  clip-path: polygon(34% 0, 100% 0, 100% 100%, 0 100%);
}
.pagina-header .container { position: relative; z-index: 1; }
.pagina-header h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); max-width: min(760px, calc(100vw - 48px - 26vw)); }
.pagina-header p { font-size: 1.17rem; max-width: min(640px, calc(100vw - 48px - 26vw)); margin-bottom: 28px; }
.beneficios-list { max-width: 720px; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.beneficios-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 1.06rem; color: var(--grafite); }
.beneficios-list li::before { margin-top: 0.5em; }
.beneficios-list li a { color: var(--verde-texto); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.planos-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plano-card { display: flex; flex-direction: column; padding: 4px 32px 4px 0; }
.plano-card + .plano-card { padding-left: 32px; border-left: 1px solid var(--areia); }
.plano-card h3 { font-stretch: 108%; font-weight: 800; font-size: 1.3rem; }
.plano-card p { flex: 1; }
.selo { display: inline-flex; align-items: baseline; gap: 10px; margin-bottom: 12px; font-size: 0.92rem; font-weight: 700; color: var(--verde-texto); }

/* ===== Rodapé ===== */
.site-footer { background: var(--grafite); color: rgba(245, 240, 233, 0.78); padding: 68px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 52px; }
.footer-brand p { color: rgba(245, 240, 233, 0.62); font-size: 0.97rem; margin-top: 16px; max-width: 34ch; }
.footer-col h4 { color: var(--creme); font-size: 1rem; font-stretch: 100%; font-weight: 700; margin-bottom: 16px; }
.footer-col p { margin: 0 0 9px; font-size: 0.97rem; color: inherit; }
.footer-col a:hover { color: var(--vibrante); }
/* padding-bottom maior: o botão flutuante do WhatsApp (58px + 20px) não cobre o texto do fim da página */
.footer-bottom { border-top: 1px solid rgba(245, 240, 233, 0.14); padding: 22px 24px calc(22px + 64px + env(safe-area-inset-bottom, 0px)); font-size: 0.84rem; color: rgba(245, 240, 233, 0.6); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; }
.footer-bottom p { margin: 0; color: inherit; max-width: none; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: var(--vibrante); }

/* ===== Chat rápido (WhatsApp) ===== */
.chat-widget { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 1500; }
.whatsapp-float {
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--vibrante); color: var(--grafite);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 26px -10px rgba(39, 43, 40, 0.55);
  transition: background-color 0.15s ease;
}
.whatsapp-float:hover { background: #2DD066; }
.chat-panel {
  position: absolute; right: 0; bottom: calc(100% + 14px); width: min(330px, calc(100vw - 40px));
  background: var(--creme-claro); border: 1px solid var(--areia); border-radius: 18px;
  /* em tela baixa (celular deitado) o painel rola por dentro, em vez de sair pelo topo */
  max-height: calc(100vh - 160px); max-height: calc(100dvh - 160px); overflow-y: auto; overscroll-behavior: contain;
  box-shadow: 0 24px 50px -20px rgba(39, 43, 40, 0.5);
  /* fechado: visibility tira os links do foco do teclado e da leitura de tela */
  opacity: 0; transform: translateY(12px); pointer-events: none; visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}
.chat-panel.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.chat-panel-header { background: var(--floresta); color: var(--creme); padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.chat-panel-title { display: flex; align-items: center; gap: 10px; }
.chat-panel-title strong { display: block; font-size: 0.97rem; }
.chat-panel-title small { display: block; font-size: 0.78rem; opacity: 0.85; }
.chat-online-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--vibrante); flex-shrink: 0; }
.chat-panel-close { background: rgba(245, 240, 233, 0.16); border: 0; color: var(--creme); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.3rem; line-height: 1; flex-shrink: 0; }
.chat-panel-close:hover { background: rgba(245, 240, 233, 0.3); }
.chat-panel-body { padding: 16px; }
.chat-bubble { background: var(--branco); border-radius: 14px 14px 14px 4px; padding: 12px 14px; font-size: 0.95rem; margin-bottom: 14px; color: var(--grafite); }
.chat-quick-replies { display: flex; flex-direction: column; gap: 8px; }
.chat-quick-replies a { background: var(--branco); border: 1.5px solid var(--areia); border-radius: 10px; padding: 13px 14px; font-size: 0.92rem; font-weight: 600; color: var(--grafite); transition: border-color 0.15s ease; }
.chat-quick-replies a:hover { border-color: var(--grafite); }
.chat-panel-nota { font-size: 0.78rem; margin: 12px 0 0; text-align: center; max-width: none; }

/* ===== Telas menores ===== */
@media (max-width: 900px) {
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 24px 24px; background: var(--creme); border-bottom: 1px solid var(--areia);
    /* menu longo (com "Seguros" aberto) rola por dentro: nenhum item fica fora da tela */
    max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); overflow-y: auto; overscroll-behavior: contain; }
  .main-nav.open { display: flex; }
  /* alvos de toque de pelo menos 44px */
  .main-nav a, .nav-dropdown summary { padding: 11px 0; }
  .main-nav .nav-dropdown-menu a { padding: 11px 12px; }
  .main-nav a.nav-cta { display: inline-flex; margin-top: 10px; padding: 12px 24px; border-bottom: 0; }
  .menu-toggle { display: flex; }
  .nav-dropdown-menu { position: static; box-shadow: none; border: 0; background: transparent; padding: 4px 0 0 12px; }
  .btn-header { display: none; }
  .header-inner { justify-content: space-between; }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 44px 24px 40px; }
  .hero-painel { padding: 76px 24px 52px; }
  .hero-fundo { --recorte: polygon(0 44px, 100% 0, 100% 100%, 0 100%); }
  .hero-fundo svg { right: -40%; bottom: -8%; width: 150%; }

  .duas-colunas, .cta-inner { grid-template-columns: 1fr; }
  .duas-colunas .section-header { margin-bottom: 8px; }
  .passos, .planos-grid, .vantagens { grid-template-columns: 1fr; }
  .plano-card, .plano-card + .plano-card { padding: 24px 0; border-left: 0; border-top: 1px solid var(--areia); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pagina-header::after { display: none; }
  .pagina-header h1, .pagina-header p { max-width: none; }
  .section-cta::after { display: none; }
  :root { --corte: 36px; }
}

@media (max-width: 720px) {
  .tabela-planos thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tabela-planos, .tabela-planos tbody, .tabela-planos tr, .tabela-planos th, .tabela-planos td { display: block; width: 100%; }
  .tabela-planos tr { padding: 22px 0; border-top: 1px solid var(--areia); }
  .tabela-planos tbody tr:last-child { border-bottom: 1px solid var(--areia); }
  .tabela-planos th, .tabela-planos td, .tabela-planos tbody th { border: 0 !important; padding: 0 0 10px; width: 100%; }
  .tabela-planos td[data-rotulo]::before { content: attr(data-rotulo); display: block; font-size: 0.84rem; font-weight: 700; color: var(--grafite); }
  .tabela-planos td:last-child { text-align: left; padding-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .protecao-card p { max-width: none; }
}

/* ===== Texto corrido (política de privacidade) ===== */
.politica h2 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); margin: 40px 0 12px; }
.politica h2:first-child { margin-top: 0; }
.politica p a, .politica li a { color: var(--grafite); text-decoration: underline; text-decoration-color: var(--verde); text-underline-offset: 3px; }
.politica .beneficios-list { margin-bottom: 4px; }
.politica .beneficios-list li { font-size: 1.02rem; }
.politica .beneficios-list li span { color: var(--texto-suave); }
.politica .beneficios-list li b { color: var(--grafite); }

/* ===== Blog ===== */
.blog-grid { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--areia); }
@media (min-width: 720px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 72px); } }
.blog-card { display: flex; flex-direction: column; gap: 8px; padding: 26px 0; border-bottom: 1px solid var(--areia); }
.blog-card-categoria { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--verde-texto); }
.blog-card h3 { margin: 0; font-stretch: 108%; font-weight: 800; font-size: 1.3rem; overflow-wrap: break-word; }
.blog-card p { margin: 0; font-size: 1rem; }
.blog-card-leitura { font-size: 0.9rem; color: var(--texto-suave); }
.blog-card:hover h3 { color: var(--verde-texto); }

.artigo-categoria { margin: 0 0 12px; font-size: 0.88rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--verde-texto); }
.artigo-header h1 { overflow-wrap: break-word; }
.artigo-header .artigo-meta { margin: 0; font-size: 0.97rem; }
.artigo { padding: clamp(36px, 5vw, 64px) 0 clamp(60px, 8vw, 108px); }
.artigo-resumo { margin: 0 0 32px; padding: 4px 0 4px 20px; border-left: 4px solid var(--verde); }
.artigo-resumo strong { font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--verde-texto); }
.artigo-resumo p { margin: 6px 0 0; font-size: 1.1rem; color: var(--grafite); }
.artigo-corpo p, .artigo-corpo li { font-size: 1.08rem; line-height: 1.7; }
.artigo-corpo h2 { margin: 1.8em 0 0.5em; font-size: clamp(1.45rem, 2.4vw, 1.9rem); overflow-wrap: break-word; }
.artigo-corpo ul, .artigo-corpo ol { margin: 0 0 1.2em; padding-left: 1.2em; color: var(--texto-suave); }
.artigo-corpo li { margin-bottom: 0.5em; }
.artigo-corpo li strong { color: var(--grafite); }
.artigo-corpo a, .artigo-produto a, .leia-tambem a { font-weight: 600; text-decoration: underline; text-decoration-color: var(--verde); text-underline-offset: 3px; }
.artigo-corpo a:hover, .artigo-produto a:hover, .leia-tambem a:hover { color: var(--verde-texto); }
.artigo-final { margin-top: 48px; }
.artigo-cta { padding: clamp(24px, 4vw, 40px); border-radius: var(--raio-card); background: var(--floresta); color: var(--creme); }
.artigo-cta h2 { margin: 0 0 0.4em; font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--creme); }
.artigo-cta p { color: rgba(245, 240, 233, 0.82); }
.artigo-cta .btn { margin-top: 6px; }
.artigo-produto { margin: 28px 0 0; }
.leia-tambem { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--areia); }
.leia-tambem h2 { margin: 0 0 12px; font-size: 1.25rem; }
.leia-tambem ul { margin: 0; padding: 0; list-style: none; }
.leia-tambem li { margin: 0 0 10px; }
.artigo-aviso { margin: 28px 0 0; font-size: 0.92rem; }
.artigo-corpo h3 { margin: 1.4em 0 0.3em; overflow-wrap: break-word; }
@media (min-width: 960px) { .blog-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.blog-ver-todos { margin: 28px 0 0; }
/* seção de uma frase só (atendimento em todo o Brasil): menos respiro que as demais */
.section-compacta { padding: clamp(36px, 5vw, 56px) 0; }
.section-compacta .section-header { margin-bottom: 0; }
