/* ==========================================================================
   Vertic Seguros — páginas de produto
   Mesmos tokens da home: paleta, tipografia Hanken Grotesk, pílulas com
   bolinha, medidas de margem e ritmo vertical. Este arquivo é compartilhado
   pela página índice e pelas 78 páginas de produto.
   ========================================================================== */

:root {
  --azul: #132C57;
  --azul-hover: #1E4A8F;
  --verde: #C2DB6E;
  --cinza-forte: #898995;
  --cinza: #686F7A;
  --borda: #D3D3D3;
  --branco: #FFFFFF;
  --gutter: max(clamp(23px, 4.4vw, 70px), calc((100% - 1800px) / 2));
  --header-h: 98px;
}

@media (max-width: 1023px) { :root { --header-h: 79px; } }
@media (max-width: 767px)  { :root { --header-h: 53px; } }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { max-width: 100%; overflow-x: clip; }
img, svg { max-width: 100%; }

body {
  margin: 0;
  background: var(--branco);
  color: var(--cinza);
  font-family: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
a { color: var(--azul); text-decoration: none; }
a:hover { color: var(--azul-hover); }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, h4 { font-weight: 400; margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
details summary::-webkit-details-marker { display: none; }
::selection { background: var(--verde); color: var(--azul); }

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

.wrap { margin-inline: var(--gutter); }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- cabeçalho ---------------------------------------------------- */

.hd {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, transform .4s cubic-bezier(.22, 1, .36, 1);
}
.hd[data-stuck] { border-bottom-color: var(--borda); }
.hd[data-hidden] { transform: translateY(-100%); }
.hd-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }
.hd-logo { display: block; }
.hd-logo img { display: block; height: clamp(26px, 2vw, 34px); width: auto; }

.nav { display: flex; align-items: center; gap: clamp(20px, 2.3vw, 44px); font-size: clamp(15px, 1.05vw, 18px); }
.nav a { color: var(--cinza-forte); transition: color .25s ease; }
.nav a:hover, .nav a[aria-current] { color: var(--azul); }
@media (max-width: 899px) { .nav { display: none; } }

.burger {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; cursor: pointer; color: var(--azul);
}
@media (max-width: 899px) { .burger { display: flex; } }
.burger span { display: block; width: 22px; height: 1.5px; background: currentColor; position: relative; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 1.5px; background: currentColor;
}
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }

.drawer {
  position: fixed; inset: 0; z-index: 120; background: var(--azul);
  display: flex; flex-direction: column; padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s;
}
.drawer[data-open] { opacity: 1; visibility: visible; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; }
.drawer-top img { height: 28px; }
.drawer-close { background: none; border: 0; color: var(--branco); font-size: 17px; cursor: pointer; padding: 10px; }
.drawer nav { margin-top: auto; margin-bottom: auto; display: flex; flex-direction: column; gap: 18px; }
.drawer nav a { color: var(--branco); font-size: clamp(30px, 9vw, 46px); letter-spacing: -0.04em; font-weight: 500; line-height: 1.05; }
.drawer nav a:hover { color: var(--verde); }
.drawer-mail { color: rgba(255, 255, 255, 0.7); font-size: 16px; }

/* ---------- pílulas e botões --------------------------------------------- */

.pill {
  display: inline-flex; align-items: center; gap: 12px;
  height: clamp(47px, 4.2vw, 58px); padding: 0 clamp(26px, 2.4vw, 36px);
  border: 0; border-radius: 90px; white-space: nowrap; cursor: pointer;
  font-family: inherit; font-size: clamp(16px, 1.1vw, 19px); font-weight: 500;
  letter-spacing: -0.01em; background: var(--azul); color: var(--branco);
  transition: background .3s ease, color .3s ease;
}
.pill:hover { background: var(--verde); color: var(--azul); }
.pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--verde); transition: background .3s ease; }
.pill:hover .dot { background: var(--azul); }

.tag {
  display: inline-flex; align-items: center; gap: 9px;
  height: 38px; padding: 0 18px; border-radius: 90px;
  box-shadow: inset 0 0 0 1px var(--borda);
  font-size: clamp(13px, 0.95vw, 16px); color: var(--cinza); white-space: nowrap;
}
.tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--azul); }
.tag-servico { box-shadow: inset 0 0 0 1px var(--verde); color: var(--azul); }
.tag-servico .dot { background: var(--verde); }

/* ---------- painel de detalhe do produto --------------------------------- */

.veu {
  position: fixed; inset: 0; z-index: 130; background: rgba(19, 44, 87, 0.5);
  opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s;
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.veu[data-open] { opacity: 1; visibility: visible; }

.painel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 140;
  width: min(820px, 94vw); background: var(--branco);
  display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1), visibility .5s;
  box-shadow: -30px 0 80px rgba(19, 44, 87, 0.16);
}
.painel[data-open] { transform: none; visibility: visible; }

.painel-topo {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: clamp(18px, 2vw, 26px) clamp(22px, 3vw, 52px);
  border-bottom: 1px solid var(--borda); background: var(--branco);
}
.painel-topo .onde { font-size: clamp(13px, 1vw, 16px); color: var(--cinza-forte); }
.painel-fechar {
  flex: 0 0 auto; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 18px;
  border: 1px solid var(--borda); border-radius: 90px; background: none; cursor: pointer;
  font-family: inherit; font-size: 15px; color: var(--azul);
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.painel-fechar:hover { background: var(--azul); color: var(--branco); border-color: var(--azul); }

.painel-corpo { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; }
.painel-corpo > * { padding-inline: clamp(22px, 3vw, 52px); }

.det-hero { padding-top: clamp(28px, 3.4vw, 52px); padding-bottom: clamp(26px, 3vw, 44px); }
.det-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.det-hero h2 {
  margin-top: clamp(18px, 2vw, 28px);
  font-size: clamp(30px, 4.4vw, 60px); line-height: 0.98;
  letter-spacing: -0.04em; color: var(--azul); font-weight: 600;
}
.det-hero .tl {
  margin-top: clamp(14px, 1.6vw, 22px);
  font-size: clamp(18px, 1.9vw, 27px); line-height: 1.2;
  letter-spacing: -0.02em; color: var(--cinza-forte); font-weight: 600;
}

.det-intro { padding-bottom: clamp(28px, 3vw, 44px); }
.det-intro p { font-size: clamp(16px, 1.15vw, 19px); line-height: 1.55; color: var(--cinza); }
.det-intro p + p { margin-top: 14px; }

.det-cols {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px);
  padding-top: clamp(28px, 3vw, 44px); padding-bottom: clamp(28px, 3vw, 44px);
  border-top: 1px solid var(--borda);
}
@media (max-width: 640px) { .det-cols { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.det-cols h3 {
  font-size: clamp(19px, 1.6vw, 25px); line-height: 1.15;
  letter-spacing: -0.02em; color: var(--azul); font-weight: 600;
}
.det-cols ul { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.det-cols li {
  display: flex; gap: 12px; align-items: baseline;
  font-size: clamp(15px, 1.1vw, 18px); line-height: 1.45; color: var(--cinza);
}
.det-cols li::before {
  content: ""; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%;
  background: var(--verde); transform: translateY(-2px);
}

.det-claim { padding-top: clamp(28px, 3vw, 44px); padding-bottom: clamp(28px, 3vw, 44px); border-top: 1px solid var(--borda); }
.det-claim p {
  font-size: clamp(20px, 2.2vw, 34px); line-height: 1.15;
  letter-spacing: -0.03em; color: var(--cinza-forte);
}

.det-band {
  background: var(--azul); color: rgba(255, 255, 255, 0.78);
  padding-top: clamp(28px, 3vw, 44px); padding-bottom: clamp(28px, 3vw, 44px);
}
.det-band h3 {
  font-size: clamp(19px, 1.6vw, 25px); letter-spacing: -0.02em;
  color: var(--branco); font-weight: 600;
}
.det-band p { margin-top: 14px; font-size: clamp(15px, 1.1vw, 18px); line-height: 1.55; }

.det-faq { padding-top: clamp(28px, 3vw, 44px); padding-bottom: clamp(20px, 2vw, 30px); }
.det-faq h3 {
  font-size: clamp(19px, 1.6vw, 25px); letter-spacing: -0.02em;
  color: var(--azul); font-weight: 600; margin-bottom: 8px;
}
.det-faq details { border-top: 1px solid var(--borda); }
.det-faq details:last-of-type { border-bottom: 1px solid var(--borda); }
.det-faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: flex-start; gap: 18px;
  padding: 18px 0; font-size: clamp(16px, 1.3vw, 21px); line-height: 1.3;
  letter-spacing: -0.02em; color: var(--azul); font-weight: 500; transition: color .3s ease;
}
.det-faq summary:hover { color: var(--azul-hover); }
.det-faq summary span:first-child { flex: 1; }
.det-faq .sign { flex: 0 0 auto; width: 20px; text-align: center; color: var(--verde); transition: transform .3s ease; }
.det-faq details[open] .sign { transform: rotate(45deg); }
.det-faq .ans { padding-bottom: 18px; font-size: clamp(15px, 1.1vw, 18px); line-height: 1.5; color: var(--cinza); }

.det-nota { padding-top: clamp(22px, 2.4vw, 34px); padding-bottom: clamp(22px, 2.4vw, 34px); border-top: 1px solid var(--borda); }
.det-nota p { font-size: clamp(12px, 0.9vw, 14px); line-height: 1.6; color: var(--cinza-forte); }
.det-nota p + p { margin-top: 10px; }

.det-cta {
  flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  padding: clamp(18px, 2vw, 26px) clamp(22px, 3vw, 52px);
  border-top: 1px solid var(--borda); background: var(--branco);
}
.det-cta .obs { font-size: clamp(13px, 1vw, 16px); color: var(--cinza-forte); }

/* o conteúdo completo mora dentro do cartão e é clonado para o painel */
.detalhe { display: none; }

/* ---------- cartões de produto ------------------------------------------- */

main { padding-top: var(--header-h); }

.card {
  width: 100%; text-align: left; font-family: inherit; cursor: pointer;
  display: flex; flex-direction: column; min-height: clamp(200px, 17vw, 280px);
  padding: clamp(22px, 2vw, 32px);
  border: 1px solid var(--borda); border-radius: 14px;
  color: var(--azul); background: var(--branco);
  transition: background .35s ease, border-color .35s ease, color .35s ease, transform .35s cubic-bezier(.22, 1, .36, 1);
}
.card:hover { background: var(--azul); border-color: var(--azul); color: var(--branco); transform: translateY(-4px); }
.card .cat { font-size: clamp(13px, 0.9vw, 15px); color: var(--cinza-forte); transition: color .35s ease; }
.card:hover .cat { color: var(--verde); }
.card h3 {
  margin-top: 12px; font-size: clamp(20px, 1.6vw, 29px); line-height: 1.1;
  letter-spacing: -0.03em; font-weight: 600;
}
.card .tl {
  margin-top: 14px; font-size: clamp(15px, 1.05vw, 18px); line-height: 1.4;
  color: var(--cinza); transition: color .35s ease;
}
.card:hover .tl { color: rgba(255, 255, 255, 0.76); }
.card .go {
  margin-top: auto; padding-top: 20px; display: flex; align-items: center; gap: 10px;
  font-size: clamp(14px, 1vw, 17px); color: var(--cinza-forte); transition: color .35s ease;
}
.card:hover .go { color: var(--verde); }
.card .go i { font-style: normal; transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
.card:hover .go i { transform: translateX(5px); }

/* ---------- índice de produtos ------------------------------------------- */

.idx-hero { padding: clamp(30px, 3.6vw, 60px) 0 clamp(30px, 3.6vw, 56px); }
.idx-hero h1 {
  font-size: clamp(52px, 9vw, 168px); line-height: 0.86;
  letter-spacing: -0.05em; color: var(--azul); font-weight: 600;
}
.idx-hero .lede {
  margin-top: clamp(20px, 2.2vw, 36px);
  font-size: clamp(20px, 1.9vw, 38px); line-height: 1.16;
  letter-spacing: -0.02em; color: var(--cinza-forte); font-weight: 600; max-width: 26ch;
}

.marquee { overflow: hidden; border-block: 1px solid var(--borda); padding: clamp(14px, 1.4vw, 22px) 0; }
.marquee-track { display: flex; width: max-content; animation: vmqx 44s linear infinite; will-change: transform; }
.marquee-track span {
  padding-inline: clamp(18px, 2vw, 34px);
  font-size: clamp(22px, 2.6vw, 46px); line-height: 1.1; letter-spacing: -0.03em;
  color: var(--borda); white-space: nowrap;
}
@keyframes vmqx { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

.tools { padding: clamp(28px, 3.2vw, 52px) 0 clamp(20px, 2vw, 32px); }
.search { position: relative; max-width: 560px; }
.search input {
  width: 100%; height: 56px; padding: 0 46px 0 2px;
  border: 0; border-bottom: 1px solid var(--borda); background: transparent;
  font-family: inherit; font-size: clamp(17px, 1.3vw, 22px); color: var(--azul);
  outline: none; border-radius: 0; transition: border-color .3s ease;
}
.search input::placeholder { color: var(--cinza-forte); }
.search input:focus { border-bottom-color: var(--azul); }
.search .clear {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border: 0; background: none; cursor: pointer;
  color: var(--cinza-forte); font-size: 18px; display: none;
}
.search[data-filled] .clear { display: block; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: clamp(22px, 2.4vw, 36px); }
.chip {
  height: 42px; padding: 0 20px; border-radius: 90px; cursor: pointer;
  border: 1px solid var(--borda); background: none; color: var(--cinza);
  font-family: inherit; font-size: clamp(14px, 1vw, 17px); white-space: nowrap;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.chip:hover { border-color: var(--azul); color: var(--azul); }
.chip[aria-pressed="true"] { background: var(--azul); border-color: var(--azul); color: var(--branco); }
.chip .n { color: var(--cinza-forte); margin-left: 7px; }
.chip[aria-pressed="true"] .n { color: var(--verde); }

.count { margin-top: clamp(20px, 2.2vw, 34px); font-size: clamp(14px, 1vw, 17px); color: var(--cinza-forte); }

.group { padding-bottom: clamp(36px, 4vw, 72px); }
.group h2 {
  padding: clamp(26px, 3vw, 48px) 0 clamp(18px, 2vw, 28px);
  border-top: 1px solid var(--borda);
  font-size: clamp(24px, 2.4vw, 44px); line-height: 1.05;
  letter-spacing: -0.03em; color: var(--azul); font-weight: 600;
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: clamp(14px, 1.4vw, 22px); }
@media (max-width: 520px) { .grid { grid-template-columns: minmax(0, 1fr); } }

.empty { padding: clamp(40px, 6vw, 90px) 0; border-top: 1px solid var(--borda); }
.empty p { font-size: clamp(18px, 1.6vw, 28px); color: var(--azul); letter-spacing: -0.02em; }
.empty .hint { margin-top: 10px; font-size: clamp(15px, 1.05vw, 18px); color: var(--cinza-forte); letter-spacing: 0; }

/* ---------- formulário e rodapé ------------------------------------------ */

.ft { background: var(--azul); color: rgba(255, 255, 255, 0.72); padding: clamp(56px, 7vw, 120px) 0 clamp(32px, 3vw, 52px); }
.ft h2 {
  font-size: clamp(34px, 5vw, 96px); line-height: 0.94;
  letter-spacing: -0.05em; color: var(--branco); font-weight: 600; max-width: 14ch;
}
.ft .sub { margin-top: clamp(18px, 2vw, 30px); font-size: clamp(17px, 1.3vw, 24px); line-height: 1.5; max-width: 52ch; }

.form { margin-top: clamp(34px, 4vw, 62px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2vw, 30px); max-width: 1000px; }
@media (max-width: 767px) { .form { grid-template-columns: minmax(0, 1fr); } }
.form label { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.form .full { grid-column: 1 / -1; }
.form .lbl { font-size: clamp(14px, 1vw, 17px); font-weight: 600; letter-spacing: -0.01em; color: rgba(255, 255, 255, 0.62); }
.form input, .form textarea {
  width: 100%; padding: 0 2px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent; font-family: inherit; font-size: clamp(16px, 1.15vw, 20px);
  color: var(--branco); outline: none; border-radius: 0; transition: border-color .3s ease;
}
.form input { height: 48px; }
.form textarea { padding: 12px 2px; line-height: 1.5; resize: vertical; }
.form input:focus, .form textarea:focus { border-bottom-color: var(--verde); }
.form input::placeholder, .form textarea::placeholder { color: rgba(255, 255, 255, 0.38); }
.form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .send { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(14px, 1.6vw, 24px); }
.form .send .pill { background: var(--verde); color: var(--azul); }
.form .send .pill .dot { background: var(--azul); }
.form .send .pill:hover { background: var(--branco); }
.form .status { flex: 1 1 240px; min-width: 0; font-size: clamp(15px, 1.05vw, 18px); line-height: 1.45; color: rgba(255, 255, 255, 0.72); }
.form .status[data-tone="ok"] { color: var(--verde); }
.form .status[data-tone="err"] { color: #FFB4A8; }
.form .lgpd { grid-column: 1 / -1; font-size: clamp(13px, 0.95vw, 16px); line-height: 1.5; color: rgba(255, 255, 255, 0.5); }
.form .lgpd a { color: rgba(255, 255, 255, 0.72); text-decoration: underline; }

.ft-foot {
  margin-top: clamp(48px, 6vw, 96px); padding-top: clamp(24px, 2.4vw, 36px);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-end;
  font-size: clamp(14px, 1vw, 17px);
}
.ft-foot a { color: rgba(255, 255, 255, 0.72); }
.ft-foot a:hover { color: var(--verde); }
.ft-nav { display: flex; flex-wrap: wrap; gap: clamp(16px, 1.8vw, 32px); }
.ft-addr { color: rgba(255, 255, 255, 0.5); line-height: 1.6; }

/* ---------- cursor e animação -------------------------------------------- */

.cursor {
  position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none;
  display: none; align-items: center; justify-content: center;
  height: 38px; padding: 0 16px; border-radius: 90px;
  background: var(--azul); color: var(--branco); font-size: 14px; white-space: nowrap;
  opacity: 0; transform: translate(-50%, -50%) scale(.7);
  transition: opacity .25s ease, transform .25s cubic-bezier(.22, 1, .36, 1);
}

[data-reveal] { opacity: 0; transform: translateY(26px); }
[data-reveal][data-shown] {
  opacity: 1; transform: none;
  transition: opacity .85s cubic-bezier(.22, 1, .36, 1), transform .85s cubic-bezier(.22, 1, .36, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
