/* =========================================================================
   Sell My Car Fast — design system
   Premium refinement: one 5-colour palette, a 5-step type scale, air
   instead of boxes. Blue and white, Montserrat, single light theme.

   Palette — exactly five named values; every tint is a mix of these:
     --paper  #FFFFFF   page ground
     --ink    #0E2438   headings, dark sections, full-strength body
     --slate  #5C7085   secondary text, labels, captions
     --azure  #0A5BB8   the one accent — links, buttons, emphasis
     --line   #E2E8EF   hairlines, input borders
   ========================================================================= */

:root {
	color-scheme: light;

	--paper: #FFFFFF;
	--ink: #0E2438;
	--slate: #5C7085;
	--azure: #0A5BB8;
	--line: #E2E8EF;

	/* Derived surfaces — not new colours, just the five mixed */
	--tint: color-mix(in srgb, var(--azure) 6%, var(--paper));
	--wedge: color-mix(in srgb, var(--azure) 10%, var(--paper));
	--azure-ink: color-mix(in srgb, var(--azure) 82%, var(--ink));
	--on-ink-soft: color-mix(in srgb, var(--paper) 72%, var(--ink));

	/* Semantic (not the accent) */
	--danger: #C0392B;

	--font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	/* Type scale — five steps, ratio ~1.28 on a 17px base */
	--t-display: clamp(2.35rem, 1.6rem + 3vw, 3.35rem);
	--t-h2: clamp(1.55rem, 1.35rem + 0.9vw, 1.9rem);
	--t-h3: 1.1rem;
	--t-body: 1.0625rem;
	--t-small: 0.8rem;

	/* Space scale — 4px base */
	--sp-1: .5rem;
	--sp-2: 1rem;
	--sp-3: 1.5rem;
	--sp-4: 2.25rem;
	--sp-5: 3.5rem;
	--sp-6: 5rem;
	--sp-section: clamp(4rem, 2.5rem + 6vw, 7rem);

	--measure: 60ch;
	--container: 1120px;
	--gutter: clamp(1.5rem, 4vw, 2.5rem);
	--hairline: 1px;
	--radius: 6px;
}

/* ---------- reset ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	overflow-x: hidden;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	display: block;
}

h1,
h2,
h3 {
	font-family: var(--font-head);
	color: var(--ink);
	text-wrap: balance;
	margin: 0;
}

h1 {
	font-weight: 300;
	font-size: var(--t-display);
	line-height: 1.08;
	letter-spacing: -0.015em;
}

h2 {
	font-weight: 600;
	font-size: var(--t-h2);
	line-height: 1.2;
	letter-spacing: -0.01em;
}

h3 {
	font-weight: 600;
	font-size: var(--t-h3);
	line-height: 1.35;
}

p {
	margin: 0;
	max-width: var(--measure);
}

a {
	color: var(--azure);
	text-decoration: none;
}

a:hover {
	color: var(--azure-ink);
	text-decoration: underline;
}

:focus-visible {
	outline: 2px solid var(--azure);
	outline-offset: 3px;
	border-radius: 2px;
}

[hidden] {
	display: none !important;
}

/* ---------- layout ---------- */

.container {
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section {
	padding-block: var(--sp-section);
}

/* first section right after an interior page header needs less top air */
main > .section:first-child {
	padding-top: var(--sp-5);
}

.section > .container > * + * {
	margin-top: var(--sp-3);
}

.section--tint {
	background: var(--tint);
}

.eyebrow {
	font-family: var(--font-head);
	font-size: var(--t-small);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--slate);
	margin: 0;
}

.lede {
	font-size: 1.2rem;
	line-height: 1.55;
	color: var(--slate);
	max-width: 52ch;
}

.rule {
	border: 0;
	border-top: var(--hairline) solid var(--line);
	margin: 0;
}

/* ---------- announcement bar ---------- */

.announce {
	background: var(--tint);
	color: var(--slate);
	border-bottom: var(--hairline) solid var(--line);
	text-align: center;
	font-family: var(--font-head);
	font-size: var(--t-small);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.6rem var(--gutter);
}

/* ---------- masthead ---------- */

.masthead {
	background: var(--paper);
	border-bottom: var(--hairline) solid var(--line);
	position: sticky;
	top: 0;
	z-index: 20;
}

.masthead__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-3);
	padding-block: var(--sp-2);
	flex-wrap: wrap;
}

.masthead__row {
	display: flex;
	align-items: center;
	gap: var(--sp-4);
}

.wordmark {
	display: flex;
	align-items: center;
	text-decoration: none;
}

.wordmark img {
	height: 30px;
	width: auto;
	display: block;
}

.masthead__nav {
	display: flex;
	gap: var(--sp-3);
	font-family: var(--font-head);
	font-size: var(--t-small);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.masthead__nav a {
	color: var(--slate);
	text-decoration: none;
}

.masthead__nav a:hover,
.masthead__nav a[aria-current="page"] {
	color: var(--ink);
}

/* ---------- buttons ---------- */

.btn-solid {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--azure);
	color: var(--paper);
	font-family: var(--font-head);
	font-size: var(--t-small);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 0.9rem 1.7rem;
	border: 0;
	border-radius: var(--radius);
	cursor: pointer;
	transition: background 150ms ease;
}

.btn-solid:hover {
	background: var(--azure-ink);
	color: var(--paper);
	text-decoration: none;
}

.link-arrow {
	display: inline-block;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: var(--t-small);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--azure);
}

.link-arrow::after {
	content: " \2192";
}

.link-arrow:hover {
	text-decoration: none;
	color: var(--azure-ink);
}

/* ---------- hero ---------- */

.hero {
	position: relative;
	background: var(--paper);
	overflow: hidden;
	border-bottom: var(--hairline) solid var(--line);
}

.hero__cut {
	position: absolute;
	inset: 0;
	background: var(--wedge);
	clip-path: polygon(60% 0, 100% 0, 100% 100%, 30% 100%);
	pointer-events: none;
}

.hero__art {
	position: absolute;
	right: 13%;
	bottom: 5%;
	width: clamp(400px, 46vw, 800px);
	height: auto;
	aspect-ratio: 93 / 47;
	object-fit: contain;
	opacity: 0.82;
	pointer-events: none;
	/* navy line drawing on transparency — sits straight on the wedge */
}

.hero__inner {
	position: relative;
	z-index: 1;
	padding-block: clamp(3.5rem, 2rem + 6vw, 6.5rem);
	max-width: 34rem;
	display: flex;
	flex-direction: column;
	gap: var(--sp-3);
}

.hero__eyebrow {
	font-family: var(--font-head);
	font-size: var(--t-small);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--slate);
	margin: 0;
}

.hero__title {
	margin: 0;
}

.hero__title strong {
	font-weight: 600;
	color: var(--azure);
}

.hero__sub {
	font-size: 1.15rem;
	line-height: 1.55;
	color: var(--slate);
	max-width: 40ch;
	margin: 0;
}

/* reg entry — the one bright object on the page */

.reg-entry {
	display: flex;
	gap: var(--sp-2);
	flex-wrap: wrap;
	margin-top: var(--sp-2);
}

.reg-entry input {
	flex: 1 1 200px;
	min-width: 0;
	width: 100%;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1.45rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	text-align: center;
	color: var(--ink);
	background: var(--paper);
	border: 2px solid var(--ink);
	border-radius: var(--radius);
	padding: 0.75rem 0.9rem 0.75rem 3rem;
	/* the GB strip — accent, not a separate colour */
	box-shadow: inset 2.1rem 0 0 var(--azure);
}

.reg-entry input::placeholder {
	color: var(--slate);
	font-weight: 600;
	letter-spacing: 0.1em;
}

.reg-entry input:focus {
	outline: 2px solid var(--azure);
	outline-offset: 3px;
}

.reg-entry .btn-solid {
	font-size: var(--t-body);
	padding-inline: 1.9rem;
}

.hero__note {
	font-size: var(--t-small);
	color: var(--slate);
	margin: 0;
}

.hero__note a {
	color: var(--azure);
}

/* ---------- valuation form ---------- */

.field-hidden {
	display: none;
}

.val-card {
	background: var(--paper);
	border: var(--hairline) solid var(--line);
	border-radius: var(--radius);
	padding: clamp(1.75rem, 1rem + 3vw, 2.75rem);
	max-width: 640px;
	margin-inline: auto;
	box-shadow: 0 1px 2px rgba(14, 36, 56, 0.04), 0 18px 40px rgba(14, 36, 56, 0.07);
}

.val-card__title {
	font-family: var(--font-head);
	font-weight: 600;
	font-size: var(--t-h2);
	color: var(--ink);
	margin: 0 0 var(--sp-4);
}

.val-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--sp-3) var(--sp-4);
}

.field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.field + .field,
.val-grid + .val-grid {
	margin-top: 0;
}

.val-card > * + * {
	margin-top: var(--sp-4);
}

.field__label {
	font-family: var(--font-head);
	font-size: var(--t-small);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--slate);
}

.field input,
.field select,
.field textarea {
	width: 100%;
	font-family: var(--font-body);
	font-size: var(--t-body);
	color: var(--ink);
	background: var(--paper);
	border: var(--hairline) solid var(--line);
	border-radius: var(--radius);
	padding: 0.7rem 0.8rem;
	transition: border-color 120ms ease;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
	border-color: var(--slate);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--azure);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--azure) 18%, transparent);
}

.field--reg input {
	font-family: var(--font-head);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	text-align: center;
	border: 2px solid var(--ink);
	padding-left: 2.8rem;
	box-shadow: inset 2rem 0 0 var(--azure);
}

.field--reg input:focus {
	box-shadow: inset 2rem 0 0 var(--azure), 0 0 0 3px color-mix(in srgb, var(--azure) 18%, transparent);
}

#lookup-btn {
	align-self: flex-start;
}

.consent {
	display: flex;
	gap: var(--sp-2);
	align-items: flex-start;
	font-size: var(--t-small);
	line-height: 1.5;
	color: var(--slate);
}

.consent input {
	margin-top: 0.15rem;
	accent-color: var(--azure);
	flex: none;
}

.turnstile-host:not([hidden]) {
	display: block;
	min-height: 65px;
}

/* ---------- vehicle confirmation panel ---------- */

.vehicle-panel {
	padding: var(--sp-3);
	border: var(--hairline) solid var(--line);
	border-left: 3px solid var(--azure);
	border-radius: var(--radius);
	background: var(--tint);
}

.vehicle-panel.is-error {
	border-left-color: var(--danger);
}

.vehicle-panel__eyebrow {
	font-family: var(--font-head);
	font-size: var(--t-small);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--azure);
	margin: 0 0 0.35rem;
}

.vehicle-panel__summary {
	font-family: var(--font-head);
	font-weight: 600;
	font-size: var(--t-h3);
	color: var(--ink);
	margin: 0 0 0.35rem;
}

.vehicle-panel__meta {
	font-size: var(--t-small);
	color: var(--slate);
	margin: 0;
}

.vehicle-panel__reset {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	color: var(--azure);
	text-decoration: underline;
	cursor: pointer;
}

/* ---------- steps — air, not cards ---------- */

.steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--sp-5) var(--sp-4);
	margin-top: var(--sp-5);
}

.steps__item {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.steps__num {
	font-family: var(--font-head);
	font-weight: 300;
	font-size: 2.25rem;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	color: var(--azure);
}

.steps__label {
	font-family: var(--font-head);
	font-weight: 600;
	font-size: var(--t-h3);
	color: var(--ink);
}

.steps__text {
	font-size: var(--t-body);
	color: var(--slate);
	margin: 0;
	max-width: 32ch;
}

/* ---------- checklist ---------- */

.checklist {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--sp-4) var(--sp-5);
	margin-top: var(--sp-5);
}

.checklist__item {
	position: relative;
	padding-left: 1.9rem;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.checklist__item::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 0;
	font-family: var(--font-head);
	font-weight: 700;
	color: var(--azure);
}

.checklist__item h3 {
	font-size: var(--t-h3);
	color: var(--ink);
}

.checklist__item p {
	font-size: var(--t-body);
	color: var(--slate);
	margin: 0;
}

/* ---------- testimonials ---------- */

.quotes {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--sp-5) var(--sp-4);
	margin-top: var(--sp-5);
}

.quote {
	display: flex;
	flex-direction: column;
	gap: var(--sp-2);
}

.quote p {
	font-size: var(--t-body);
	line-height: 1.6;
	color: var(--ink);
	margin: 0;
}

.quote cite {
	font-style: normal;
	font-family: var(--font-head);
	font-size: var(--t-small);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--slate);
}

/* ---------- marques ---------- */

.marques-block {
	text-align: center;
}

.marques-block .eyebrow {
	max-width: none;
}

.marques {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2) var(--sp-4);
	justify-content: center;
	margin-top: var(--sp-4);
}

.marques span {
	font-family: var(--font-head);
	font-size: var(--t-small);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--slate);
}

/* ---------- guides ---------- */

.guides {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--sp-4) var(--sp-5);
	margin-top: var(--sp-5);
}

.guide {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding-top: var(--sp-2);
	border-top: var(--hairline) solid var(--line);
}

.guide h3 {
	font-size: var(--t-h3);
	color: var(--ink);
}

.guide h3 a {
	color: inherit;
	text-decoration: none;
}

.guide h3 a:hover {
	color: var(--azure);
}

.guide p {
	font-size: var(--t-body);
	color: var(--slate);
	margin: 0 0 var(--sp-1);
}

/* ---------- article / prose (guide pages) ---------- */

.prose {
	max-width: 66ch;
}

.prose > * + * {
	margin-top: var(--sp-3);
}

.prose h2 {
	font-size: var(--t-h3);
	font-weight: 700;
	margin-top: var(--sp-5);
}

.prose h2:first-child {
	margin-top: 0;
}

.prose p,
.prose li {
	font-size: var(--t-body);
	line-height: 1.7;
	color: var(--ink);
}

.prose ul,
.prose ol {
	padding-left: 1.4rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.prose strong {
	font-weight: 700;
}

.prose .note {
	border-left: 3px solid var(--azure);
	background: var(--tint);
	padding: var(--sp-3);
	border-radius: 0 var(--radius) var(--radius) 0;
	font-size: var(--t-body);
	color: var(--ink);
}

.prose .note p {
	margin: 0;
}

.related {
	margin-top: var(--sp-6);
	padding-top: var(--sp-4);
	border-top: var(--hairline) solid var(--line);
}

.related h2 {
	font-family: var(--font-head);
	font-size: var(--t-small);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--slate);
	margin: 0 0 var(--sp-2);
}

.related ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

/* ---------- closing CTA — the one heavy block ---------- */

.cta-band {
	background: var(--ink);
	color: var(--paper);
	text-align: center;
	padding-block: var(--sp-6);
}

.cta-band .container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--sp-4);
}

.cta-band h2 {
	font-family: var(--font-head);
	font-weight: 300;
	font-size: var(--t-h2);
	color: var(--paper);
	max-width: 22ch;
	margin: 0;
}

.cta-band .btn-solid {
	background: var(--paper);
	color: var(--ink);
}

.cta-band .btn-solid:hover {
	background: var(--on-ink-soft);
	color: var(--ink);
}

/* ---------- footer ---------- */

.site-footer {
	background: var(--paper);
	border-top: var(--hairline) solid var(--line);
	padding-block: var(--sp-5);
	font-size: var(--t-small);
	color: var(--slate);
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr;
	gap: var(--sp-4);
}

.site-footer a {
	color: var(--slate);
}

.site-footer a:hover {
	color: var(--ink);
}

.site-footer__wordmark {
	margin-bottom: var(--sp-2);
}

.site-footer__wordmark img {
	height: 26px;
	width: auto;
	display: block;
}

.site-footer p {
	max-width: 40ch;
}

/* ---------- interior page header ---------- */

.page-head {
	background: var(--tint);
	border-bottom: var(--hairline) solid var(--line);
	padding-block: var(--sp-5);
	text-align: center;
}

.page-head .eyebrow {
	color: var(--slate);
}

.page-head h1 {
	font-size: var(--t-h2);
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--ink);
	margin-top: 0.5rem;
}

/* interior "reasons" list */

.reasons {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--sp-4) var(--sp-5);
	margin-top: var(--sp-5);
}

.reasons__item {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding-top: var(--sp-2);
	border-top: var(--hairline) solid var(--line);
}

.reasons__item h3 {
	font-size: var(--t-h3);
	color: var(--ink);
}

.reasons__item p {
	font-size: var(--t-body);
	color: var(--slate);
	margin: 0;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
	.masthead__inner {
		flex-wrap: wrap;
	}

	.masthead__nav {
		flex-wrap: wrap;
	}

	.hero__cut,
	.hero__art {
		display: none;
	}

	.hero__inner {
		max-width: none;
	}

	.val-grid {
		grid-template-columns: 1fr;
	}

	.steps {
		grid-template-columns: repeat(2, 1fr);
	}

	.quotes,
	.reasons,
	.guides {
		grid-template-columns: 1fr;
	}

	.site-footer__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	.steps,
	.checklist {
		grid-template-columns: 1fr;
	}

	.reg-entry {
		flex-direction: column;
		align-items: stretch;
	}

	.reg-entry input,
	.reg-entry .btn-solid {
		flex: 0 0 auto;
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
	}

	.masthead {
		position: static;
	}
}
