/* ==========================================================================
   SEÇÃO 02 — QUESTIONE-SE · labirinto (rebrand dez/2026)
   "Boas perguntas mostram o caminho." Labirinto do KV com a linha magenta
   desenhando o caminho até a estrela (símbolo vivo: estalo + piscar a cada 2 s).
   Uma pergunta por vez, revelada palavra a palavra.
   ========================================================================== */
.qz {
    --qz-mag: var(--color-magenta, #bf0442);
    --qz-navy: var(--color-navy, #1d1a55);
    --qz-ease: cubic-bezier(.16, 1, .3, 1);
    position: relative;
    overflow: hidden;
    background-color: var(--bg-light-gray, #f3f4f8);
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22384%22%20height%3D%22288%22%20viewBox%3D%220%200%20384%20288%22%3E%3Cpath%20d%3D%22M0%20-11Q0.8%20-0.8%2011%200Q0.8%200.8%200%2011Q-0.8%200.8%20-11%200Q-0.8%20-0.8%200%20-11ZM96%20-14Q97.0%20-1.0%20110%200Q97.0%201.0%2096%2014Q95.0%201.0%2082%200Q95.0%20-1.0%2096%20-14ZM192%20-11Q192.8%20-0.8%20203%200Q192.8%200.8%20192%2011Q191.2%200.8%20181%200Q191.2%20-0.8%20192%20-11ZM288%20-11Q288.8%20-0.8%20299%200Q288.8%200.8%20288%2011Q287.2%200.8%20277%200Q287.2%20-0.8%20288%20-11ZM384%20-11Q384.8%20-0.8%20395%200Q384.8%200.8%20384%2011Q383.2%200.8%20373%200Q383.2%20-0.8%20384%20-11ZM0%2082Q1.0%2095.0%2014%2096Q1.0%2097.0%200%20110Q-1.0%2097.0%20-14%2096Q-1.0%2095.0%200%2082ZM96%2082Q97.0%2095.0%20110%2096Q97.0%2097.0%2096%20110Q95.0%2097.0%2082%2096Q95.0%2095.0%2096%2082ZM192%2089Q192.6%2095.4%20199%2096Q192.6%2096.6%20192%20103Q191.4%2096.6%20185%2096Q191.4%2095.4%20192%2089ZM288%2089Q288.6%2095.4%20295%2096Q288.6%2096.6%20288%20103Q287.4%2096.6%20281%2096Q287.4%2095.4%20288%2089ZM384%2082Q385.0%2095.0%20398%2096Q385.0%2097.0%20384%20110Q383.0%2097.0%20370%2096Q383.0%2095.0%20384%2082ZM0%20178Q1.0%20191.0%2014%20192Q1.0%20193.0%200%20206Q-1.0%20193.0%20-14%20192Q-1.0%20191.0%200%20178ZM96%20181Q96.8%20191.2%20107%20192Q96.8%20192.8%2096%20203Q95.2%20192.8%2085%20192Q95.2%20191.2%2096%20181ZM192%20174Q193.3%20190.7%20210%20192Q193.3%20193.3%20192%20210Q190.7%20193.3%20174%20192Q190.7%20190.7%20192%20174ZM288%20178Q289.0%20191.0%20302%20192Q289.0%20193.0%20288%20206Q287.0%20193.0%20274%20192Q287.0%20191.0%20288%20178ZM384%20178Q385.0%20191.0%20398%20192Q385.0%20193.0%20384%20206Q383.0%20193.0%20370%20192Q383.0%20191.0%20384%20178ZM0%20277Q0.8%20287.2%2011%20288Q0.8%20288.8%200%20299Q-0.8%20288.8%20-11%20288Q-0.8%20287.2%200%20277ZM96%20274Q97.0%20287.0%20110%20288Q97.0%20289.0%2096%20302Q95.0%20289.0%2082%20288Q95.0%20287.0%2096%20274ZM192%20277Q192.8%20287.2%20203%20288Q192.8%20288.8%20192%20299Q191.2%20288.8%20181%20288Q191.2%20287.2%20192%20277ZM288%20277Q288.8%20287.2%20299%20288Q288.8%20288.8%20288%20299Q287.2%20288.8%20277%20288Q287.2%20287.2%20288%20277ZM384%20277Q384.8%20287.2%20395%20288Q384.8%20288.8%20384%20299Q383.2%20288.8%20373%20288Q383.2%20287.2%20384%20277Z%22%20fill%3D%22%231D1A55%22%20fill-opacity%3D%22.06%22/%3E%3Cpath%20d%3D%22M0.5%200V288M96.5%200V288M192.5%200V288M288.5%200V288M0%200.5H384M0%2096.5H384M0%20192.5H384%22%20stroke%3D%22%231D1A55%22%20stroke-opacity%3D%22.035%22%20stroke-width%3D%221%22%20fill%3D%22none%22/%3E%3C/svg%3E");
    background-position: -1px -1px;
    padding-top: clamp(7rem, 9vw, 8.5rem);
    padding-bottom: clamp(4rem, 7vw, 6rem);
}
.qz > .container { position: relative; z-index: 1; }

/* Labirinto: computador (fundo, alto à direita) e celular (no fluxo, no topo) */
.qz__lab { position: absolute; left: 0; top: 0; width: 100%; height: auto; aspect-ratio: 1440 / 900; pointer-events: none; z-index: 0; }
.qz__lab-m { display: none; }
.qz .trail { stroke-dasharray: 1; stroke-dashoffset: 1; }
.qz .is-drawn .trail { animation: qz-draw 3.2s cubic-bezier(.65, 0, .35, 1) .2s forwards; }
.qz .sym { transform-box: fill-box; transform-origin: center; transform: scale(0); opacity: 0; }
.qz .is-drawn .sym { animation: qz-estalo .7s var(--qz-ease) 3.3s forwards, qz-pisca 2s ease-in-out 4.6s infinite; }
@keyframes qz-draw { to { stroke-dashoffset: 0; } }
@keyframes qz-estalo { 0% { transform: scale(.2); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes qz-pisca { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.9); opacity: .78; } }

/* Coluna de texto (no computador, alinhada ao S do logo pelo JS: --qz-sx) */
.qz__txt { position: relative; width: min(560px, 46%); margin-left: var(--qz-sx, 0px); }
.qz .section-header__line { background: var(--qz-mag); }
.qz__title {
    margin-top: 1rem;
    font-size: clamp(2rem, 4.1vw, 3.5rem);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -.03em;
    text-transform: uppercase;
    color: var(--qz-navy);
    white-space: nowrap;
}
.qz__title em { font-style: normal; color: var(--qz-mag); }
.qz__sub {
    margin-top: 1rem;
    max-width: 30ch;
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    font-weight: 700;
    line-height: 1.35;
    color: var(--qz-navy);
}

/* Pergunta da vez */
.qz__ask { position: relative; margin-top: clamp(2.2rem, 3.4vw, 3rem); }
.qz__q {
    max-width: 22ch;
    font-size: clamp(1.35rem, 2.35vw, 2.3rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.025em;
    color: var(--qz-navy);
    transition: opacity .35s ease, transform .35s ease, filter .35s ease;
}
.qz__q.is-out { opacity: 0; transform: translateY(-.15em); filter: blur(3px); }
.qz__q b { font-weight: 900; color: var(--qz-mag); }
.qz__q span { display: inline-block; opacity: 0; transform: translateY(.35em); filter: blur(6px); animation: qz-word .8s var(--qz-ease) forwards; animation-delay: calc(var(--i) * 55ms); }
@keyframes qz-word { to { opacity: 1; transform: none; filter: none; } }

.qz__line { display: flex; align-items: center; gap: 16px; margin-top: 1.4rem; max-width: 520px; }
.qz__cnt { font-family: var(--font-mono); font-size: .73rem; letter-spacing: .16em; color: #76799e; white-space: nowrap; }
.qz__cnt b { color: var(--qz-navy); font-weight: 400; }
.qz__track { position: relative; flex: 1; height: 1px; background: rgba(29, 26, 85, .16); }
.qz__track i { position: absolute; left: 0; top: -.5px; height: 2px; width: 0; background: var(--qz-mag); }
.qz__track i.is-run { animation: qz-fill 5.2s linear forwards; }
@keyframes qz-fill { to { width: 100%; } }
.qz__pause { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid rgba(29, 26, 85, .2); background: transparent; color: var(--qz-navy); display: grid; place-items: center; cursor: pointer; transition: background .3s, border-color .3s; }
.qz__pause:hover, .qz__pause:focus-visible { border-color: var(--qz-mag); background: rgba(191, 4, 66, .06); outline: none; }
.qz__pause svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.qz__pause .qz__pl { display: none; }
.qz__pause[aria-pressed="true"] .qz__pl { display: block; }
.qz__pause[aria-pressed="true"] .qz__pa { display: none; }

/* Fechamento */
.qz__fecho { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; padding-top: clamp(1.8rem, 2.6vw, 2.4rem); }
.qz__prep { font-size: clamp(1.05rem, 1.4vw, 1.22rem); line-height: 1.55; color: var(--qz-navy); }
.qz__prep strong { color: var(--qz-mag); font-weight: 700; }
.qz__br-d { display: none; }

/* Botão secundário do guia (contorno magenta), com o efeito do botão de contato */
.qz__btn {
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; gap: 10px;
    margin-top: .6rem; padding: 16px 26px;
    border: 1.5px solid var(--qz-mag); border-radius: 3px; background: transparent;
    color: var(--qz-navy); font: 800 12.5px/1 var(--font-display, Montserrat), Montserrat, sans-serif;
    letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
    transition: transform .3s var(--qz-ease), box-shadow .3s, color .3s, border-color .3s;
}
.qz__btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #bf0442, #d4471f 60%, #f39200); opacity: 0; transition: opacity .3s; }
.qz__btn .qz__sp { width: 0; opacity: 0; overflow: hidden; display: inline-flex; transition: width .35s var(--qz-ease), opacity .35s; }
.qz__btn .qz__sp svg { width: 12px; height: 12px; fill: #fff; }
.qz__btn .qz__ar { display: inline-block; transition: transform .3s var(--qz-ease); }
.qz__btn:hover, .qz__btn:focus-visible { color: #fff; border-color: transparent; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(243, 146, 0, .32); }
.qz__btn:hover::before, .qz__btn:focus-visible::before { opacity: 1; }
.qz__btn:hover .qz__sp, .qz__btn:focus-visible .qz__sp { width: 12px; opacity: 1; }
.qz__btn:hover .qz__ar, .qz__btn:focus-visible .qz__ar { transform: translateX(4px); }
.qz__btn:active { transform: translateY(0); filter: brightness(.9); }

@media (min-width: 1100px) {
    .qz__br-d { display: inline; }
    .qz__prep { white-space: nowrap; }
}

/* Celular */
@media (max-width: 899px) {
    .qz { padding-top: 0; padding-bottom: 4.5rem; }
    .qz__lab { display: none; }
    .qz__lab-m { display: block; width: calc(100% + 2 * var(--pad-x)); margin-left: calc(-1 * var(--pad-x)); height: auto; aspect-ratio: 390 / 380; overflow: visible; }
    .qz__txt { width: 100%; margin-left: 0; }
    .qz__title { white-space: normal; }
    .qz__sub { font-size: 1.08rem; line-height: 1.38; text-wrap: balance; }
    .qz__ask { margin-top: 1.6rem; }
    .qz__q { max-width: none; font-size: clamp(1.4rem, 6vw, 1.85rem); }
    .qz__line { margin-top: .6rem; max-width: none; }
    .qz__fecho { padding-top: 2rem; }
    .qz__prep { font-size: 1.05rem; }
    .qz__btn { width: 100%; justify-content: center; white-space: nowrap; letter-spacing: .11em; font-size: 11.5px; padding: 17px 14px; margin-top: .4rem; }
}

@media (prefers-reduced-motion: reduce) {
    .qz .trail { stroke-dashoffset: 0; }
    .qz .sym { transform: none; opacity: 1; }
    .qz .is-drawn .trail, .qz .is-drawn .sym { animation: none; }
    .qz__q span { animation: none; opacity: 1; transform: none; filter: none; }
    .qz__track { visibility: hidden; }
}
