:root {
  --accent: #FBBF24;
  --gray: #E5E7EB;
  --white: #FFFFFF;
  --text: #0B0F16;
  --muted: rgba(11, 15, 22, 0.62);
  --hairline: rgba(11, 15, 22, 0.10);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: -0.01em;
}

.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(800px 400px at 20% 15%, rgba(251,191,36,0.10), transparent 60%),
    radial-gradient(700px 380px at 80% 85%, rgba(229,231,235,0.85), transparent 60%);
  opacity: 1;
}

.wrap {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px 18px;
}

.container {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 10px 2px;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline), transparent);
}

header.headerRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

/* LOGO */
.logoLink{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  user-select: none;
  padding: 6px 0;
}

.logoImg{
  height: 96px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform 160ms ease;
  transform-origin: left center;
}

.logoLink:hover .logoImg{
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .logoImg{ height: 64px; }
}

main{
  display:grid;
  justify-items:center;
  text-align:center;
  gap: 16px;
}

/* Quiz card */
.quizCard{
  width: min(560px, 100%);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
  padding: 20px;
  text-align:left;
}

.cardTop{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 12px;
  margin-bottom: 10px;
}

.step{
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--accent);
}

.progress{ display:flex; gap: 6px; align-items:center; }
.seg{
  width: 18px;
  height: 4px;
  border-radius: 999px;
  background: rgba(11,15,22,0.12);
}
.seg.active{
  background: var(--accent);
}

.question{
  margin: 0 0 10px;
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align:left;
}

/* ✅ microcopy abaixo do título (pedido) */
.titleMicro{
  margin: -6px 0 8px;
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(11, 15, 22, 0.52);
  text-align: left;
}

.qMicro{
  margin: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(11, 15, 22, 0.52);
  text-align: left;
}

/* opções */
.options{ display:grid; gap: 10px; }
.option{
  position: relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(11, 15, 22, 0.10);
  background: rgba(255,255,255,0.85);
  cursor:pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.option:hover{
  transform: translateY(-1px);
  border-color: rgba(11, 15, 22, 0.16);
  background: rgba(255,255,255,0.95);
}
.label{
  font-size: 13px;
  color: rgba(11, 15, 22, 0.82);
}

/* radio custom */
.option input{ position:absolute; opacity:0;}
.radio{
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(11,15,22,.22);
  display:inline-grid;
  place-items:center;
  transition: border-color 160ms ease;
}
.radio::after{
  content:"";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  transform: scale(0);
  transition: transform 160ms ease;
}
.option input:checked + .radio{
  border-color: var(--accent);
}
.option input:checked + .radio::after{
  transform: scale(1);
}

.cardActions{
  margin-top: 12px;
  display:flex;
  justify-content: space-between;
  align-items:center;
}

.linkBtn{
  border: 0;
  background: none;
  padding: 6px 0;
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
  font-family: inherit;
}
.linkBtn:hover{ color: var(--text); }

/* transitions */
.stepPane{ display:none; animation: fadeUp 420ms ease both; }
.stepPane.active{ display:block; }

.fadeIn { animation: fadeUp 520ms ease both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(11, 15, 22, 0.10);
  background: rgba(255,255,255,0.85);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
  cursor: pointer;
  font-family: inherit;
}

.btn:hover { transform: translateY(-1px); border-color: rgba(11, 15, 22, 0.16); }
.btn:active { transform: translateY(0px); }

.btnPrimary {
  background: var(--accent);
  border-color: rgba(251,191,36,0.55);
}
.btn-full{ width: 100%; }

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

/* microcopy toast */
.microcopyToast {
  margin: 0;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease;
}
.microcopyToast.show {
  opacity: 1;
  transform: translateY(0);
}
.linkBtn[data-disabled="true"] {
  opacity: 0.45;
}

/* ✅ CAPTURA */
.captureWrap{
  display: grid;
  gap: 12px;
  padding: 8px 2px 4px;
  justify-items: center;
  text-align: center;
}

.capturePill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(11, 15, 22, 0.10);
  background: rgba(255,255,255,0.75);
  font-size: 12px;
  font-weight: 700;
  color: rgba(11, 15, 22, 0.60);
}

.captureTitle{
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.captureField{
  width: 100%;
  text-align: left;
  display: grid;
  gap: 6px;
  margin-top: 4px;
}

.captureLabel{
  font-size: 12px;
  font-weight: 700;
  color: rgba(11, 15, 22, 0.62);
}

.captureInput{
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(11, 15, 22, 0.12);
  background: rgba(255,255,255,0.90);
  padding: 12px 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.captureInput:focus{
  border-color: rgba(251,191,36,0.65);
  box-shadow: 0 0 0 4px rgba(251,191,36,0.18);
}

/* Footer */
footer {
  text-align: center;
  color: rgba(11, 15, 22, 0.45);
  font-size: 12px;
  padding-top: 20px;
  display: grid;
  gap: 8px;
  justify-items: center;
  margin-top: 6px;
}

.captureMicro{
  font-size: 12px;
  letter-spacing: -0.01em;
}

/* --- CAPTURA: blocos mentais --- */

.captureWrap{
  display: grid;
  gap: 16px;                 /* ✅ mais respiro geral */
  padding: 12px 2px 6px;
  justify-items: center;
  text-align: center;
}

.captureHead{
  display: grid;
  gap: 10px;                 /* ✅ separa título da microcopy */
  justify-items: center;
  max-width: 52ch;
}

.captureTitle{
  margin: 0;
  font-size: 18px;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.captureLead{
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(11, 15, 22, 0.55);
}

.captureField{
  width: 100%;
  text-align: left;
  display: grid;
  gap: 8px;
  margin-top: 6px;           /* ✅ pausa entre confirmação e ação */
}

.captureActions{
  width: 100%;
  display: grid;
  gap: 10px;                 /* ✅ reforço → CTA → fineprint */
  text-align: center;
  margin-top: 2px;
}

.captureMicro{
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(11, 15, 22, 0.55);
  text-align: left;          /* ✅ alinha com o input */
}

/* mantém o fineprint mais “distante” do botão */
.captureFine{
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(11, 15, 22, 0.52);
}
