@font-face {
	font-family: "Inter";
	src: url("/static/fonts/inter-var.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	/* swap: the page is readable in the system font immediately and reflows
	   once Inter lands, rather than showing nothing for 3s on a bad signal. */
	font-display: swap;
}

/*
 * One stylesheet, no framework, no build step.
 *
 * The palette is BrightSide's own, lifted from the live site rather than
 * invented: gold #F7C948 on navy #102A43. Responsive here means the layout is
 * intrinsically fluid and only uses a breakpoint where the content genuinely
 * needs one — not a twelve-column grid and a set of phone-shaped guesses.
 */

:root {
	--gold: #f7c948;
	--gold-deep: #e0ad1d;
	--navy: #102a43;
	--navy-deep: #0a1c2e;
	--ink: #102a43;
	--ink-soft: #3e4c59;
	--whisper: #7b8794;
	--paper: #ffffff;
	--wash: #f5f7fa;
	--line: #e1e8ef;
	--focus: #1361ff;
	--radius: 14px;
	--shadow: 0 1px 2px rgb(16 42 67 / 6%), 0 8px 24px -12px rgb(16 42 67 / 18%);
	--gap: clamp(1rem, 2.5vw, 2rem);
	--section: clamp(3rem, 8vw, 6rem);
	--measure: 62ch;
}

@media (prefers-color-scheme: dark) {
	:root {
		--ink: #f0f4f8;
		--ink-soft: #bcccdc;
		--whisper: #829ab1;
		--paper: #12263a;
		--wash: #0a1c2e;
		--line: #1f3a52;
		--shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px -12px rgb(0 0 0 / 60%);
	}
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	background: var(--wash);
	color: var(--ink);
	font: 400 1rem/1.65 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	/* Read at arm's length, on a phone, outdoors. */
	font-size: clamp(1rem, 0.96rem + 0.22vw, 1.125rem);
	overflow-x: hidden;
}

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

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

.skip {
	position: absolute;
	left: -9999px;
}

.skip:focus {
	left: 1rem;
	top: 1rem;
	z-index: 20;
	background: var(--paper);
	padding: 0.7rem 1.1rem;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

/* ---------------------------------------------------------------- chrome */

header.site {
	position: sticky;
	top: 0;
	z-index: 10;
	background: var(--navy);
	border-bottom: 1px solid rgb(255 255 255 / 8%);
}

header .bar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem var(--gap);
	align-items: center;
	justify-content: space-between;
	padding-block: 0.7rem;
}

.brand {
	display: inline-flex;
	align-items: center;
	flex: none;
}

.brand img {
	/* Sized by height so the 4:1 lockup keeps its proportions everywhere. */
	height: clamp(2.1rem, 1.7rem + 1.1vw, 2.75rem);
	width: auto;
}

.foot-logo {
	height: 2.4rem;
	width: auto;
	margin-bottom: 0.75rem;
}

header nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 1.25rem;
}

header nav a {
	color: #cfe0ef;
	text-decoration: none;
	font-weight: 500;
	padding: 0.4rem 0;
}

header nav a[aria-current="page"] {
	color: var(--gold);
	font-weight: 700;
}

header nav a:hover,
header nav a:focus-visible {
	color: #fff;
}

header nav a.button {
	color: #3d2f00;
}

.button.small {
	padding: 0.55rem 1.05rem;
	min-height: 40px;
	font-size: 0.95rem;
}

/* ------------------------------------------------------------------ type */

h1,
h2,
h3 {
	line-height: 1.12;
	letter-spacing: -0.025em;
	margin: 0 0 0.5em;
	text-wrap: balance;
}

h1 {
	font-size: clamp(2.1rem, 1.3rem + 3.6vw, 4rem);
	font-weight: 800;
}

h2 {
	font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.5rem);
	font-weight: 700;
}

h3 {
	font-size: 1.2rem;
	font-weight: 700;
}

p {
	max-width: var(--measure);
	text-wrap: pretty;
}

.lede {
	font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
	color: var(--ink-soft);
}

.eyebrow {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--gold-deep);
	margin-bottom: 0.75rem;
}

.centred {
	text-align: center;
}

.centred p {
	margin-inline: auto;
}

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

main {
	display: block;
}

.wrap {
	max-width: 72rem;
	margin-inline: auto;
	padding-inline: var(--gap);
}

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

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

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

.hero {
	position: relative;
	background:
		radial-gradient(90rem 40rem at 78% -12%, rgb(247 201 72 / 22%), transparent 62%),
		linear-gradient(168deg, var(--navy) 0%, var(--navy-deep) 100%);
	color: #f0f4f8;
	padding-block: clamp(3rem, 9vw, 7rem);
	overflow: hidden;
}

.hero h1 {
	color: #fff;
}

.hero h1 .accent {
	color: var(--gold);
	display: block;
}

.hero .lede {
	color: #cfe0ef;
	max-width: 34ch;
}

.hero-grid {
	display: grid;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
	grid-template-columns: 1fr;
}

@media (min-width: 62rem) {
	.hero-grid {
		grid-template-columns: 1.05fr 1fr;
	}
}

.hero-art img {
	border-radius: var(--radius);
	box-shadow: 0 30px 60px -20px rgb(0 0 0 / 55%);
	border: 1px solid rgb(255 255 255 / 12%);
}

.trust {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 1.5rem;
	margin-top: 2rem;
	padding: 0;
	list-style: none;
	color: #cfe0ef;
	font-size: 0.95rem;
}

.trust li {
	display: flex;
	align-items: center;
	gap: 0.45rem;
}

.trust svg {
	flex: none;
	color: var(--gold);
}

/* --------------------------------------------------------------- cards */

.cards {
	display: grid;
	/* auto-fit + minmax: the column count follows the space, so it is right on
	   a phone, a tablet sideways and a desk monitor with no media query. */
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
	gap: var(--gap);
}

.card {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.card img {
	aspect-ratio: 16 / 10;
	object-fit: cover;
	width: 100%;
}

.card .body {
	padding: 1.35rem;
}

.card p {
	color: var(--ink-soft);
	margin-bottom: 0;
}

.feature {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.5rem;
}

.feature .icon {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 10px;
	background: color-mix(in srgb, var(--gold) 22%, transparent);
	color: var(--gold-deep);
	margin-bottom: 1rem;
}

/* ----------------------------------------------------------------- steps */

.steps {
	counter-reset: step;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	gap: var(--gap);
	padding: 0;
	list-style: none;
}

.steps li {
	counter-increment: step;
	padding-top: 3.25rem;
	position: relative;
}

.steps li::before {
	content: counter(step);
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 50%;
	background: var(--gold);
	color: #3d2f00;
	font-weight: 800;
}

/* ----------------------------------------------------------------- forms */

.stack {
	display: grid;
	max-width: var(--measure);
}

.stack.narrow {
	max-width: 25rem;
}

label {
	font-weight: 600;
	margin-top: 1rem;
	margin-bottom: 0.3rem;
	display: block;
}

input,
textarea,
select {
	font: inherit;
	color: inherit;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 0.75rem 0.85rem;
	width: 100%;
}

input:focus,
textarea:focus {
	border-color: var(--gold-deep);
}

.hint {
	color: var(--whisper);
	font-size: 0.9rem;
}

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

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	background: var(--gold);
	color: #3d2f00;
	border: 1px solid transparent;
	border-radius: 999px;
	/* Tappable with a cold wet thumb in January. */
	padding: 0.85rem 1.6rem;
	min-height: 48px;
	font: inherit;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 6px 18px -8px rgb(247 201 72 / 80%);
}

.button:hover,
.button:focus-visible {
	background: var(--gold-deep);
}

.button.ghost {
	background: transparent;
	color: inherit;
	border-color: currentcolor;
	box-shadow: none;
	opacity: 0.9;
}

.button.ghost:hover {
	background: rgb(255 255 255 / 8%);
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.75rem;
}

/* ------------------------------------------------------------------- cta */

.cta {
	background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
	color: #fff;
	border-radius: var(--radius);
	padding: clamp(2rem, 5vw, 3.5rem);
	text-align: center;
}

.cta h2 {
	color: #fff;
}

.cta p {
	color: #cfe0ef;
	margin-inline: auto;
}

/* ----------------------------------------------------------------- pills */

.pills {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding: 0;
	margin: 1.5rem 0 0;
}

.pills li {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 0.4rem 1rem;
	font-weight: 600;
}

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

footer.site {
	background: var(--navy-deep);
	color: #9fb3c8;
	padding-block: 2.5rem;
	margin-top: 0;
}

footer.site a {
	color: #cfe0ef;
}

.foot-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
	gap: var(--gap);
}

.foot-grid h3 {
	color: #fff;
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.foot-grid ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 0.4rem;
}

.rule {
	border: 0;
	border-top: 1px solid rgb(255 255 255 / 12%);
	margin: 2rem 0 1.25rem;
}

.whisper {
	color: var(--whisper);
	font-size: 0.85rem;
}

/* ------------------------------------------------------------- utilities */
/*
 * A small, closed set — not a utility framework. These exist because the CSP
 * is `style-src 'self'`, which blocks inline style attributes outright: a
 * `style="margin-top:3rem"` in a template does not warn, it simply never
 * applies, and the page quietly renders wrong.
 */
.mt-l { margin-top: 3rem; }
.mt-m { margin-top: 2rem; }
.centre-actions { justify-content: center; }
.rounded { border-radius: var(--radius); }
.split { display: grid; gap: var(--gap); grid-template-columns: 1fr; }

@media (min-width: 62rem) {
	.split { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ----------------------------------------------------------------- lists */

.ticks {
	list-style: none;
	padding: 0;
	margin: 1rem 0 0;
	display: grid;
	gap: 0.6rem;
	max-width: var(--measure);
}

.ticks li {
	position: relative;
	padding-left: 1.9rem;
}

.ticks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.42em;
	width: 1.1rem;
	height: 0.6rem;
	border-left: 3px solid var(--gold-deep);
	border-bottom: 3px solid var(--gold-deep);
	transform: rotate(-45deg);
}

/* A four-across row on wide screens, still fluid below. */
.cards.four {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

/* ------------------------------------------------------------------- faq */

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

.qa {
	border-top: 1px solid var(--line);
	padding: 1.25rem 0;
}

.qa dt {
	font-weight: 700;
	font-size: 1.05rem;
	margin-bottom: 0.35rem;
}

.qa dd {
	margin: 0;
	color: var(--ink-soft);
}

.card-form {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: clamp(1.25rem, 3vw, 2rem);
	max-width: none;
}
