/*
 * ============================================================
 * diagnostico.css — a isca (quiz do funil)
 * ============================================================
 * Usa os tokens da marca (navy / off-white / Sora).
 * ============================================================
 */
@keyframes dg-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

html { font-family: var(--font-body); color: var(--color-text); }
body {
  min-height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #F4F4F9 100%);
  background-attachment: scroll;
  position: relative;
  overflow-x: hidden;
}
.dg-blob {
  position: fixed; top: -140px; left: 50%; transform: translateX(-50%);
  width: 520px; height: 320px; border-radius: 50%;
  background: hsl(240,100%,14%,0.08); filter: blur(90px); pointer-events: none; z-index: 0;
}

.dg-wrap {
  position: relative; z-index: 1;
  max-width: 40rem; margin: 0 auto; padding: 28px 20px 64px;
}

/* ── cabeçalho + progresso ─────────────────────────────────── */
.dg-head { margin-bottom: 28px; }
.dg-back {
  display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--color-text-muted); text-decoration: none; margin-bottom: 14px;
}
.dg-progress { height: 4px; border-radius: 999px; background: var(--color-surface-alt); overflow: hidden; }
.dg-progress__bar { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--color-primary); transition: width 0.35s cubic-bezier(0.16,1,0.3,1); }

/* ── blocos genéricos ──────────────────────────────────────── */
.dg-step { animation: dg-in 0.4s cubic-bezier(0.16,1,0.3,1) both; }
.dg-eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 10px; }
.dg-title { font-size: clamp(1.6rem, 5.5vw, 2.3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.dg-sub { margin-top: 14px; font-size: 1.0625rem; line-height: 1.6; color: var(--color-text-muted); }

/* ── intro ─────────────────────────────────────────────────── */
.dg-intro__meta { margin-top: 20px; display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.875rem; color: var(--color-text-muted); }
.dg-intro__meta b { color: var(--color-text); font-weight: 700; }

/* ── pergunta ──────────────────────────────────────────────── */
.dg-qn { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 8px; }
.dg-question { font-size: clamp(1.35rem, 4.5vw, 1.75rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 20px; }
.dg-options { display: flex; flex-direction: column; gap: 10px; }
.dg-option {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 16px 18px; border-radius: var(--radius-md);
  border: 1px solid hsl(240,20%,84%); background: var(--color-surface);
  font-family: inherit; font-size: 1rem; font-weight: 500; color: var(--color-text);
  text-align: left; cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.dg-option:hover { border-color: var(--navy-base); transform: translateY(-1px); }
.dg-option__dot { width: 20px; height: 20px; min-width: 20px; border-radius: 50%; border: 2px solid hsl(240,20%,70%); transition: all 0.2s ease; }
.dg-option--sel { border-color: var(--navy-base); background: rgba(0,0,43,0.03); }
.dg-option--sel .dg-option__dot { border-color: var(--navy-base); background: var(--navy-base); box-shadow: inset 0 0 0 3px #fff; }

/* ── navegação ─────────────────────────────────────────────── */
.dg-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; }
.dg-btn-ghost { font-family: inherit; font-size: 0.9375rem; font-weight: 600; color: var(--color-text-muted); background: none; border: none; cursor: pointer; }
.dg-btn-ghost:disabled { opacity: 0; pointer-events: none; }

/* ── captura (nome + e-mail) ───────────────────────────────── */
.dg-form { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.dg-field { display: flex; flex-direction: column; gap: 6px; }
.dg-label { font-size: 0.8125rem; font-weight: 600; }
.dg-input {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--color-text);
  padding: 13px 15px; border: 1px solid hsl(240,20%,80%); border-radius: var(--radius-md); background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.dg-input:focus { outline: none; border-color: var(--navy-base); box-shadow: 0 0 0 3px hsla(240,100%,10%,0.12); }
.dg-input--error { border-color: #c0362c; box-shadow: 0 0 0 3px rgba(192,54,44,0.12); }

/* ── botão primário ────────────────────────────────────────── */
.dg-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 22px; border-radius: var(--radius-md); border: none;
  background: var(--color-primary); color: var(--color-text-inverse);
  font-family: inherit; font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.dg-submit:hover { background: var(--color-primary-hover); transform: translateY(-1px); }
.dg-submit svg { width: 18px; height: 18px; stroke: var(--color-text-inverse); }
.dg-privacy { margin-top: 12px; font-size: 0.8125rem; color: var(--color-text-muted); }

/* ── resultado ─────────────────────────────────────────────── */
.dg-score {
  display: flex; align-items: baseline; gap: 12px; margin: 6px 0 18px;
}
.dg-score__num { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.dg-score__of { font-size: 1.125rem; color: var(--color-text-muted); font-weight: 600; }
.dg-score__tier { margin-left: auto; align-self: center; padding: 6px 14px; border-radius: 999px; font-size: 0.8125rem; font-weight: 700; }
.dg-bars { display: flex; flex-direction: column; gap: 12px; margin: 22px 0; }
.dg-bar { }
.dg-bar__top { display: flex; justify-content: space-between; font-size: 0.875rem; font-weight: 600; margin-bottom: 6px; }
.dg-bar__track { height: 8px; border-radius: 999px; background: var(--color-surface-alt); overflow: hidden; }
.dg-bar__fill { display: block; height: 100%; border-radius: 999px; background: var(--navy-base); }
.dg-weak {
  margin: 18px 0; padding: 18px 20px; border-radius: var(--radius-md);
  background: var(--color-primary); color: var(--color-text-inverse);
}
.dg-weak__label { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.dg-weak__title { font-size: 1.125rem; font-weight: 700; margin: 6px 0 6px; }
.dg-weak__text { font-size: 0.9375rem; line-height: 1.55; color: rgba(255,255,255,0.8); }
.dg-steps { margin: 18px 0; display: flex; flex-direction: column; gap: 10px; }
.dg-stepitem { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9375rem; line-height: 1.5; }
.dg-stepitem__n { width: 24px; height: 24px; min-width: 24px; border-radius: 50%; background: var(--color-bg); border: 1px solid var(--color-border-strong); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; }
.dg-cta {
  margin-top: 24px; padding: 22px; border-radius: var(--radius-lg);
  border: 1px solid hsl(240,20%,86%); background: var(--color-surface); text-align: center;
}
.dg-cta__q { font-size: 1.0625rem; font-weight: 700; margin-bottom: 14px; }
.dg-cta__row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.dg-cta__primary { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px; background: var(--color-primary); color: var(--color-text-inverse); font-weight: 700; text-decoration: none; }
.dg-cta__ghost { display: inline-flex; align-items: center; padding: 13px 24px; border-radius: 999px; border: 1px solid var(--color-border-strong); color: var(--color-text); font-weight: 700; text-decoration: none; }

/* ── produto recomendado no resultado ─────────────────────── */
.dg-prod {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin: 12px 0 0; padding: 18px 20px; border-radius: var(--radius-md);
  border: 1px solid hsl(240,20%,86%); background: var(--color-surface);
}
.dg-prod__eyebrow { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-muted); }
.dg-prod__name { font-size: 1.0625rem; font-weight: 700; margin-top: 3px; }
.dg-prod__cta {
  display: inline-flex; align-items: center; padding: 11px 20px; border-radius: 999px;
  background: var(--color-primary); color: var(--color-text-inverse); font-weight: 700; font-size: 0.9375rem;
  text-decoration: none; white-space: nowrap; transition: background 0.2s ease, transform 0.2s ease;
}
.dg-prod__cta:hover { background: var(--color-primary-hover); transform: translateY(-1px); }
.dg-prod__soon {
  font-size: 0.75rem; font-weight: 700; color: var(--color-text-muted);
  padding: 7px 14px; border-radius: 999px; background: var(--color-bg); border: 1px solid var(--color-border-strong);
}
