/* K67 website. One stylesheet, self-hosted fonts, no external requests.
   Light and slightly blue on a pale iridescent wash by default, deep navy when the phone asks for dark.
   Type: Instrument Serif for headlines, Instrument Sans for everything else (both OFL, fonts/OFL-Instrument.txt). */

@font-face {
	font-family: 'Instrument Sans';
	src: url('/fonts/instrument-sans-latin-wght-normal.woff2') format('woff2');
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Instrument Serif';
	src: url('/fonts/instrument-serif-latin-400-normal.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Instrument Serif';
	src: url('/fonts/instrument-serif-latin-400-italic.woff2') format('woff2');
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

:root {
	color-scheme: light dark;
	--bg: #f1f5fc;
	--surface: #ffffff;
	--surface-2: #e6edf8;
	--card: rgb(255 255 255 / 0.74);
	--card-line: rgb(255 255 255 / 0.95);
	--card-shadow: 0 1px 2px rgb(12 22 38 / 0.04), 0 10px 30px rgb(30 60 120 / 0.07);
	--ink: #0c1626;
	--ink-2: #39475c;
	--ink-3: #4a586c;
	--line: rgb(12 22 38 / 0.1);
	--line-strong: rgb(12 22 38 / 0.18);
	--accent: #0a56b8;
	--accent-ink: #ffffff;
	--accent-wash: rgb(10 86 184 / 0.09);
	--glow-1: rgb(171 205 255 / 0.5);
	--glow-2: rgb(219 201 255 / 0.6);
	--glow-3: rgb(178 236 214 / 0.55);
	--header-bg: rgb(241 245 252 / 0.74);
	--sheet-bg: #f7f9fe;
	--shot-shadow: 0 24px 50px rgb(20 45 95 / 0.16), 0 2px 6px rgb(12 22 38 / 0.08);
	--panel: linear-gradient(160deg, #0a1a38 0%, #0c3270 100%);
	--asphalt: rgb(184 198 220 / 0.55);
	--verge: rgb(150 200 172 / 0.18);
	--road-line: rgb(255 255 255 / 0.9);
	--car-1: #f7f9fc;
	--car-2: #8d9ab0;
	--w-body: 400;

	--font-sans: 'Instrument Sans', -apple-system, 'Helvetica Neue', Arial, sans-serif;
	--font-display: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
	--r-2: 10px;
	--r-3: 18px;
	--gutter: 16px;
	--max: 68rem;
	--measure: 40rem;
	--road-w: 56px;
	--ease: cubic-bezier(0.23, 1, 0.32, 1);
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #070d1a;
		--surface: #0f1829;
		--surface-2: #162238;
		--card: rgb(18 30 52 / 0.72);
		--card-line: rgb(255 255 255 / 0.07);
		--card-shadow: 0 10px 30px rgb(0 0 0 / 0.3);
		--ink: #e9eef7;
		--ink-2: #b4bfd0;
		--ink-3: #93a0b5;
		--line: rgb(255 255 255 / 0.09);
		--line-strong: rgb(255 255 255 / 0.18);
		--accent: #6db0ff;
		--accent-ink: #031225;
		--accent-wash: rgb(109 176 255 / 0.13);
		--glow-1: rgb(38 82 170 / 0.45);
		--glow-2: rgb(88 56 160 / 0.32);
		--glow-3: rgb(24 110 100 / 0.26);
		--header-bg: rgb(7 13 26 / 0.72);
		--sheet-bg: #0c1424;
		--shot-shadow: 0 24px 50px rgb(0 0 0 / 0.5);
		--panel: linear-gradient(160deg, #0d1c38 0%, #0f2b5c 100%);
		--asphalt: rgb(40 56 84 / 0.6);
		--verge: rgb(60 120 90 / 0.14);
		--road-line: rgb(255 255 255 / 0.4);
		--car-1: #c9d2e0;
		--car-2: #5d6b82;
		--w-body: 430;
	}
}

@media (prefers-contrast: more) {
	:root {
		--ink-3: var(--ink-2);
		--line: var(--line-strong);
		--card: var(--surface);
	}
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	background: var(--bg);
	scroll-padding-top: 72px;
	scrollbar-gutter: stable;
}

html.lock {
	overflow: hidden;
}

body {
	margin: 0;
	/* transparent so the fixed wash below shows; the page colour sits on <html> */
	background: transparent;
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 1.0625rem;
	line-height: 1.55;
	font-weight: var(--w-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-wrap: break-word;
	font-synthesis: none;
}

/* the iridescent wash: three pale glows on one fixed layer, drifting by transform only */
body::before {
	content: '';
	position: fixed;
	inset: -25vmax;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(38vmax 38vmax at 22% 18%, var(--glow-1), transparent 70%),
		radial-gradient(42vmax 42vmax at 82% 34%, var(--glow-2), transparent 70%),
		radial-gradient(46vmax 46vmax at 38% 78%, var(--glow-3), transparent 70%);
}

::selection {
	background: var(--accent-wash);
	color: var(--ink);
}

a {
	color: var(--accent);
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
}

a:hover {
	text-decoration-thickness: 2px;
}

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

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

h1,
h2,
h3 {
	text-wrap: balance;
	color: var(--ink);
}

h1 {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(2.5rem, 1.5rem + 4.6vw, 4.5rem);
	line-height: 1.02;
	letter-spacing: -0.012em;
	margin: 0 0 18px;
}

h1 em,
h2 em {
	font-style: italic;
	color: var(--accent);
}

h2 {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(2rem, 1.45rem + 2.3vw, 3rem);
	line-height: 1.06;
	letter-spacing: -0.008em;
	margin: 0 0 24px;
}

h3 {
	font-size: 1.125rem;
	line-height: 1.3;
	font-weight: 600;
	letter-spacing: -0.005em;
	margin: 0 0 6px;
}

p,
ul,
ol,
dl {
	margin: 0 0 14px;
}

.mono {
	font-variant-numeric: tabular-nums;
}

.lead {
	font-size: 1.1875rem;
	line-height: 1.5;
	color: var(--ink-2);
}

.meta {
	color: var(--ink-3);
	font-size: 0.9375rem;
}

.eyebrow {
	margin: 0 0 10px;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--accent);
}

.fine {
	font-size: 0.8125rem;
	line-height: 1.45;
	color: var(--ink-3);
	margin: 14px 0 0;
}

.sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ---- skip link ---- */
.skip {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 60;
	padding: 10px 14px;
	background: var(--accent);
	color: var(--accent-ink);
	border-radius: var(--r-2);
	font-weight: 600;
	text-decoration: none;
}
.skip:focus {
	top: 12px;
}

/* ---- header: menu button top-left, brand, trial link ---- */
header.site {
	position: sticky;
	top: 0;
	z-index: 20;
	background: var(--header-bg);
	-webkit-backdrop-filter: saturate(1.5) blur(14px);
	backdrop-filter: saturate(1.5) blur(14px);
	border-bottom: 1px solid var(--line);
}

.bar {
	max-width: var(--max);
	margin: 0 auto;
	height: 56px;
	padding: 0 var(--gutter) 0 8px;
	display: flex;
	align-items: center;
	gap: 4px;
}

.menu-btn {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
}

.js .menu-btn {
	display: inline-flex;
}

.menu-btn:hover {
	background: var(--accent-wash);
}

.burger {
	display: block;
	width: 18px;
	height: 9px;
	border-top: 1.6px solid currentColor;
	border-bottom: 1.6px solid currentColor;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 0 8px;
	color: var(--ink);
	text-decoration: none;
	font-weight: 650;
	font-size: 1.125rem;
	letter-spacing: -0.01em;
	min-height: 44px;
}

.brand img {
	border-radius: 7px;
}

.bar-try {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 14px;
	border-radius: 999px;
	background: var(--accent);
	color: var(--accent-ink);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	position: relative;
}

/* a 44px tap target around the 36px pill */
.bar-try::after {
	content: '';
	position: absolute;
	inset: -4px 0;
}

/* ---- menu sheet ---- */
.sheet {
	position: fixed;
	inset: 0;
	z-index: 40;
	background: rgb(6 12 26 / 0.36);
	opacity: 0;
}

.sheet.open {
	opacity: 1;
}

.sheet-panel {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: min(86vw, 360px);
	display: flex;
	flex-direction: column;
	padding: 8px 20px calc(24px + env(safe-area-inset-bottom));
	background: var(--sheet-bg);
	box-shadow: 0 0 60px rgb(6 12 26 / 0.25);
	overflow-y: auto;
	overscroll-behavior: contain;
	transform: translate3d(-100%, 0, 0);
}

.sheet.open .sheet-panel {
	transform: none;
}

.sheet-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 48px;
	margin-bottom: 8px;
}

.sheet-title {
	font-family: var(--font-display);
	font-size: 1.75rem;
	line-height: 1;
}

.sheet-close {
	min-height: 44px;
	padding: 0 12px;
	margin-right: -12px;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: var(--accent);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.sheet nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sheet nav li + li {
	border-top: 1px solid var(--line);
}

.sheet nav a {
	display: flex;
	align-items: center;
	min-height: 52px;
	color: var(--ink);
	font-size: 1.125rem;
	font-weight: 500;
	text-decoration: none;
}

.sheet nav a:hover,
.sheet nav a[aria-current='page'] {
	color: var(--accent);
}

.sheet-get {
	margin-top: auto;
	padding-top: 28px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}

.sheet-get .btn {
	width: 100%;
}

/* ---- main ---- */
main {
	display: block;
	max-width: var(--max);
	margin: 0 auto;
	padding: 28px var(--gutter) 64px;
}

.block {
	margin-top: 88px;
}

/* ---- hero ---- */
.hero {
	display: grid;
	gap: 40px;
	align-items: center;
}

.hero .lead {
	max-width: 34rem;
	margin-bottom: 26px;
}

.hero-shot {
	margin: 0;
	justify-self: center;
	width: min(100%, 240px);
}

.hero-shot img,
.shots img {
	display: block;
	width: 100%;
	border-radius: 30px;
	border: 1px solid var(--line);
	box-shadow: var(--shot-shadow);
	background: var(--surface);
}

@media (min-width: 900px) {
	main {
		padding-top: 64px;
	}
	.hero {
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
		gap: 56px;
	}
	.hero-shot {
		width: min(100%, 290px);
	}
}

/* ---- get block: App Store badge, Android note, trial ---- */
.get {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 14px;
}

.store {
	display: inline-block;
	border-radius: 8px;
	line-height: 0;
}

.store img {
	display: block;
}

.android-note {
	display: none;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid var(--line-strong);
	border-radius: var(--r-2);
	color: var(--ink-2);
	font-weight: 500;
}

.android .store {
	display: none;
}

.android .android-note {
	display: block;
}

.try,
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0 20px;
	border-radius: 12px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	color: var(--accent-ink);
	background: var(--accent);
	border: 1px solid var(--accent);
	box-shadow: 0 6px 18px rgb(10 86 184 / 0.22);
}

.get-s .try {
	min-height: 44px;
}

.try:hover,
.btn:hover {
	filter: brightness(1.08);
}

/* ---- proof strip ---- */
.proof {
	list-style: none;
	margin: 48px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: var(--card);
	border: 1px solid var(--card-line);
	border-radius: var(--r-3);
	box-shadow: var(--card-shadow);
	overflow: hidden;
}

.proof li {
	padding: 18px 16px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.proof li:nth-child(even) {
	border-left: 1px solid var(--line);
}

.proof li:nth-child(n + 3) {
	border-top: 1px solid var(--line);
}

.proof b {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 2.125rem;
	line-height: 1;
	letter-spacing: -0.01em;
	font-variant-numeric: lining-nums;
}

.proof span {
	color: var(--ink-2);
	font-size: 0.875rem;
	line-height: 1.35;
}

@media (min-width: 720px) {
	.proof {
		grid-template-columns: repeat(4, 1fr);
	}
	.proof li {
		padding: 22px 20px;
	}
	.proof li + li {
		border-left: 1px solid var(--line);
	}
	.proof li:nth-child(n + 3) {
		border-top: 0;
	}
}

/* ---- why cards ---- */
.cards {
	display: grid;
	gap: 12px;
}

.card {
	padding: 20px 20px 18px;
	background: var(--card);
	border: 1px solid var(--card-line);
	border-radius: var(--r-3);
	box-shadow: var(--card-shadow);
}

.card p {
	margin: 0;
	color: var(--ink-2);
	font-size: 1rem;
	line-height: 1.5;
}

@media (min-width: 640px) {
	.cards {
		grid-template-columns: 1fr 1fr;
		gap: 16px;
	}
}

@media (min-width: 1000px) {
	.cards {
		grid-template-columns: repeat(3, 1fr);
	}
	.card {
		padding: 24px;
	}
}

/* ---- comparison ---- */
.compare-wrap {
	background: var(--card);
	border: 1px solid var(--card-line);
	border-radius: var(--r-3);
	box-shadow: var(--card-shadow);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	max-width: 46rem;
}

.compare {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
	line-height: 1.35;
}

.compare th,
.compare td {
	padding: 12px 10px;
	text-align: left;
	vertical-align: top;
}

.compare thead th {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--ink-3);
	padding-top: 14px;
}

.compare thead th.us {
	color: var(--accent);
	font-size: 0.9375rem;
}

.compare tbody tr {
	border-top: 1px solid var(--line);
}

.compare tbody th {
	width: 31%;
	font-weight: 500;
	color: var(--ink-2);
}

.compare tbody td {
	color: var(--ink-3);
}

.compare .us {
	background: var(--accent-wash);
	width: 36%;
}

.compare tbody td.us {
	color: var(--ink);
	font-weight: 600;
}

@media (min-width: 720px) {
	.compare th,
	.compare td {
		padding: 14px 18px;
	}
}

/* ---- the computer test panel ---- */
.test-panel {
	padding: 32px 20px 26px;
	border-radius: 24px;
	background: var(--panel);
	color: #e6eefc;
	box-shadow: 0 24px 60px rgb(10 30 70 / 0.22);
	border: 1px solid rgb(255 255 255 / 0.06);
}

.test-panel h2,
.test-panel h3 {
	color: #fff;
}

.test-panel .eyebrow {
	color: #9cc8ff;
}

.test-panel a {
	color: #a9d0ff;
}

.test-lead {
	color: #c9d6ec;
	max-width: 36rem;
	font-size: 1.0625rem;
}

.test-stats {
	list-style: none;
	padding: 0;
	margin: 28px 0 32px;
	display: grid;
	gap: 0;
	border-top: 1px solid rgb(255 255 255 / 0.12);
}

.test-stats li {
	display: grid;
	grid-template-columns: 7.25rem minmax(0, 1fr);
	align-items: baseline;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid rgb(255 255 255 / 0.12);
}

.test-stats b {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 2.125rem;
	line-height: 1;
	color: #fff;
	white-space: nowrap;
}

.test-stats span {
	color: #c9d6ec;
	font-size: 0.9375rem;
	line-height: 1.4;
}

.ticks {
	list-style: none;
	padding: 0;
	margin: 12px 0 28px;
}

.ticks li {
	position: relative;
	padding: 7px 0 7px 28px;
	color: #e6eefc;
}

.ticks li::before {
	content: '';
	position: absolute;
	left: 3px;
	top: 0.78em;
	width: 11px;
	height: 6px;
	border-left: 2px solid #7fbcff;
	border-bottom: 2px solid #7fbcff;
	transform: rotate(-45deg);
}

.stat-note {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding: 18px 16px;
	margin: 0;
	border-radius: 14px;
	background: rgb(255 255 255 / 0.06);
	border: 1px solid rgb(255 255 255 / 0.08);
	color: #c9d6ec;
	font-size: 0.9375rem;
	line-height: 1.45;
}

.stat-note b {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 2.5rem;
	line-height: 0.9;
	color: #fff;
}

.test-panel .fine {
	color: #a8b6cf;
}

@media (min-width: 720px) {
	.test-panel {
		padding: 48px 44px 36px;
	}
	.test-stats {
		grid-template-columns: repeat(3, 1fr);
		gap: 24px;
		border-top: 0;
	}
	.test-stats li {
		grid-template-columns: 1fr;
		gap: 8px;
		border-top: 1px solid rgb(255 255 255 / 0.14);
		border-bottom: 0;
		padding: 16px 0 0;
	}
	.test-stats b {
		font-size: 2.75rem;
	}
	.ticks {
		columns: 2;
		column-gap: 32px;
	}
	.ticks li {
		break-inside: avoid;
	}
}

/* ---- screenshots ---- */
.shots {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: min(64%, 230px);
	gap: 18px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
	padding: 4px 4px 32px;
	margin: 0 -4px;
	scrollbar-width: thin;
	scrollbar-color: var(--line-strong) transparent;
}

.shots figure {
	margin: 0;
	scroll-snap-align: start;
}

.shots figcaption {
	margin-top: 16px;
	color: var(--ink-2);
	font-size: 0.9375rem;
	line-height: 1.4;
}

@media (min-width: 900px) {
	.shots {
		grid-auto-flow: row;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		grid-auto-columns: auto;
		gap: 28px;
		overflow: visible;
		padding: 4px 0 0;
		margin: 0;
	}
}

/* ---- try band ---- */
.try-band {
	padding: 32px 20px;
	border-radius: 24px;
	background: var(--card);
	border: 1px solid var(--card-line);
	box-shadow: var(--card-shadow);
}

.try-band p {
	max-width: 34rem;
	color: var(--ink-2);
	margin-bottom: 24px;
}

@media (min-width: 720px) {
	.try-band {
		padding: 44px;
	}
}

/* ---- link lists ---- */
.guides {
	list-style: none;
	padding: 0;
	margin: 0;
	background: var(--card);
	border: 1px solid var(--card-line);
	border-radius: var(--r-3);
	box-shadow: var(--card-shadow);
	max-width: var(--measure);
}

.guides li + li {
	border-top: 1px solid var(--line);
}

.guides a {
	display: block;
	padding: 15px 18px;
	text-decoration: none;
}

.guides a:hover strong {
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.guides strong {
	display: block;
	font-weight: 600;
}

.guides span {
	display: block;
	color: var(--ink-3);
	font-size: 0.9375rem;
}

/* ---- reading pages ---- */
.prose {
	max-width: var(--measure);
}

.prose.wide {
	max-width: 48rem;
}

.prose h1 {
	font-size: clamp(2.25rem, 1.6rem + 2.8vw, 3.5rem);
}

.prose h2 {
	margin-top: 48px;
	margin-bottom: 14px;
	font-size: clamp(1.625rem, 1.35rem + 1.2vw, 2.125rem);
}

.prose h3 {
	margin-top: 28px;
}

.prose ul,
.prose ol {
	padding-left: 1.3em;
}

.prose li {
	margin-bottom: 6px;
}

.toc {
	margin: 28px 0 8px;
	padding: 14px 18px;
	background: var(--card);
	border: 1px solid var(--card-line);
	border-radius: var(--r-3);
	box-shadow: var(--card-shadow);
}

.prose .toc ul {
	list-style: none;
	padding: 0;
	margin: 0;
	columns: 1;
}

.toc li {
	margin: 0;
	break-inside: avoid;
}

.toc a {
	display: block;
	padding: 6px 0;
	text-decoration: none;
	font-size: 0.9375rem;
}

.toc a:hover {
	text-decoration: underline;
}

@media (min-width: 640px) {
	.prose .toc ul {
		columns: 2;
		column-gap: 32px;
	}
}

/* signs */
.family {
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid var(--line);
}

.family h2 {
	margin-top: 0;
}

.family .rule {
	font-size: 1.1875rem;
	line-height: 1.45;
	font-weight: 550;
	color: var(--ink);
}

.prose .examples {
	list-style: none;
	padding: 0;
	margin: 24px 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
	gap: 12px;
}

.examples li {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 0.875rem;
	line-height: 1.35;
	color: var(--ink-2);
}

/* Signs keep their own colours: a white tile in both themes, as in the app. */
.examples img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: contain;
	padding: 14px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 14px;
}

.sources {
	font-size: 0.875rem;
	color: var(--ink-3);
	margin: 0 0 14px;
}

.fine + .sources {
	margin-top: 14px;
}

.sources p {
	margin: 0 0 4px;
	font-weight: 600;
	color: var(--ink-2);
}

.prose .sources ul {
	margin: 0;
	padding-left: 1.1em;
}

.sources li {
	margin-bottom: 2px;
}

.practise {
	font-size: 0.9375rem;
	color: var(--ink-2);
}

/* FAQ */
.qa {
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

.qa h3 {
	margin-top: 0;
}

.qa p {
	color: var(--ink-2);
}

.qa p.src {
	font-size: 0.875rem;
	color: var(--ink-3);
}

.src span {
	font-weight: 600;
	color: var(--ink-2);
}

/* closing call to action on guide pages */
.cta {
	margin-top: 56px;
	padding: 26px 22px;
	background: var(--card);
	border: 1px solid var(--card-line);
	border-radius: var(--r-3);
	box-shadow: var(--card-shadow);
}

.prose .cta h2 {
	margin-top: 0;
	font-size: 1.875rem;
}

.cta p {
	color: var(--ink-2);
}

/* ---- legal pages ---- */
.note {
	background: var(--card);
	border: 1px solid var(--card-line);
	border-radius: 14px;
	padding: 14px 16px;
	color: var(--ink-2);
	font-size: 0.9375rem;
}

.note p:last-child {
	margin-bottom: 0;
}

dl.ecta {
	background: var(--card);
	border: 1px solid var(--card-line);
	border-radius: 14px;
	padding: 4px 16px;
}

dl.ecta dt {
	font-weight: 600;
	padding-top: 12px;
}

dl.ecta dt span {
	color: var(--ink-3);
	font-weight: 400;
	font-variant-numeric: tabular-nums;
}

dl.ecta dd {
	margin: 2px 0 0;
	padding-bottom: 12px;
	color: var(--ink-2);
}

dl.ecta dd + dt {
	border-top: 1px solid var(--line);
}

/* ---- footer ---- */
footer.site {
	border-top: 1px solid var(--line);
	background: var(--surface);
}

.foot {
	max-width: var(--max);
	margin: 0 auto;
	padding: 32px var(--gutter) calc(40px + env(safe-area-inset-bottom));
	font-size: 0.9375rem;
	color: var(--ink-3);
}

.disclaimer {
	max-width: var(--measure);
	color: var(--ink-2);
}

footer.site nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0 4px;
	margin: 12px 0 8px -8px;
}

footer.site nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 8px;
	color: var(--ink-2);
}

.copy {
	margin: 0;
}

/* ---- road scene (home): a slim strip down the right edge, beside the content, never over it ----
   Top-down. Lane lines, roadside posts and signs scroll at road speed, tree tops (closer to the eye)
   a little faster. K67 holds still in the right lane; two slower cars in the left lane fall behind.
   Movement: CSS scroll-driven animations where supported; elsewhere k67.js sets --p (0 to 1) on
   .road once per frame and the transforms below read it. Transforms only. */
.road {
	--p: 0;
	position: fixed;
	top: 0;
	bottom: 0;
	right: 0;
	width: var(--road-w);
	z-index: 5;
	overflow: hidden;
	pointer-events: none;
	contain: strict;
	background: linear-gradient(90deg, var(--verge) 0 8px, var(--asphalt) 8px 48px, var(--verge) 48px);
	-webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
	mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
}

/* the solid edge lines do not move */
.road::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 9px;
	right: 9px;
	border-left: 1px solid var(--road-line);
	border-right: 1px solid var(--road-line);
	opacity: 0.8;
}

.road .defs {
	position: absolute;
}

.r-lines,
.r-side,
.r-trees {
	position: absolute;
	left: 0;
	width: 100%;
	top: calc(-1 * var(--t));
	height: calc(100% + var(--t));
	will-change: transform;
	/* fallback: --D px of travel over the page, wrapped every tile (--t) */
	transform: translate3d(0, mod(calc(var(--p) * var(--D)), var(--t)), 0);
}

.r-lines {
	--t: 40px;
	--D: 4000px;
	left: 27px;
	width: 2px;
	background: repeating-linear-gradient(to bottom, var(--road-line) 0 14px, transparent 14px 40px);
}

.r-side {
	--t: 500px;
	--D: 4000px;
	background: url('/img/road-side.svg') 0 0 / 56px 500px repeat-y;
}

.r-trees {
	--t: 625px;
	--D: 5000px;
	background: url('/img/road-trees.svg') 0 0 / 56px 625px repeat-y;
	opacity: 0.9;
}

.car {
	position: absolute;
	top: 0;
	width: 13px;
	height: 26px;
	filter: drop-shadow(0 2px 2px rgb(12 22 38 / 0.22));
	will-change: transform;
}

.car.k67 {
	left: 31.5px;
	top: 58%;
	color: var(--accent);
	will-change: auto;
}

/* left lane, slower: c1 starts just ahead and drops back; c2 comes into view mid-page */
.car.c1 {
	left: 11.5px;
	color: var(--car-1);
	transform: translate3d(0, calc(34vh + clamp(0, var(--p) / 0.25, 1) * 72vh), 0);
}

.car.c2 {
	left: 11.5px;
	color: var(--car-2);
	transform: translate3d(0, calc(-40px + clamp(0, (var(--p) - 0.42) / 0.4, 1) * (106vh + 40px)), 0);
}

@supports (animation-timeline: scroll()) {
	@media (prefers-reduced-motion: no-preference) {
		.r-lines,
		.r-side,
		.r-trees,
		.car.c1,
		.car.c2 {
			animation-name: k67-loop;
			animation-timing-function: linear;
			animation-fill-mode: both;
			animation-duration: auto;
			animation-timeline: scroll(root block);
		}
		/* iterations = travel / tile: 4000 / 40, 4000 / 500, 5000 / 625 */
		.r-lines {
			animation-iteration-count: 100;
		}
		.r-side,
		.r-trees {
			animation-iteration-count: 8;
		}
		.car.c1 {
			animation-name: k67-c1;
		}
		.car.c2 {
			animation-name: k67-c2;
		}
	}
}

@keyframes k67-loop {
	from {
		transform: translate3d(0, 0, 0);
	}
	to {
		transform: translate3d(0, var(--t), 0);
	}
}

@keyframes k67-c1 {
	0% {
		transform: translate3d(0, 34vh, 0);
	}
	25%,
	100% {
		transform: translate3d(0, 106vh, 0);
	}
}

@keyframes k67-c2 {
	0%,
	42% {
		transform: translate3d(0, -40px, 0);
	}
	82%,
	100% {
		transform: translate3d(0, 106vh, 0);
	}
}

/* phones and tablets: the content keeps clear of the strip */
.has-road main,
.has-road .foot {
	padding-right: calc(var(--road-w) + 14px);
}

/* wide screens: the strip sits in the empty margin, so the content keeps its full width */
@media (min-width: 1280px) {
	.road {
		right: 28px;
	}
	.has-road main,
	.has-road .foot {
		padding-right: var(--gutter);
	}
}

/* ---- small phones (320 to 419px): a slimmer road strip and room for every block ---- */
@media (max-width: 419px) {
	:root {
		--road-w: 40px;
	}
	.has-road main,
	.has-road .foot {
		padding-right: calc(var(--road-w) + 8px);
	}
	/* the 56px artwork, scaled into the 40px strip */
	.road {
		background: linear-gradient(90deg, var(--verge) 0 6px, var(--asphalt) 6px 34px, var(--verge) 34px);
	}
	.road::before {
		left: 6px;
		right: 6px;
	}
	/* everything at 40/56 scale; tiles and travel shrink together, so the loop counts still hold */
	.r-lines {
		--t: 28.5714px;
		--D: 2857.14px;
		left: 19px;
		background: repeating-linear-gradient(to bottom, var(--road-line) 0 10px, transparent 10px 28.5714px);
	}
	.r-side {
		--t: 357.1429px;
		--D: 2857.14px;
		background-size: 40px 357.1429px;
	}
	.r-trees {
		--t: 446.4286px;
		--D: 3571.43px;
		background-size: 40px 446.4286px;
	}
	.car {
		width: 10px;
		height: 20px;
	}
	.car.k67 {
		left: 22px;
	}
	.car.c1,
	.car.c2 {
		left: 8px;
	}
	.compare th,
	.compare td {
		padding: 10px 7px;
		font-size: 0.875rem;
	}
	.test-panel {
		padding: 28px 16px 22px;
	}
	.try-band {
		padding: 28px 16px;
	}
}

@media (max-width: 359px) {
	.try,
	.btn {
		white-space: normal;
		text-align: center;
	}
	.test-stats li {
		grid-template-columns: 1fr;
		gap: 6px;
	}
}

/* ---- motion ---- */
@media (prefers-reduced-motion: no-preference) {
	body::before {
		animation: k67-drift 40s ease-in-out infinite alternate;
		will-change: transform;
	}
	.sheet {
		transition: opacity 220ms var(--ease);
	}
	.sheet-panel {
		transition: transform 300ms var(--ease);
	}
	.try,
	.btn,
	.bar-try,
	.menu-btn,
	.guides a {
		transition: background-color 120ms var(--ease), filter 120ms var(--ease), color 120ms var(--ease);
	}
}

@keyframes k67-drift {
	from {
		transform: translate3d(-2vmax, -1vmax, 0) scale(1);
	}
	to {
		transform: translate3d(2vmax, 2vmax, 0) scale(1.06);
	}
}

@media print {
	header.site,
	.sheet,
	.road,
	.get,
	.skip,
	body::before {
		display: none;
	}
	.has-road main {
		padding-right: 0;
	}
}
