/* =====================================================================
   VSL · Patrícia · CSS ESTRUTURAL compartilhado pelas 3 versões
   ---------------------------------------------------------------------
   Aqui mora só o que precisa ser IGUAL nas três: o esqueleto da página,
   a mecânica da trava (página fechada -> abre no CTA) e a estrutura do
   formulário de aplicação.
   Cor, tipografia e personalidade visual vêm de v1.css / v2.css / v3.css,
   sempre via as variáveis declaradas abaixo. Nenhuma cor literal aqui.
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding: 0 18px calc(56px + env(safe-area-inset-bottom));
  position: relative;
}

.wrap { max-width: var(--wrap, 680px); margin: 0 auto; position: relative; z-index: 1; }

/* ---------- topo / marca ---------- */
.brandbar {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 26px 0 4px;
}
.brandbar img { display: block; height: auto; }
.brandbar .wordmark {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 600; letter-spacing: .01em; color: var(--ink);
}
.brandbar .wordmark em { font-style: normal; color: var(--accent); }

/* ---------- dobra fechada: gancho + player ---------- */
.hero { text-align: center; padding: 22px 2px 6px; }

.kicker {
  display: inline-block;
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  padding: 7px 15px; border-radius: 999px; margin-bottom: 20px;
}

h1.hook {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(29px, 6.6vw, 46px);
  line-height: 1.09;
  letter-spacing: -.012em;
  color: var(--ink);
  text-wrap: balance;
}
h1.hook .hi { color: var(--accent); }

p.hook-sub {
  margin: 18px auto 0;
  max-width: 540px;
  font-size: clamp(15px, 2.4vw, 17px);
  color: var(--ink-soft);
  line-height: 1.58;
  text-wrap: pretty;
}

/* ---------- palco do player ---------- */
.stage { margin: 30px auto 0; max-width: var(--stage-w, 420px); }
.player-slot { position: relative; }
.player-slot vturb-smartplayer,
.player-slot video,
.player-slot iframe { display: block; width: 100%; margin: 0 auto; }

/* placeholder enquanto o embed da VTurb não foi colado no config.js */
.player-ph {
  position: relative; aspect-ratio: 9 / 16; width: 100%;
  border: 1px dashed var(--accent-line); border-radius: var(--radius);
  background: var(--card);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 26px; text-align: center;
}
.player-ph .ph-play {
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 22px; padding-left: 4px;
}
.player-ph .ph-title { font-family: var(--font-display); font-size: 20px; color: var(--ink); }
.player-ph .ph-note { font-size: 13px; color: var(--ink-soft); max-width: 260px; line-height: 1.5; }

.watch-note {
  margin: 18px auto 0; max-width: 460px; text-align: center;
  font-size: 14px; color: var(--ink-soft); line-height: 1.55;
}

body.vsl-open .skip-wrap { display: none; }

/* botão de liberar manualmente — só aparece com ?skip=1 (uso do time) */
.skip-wrap { text-align: center; margin-top: 18px; display: none; }
body.vsl-skip .skip-wrap { display: block; }
.skip-btn {
  background: none; border: 1px solid var(--line); border-radius: 999px;
  font-family: inherit; font-size: 12.5px; color: var(--ink-soft);
  padding: 9px 18px; cursor: pointer; transition: border-color .15s, color .15s;
}
.skip-btn:hover { border-color: var(--accent-line); color: var(--accent); }

/* ---------- A TRAVA ----------
   Tudo que vem depois do vídeo nasce fora do DOM visível. Só entra quando
   o vídeo chega no segundo do CTA (config.revealAfterSeconds). */
#vsl-locked { display: none; }
#vsl-locked.open { display: block; animation: openfold .55s cubic-bezier(.22,.61,.36,1) both; }
@keyframes openfold {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- seção da aplicação ---------- */
.apply { padding-top: 46px; }

.divider {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 34px; color: var(--ink-faint);
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
}
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }

.apply-head { text-align: center; margin-bottom: 30px; }
.apply-head h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(26px, 5.4vw, 38px); line-height: 1.14; color: var(--ink);
  text-wrap: balance;
}
.apply-head p {
  margin: 16px auto 0; max-width: 540px;
  font-size: 15px; color: var(--ink-soft); line-height: 1.62;
}

/* três garantias curtas (redução de risco, bloco 16 do roteiro) */
.assur { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 26px; }
.assur .it {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--card); padding: 15px 14px; text-align: center;
}
.assur .it .ic { display: block; color: var(--accent); margin: 0 auto 8px; width: 20px; height: 20px; }
.assur .it b { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.assur .it span { font-size: 12.5px; color: var(--ink-soft); line-height: 1.45; }
@media (max-width: 560px) {
  .assur { grid-template-columns: 1fr; }
  .assur .it { display: flex; align-items: flex-start; gap: 11px; text-align: left; }
  .assur .it .ic { margin: 2px 0 0; flex: 0 0 20px; }
}

/* ---------- formulário de aplicação (idêntico nas 3 versões) ---------- */
.ap-progress { margin: 0 2px 18px; }
.ap-progress-labels {
  display: flex; justify-content: space-between;
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 7px;
}
.ap-progress-track { height: 4px; border-radius: 999px; background: var(--track); overflow: hidden; }
.ap-progress-fill { height: 100%; width: 0%; border-radius: 999px; background: var(--accent); transition: width .3s ease; }

.ap-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px 20px; margin-bottom: 18px;
}
.ap-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.ap-card-head .lotus { flex: 0 0 26px; width: 26px; height: 26px; color: var(--accent); }
.ap-card-head h3 { font-family: var(--font-display); font-size: 23px; font-weight: 600; color: var(--ink); }
.ap-card-note { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 18px; line-height: 1.5; }

.ap-field { display: block; margin-bottom: 16px; }
.ap-field:last-child { margin-bottom: 0; }
.ap-label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.ap-hint { display: block; font-size: 12.5px; font-weight: 400; color: var(--ink-soft); margin-top: 2px; line-height: 1.45; }

.ap-input {
  width: 100%; font-family: inherit; font-size: 16px; color: var(--ink);
  background: var(--field-bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 14px; transition: border-color .15s, box-shadow .15s, background .15s;
}
.ap-input::placeholder { color: var(--ink-faint); }
.ap-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ap-input.err { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }

.ap-keyword {
  background: var(--keyword-bg); border: 1px solid var(--keyword-line);
  border-radius: 12px; padding: 15px; margin-top: 2px;
}
.ap-keyword .ap-label { margin-bottom: 6px; }
.ap-keyword .ap-input { margin-top: 9px; }

.ap-q { margin-bottom: 26px; }
.ap-q:last-child { margin-bottom: 0; }
.ap-qnum { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.ap-qtext { font-size: 15.5px; font-weight: 600; color: var(--ink); margin: 5px 0 13px; line-height: 1.45; }
.ap-q.err .ap-qtext { color: var(--red); }
.ap-q.err .ap-opt { border-color: var(--red-line); }

.ap-opt {
  display: flex; align-items: flex-start; gap: 11px;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 14px; margin-bottom: 9px; cursor: pointer; min-height: 48px;
  background: var(--opt-bg); transition: border-color .15s, background .15s, box-shadow .15s;
}
.ap-opt:last-child { margin-bottom: 0; }
.ap-opt:hover { border-color: var(--accent-line); }
.ap-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ap-opt .dot {
  flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--dot-line); margin-top: 1px; position: relative; transition: border-color .15s;
}
.ap-opt input:checked ~ .dot { border-color: var(--accent); }
.ap-opt input:checked ~ .dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); }
.ap-opt .txt { font-size: 14.5px; color: var(--ink); line-height: 1.4; }
.ap-opt .emo { margin-right: 2px; }
.ap-opt.sel { border-color: var(--accent); background: var(--accent-soft); }

.ap-submit {
  width: 100%; font-family: inherit; font-size: 16.5px; font-weight: 600;
  color: var(--on-accent); background: var(--accent); border: none; border-radius: 14px;
  padding: 17px; cursor: pointer;
  box-shadow: var(--shadow-accent);
  transition: background .15s, transform .15s, box-shadow .15s;
}
.ap-submit:hover { background: var(--accent-deep); transform: translateY(-1px); }
.ap-submit:active { transform: translateY(1px); }
.ap-submit:disabled { opacity: .6; cursor: default; box-shadow: none; transform: none; }

.ap-foot { text-align: center; font-size: 12.5px; color: var(--ink-soft); margin-top: 14px; line-height: 1.5; }
.ap-err { display: none; color: var(--red); font-size: 13px; font-weight: 500; margin-top: 12px; text-align: center; }
.ap-err.show { display: block; }

/* ---------- sucesso ---------- */
.ap-success { display: none; text-align: center; padding: 34px 8px 10px; }
.ap-success.show { display: block; animation: openfold .5s ease both; }
.ap-success .check {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--ok-bg); border: 1px solid var(--ok-line);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 22px;
}
.ap-success .check svg { width: 38px; height: 38px; }
.ap-success h2 { font-family: var(--font-display); font-size: clamp(28px, 5.4vw, 34px); font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.ap-success p { font-size: 16px; color: var(--ink-soft); max-width: 460px; margin: 0 auto 14px; }
.ap-recall {
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  border-radius: 14px; padding: 18px 20px; margin: 22px auto 0; max-width: 440px;
}
.ap-recall .small { font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; }
.ap-recall .word { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--accent); word-break: break-word; }

/* ---------- fecho ---------- */
.closer { text-align: center; margin: 42px auto 0; max-width: 560px; }
.closer p {
  font-family: var(--font-display); font-size: clamp(19px, 3.4vw, 24px);
  line-height: 1.36; color: var(--ink); font-weight: 500;
}
.closer .sign { display: block; margin-top: 12px; font-family: var(--font-body); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }

.foot { text-align: center; font-size: 11.5px; color: var(--ink-faint); padding: 34px 0 6px; letter-spacing: .02em; }
.foot img { display: block; margin: 0 auto 8px; width: 84px; height: auto; opacity: .85; }

@media (max-width: 480px) {
  .ap-card { padding: 22px 16px; }
  .apply { padding-top: 38px; }
}
