/* ==================================================================
   Página isca — blocos 1 e 2 do relatório + CTA + pop-up do formulário
   (carregado só no index.html, depois de styles.css)
   ================================================================== */

@media (max-width: 480px) { :root { --gutter: 16px; } }

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

/* ---------- CTA DO CABEÇALHO ---------- */
.header__cta {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  min-height: 40px; padding: 0 16px 0 18px; border-radius: 999px;
  background: var(--ink); color: var(--ivory);
  font-size: .8rem; font-weight: 700; letter-spacing: .02em;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.header__cta svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.header__cta:hover { background: var(--gold); color: var(--ink); }
.header__cta:hover svg { transform: translateX(3px); }

/* ---------- BOTÃO PRINCIPAL ---------- */
.cta { margin-top: 36px; display: grid; gap: 14px; justify-items: start; }
.btn-cta {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 64px; padding: 8px 8px 8px 30px; border-radius: 999px;
  background: var(--ink); color: var(--ivory);
  font-family: var(--display); font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em;
  box-shadow: 0 18px 40px -18px rgba(14, 27, 38, .65);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn-cta__icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--gold-grad); color: var(--ink);
  transition: transform .3s var(--ease);
}
.btn-cta__icon svg { width: 20px; height: 20px; }
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 24px 48px -18px rgba(14, 27, 38, .7); }
.btn-cta:hover .btn-cta__icon { transform: translateX(4px); }
.btn-cta:active { transform: translateY(0); }
.btn-cta--gold { background: var(--gold-grad); color: var(--ink); box-shadow: 0 16px 32px -16px rgba(0, 0, 0, .55); }
.btn-cta--gold .btn-cta__icon { background: var(--ink); color: var(--gold-2); }
.cta__note { font-size: .86rem; font-weight: 600; color: var(--muted); }
.section--dark .cta__note { color: var(--muted-light); }

@media (max-width: 560px) {
  .cta { justify-items: stretch; }
  .btn-cta { width: 100%; }
}

/* ---------- FECHAMENTO ---------- */
.unlock__grid { position: relative; display: grid; gap: clamp(48px, 7vw, 96px); }
@media (min-width: 1024px) { .unlock__grid { grid-template-columns: 1fr 1fr; align-items: center; } }
.unlock .h2 { max-width: 18ch; }
.unlock .lead { margin-top: 22px; max-width: 48ch; }

.chapters { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-light); }
.chapter {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px;
  padding: 24px 0; border-bottom: 1px solid var(--line-light);
}
.chapter__lock { width: 22px; height: 22px; margin-top: 2px; color: var(--gold-2); }
.chapter__title { font-family: var(--display); font-weight: 700; font-size: 1.12rem; letter-spacing: -.02em; line-height: 1.3; color: var(--ivory); }
.chapter__desc { margin-top: 6px; font-size: .95rem; line-height: 1.55; color: var(--muted-light); max-width: 52ch; }

/* ---------- POP-UP ---------- */
html:has(.lead-dialog[open]) { overflow: hidden; }

.lead-dialog {
  width: min(480px, calc(100% - 32px)); max-width: none;
  max-height: calc(100dvh - 32px); margin: auto; padding: 0;
  border: 0; border-radius: var(--radius-lg);
  background: var(--ink); color: var(--ivory);
  box-shadow: 0 28px 56px -24px rgba(0, 0, 0, .55);
  overflow: auto; overscroll-behavior: contain;
}
.lead-dialog::backdrop { background: rgba(14, 27, 38, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lead-dialog[open] { animation: dialog-in .5s var(--ease); }
.lead-dialog[open]::backdrop { animation: backdrop-in .4s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@keyframes backdrop-in { from { opacity: 0; } }

.lead-dialog__panel { position: relative; padding: 30px 32px 24px; }
.lead-dialog__panel::before {
  content: ""; position: absolute; top: 0; left: 32px; right: 32px; height: 2px;
  background: var(--gold-grad); border-radius: 0 0 2px 2px;
}
.lead-dialog__close {
  position: absolute; top: 16px; right: 16px;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(248, 245, 239, .06); color: var(--ivory);
  transition: background .2s var(--ease);
}
.lead-dialog__close svg { width: 18px; height: 18px; }
.lead-dialog__close:hover { background: rgba(248, 245, 239, .14); }
.lead-dialog__title {
  padding-right: 48px;
  font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 3vw, 1.65rem);
  letter-spacing: -.03em; line-height: 1.2; color: var(--ivory);
}
.lead-dialog__sub { margin-top: 8px; font-size: .95rem; line-height: 1.5; color: var(--muted-light); }

@media (max-width: 560px) {
  .lead-dialog {
    width: 100%; height: 100dvh; max-height: 100dvh;
    border: 0; border-radius: 0;
  }
  .lead-dialog__panel { padding: calc(28px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom)); }
  .lead-dialog__panel::before { display: none; }
  .lead-dialog__close { top: calc(14px + env(safe-area-inset-top)); right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .lead-dialog[open], .lead-dialog[open]::backdrop { animation: none; }
}

/* ---------- FORMULÁRIO ---------- */
.lead-form { margin-top: 20px; display: grid; gap: 10px; }

.field { display: grid; gap: 6px; min-width: 0; scroll-margin-top: 24px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select {
  width: 100%; min-height: 52px; padding: 0 18px;
  font: inherit; font-size: 1rem; color: var(--ivory);
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(184, 148, 90, .45); border-radius: 16px;
  outline: none; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input { text-overflow: ellipsis; caret-color: var(--gold-2); }
.field input::placeholder { color: rgba(248, 245, 239, .55); }
.field input:focus, .field select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 148, 90, .18); }

.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 52px;
  text-overflow: ellipsis; white-space: nowrap; overflow: hidden;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D8BD8A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; background-size: 20px;
}
.field select:invalid { color: rgba(248, 245, 239, .55); }
.field select option { color: var(--ink); background: var(--paper); }

.field--phone { grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; }
.field--phone .field__error { grid-column: 1 / -1; }
.field__prefix {
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 16px;
  border: 1px solid rgba(184, 148, 90, .45); border-radius: 16px;
  background: rgba(255, 255, 255, .03); font-size: 1rem; color: var(--ivory); white-space: nowrap;
}
.field__flag { font-size: 1.1rem; line-height: 1; }

/* Celular: menos respiro lateral, mas fonte sempre ≥ 16px (abaixo disso o iOS dá zoom ao focar). */
@media (max-width: 480px) {
  .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select { padding: 0 14px; min-height: 54px; }
  .field select { padding-right: 40px; background-position: right 12px center; background-size: 18px; }
  .field__prefix { padding: 0 12px; min-height: 54px; }
}

.field.is-invalid input[type="text"], .field.is-invalid input[type="email"],
.field.is-invalid input[type="tel"], .field.is-invalid select { border-color: #E5484D; }
.field.is-invalid .check__box { border-color: #E5484D; }
.field__error { font-size: .8rem; font-weight: 600; line-height: 1.3; color: #FF8A8A; }
.field__error:empty { display: none; }

/* ---------- ACEITE ---------- */
.field--check { margin-top: 4px; }
.check { position: relative; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; cursor: pointer; }
.check__box {
  flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; border-radius: 6px;
  background: rgba(255, 255, 255, .03); border: 1px solid rgba(184, 148, 90, .6);
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.check__box svg { width: 15px; height: 15px; color: var(--ink); opacity: 0; transition: opacity .15s var(--ease); }
.check input:checked + .check__box { background: var(--gold); border-color: var(--gold); }
.check input:checked + .check__box svg { opacity: 1; }
.check input:focus-visible + .check__box { outline: 2px solid var(--gold); outline-offset: 3px; }
.check__text { font-size: .88rem; line-height: 1.5; color: rgba(248, 245, 239, .82); }
.check__text a { color: var(--gold-2); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(216, 189, 138, .4); text-underline-offset: 3px; }
.check__text a:hover { text-decoration-color: currentColor; }

/* ---------- ENVIO ---------- */
.btn-submit {
  width: 100%; min-height: 56px; margin-top: 4px; border-radius: 999px;
  font-family: var(--display); font-size: 1.08rem; font-weight: 700; color: var(--ink);
  background: var(--gold-grad);
  box-shadow: 0 12px 24px -14px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), opacity .2s var(--ease);
}
.btn-submit:hover { transform: translateY(-1px); box-shadow: 0 16px 28px -14px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-submit:disabled { opacity: .6; cursor: progress; transform: none; }

.form__status { font-size: .88rem; font-weight: 600; line-height: 1.4; color: #FF8A8A; text-align: center; }
.form__status:empty { display: none; }
.form__note {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: .8rem; line-height: 1.4; color: rgba(248, 245, 239, .6); text-align: center;
}
.form__note svg { width: 14px; height: 14px; flex: none; color: var(--gold-2); }

/* ---------- ARMADILHA ANTI-ROBÔ ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-dialog__title:focus { outline: none; }
