/* Equipe Integrada — Diagnóstico de Maturidade
   Depende das variáveis e utilitários de site.css. */

.qz { max-width: 820px; margin: 0 auto; }
.qz-screen[hidden] { display: none !important; }
.qz-screen { animation: qz-in .28s ease both; }
@keyframes qz-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .qz-screen { animation: none; } }

.qz-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 18px 50px rgba(51,47,91,.08);
}
@media (max-width: 720px) { .qz-card { padding: 26px 20px; border-radius: var(--radius); } }

/* ---------- Intro ---------- */
.qz-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .95rem; margin: 18px 0 26px; }
.qz-meta span { display: inline-flex; align-items: center; gap: 8px; }
.qz-meta i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); display: inline-block; }
.qz-gets { display: grid; gap: 12px; margin: 0 0 28px; }
.qz-gets li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.qz-gets .li-check { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--sky); color: var(--blue-dark); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem; }
.qz-resume { background: var(--sky-2); border: 1px solid #d6e8f7; border-radius: var(--radius); padding: 18px 20px; margin-bottom: 22px; }
.qz-resume p { margin-bottom: 12px; color: var(--navy); font-weight: 600; }
.qz-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.qz-link { background: none; border: 0; color: var(--muted); font-weight: 600; text-decoration: underline; padding: 8px 4px; font-size: .95rem; }
.qz-link:hover { color: var(--blue-dark); }

/* ---------- Pergunta ---------- */
.qz-progress-head { display: flex; justify-content: space-between; align-items: baseline; font-size: .85rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; }
.qz-progress { height: 8px; border-radius: 999px; background: var(--sky); overflow: hidden; margin-bottom: 30px; }
.qz-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--blue-dark)); border-radius: 999px; transition: width .35s ease; }
.qz-qtitle { font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.25; margin-bottom: 8px; outline: none; }
.qz-hint { color: var(--muted); font-size: .95rem; margin-bottom: 22px; min-height: 1.4em; }
.qz-options { display: grid; gap: 10px; }
.qz-opt {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: #fff; border: 1.5px solid var(--line); border-radius: 16px;
  padding: 14px 16px; font-size: 1rem; color: var(--ink); line-height: 1.4;
  transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.qz-opt:hover { border-color: var(--blue); background: var(--sky-2); }
.qz-opt:focus-visible { outline: 3px solid rgba(30,135,240,.35); outline-offset: 2px; }
.qz-opt .qz-mark {
  flex: none; width: 30px; height: 30px; border-radius: 10px; border: 1.5px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 800; color: var(--muted); background: var(--bg);
}
.qz-opt.is-multi .qz-mark { border-radius: 8px; }
.qz-opt[aria-checked="true"], .qz-opt[aria-pressed="true"] { border-color: var(--blue-dark); background: var(--sky); box-shadow: 0 6px 18px rgba(30,135,240,.14); }
.qz-opt[aria-checked="true"] .qz-mark, .qz-opt[aria-pressed="true"] .qz-mark { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.qz-opt:disabled { opacity: .45; cursor: not-allowed; }
.qz-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; }
.qz-nav .btn-ghost { padding-left: 20px; padding-right: 20px; }
.qz-nav .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.qz-nav .qz-next-soft { opacity: .55; }
.qz-nav .qz-next-soft:hover, .qz-nav .qz-next-soft:focus-visible { opacity: 1; }

/* ---------- Resultado ---------- */
.qz-level { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; margin-bottom: 26px; }
@media (max-width: 560px) { .qz-level { grid-template-columns: 1fr; } }
.qz-score {
  width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--blue-dark) calc(var(--pct, 0) * 1%), var(--sky) 0);
  position: relative; flex: none;
}
.qz-score::before { content: ""; position: absolute; inset: 9px; background: #fff; border-radius: 50%; }
.qz-score b { position: relative; font-size: 1.9rem; font-weight: 800; color: var(--navy); letter-spacing: -.03em; line-height: 1; }
.qz-score small { position: relative; display: block; font-size: .7rem; color: var(--muted); font-weight: 700; text-align: center; }
.qz-level-tag { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-dark); margin-bottom: 6px; }
.qz-level-name { font-size: clamp(1.7rem, 3.4vw, 2.3rem); line-height: 1.1; margin-bottom: 6px; }
.qz-level-tagline { color: var(--muted); font-weight: 600; }
.qz-levelbar { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 10px 0 8px; }
.qz-levelbar i { height: 10px; border-radius: 999px; background: var(--sky); }
.qz-levelbar i.on { background: linear-gradient(90deg, var(--blue), var(--blue-dark)); }
.qz-levelbar-labels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 24px; }
.qz-levelbar-labels span { text-align: center; }
.qz-levelbar-labels span.on { color: var(--blue-dark); }
.qz-summary { font-size: 1.05rem; color: var(--ink); margin-bottom: 14px; }
.qz-weakest { display: inline-flex; gap: 10px; align-items: center; background: var(--amber-bg); color: var(--amber); font-weight: 700; padding: 10px 16px; border-radius: 999px; font-size: .95rem; margin-bottom: 14px; }
.qz-auto-teaser { color: var(--ink); font-size: 1rem; margin-bottom: 28px; }
.qz-auto-teaser b { color: var(--blue-dark); }

.qz-gate { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.qz-gate-preview { padding: 26px; filter: blur(5px); opacity: .55; pointer-events: none; user-select: none; }
.qz-gate-card {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.92) 45%, #fff);
}
.qz-gate-card > div { text-align: center; max-width: 460px; }
.qz-gate-card h3 { margin-bottom: 8px; }
.qz-gate-card p { color: var(--muted); margin-bottom: 18px; }

/* ---------- Dimensões ---------- */
.qz-dims { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0 10px; }
@media (max-width: 640px) { .qz-dims { grid-template-columns: 1fr; } }
.qz-dim { background: var(--sky-2); border: 1px solid #e3eef8; border-radius: 18px; padding: 18px; }
.qz-dim-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.qz-dim-head b { color: var(--navy); font-size: 1rem; }
.qz-dim-head span { font-weight: 800; color: var(--blue-dark); font-size: .95rem; }
.qz-dim-head span.low { color: var(--amber); }
.qz-dim-head span.high { color: var(--green); }
.qz-meter { height: 8px; border-radius: 999px; background: #dfeaf6; overflow: hidden; margin-bottom: 10px; }
.qz-meter i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--blue-dark)); transition: width .5s ease; }
.qz-meter.low i { background: linear-gradient(90deg, #e8b04c, var(--amber)); }
.qz-meter.high i { background: linear-gradient(90deg, #56c995, var(--green)); }
.qz-dim p { color: var(--ink); font-size: .92rem; line-height: 1.55; }

/* ---------- Formulário ---------- */
.qz-form { display: grid; gap: 16px; }
.qz-field { display: grid; gap: 6px; }
.qz-field label { font-weight: 700; color: var(--navy); font-size: .92rem; }
.qz-input {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
select.qz-input { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236f6c7a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; cursor: pointer; }
.qz-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(95,169,224,.22); }
.qz-input[aria-invalid="true"] { border-color: #d64545; }
.qz-err { color: #c03535; font-size: .85rem; font-weight: 600; display: none; }
.qz-err.show { display: block; }
.qz-warn { color: var(--amber); font-size: .85rem; font-weight: 600; display: none; }
.qz-warn.show { display: block; }
.qz-consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.qz-consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--blue-dark); }
.qz-consent a { color: var(--blue-dark); text-decoration: underline; }
.qz-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.qz-form .btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.qz-privacy { color: var(--muted); font-size: .85rem; text-align: center; margin-top: 6px; }
.qz-form-error { background: #fdecec; color: #a12a2a; border-radius: 12px; padding: 12px 14px; font-size: .9rem; display: none; }
.qz-form-error.show { display: block; }

/* ---------- Relatório ---------- */
.qz-block { margin-top: 34px; }
.qz-block h3 { margin-bottom: 14px; }
.qz-list { display: grid; gap: 10px; }
.qz-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); line-height: 1.5; }
.qz-list .li-x, .qz-list .li-check { flex: none; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 800; }
.qz-list .li-x { background: var(--amber-bg); color: var(--amber); }
.qz-list .li-check { background: var(--sky); color: var(--blue-dark); }
.qz-list.num { counter-reset: qz; }
.qz-list.num li::before { counter-increment: qz; content: counter(qz); flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .8rem; }
.qz-modules { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .qz-modules { grid-template-columns: 1fr; } }
.qz-module { display: block; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 16px 18px; transition: border-color .15s ease, transform .15s ease; }
.qz-module:hover { border-color: var(--blue); transform: translateY(-2px); }
.qz-module b { color: var(--navy); display: block; margin-bottom: 4px; }
.qz-module span { color: var(--muted); font-size: .9rem; line-height: 1.45; display: block; }
.qz-plan-hint { margin-top: 14px; background: var(--sky-2); border-radius: 14px; padding: 14px 16px; color: var(--ink); font-size: .95rem; }
.qz-plan-hint a { color: var(--blue-dark); font-weight: 700; text-decoration: underline; }
.qz-notice { display: none; background: var(--amber-bg); color: var(--amber); border-radius: 14px; padding: 14px 16px; font-size: .92rem; margin-bottom: 22px; line-height: 1.5; }
.qz-notice.show { display: block; }
.qz-notice a { font-weight: 700; text-decoration: underline; color: inherit; }
.qz-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.qz-ctas .btn { flex: 1 1 200px; }
.qz-cta-note { color: var(--muted); font-size: .85rem; margin-top: 10px; text-align: center; }
.qz-redo { text-align: center; margin-top: 18px; }

/* ---------- Automação com IA ---------- */
.qz-autos { display: grid; gap: 12px; }
.qz-auto { background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.qz-auto-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.qz-auto-head b { color: var(--navy); font-size: 1rem; }
.qz-auto-head span { flex: none; font-weight: 800; color: var(--blue-dark); font-size: .85rem; background: var(--sky); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.qz-auto p { color: var(--ink); font-size: .92rem; line-height: 1.55; margin: 0; }
.qz-auto .qz-auto-gain { margin-top: 8px; color: var(--green); font-weight: 600; }
.qz-auto-total { margin-top: 14px; background: var(--sky-2); border-radius: 14px; padding: 14px 16px; color: var(--ink); font-size: .95rem; line-height: 1.55; }
.qz-auto-total:empty { display: none; }
@media (max-width: 560px) { .qz-auto-head { flex-direction: column; gap: 6px; } }

/* ---------- Etapa 2 ---------- */
.qz-story { background: var(--sky-2); border: 1px solid #e3eef8; border-radius: var(--radius); padding: 24px; margin-bottom: 10px; }
.qz-story .role { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-dark); display: block; margin-bottom: 8px; }
.qz-story p { color: var(--ink); line-height: 1.65; }
.qz-flows { display: grid; gap: 8px; margin-top: 16px; }
.qz-flows li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--ink); }
.qz-flows li::before { content: "→"; color: var(--blue-dark); font-weight: 800; flex: none; }
.qz-pain { margin-top: 26px; }
.qz-pain h3 { margin-bottom: 10px; }
.qz-pain > p { color: var(--ink); line-height: 1.65; margin-bottom: 14px; }
