/* Soma-Z — funil público (questionário + resultado) */

.funnel-page {
  font-family: var(--font-sans, 'Open Sans', sans-serif);
  background: var(--soma-bg, #F0F0F0);
  color: var(--soma-text, #1A2B4C);
  min-height: 100vh;
  line-height: 1.6;
}

/* ── Topbar ── */
.funnel-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--soma-surface, #fff);
  border-bottom: 1px solid var(--soma-border, #E2E8F0);
  position: sticky;
  top: 0;
  z-index: 50;
}
.funnel-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--soma-navy, #1A2B4C);
  text-decoration: none;
}
.funnel-brand img {
  height: 32px;
  width: auto;
  object-fit: contain;
}
.funnel-brand-mark {
  display: none;
}
.funnel-topbar-meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--soma-text-3, #94A3B8);
}
.funnel-topbar-meta strong { color: var(--soma-sage, #77A68B); }
.funnel-hero h1 { font-family: var(--font-display, 'Montserrat', sans-serif); }

/* ── Hero ── */
.funnel-hero {
  text-align: center;
  padding: 36px 20px 28px;
  max-width: 560px;
  margin: 0 auto;
}
.funnel-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--soma-sage, #77A68B);
  background: color-mix(in srgb, var(--soma-sage, #77A68B) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--soma-sage, #77A68B) 25%, transparent);
  padding: 6px 14px;
  border-radius: var(--radius-full, 9999px);
  margin-bottom: 16px;
}
.funnel-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 5vw, 1.85rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--soma-navy, #1A2B4C);
}
.funnel-hero p {
  margin: 0;
  font-size: 15px;
  color: var(--soma-text-2, #475569);
  line-height: 1.65;
}

/* ── Progress ── */
.funnel-progress-wrap {
  max-width: 560px;
  margin: 0 auto 20px;
  padding: 0 20px;
}
.funnel-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--soma-text-3, #94A3B8);
  margin-bottom: 8px;
}
.funnel-progress-bar {
  height: 6px;
  background: var(--soma-border, #E2E8F0);
  border-radius: var(--radius-full, 9999px);
  overflow: hidden;
}
.funnel-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--soma-sage, #77A68B), var(--soma-navy, #1A2B4C));
  border-radius: var(--radius-full, 9999px);
  transition: width .35s ease;
}

/* ── Layout ── */
.funnel-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 20px 100px;
}

/* ── Cards ── */
.funnel-card {
  background: var(--soma-surface, #fff);
  border: 1px solid var(--soma-border, #E2E8F0);
  border-radius: var(--radius-xl, 20px);
  padding: 22px 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(15,27,61,.06));
  transition: border-color .2s, box-shadow .2s;
}
.funnel-card.is-done {
  border-color: color-mix(in srgb, var(--soma-teal, #00C4B4) 40%, var(--soma-border, #E2E8F0));
}
.funnel-q-num {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  background: var(--soma-sage, #77A68B);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  margin-right: 10px;
  flex-shrink: 0;
}
.funnel-q-title {
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: flex-start;
  margin-bottom: 14px;
  color: var(--soma-navy, #1A2B4C);
  line-height: 1.45;
}
.funnel-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 2px solid var(--soma-border, #E2E8F0);
  border-radius: var(--radius-md, 12px);
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
  background: var(--soma-muted-bg, #F8FAFC);
}
.funnel-option:hover {
  border-color: color-mix(in srgb, var(--soma-purple, #6C4DFF) 35%, var(--soma-border, #E2E8F0));
  background: #fff;
}
.funnel-option:has(input:checked) {
  border-color: var(--soma-purple, #6C4DFF);
  background: color-mix(in srgb, var(--soma-purple, #6C4DFF) 6%, #fff);
  box-shadow: var(--shadow-card, 0 2px 8px rgba(108,77,255,.08));
}
.funnel-option input {
  margin-top: 3px;
  accent-color: var(--soma-purple, #6C4DFF);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
.funnel-option-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--soma-text, #1E293B);
}
.funnel-option-letter {
  font-weight: 800;
  color: var(--soma-purple, #6C4DFF);
  margin-right: 4px;
}

/* ── Sticky CTA ── */
.funnel-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--soma-border, #E2E8F0);
  z-index: 40;
}
.funnel-sticky-inner {
  max-width: 560px;
  margin: 0 auto;
}

/* ── Buttons ── */
.funnel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 14px 20px;
  border-radius: var(--radius-md, 12px);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity .15s, transform .1s, box-shadow .15s;
}
.funnel-btn:active { transform: scale(.98); }
.funnel-btn-primary {
  background: var(--soma-sage, #77A68B);
  color: #fff;
  box-shadow: 0 4px 16px rgba(108,77,255,.28);
}
.funnel-btn-primary:hover:not(:disabled) { opacity: .95; }
.funnel-btn-primary:disabled {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
}
.funnel-btn-secondary {
  background: var(--soma-surface, #fff);
  color: var(--soma-text, #1E293B);
  border: 1px solid var(--soma-border, #E2E8F0);
  margin-top: 10px;
  min-height: 48px;
  box-shadow: none;
}
.funnel-btn-hint {
  text-align: center;
  font-size: 11px;
  color: var(--soma-text-3, #94A3B8);
  margin-top: 8px;
}

/* ── Alerts ── */
.funnel-alert {
  padding: 12px 16px;
  border-radius: var(--radius-md, 12px);
  font-size: 14px;
  margin-bottom: 16px;
}
.funnel-alert-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #B91C1C;
}
.funnel-alert-success {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #047857;
}

/* ── Footer ── */
.funnel-footer {
  text-align: center;
  margin-top: 32px;
  font-size: 12px;
  color: var(--soma-text-3, #94A3B8);
}
.funnel-footer a {
  color: var(--soma-purple, #6C4DFF);
  text-decoration: none;
  font-weight: 600;
}

/* ══════════════════════════════════════
   RESULTADO
   ══════════════════════════════════════ */

.funnel-result-page .funnel-wrap {
  padding-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.funnel-result-card {
  background: var(--soma-surface, #fff);
  border: 1px solid var(--soma-border, #E2E8F0);
  border-radius: var(--radius-2xl, 24px);
  overflow: hidden;
  box-shadow: var(--shadow-md, 0 4px 16px rgba(15,27,61,.08));
  text-align: center;
}
.funnel-result-header {
  padding: 28px 24px 20px;
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--perfil-cor, #6C4DFF) 12%, #fff) 0%,
    #fff 70%
  );
  border-bottom: 1px solid var(--soma-border, #E2E8F0);
}
.funnel-result-emoji {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 10px;
  display: block;
}
.funnel-result-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--perfil-cor, #6C4DFF);
  margin-bottom: 6px;
}
.funnel-result-title {
  font-size: clamp(1.35rem, 5vw, 1.65rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 10px;
  color: var(--soma-navy, #1A2B4C);
}
.funnel-result-essencia {
  font-size: 14px;
  color: var(--soma-text-2, #475569);
  line-height: 1.65;
  margin: 0;
  max-width: 420px;
  margin-inline: auto;
}
.funnel-result-quote {
  margin: 16px 24px 0;
  padding: 14px 16px;
  font-size: 13px;
  font-style: italic;
  text-align: left;
  color: var(--soma-text-2, #475569);
  background: var(--soma-muted-bg, #F8FAFC);
  border-left: 3px solid var(--perfil-cor, #6C4DFF);
  border-radius: 0 var(--radius-md, 12px) var(--radius-md, 12px) 0;
  line-height: 1.6;
}

.funnel-value-box {
  padding: 20px 24px 22px;
  text-align: left;
}
.funnel-value-box h2 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--soma-navy, #1A2B4C);
}
.funnel-value-box > p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--soma-text, #1E293B);
}
.funnel-preview-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.funnel-preview-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--soma-text, #1E293B);
  padding: 10px 12px;
  background: var(--soma-muted-bg, #F8FAFC);
  border-radius: var(--radius-sm, 8px);
}
.funnel-preview-list li i {
  color: var(--perfil-cor, #6C4DFF);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

/* ── Lead capture ── */
.funnel-lead-card {
  background: var(--soma-surface, #fff);
  border: 2px solid color-mix(in srgb, var(--soma-sage, #77A68B) 30%, var(--soma-border, #DDE3E8));
  border-radius: var(--radius-2xl, 24px);
  padding: 24px 22px;
  box-shadow: var(--shadow-card, 0 2px 8px rgba(108,77,255,.08));
}
.funnel-lead-card h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--soma-navy, #1A2B4C);
  line-height: 1.3;
}
.funnel-lead-card > p {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--soma-text-2, #475569);
  line-height: 1.65;
}
.funnel-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  font-size: 11px;
  color: var(--soma-text-3, #94A3B8);
}
.funnel-trust span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.funnel-trust i { color: var(--soma-teal, #00C4B4); font-size: 10px; }

.funnel-field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--soma-text-2, #475569);
}
.funnel-field-label .opt { font-weight: 400; color: var(--soma-text-3, #94A3B8); }
.funnel-field {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-md, 12px);
  border: 1px solid var(--soma-border, #E2E8F0);
  background: var(--soma-muted-bg, #F8FAFC);
  color: var(--soma-text, #1E293B);
  font-size: 15px;
  font-family: inherit;
  margin-bottom: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.funnel-field:focus {
  outline: none;
  border-color: var(--soma-purple, #6C4DFF);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--soma-purple, #6C4DFF) 15%, transparent);
  background: #fff;
}
.funnel-field::placeholder { color: var(--soma-text-3, #94A3B8); }

.funnel-success-box {
  text-align: center;
  background: linear-gradient(135deg, #ECFDF5, #F0FDF4);
  border: 1px solid #A7F3D0;
  border-radius: var(--radius-xl, 20px);
  padding: 24px 20px;
}
.funnel-success-box strong {
  display: block;
  font-size: 16px;
  color: #047857;
  margin-bottom: 8px;
}
.funnel-success-box p {
  margin: 0;
  font-size: 14px;
  color: #065F46;
  line-height: 1.6;
}
