:root {
    --brand: #EE3D44;
    --brand-deep: #C0392B;
    --bg: #03151F;
    --surface: #082230;
    --surface-2: #0C2E40;
    --border: #164056;
    --text-1: #F4F9FC;
    --text-2: #B9CAD4;
    --text-3: #7E97A4;
}
* { box-sizing: border-box; }
html, body {
    margin: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--text-1);
    font-family: Inter, sans-serif;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
}
body { min-height: 100vh; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(238, 61, 68, 0.12); }
::-webkit-scrollbar-thumb { background: #EE3D44; border-radius: 99px; }

.dq {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.25rem 2rem;
}
.dq-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1080px;
    margin: 0 auto 1.25rem;
    width: 100%;
}
.dq-logo img { height: 28px; display: block; }
.dq-close {
    color: var(--text-2);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 40px;
}
.dq-close:hover { color: var(--text-1); }
.dq-progress {
    max-width: 1080px;
    width: 100%;
    margin: 0 auto 1.5rem;
}
.dq-progress-bar {
    height: 4px;
    background: rgba(238, 61, 68, .15);
    border-radius: 99px;
    overflow: hidden;
}
.dq-progress-bar i {
    display: block;
    height: 100%;
    width: 0;
    background: var(--brand);
    transition: width .25s ease;
}
.dq-progress-meta {
    display: flex;
    justify-content: space-between;
    margin-top: .5rem;
    font-size: .78rem;
    color: var(--text-3);
    font-weight: 600;
}
.dq-wrap {
    max-width: 1080px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 1.5rem;
    align-items: start;
    flex: 1;
}
.dq-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.6rem 1.7rem 1.5rem;
}
.dq-kicker,
.dq-caption {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-3);
    margin: 0 0 .45rem;
}
.dq-card h1 {
    margin: 0 0 .4rem;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 800;
}
.dq-card .dq-olho {
    color: var(--text-2);
    font-size: .95rem;
    line-height: 1.55;
    margin: 0 0 1.4rem;
}
.dq-q { margin: 0 0 1.35rem; }
.dq-q:last-child { margin-bottom: 0; }
.dq-q p {
    margin: 0 0 .7rem;
    font-weight: 700;
    font-size: 1rem;
}
.dq-bool {
    display: flex;
    gap: .7rem;
}
.dq-bool button,
.dq-opt {
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text-1);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    padding: .7rem 1rem;
}
.dq-bool button { flex: 1; }
.dq-bool button.is-on,
.dq-opt.is-on {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(238, 61, 68, .28);
    background: rgba(238, 61, 68, .12);
}
.dq-bool button:focus-visible,
.dq-opt:focus-visible,
.dq-nav button:focus-visible,
.dq-field input:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
}
.dq-opts {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}
.dq-opt { font-size: .88rem; }
.dq-aside {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.2rem 1.25rem;
    position: sticky;
    top: 1rem;
}
.dq-aside h2 {
    margin: 0 0 .35rem;
    font-size: .95rem;
}
.dq-pct {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -.03em;
    margin: .2rem 0 .35rem;
}
.dq-resumo {
    color: var(--text-2);
    font-size: .84rem;
    line-height: 1.5;
    margin: 0 0 1rem;
}
.dq-etapa-score {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    font-size: .78rem;
    color: var(--text-3);
    padding: .35rem 0;
    border-top: 1px solid var(--border);
}
.dq-etapa-score strong { color: var(--text-1); }
.dq-nav {
    display: flex;
    justify-content: space-between;
    gap: .8rem;
    margin-top: 1.4rem;
}
.dq-nav button {
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    padding: .75rem 1.2rem;
}
.dq-back {
    background: transparent;
    color: var(--text-2);
    border: 1px solid var(--border) !important;
}
.dq-next {
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    color: #fff;
    margin-left: auto;
}
.dq-next:disabled { opacity: .45; cursor: not-allowed; }
.dq-field { margin: 0 0 1rem; }
.dq-field label,
.dq-label {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    color: var(--text-2);
    margin-bottom: .4rem;
}
.dq-section {
    margin: 1.35rem 0 0;
    padding-top: 1.15rem;
    border-top: 1px solid var(--border);
}
.dq-section h2 {
    margin: 0 0 .35rem;
    font-size: 1.05rem;
}
.dq-section .dq-olho { margin-bottom: 1rem; }
.dq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 .8rem;
}
.dq-field--full { grid-column: 1 / -1; }
.dq-field input,
.dq-field select {
    width: 100%;
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text-1);
    font: inherit;
    padding: .7rem .9rem;
}
.dq-input-wrap { position: relative; }
.dq-input-wrap input { padding-right: 2.4rem; }
.dq-spinner {
    position: absolute;
    right: .8rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-2);
    font-size: .95rem;
}
.dq-hint {
    margin: .4rem 0 0;
    font-size: .78rem;
    color: var(--text-3);
}
.dq-hint--ok,
.dq-hint--warn,
.dq-hint--err { color: var(--text-2); }
.dq-lookup {
    margin-top: .65rem;
    min-height: 40px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--text-1);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    padding: .5rem .9rem;
}
.dq-lookup:hover { border-color: var(--brand); }
.dq-field select { color-scheme: dark; }
.dq-erro {
    display: none;
    color: var(--text-1);
    background: rgba(238, 61, 68, .12);
    border: 1px solid rgba(238, 61, 68, .35);
    border-radius: 12px;
    padding: .75rem 1rem;
    font-size: .88rem;
    margin-bottom: 1rem;
}
.dq-ok { text-align: center; padding: 2rem 1rem; }
.dq-ok h2 { margin: 0 0 .5rem; }
.dq-ok p { color: var(--text-2); line-height: 1.6; }
.dq-done {
    background-image: radial-gradient(ellipse 90% 42% at 50% -8%, rgba(238, 61, 68, .16), transparent 58%);
    padding-bottom: 3.5rem;
}
.dq-done .dq-aside,
.dq-done .dq-progress { display: none; }
.dq-done .dq-wrap { grid-template-columns: 1fr; max-width: 860px; }
.dq-done .dq-card {
    background: transparent;
    border: 0;
    padding: 0;
}
.dq-result-hero { margin: 0 0 2rem; }
.dq-seal {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--brand);
    color: #fff;
    font-size: 1.7rem;
    margin: 0 0 1.25rem;
    box-shadow: 0 0 0 8px rgba(238, 61, 68, .16), 0 18px 40px rgba(0, 0, 0, .35);
}
.dq-pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: .3rem .85rem;
    border: 1px solid var(--border);
    border-radius: 99px;
    background: var(--surface);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-1);
    margin-bottom: 1.15rem;
}
.dq-result h1 {
    margin: 0 0 .85rem;
    font-size: clamp(2rem, 5vw, 3.05rem);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.05;
    color: var(--text-1);
    max-width: 18ch;
}
.dq-result-hero .dq-olho {
    font-size: 1.12rem;
    line-height: 1.55;
    max-width: 38rem;
    margin: 0;
}
.dq-result-hero::after {
    content: "";
    display: block;
    width: 48px;
    height: 4px;
    margin-top: 1.45rem;
    border-radius: 99px;
    background: var(--brand);
}
.dq-wait {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(238, 61, 68, .1), transparent 42%),
        var(--surface);
    padding: 1.85rem 1.85rem 1.7rem;
    margin: 0;
}
.dq-wait::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--brand);
}
.dq-wait h2 {
    margin: 0 0 .7rem;
    font-size: clamp(1.7rem, 4vw, 2.45rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.08;
    color: var(--text-1);
    max-width: 16ch;
}
.dq-wait__lead {
    margin: 0 0 1.4rem;
    color: var(--text-1);
    font-size: 1.08rem;
    line-height: 1.55;
    max-width: 38rem;
}
.dq-path {
    list-style: none;
    margin: 0 0 1.35rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .7rem;
}
.dq-path li {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(3, 21, 31, .45);
    padding: 1rem .95rem .95rem;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    min-height: 118px;
}
.dq-path span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 800;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-1);
    margin-bottom: .4rem;
}
.dq-path strong { color: var(--text-1); font-size: .95rem; line-height: 1.25; }
.dq-path small { color: var(--text-3); font-size: .78rem; line-height: 1.35; }
.dq-path .is-done span,
.dq-path .is-now span {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.dq-path .is-now {
    border-color: rgba(238, 61, 68, .45);
    box-shadow: 0 0 0 3px rgba(238, 61, 68, .22);
}
.dq-hold {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.15rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-2);
}
.dq-hold__mark {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: var(--brand);
    color: #fff;
    font-size: 1rem;
}
.dq-hold__mark::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 16px;
    border: 2px solid rgba(238, 61, 68, .35);
    animation: dq-hold-pulse 1.8s ease-out infinite;
    pointer-events: none;
}
@keyframes dq-hold-pulse {
    0% { opacity: .9; transform: scale(.92); }
    70% { opacity: 0; transform: scale(1.18); }
    100% { opacity: 0; transform: scale(1.18); }
}
.dq-hold strong {
    display: block;
    color: var(--text-1);
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.25;
}
.dq-hold p {
    margin: .3rem 0 0;
    color: var(--text-2);
    font-size: .95rem;
    line-height: 1.55;
}
.dq-enter-wrap {
    margin: 1.6rem 0 0;
    padding: 1.35rem 1.4rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
}
.dq-enter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 1.4rem;
    border-radius: 12px;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
}
.dq-enter:hover { background: var(--brand-deep); }
.dq-enter-wrap p {
    margin: .75rem 0 0;
    color: var(--text-2);
    font-size: .92rem;
    line-height: 1.5;
}
.dq-leitura {
    margin-top: 2.6rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.dq-leitura > .dq-caption { margin-bottom: 1rem; }
.dq-scorebox {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1.15rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    margin: 0 0 1.1rem;
}
.dq-scorebox__num {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1;
    min-width: 4.4rem;
    color: var(--text-1);
}
.dq-scorebox__num small { font-size: 1.1rem; color: var(--text-3); }
.dq-scorebox p { margin: 0; color: var(--text-2); font-size: .9rem; line-height: 1.5; }
.dq-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .8rem;
    margin: 0 0 1.2rem;
}
.dq-compare__card {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    padding: 1rem 1.05rem 1.05rem;
}
.dq-compare__card h3,
.dq-result-bars h3,
.dq-visao h3 {
    margin: 0 0 .45rem;
    font-size: .98rem;
    color: var(--text-1);
}
.dq-compare__card p,
.dq-visao p,
.dq-bar-row p {
    margin: 0;
    color: var(--text-2);
    font-size: .9rem;
    line-height: 1.55;
}
.dq-result-bars { margin: 0 0 1.2rem; }
.dq-bar-row { margin: 0 0 .85rem; }
.dq-bar-meta {
    display: flex;
    justify-content: space-between;
    gap: .6rem;
    font-size: .8rem;
    color: var(--text-3);
    margin-bottom: .35rem;
}
.dq-bar-meta strong { color: var(--text-1); }
.dq-bar {
    height: 6px;
    border-radius: 99px;
    background: rgba(238, 61, 68, .15);
    overflow: hidden;
    margin-bottom: .4rem;
}
.dq-bar i {
    display: block;
    height: 100%;
    background: var(--brand);
    border-radius: inherit;
}
.dq-visao {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.15rem 1.2rem 1.2rem;
    margin: 0 0 1rem;
    background: var(--surface);
}
.dq-visao .dq-olho { margin: 0 0 .7rem; }
.dq-visao p + p { margin-top: .7rem; }
.dq-result-foot {
    margin: 1.8rem 0 0;
    text-align: center;
}
.dq-result-foot a {
    color: var(--text-3);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 600;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
}
.dq-result-foot a:hover { color: var(--text-1); }
@media (max-width: 860px) {
    .dq-wrap { grid-template-columns: 1fr; }
    .dq-aside { position: static; }
    .dq-grid { grid-template-columns: 1fr; }
    .dq-compare { grid-template-columns: 1fr; }
    .dq-scorebox { flex-direction: column; align-items: flex-start; }
    .dq-path { grid-template-columns: 1fr; }
    .dq-result h1 { max-width: none; }
    .dq-wait { padding: 1.45rem 1.2rem 1.3rem; }
    .dq-wait h2 { max-width: none; }
}
