:root {
	color-scheme: light;
	font-family:
		Inter,
		ui-sans-serif,
		system-ui,
		-apple-system,
		BlinkMacSystemFont,
		'Segoe UI',
		sans-serif;
	--navy: #071a39;
	--blue: #1656d9;
	--teal: #00a994;
	--gold: #f5b51b;
	--ink: #17233a;
	--muted: #617089;
	--line: #dce3ed;
	--soft: #f3f6fa;
	--surface: #fff;
	background: var(--soft);
	color: var(--ink);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-width: 1120px;
	background: var(--soft);
}

button,
textarea {
	font: inherit;
}

button {
	cursor: pointer;
}

button:disabled {
	cursor: not-allowed;
	opacity: 0.5;
}

[hidden] {
	display: none !important;
}

.topbar {
	position: sticky;
	top: 0;
	z-index: 20;
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 38px;
	align-items: center;
	min-height: 68px;
	padding: 0 3vw;
	background: var(--navy);
	color: white;
	box-shadow: 0 6px 24px rgb(7 26 57 / 20%);
}

.brand {
	display: flex;
	gap: 11px;
	align-items: center;
	color: white;
	font-size: 18px;
	text-decoration: none;
}

.brand strong {
	color: #71e4d5;
}

.brand-mark {
	display: grid;
	width: 38px;
	height: 38px;
	place-items: center;
	border-radius: 9px;
	background: linear-gradient(145deg, #1c61ed, #00a994);
	font-size: 12px;
	font-weight: 900;
}

.topbar nav {
	display: flex;
	gap: 28px;
	color: #cad4e4;
	font-size: 13px;
}

.topbar-actions {
	display: flex;
	gap: 18px;
	align-items: center;
}

.status-pill {
	color: #b7c3d6;
	font-size: 12px;
}

.status-pill.is-ready {
	color: #80e6c4;
}

.text-button {
	border: 0;
	background: transparent;
	color: white;
	font-size: 12px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.demo-layout {
	display: grid;
	grid-template-columns: minmax(720px, 1fr) 420px;
	align-items: start;
	min-height: calc(100vh - 68px);
}

.shopper-pane {
	min-width: 0;
	padding: 52px 4vw 100px;
	background: white;
}

.shopper-heading {
	max-width: 850px;
	margin-bottom: 30px;
}

.eyebrow,
.section-kicker {
	margin: 0 0 8px;
	color: var(--blue);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.shopper-heading h1 {
	max-width: 780px;
	margin: 0;
	color: var(--navy);
	font-size: clamp(38px, 4vw, 58px);
	line-height: 1.01;
	letter-spacing: -0.048em;
}

.shopper-heading > p:last-child {
	margin: 17px 0 0;
	color: var(--muted);
	font-size: 18px;
}

.error-banner {
	margin: 0 0 18px;
	padding: 14px 17px;
	border: 1px solid #efb5b5;
	border-radius: 10px;
	background: #fff1f1;
	color: #922323;
	font-weight: 700;
}

.search-box {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 12px;
	max-width: 980px;
	padding: 22px;
	border: 1px solid #cdd7e5;
	border-radius: 15px;
	background: #f8fafc;
	box-shadow: 0 12px 35px rgb(29 52 89 / 8%);
}

.search-box label {
	grid-column: 1 / -1;
	color: var(--navy);
	font-size: 13px;
	font-weight: 850;
}

textarea {
	width: 100%;
	min-height: 90px;
	padding: 15px;
	resize: vertical;
	border: 1px solid #b8c5d8;
	border-radius: 10px;
	background: white;
	color: var(--ink);
	font-size: 16px;
	line-height: 1.45;
	outline: none;
}

textarea:focus {
	border-color: var(--blue);
	box-shadow: 0 0 0 4px rgb(22 86 217 / 10%);
}

.primary-button,
.choose-button {
	display: inline-flex;
	gap: 15px;
	align-items: center;
	justify-content: space-between;
	min-height: 52px;
	padding: 0 20px;
	border: 0;
	border-radius: 9px;
	background: var(--blue);
	color: white;
	font-weight: 850;
	box-shadow: 0 8px 18px rgb(22 86 217 / 18%);
}

.search-box .primary-button {
	align-self: stretch;
	min-width: 220px;
}

.primary-button.is-busy {
	background: #72809a;
}

.results-section {
	max-width: 1050px;
	margin-top: 44px;
	padding-top: 36px;
	border-top: 1px solid var(--line);
	scroll-margin-top: 84px;
}

.section-heading {
	display: flex;
	gap: 22px;
	align-items: end;
	justify-content: space-between;
}

.section-heading h2,
.decision-card h2 {
	margin: 0;
	color: var(--navy);
	font-size: 30px;
	letter-spacing: -0.035em;
}

.result-count {
	margin: 0 0 4px;
	color: var(--muted);
	font-size: 12px;
}

.chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 16px;
}

.chip {
	padding: 6px 10px;
	border-radius: 999px;
	background: #eaf1ff;
	color: #1545a5;
	font-size: 12px;
	font-weight: 750;
	text-transform: capitalize;
}

.selection-help {
	margin: 20px 0 11px;
	color: var(--muted);
	font-size: 13px;
}

.match-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.match-card,
.comparison-card {
	position: relative;
	overflow: hidden;
	border: 2px solid var(--line);
	border-radius: 13px;
	background: white;
	transition:
		border-color 150ms ease,
		box-shadow 150ms ease;
}

.match-card.is-selected {
	border-color: var(--blue);
	box-shadow: 0 7px 22px rgb(22 86 217 / 12%);
}

.match-card {
	cursor: pointer;
}

.match-card:hover {
	border-color: #8facdf;
	box-shadow: 0 7px 22px rgb(22 86 217 / 9%);
}

.match-card:focus-visible {
	outline: 4px solid rgb(22 86 217 / 20%);
	outline-offset: 2px;
}

.vehicle-image,
.comparison-image {
	display: block;
	width: 100%;
	height: 155px;
	object-fit: contain;
	background: linear-gradient(180deg, #f5f8fc, white);
}

.vehicle-heading,
.match-card > .rating-line,
.vehicle-facts,
.match-card > .reason-list {
	margin-right: 16px;
	margin-left: 16px;
}

.vehicle-heading {
	padding-top: 15px;
}

.vehicle-heading h3,
.comparison-card h3 {
	margin: 5px 0 3px;
	color: var(--navy);
	font-size: 18px;
	letter-spacing: -0.02em;
}

.vehicle-trim {
	margin: 0;
	color: var(--muted);
	font-size: 12px;
}

.match-score {
	color: var(--teal);
	font-size: 11px;
	font-weight: 900;
	text-transform: uppercase;
}

.rating-line {
	display: flex;
	gap: 6px;
	align-items: center;
	margin-top: 10px;
	font-size: 12px;
}

.stars {
	color: var(--gold);
	font-size: 15px;
	letter-spacing: -0.08em;
}

.review-count {
	color: var(--muted);
}

.vehicle-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	margin-top: 12px;
	font-size: 12px;
}

.vehicle-facts strong {
	width: 100%;
	color: var(--navy);
	font-size: 20px;
}

.vehicle-facts span {
	color: var(--muted);
}

.reason-list {
	min-height: 76px;
	margin-top: 13px;
	margin-bottom: 13px;
	padding: 12px 0 0 18px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 11px;
	line-height: 1.5;
}

.select-vehicle {
	width: 100%;
	min-height: 42px;
	border: 0;
	border-top: 1px solid var(--line);
	background: #f6f8fb;
	color: var(--blue);
	font-size: 12px;
	font-weight: 850;
}

.is-selected .select-vehicle {
	background: #eaf1ff;
}

.compare-button {
	margin-top: 16px;
}

.recommendation-box {
	margin: 18px 0;
	padding: 16px 18px;
	border-left: 4px solid var(--teal);
	border-radius: 0 10px 10px 0;
	background: #effaf8;
}

.recommendation-box span {
	color: #087e70;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.11em;
}

.recommendation-box p {
	margin: 5px 0 0;
	color: var(--navy);
	font-size: 17px;
	font-weight: 650;
	line-height: 1.5;
}

.comparison-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.comparison-card {
	padding: 20px;
}

.comparison-image {
	height: 180px;
	margin: -20px -20px 16px;
	width: calc(100% + 40px);
}

.finalist-label {
	position: absolute;
	z-index: 2;
	top: 12px;
	left: 12px;
	padding: 6px 8px;
	border-radius: 5px;
	background: var(--navy);
	color: white;
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0.1em;
}

.comparison-card > .rating-line {
	margin: 10px 0 13px;
}

.expert-score {
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 9px;
	align-items: center;
	margin: 13px 0;
	padding: 12px;
	border-radius: 8px;
	background: var(--soft);
}

.expert-score strong {
	grid-row: 1 / 3;
	color: var(--blue);
	font-size: 24px;
}

.expert-score span,
.expert-score b {
	font-size: 11px;
}

.expert-score span {
	color: var(--muted);
}

.expert-score b {
	color: var(--teal);
}

.comparison-specs {
	display: grid;
	margin: 12px 0;
	border-top: 1px solid var(--line);
}

.comparison-specs > div {
	display: flex;
	gap: 16px;
	justify-content: space-between;
	padding: 9px 0;
	border-bottom: 1px solid var(--line);
	font-size: 12px;
}

.comparison-specs span {
	color: var(--muted);
}

.comparison-specs strong {
	text-align: right;
}

.review-quote {
	margin: 14px 0 0;
	padding: 12px;
	border-radius: 8px;
	background: #f6f8fb;
	color: var(--ink);
	font-size: 12px;
	line-height: 1.5;
}

.owner-quote {
	background: #fff8e7;
}

.review-quote cite {
	display: block;
	margin-top: 7px;
	color: var(--muted);
	font-size: 10px;
	font-style: normal;
	font-weight: 750;
}

.pros-cons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 14px;
	font-size: 11px;
}

.pros-cons > div {
	padding: 11px;
	border: 1px solid var(--line);
	border-radius: 8px;
}

.pros-label {
	color: var(--teal);
}

.cons-label {
	color: #9a6011;
}

.pros-cons-list {
	margin: 7px 0 0;
	padding-left: 15px;
	color: var(--muted);
	line-height: 1.5;
}

.choose-button {
	width: 100%;
	margin-top: 15px;
	justify-content: center;
	background: var(--navy);
}

.evidence {
	margin-top: 15px;
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: 9px;
	color: var(--muted);
	font-size: 12px;
}

.evidence summary {
	cursor: pointer;
	color: var(--blue);
	font-weight: 800;
}

.source-item {
	display: grid;
	gap: 3px;
	margin: 10px 0 0;
	padding: 10px;
	border-radius: 7px;
	background: var(--soft);
}

.source-item strong {
	color: var(--ink);
}

.decision-card {
	display: flex;
	gap: 22px;
	align-items: center;
	justify-content: space-between;
	padding: 22px;
	border: 1px solid #b9dfd8;
	border-radius: 13px;
	background: #f1fbf8;
}

.decision-card > div {
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 12px;
	align-items: center;
}

.decision-card p {
	grid-column: 2;
	margin: 4px 0 0;
	color: var(--muted);
}

.choice-check {
	display: grid;
	grid-row: 1 / 3;
	width: 40px;
	height: 40px;
	place-items: center;
	border-radius: 50%;
	background: var(--teal);
	color: white;
	font-weight: 900;
}

.finance-result {
	margin-top: 12px;
	padding: 18px;
	border-radius: 10px;
	background: var(--navy);
	color: white;
}

.finance-result strong {
	color: #76e4d5;
}

.finance-result p {
	margin: 5px 0 0;
	line-height: 1.5;
}

.harper-pane {
	position: sticky;
	top: 68px;
	height: calc(100vh - 68px);
	overflow-y: auto;
	padding: 28px 24px 24px;
	background: #11181f;
	color: white;
	box-shadow: inset 1px 0 #29323b;
}

.harper-heading {
	display: flex;
	align-items: start;
	justify-content: space-between;
}

.harper-heading .eyebrow {
	color: #74e4d4;
}

.harper-heading h2 {
	margin: 0;
	font-size: 25px;
	letter-spacing: -0.03em;
}

.live-indicator {
	color: #68e1bd;
	font-size: 10px;
	font-weight: 900;
}

.harper-intro {
	margin: 10px 0 18px;
	color: #9ba9b8;
	font-size: 12px;
	line-height: 1.5;
}

.proof-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 7px;
	margin-bottom: 14px;
}

.proof-card {
	display: grid;
	gap: 4px;
	min-height: 58px;
	padding: 9px 10px;
	border: 1px solid #34414c;
	border-radius: 7px;
	background: #182129;
}

.proof-wide {
	grid-column: 1 / -1;
	min-height: auto;
}

.proof-card span {
	color: #7890a4;
	font-size: 7px;
	font-weight: 900;
	letter-spacing: 0.12em;
}

.proof-card strong {
	color: #79e4d4;
	font-size: 9px;
	line-height: 1.35;
}

.workflow {
	padding: 14px;
	border: 1px solid #303942;
	border-radius: 12px;
	background: #0c1218;
}

.workflow-node {
	display: flex;
	gap: 10px;
	align-items: center;
	min-height: 52px;
	padding: 9px 11px;
	border: 1px solid #3a4650;
	border-radius: 8px;
	background: #1b242c;
	transition:
		border-color 180ms ease,
		background 180ms ease,
		box-shadow 180ms ease;
}

.workflow-node.is-active {
	border-color: #f5b51b;
	box-shadow: 0 0 0 2px rgb(245 181 27 / 12%);
}

.workflow-node.is-complete {
	border-color: #50d5b9;
	background: #162b29;
}

.node-icon {
	display: grid;
	flex: none;
	width: 24px;
	height: 24px;
	place-items: center;
	border-radius: 50%;
	background: #303c47;
	color: #b9c5d0;
	font-size: 9px;
	font-weight: 900;
}

.is-active .node-icon {
	background: #f5b51b;
	color: #14202a;
}

.is-complete .node-icon {
	background: #50d5b9;
	color: #10211e;
}

.workflow-node div {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.workflow-node strong {
	font-size: 12px;
}

.workflow-node small {
	overflow: hidden;
	color: #94a3b2;
	font-size: 9px;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.workflow-node code {
	color: #79e4d4;
}

.flow-arrow {
	height: 16px;
	color: #65727e;
	font-size: 15px;
	line-height: 16px;
	text-align: center;
}

.harper-boundary {
	position: relative;
	padding: 17px 10px 10px;
	border: 2px solid #50d5b9;
	border-radius: 10px;
}

.boundary-label {
	position: absolute;
	top: -8px;
	left: 12px;
	padding: 0 5px;
	background: #0c1218;
	color: #50d5b9;
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0.12em;
}

.flow-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 7px;
}

.flow-split .workflow-node {
	align-items: start;
	min-height: 70px;
	padding: 8px;
}

.flow-split .node-icon {
	width: 20px;
	height: 20px;
}

.flow-split strong {
	font-size: 10px;
}

.input-node {
	border-color: #66537f;
	background: #292038;
}

.output-node {
	border-color: #315d8f;
	background: #17283b;
}

.associate-panel {
	margin-top: 16px;
	padding: 15px;
	border: 1px solid #34404b;
	border-top: 3px solid #4887ff;
	border-radius: 9px;
	background: #182129;
}

.associate-panel.is-updating {
	animation: associate-update 900ms ease-out;
}

@keyframes associate-update {
	0% {
		border-color: #f5b51b;
		box-shadow: 0 0 0 5px rgb(245 181 27 / 25%);
	}
	100% {
		border-color: #34404b;
		box-shadow: none;
	}
}

.associate-heading {
	display: flex;
	align-items: start;
	justify-content: space-between;
}

.associate-heading p,
.next-action > span {
	margin: 0;
	color: #778a9d;
	font-size: 8px;
	font-weight: 900;
	letter-spacing: 0.12em;
}

.associate-heading h3 {
	margin: 4px 0 0;
	font-size: 16px;
}

.stage-badge {
	padding: 5px 7px;
	border-radius: 5px;
	background: #27333e;
	color: #7ce0c9;
	font-size: 9px;
	font-weight: 850;
	text-transform: capitalize;
}

.signal-row {
	display: flex;
	gap: 10px;
	justify-content: space-between;
	margin-top: 13px;
	padding: 9px;
	border-radius: 6px;
	background: #10171d;
	font-size: 10px;
}

.signal-row span {
	color: #8392a1;
}

.signal-row strong {
	text-align: right;
}

.next-action {
	margin-top: 12px;
}

.next-action p {
	margin: 5px 0 0;
	color: #dce4ec;
	font-size: 12px;
	line-height: 1.45;
}

.associate-update {
	margin-top: 12px;
	padding: 7px 8px;
	border-radius: 5px;
	background: #0f2b26;
	color: #70dfc6;
	font-size: 8px;
	font-weight: 900;
	letter-spacing: 0.07em;
}

.associate-history {
	display: grid;
	gap: 5px;
	margin: 9px 0 0;
	padding: 0;
	list-style: none;
}

.associate-history li {
	display: flex;
	gap: 8px;
	justify-content: space-between;
	padding-top: 5px;
	border-top: 1px solid #2c3741;
	font-size: 8px;
}

.associate-history strong {
	color: #7ce0c9;
	text-transform: capitalize;
}

.associate-history span {
	color: #8796a4;
	text-align: right;
}

.demo-disclaimer {
	margin: 14px 2px 0;
	color: #667583;
	font-size: 9px;
	line-height: 1.4;
}

@media (max-height: 800px) {
	.harper-pane {
		position: relative;
		top: 0;
		height: auto;
		min-height: calc(100vh - 68px);
	}
}
