/* design/site/scan.css
 *
 * The scan page's own layer, rebuilt 2026-10-14 (third pass) in the 16Personalities pattern by the operator's
 * instruction: one white canvas, the statements stacked and centred, under each the site's own scale, the result bar as a
 * control: the aspect's two end drawings at either end, four equal segments in a pill track between them, the two on
 * each side tinted in that end's letter colour (both ends equally), the pick filling solid with a white dot; a thin progress bar; the undecided shield as the payoff at the top and
 * the foot. The result is the type page's band (type.css). On top of tokens.css and site/site.css.
 */

.scan-main { display: block; font-family: var(--font-display); font-weight: 500; }
.scan-band { background: linear-gradient(180deg, var(--tint-v-soft), var(--stone) 320px); padding: var(--space-20) var(--space-16) var(--space-64); }
body:has(.scan-band) .foot { margin-top: 0; }
.scan { max-width: 820px; margin: 0 auto; }

/* the header: the eyebrow, the question, one line, the undecided shield */
.tt-top { display: grid; grid-template-columns: minmax(0, 1fr) 84px; gap: var(--space-16); align-items: start; margin-bottom: var(--space-16); padding: 0 var(--space-4); }
.tt-eyebrow { display: inline-flex; align-items: center; gap: var(--space-8); margin: 0 0 var(--space-12); padding: var(--space-6) var(--space-14); border-radius: var(--r-pill); background: var(--paper); box-shadow: var(--sh-card); font-weight: 600; font-size: var(--text-small); color: var(--ink); }
.scan-h { margin: 0; font-weight: 800; font-size: clamp(2rem, 1.3rem + 2.8vw, 3.25rem); line-height: 1; letter-spacing: -0.035em; text-wrap: balance; }

.tt-how { margin-top: var(--space-10); }
.tt-how summary, .tt-more summary { display: inline-flex; align-items: center; gap: var(--space-6); cursor: pointer; list-style: none; font-weight: 600; font-size: var(--text-small); color: var(--ink-dim); }
.tt-how summary::-webkit-details-marker, .tt-more summary::-webkit-details-marker { display: none; }
.tt-how summary::before, .tt-more summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; rotate: -45deg; translate: 0 -2px; transition: rotate var(--dur-fast) var(--ease-out); }
.tt-how[open] summary::before, .tt-more[open] summary::before { rotate: 45deg; translate: 0 -3px; }
.tt-how summary:hover, .tt-more summary:hover { color: var(--ink); }
.tt-how p { margin: var(--space-8) 0 0; max-width: 56ch; font-size: var(--text-small); line-height: 1.5; color: var(--ink-dim); }
.tt-payoff { margin: 0; display: grid; justify-items: center; gap: var(--space-6); }
.tt-payoff .tt-cyc { width: 84px; }
.tt-cyc { position: relative; display: block; aspect-ratio: 238 / 334; }
.tt-cyc img { position: absolute; inset: 0; width: 100%; height: auto; filter: var(--drop-shield); transition: opacity 360ms var(--ease-out); }
.tt-cyc img.out { opacity: 0; }
.tt-payoff figcaption { display: none; }

/* the canvas: one white card holding the progress bar, the statements and the foot */
.tt-canvas { border-radius: var(--r-xl); background: var(--paper); box-shadow: var(--sh-card); }
.tt-prog { position: sticky; top: 60px; z-index: 5; height: 6px; border-radius: var(--r-xl) var(--r-xl) 0 0; background: var(--stone); overflow: hidden; }
.tt-prog i { display: block; height: 100%; width: 0; border-radius: 0 var(--r-pill) var(--r-pill) 0; background: var(--action); transition: width var(--dur) var(--ease-out); }

/* each statement: the label, the statement centred, the scale */
.tt-rows { display: grid; }
.tt-row { margin: 0; padding: var(--space-28) var(--space-20) var(--space-24); border: 0; border-bottom: var(--hair) solid var(--line); min-width: 0; text-align: center; }
.tt-row:last-child { border-bottom: 0; }
.tt-q { display: block; }
.tt-label { margin: 0 0 var(--space-8); font-weight: 600; font-size: var(--text-small); color: var(--ink-dim); }
.tt-st { margin: 0 auto; max-width: 30ch; font-weight: 700; font-size: clamp(1.1875rem, 1.05rem + .7vw, 1.5rem); line-height: 1.25; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; transition: color var(--dur) var(--ease-out); }
.tt-row.done .tt-st { color: var(--ink-dim); }
.tt-scale { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-10); max-width: 520px; margin: var(--space-20) auto 0; }
.tt-end { display: grid; justify-items: center; gap: var(--space-2); }
.tt-end img { width: 48px; height: 48px; }
.tt-w { font-weight: 700; font-size: var(--text-micro); }
.tt-ea .tt-w { color: color-mix(in srgb, var(--ca2) var(--word-mix), var(--ink)); } .tt-eb .tt-w { color: color-mix(in srgb, var(--cb2) var(--word-mix), var(--ink)); }   /* --word-mix: the launch audit, 2026-10-15 */
.tt-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); padding: var(--space-4); border-radius: var(--r-pill); background: var(--stone); }
.tt-opt { position: relative; display: block; cursor: pointer; --c: var(--ca2); }
.tt-o2, .tt-o3 { --c: var(--cb2); }
.tt-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.tt-d { display: grid; place-items: center; height: 44px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--c) 14%, var(--paper)); transition: background-color var(--dur-fast) var(--ease-out); }
.tt-d i { width: 10px; height: 10px; border-radius: var(--r-round); background: var(--c); opacity: .55; transition: opacity var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.tt-o0 .tt-d i, .tt-o3 .tt-d i { width: 14px; height: 14px; }
.tt-opt:hover .tt-d { background: color-mix(in srgb, var(--c) 28%, var(--paper)); }
.tt-opt:hover .tt-d i { opacity: 1; }
.tt-opt input:checked + .tt-d { background: var(--c); box-shadow: var(--lift); }
.tt-opt input:checked + .tt-d i { background: var(--paper); opacity: 1; transform: scale(1.15); }
.tt-opt input:focus-visible + .tt-d { outline: 2px solid var(--action); outline-offset: 3px; }
.tt-more { margin-top: var(--space-14); }
.tt-help { margin: var(--space-10) auto 0; max-width: 56ch; font-size: var(--text-small); line-height: 1.5; color: var(--ink-dim); text-align: left; }
.tt-help a { font-weight: 600; color: var(--ink); white-space: nowrap; }
.tt-row.missing { background: var(--stone); }
.tt-row.missing .tt-label { color: var(--ink); }
.tt-row.missing .tt-label::after { content: "Not answered yet"; margin-left: var(--space-10); padding: var(--space-4) var(--space-10); border-radius: var(--r-pill); background: var(--charcoal); color: var(--stage-ink); font-size: var(--text-micro); white-space: nowrap; }

/* the foot: the shield again, the count, the one action */
.tt-foot { display: grid; gap: var(--space-12); padding: var(--space-20); border-top: var(--hair) solid var(--line); border-radius: 0 0 var(--r-xl) var(--r-xl); background: var(--stone); }
.tt-foot-in { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--space-12) var(--space-14); align-items: center; }
.tt-foot-sh .tt-cyc { width: 64px; }
.tt-foot-h { margin: 0; font-weight: 700; font-size: var(--text-body); line-height: 1.25; letter-spacing: -0.015em; }
.tt-count { margin: var(--space-4) 0 0; font-weight: 600; font-size: var(--text-small); color: var(--ink-dim); }
.tt-foot .btn { grid-column: 1 / -1; width: 100%; justify-content: center; }
#go[aria-disabled="true"] { background: var(--line); color: var(--ink-dim); box-shadow: none; transform: none; }
.flag { margin: 0; padding: var(--space-12) var(--space-20); border-radius: var(--r-lg); background: var(--charcoal); color: var(--stage-ink); font-weight: 600; font-size: var(--text-small); line-height: 1.35; }

@media (max-width: 420px) {
  .tt-scale { gap: var(--space-6); }
  .tt-end img { width: 40px; height: 40px; }
}
@media (min-width: 760px) {
  .scan-band { padding: var(--space-48) var(--space-32) var(--space-96); }
  .tt-top { grid-template-columns: minmax(0, 1fr) 150px; gap: var(--space-40); align-items: center; margin-bottom: var(--space-24); }
  .tt-payoff .tt-cyc { width: 150px; }
  .tt-payoff figcaption { display: block; font-weight: 600; font-size: var(--text-small); color: var(--ink-dim); text-align: center; }
  .tt-row { padding: var(--space-36) var(--space-40) var(--space-28); }
  .tt-st { max-width: 36ch; }
  .tt-scale { max-width: 560px; margin-top: var(--space-24); gap: var(--space-20); }
  .tt-end img { width: 56px; height: 56px; }
  .tt-d { height: 48px; }
  .tt-foot { padding: var(--space-24) var(--space-28); }
  .tt-foot-in { grid-template-columns: 72px minmax(0, 1fr) auto; }
  .tt-foot-sh .tt-cyc { width: 72px; }
  .tt-foot .btn { grid-column: auto; width: auto; }
}
