/* CJNE — página de vendas e páginas legais. Mobile first. */

:root {
  /* Marca */
  --navy: #0B1F3A;
  --navy-2: #071528;
  --blue: #2C5CC5;
  --blue-dark: #234BA6;
  --blue-light: #7FB3FF;
  --blue-soft: #DCEBFF;   /* só em detalhes: chips, selos, destaques */
  --white: #F6F9FF;

  /* Superfícies neutras */
  --surface: #FFFFFF;
  --neutral: #F1F3F7;
  --line: #E0E5EE;
  --line-dark: rgba(127, 179, 255, .22);

  /* Texto */
  --text: #0B1F3A;
  --muted: #4A5870;
  --on-dark: #D3E0F5;
  --on-dark-muted: #A9BCDB;

  --warn-bg: #FFF4CC;
  --warn-text: #5C4300;

  --font-title: "Bebas Neue", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --font-body: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --gutter: 16px;
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

a { color: var(--blue); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; border-radius: 6px; }

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

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--white); color: var(--navy); padding: 10px 14px; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 8px; }

/* ---------- Faixa de revisão e selos ---------- */
.revisao {
  background: var(--warn-bg); color: var(--warn-text);
  border-bottom: 2px solid #E0B300;
  padding: 0 var(--gutter); font-size: .95rem; line-height: 1.4;
}
.revisao summary { cursor: pointer; padding: 12px 0; min-height: 44px; }
.revisao ul { margin: 0 0 12px; padding-left: 1.2em; }
.revisao li + li { margin-top: 4px; }
.pending {
  display: inline-block;
  background: var(--warn-bg); color: var(--warn-text);
  border: 1px dashed #B88A00; border-radius: 6px;
  padding: 0 7px; font-family: var(--font-body); font-weight: 700;
  font-size: .8rem; line-height: 1.6; letter-spacing: .02em; vertical-align: middle;
}

.pending--inline { display: inline; font-size: .85em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; max-width: 440px; min-height: 56px;
  padding: 14px 24px; border-radius: 12px;
  background: var(--blue); color: #fff;
  font-weight: 700; font-size: 1.125rem; line-height: 1.2; text-align: center; text-decoration: none;
  box-shadow: 0 8px 22px rgba(44, 92, 197, .35);
  transition: background-color .15s ease, transform .15s ease;
  cursor: pointer;
}
.btn:hover { background: var(--blue-dark); }
.btn:active { transform: translateY(1px); }
.btn__arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn--block { max-width: none; }
.btn--light { background: #fff; color: var(--navy); box-shadow: 0 8px 22px rgba(7, 21, 40, .25); }
.btn--light:hover { background: var(--white); }
.btn.is-disabled {
  background: #5D6F8C; color: #fff; box-shadow: none; cursor: not-allowed; transform: none;
}

/* ---------- Títulos de seção ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue);
}
.kicker::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: currentColor; }
.kicker--light { color: var(--blue-light); }
.section__title {
  margin-top: 8px;
  font-family: var(--font-title); font-weight: 400;
  font-size: clamp(2.35rem, 9vw, 3.4rem); line-height: .98; letter-spacing: .01em;
  color: var(--navy); text-wrap: balance;
}
.section__lead { margin-top: 12px; color: var(--muted); max-width: 36rem; }

/* ---------- Seções ---------- */
.section { padding: 56px 0; }
.section--white { background: var(--surface); }
.section--neutral { background: var(--neutral); }
.section--navy { background: var(--navy); color: var(--on-dark); }
.section--navy .section__title { color: #fff; }

/* ---------- Primeira tela ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(90% 55% at 50% -5%, rgba(44, 92, 197, .45) 0%, rgba(44, 92, 197, 0) 70%),
    var(--navy);
  color: var(--white);
  padding: 28px 0 48px;
  text-align: center;
}
.hero__logo { width: 156px; margin: 0 auto 26px; }
.eyebrow {
  display: inline-block;
  font-size: .9rem; font-weight: 600;
  color: var(--blue-light);
  border: 1px solid var(--line-dark); border-radius: 999px;
  padding: 5px 14px; margin-bottom: 16px;
  text-wrap: balance;
}
.hero__title {
  font-family: var(--font-title); font-weight: 400;
  font-size: clamp(2.6rem, 12vw, 4.8rem);
  line-height: .95; letter-spacing: .01em;
  max-width: 17ch; margin: 0 auto;
  text-wrap: balance;
}
.hl { color: var(--blue-light); }
.hero__lead {
  max-width: 34rem; margin: 16px auto 0;
  font-size: 1.125rem; color: var(--on-dark);
}
.hero__cta { margin-top: 28px; }

/* ---------- VSL ---------- */
.vsl { margin: 28px auto 0; max-width: 820px; }
.vsl__frame {
  position: relative; aspect-ratio: 16 / 9;
  overflow: hidden; background: var(--navy-2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .4);
  /* No celular o vídeo encosta nas laterais para ficar maior */
  margin: 0 calc(var(--gutter) * -1); width: calc(100% + var(--gutter) * 2); border-radius: 0;
}
.vsl__frame--vertical { aspect-ratio: 9 / 16; width: min(100%, calc(78vh * 9 / 16)); margin: 0 auto; border-radius: var(--radius); }
.vsl__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vsl__play {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 0; border: 0; background: var(--navy-2); cursor: pointer; color: var(--white);
}
.vsl__play:focus-visible { outline-offset: -4px; }
.vsl__poster { width: 100%; height: 100%; object-fit: cover; }
.vsl__icon {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .45));
  transition: transform .15s ease;
}
.vsl__play:hover .vsl__icon { transform: translate(-50%, -50%) scale(1.06); }
.vsl__hint {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  background: rgba(7, 21, 40, .85); padding: 4px 12px; border-radius: 999px;
  font-size: .9rem; font-weight: 600; white-space: nowrap;
}
.vsl__teste {
  margin-top: 10px; display: inline-block;
  background: var(--warn-bg); color: var(--warn-text);
  border-radius: 6px; padding: 2px 10px; font-size: .85rem; font-weight: 700;
}

/* ---------- Temas ---------- */
.temas { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.tema {
  position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 20px;
  box-shadow: 0 1px 2px rgba(11, 31, 58, .04), 0 8px 24px rgba(11, 31, 58, .05);
  display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center;
}
.tema p { grid-column: 1 / -1; }
.tema__num {
  position: absolute; right: 18px; top: 12px;
  font-family: var(--font-title); font-size: 2.6rem; line-height: 1; color: var(--blue-soft);
}
.tema__icon {
  width: 44px; height: 44px; padding: 9px; border-radius: 12px;
  background: var(--blue-soft);
  fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.tema h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.25; color: var(--navy); padding-right: 44px; }
.tema p { margin-top: 10px; color: var(--muted); font-size: 1.04rem; line-height: 1.5; }

/* ---------- Como funciona (marinho) ---------- */
.fatos { margin: 28px 0 0; display: grid; gap: 12px; }
.fato {
  border: 1px solid var(--line-dark); border-radius: var(--radius);
  background: rgba(127, 179, 255, .06);
  padding: 16px 18px;
}
.fato dt { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-light); }
.fato dd { margin: 4px 0 0; color: #fff; font-size: 1.12rem; font-weight: 600; line-height: 1.4; }

.pontos { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.pontos li { padding-left: 34px; position: relative; line-height: 1.5; }
.pontos li::before {
  content: ""; position: absolute; left: 0; top: .2em;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.pontos strong { color: #fff; }

/* ---------- Oferta ---------- */
.oferta-sec { scroll-margin-top: 0; }
.oferta-sec:focus { outline: none; }
.oferta {
  position: relative; margin: 28px auto 0; max-width: 560px;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(44, 92, 197, .35) 0%, rgba(44, 92, 197, 0) 60%),
    var(--navy);
  color: var(--on-dark);
  border-radius: 22px;
  padding: 26px 20px 22px;
  box-shadow: 0 24px 50px rgba(11, 31, 58, .28);
  overflow: hidden;
}
.oferta::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
}
.oferta__top { display: flex; flex-direction: column; gap: 6px; }
.oferta__logo { width: 100px; }
.oferta__nome { font-weight: 600; color: #fff; line-height: 1.3; font-size: 1rem; }

.oferta__inclui { list-style: none; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line-dark); display: grid; gap: 8px; font-size: 1.04rem; }
.oferta__inclui li { position: relative; padding-left: 28px; line-height: 1.4; }
.oferta__inclui li::before {
  content: ""; position: absolute; left: 0; top: .25em; width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%237FB3FF' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.oferta__preco {
  margin-top: 18px; padding: 14px 16px;
  background: rgba(127, 179, 255, .08); border: 1px solid var(--line-dark); border-radius: 14px;
}
.oferta__rotulo { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-light); }
.oferta__valor {
  display: block; margin-top: 2px;
  font-family: var(--font-title); font-size: 3.6rem; line-height: 1; color: #fff; letter-spacing: .01em;
}
.oferta__valor .pending { margin-left: 4px; position: relative; top: -.6em; }

.oferta__cond {
  margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line-dark);
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.oferta__cond dt { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-light); }
.oferta__cond dd { margin: 3px 0 0; color: #fff; font-weight: 600; line-height: 1.4; }

.oferta__uso { margin-top: 16px; font-size: .95rem; line-height: 1.5; color: var(--on-dark-muted); }
.oferta__uso strong { color: var(--on-dark); }

.btn--buy { margin-top: 20px; min-height: 60px; font-size: 1.2rem; }
.oferta__aviso { margin-top: 8px; text-align: center; font-size: .95rem; color: var(--on-dark); }
.oferta__nota { margin-top: 14px; font-size: .92rem; line-height: 1.5; color: var(--on-dark-muted); text-align: center; }
.oferta__nota a { color: var(--blue-light); }

/* ---------- FAQ ---------- */
.faq { margin-top: 26px; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: border-color .15s ease; }
.faq details[open] { border-color: var(--blue-light); box-shadow: inset 4px 0 0 var(--blue); }
.faq summary {
  list-style: none; cursor: pointer;
  min-height: 58px; padding: 15px 52px 15px 18px; position: relative;
  font-weight: 700; color: var(--navy); line-height: 1.3;
  display: flex; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 16px; top: 50%;
  width: 26px; height: 26px; margin-top: -13px; border-radius: 50%;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5v10M5 10h10' fill='none' stroke='%232C5CC5' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .15s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 18px 18px; color: var(--muted); }

/* ---------- Chamada final ---------- */
.final {
  padding: 60px 0 64px; text-align: center; color: #fff;
  background: linear-gradient(160deg, #3467D6 0%, var(--blue) 45%, #2350B0 100%);
}
.final__title {
  font-family: var(--font-title); font-weight: 400;
  font-size: clamp(2.3rem, 9vw, 3.4rem); line-height: .98;
  max-width: 18ch; margin: 0 auto; text-wrap: balance;
}
.final__lead { margin-top: 12px; font-size: 1.2rem; color: #E6EEFC; }
.final__cta { margin-top: 26px; }
.final :focus-visible { outline-color: #fff; }

/* ---------- Rodapé ---------- */
.footer { background: var(--navy-2); color: var(--on-dark-muted); padding: 40px 0 44px; font-size: 1rem; }
.footer__inner { display: grid; gap: 14px; }
.footer__logo { width: 104px; }
.footer__name { color: #fff; font-weight: 600; }
.footer__desc { font-size: .95rem; }
.footer__heading { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--blue-light); margin-bottom: 2px; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer__list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.footer__list a { color: #fff; display: inline-flex; align-items: center; min-height: 44px; }
.footer__list--inline { display: flex; flex-wrap: wrap; gap: 0 22px; }
.footer__copy { font-size: .85rem; color: #8DA2C6; }

/* ---------- Botão fixo (celular) ---------- */
.cta-fixo {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 18px rgba(11, 31, 58, .12);
  transform: translateY(110%); visibility: hidden;
  transition: transform .2s ease, visibility .2s;
}
.cta-fixo.is-visible { transform: none; visibility: visible; }
.cta-fixo .btn { min-height: 52px; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .cta-fixo, .btn, .vsl__icon, .faq summary::after { transition: none; } }

/* ---------- Páginas legais ---------- */
.legal-top { background: var(--navy); padding: 18px 0; }
.legal-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.legal-top img { width: 104px; }
.legal-top a { color: var(--blue-light); font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.legal { padding: 40px 0 64px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-family: var(--font-title); font-weight: 400; font-size: clamp(2.3rem, 9vw, 3.2rem); line-height: 1; color: var(--navy); }
.legal .legal__meta { margin-top: 8px; color: var(--muted); font-size: .95rem; }
.legal .legal__aviso {
  margin-top: 20px; padding: 14px 16px; border-radius: 12px;
  background: var(--warn-bg); color: var(--warn-text); font-size: .95rem; border: 1px solid #E0B300;
}
.legal h2 { margin-top: 34px; font-size: 1.3rem; color: var(--navy); line-height: 1.3; }
.legal p, .legal li { color: #24344F; }
.legal p { margin-top: 12px; }
.legal ul { margin: 12px 0 0; padding-left: 1.2em; }
.legal li + li { margin-top: 6px; }
.legal mark {
  background: var(--warn-bg); color: var(--warn-text);
  border-bottom: 2px dashed #B88A00; padding: 0 3px; font-weight: 700;
}

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .vsl__frame { margin: 0; width: 100%; border-radius: var(--radius); }
  .vsl__frame--vertical { width: min(100%, calc(78vh * 9 / 16)); margin: 0 auto; }
  .temas { grid-template-columns: 1fr 1fr; gap: 16px; }
  .fatos { grid-template-columns: 1fr 1fr; }
  .oferta { padding: 32px 32px 28px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  .cta-fixo { display: none; }
  .hero { padding: 40px 0 72px; }
  .hero__logo { width: 190px; margin-bottom: 32px; }
  .hero .btn { width: auto; min-width: 340px; }
  .section { padding: 88px 0; }
  .section__head { text-align: center; }
  .section__lead { margin-left: auto; margin-right: auto; }
  .kicker { justify-content: center; }
  .temas { grid-template-columns: repeat(4, 1fr); margin-top: 40px; }
  .tema { display: block; padding: 22px 20px 24px; }
  .tema__icon { margin-bottom: 16px; }
  .tema h3 { padding-right: 0; }
  .fatos, .pontos { max-width: 980px; margin-left: auto; margin-right: auto; }
  .fatos { margin-top: 40px; }
  .pontos { grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 36px; }
  .faq { max-width: 760px; margin-left: auto; margin-right: auto; margin-top: 36px; }
  .oferta { margin-top: 40px; }
  .final .btn { width: auto; min-width: 320px; }
}

/* Desktop com vídeo: texto e botão à esquerda, vídeo à direita (botão fica acima da dobra) */
@media (min-width: 1000px) {
  .has-vsl .hero__inner {
    max-width: 1220px;
    display: grid; column-gap: 56px; align-items: center; text-align: left;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    grid-template-areas: "logo vsl" "eyebrow vsl" "title vsl" "lead vsl" "cta vsl";
    grid-template-rows: auto auto auto auto 1fr;
  }
  .has-vsl .hero__inner:has(.vsl__frame--vertical) { grid-template-columns: minmax(0, 1fr) auto; }
  .has-vsl .hero__logo { grid-area: logo; margin: 0 0 26px; width: 170px; }
  .has-vsl .eyebrow { grid-area: eyebrow; justify-self: start; }
  .has-vsl .hero__title { grid-area: title; margin: 0; max-width: 17ch; font-size: clamp(2.8rem, 4.2vw, 4.1rem); }
  .has-vsl .hero__lead { grid-area: lead; margin-left: 0; }
  .has-vsl .vsl { grid-area: vsl; margin: 0; width: 100%; text-align: center; }
  .has-vsl .vsl__frame--vertical { width: calc(min(78vh, 680px) * 9 / 16); }
  .has-vsl .hero__cta { grid-area: cta; align-self: start; }
}
