/* ═══════════════════════════════════════════════════════
   LEAD — danilocampos.tech
═══════════════════════════════════════════════════════ */

html, body { height: 100%; }

body {
  font-family: 'Georgia', serif;
}

body.is-thanks { height: auto; overflow-y: auto; }
body.is-thanks .funnel { justify-content: flex-start; padding-top: 80px; }

/* ── FUNDO ── */
.bg {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 0;
}

/* ── WRAPPER ── */
.funnel {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px 40px;
}

/* ── BARRA DE PROGRESSO ── */
.progress-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.06);
  z-index: 100;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 0.5s ease;
  width: 0%;
}

/* ── FOOTER ── */
.funnel-footer {
  position: relative;
  z-index: 2;
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(201,168,76,0.10);
}
.funnel-footer img {
  height: 32px;
  filter: brightness(0) invert(1);
  opacity: 0.45;
}
.funnel-footer p {
  font-family: 'Arial', sans-serif;
  font-size: 0.62rem;
  color: #333;
  letter-spacing: 0.1em;
}

/* ── CARD DO PASSO ── */
.card {
  width: 100%;
  max-width: 520px;
  background: rgba(10,10,10,0.82);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 44px 40px 40px;
  backdrop-filter: blur(16px);
  position: relative;
}

/* ── STEP COUNTER ── */
.step-counter {
  font-family: 'Arial', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: block;
}

/* ── PERGUNTA ── */
.step-question {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 10px;
}
.step-question em { color: var(--gold-light); font-style: italic; }
.step-hint {
  font-family: 'Arial', sans-serif;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

/* ── INPUT ── */
.step-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: 4px;
  color: var(--text);
  font-family: 'Georgia', serif;
  font-size: 1.1rem;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.25s, background 0.25s;
  margin-bottom: 20px;
}
.step-input::placeholder { color: #444; font-family: 'Arial', sans-serif; font-size: 0.95rem; }
.step-input:focus { border-color: var(--gold); background: rgba(255,255,255,0.08); }

/* ── SELECT ── */
.step-select {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: 4px;
  color: var(--text);
  font-family: 'Arial', sans-serif;
  font-size: 1rem;
  padding: 14px 16px;
  outline: none;
  cursor: pointer;
  margin-bottom: 20px;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a84c' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.step-select option { background: #111; color: var(--text); }
.step-select:focus { border-color: var(--gold); }

/* ── OPÇÕES ── */
.options-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.opt-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: rgba(255,255,255,0.03);
  user-select: none;
}
.opt-card:hover { border-color: rgba(201,168,76,0.5); background: rgba(201,168,76,0.05); }
.opt-card.selected { border-color: var(--gold); background: rgba(201,168,76,0.10); }
.opt-dot {
  width: 18px; height: 18px;
  min-width: 18px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.35);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.opt-card.selected .opt-dot { border-color: var(--gold); background: var(--gold); }
.opt-dot::after {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #080808;
  opacity: 0;
  transition: opacity 0.2s;
}
.opt-card.selected .opt-dot::after { opacity: 1; }
.opt-label { font-family: 'Arial', sans-serif; font-size: 0.92rem; color: var(--text); line-height: 1.35; }
.opt-sub { font-size: 0.75rem; color: var(--muted); display: block; }

/* ── BOTÃO AVANÇAR ── */
.btn-next {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--gold) 0%, #a8782a 100%);
  color: #080808;
  font-family: 'Arial', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-next:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-next:active { transform: translateY(0); }
.btn-next:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }

/* ── VOLTAR ── */
.btn-back {
  background: none;
  border: none;
  color: var(--muted);
  font-family: 'Arial', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 14px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  transition: color 0.2s;
}
.btn-back:hover { color: var(--gold); }

/* ── TRANSIÇÃO ── */
.step-slide { animation: slideIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both; }
.step-slide-out { animation: slideOut 0.28s ease-in both; }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-28px); }
}

/* ── INTRO ── */
.intro-eyebrow {
  font-family: 'Arial', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  display: block;
}
.intro-title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 16px;
}
.intro-title em { color: var(--gold-light); font-style: italic; }
.intro-body {
  font-family: 'Arial', sans-serif;
  font-size: 0.93rem;
  color: #a09890;
  line-height: 1.75;
  margin-bottom: 32px;
}
.intro-body strong { color: var(--text); }
.divider-gold { width: 40px; height: 1px; background: var(--gold); opacity: 0.4; margin: 0 auto 28px; }

/* ── TELA DE AGRADECIMENTO / BÔNUS ── */
.thanks-wrap { width: 100%; max-width: 560px; }
.thanks-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), #a8782a);
  color: #080808;
  font-family: 'Arial', sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 2px;
  margin-bottom: 20px;
}
.thanks-title {
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 12px;
}
.thanks-title em { color: var(--gold-light); font-style: italic; }
.thanks-sub {
  font-family: 'Arial', sans-serif;
  font-size: 0.95rem;
  color: #a09890;
  line-height: 1.7;
  margin-bottom: 32px;
}

/* ── RESULTADO ── */
.result-card { text-align: center; }
.result-icon { font-size: 2rem; color: var(--gold); margin-bottom: 18px; display: block; }
.result-insight {
  font-family: 'Arial', sans-serif;
  font-size: 0.92rem;
  color: #a09890;
  line-height: 1.75;
  margin-bottom: 28px;
  text-align: left;
  padding: 16px 18px;
  border-left: 2px solid var(--gold);
  background: rgba(201,168,76,0.05);
  border-radius: 0 4px 4px 0;
}
.result-bars { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; text-align: left; }
.result-bar-item { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; }
.rbar-label { font-family: 'Arial', sans-serif; font-size: 0.76rem; color: var(--muted); letter-spacing: 0.04em; }
.rbar-track { width: 100px; height: 3px; background: rgba(255,255,255,0.07); border-radius: 2px; overflow: hidden; }
.rbar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  animation: barGrow 1s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: 0.2s;
}
@keyframes barGrow { from { width: 0 !important; } }
.rbar-val { font-family: 'Arial', sans-serif; font-size: 0.68rem; color: var(--gold-light); font-weight: 700; letter-spacing: 0.06em; white-space: nowrap; }
.result-question { font-family: 'Arial', sans-serif; font-size: 1rem; color: var(--text); line-height: 1.6; margin-bottom: 22px; }

/* ── BTN-BUY (tela de bônus) ── */
.btn-buy {
  display: block;
  width: 100%;
  padding: 17px;
  background: linear-gradient(135deg, var(--gold) 0%, #a8782a 100%);
  color: #080808;
  font-family: 'Arial', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.2s, transform 0.15s;
  margin-bottom: 12px;
}
.btn-buy:hover { opacity: 0.85; transform: translateY(-1px); }

/* ── ENDEREÇO (CEP) ── */
.addr-row-num {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
}
.addr-row-city {
  display: grid;
  grid-template-columns: 1fr 72px;
  gap: 12px;
}
.step-input[readonly] {
  opacity: 0.55;
  cursor: default;
}
.cep-status {
  font-family: 'Arial', sans-serif;
  font-size: 0.78rem;
  margin-top: -14px;
  margin-bottom: 16px;
  min-height: 16px;
  line-height: 1.4;
}
.cep-status.error   { color: #e57373; }
.cep-status.loading { color: var(--muted); }

/* ── MOBILE ── */
@media (max-width: 600px) {
  .funnel {
    padding: 72px 14px calc(48px + env(safe-area-inset-bottom));
    justify-content: flex-start;
    min-height: 100svh;
  }
  .card { padding: 28px 18px 24px; }
  html, body { height: auto; overflow-y: auto; }
  .addr-row-num  { grid-template-columns: 1fr; }
  .addr-row-city { grid-template-columns: 1fr 72px; }
  /* Evita zoom automático no iOS (mínimo 16px) */
  input, select, textarea { font-size: 16px !important; }
  /* Remove delay de 300ms no tap */
  button, a, .opt-card { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
  /* Opções mais fáceis de tocar */
  .opt-card { padding: 16px 14px; }
  .btn-next, .btn-buy { min-height: 50px; }
  /* Texto do badge sem quebra estranha */
  .thanks-badge { font-size: 0.55rem; letter-spacing: 0.16em; }
}

@media (max-width: 380px) {
  .card { padding: 24px 14px 20px; }
  .step-question { font-size: 1.25rem; }
  .intro-title { font-size: 1.5rem; }
}
