/* ============================================================
   V4S Consórcios — estilo global
   Paleta: azuis (#1D4ED8 / #0B2A6B), branco, cinzas
   Fonte: DM Sans 500–800
   ============================================================ */

:root {
  --blue: #1d4ed8;
  --blue-vivid: #2563eb;
  --blue-soft: #eaf0fe;
  --blue-border: #c7d7f9;
  --navy: #0b2a6b;
  --navy-deep: #081f4f;
  --ink: #101828;
  --gray: #475467;
  --gray-light: #98a2b3;
  --line: #e4e7ec;
  --bg: #f5f7fb;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(16, 24, 40, 0.08);
  --shadow-soft: 0 2px 10px rgba(16, 24, 40, 0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;   /* corta transbordo lateral sem quebrar o header sticky */
}

body {
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }

.section { padding: 88px 0; }
.section-alt { background: var(--white); }

.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.section-title { font-size: clamp(28px, 4vw, 42px); }
.section-title .accent { color: var(--blue); }
.section-sub { color: var(--gray); max-width: 560px; margin-top: 14px; font-size: 17px; }

.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  padding: 15px 28px;
  font-size: 16px;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-vivid); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(29, 78, 216, 0.32); }
.btn-outline { background: var(--white); color: var(--blue); border: 1.5px solid var(--blue-border); }
.btn-outline:hover { border-color: var(--blue); }
.btn-whats { background: #22c55e; color: #fff; }
.btn-whats:hover { background: #16a34a; }
.btn-block { width: 100%; }
.btn svg { flex: 0 0 auto; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 36px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-weight: 600; font-size: 15px; color: var(--gray); transition: color 0.15s; }
.nav a:hover, .nav a.active { color: var(--blue); }
.nav .btn { padding: 10px 18px; font-size: 14px; border-radius: 10px; }
/* Cartas Contempladas como botão, alinhado à altura dos demais links */
.nav a.nav-cta {
  background: var(--blue);
  color: #fff;
  padding: 9px 18px;
  border-radius: 10px;
  transition: background 0.15s;
}
.nav a.nav-cta:hover, .nav a.nav-cta.active { background: var(--blue-vivid); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; width: 42px; height: 42px; }
.nav-toggle span { display: block; width: 22px; height: 2.5px; background: var(--navy); margin: 5px auto; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, #ffffff 0%, #eef3fd 60%, #e3ecfc 100%);
  overflow: hidden;
}
/* foto de fundo bem suave (10%), sob o degradê azul claro */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/contempladas-bg.jpg") center / cover no-repeat;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; }
/* padding só no eixo vertical — o horizontal (24px) vem de .container */
.hero-grid { display: grid; grid-template-columns: 1fr 420px; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); }
.hero h1 .accent { color: var(--blue); display: block; }
.hero p { color: var(--gray); font-size: 18px; margin: 22px 0 30px; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Simulador ---------- */
.sim-card {
  width: 420px;
  min-height: 580px;   /* cresce se o conteúdo pedir, em vez de vazar */
  max-width: 100%;
  justify-self: end;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 20px 24px 22px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
/* nenhum item pode encolher — senão o seletor colapsa quando falta altura */
.sim-card > * { flex: 0 0 auto; }
.sim-flag {
  align-self: flex-start;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 7px;
  padding: 5px 11px;
}
.sim-title { font-size: 22px; line-height: 1.25; color: var(--blue); margin: 8px 0 14px; }
.sim-label { font-size: 13px; font-weight: 700; color: var(--ink); margin: 10px 0 7px; }
.sim-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sim-cat {
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: 11px;
  padding: 9px 4px 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gray);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.sim-cat svg { width: 22px; height: 22px; stroke: currentColor; }
.sim-cat.active { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.sim-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  min-height: 42px;
}
.sim-toggle button { border: 0; background: var(--white); padding: 10px; font-size: 13.5px; font-weight: 700; color: var(--gray); line-height: 1.2; transition: background 0.15s, color 0.15s; }
.sim-toggle button.active { background: var(--blue); color: #fff; }
.sim-value { text-align: center; margin: 10px 0 2px; }
.sim-value .label { font-size: 13px; font-weight: 700; color: var(--ink); }
.sim-value .amount { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.sim-range { width: 100%; margin: 6px 0 2px; accent-color: var(--blue); height: 22px; }
.sim-range-limits { display: flex; justify-content: space-between; font-size: 12px; color: var(--gray-light); font-weight: 600; margin-bottom: 10px; }
.sim-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border-radius: 11px;
  padding: 10px 14px;
  margin-bottom: 10px;
}
.sim-result .label { font-size: 13px; color: var(--gray); font-weight: 600; }
.sim-result .value { font-size: 20px; font-weight: 800; color: var(--blue); }
.sim-card .btn-block { padding: 13px 24px; margin-top: auto; }
.sim-note { font-size: 11.5px; line-height: 1.4; color: var(--gray-light); text-align: center; margin-top: 8px; }
.sim-card .sim-note { font-size: 10px; }

/* ---------- Linha do tempo ---------- */
.timeline-wrap { overflow-x: auto; padding: 34px 0 12px; margin-top: 14px; }
.timeline-wrap::-webkit-scrollbar { height: 6px; }
.timeline-wrap::-webkit-scrollbar-thumb { background: var(--blue-border); border-radius: 3px; }

/* Grid único de 2 linhas × 9 colunas. As faixas usam display:contents
   para que seus filhos participem do mesmo grid — assim o quadro de
   35 anos alinha pela base com o de 16 anos. */
.tl {
  --tl-head: 218px;
  --tl-card: 190px;
  --tl-gap: 26px;
  --tl-row1: 44px;
  --tl-rowgap: 82px;
  min-width: 1060px;
  display: grid;
  grid-template-columns:
    var(--tl-head)
    minmax(var(--tl-gap), 1fr) var(--tl-card)
    minmax(var(--tl-gap), 1fr) var(--tl-card)
    minmax(var(--tl-gap), 1fr) var(--tl-card)
    minmax(var(--tl-gap), 1fr) var(--tl-card);
  grid-template-rows: var(--tl-row1) auto;
  row-gap: var(--tl-rowgap);
  align-items: center;
}
.tl-track { display: contents; }

/* Financiamento (linha 1) */
.tl-track.fin > :nth-child(1) { grid-area: 1 / 1; }
.tl-track.fin > .tl-line { grid-area: 1 / 2 / 2 / 10; }
.tl-track.fin > .tl-card.end { grid-area: 1 / 9 / 3 / 10; align-self: end; }

/* Consórcio (linha 2) */
.tl-track.con > * { grid-row: 2; }
.tl-track.con > :nth-child(1) { grid-column: 1; }
.tl-track.con > :nth-child(2) { grid-column: 2; }
.tl-track.con > :nth-child(3) { grid-column: 3; }
.tl-track.con > :nth-child(4) { grid-column: 4; }
.tl-track.con > :nth-child(5) { grid-column: 5; }
.tl-track.con > :nth-child(6) { grid-column: 6; }
.tl-track.con > :nth-child(7) { grid-column: 7; }
/* mesma altura → bases alinhadas entre si e com o quadro de 35 anos */
.tl-track.con > .tl-card { align-self: stretch; }

/* Queda vertical que liga a linha do financiamento ao quadro final;
   fica atrás do card, então só o trecho livre aparece. */
.tl-drop {
  grid-area: 1 / 9 / 3 / 10;
  justify-self: center;
  align-self: stretch;
  width: 3px;
  margin-top: calc(var(--tl-row1) / 2);
  background: var(--ink);
  z-index: 0;
}

/* Badge + taxa */
.tl-head { position: relative; }
.tl-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 100%;          /* preto e azul com a mesma largura */
  border-radius: 999px;
  padding: 10px 26px 10px 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: #fff;
  white-space: nowrap;
}
.tl-badge .ico {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.tl-badge.fin { background: var(--ink); }
.tl-badge.fin .ico { color: var(--ink); }
.tl-badge.con { background: var(--blue); }
.tl-badge.con .ico { color: var(--blue); }
.tl-tag {
  position: absolute;
  top: calc(100% + 12px);
  left: 24px;
  font-size: 14.5px;
  color: var(--gray);
  white-space: nowrap;
}
.tl-tag b { color: var(--blue); font-weight: 700; }

/* Linha do financiamento — termina no centro da coluna do quadro final,
   onde encontra a queda vertical. */
.tl-line {
  height: 3px;
  background: var(--ink);
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  margin-right: calc(var(--tl-card) / 2);
}
.tl-line i { width: 13px; height: 13px; border-radius: 50%; background: var(--ink); }

/* Trechos de linha do consórcio */
.tl-seg { height: 3px; background: var(--blue); display: block; }

/* Quadros */
.tl-card {
  position: relative;
  z-index: 1;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: 38px 18px 22px;
  text-align: center;
}
.tl-ico {
  position: absolute;
  top: -23px; left: 50%;
  transform: translateX(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--blue);
  color: var(--blue);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-soft);
}
.tl-card h4 { font-size: 22px; color: var(--blue); margin-bottom: 6px; }
.tl-card p { font-size: 13.5px; color: var(--gray); }
.tl-card p b { color: var(--blue); }
.tl-card.final { background: var(--blue); border-color: var(--blue); }
.tl-card.final h4, .tl-card.final p { color: #fff; }
.tl-card.final .tl-ico { background: var(--blue); color: #fff; border-color: #fff; }
.tl-card.end h4 { color: var(--ink); }
.tl-card.end p b { color: var(--ink); }
.tl-card.end .tl-ico { border-color: var(--ink); color: var(--ink); }

.tl-hint { display: none; }

/* ---------- Linha do tempo — desdobramento lateral ----------
   Financiamento entra primeiro (badge → linha → queda → quadro),
   e só ao terminar começa o consórcio, elemento a elemento. */
@media (prefers-reduced-motion: no-preference) {
  .tl-anim .tl-head,
  .tl-anim .tl-card {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.42s ease, transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  /* clip-path revela sem deformar os pontos da linha */
  .tl-anim .tl-line,
  .tl-anim .tl-seg {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.6s cubic-bezier(0.33, 1, 0.68, 1);
  }
  .tl-anim .tl-drop {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.3s ease;
  }

  .tl-anim.play .tl-head,
  .tl-anim.play .tl-card { opacity: 1; transform: none; }
  .tl-anim.play .tl-line,
  .tl-anim.play .tl-seg,
  .tl-anim.play .tl-drop { clip-path: inset(0 0 0 0); }

  /* Sequência — faixa do financiamento */
  .tl-anim .tl-track.fin > .tl-head { transition-delay: 0s; }
  .tl-anim .tl-track.fin > .tl-line { transition-delay: 0.12s; }
  .tl-anim .tl-track.fin > .tl-drop { transition-delay: 0.62s; }
  .tl-anim .tl-track.fin > .tl-card { transition-delay: 0.8s; }

  /* Sequência — faixa do consórcio (só depois que o financiamento fecha) */
  .tl-anim .tl-track.con > :nth-child(1) { transition-delay: 1.25s; }
  .tl-anim .tl-track.con > :nth-child(2) { transition-delay: 1.34s; }
  .tl-anim .tl-track.con > :nth-child(3) { transition-delay: 1.43s; }
  .tl-anim .tl-track.con > :nth-child(4) { transition-delay: 1.55s; }
  .tl-anim .tl-track.con > :nth-child(5) { transition-delay: 1.64s; }
  .tl-anim .tl-track.con > :nth-child(6) { transition-delay: 1.76s; }
  .tl-anim .tl-track.con > :nth-child(7) { transition-delay: 1.85s; }
}

/* ---------- Linha do tempo — mobile (carrossel horizontal) ---------- */
@media (max-width: 860px) {
  .timeline-wrap { overflow: visible; padding: 30px 0 0; }

  .tl {
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;      /* as duas faixas com a MESMA altura */
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    touch-action: pan-x pan-y;
    padding: 26px 0 14px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tl::-webkit-scrollbar { display: none; }
  .tl-drop { display: none; }

  /* Consórcio primeiro; financiamento fica parcialmente visível */
  .tl-track.con { order: 1; }
  .tl-track.fin { order: 2; }
  .tl-track {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 0 0 80%;
    max-width: 80%;
    scroll-snap-align: start;
  }

  .tl-head { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: 0 0 auto; }
  .tl-badge { width: 100%; justify-content: center; padding: 10px 18px 10px 10px; }
  .tl-tag { position: static; white-space: normal; text-align: center; }

  /* Conectores verticais — absorvem a sobra para que o último quadro
     de cada faixa encoste na base, alinhando as duas colunas. */
  .tl-line {
    width: 3px;
    min-height: 60px;
    flex: 1 1 auto;
    margin: 14px auto 0;
    flex-direction: column;
    justify-content: space-evenly;
  }
  .tl-line i { width: 11px; height: 11px; }
  .tl-seg {
    width: 3px;
    min-height: 30px;
    flex: 1 1 auto;
    margin: 0 auto;
  }
  /* precisa da mesma especificidade da regra de desktop (align-self: end),
     senão o quadro de 35 anos encolhe e cola à direita */
  .tl-card,
  .tl-track.fin > .tl-card.end,
  .tl-track.con > .tl-card {
    align-self: stretch;
    flex: 0 0 auto;
    margin-top: 10px;
  }

  .tl-hint {
    display: block;
    text-align: center;
    font-size: 13px;
    color: var(--gray-light);
    font-weight: 600;
    margin-top: 6px;
  }

  /* Animação no mobile: consórcio (visível) primeiro, conectores de cima
     para baixo, já que aqui o layout é vertical. */
  @media (prefers-reduced-motion: no-preference) {
    .tl-anim .tl-line, .tl-anim .tl-seg { clip-path: inset(0 0 100% 0); }
    .tl-anim .tl-track.con > :nth-child(1) { transition-delay: 0s; }
    .tl-anim .tl-track.con > :nth-child(2) { transition-delay: 0.1s; }
    .tl-anim .tl-track.con > :nth-child(3) { transition-delay: 0.2s; }
    .tl-anim .tl-track.con > :nth-child(4) { transition-delay: 0.32s; }
    .tl-anim .tl-track.con > :nth-child(5) { transition-delay: 0.42s; }
    .tl-anim .tl-track.con > :nth-child(6) { transition-delay: 0.54s; }
    .tl-anim .tl-track.con > :nth-child(7) { transition-delay: 0.64s; }
    .tl-anim .tl-track.fin > .tl-head { transition-delay: 0.2s; }
    .tl-anim .tl-track.fin > .tl-line { transition-delay: 0.3s; }
    .tl-anim .tl-track.fin > .tl-card { transition-delay: 0.5s; }
  }
}

/* ---------- Conquistas (CTA) ---------- */
.conq-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-top: 48px; }
.conq-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 16px 26px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.conq-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--blue-border); }
.conq-card .ico {
  width: 84px; height: 84px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--blue-vivid), var(--navy));
  color: #fff;
  display: grid;
  place-items: center;
}
.conq-card .ico svg { width: 38px; height: 38px; }
.conq-card h3 { font-size: 19px; color: var(--blue); margin-bottom: 8px; }
.conq-card p { font-size: 13.5px; color: var(--gray); }

/* ---------- CTA de fim de seção ---------- */
.section-cta { margin-top: 48px; text-align: center; }
.section-photo .section-cta .btn-primary { background: #fff; color: var(--navy); }
.section-photo .section-cta .btn-primary:hover { background: var(--blue-soft); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3); }

/* ---------- Seção com foto de fundo + overlay ---------- */
.section-photo {
  position: relative;
  isolation: isolate;
  background: #0b1220 url("../img/metodo-bg.jpg") center / cover no-repeat;
}
/* overlay preto 50% + reforço no lado do texto (garante contraste AA) */
.section-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.28) 48%, rgba(0, 0, 0, 0) 75%),
    rgba(0, 0, 0, 0.5);
  z-index: -1;
}
.section-photo .section-title { color: #fff; }
.section-photo .section-title .accent { color: #9db8f5; }
.section-photo .section-sub { color: #d8e1f5; }
.section-photo .section-sub b { color: #9db8f5; }

/* ---------- Educativo (escada 01–05) ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; align-items: end; margin-top: 56px; }
.step {
  background: rgba(9, 17, 33, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 4px solid var(--blue-vivid);
  border-radius: 14px 14px 0 0;
  padding: 24px 18px 26px;
}
.step .num {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--blue-vivid);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 14px;
}
.step h3 { font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; color: #9db8f5; margin-bottom: 10px; }
.step h4 { font-size: 15.5px; color: #fff; margin-bottom: 6px; }
.step p { font-size: 13.5px; color: #d8e1f5; }
.step:nth-child(1) { min-height: 240px; }
.step:nth-child(2) { min-height: 285px; }
.step:nth-child(3) { min-height: 330px; }
.step:nth-child(4) { min-height: 375px; }
.step:nth-child(5) { min-height: 420px; }

/* ---------- Por que a V4S ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.why-card {
  border-radius: 18px;
  padding: 34px 28px;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why-card .ico {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.why-card h3 { font-size: 19px; margin-bottom: 10px; }
.why-card p { font-size: 14.5px; }
.why-card.light { background: var(--white); }
.why-card.light .ico { background: var(--blue-soft); color: var(--blue); }
.why-card.light h3 { color: var(--navy); }
.why-card.light p { color: var(--gray); }
.why-card.dark { background: linear-gradient(160deg, var(--navy), var(--navy-deep)); border-color: var(--navy); }
.why-card.dark .ico { background: rgba(255, 255, 255, 0.12); color: #fff; }
.why-card.dark h3 { color: #fff; }
.why-card.dark p { color: #c9d6f2; }

/* ---------- Números ---------- */
.numbers {
  background: linear-gradient(160deg, var(--navy), var(--navy-deep));
  border-radius: 22px;
  padding: 46px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  color: #fff;
  text-align: center;
}
.numbers .item h3 { font-size: 32px; color: #9db8f5; }
.numbers .item p { font-size: 14px; color: #c9d6f2; }

/* ---------- Faixa "Cartas Contempladas" (foto + overlay 50%) ---------- */
.cta-cartas {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 26px;
  padding: 72px 40px;
  text-align: center;
  color: #fff;
  background: #0b1220 url("../img/contempladas-bg.jpg") center / cover no-repeat;
}
/* overlay preto 50% + leve reforço na faixa central, onde fica o texto */
.cta-cartas::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.34) 45%, rgba(0, 0, 0, 0.34) 62%, rgba(0, 0, 0, 0) 100%),
    rgba(0, 0, 0, 0.5);
  z-index: -1;
}
.cta-cartas h2 { font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 12px; }
.cta-cartas p { color: #e2e8f5; max-width: 540px; margin: 0 auto 30px; font-size: 17px; }
.cta-cartas .btn-primary { background: #fff; color: var(--navy); }
.cta-cartas .btn-primary:hover { background: var(--blue-soft); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: #aebfe6; padding: 56px 0 28px; margin-top: 88px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.footer .logo { margin-bottom: 16px; }
.footer .logo img { height: 40px; }
.footer p, .footer a { font-size: 14px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.footer-legal {
  font-style: normal;
  font-size: 13px;
  line-height: 1.7;
  color: #8ba0cc;
  margin-top: 16px;
}
.partner { margin-top: 28px; }
.partner span { display: block; color: #fff; font-size: 14.5px; font-weight: 700; margin-bottom: 12px; }
.partner img { height: 34px; width: auto; opacity: 0.95; }
.footer-bottom { padding-top: 24px; font-size: 12.5px; color: #7188b8; text-align: center; }
.footer-dev { text-align: center; margin-top: 8px; }
.footer-dev a { font-size: 11.5px; color: #7188b8; transition: color 0.15s; }
.footer-dev a:hover { color: #fff; }

/* ---------- Modal / popup de lead ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 15, 35, 0.55);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--white);
  border-radius: 20px;
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.22s ease;
  box-shadow: 0 24px 70px rgba(8, 15, 35, 0.35);
}
.modal-backdrop.open .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--bg);
  color: var(--gray);
  font-size: 18px;
  line-height: 1;
}
.modal-close:hover { background: var(--line); color: var(--ink); }
.modal h3 { font-size: 22px; color: var(--navy); margin-bottom: 6px; padding-right: 30px; }
.modal .modal-sub { font-size: 14px; color: var(--gray); margin-bottom: 20px; }
.modal-summary {
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  display: grid;
  gap: 6px;
}
.modal-summary div { display: flex; justify-content: space-between; gap: 14px; }
.modal-summary span { color: var(--gray); }
.modal-summary b { color: var(--navy); text-align: right; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.field input, .field select {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.15s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); }
.form-error { color: #dc2626; font-size: 13.5px; margin-bottom: 12px; display: none; }
.form-error.show { display: block; }
.modal .privacy { font-size: 11.5px; color: var(--gray-light); text-align: center; margin-top: 14px; }

/* ---------- Página Cartas Contempladas ---------- */
.page-head { background: linear-gradient(160deg, var(--navy), var(--navy-deep)); color: #fff; padding: 72px 0; }
.page-head h1 { font-size: clamp(30px, 4vw, 44px); }
.page-head h1 .accent { color: #7ea2f0; }
.page-head p { color: #c9d6f2; margin-top: 12px; max-width: 560px; font-size: 16.5px; }
.page-head-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.page-head-logo { height: 58px; width: auto; opacity: 0.9; flex: 0 0 auto; }
@media (max-width: 860px) { .page-head-logo { display: none; } }

.filter-bar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr auto auto;
  gap: 16px;
  align-items: end;
  margin-top: -46px;
  position: relative;
  z-index: 5;
}
.filter-field label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}
.filter-field input, .filter-field select {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 13px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.15s;
}
.filter-field input:focus, .filter-field select:focus { outline: none; border-color: var(--blue); }
.filter-field input::placeholder { color: var(--gray-light); font-weight: 500; }
.btn-filter {
  background: var(--navy-deep);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 13px 26px;
  font-size: 14.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s;
}
.btn-filter:hover { background: var(--navy); }
.btn-clear {
  width: 46px; height: 46px;
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  color: var(--gray);
  font-size: 17px;
  display: grid;
  place-items: center;
  transition: all 0.15s;
}
.btn-clear:hover { border-color: var(--blue); color: var(--blue); }

.select-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--white);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  padding: 14px 18px;
}
.select-toolbar .group { display: flex; gap: 18px; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--gray); cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--blue); }

.sum-bar {
  display: none;
  position: sticky;
  bottom: 14px;
  z-index: 40;
  background: var(--navy-deep);
  color: #fff;
  border-radius: 14px;
  padding: 14px 20px;
  margin-top: 16px;
  box-shadow: 0 14px 40px rgba(8, 15, 35, 0.4);
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.sum-bar.show { display: flex; }
.sum-bar .totals { display: flex; gap: 26px; flex-wrap: wrap; font-size: 14px; }
.sum-bar .totals span { color: #aebfe6; display: block; font-size: 12px; }
.sum-bar .totals b { font-size: 16px; }
.sum-bar .actions { display: flex; gap: 10px; }
.sum-bar .btn { padding: 10px 18px; font-size: 13.5px; border-radius: 10px; }
.btn-ghost { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.22); }

.cards-meta { display: flex; justify-content: space-between; align-items: center; margin: 28px 0 14px; flex-wrap: wrap; gap: 10px; }
.cards-meta .count { font-size: 14.5px; color: var(--gray); }
.cards-meta .count b { color: var(--navy); }

.cards-table-wrap { background: var(--white); border: 1px solid var(--line); border-radius: 0 0 18px 18px; overflow: hidden; box-shadow: var(--shadow-soft); }
.cards-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cards-table thead th {
  background: var(--bg);
  color: var(--gray);
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 16px;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.cards-table td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.cards-table tbody tr:first-child td { border-top: 0; }
.cards-table tbody tr { transition: background 0.12s; }
.cards-table tbody tr:nth-child(even) { background: #fafbfd; }
.cards-table tbody tr:hover { background: var(--blue-soft); }
.cards-table tbody tr.selected { background: var(--blue-soft); }
.cards-table .rowcheck { width: 17px; height: 17px; accent-color: var(--blue); cursor: pointer; }
.cards-table .cat { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); }
.cards-table .cat svg { width: 20px; height: 20px; color: var(--blue); }
.cards-table .money { font-weight: 700; }
.cards-table .credit { color: var(--blue); font-weight: 800; font-size: 15.5px; }
.badge { display: inline-block; border-radius: 999px; font-size: 12.5px; font-weight: 700; padding: 5px 12px; }
.badge.disp { background: #e7f7ee; color: #15803d; }
.badge.resv { background: #fdeeee; color: #b91c1c; }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; }
.icon-btn {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  color: var(--gray);
  transition: all 0.15s;
}
.icon-btn:hover { border-color: var(--blue); color: var(--blue); }
.icon-btn svg { width: 18px; height: 18px; }
.btn-neg {
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s;
}
.btn-neg:hover { background: var(--blue-vivid); }
.btn-neg[disabled] { background: var(--gray-light); cursor: not-allowed; }
.cards-empty { padding: 56px 20px; text-align: center; color: var(--gray); display: none; }
.cards-loading { padding: 56px 20px; text-align: center; color: var(--gray); }

.detail-list { display: grid; gap: 0; margin-bottom: 20px; }
.detail-list div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.detail-list div:last-child { border-bottom: 0; }
.detail-list span { color: var(--gray); }
.detail-list b { color: var(--navy); text-align: right; }

/* ---------- Redes sociais no header ---------- */
.social {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
}
.social a {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--blue);
  transition: background 0.15s, color 0.15s;
}
.social a:hover { background: var(--blue); color: #fff; }
.social svg { width: 18px; height: 18px; }

/* ---------- Atalho lateral "Simule" ---------- */
.simule-rail {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 7px 10px;
  background: var(--blue);
  border-radius: 12px 0 0 12px;
  box-shadow: -6px 8px 26px rgba(16, 24, 40, 0.26);
  transform: translate(105%, -50%);
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.simule-rail.show { transform: translate(0, -50%); }
.rail-label {
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.simule-rail a {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  transition: background 0.15s;
}
.simule-rail a:hover { background: rgba(255, 255, 255, 0.18); }
.simule-rail svg { width: 24px; height: 24px; }
@media (prefers-reduced-motion: reduce) {
  .simule-rail { transition: none; }
}

/* ---------- WhatsApp flutuante ---------- */
.whats-float {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(34, 197, 94, 0.45);
  z-index: 50;
  transition: transform 0.18s ease;
}
.whats-float:hover { transform: scale(1.07); }

/* ---------- Animações de entrada (discretas) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .reveal.visible { opacity: 1; transform: none; }
  .reveal-d1 { transition-delay: 0.08s; }
  .reveal-d2 { transition-delay: 0.16s; }
  .reveal-d3 { transition-delay: 0.24s; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .conq-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(5, 1fr); gap: 10px; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .filter-bar { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --rail-h: 62px; }

  /* "Simule" vira barra fixa no rodapé */
  .simule-rail {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--rail-h);
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border-radius: 0;
    box-shadow: 0 -6px 22px rgba(16, 24, 40, 0.24);
    transform: translateY(105%);
  }
  .simule-rail.show { transform: translateY(0); }
  .rail-label { margin: 0 6px 0 0; font-size: 12px; }
  .simule-rail a { width: 46px; height: 46px; }

  /* sobe o WhatsApp e desconta a altura da barra no fim da página */
  .whats-float { bottom: calc(var(--rail-h) + 16px); }
  .footer { padding-bottom: calc(28px + var(--rail-h)); }
  .sum-bar { bottom: calc(var(--rail-h) + 12px); }

  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 32px; padding-bottom: 64px; }
  /* no mobile o simulador vem primeiro, o texto na sequência */
  .hero-grid > .sim-card { order: -1; }
  .sim-card { width: 100%; min-height: 0; justify-self: stretch; }
  .nav {
    position: fixed;
    top: 72px; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    width: min(320px, 84vw);
    height: calc(100vh - 72px);
    padding: 28px;
    gap: 22px;
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    /* fora da tela o menu fica oculto: não gera scroll lateral nem
       recebe foco do teclado */
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
    box-shadow: -20px 0 40px rgba(16, 24, 40, 0.08);
  }
  .nav.open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.25s ease, visibility 0s;
  }
  .nav-toggle { display: block; }
  .section { padding: 64px 0; }
  .section-photo { background-image: url("../img/metodo-bg-mobile.jpg"); }
  .cta-cartas { padding: 52px 24px; border-radius: 20px; background-image: url("../img/contempladas-bg-mobile.jpg"); }
  .steps { grid-template-columns: 1fr; align-items: stretch; }
  .step { min-height: 0 !important; border-radius: 14px; border-top-width: 4px; }
  .why-grid { grid-template-columns: 1fr; }
  .conq-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .cards-table thead { display: none; }
  .cards-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; padding: 16px; border-top: 1px solid var(--line); }
  .cards-table td { border: 0; padding: 4px 0; white-space: normal; }
  .cards-table td.selcell { grid-column: 1 / -1; padding-bottom: 6px; }
  .cards-table td[data-th]::before { content: attr(data-th); display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-light); font-weight: 700; }
  .cards-table .row-actions { grid-column: 1 / -1; justify-content: flex-start; margin-top: 8px; }
}

@media (max-width: 520px) {
  .conq-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .numbers { grid-template-columns: 1fr; }
  .sim-card { padding: 22px; }
  .modal { padding: 24px; }
}
