/* TrueWit funnel screens on the TrueIQ design system: screen chrome and shared patterns.
   Every value is a TrueIQ token (tokens-trueiq.css), except the trueIQ logo tile color taken from true-iq.org;
   the components come from ds/trueiq. */

/* Screen: a 402px phone frame on the app's gray-50 ground */
.qz { position: relative; width: 402px; box-sizing: border-box; display: flex; flex-direction: column; overflow: hidden; background: var(--color-gray-50); font-family: var(--font-sans); color: var(--color-gray-900); -webkit-font-smoothing: antialiased; }
.qz--white { background: var(--color-white); }

/* Header: the QuizHeader bar with the trueIQ logo */
.qz-head { display: flex; flex: none; align-items: center; justify-content: space-between; gap: var(--spacing-3); height: 56px; padding: 0 var(--spacing-4); box-sizing: border-box; background: var(--color-white); }
.qz-head--rule { border-bottom: 1px solid var(--color-gray-200); }
/* trueIQ logo as drawn on true-iq.org, in headers and footers alike: TrueIQ.Logo (md) restyled to a white
   Lucide brain in a 32px tile of the site's primary #218379 (radius-xl), then "trueIQ" in one color.
   Not a link inside the funnel. */
.qz .tq-logo { flex: none; pointer-events: none; }
.qz .tq-logo .tq-icon { width: var(--spacing-8); height: var(--spacing-8); padding: var(--spacing-1\.5); box-sizing: border-box; margin: 0; border-radius: var(--radius-xl); background: #218379; color: var(--color-white); }
.qz .tq-logo .wordmark { text-transform: lowercase; }
.qz .tq-logo .tq-logo__iq { text-transform: none; color: inherit; }

/* Progress: the three test sections as TrueIQ quiz tracks, edge to edge under the header */
.qz-progress { display: grid; flex: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: var(--color-white); }

/* Body column */
.qz-body { flex-grow: 1; min-height: 0; display: flex; flex-direction: column; gap: var(--spacing-6); padding: var(--spacing-8) var(--spacing-4) var(--spacing-6); box-sizing: border-box; }
.qz-intro { display: flex; flex-direction: column; gap: var(--spacing-2); text-align: center; }
.qz-title { margin: 0; color: var(--color-gray-900); text-wrap: balance; }
.qz-text { margin: 0; color: var(--color-gray-500); text-wrap: pretty; }

/* Answers (TrueIQ AnswerOption): the chosen row keeps its hover fill until the screen moves on;
   a chosen Likert row keeps its own tone and gains a ring in its text colour */
.tq-answer--default.qz-picked { background: var(--color-green-100); border-color: var(--color-green-200); }
.tq-answer.qz-picked:not(.tq-answer--default) { box-shadow: inset 0 0 0 1px currentColor; }

/* Pager and the bottom CTA panel */
.qz-pager { flex: none; }
.qz-foot { flex: none; display: flex; flex-direction: column; gap: var(--spacing-3); padding: var(--spacing-4) var(--spacing-4) var(--spacing-8); box-sizing: border-box; background: var(--color-white); border-top: 1px solid var(--color-gray-200); }

/* Surfaces: quiz card (radius-2xl, shadow-sm) and flat panel (radius-xl) */
.qz-card { box-sizing: border-box; background: var(--color-white); border: 1px solid var(--color-gray-200); border-radius: var(--radius-2xl); box-shadow: var(--shadow-sm); }
.qz-panel { box-sizing: border-box; background: var(--color-white); border: 1px solid var(--color-gray-200); border-radius: var(--radius-xl); }

/* Feature row: IconTile + title + one line (stands in for the TrueWit BenefitItem) */
.qz-feature { display: flex; align-items: center; gap: var(--spacing-3); }
.qz-feature__text { display: flex; flex-direction: column; min-width: 0; }
.qz-feature__title { margin: 0; color: var(--color-gray-900); font-weight: 600; }
.qz-feature__sub { margin: 0; color: var(--color-gray-500); }

/* Legal line */
.qz-legal { margin: 0; text-align: center; color: var(--color-gray-500); text-wrap: pretty; }
