/* Diagnóstico tributário em 3 minutos — mesma identidade da home (css/style.css), uma pergunta por tela. */
.diag { padding-block: clamp(32px, 5vw, 64px) clamp(64px, 8vw, 120px); min-height: 70vh; }
.diag .in { max-width: 720px; }
.tempo { font-family: var(--corpo); font-weight: 600; font-size: .85rem; color: var(--verde); background: var(--menta-2); border-radius: 999px; padding: 6px 12px; }
.progresso { height: 6px; border-radius: 3px; background: var(--papel); overflow: hidden; }
.progresso i { display: block; height: 100%; width: 0; background: var(--menta); transition: width .4s cubic-bezier(.2,.7,.2,1); }
.passo-de { margin-top: 10px; font-size: .85rem; color: var(--fg-3); font-weight: 600; }

fieldset.q { border: 0; padding: 0; margin: 28px 0 0; min-width: 0; }
fieldset.q legend { padding: 0; margin-bottom: 20px; }
fieldset.q h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.08; margin-top: 14px; }
.ajuda { color: var(--fg-2); font-size: .95rem; margin-top: 10px; }

.opcoes { display: grid; gap: 10px; }
.opcoes.grade { grid-template-columns: 1fr 1fr; }
.opcoes label { position: relative; display: block; cursor: pointer; }
.opcoes input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opcoes span { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border: 1.5px solid var(--linha); border-radius: 18px; background: #fff; transition: border-color .2s, transform .2s, background .2s; }
.opcoes b { font-family: var(--disp); font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; }
.opcoes small { color: var(--fg-2); font-size: .85rem; }
.opcoes label:hover span { border-color: var(--fg); transform: translateY(-2px); }
.opcoes input:checked + span { border-color: var(--verde); background: var(--menta-2); }
.opcoes input:focus-visible + span { outline: 2px solid var(--verde); outline-offset: 2px; }
.opcoes input[type="checkbox"] + span::after { content: ""; position: absolute; right: 16px; top: 18px; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--linha); }
.opcoes input[type="checkbox"]:checked + span::after { background: var(--verde); border-color: var(--verde); box-shadow: inset 0 0 0 3px var(--menta-2); }
.texto { width: 100%; font: inherit; font-size: 1.15rem; padding: 16px 18px; border: 1.5px solid var(--linha); border-radius: 18px; background: #fff; color: var(--fg); }
.texto:focus { outline: 2px solid var(--verde); outline-offset: 2px; border-color: var(--verde); }

.acoes { display: flex; justify-content: space-between; gap: 10px; margin-top: 28px; }
.acoes #avancar { margin-left: auto; min-width: 160px; }
.erro { color: #a23a33; font-weight: 600; margin-top: 12px; font-size: .95rem; }

/* resultado */
.resultado h1 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.08; margin-top: 14px; }
.resultado .lede { margin-top: 14px; max-width: none; }
.r-blocos { display: grid; gap: 12px; margin-top: 28px; }
.r-bloco { border: 1.5px solid var(--linha); border-radius: 20px; padding: 20px 22px; }
.r-bloco.destaque { background: var(--verde); color: #fff; border-color: var(--verde); }
.r-rot { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--fg-3); }
.r-bloco.destaque .r-rot { color: var(--menta); }
.r-bloco ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.r-bloco li { position: relative; padding-left: 20px; line-height: 1.5; }
.r-bloco li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--menta); }
.r-bloco.destaque li b { color: #fff; }
.r-cta { margin-top: 28px; background: var(--papel); border-radius: 24px; padding: 26px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.r-cta h2 { font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; }
.r-cta p { color: var(--fg-2); margin-top: 6px; font-size: .95rem; }
.r-nota { margin-top: 18px; font-size: .8rem; color: var(--fg-3); line-height: 1.5; }
.refazer { margin-top: 10px; background: none; border: 0; font: inherit; font-weight: 600; color: var(--fg-2); text-decoration: underline; cursor: pointer; padding: 0; }

@media (max-width: 600px) { .opcoes.grade { grid-template-columns: 1fr; } .r-cta { grid-template-columns: 1fr; } .r-cta .btn { width: 100%; } .tempo { display: none; } }
@media (prefers-reduced-motion: reduce) { .progresso i, .opcoes span { transition: none; } }
