/* CB Consultoria Financeira — LP 2ª Aposentadoria */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy-900: #071B27;
  --navy: #0B2737;
  --navy-700: #123A50;
  --blue: #0095FF;
  --blue-600: #0079D1;
  --blue-50: #E8F4FF;
  --red: #B11226;
  --ink: #0B2737;
  --body: #4A5866;
  --muted: #6B7785;
  --line: #DCE3EA;
  --bg-light: #F4F7FA;
  --white: #fff;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(11, 39, 55, .06);
  --shadow: 0 18px 40px -18px rgba(11, 39, 55, .28);
  --shadow-lg: 0 30px 60px -24px rgba(11, 39, 55, .35);
  --container: 1180px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 700; color: inherit; }
figure { margin: 0; }
h1, h2 { margin: 0; text-wrap: balance; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  font: 700 15px/1.2 "Montserrat", sans-serif;
  letter-spacing: .04em;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #1AA3FF 0%, var(--blue) 45%, var(--blue-600) 100%);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 12px 24px -10px rgba(0, 149, 255, .65), inset 0 1px 0 rgba(255,255,255,.25);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(0, 149, 255, .75), inset 0 1px 0 rgba(255,255,255,.25); }
.btn:hover svg { transform: translateX(3px); }
.btn:focus-visible { outline: 3px solid rgba(0, 149, 255, .4); outline-offset: 3px; }
.btn-lg { padding: 19px 34px; font-size: 16px; }
.btn-block { width: 100%; padding: 18px 16px; font-size: 14px; letter-spacing: .02em; gap: 8px; }
.btn[disabled] { opacity: .65; cursor: wait; transform: none; }

/* ---------- Topbar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px var(--gutter);
  background: var(--navy-900);
  color: rgba(255,255,255,.85);
  font-size: 13px;
  letter-spacing: .02em;
  text-align: center;
}
.topbar p { margin: 0; }
.topbar strong { color: #fff; }
.topbar-ico { width: 16px; height: 16px; color: #FFB020; flex: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(760px, 88vh);
  display: flex;
  align-items: center;
  padding: 80px 0 96px;
  background: #fff url("../img/hero-desktop.jpg?v=1") no-repeat right center / cover;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px;
  background: linear-gradient(to bottom, rgba(244,247,250,0), var(--bg-light));
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; }
.hero-content { max-width: 560px; }
.hero h1 {
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--ink);
}
.hero h1 b {
  font-weight: 800;
  background: linear-gradient(transparent 62%, rgba(0,149,255,.22) 62%);
  padding: 0 2px;
}
.hero-sub {
  margin: 24px 0 36px;
  padding-left: 18px;
  border-left: 3px solid var(--blue);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--navy-700);
}
.hero-sub strong { color: var(--blue-600); }

/* ---------- Seções ---------- */
.section { padding: 104px 0; }
.section-tight { padding: 24px 0 104px; }
.section-light { background: var(--bg-light); }
.section-white { background: #fff; }
.section-navy {
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(0,149,255,.18), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(0,149,255,.10), transparent 60%),
    var(--navy);
  color: rgba(255,255,255,.86);
}

.section-title {
  max-width: 880px;
  margin: 0 auto 64px;
  font-size: clamp(27px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.015em;
  color: var(--ink);
  text-align: center;
}
.section-title::after {
  content: ""; display: block; width: 64px; height: 4px; margin: 24px auto 0;
  border-radius: 4px; background: var(--blue);
}
.section-title-light { color: #fff; font-weight: 500; }
.section-title-light strong { font-weight: 800; }
.section-title-left { text-align: left; margin: 0 0 32px; font-weight: 500; }
.section-title-left strong { font-weight: 800; color: var(--blue-600); }
.section-title-left::after { margin-left: 0; }

.tag-red {
  display: inline;
  padding: 2px 10px;
  color: #fff;
  background: var(--red);
  border-radius: 6px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.split-center { align-items: center; }

.prose { color: var(--body); }
.prose strong { color: var(--ink); }
.prose-lg { font-size: 19px; line-height: 1.7; }

.media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* ---------- História (navy) ---------- */
.split-story { align-items: start; gap: 48px; }
.story-col { display: grid; gap: 40px; }
.story-card {
  padding: 36px 36px 36px 40px;
  border: 1px solid rgba(255,255,255,.12);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(4px);
  font-size: 18px;
  line-height: 1.7;
}
.story-card strong { color: #fff; }
.story-photo { width: 100%; border-radius: var(--radius); box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); }

/* ---------- Oferta + formulário ---------- */
.split-form { grid-template-columns: 1fr 480px; align-items: start; }
.offer .prose { font-size: 18px; }
.benefits {
  list-style: none; margin: 28px 0 36px; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.benefits li, .audience-list li {
  display: flex; align-items: center; gap: 12px;
  font-weight: 600; color: var(--ink);
}
.benefits li {
  padding: 14px 16px;
  font-size: 15px;
  background: var(--bg-light);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.benefit-ico {
  display: inline-grid; place-items: center; flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  color: #fff; background: var(--blue);
  box-shadow: 0 6px 12px -6px rgba(0,149,255,.8);
}
.benefit-ico svg { width: 16px; height: 16px; }

.offer-cta {
  padding: 28px 30px;
  border-radius: var(--radius);
  background: var(--blue-50);
  border: 1px solid #CDE6FB;
}
.offer-cta-title { margin-bottom: 10px; font-size: 22px; line-height: 1.3; color: var(--ink); }
.offer-cta p:last-child { font-size: 16px; }

.form-wrap { position: sticky; top: 24px; }
.anchor { position: absolute; top: -24px; }
.form-card {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; margin-bottom: 22px; }
.field-full { grid-column: 1 / -1; }
.field label {
  display: block; margin-bottom: 6px;
  font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--ink);
}
.field input, .field select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font: 500 15px "Montserrat", sans-serif;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%230B2737' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 18px;
  text-overflow: ellipsis;
}
.field input::placeholder { color: #9AA5B1; }
.field input:hover, .field select:hover { border-color: #B9C5D1; }
.field input:focus, .field select:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,149,255,.15); }
.field input.invalid, .field select.invalid { border-color: var(--red); box-shadow: 0 0 0 4px rgba(177,18,38,.1); }
.form-msg { margin: 10px 0 0; min-height: 1.2em; font-size: 13px; font-weight: 600; color: var(--red); text-align: center; }
.form-msg:empty { min-height: 0; margin: 0; }
.form-legal { margin: 14px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--muted); text-align: center; }
.form-legal a { color: var(--blue-600); }

/* ---------- Para quem é ---------- */
.audience {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center;
  padding: 56px 64px;
  border-radius: 28px;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(0,149,255,.25), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%);
  box-shadow: var(--shadow-lg);
}
.audience-title { font-size: clamp(28px, 3vw, 38px); font-weight: 800; line-height: 1.18; color: #fff; letter-spacing: -.015em; }
.audience-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.audience-list li {
  align-items: flex-start;
  padding: 16px 20px;
  font-size: 16px; font-weight: 500; color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
}
.audience-list li > span:last-child { padding-top: 3px; }
.audience-list strong { color: #fff; }

/* ---------- Sobre ---------- */
.split-about { grid-template-columns: 1.1fr .9fr; align-items: center; }
.about-logo { width: 220px; margin: 28px 0; }
.mission {
  margin-bottom: 36px;
  padding: 22px 24px;
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.about-photo { position: relative; }
.about-photo::before {
  content: ""; position: absolute; inset: 24px -24px -24px 24px;
  border: 2px solid var(--blue); border-radius: var(--radius);
  z-index: 0;
}
.about-photo img { position: relative; z-index: 1; width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* ---------- Rodapé ---------- */
.footer { padding: 32px 0; background: var(--navy-900); color: rgba(255,255,255,.65); font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ---------- CTA fixo no celular ---------- */
.mobile-cta { display: none; }

/* ---------- Animação de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
/* Desktop/tablet deitado: a foto (16:9) ocupa sempre a largura toda, então a metade branca
   da esquerda fica com exatamente 50vw; o texto é limitado a essa metade. */
@media (min-width: 900px) {
  .hero {
    min-height: min(56.25vw, 760px);
    padding: 48px 0 64px;
    background-size: 100% auto;
    background-position: center top;
  }
  .hero-content { max-width: min(560px, calc(50vw - max(0px, (100vw - var(--container)) / 2) - var(--gutter) - 24px)); }
}
@media (min-width: 900px) and (max-width: 1279px) {
  .hero h1 { font-size: clamp(30px, 3.6vw, 44px); }
  .hero-sub { font-size: 17px; margin: 20px 0 28px; }
}

@media (max-width: 1080px) {
  .split-form { grid-template-columns: 1fr 420px; gap: 40px; }
  .audience { padding: 48px; gap: 32px; }
}

@media (max-width: 899px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .section-tight { padding: 8px 0 72px; }
  .section-title { margin-bottom: 40px; }
  .split, .split-form, .split-about, .audience { grid-template-columns: 1fr; gap: 36px; }

  .hero {
    min-height: 0;
    align-items: flex-start;
    padding: 48px 0 min(110vw, 460px);
    background-image: url("../img/hero-mobile.jpg?v=1");
    background-position: bottom center;
    background-size: cover;
    text-align: center;
  }
  .hero::after { display: none; }
  .hero-content { margin: 0 auto; }
  .hero-sub { padding-left: 0; border-left: 0; margin: 20px 0 28px; }

  .prose-lg { font-size: 17px; }
  .story-card { padding: 26px 22px 26px 24px; font-size: 16.5px; }
  .story-col { gap: 28px; }

  .form-wrap { position: static; }
  .form-card { padding: 24px 20px; }
  .benefits { grid-template-columns: 1fr; }
  .offer-cta { padding: 22px; }

  .audience { padding: 36px 22px; border-radius: 22px; }
  .audience-title { text-align: center; }

  .about-photo { margin: 0 24px 24px 0; }
  .section-title-left { text-align: center; }
  .section-title-left::after { margin-left: auto; }
  .about-text { text-align: left; }
  .about-text .btn { width: 100%; }
  .about-logo { margin: 24px auto; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer { padding-bottom: 96px; }

  .mobile-cta {
    display: flex;
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
    padding: 16px; font-size: 14px;
    transform: translateY(140%);
    transition: transform .3s ease;
  }
  .mobile-cta.show { transform: none; }
}

@media (max-width: 420px) {
  .form-grid { grid-template-columns: 1fr; }
  .btn-lg, .btn-block, .mobile-cta, .about-text .btn {
    width: 100%; padding: 17px 14px; gap: 8px;
    font-size: 13.5px; letter-spacing: .01em; text-align: center;
  }
  .btn-lg svg, .btn-block svg, .mobile-cta svg, .about-text .btn svg { width: 16px; height: 16px; }
}

@media (max-width: 359px) {
  .btn svg { display: none; }
  .btn-lg, .btn-block, .mobile-cta, .about-text .btn { font-size: 12.5px; letter-spacing: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .mobile-cta { transition: none; }
}

@media (max-width: 420px) {
  .mobile-cta { width: auto; }
  .form-card { padding: 22px 16px; }
  .btn-block svg { display: none; }
  .btn-block { padding-left: 10px; padding-right: 10px; }
}

/* Honeypot anti-spam */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Múltipla escolha (Em que você costuma investir?) */
.field-checks { border: 0; margin: 0; padding: 0; min-width: 0; }
.field-checks legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.field-hint { font-weight: 500; color: var(--muted); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.field-checks .check {
  position: relative;
  margin: 0;
  display: flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 10px 12px;
  font-size: 14px; font-weight: 500; line-height: 1.25; color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.field-checks .check:hover { border-color: #B9C5D1; }
.field-checks .check input {
  -webkit-appearance: none; appearance: none; flex: none;
  width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0;
  border: 1.5px solid #9AA5B1; border-radius: 5px; background: #fff;
  display: grid; place-items: center; cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.field-checks .check input::after {
  content: ""; width: 9px; height: 5px; margin-top: -2px;
  border-left: 2.2px solid #fff; border-bottom: 2.2px solid #fff;
  transform: rotate(-45deg) scale(0); transition: transform .12s ease;
}
.field-checks .check input:checked { background: var(--blue); border-color: var(--blue); }
.field-checks .check input:checked::after { transform: rotate(-45deg) scale(1); }
.field-checks .check:has(input:checked) { border-color: var(--blue); background: var(--blue-50); }
.field-checks .check input:focus-visible { outline: 3px solid rgba(0,149,255,.35); outline-offset: 2px; }
.field-checks.invalid .check { border-color: var(--red); }
@media (max-width: 360px) { .checks { grid-template-columns: 1fr; } }
