/*
 * Areveo quiz styles.
 *
 * Scoped under `.artifact .aq` and built only from the artifact.css tokens
 * (var(--accent), var(--bg-tinted), ...). No hex values: retint the site in
 * artifact.css and the quiz follows. Sentence case throughout; the only
 * uppercase is the mono/eyebrow furniture the artifact sheet already uses.
 */

/* Results and pages swap large blocks above the explainer; without this,
   Chrome's scroll anchoring keeps the explainer in view and drops the
   reader at the bottom of the page instead of the top of the results. */
.artifact .aq {
	overflow-anchor: none;
}

.artifact .aq [hidden] {
	display: none !important;
}

.artifact .aq-sr,
.artifact .aq .aq-input {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Buttons ------------------------------------------------------ */

.artifact .aq-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 10px 22px;
	border: 1px solid var(--accent);
	border-radius: var(--radius);
	font-family: var(--font-sans);
	font-size: 0.95em;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.artifact .aq-btn--primary {
	background: var(--accent);
	color: var(--bg);
}

.artifact .aq-btn--primary:hover,
.artifact .aq-btn--primary:focus-visible {
	background: var(--text);
	border-color: var(--text);
	color: var(--bg);
}

.artifact .aq-btn--ghost {
	background: var(--bg);
	color: var(--accent);
}

.artifact .aq-btn--ghost:hover,
.artifact .aq-btn--ghost:focus-visible {
	background: var(--bg-tinted);
	color: var(--text);
}

.artifact .aq-btn--small {
	min-height: 44px;
	padding: 8px 16px;
	font-size: 0.85em;
}

.artifact .aq-btn[disabled] {
	opacity: 0.55;
	cursor: default;
}

.artifact .aq :focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* ---------- Intro -------------------------------------------------------- */

.artifact .aq-intro .lede {
	margin-bottom: 28px;
}

.artifact .aq-start-row {
	margin: 32px 0 0;
}

.artifact .aq-small {
	margin-top: 14px;
	font-size: 0.85em;
	color: var(--text-muted);
}

.artifact .aq-noscript {
	margin-top: 18px;
}

/* Before the engine boots, the start button cannot work. */
.artifact .aq:not(.aq--ready) .aq-start {
	opacity: 0.55;
	cursor: default;
}

/* ---------- Progress vine ------------------------------------------------ */

.artifact .aq-progress {
	margin: 0 0 30px;
}

.artifact .aq-vine svg {
	display: block;
	width: 100%;
	height: 34px;
	overflow: visible;
}

.artifact .aq-vine-base,
.artifact .aq-vine-grow {
	fill: none;
	stroke-linecap: round;
	vector-effect: non-scaling-stroke;
}

.artifact .aq-vine-base {
	stroke: var(--border);
	stroke-width: 2;
}

.artifact .aq-vine-grow {
	stroke: var(--accent-warm);
	stroke-width: 2;
	transition: stroke-dasharray 0.6s ease;
}

.artifact .aq-vine-leaf {
	fill: var(--accent-warm);
	vector-effect: non-scaling-stroke;
}

.artifact .aq-vine-node {
	fill: var(--border);
}

.artifact .aq-vine-node.is-done {
	fill: var(--accent-warm);
}

.artifact .aq-vine-node.is-current {
	fill: var(--bg);
	stroke: var(--accent);
	stroke-width: 2;
	vector-effect: non-scaling-stroke;
}

.artifact .aq-progress-label {
	margin: 8px 0 0;
	font-family: var(--font-mono);
	font-size: 0.75em;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-muted);
	font-weight: 600;
}

.artifact .aq-carry {
	margin: 0 0 8px;
	font-size: 0.9em;
	color: var(--accent-warm-strong);
}

/* ---------- Page and questions ------------------------------------------- */

.artifact .aq-page-head h2 {
	margin: 0 0 12px;
}

.artifact .aq-page-title:focus {
	outline: none;
}

.artifact .aq-kicker {
	margin: 0 0 36px;
	color: var(--text-soft);
	font-size: 1.05em;
}

.artifact .aq-q {
	margin: 0 0 44px;
	padding: 0;
	border: 0;
	min-width: 0;
}

.artifact .aq-q.is-missing {
	padding-left: 16px;
	border-left: 3px solid var(--warn);
	transition: padding 0.2s ease;
}

.artifact .aq-prompt {
	display: block;
	width: 100%;
	margin: 0 0 14px;
	padding: 0;
	border: 0;
	font-family: var(--font-sans);
	font-size: 1.1em;
	font-weight: 500;
	line-height: 1.45;
	color: var(--text);
}

.artifact .aq-prompt code,
.artifact .aq-option-text code {
	font-family: var(--font-mono);
	font-size: 0.9em;
	padding: 1px 5px;
	background: var(--code-bg);
	border-radius: 3px;
}

.artifact .aq-helper,
.artifact .aq-hint {
	margin: -6px 0 14px;
	font-size: 0.88em;
	color: var(--text-muted);
}

.artifact .aq-hint {
	margin: 10px 0 0;
	font-size: 0.8em;
}

.artifact .aq-missing-msg {
	margin: 12px 0 0;
	font-size: 0.9em;
	color: var(--warn);
	font-weight: 500;
}

/* Option cards: single, multi, true/false, this-or-that. */
.artifact .aq-options {
	display: grid;
	gap: 10px;
}

.artifact .aq-options--two {
	grid-template-columns: 1fr 1fr;
}

.artifact .aq-option {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-height: 48px;
	margin: 0;
	padding: 13px 16px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	cursor: pointer;
	font-weight: 300;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.artifact .aq-option:hover {
	border-color: var(--accent);
}

.artifact .aq-option:has(.aq-input:checked) {
	border-color: var(--accent);
	background: var(--bg-tinted);
	box-shadow: inset 3px 0 0 var(--accent);
}

.artifact .aq-option:has(.aq-input:focus-visible),
.artifact .aq-seg:has(.aq-input:focus-visible),
.artifact .aq-mx-cell:has(.aq-input:focus-visible),
.artifact .aq-check:has(.aq-input:focus-visible) {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.artifact .aq-option-mark {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin-top: 3px;
	border: 1.5px solid var(--text-muted);
	border-radius: 50%;
	background: var(--bg);
}

.artifact .aq-q--multi .aq-option-mark,
.artifact .aq-check-box {
	border-radius: 3px;
}

.artifact .aq-option:has(.aq-input:checked) .aq-option-mark {
	border-color: var(--accent);
	background: var(--accent);
	box-shadow: inset 0 0 0 3px var(--bg);
}

.artifact .aq-option-text {
	font-size: 0.97em;
	line-height: 1.5;
	color: var(--text-body);
}

.artifact .aq-option--exclusive {
	border-style: dashed;
}

/* This-or-that. Each pair is its own row: a muted "1 of 4" marker, then
   two cards with an "or" between them. */
.artifact .aq-pairs {
	display: grid;
	gap: 28px;
}

.artifact .aq-pair {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: stretch;
	gap: 6px 12px;
}

.artifact .aq .aq-pair-num {
	grid-column: 1 / -1;
	margin: 0;
	font-family: var(--font-mono);
	font-size: 0.72em;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-muted);
	font-weight: 600;
}

.artifact .aq-pair-or {
	align-self: center;
	font-size: 0.85em;
	font-style: italic;
	color: var(--text-muted);
}

.artifact .aq-option--pair {
	align-items: center;
	min-height: 64px;
}

/* Once one side is chosen, its partner steps back. */
.artifact .aq-pair:has(.aq-input:checked) .aq-option--pair:not(:has(.aq-input:checked)) .aq-option-text {
	color: var(--text-muted);
}

/* Per-row missing state for pairs, statements and matrix rows. */
.artifact .aq-pair.is-missing .aq-option--pair,
.artifact .aq-statement.is-missing {
	border-color: var(--warn);
}

.artifact .aq .aq-pair.is-missing .aq-pair-num {
	color: var(--warn);
}

.artifact .aq-mx-row.is-missing {
	box-shadow: inset 3px 0 0 var(--warn);
}

.artifact .aq .aq-mx-row.is-missing .aq-mx-label {
	color: var(--warn);
}

/* Statement cards. */
.artifact .aq-statements {
	display: grid;
	gap: 10px;
}

.artifact .aq-statement {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 14px 12px 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--bg);
}

.artifact .aq .aq-statement-text {
	margin: 0;
	font-size: 0.97em;
	line-height: 1.5;
	max-width: none;
}

.artifact .aq-toggle {
	display: inline-flex;
	flex-shrink: 0;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
}

.artifact .aq-seg {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	min-width: 92px;
	margin: 0;
	padding: 8px 12px;
	font-size: 0.85em;
	font-weight: 500;
	color: var(--text-soft);
	background: var(--bg);
	cursor: pointer;
	white-space: nowrap;
}

.artifact .aq-seg + .aq-seg {
	border-left: 1px solid var(--border);
}

.artifact .aq-seg:has(.aq-input:checked) {
	background: var(--accent);
	color: var(--bg);
}

/* Matrix. Desktop: a grid with a header row. Narrow: each row stacks into
   its own segmented control with visible column labels. */
.artifact .aq-matrix {
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.artifact .aq-mx-head,
.artifact .aq-mx-row {
	display: grid;
	grid-template-columns: minmax(0, 2.4fr) minmax(0, 3fr);
	align-items: center;
}

.artifact .aq-mx-head {
	grid-template-columns: minmax(0, 2.4fr) repeat(4, minmax(0, 0.75fr));
	padding: 10px 14px;
	background: var(--bg-tinted);
	font-family: var(--font-mono);
	font-size: 0.68em;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--text-muted);
	font-weight: 600;
	text-align: center;
}

.artifact .aq-mx-row {
	padding: 6px 14px;
	border-top: 1px solid var(--border-soft);
}

.artifact .aq .aq-mx-label {
	margin: 0;
	padding: 8px 10px 8px 0;
	font-size: 0.93em;
	line-height: 1.45;
	max-width: none;
}

.artifact .aq-mx-cells {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.artifact .aq-mx-cell {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin: 0;
	cursor: pointer;
	border-radius: var(--radius);
}

.artifact .aq-mx-cell:hover {
	background: var(--bg-tinted);
}

.artifact .aq-mx-dot {
	width: 18px;
	height: 18px;
	border: 1.5px solid var(--text-muted);
	border-radius: 50%;
	background: var(--bg);
}

.artifact .aq-mx-cell:has(.aq-input:checked) .aq-mx-dot {
	border-color: var(--accent);
	background: var(--accent);
	box-shadow: inset 0 0 0 3px var(--bg);
}

.artifact .aq-mx-lab {
	display: none;
}

/* Slider. */
.artifact .aq-slider-track {
	position: relative;
	height: 48px;
	touch-action: none;
	cursor: pointer;
}

.artifact .aq-slider-line,
.artifact .aq-slider-fill {
	position: absolute;
	top: 50%;
	height: 4px;
	margin-top: -2px;
	border-radius: 2px;
	background: var(--border);
}

.artifact .aq-slider-fill {
	background: var(--accent);
}

.artifact .aq-slider-tick {
	position: absolute;
	top: 50%;
	width: 10px;
	height: 10px;
	margin: -5px 0 0 -5px;
	border-radius: 50%;
	background: var(--bg);
	border: 2px solid var(--text-muted);
}

.artifact .aq-slider-thumb {
	position: absolute;
	top: 50%;
	width: 26px;
	height: 26px;
	margin: -13px 0 0 -13px;
	border-radius: 50%;
	background: var(--accent);
	border: 3px solid var(--bg);
	box-shadow: 0 0 0 1px var(--accent);
	cursor: grab;
	touch-action: none;
	transition: left 0.15s ease, opacity 0.15s ease;
}

.artifact .aq-slider.is-unset .aq-slider-thumb {
	opacity: 0.3;
}

.artifact .aq-slider-labels {
	display: grid;
	grid-template-columns: repeat(var(--aq-stops, 5), minmax(0, 1fr));
	gap: 6px;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
}

.artifact .aq-slider-labels li {
	margin: 0;
	padding: 0;
	text-align: center;
}

.artifact .aq-slider-label {
	width: 100%;
	min-height: 44px;
	padding: 4px 2px;
	border: 0;
	border-radius: var(--radius);
	background: none;
	font-family: var(--font-sans);
	font-size: 0.8em;
	font-weight: 400;
	line-height: 1.35;
	color: var(--text-soft);
	cursor: pointer;
	overflow-wrap: anywhere;
}

.artifact .aq-slider-label.is-selected {
	color: var(--text);
	font-weight: 600;
	background: var(--bg-tinted);
}

/* Quadrant pin. */
.artifact .aq-quad {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr) 28px;
	grid-template-areas:
		". top ."
		"left plane right"
		". bottom ."
		"hint hint hint";
	gap: 6px;
	max-width: 460px;
}

.artifact .aq-quad-ax {
	font-size: 0.8em;
	line-height: 1.3;
	color: var(--text-soft);
	font-weight: 500;
	text-align: center;
}

.artifact .aq-quad-ax--top { grid-area: top; }
.artifact .aq-quad-ax--bottom { grid-area: bottom; }

.artifact .aq-quad-ax--left,
.artifact .aq-quad-ax--right {
	align-self: center;
	justify-self: center;
	writing-mode: vertical-rl;
}

.artifact .aq-quad-ax--left {
	grid-area: left;
	transform: rotate(180deg);
}

.artifact .aq-quad-ax--right { grid-area: right; }

.artifact .aq-quad-hint { grid-area: hint; }

.artifact .aq-quad-plane {
	grid-area: plane;
	position: relative;
	aspect-ratio: 1 / 1;
	background: var(--bg-tinted);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	cursor: crosshair;
	touch-action: manipulation;
}

.artifact .aq-quad-cross {
	position: absolute;
	background: var(--border);
	pointer-events: none;
}

.artifact .aq-quad-cross--h {
	left: 0;
	right: 0;
	top: 50%;
	height: 1px;
}

.artifact .aq-quad-cross--v {
	top: 0;
	bottom: 0;
	left: 50%;
	width: 1px;
}

.artifact .aq-quad-pin {
	position: absolute;
	width: 44px;
	height: 44px;
	margin: -22px 0 0 -22px;
	border-radius: 50%;
	touch-action: none;
	cursor: grab;
}

.artifact .aq-quad-pin::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 18px;
	height: 18px;
	margin: -9px 0 0 -9px;
	border-radius: 50%;
	background: var(--accent);
	border: 3px solid var(--bg);
	box-shadow: 0 0 0 1px var(--accent), 0 0 0 7px var(--bg-tinted);
}

.artifact .aq-quad-plane:focus-visible .aq-quad-pin::before {
	box-shadow: 0 0 0 1px var(--accent), 0 0 0 5px var(--accent-warm);
}

/* Rank. */
.artifact .aq-rank {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 8px;
}

.artifact .aq-rank-item {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 4px 6px 4px 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--bg);
}

.artifact .aq-rank-item.is-dragging {
	border-color: var(--accent);
	background: var(--bg-tinted);
	box-shadow: 0 6px 18px -10px var(--text);
}

.artifact .aq-rank-pos {
	width: 1.6em;
	font-family: var(--font-mono);
	font-size: 0.85em;
	font-weight: 600;
	color: var(--accent);
}

.artifact .aq-rank-label {
	flex: 1;
	font-size: 0.95em;
	line-height: 1.4;
	padding: 8px 0;
}

.artifact .aq-rank-handle,
.artifact .aq-rank-btns button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--radius);
	background: none;
	color: var(--text-muted);
	cursor: pointer;
}

.artifact .aq-rank-handle {
	cursor: grab;
	touch-action: none;
}

.artifact .aq-rank-handle svg {
	width: 12px;
	height: 18px;
	fill: currentColor;
}

.artifact .aq-rank-btns {
	display: inline-flex;
}

.artifact .aq-rank-btns svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.artifact .aq-rank-handle:hover,
.artifact .aq-rank-btns button:hover {
	background: var(--bg-tinted);
	color: var(--text);
}

.artifact .aq-rank-btns button[disabled] {
	opacity: 0.25;
	cursor: default;
}

/* Page nav. */
.artifact .aq-nav {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 12px;
	padding-top: 24px;
	border-top: 1px solid var(--border);
}

.artifact .aq-next {
	margin-left: auto;
	min-width: 160px;
}

/* Interstitial and reveal. */
.artifact .aq-interstitial {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 320px;
	text-align: center;
	animation: aq-fade 0.25s ease both;
}

.artifact .aq-interstitial p {
	margin: 0;
	font-size: 1.35em;
	font-weight: 300;
	color: var(--text-soft);
}

.artifact .aq-rings svg {
	width: 80px;
	height: 80px;
	margin-bottom: 20px;
}

.artifact .aq-rings circle {
	fill: none;
	stroke: var(--accent-warm);
	stroke-width: 2;
	opacity: 0;
	animation: aq-ring 1.5s ease-out infinite;
}

.artifact .aq-rings circle:nth-child(2) { animation-delay: 0.25s; }
.artifact .aq-rings circle:nth-child(3) { animation-delay: 0.5s; }

@keyframes aq-fade {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}

@keyframes aq-ring {
	0% { opacity: 0; }
	40% { opacity: 1; }
	100% { opacity: 0.2; }
}

/* ---------- Results ------------------------------------------------------ */

.artifact .aq-shared {
	margin: 0 0 24px;
}

.artifact .aq-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: 32px;
	align-items: center;
}

.artifact .aq-tree {
	margin: 0;
}

.artifact .aq-tree svg {
	display: block;
	width: 100%;
	height: auto;
	max-width: 340px;
}

.artifact .aq-head-text .eyebrow {
	margin-bottom: 12px;
}

.artifact .aq .aq-profile-name {
	margin: 0 0 16px;
	font-size: clamp(1.9em, 4.5vw, 2.4em);
	line-height: 1.12;
	color: var(--text);
}

.artifact .aq-profile-name:focus {
	outline: none;
}

.artifact .aq .aq-tagline {
	margin: 0 0 20px;
	font-size: 1.15em;
	line-height: 1.5;
	color: var(--text-soft);
}

.artifact .aq-meta {
	margin: 0;
	display: grid;
	gap: 6px;
}

.artifact .aq-meta dd {
	margin: 0;
}

.artifact .aq-meta-position {
	font-weight: 500;
	color: var(--text);
}

.artifact .aq-meta-score {
	font-family: var(--font-mono);
	font-size: 0.9em;
	color: var(--accent);
	font-weight: 600;
}

.artifact .aq-meta-branch {
	color: var(--accent-warm-strong);
	font-weight: 500;
}

/* Dimension bars. */
.artifact .aq-dims {
	display: grid;
	gap: 26px;
}

.artifact .aq-dim-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
}

.artifact .aq-dim-name {
	font-weight: 500;
	color: var(--text);
}

.artifact .aq-dim-score {
	font-family: var(--font-mono);
	font-size: 0.9em;
	font-weight: 600;
	color: var(--accent);
}

.artifact .aq .aq-dim-desc {
	margin: 2px 0 8px;
	font-size: 0.85em;
	color: var(--text-muted);
}

.artifact .aq-dim-bar {
	height: 8px;
	border-radius: 4px;
	background: var(--bg-tinted);
	box-shadow: inset 0 0 0 1px var(--border);
	overflow: hidden;
}

.artifact .aq-dim-fill {
	display: block;
	height: 100%;
	background: var(--accent);
	border-radius: 4px;
}

.artifact .aq .aq-dim-line {
	margin: 10px 0 0;
	font-size: 0.92em;
	color: var(--accent-warm-strong);
}

/* Quotes. */
.artifact .aq-quotes {
	display: grid;
	gap: 6px;
	margin-bottom: 12px;
}

.artifact .aq-quotes blockquote {
	margin: 0;
}

.artifact .aq-quotes blockquote p {
	margin: 0;
}

.artifact .aq-h2-gap {
	margin-top: 48px !important;
}

.artifact .aq-next-list {
	padding-left: 1.3em;
}

.artifact .aq-next-list li {
	margin: 0 0 8px;
}

.artifact .aq-try {
	background: var(--bg-tinted);
}

.artifact .aq-note {
	border-left-color: var(--accent-warm);
	background: var(--bg-tinted);
}

.artifact .aq-note p {
	font-size: 0.95em;
}

/* Share + email. */
.artifact .aq-share-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 12px;
}

.artifact .aq-share .aq-helper {
	margin: 0;
}

.artifact .aq-share-status {
	min-height: 1.5em;
	margin: 8px 0 0;
	font-size: 0.9em;
	color: var(--ok);
	font-weight: 500;
}

.artifact .aq-copy-field {
	width: 100%;
	margin-top: 6px;
	padding: 8px 10px;
	border: 1px solid var(--border);
	font-family: var(--font-mono);
	font-size: 0.8em;
}

.artifact .aq-copy-fallback {
	position: fixed;
	top: 0;
	left: -9999px;
}

.artifact .aq-email {
	margin-top: 48px;
	padding-top: 40px;
	border-top: 1px solid var(--border);
}

.artifact .aq-email-fields {
	display: grid;
	gap: 12px;
	max-width: 460px;
}

.artifact .aq-field-label {
	font-weight: 500;
	font-size: 0.95em;
	color: var(--text);
}

.artifact .aq-email input[type="email"] {
	width: 100%;
	min-height: 48px;
	padding: 10px 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg);
	font-family: var(--font-sans);
	font-size: 1em;
	color: var(--text);
}

.artifact .aq-email input[type="email"]:focus {
	outline: 2px solid var(--accent);
	outline-offset: 1px;
	border-color: var(--accent);
}

.artifact .aq-check {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	min-height: 44px;
	padding: 10px 0;
	font-size: 0.9em;
	font-weight: 300;
	color: var(--text-soft);
	cursor: pointer;
}

.artifact .aq-check-box {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	border: 1.5px solid var(--text-muted);
	background: var(--bg);
}

.artifact .aq-check:has(.aq-input:checked) .aq-check-box {
	background: var(--accent);
	border-color: var(--accent);
	box-shadow: inset 0 0 0 3px var(--bg);
}

.artifact .aq-email .aq-btn {
	justify-self: start;
}

.artifact .aq-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.artifact .aq-turnstile.is-solved {
	height: 0;
	overflow: hidden;
}

.artifact .aq .aq-form-msg {
	padding: 10px 14px;
	border-left: 3px solid var(--accent);
	background: var(--bg);
	font-size: 0.95em;
}

.artifact .aq .aq-form-msg--error {
	border-left-color: var(--stop);
	background: var(--stop-tint);
}

.artifact .aq .aq-form-msg--ok {
	border-left-color: var(--ok);
	background: var(--ok-tint);
}

/* Tier strip. */
.artifact .aq-tier-line {
	font-weight: 500;
	color: var(--text);
}

.artifact .aq-strip {
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 10px;
}

.artifact .aq-strip-item {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0;
	padding: 12px 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--bg);
}

.artifact .aq-strip-item.is-mine {
	border-color: var(--accent);
	box-shadow: inset 3px 0 0 var(--accent);
	background: var(--bg-tinted);
}

.artifact .aq-strip-tree {
	flex-shrink: 0;
	width: 38px;
}

.artifact .aq-strip-tree svg {
	display: block;
	width: 38px;
	height: auto;
}

.artifact .aq .aq-strip-name {
	margin: 0 0 2px;
	font-weight: 500;
	color: var(--text);
}

.artifact .aq-strip-name .chip {
	margin-left: 10px;
	vertical-align: 2px;
}

.artifact .aq .aq-strip-line {
	margin: 0;
	font-size: 0.92em;
	color: var(--text-soft);
}

/* CTA: the homepage contact form, rendered by its own shortcode. */
.artifact .aq-cta .areveo-form {
	max-width: 520px;
	margin-top: 24px;
}

/* ---------- Static explainer + FAQ --------------------------------------- */

.artifact .aq-explainer h3 {
	margin-top: 36px;
}

.artifact .aq-def {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 10px;
}

.artifact .aq-def li {
	margin: 0;
	padding: 12px 16px;
	border-left: 3px solid var(--accent-warm);
	background: var(--bg);
}

.artifact .aq-faq dt {
	margin: 24px 0 6px;
	font-weight: 500;
	color: var(--text);
}

.artifact .aq-faq dd {
	margin: 0;
	max-width: var(--measure);
	font-weight: 300;
	color: var(--text-body);
	line-height: 1.65;
}

/* ---------- Narrow screens ----------------------------------------------- */

@media (max-width: 720px) {
	.artifact .aq-head {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.artifact .aq-tree svg {
		max-width: 300px;
		margin: 0 auto;
	}
}

@media (max-width: 600px) {
	.artifact .aq-mx-head {
		display: none;
	}

	.artifact .aq-matrix {
		border: 0;
		border-radius: 0;
		display: grid;
		gap: 14px;
	}

	.artifact .aq-mx-row {
		display: block;
		padding: 0;
		border: 0;
	}

	.artifact .aq .aq-mx-label {
		padding: 0 0 6px;
	}

	.artifact .aq-mx-row.is-missing {
		padding-left: 12px;
	}

	.artifact .aq-mx-cells {
		border: 1px solid var(--border);
		border-radius: var(--radius);
		overflow: hidden;
	}

	.artifact .aq-mx-cell {
		border-radius: 0;
		padding: 6px 4px;
		text-align: center;
	}

	.artifact .aq-mx-cell + .aq-mx-cell {
		border-left: 1px solid var(--border);
	}

	.artifact .aq-mx-dot {
		display: none;
	}

	.artifact .aq-mx-lab {
		display: block;
		font-size: 0.75em;
		font-weight: 500;
		line-height: 1.25;
		color: var(--text-soft);
	}

	.artifact .aq-mx-cell:has(.aq-input:checked) {
		background: var(--accent);
	}

	.artifact .aq-mx-cell:has(.aq-input:checked) .aq-mx-lab {
		color: var(--bg);
	}

	.artifact .aq-statement {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.artifact .aq-toggle {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.artifact .aq-seg {
		min-width: 0;
	}

	/* Slider labels become a vertical list under the track. */
	.artifact .aq-slider-labels {
		grid-template-columns: 1fr;
		gap: 2px;
	}

	.artifact .aq-slider-labels li {
		text-align: left;
	}

	.artifact .aq-slider-label {
		display: flex;
		align-items: center;
		gap: 10px;
		padding: 6px 10px;
		font-size: 0.88em;
		text-align: left;
		counter-increment: aq-stop;
	}

	.artifact .aq-slider-labels {
		counter-reset: aq-stop;
	}

	.artifact .aq-slider-label::before {
		content: counter(aq-stop);
		flex-shrink: 0;
		width: 22px;
		height: 22px;
		border-radius: 50%;
		border: 1.5px solid var(--text-muted);
		font-family: var(--font-mono);
		font-size: 0.75em;
		line-height: 19px;
		text-align: center;
		color: var(--text-muted);
	}

	.artifact .aq-slider-label.is-selected::before {
		background: var(--accent);
		border-color: var(--accent);
		color: var(--bg);
	}

	.artifact .aq-pair {
		grid-template-columns: minmax(0, 1fr);
		gap: 6px;
	}

	.artifact .aq-pair-or {
		justify-self: center;
	}

	.artifact .aq-option {
		padding: 12px 12px;
		gap: 10px;
	}

	.artifact .aq-share-btns .aq-btn {
		flex: 1 1 100%;
	}

	.artifact .aq-nav .aq-btn {
		flex: 1;
		min-width: 0;
	}
}

/* ---------- Reduced motion ----------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.artifact .aq *,
	.artifact .aq *::before {
		animation: none !important;
		transition: none !important;
	}

	.artifact .aq-rings circle {
		opacity: 1;
	}
}

/* Results view: the CTA band and the explainer are both tinted; a hairline
   keeps them from reading as one block. */
.artifact .aq-cta:not([hidden]) + .aq-explainer {
	border-top: 1px solid var(--border);
}
