/* ─────────────────────────────────────────────
   TOKENS (espelha landing-nopy/styles.css)
───────────────────────────────────────────── */
:root {
  --primary:       #7c3aed;
  --primary-mid:   #6d28d9;
  --primary-dark:  #5b21b6;
  --primary-glow:  rgba(124, 58, 237, .22);
  --accent-soft:   #ede9fe;
  --accent-mid:    #ddd6fe;

  --text:          #0d0b18;
  --text-soft:     #52506a;
  --text-muted:    #9896b2;
  --border:        #eceaf5;
  --border-mid:    #dddaee;
  --bg:            #ffffff;

  --r-xs:   8px;
  --r-sm:   12px;
  --r-md:   18px;
  --r-lg:   24px;
  --r-pill: 999px;

  --font-heading: "Geist", "Geist Fallback", "Plus Jakarta Sans", Inter, sans-serif;

  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --success: #16a34a;
  --success-soft: #f0fdf4;

  /* margem de página — full width de verdade, sem container centralizado */
  --edge: 25px;
  /* No mobile o container já é mais estreito que 640px, então o piso não afeta nada lá —
     só cresce a coluna de leitura em telas largas, pra não sobrar espaço perdido no desktop. */
  --content-max: clamp(640px, 68vw, 1100px);
}

@media (max-width: 640px) {
  :root { --edge: 5px; }
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
*:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--text);
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

/* Full width de verdade: só a margem de borda, sem max-width central */
.pp-container {
  width: calc(100% - (var(--edge) * 2));
  margin: 0 auto;
}

/* Coluna de leitura — só pro texto/formulário, nunca uma "caixa" visual */
.pp-content {
  max-width: var(--content-max);
  margin: 0 auto;
}

/* ── Banner (full-bleed, fora do container) ──── */
.pp-banner {
  width: 100%;
  line-height: 0;
  background: #f4f1fc;
}
.pp-banner picture,
.pp-banner img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}
.pp-banner img { aspect-ratio: 768 / 512; max-height: 380px; object-position: center top; }
@media (min-width: 768px) {
  .pp-banner img { aspect-ratio: 1600 / 854; max-height: 460px; object-position: center top; }
}

/* ── Header / Footer ─────────────────────────── */
.pp-header {
  padding: 22px 0;
}
.pp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pp-brand-logo { height: 30px; width: auto; }
.pp-header-back {
  color: var(--text-soft);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}
.pp-header-back:hover { color: var(--primary); }

.pp-main { padding: 8px 0 80px; }

.pp-footer {
  padding: 40px 0;
  margin-top: 40px;
}
.pp-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  justify-content: space-between;
}
.pp-footer-logo { height: 22px; opacity: .85; }
.pp-footer-copy p { font-size: .78rem; color: var(--text-muted); line-height: 1.5; }
.pp-footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.pp-footer-links a { font-size: .8rem; color: var(--text-soft); text-decoration: none; }
.pp-footer-links a:hover { color: var(--primary); }

/* ── Seções (sem borda, sem sombra, sem "caixa") ─ */
.pp-intro,
.pp-wizard,
.pp-result {
  padding: 56px 0 32px;
}

/* ── Intro ────────────────────────────────────── */
.pp-intro { text-align: center; }
.pp-badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--primary-dark);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 7px 18px;
  border-radius: var(--r-pill);
  margin-bottom: 22px;
}
.pp-intro h1 {
  font-size: clamp(2rem, 4.4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 20px;
}
.pp-intro-lead {
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.55;
  margin: 0 auto 16px;
}
/* ── Benefícios do Parceiro ───────────────────── */
.pp-benefits {
  background: linear-gradient(160deg, var(--accent-soft), #f7f4ff);
  border-radius: var(--r-lg);
  padding: 36px 40px;
  margin: 28px 0 32px;
  text-align: left;
}
.pp-benefits-lead {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 22px;
}
.pp-benefits-lead strong { color: var(--primary-dark); font-weight: 800; }
.pp-benefits-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px 24px;
}
.pp-benefits-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
}
.pp-benefit-check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 800;
}
.pp-intro-time {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: .85rem;
  font-weight: 600;
}
.pp-reg-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--primary-dark);
  font-size: .88rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pp-reg-link:hover { color: var(--primary); }

/* ── Documento legal (regulamento.html) ───────── */
.pp-legal { text-align: left; padding: 8px 0 48px; }
.pp-legal h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.pp-legal-updated { color: var(--text-muted); font-size: .85rem; margin-bottom: 32px; }
.pp-legal h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 36px 0 12px;
  letter-spacing: -0.01em;
}
.pp-legal p { color: var(--text-soft); font-size: .95rem; line-height: 1.7; margin-bottom: 12px; }
.pp-legal ul { margin: 0 0 12px; padding-left: 20px; color: var(--text-soft); font-size: .95rem; line-height: 1.7; }
.pp-legal li { margin-bottom: 4px; }
.pp-legal-back { margin-top: 32px; }

/* ── Buttons ──────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 30px;
  border-radius: var(--r-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, opacity .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 12px 28px var(--primary-glow);
}
.btn-primary:hover { box-shadow: 0 14px 34px rgba(124, 58, 237, .32); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn-outline { background: var(--accent-soft); color: var(--primary-dark); }
.btn-outline:hover { background: var(--accent-mid); }
.btn-lg { min-height: 60px; padding: 0 38px; font-size: 1.08rem; }

/* ── Progress (full-bleed no container, sem caixa) ─ */
.pp-progress {
  height: 4px;
  background: var(--accent-soft);
  overflow: hidden;
  margin-bottom: 32px;
}
.pp-progress-fill {
  height: 100%;
  width: 12.5%;
  background: linear-gradient(90deg, var(--primary), var(--primary-mid));
  transition: width .35s ease;
}
.pp-step-indicator {
  font-size: .8rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 30px;
}

/* ── Steps ────────────────────────────────────── */
.pp-step {
  border: none;
  animation: pp-fade-in .28s ease;
}
@keyframes pp-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.pp-step-title {
  font-size: clamp(1.4rem, 2.6vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.pp-step-sub {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}
.pp-step-sub--spaced { margin-top: 36px; }

/* ── Seções (agrupam perguntas dentro de uma etapa única) ─ */
.pp-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.pp-section:first-of-type {
  margin-top: 32px;
}
.pp-section-title {
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--primary-dark);
  margin-bottom: 18px;
}

/* ── Fields ───────────────────────────────────── */
.pp-field { margin-bottom: 20px; }
.pp-field--spaced { margin-top: 32px; }
.pp-field label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-soft);
  margin-bottom: 7px;
}
.pp-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pp-field input[type="text"],
.pp-field input[type="email"],
.pp-field input[type="tel"],
.pp-field select,
.pp-field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: none;
  border-radius: var(--r-sm);
  background: #f6f5fb;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text);
  transition: background .15s ease, box-shadow .15s ease;
}
.pp-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%235B21B6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.pp-field select:invalid { color: var(--text-muted); }
.pp-field textarea {
  min-height: 130px;
  padding: 16px 18px;
  resize: vertical;
  line-height: 1.55;
}
.pp-field input:focus,
.pp-field select:focus,
.pp-field textarea:focus {
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--primary);
}
.pp-field input.pp-invalid,
.pp-field select.pp-invalid,
.pp-field textarea.pp-invalid {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--danger);
}
.pp-char-count { margin-top: 6px; font-size: .78rem; color: var(--text-muted); }
.pp-conditional { margin-top: 14px; }

/* ── Options (lista limpa, sem borda ao redor) ── */
.pp-options {
  display: grid;
  gap: 2px;
}
.pp-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: var(--r-sm);
  padding: 15px 14px;
  cursor: pointer;
  transition: background .15s ease;
  min-height: 52px;
}
.pp-option:hover { background: #f6f5fb; }
.pp-option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.pp-option-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-mid);
  background: #fff;
  border-radius: 6px;
  transition: border-color .15s ease, background .15s ease;
}
.pp-option span:last-child { font-size: .95rem; color: var(--text); }
.pp-option.is-checked { background: var(--accent-soft); }
.pp-option.is-checked .pp-option-check {
  border-color: var(--primary);
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8.5L6.2 11.5L13 4.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.pp-error-msg {
  color: var(--danger);
  font-size: .82rem;
  font-weight: 600;
  margin-top: 8px;
}

/* ── Checks (etapa 8) ─────────────────────────── */
.pp-checks { display: grid; gap: 14px; margin-top: 20px; }
.pp-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .88rem;
  color: var(--text-soft);
  line-height: 1.5;
  cursor: pointer;
}
.pp-check input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--primary);
}
.pp-check a { color: var(--primary); font-weight: 600; }

.pp-privacy-note {
  margin-top: 22px;
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Nav ──────────────────────────────────────── */
.pp-nav {
  display: flex;
  gap: 12px;
  margin-top: 36px;
}
.pp-nav .btn { flex: 1; }

/* ── Honeypot (invisível de verdade) ──────────── */
.pp-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── Resultado (sucesso / erro) ───────────────── */
.pp-result { text-align: center; }
.pp-result-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 auto 20px;
}
.pp-result-icon--ok { background: var(--success-soft); color: var(--success); }
.pp-result-icon--err { background: var(--danger-soft); color: var(--danger); }
.pp-result h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.pp-result p { color: var(--text-soft); font-size: .98rem; margin: 0 auto 8px; }
.pp-result .btn { margin-top: 22px; }

/* ── Loading overlay ──────────────────────────── */
.pp-loading {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  z-index: 50;
}
.pp-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid var(--accent-soft);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: pp-spin .7s linear infinite;
}
@keyframes pp-spin { to { transform: rotate(360deg); } }
.pp-loading p { font-size: .9rem; color: var(--text-soft); font-weight: 600; }

/* ── Modal de confirmação (checkboxes obrigatórios) ─ */
.pp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 11, 24, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 60;
  animation: pp-fade-in .18s ease;
}
.pp-modal {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 32px 28px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 60px rgba(13, 11, 24, .25);
}
.pp-modal h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 10px; }
.pp-modal p { color: var(--text-soft); font-size: .92rem; line-height: 1.55; margin-bottom: 22px; }
.pp-modal .btn { width: 100%; }

/* ── Responsivo ───────────────────────────────── */
@media (max-width: 640px) {
  .pp-intro, .pp-wizard, .pp-result { padding: 36px 0 24px; }
  .pp-wizard .pp-content { padding: 0 8px; }
  .pp-benefits { padding: 24px 20px; }
  .pp-benefits-lead { font-size: 1.05rem; }
  .pp-benefits-list { grid-template-columns: 1fr; }
  .pp-field-row { grid-template-columns: 1fr; gap: 0; }
  .pp-nav { flex-direction: column-reverse; }
  .btn { min-height: 52px; }
  .pp-footer-inner { flex-direction: column; text-align: center; }
  .pp-footer-links { justify-content: center; }
}
