/* Moat Velocity Assessment · builds on site.css and canvas.css */

/* Answer options as a stacked list: easier to read than pills when options are sentences */
.opts { border-top: 1px solid var(--rule); }
.opt { position: relative; display: flex; gap: 0.9rem; align-items: flex-start; padding: 0.8rem 0.25rem; border-bottom: 1px solid var(--rule); cursor: pointer; }
.opt input {
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.2rem;
    border: 1.5px solid var(--ink);
    border-radius: 50%;
    background: var(--sheet);
    cursor: pointer;
    display: grid;
    place-content: center;
}
.opt input:checked { border-color: var(--ink); }
.opt input:checked::after { content: ''; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--red); }
.opt input:focus-visible { outline: 3px solid var(--insert); outline-offset: 2px; }
.opt span { font-family: var(--serif); font-size: 1.125rem; line-height: 1.45; color: var(--text); }
.opt:hover span { color: var(--ink); }
.opt:has(input:checked) { background: var(--sheet); }
.opt:has(input:checked) span { color: var(--ink); }
.q.invalid .opts { border-top-color: var(--red); }

/* Results */
.verdict { margin: 0.5rem 0 2.5rem; padding: 1.9rem 1.9rem 1.75rem; background: var(--ink); color: var(--paper); }
.verdict .label { font-family: var(--mono); font-size: 0.8125rem; color: var(--night-soft); margin-bottom: 0.6rem; }
.verdict .label .sec { color: var(--red-night); }
.verdict h3 { font-size: clamp(2.25rem, 5vw, 3.25rem); color: var(--paper); letter-spacing: -0.03em; margin-bottom: 0.9rem; }
.verdict h3 .num { font-family: var(--mono); font-size: 1rem; font-weight: 400; letter-spacing: 0; color: var(--night-soft); margin-left: 0.75rem; vertical-align: middle; }
.verdict p { font-family: var(--serif); font-size: 1.25rem; line-height: 1.55; color: var(--night-text); margin: 0; }

.dims { border-top: 1.5px solid var(--ink); margin-bottom: 2.5rem; }
.dim { padding: 1.4rem 0 1.5rem; border-bottom: 1px solid var(--rule); }
.dim-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.dim h4 { font-family: var(--serif); font-size: 1.375rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.dim .score { font-family: var(--mono); font-size: 0.9375rem; color: var(--graphite); white-space: nowrap; }
.dim .score b { font-weight: 500; font-size: 1.25rem; color: var(--ink); }
.dim.weak .score b { color: var(--red); }
.dim .bar { position: relative; height: 4px; background: var(--rule); margin: 0.7rem 0 0.9rem; }
.dim .bar i { position: absolute; inset: 0 auto 0 0; background: var(--ink); }
.dim.middle .bar i { background: var(--graphite); }
.dim.weak .bar i { background: var(--red); }
.dim .bar::before, .dim .bar::after { content: ''; position: absolute; top: -3px; width: 1px; height: 10px; background: var(--struck); }
.dim .bar::before { left: 45%; }
.dim .bar::after { left: 70%; }
.dim p { font-family: var(--serif); font-size: 1.1875rem; line-height: 1.55; color: var(--text); margin: 0; }
.dim .why { font-family: var(--sans); font-size: 0.9375rem; line-height: 1.5; color: var(--graphite); margin-top: 0.5rem; }

.next { list-style: none; counter-reset: n; border-top: 1.5px solid var(--ink); margin-bottom: 2.5rem; }
.next li { counter-increment: n; display: grid; grid-template-columns: 2.25rem 1fr; padding: 1rem 0; border-bottom: 1px solid var(--rule); font-family: var(--serif); font-size: 1.1875rem; line-height: 1.55; color: var(--text); }
.next li::before { content: counter(n, decimal-leading-zero); font-family: var(--mono); font-size: 0.8125rem; color: var(--red); padding-top: 0.3rem; }
.next a { margin-left: 0.25rem; }

.results-h { font-size: clamp(1.5rem, 2.6vw, 1.875rem); margin: 0 0 1rem; }
.mail-box { background: var(--sheet); border: 1px solid var(--rule); border-top: 3px solid var(--ink); padding: 1.6rem 1.6rem 1.4rem; margin-bottom: 2rem; }
.mail-box .q { padding: 1rem 0 0.75rem; border-top: 0; }
.mail-box .q-label { grid-template-columns: 1fr; font-size: 1.0625rem; }
.mail-box .q-body, .mail-box .q-error { margin-left: 0; }
.mail-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.mail-sent { font-family: var(--serif); font-size: 1.1875rem; color: var(--ink); margin: 0; }
.mail-sent[hidden] { display: none; }

@media (max-width: 860px) {
    .verdict { padding: 1.5rem 1.25rem; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
    .verdict p { font-size: 1.125rem; }
    .mail-row { grid-template-columns: 1fr; }
    .mail-box { padding: 1.25rem 1.1rem; }
}

@media print {
    .step.step-results { display: block !important; }
    .mail-box, .results-actions { display: none !important; }
    .verdict { background: none; color: var(--ink); border: 1.5px solid var(--ink); margin: 0 0 1.5rem; }
    .verdict h3, .verdict p { color: var(--ink); }
    .dim, .next li { break-inside: avoid; }
}
