/* ============================================================
   PFM Club · Página de captura (quiz)
   Identidade visual da Izah / PFM
   ============================================================ */

:root {
  --creme: #F6F1E8;
  --champagne: #D5C9B5;
  --cafe: #473630;
  --expresso: #1C161A;
  --rose: #C9376F;
  --rose-dark: #A82A5A;
  --gold: #D8AF84;
  --sage: #8A9683;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -24px rgba(28, 22, 26, 0.35);
  --shadow-soft: 0 8px 28px -18px rgba(28, 22, 26, 0.4);

  --max: 480px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--cafe);
  background: var(--creme);
  line-height: 1.55;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Fundo com leve textura de gradiente acolhedor */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(216, 175, 132, 0.18), transparent 60%),
    radial-gradient(90% 60% at 100% 110%, rgba(213, 201, 181, 0.35), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* ===================== Barra de progresso ===================== */
.progress-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: rgba(71, 54, 48, 0.1);
  z-index: 20;
}
.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--rose), var(--gold));
  border-radius: 0 4px 4px 0;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===================== Palco / telas ===================== */
.stage {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 34px 22px calc(40px + env(safe-area-inset-bottom));
}

.screen {
  display: none;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  animation: fade-in 0.5s ease both;
}
.screen.is-active { display: block; }

@keyframes fade-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===================== Tipografia base ===================== */
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose);
  font-weight: 600;
  margin-bottom: 10px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--expresso);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

/* ===================== Botões ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.02rem;
  min-height: 54px;
  padding: 15px 26px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn--primary {
  background: var(--rose);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn--primary:hover { background: var(--rose-dark); }
.btn--primary:active { transform: translateY(1px) scale(0.995); }
.btn--primary:disabled {
  background: var(--champagne);
  color: rgba(71, 54, 48, 0.5);
  box-shadow: none;
  cursor: not-allowed;
}
.btn--block { width: 100%; }

.btn-link {
  background: none;
  border: none;
  color: var(--cafe);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  padding: 12px 8px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.btn-link:hover { opacity: 1; }

/* ===================== TELA · HERO ===================== */
.brand { margin-bottom: 22px; }
.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--cafe);
  letter-spacing: 0.02em;
}
.brand-dot { color: var(--rose); padding: 0 2px; }

.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 26px;
  box-shadow: var(--shadow);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }

.hero-title {
  font-size: clamp(1.7rem, 7.5vw, 2.15rem);
  margin-bottom: 16px;
}
.hero-sub {
  font-size: 1.02rem;
  color: var(--cafe);
  margin-bottom: 14px;
}
.hero-note {
  font-size: 0.9rem;
  color: var(--sage);
  font-weight: 600;
  margin-bottom: 26px;
}
.screen--hero .btn { width: 100%; }
.hero-legal {
  margin-top: 20px;
  font-size: 0.92rem;
  color: var(--cafe);
  text-align: center;
}
.hero-legal strong { color: var(--rose); }

/* ===================== TELA · QUIZ ===================== */
.screen--quiz { padding-top: 8px; }
.quiz-step {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose);
  font-weight: 600;
  margin-bottom: 12px;
}
.quiz-question {
  font-size: clamp(1.5rem, 6.5vw, 1.9rem);
  margin-bottom: 26px;
}
.options { display: flex; flex-direction: column; gap: 12px; }

.option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 58px;
  padding: 16px 18px;
  background: #fff;
  border: 2px solid var(--champagne);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--cafe);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.option:hover { border-color: var(--gold); }
.option:active { transform: scale(0.99); }

.option .dot {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--champagne);
  position: relative;
  transition: border-color 0.18s ease;
}
.option.is-selected {
  border-color: var(--rose);
  background: rgba(201, 55, 111, 0.06);
}
.option.is-selected .dot { border-color: var(--rose); }
.option.is-selected .dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--rose);
}

.quiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 26px;
  gap: 12px;
}
.btn--next { flex: 1; max-width: 60%; }

/* ===================== TELA · FORMULÁRIO ===================== */
.form-photo {
  width: 84px; height: 84px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: var(--shadow-soft);
  border: 3px solid #fff;
}
.form-photo img { width: 100%; height: 100%; object-fit: cover; }

.form-title { font-size: clamp(1.5rem, 6vw, 1.85rem); margin-bottom: 12px; }
.form-sub { font-size: 0.98rem; color: var(--cafe); margin-bottom: 26px; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cafe);
  margin-bottom: 7px;
}
.field input[type="text"],
.field input[type="tel"] {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1.02rem;
  color: var(--expresso);
  background: #fff;
  border: 2px solid var(--champagne);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field input::placeholder { color: rgba(71, 54, 48, 0.4); }
.field input:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(201, 55, 111, 0.12);
}
.field input.is-invalid { border-color: #c0392b; }

.field-error {
  display: block;
  font-size: 0.82rem;
  color: #c0392b;
  margin-top: 6px;
  min-height: 1px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 6px 0 4px;
  font-size: 0.9rem;
  color: var(--cafe);
  cursor: pointer;
}
.consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  margin-top: 1px;
  accent-color: var(--rose);
  cursor: pointer;
}
.consent a { color: var(--rose); font-weight: 600; }

#leadForm .btn--block { margin-top: 22px; }

.form-legal {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--sage);
  text-align: center;
}

/* ===================== TELA · AGRADECIMENTO ===================== */
.screen--thanks { padding-top: 40px; text-align: center; }
.thanks-check {
  width: 78px; height: 78px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--rose);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem;
  box-shadow: var(--shadow);
}
.thanks-title { font-size: clamp(1.6rem, 6.5vw, 2rem); margin-bottom: 14px; }
.thanks-sub { font-size: 1rem; color: var(--cafe); margin-bottom: 26px; }
.screen--thanks .btn { width: 100%; }
.thanks-note {
  margin-top: 22px;
  font-size: 0.95rem;
  color: var(--sage);
  font-weight: 500;
}

/* ===================== POLÍTICA DE PRIVACIDADE (modal) ===================== */
.privacy-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(28, 22, 26, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  animation: fade-in 0.3s ease both;
}
.privacy-card {
  position: relative;
  width: 100%;
  max-width: var(--max);
  background: var(--creme);
  border-radius: 22px 22px 0 0;
  padding: 34px 24px calc(28px + env(safe-area-inset-bottom));
  max-height: 88dvh;
  overflow-y: auto;
  box-shadow: 0 -20px 50px -20px rgba(0,0,0,0.4);
}
.privacy-card h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.privacy-card p {
  font-size: 0.94rem;
  color: var(--cafe);
  margin-bottom: 14px;
}
.privacy-card .btn { margin-top: 8px; }
.privacy-close {
  position: absolute;
  top: 14px; right: 16px;
  width: 40px; height: 40px;
  border: none;
  background: rgba(71, 54, 48, 0.08);
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--cafe);
  cursor: pointer;
}

/* ===================== Responsivo ampliado ===================== */
@media (min-width: 520px) {
  .stage { padding-top: 52px; }
  .privacy-overlay { align-items: center; padding: 24px; }
  .privacy-card { border-radius: 22px; }
}
