/* Movement Avatar pages (avatar screens, /privacy, result page). Tokens live in /tokens.css. */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--cloud); color: var(--ink); font-family: var(--font-text); font-size: 18px; line-height: 28px; }
.wrap { max-width: 720px; margin: 0 auto; padding: var(--space-6) var(--space-4) 80px; }
a { color: var(--blue); }
a:hover { color: var(--blue-strong); }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }

.brand { font-size: 13px; line-height: 16px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--blue); font-weight: 650; margin-bottom: var(--space-5); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(30px, 8vw, 38px); line-height: 1.16; letter-spacing: -0.015em; margin: 0 0 var(--space-3); }
h2 { font-size: clamp(25px, 6vw, 30px); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 var(--space-3); }
h3 { font-size: 23px; line-height: 30px; margin: 0 0 var(--space-3); }
.sub { color: var(--ink-muted); font-size: 18px; margin: 0 0 var(--space-5); }
.note { font-family: var(--font-hand); font-weight: 600; font-size: 21px; line-height: 24px; color: var(--signal-ink); display: inline-block; transform: rotate(-3deg); margin-left: var(--space-2); white-space: nowrap; vertical-align: 2px; }

.field { margin-bottom: var(--space-6); }
label.field-label { display: block; font-weight: 650; margin-bottom: var(--space-2); }
.help-text { color: var(--ink-muted); font-size: 16px; line-height: 24px; margin-top: var(--space-2); }
.help-text.strong { color: var(--ink); background: var(--sky); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); }
input[type="email"], input[type="text"], select {
  width: 100%; font: inherit; font-size: 18px; padding: 13px var(--space-4);
  border: var(--stroke-control) solid var(--line-strong); border-radius: var(--radius-md);
  background: var(--surface); color: var(--ink);
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='12' viewBox='0 0 20 12' fill='none' stroke='%232B6197' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l7 6 7-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 48px; }
input:focus, select:focus { outline: none; box-shadow: var(--focus-ring); }
.error-text { color: var(--danger); font-size: 16px; line-height: 24px; margin-top: var(--space-2); display: none; font-weight: 500; }
.field.has-error .error-text { display: block; }
.field.has-error select, .field.has-error input[type="email"] { border-color: var(--danger); }
.question-card.has-error { box-shadow: 0 0 0 2px var(--danger), var(--shadow-card); }

.question-card { background: var(--surface); border-radius: var(--radius-lg); padding: var(--space-4); margin-bottom: var(--space-5); box-shadow: var(--shadow-card); }
.question-card .q-label { display: block; margin-bottom: var(--space-3); }
.q-title { display: block; font-family: var(--font-display); font-weight: 600; font-size: 23px; line-height: 30px; color: var(--ink); }
.q-sub { display: block; font-weight: 400; font-size: 16px; line-height: 24px; color: var(--ink-muted); margin-top: 2px; }
.question-card .card-img { display: block; }

.video-drop { background: var(--sky); border: var(--stroke-control) dotted var(--line-strong); border-radius: var(--radius-lg); padding: var(--space-5); text-align: center; color: var(--ink-muted); }
.video-drop.dragover { background: var(--sky-strong); }
.video-status { margin-top: var(--space-3); font-size: 16px; line-height: 24px; }
.video-status.err { color: var(--danger); font-weight: 500; }
.skip-row { margin-top: var(--space-3); text-align: center; }

button { font-family: inherit; }
button.primary { width: 100%; padding: 16px var(--space-5); font-size: 18px; font-weight: 650; line-height: 24px; background: var(--signal); color: var(--on-signal); border: none; border-radius: var(--radius-full); cursor: pointer; transition: background 0.15s ease, transform 0.15s ease; }
button.primary:disabled { opacity: 0.55; cursor: not-allowed; }
button.primary:not(:disabled):hover { background: var(--signal-hover); }
button.primary:not(:disabled):active { transform: translateY(1px); }
button.primary.small { width: auto; padding: 12px var(--space-5); font-size: 16px; }
button.secondary { width: 100%; padding: 14px var(--space-5); font-size: 18px; font-weight: 650; background: var(--surface); color: var(--blue); border: var(--stroke-control) solid var(--blue); border-radius: var(--radius-full); cursor: pointer; transition: background 0.15s ease; }
button.secondary:hover { background: var(--sky); color: var(--blue-strong); }
button.link { background: none; border: none; color: var(--blue); text-decoration: underline; cursor: pointer; font-size: 16px; padding: var(--space-2); }
button.link:hover { color: var(--blue-strong); }
.button-stack { display: grid; gap: var(--space-3); margin-top: var(--space-5); }

.progress-track { height: 8px; background: var(--surface); border-radius: var(--radius-full); overflow: hidden; }
.progress-fill { height: 100%; background: var(--blue); width: 0%; transition: width 0.2s; border-radius: var(--radius-full); }
.upload-progress { margin-top: var(--space-4); text-align: left; }
.progress-label { font-size: 16px; line-height: 24px; color: var(--ink); margin-top: var(--space-2); }

.chart-card { background: var(--surface); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-card); overflow-x: auto; }
svg { display: block; width: 100%; height: auto; }
.band-text { margin: var(--space-4) 0 0; padding: var(--space-4); background: var(--sky); border-radius: var(--radius-md); font-size: 16px; line-height: 24px; }

.spinner-overlay { display: none; position: fixed; inset: 0; background: rgba(246,250,254,0.92); align-items: center; justify-content: center; flex-direction: column; gap: var(--space-3); font-size: 16px; color: var(--ink-muted); z-index: 20; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } * { transition: none !important; } }

.banner-error { display: none; background: var(--peach); color: var(--danger); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); margin-bottom: var(--space-5); font-size: 16px; line-height: 24px; font-weight: 500; }
.notice { padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); font-size: 16px; line-height: 24px; margin: calc(var(--space-2) * -1) 0 var(--space-5); }
.notice.warn { background: var(--peach); color: var(--ink); }
.consent { display: flex; gap: var(--space-3); align-items: flex-start; font-size: 16px; line-height: 24px; cursor: pointer; }
.consent input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--blue); }
.consent-field.has-error .consent { color: var(--danger); }
.fine { font-size: 14px; color: var(--ink-muted); line-height: 20px; margin: var(--space-3) 0 0; }
.fine.center { text-align: center; margin-top: var(--space-5); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.saved-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); color: var(--success); border: var(--stroke-control) solid var(--success); font-weight: 650; font-size: 16px; line-height: 20px; padding: 6px var(--space-4) 6px var(--space-3); border-radius: var(--radius-full); margin-bottom: var(--space-4); }
.saved-badge svg { width: 18px; height: 18px; }
.drop-hint { margin: 0 0 var(--space-3); }
.done-message { text-align: center; margin-bottom: var(--space-6); }
.done-message h1 { margin-bottom: var(--space-4); }
.lead { font-size: 21px; line-height: 32px; margin: 0 0 var(--space-2); color: var(--ink-muted); }
.mail-callout { display: flex; gap: var(--space-4); align-items: flex-start; text-align: left; background: var(--peach); border: var(--stroke-control) solid var(--signal); border-radius: var(--radius-lg); padding: var(--space-5); margin: 0 0 var(--space-5); box-shadow: var(--shadow-card); }
.mail-callout svg { width: 44px; height: 44px; flex: none; color: var(--signal-ink); }
.mail-callout-title { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 32px; color: var(--ink); margin-bottom: var(--space-1); }
.mail-callout p { margin: 0; font-size: 18px; line-height: 28px; color: var(--ink); }
@media (max-width: 480px) { .mail-callout { flex-direction: column; gap: var(--space-2); padding: var(--space-4); } .mail-callout-title { font-size: 24px; } }
.lead.strong { font-weight: 650; color: var(--ink); }
.footer { margin-top: 56px; padding-top: var(--space-4); border-top: 3px dotted var(--dots); font-size: 14px; line-height: 20px; color: var(--ink-muted); display: flex; gap: var(--space-2); justify-content: center; flex-wrap: wrap; }
.footer a { color: var(--ink-muted); }
.prose h2 { margin-top: var(--space-6); font-size: 23px; line-height: 30px; }
.prose p, .prose li { font-size: 16px; line-height: 26px; }
/* ---- Score picker (screen 2) ---- */
.how { list-style: none; margin: 0 0 var(--space-5); padding: 0; display: grid; gap: var(--space-3); }
.how li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: 18px; line-height: 28px; color: var(--ink-muted); }
.how b { color: var(--ink); font-weight: 650; }
.how-n { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--sky); color: var(--blue-strong); font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 32px; text-align: center; margin-top: 2px; }
.cues { margin: 0 0 var(--space-2); color: var(--ink-muted); font-size: 13px; line-height: 17px; }
.cues b { font-weight: 650; color: var(--ink); }
.cues .cues-h { color: var(--blue-strong); text-transform: uppercase; letter-spacing: .04em; font-size: 12px; margin-right: 2px; }
.cue { display: inline; }
.cue b { color: var(--signal-ink); margin-right: 1px; }
.hints { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-1); }
.hint { font-family: var(--font-hand); font-weight: 600; font-size: 26px; line-height: 28px; color: var(--signal-bold); display: inline-flex; align-items: center; gap: var(--space-2); }
.hint-swipe { transition: opacity .3s; }
.question-card.swiped .hint-swipe, .question-card.has-score .hint-tap { opacity: 0; }
.hint-tap { transition: opacity .3s; }
.swipe-ico { width: 40px; height: 20px; }
.tap-ico { width: 26px; height: 26px; flex: none; }
.poster-frame { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; border-radius: var(--radius-md); background: var(--sky); border: 1px solid var(--line); overscroll-behavior-x: contain; }
.poster-frame:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.poster-inner { position: relative; display: block; width: max-content; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.poster-inner img { display: block; width: 1900px; height: auto; max-width: none; -webkit-user-drag: none; user-select: none; }
@media (min-width: 720px) { .poster-inner img { width: 2400px; } #q-pullup .poster-inner img, #q-toestobar .poster-inner img { width: 1400px; } }
.cell { position: absolute; pointer-events: none; border-radius: 6px; }
.cell.done { background: #eb6d3814; }
.cell-tick { display: none; position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--peach); color: var(--signal-ink); padding: 4px; box-sizing: border-box; }
.cell-tick svg { display: block; width: 100%; height: 100%; }
.cell.done .cell-tick { display: block; }
.cell.sel { background: #eb6d3822; }
.cell.sel::after { content: ""; position: absolute; inset: -3px; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none' fill='none' stroke='%23DA5B26' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath vector-effect='non-scaling-stroke' d='M7 3C30 1 70 2 93 2.5c4 .3 5.5 2 5.3 6C98 35 98.5 65 98.2 92c0 4-2 5.6-6 5.8C68 99 32 99 8 98 3.5 97.7 1.8 96 2 92 2.6 65 1.5 35 2 8c.1-3.4 2-5 5-5z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.score-line { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-3); min-height: 52px; }
.score-label { flex: 1; font-size: 17px; line-height: 24px; color: var(--ink-muted); }
.score-val { min-width: 76px; height: 52px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; border: var(--stroke-control) solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1; color: var(--ink); }
.question-card:not(.has-score) .score-val { color: var(--ink-muted); border-color: var(--line); }
.nudge { flex: none; width: 52px; height: 52px; border-radius: 50%; border: var(--stroke-control) solid var(--blue); background: var(--surface); color: var(--blue-strong); font-size: 28px; line-height: 1; font-family: var(--font-text); cursor: pointer; }
.nudge:disabled { opacity: .35; cursor: default; }
.nudge:focus-visible, .notyet:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.notyet { display: block; margin: 0 auto; min-height: 44px; padding: 0 var(--space-3); border: 0; background: none; color: var(--ink-muted); font: 400 16px var(--font-text); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.notyet b { font-weight: 650; color: var(--ink); }
.notyet:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
.question-card.has-score .notyet { display: none; }
.question-card.has-error .score-label { color: var(--danger); }

@media (max-width: 480px) { .question-card { padding: var(--space-4); } .chart-card, .avatar-card { padding: var(--space-4); } }

/* Avatar card */
:root { --zone-beginner: rgba(55,133,179,.12); --zone-intermediate: rgba(55,133,179,.28); --zone-advanced: rgba(55,133,179,.50); }
.result-block { max-width: 520px; margin: 0 auto; }
.avatar-card { background: var(--surface); border-radius: var(--radius-lg); padding: var(--space-6, 32px) var(--space-5); box-shadow: var(--shadow-card); }
.avatar-eyebrow { font-size: 12px; line-height: 16px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); font-weight: 650; text-align: center; }
.avatar-title { font-family: var(--font-display); font-size: 28px; line-height: 34px; text-align: center; margin: 4px 0 var(--space-3); color: var(--ink); }
svg { display: block; width: 100%; height: auto; }
.zone-key { text-align: center; margin: var(--space-3) 0 var(--space-5); padding: var(--space-4) 0; border-top: 1px dotted var(--dots); border-bottom: 1px dotted var(--dots); }
.zone-key-title { font-size: 12px; line-height: 16px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); font-weight: 650; margin-bottom: var(--space-2); }
.zone-items { display: flex; justify-content: center; gap: var(--space-4); flex-wrap: wrap; font-size: 14px; line-height: 20px; font-weight: 500; }
.zone-item { display: inline-flex; align-items: center; gap: 6px; }
.zone-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; border: 1px solid rgba(55,133,179,.45); }
.zone-dot[data-level="Beginner"], .level[data-level="Beginner"]::before { background: var(--zone-beginner); }
.zone-dot[data-level="Intermediate"], .level[data-level="Intermediate"]::before { background: var(--zone-intermediate); }
.zone-dot[data-level="Advanced"], .level[data-level="Advanced"]::before { background: var(--zone-advanced); }
.zone-caption { font-size: 14px; line-height: 20px; color: var(--ink-muted); margin-top: var(--space-2); }
.cat-list { display: grid; }
.cat-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cat-name { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; line-height: 22px; font-weight: 600; }
.cat-name > span { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.cat-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: none; }
.cat-dot[data-cat="pushing"] { background: #7c3230; }
.cat-dot[data-cat="pulling"] { background: #e07a2c; }
.cat-dot[data-cat="flexibility"] { background: #1b5b8a; }
.cat-score { font-family: var(--font-display); font-size: 24px; line-height: 28px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.level { display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink-muted); background: var(--cloud); border: 1px solid var(--line); border-radius: var(--radius-full); padding: 1px 10px 1px 6px; }
.level::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(55,133,179,.45); }
.overall-tile { display: flex; justify-content: space-between; align-items: center; background: var(--sky); border-radius: var(--radius-md); padding: var(--space-4); margin-top: var(--space-4); }
.overall-label { font-size: 12px; line-height: 16px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-strong); font-weight: 650; margin-bottom: 6px; }
.overall-num { white-space: nowrap; font-family: var(--font-display); font-size: 36px; line-height: 40px; font-weight: 700; color: var(--ink); }
.overall-tile .level { background: var(--surface); }
