/* Self-assessment wizard (test.html). Uses the tokens of styles.css. */
[hidden] { display: none !important; }
.quiz-section { padding-block: 2.5rem 4rem; min-height: 70vh; }
.quiz { max-width: 760px; margin-inline: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.2rem, 4vw, 2.4rem); }
.screen-step { display: grid; gap: 1.2rem; }
.quiz h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); font-weight: 800; }
.quiz h1:focus, .quiz legend:focus { outline: none; }
.privacy { color: var(--ink-2); font-size: .92rem; }
.note { background: var(--warn-bg); color: var(--warn); border-radius: 12px; padding: 1rem; font-weight: 600; }
.actions { display: flex; gap: .8rem; margin-top: .6rem; }
.actions.between { justify-content: space-between; }
.actions.wrap-actions { flex-wrap: wrap; }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-quiet:hover { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.progress-wrap { display: grid; gap: .5rem; }
.progress-label { font-weight: 700; font-size: .95rem; color: var(--ink-2); }
progress { appearance: none; -webkit-appearance: none; width: 100%; height: 10px; border: 0; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--paper-2); border-radius: 999px; }
progress::-webkit-progress-value { background: var(--traca); border-radius: 999px; transition: width .25s ease; }
progress::-moz-progress-bar { background: var(--flama); border-radius: 999px; }
fieldset.q { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: .8rem; }
.q legend { padding: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 4vw, 1.9rem); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: .4rem; }
.hint { color: var(--ink-2); font-size: .95rem; }
.options { display: grid; gap: .7rem; }
.opt { position: relative; display: flex; align-items: center; gap: .85rem; min-height: 60px; padding: .8rem 1rem; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; background: var(--card); font-weight: 600; line-height: 1.3; }
.opt:hover { border-color: var(--ink-2); }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt .dot { flex: none; width: 24px; height: 24px; border: 2px solid var(--ink-2); border-radius: 50%; display: grid; place-items: center; }
.opt.multi .dot { border-radius: 7px; }
.opt .dot::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--foc); transform: scale(0); transition: transform .12s ease; }
.opt.multi .dot::after { border-radius: 3px; }
.opt:has(input:checked) { border-color: var(--foc); background: var(--paper-2); }
.opt:has(input:checked) .dot { border-color: var(--foc); }
.opt:has(input:checked) .dot::after { transform: scale(1); }
.opt:has(input:focus-visible) { outline: 3px solid var(--llum); outline-offset: 3px; }
.opt:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.hero-res { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: center; }
.ring { position: relative; width: 150px; height: 150px; }
.ring svg { width: 100%; height: 100%; display: block; }
.ring-bg { stroke: var(--paper-2); }
.ring-fg { stroke: var(--foc); transition: stroke-dasharray 1.1s cubic-bezier(.2,.8,.2,1); }
.ring-txt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-weight: 800; font-size: 2.4rem; line-height: 1; letter-spacing: -0.03em; }
.ring-txt small { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-top: .3rem; }
.hero-copy { display: grid; gap: .5rem; }
.hero-copy h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
.hero-copy .lead { font-size: 1.02rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 0; list-style: none; }
.chip { background: var(--ok-bg); color: var(--ok); font-weight: 800; border-radius: 999px; padding: .55rem 1rem; font-size: .98rem; }
.group { margin-top: .8rem; display: grid; gap: .8rem; }
.group h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.group-top h2 { color: var(--foc); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: .8rem; padding: 0; margin: 0; list-style: none; }
.tile { border: 1px solid var(--line); border-radius: 16px; padding: 1rem; background: var(--card); display: grid; gap: .45rem; align-content: start; }
.group-top .tile { border-color: var(--flama); box-shadow: 0 2px 0 var(--flama); }
.tile-ic { width: 56px; height: 56px; border-radius: 16px; background: var(--paper-2); color: var(--foc); display: grid; place-items: center; }
.group-more .tile-ic { color: var(--nit); }
@media (prefers-color-scheme: dark) { .group-more .tile-ic { color: var(--llum); } }
:root[data-theme="dark"] .group-more .tile-ic { color: var(--llum); }
.tile-ic svg { width: 32px; height: 32px; }
.tile h3 { font-size: 1.02rem; line-height: 1.25; }
.tile p { color: var(--ink-2); font-size: .95rem; font-weight: 600; }
.soon { display: inline-block; vertical-align: middle; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--warn-bg); color: var(--warn); border-radius: 999px; padding: .15rem .5rem; }
@media (prefers-reduced-motion: reduce) { .ring-fg, progress::-webkit-progress-value, .opt .dot::after { transition: none; } }
@media (max-width: 480px) { .hero-res { grid-template-columns: 1fr; justify-items: center; text-align: center; } .ring { width: 140px; height: 140px; } .tiles { grid-template-columns: 1fr 1fr; gap: .6rem; } .tile { padding: .8rem; } }
@media (max-width: 480px) { .actions.between .btn, .wrap-actions .btn { flex: 1 1 auto; justify-content: center; } .wrap-actions .btn { width: 100%; } }
