/* Lender Fit quiz. Uses the theme's brand variables, with fallbacks so it also works on the
   static coming-soon pages. */

.lender-fit-band {
	padding-block: var(--section-pad-tight, 3.5rem);
	background: var(--color-bg-soft, #f7f5f0);
}

.lender-fit-band .section-header {
	margin-bottom: 1.75rem;
}

.lender-fit {
	--lf-primary: var(--color-primary, #173d36);
	--lf-accent: var(--color-accent, #c98a3a);
	--lf-primary-soft: color-mix(in srgb, var(--lf-primary) 7%, #fff);
	--lf-primary-line: color-mix(in srgb, var(--lf-primary) 22%, #fff);
	--lf-accent-soft: color-mix(in srgb, var(--lf-accent) 14%, #fff);
	--lf-accent-text: color-mix(in srgb, var(--lf-accent) 60%, #000);
	--lf-text: var(--color-text, #18211f);
	--lf-muted: var(--color-text-muted, #55615d);
	--lf-border: var(--color-border, #e5e2da);
	max-width: 44rem;
	color: var(--lf-text);
}

.lender-fit noscript p,
.lender-fit__loading {
	color: var(--lf-muted);
}

.lf-card {
	background: #fff;
	border: 1px solid var(--lf-border);
	border-radius: 16px;
	padding: clamp(1.25rem, 1rem + 1.6vw, 2.25rem);
	box-shadow: 0 10px 30px rgba(20, 30, 28, 0.06);
}

.lf-progress {
	height: 6px;
	border-radius: 99px;
	background: var(--lf-primary-soft);
	overflow: hidden;
	margin-bottom: 1rem;
}

.lf-progress__bar {
	height: 100%;
	background: linear-gradient(90deg, var(--lf-primary), var(--lf-accent));
	border-radius: inherit;
	transition: width 0.3s ease;
}

.lf-step {
	margin: 0 0 0.35rem;
	font-size: var(--text-xs, 0.8125rem);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--lf-muted);
}

.lf-question {
	margin: 0 0 0.5rem;
	font-family: var(--font-serif, Georgia, serif);
	font-size: clamp(1.3rem, 1.15rem + 0.7vw, 1.65rem);
	line-height: 1.25;
	color: var(--lf-text);
}

.lf-question:focus,
.lf-result__title:focus {
	outline: none;
}

.lf-help {
	margin: 0 0 1rem;
	color: var(--lf-muted);
	font-size: var(--text-sm, 0.9rem);
}

.lf-answers {
	display: grid;
	gap: 0.6rem;
	margin: 1.1rem 0 0;
}

.lf-answer {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	width: 100%;
	padding: 0.85rem 1rem;
	border: 1.5px solid var(--lf-border);
	border-radius: 12px;
	background: #fff;
	color: var(--lf-text);
	font: inherit;
	font-size: var(--text-base, 1rem);
	text-align: left;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
}

.lf-answer:hover {
	border-color: var(--lf-primary-line);
	background: var(--lf-primary-soft);
}

.lf-answer:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--lf-accent) 55%, #fff);
	outline-offset: 2px;
}

.lf-answer:active {
	transform: scale(0.995);
}

.lf-answer[aria-pressed="true"] {
	border-color: var(--lf-primary);
	background: var(--lf-primary-soft);
}

.lf-answer__dot {
	flex: none;
	width: 1.15rem;
	height: 1.15rem;
	border: 2px solid var(--lf-primary-line);
	border-radius: 50%;
	background: #fff;
	box-shadow: inset 0 0 0 3px #fff;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.lf-answer[aria-pressed="true"] .lf-answer__dot {
	border-color: var(--lf-primary);
	background: var(--lf-primary);
}

.lf-note {
	display: none;
	margin-top: 1rem;
	padding: 0.9rem 1rem;
	border-left: 4px solid var(--lf-accent);
	border-radius: 10px;
	background: var(--lf-accent-soft);
	animation: lf-in 0.2s ease;
}

.lf-note.is-visible {
	display: block;
}

.lf-note__title {
	margin: 0 0 0.2rem;
	font-size: var(--text-xs, 0.8125rem);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--lf-accent-text);
}

.lf-note__text {
	margin: 0;
	font-size: var(--text-sm, 0.95rem);
}

@keyframes lf-in {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: none; }
}

.lf-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem;
	margin-top: 1.4rem;
}

.lf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.6rem 1.4rem;
	border: 1.5px solid transparent;
	border-radius: 999px;
	font: inherit;
	font-weight: 650;
	cursor: pointer;
	text-decoration: none;
}

.lf-btn--primary {
	background: var(--lf-primary);
	color: #fff;
}

.lf-btn--primary:hover {
	background: color-mix(in srgb, var(--lf-primary) 85%, #000);
}

.lf-btn--primary[disabled] {
	opacity: 0.4;
	cursor: not-allowed;
}

.lf-btn--secondary {
	background: var(--lf-accent);
	color: #1d1508;
}

.lf-btn--ghost {
	background: transparent;
	border-color: var(--lf-border);
	color: var(--lf-text);
}

.lf-btn--ghost:hover {
	border-color: var(--lf-primary-line);
}

.lf-btn:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--lf-accent) 55%, #fff);
	outline-offset: 2px;
}

/* Result */
.lf-eyebrow {
	margin: 0 0 0.3rem;
	font-size: var(--text-xs, 0.8125rem);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--lf-accent-text);
}

.lf-result__title {
	margin: 0 0 0.6rem;
	font-family: var(--font-serif, Georgia, serif);
	font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem);
	line-height: 1.2;
	color: var(--lf-primary);
}

.lf-result__desc {
	margin: 0 0 0.9rem;
	font-size: var(--text-lg, 1.1rem);
}

.lf-runner,
.lf-lowconf,
.lf-clean {
	margin: 0 0 0.9rem;
	color: var(--lf-muted);
}

.lf-lowconf {
	padding: 0.6rem 0.85rem;
	border-radius: 8px;
	background: var(--lf-primary-soft);
}

.lf-traits {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
	gap: 0.6rem;
	margin: 1.1rem 0 1.4rem;
}

.lf-traits div {
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--lf-border);
	border-radius: 10px;
	background: var(--lf-primary-soft);
}

.lf-traits dt {
	font-size: var(--text-xs, 0.8125rem);
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--lf-muted);
}

.lf-traits dd {
	margin: 0.15rem 0 0;
	font-weight: 600;
}

.lf-result h4 {
	margin: 1.4rem 0 0.6rem;
	font-size: var(--text-base, 1rem);
	font-weight: 700;
}

.lf-flags,
.lf-guides {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.55rem;
}

.lf-flags li {
	display: grid;
	gap: 0.15rem;
	padding: 0.75rem 0.9rem;
	border-left: 4px solid var(--lf-accent);
	border-radius: 8px;
	background: var(--lf-accent-soft);
}

.lf-flags span {
	font-size: var(--text-sm, 0.95rem);
	color: var(--lf-text);
}

.lf-guides a {
	font-weight: 600;
	color: var(--lf-primary);
	text-underline-offset: 3px;
}

.lf-cta {
	margin: 1.4rem 0 0;
}

.lf-disclaimer {
	margin: 1.5rem 0 0;
	padding-top: 1rem;
	border-top: 1px solid var(--lf-border);
	font-size: var(--text-xs, 0.8125rem);
	color: var(--lf-muted);
}

.lf-debug {
	margin-top: 1rem;
	padding: 0.8rem;
	border-radius: 8px;
	background: #10201c;
	color: #d7f0e6;
	font-size: 0.78rem;
	white-space: pre-wrap;
}

@media (prefers-reduced-motion: reduce) {
	.lf-note,
	.lf-progress__bar,
	.lf-answer {
		animation: none;
		transition: none;
	}
}
