/* Warehouse Gamification by Motivacraft. One sheet for every page.
   Same design language as drivingsalesexcellence.com: paper ground, ink, Motivacraft red. */

@font-face {
	font-family: "Bricolage";
	src: url("/assets/fonts/bricolage-v2.woff2") format("woff2");
	font-weight: 600 700;
	font-display: swap;
}
@font-face {
	font-family: "Inter";
	src: url("/assets/fonts/inter-v2.woff2") format("woff2");
	font-weight: 400 700;
	font-display: swap;
}

:root {
	--paper: #f2f3f5;
	--surface: #ffffff;
	--ink: #14161b;
	--steel: #555c6a;
	--rule: #d8dbe1;
	--track: #e4e6eb;
	--red: #f9423a;
	--red-ink: #d42a22; /* the red where it is text on a light ground: 4.6:1 on white */
	--night: #14161b;
	--night-soft: #23262e;
	--night-text: #b6bbc6;

	--display: "Bricolage", "Inter", system-ui, sans-serif;
	--body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 40px);
	--radius: 14px;
	--radius-small: 8px;
	--section: clamp(72px, 10vw, 128px);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 88px;
}
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 17px/1.6 var(--body);
	font-feature-settings: "cv11", "ss01";
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img {
	max-width: 100%;
	height: auto;
	display: block;
}
a {
	color: inherit;
}
h1,
h2,
h3 {
	font-family: var(--display);
	font-weight: 650;
	line-height: 1.04;
	letter-spacing: -0.02em;
	margin: 0;
	font-variation-settings: "opsz" 96;
	text-wrap: balance;
}
h1 {
	font-size: clamp(44px, 6.6vw, 92px);
	letter-spacing: -0.028em;
	line-height: 0.96;
}
h2 {
	font-size: clamp(32px, 4vw, 52px);
}
h3 {
	font-size: 22px;
	line-height: 1.2;
	letter-spacing: -0.01em;
	font-variation-settings: "opsz" 32;
}
p {
	margin: 0;
}
:focus-visible {
	outline: 2px solid var(--red);
	outline-offset: 3px;
	border-radius: 4px;
}
.skip {
	position: absolute;
	left: 16px;
	top: -60px;
	z-index: 50;
	padding: 10px 16px;
	background: var(--ink);
	color: #fff;
	border-radius: var(--radius-small);
}
.skip:focus {
	top: 12px;
}
.wrap {
	width: min(100% - 2 * var(--gutter), var(--wrap));
	margin-inline: auto;
}
.lede {
	font-size: clamp(18px, 1.6vw, 21px);
	line-height: 1.55;
	color: var(--steel);
	max-width: 36em;
}
.icon {
	width: 24px;
	height: 24px;
	flex: none;
}

/* ------------------------------------------------------------ buttons and links */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 52px;
	padding: 0 26px;
	border: 1.5px solid var(--ink);
	border-radius: 999px;
	background: var(--ink);
	color: #fff;
	font: 600 16px/1 var(--body);
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
/* the darker red: white on it keeps 4.6:1 (on #F9423A it would be 3.6:1) */
.button:hover {
	background: var(--red-ink);
	border-color: var(--red-ink);
	color: #fff;
}
.button-outline {
	background: transparent;
	color: var(--ink);
}
.button-small {
	min-height: 42px;
	padding: 0 20px;
	font-size: 15px;
}
.button[disabled] {
	opacity: 0.6;
	cursor: progress;
}
.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.text-link {
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 5px;
	text-decoration-color: var(--red);
}
.text-link:hover {
	color: var(--red-ink);
}
.link-button {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	color: inherit;
	cursor: pointer;
}

/* ------------------------------------------------------------ header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgb(242 243 245 / 0.92);
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--rule);
}
.header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 72px;
}
.brand img {
	width: 151px;
	height: auto;
}
.nav {
	display: flex;
	align-items: center;
	gap: clamp(14px, 2.4vw, 32px);
}
.nav a {
	white-space: nowrap;
}
.nav a:not(.button) {
	font-size: 15px;
	font-weight: 550;
	text-decoration: none;
	padding: 6px 0;
	border-bottom: 1.5px solid transparent;
}
.nav a:not(.button):hover,
.nav a[aria-current="page"] {
	border-bottom-color: var(--red);
}

/* ------------------------------------------------------------ hero */
.hero {
	padding-block: clamp(48px, 8vw, 104px) clamp(48px, 6vw, 80px);
}
.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: clamp(40px, 6vw, 88px);
	align-items: center;
}
.hero-copy {
	display: grid;
	gap: 28px;
}
.hero h1 {
	max-width: 9.5em;
}

/* The signature piece: a leaderboard as it looks in the product. */
.board {
	margin: 0;
	background: var(--surface);
	border: 1px solid var(--rule);
	border-radius: 20px;
	padding: 22px 22px 18px;
	box-shadow: 0 30px 60px -32px rgb(20 22 27 / 0.28);
	font-variant-numeric: tabular-nums;
}
.board-head,
.board-foot {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	font-size: 14px;
	color: var(--steel);
}
.board-title {
	font-family: var(--display);
	font-size: 20px;
	font-weight: 650;
	color: var(--ink);
	letter-spacing: -0.01em;
}
.board-rows {
	list-style: none;
	margin: 16px 0;
	padding: 0;
	display: grid;
	gap: 4px;
}
.board-row {
	display: grid;
	grid-template-columns: 22px 40px minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	padding: 10px 10px;
	border-radius: 12px;
}
.board-row.is-leader {
	background: #fff1f0;
}
.board-rank {
	font-family: var(--display);
	font-weight: 700;
	font-size: 18px;
	text-align: center;
	color: var(--steel);
}
.is-leader .board-rank {
	color: var(--red-ink);
}
.board-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--track);
	font-size: 13px;
	font-weight: 650;
	color: var(--ink);
}
.is-leader .board-avatar {
	background: var(--red-ink);
	color: #fff;
}
.board-name {
	display: grid;
	gap: 7px;
	font-size: 15px;
	font-weight: 600;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.board-bar {
	display: block;
	height: 6px;
	border-radius: 3px;
	background: var(--track);
	overflow: hidden;
}
.board-bar > span {
	display: block;
	height: 100%;
	width: var(--p);
	border-radius: inherit;
	background: var(--ink);
	transform-origin: left center;
}
.is-leader .board-bar > span {
	background: var(--red);
}
.board-score {
	font-size: 14px;
	color: var(--steel);
	text-align: right;
}
.board-score b {
	font-family: var(--display);
	font-size: 18px;
	font-weight: 650;
	color: var(--ink);
}
.board-foot {
	padding: 14px 10px 0;
	border-top: 1px solid var(--rule);
	align-items: center;
}
.board-team {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
	justify-content: flex-end;
}
.board-team .board-bar {
	width: min(200px, 60%);
}
.board-team b {
	font-family: var(--display);
	font-size: 18px;
	color: var(--ink);
}

/* The one moment of movement: the bars fill once when the page opens. */
@media (prefers-reduced-motion: no-preference) {
	.board-bar > span {
		animation: fill 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
	}
	.board-row:nth-child(2) .board-bar > span { animation-delay: 0.08s; }
	.board-row:nth-child(3) .board-bar > span { animation-delay: 0.16s; }
	.board-row:nth-child(4) .board-bar > span { animation-delay: 0.24s; }
	.board-row:nth-child(5) .board-bar > span { animation-delay: 0.32s; }
	.board-foot .board-bar > span { animation-delay: 0.45s; }
}
@keyframes fill {
	from {
		transform: scaleX(0);
	}
}

.logos {
	display: flex;
	align-items: center;
	gap: 24px clamp(24px, 4vw, 48px);
	padding-block: clamp(56px, 8vw, 96px) 0;
}
.logos p {
	font-size: 15px;
	color: var(--steel);
	flex: none;
}
.logos ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px clamp(20px, 3vw, 48px);
	flex: 1;
	justify-content: space-between;
}
.logos img {
	object-fit: contain;
	max-width: 100%;
	height: clamp(18px, 1.9vw, 26px);
	width: auto;
	opacity: 0.72;
}
.logos li:nth-child(4) img,
.logos li:nth-child(5) img {
	height: clamp(24px, 2.4vw, 34px);
}

/* ------------------------------------------------------------ sections */
.section {
	padding-block: var(--section);
}
.section-tight {
	padding-top: 32px;
}
.section-head {
	display: grid;
	gap: 16px;
	margin-bottom: clamp(32px, 5vw, 56px);
	max-width: 46em;
}
.section-head p {
	color: var(--steel);
	font-size: 18px;
}
.section-head-row {
	max-width: none;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px 40px;
	flex-wrap: wrap;
}
.section-head-row > div {
	display: grid;
	gap: 16px;
	max-width: 46em;
}

/* the solution, with its two results as filled bars */
.solution {
	background: var(--surface);
	border-block: 1px solid var(--rule);
}
.solution-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
	gap: clamp(48px, 8vw, 120px);
	align-items: center;
}
.solution-copy {
	display: grid;
	gap: 22px;
	justify-items: start;
}
.solution-copy h2 {
	margin-bottom: 6px;
}
.solution-copy p {
	color: var(--steel);
	max-width: 38em;
}
.stats {
	margin: 0;
	display: grid;
	gap: 40px;
}
.stat {
	display: grid;
	gap: 6px;
}
.stat dd {
	order: -1;
	margin: 0;
	font-family: var(--display);
	font-size: clamp(88px, 11vw, 148px);
	font-weight: 700;
	line-height: 0.85;
	letter-spacing: -0.05em;
	font-variant-numeric: tabular-nums;
}
.stat dt {
	font-size: 18px;
	font-weight: 600;
	padding-top: 14px;
	background: linear-gradient(var(--red), var(--red)) left top / var(--p) 4px no-repeat, linear-gradient(var(--track), var(--track)) left top / 100% 4px no-repeat;
}

/* product screens */
.tab-list {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 4px;
	margin-bottom: 20px;
	background: var(--surface);
	border: 1px solid var(--rule);
	border-radius: 999px;
}
.tab-list button {
	border: 0;
	background: none;
	font: 600 15px/1 var(--body);
	color: var(--steel);
	padding: 12px 20px;
	border-radius: 999px;
	cursor: pointer;
}
.tab-list button:hover {
	color: var(--ink);
}
.tab-list button[aria-selected="true"] {
	background: var(--ink);
	color: #fff;
}
.tab-panel img {
	width: 100%;
	border-radius: var(--radius);
	border: 1px solid var(--rule);
	background: var(--track);
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

/* features: a quiet list, each under a rule */
.features {
	padding-top: 0;
}
.feature-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 48px 32px;
}
.feature-list li {
	display: grid;
	align-content: start;
	gap: 12px;
	padding-top: 24px;
	border-top: 1px solid var(--rule);
}
.feature-list .icon {
	color: var(--red-ink);
	margin-bottom: 8px;
}
.feature-list h3 {
	font-size: 20px;
}
.feature-list p {
	color: var(--steel);
	font-size: 16px;
}

/* videos */
.videos {
	background: var(--surface);
	border-block: 1px solid var(--rule);
}
.video-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}
.video {
	display: grid;
	gap: 6px;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	text-align: left;
	font: inherit;
	color: inherit;
	cursor: pointer;
}
.video-thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--radius-small);
	background: var(--track);
	margin-bottom: 10px;
}
.video-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.video-play {
	position: absolute;
	left: 12px;
	bottom: 12px;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: #fff;
	color: var(--ink);
	transition: background-color 0.15s, color 0.15s;
}
.video:hover .video-play {
	background: var(--red-ink);
	color: #fff;
}
.video-play .icon {
	width: 18px;
	height: 18px;
	margin-left: 2px;
}
.video-kind {
	font-size: 14px;
	color: var(--steel);
}
.video-title {
	font-family: var(--display);
	font-size: 19px;
	font-weight: 650;
	line-height: 1.25;
	letter-spacing: -0.01em;
}
.video:hover .video-title {
	text-decoration: underline;
	text-decoration-color: var(--red);
	text-underline-offset: 4px;
}
.video-dialog {
	width: min(1100px, 100% - 32px);
	padding: 0;
	border: 0;
	border-radius: var(--radius);
	background: #000;
	overflow: visible;
}
.video-dialog::backdrop {
	background: rgb(10 11 14 / 0.82);
}
.video-frame {
	aspect-ratio: 16 / 9;
}
.video-frame iframe {
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: var(--radius);
	display: block;
}
.video-close {
	position: absolute;
	top: -52px;
	right: 0;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--ink);
	cursor: pointer;
}

/* case studies */
.tags {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.tags li,
.tags a {
	font-size: 13px;
	font-weight: 550;
	color: var(--steel);
	text-decoration: none;
}
.tags li {
	padding: 5px 11px;
	border: 1px solid var(--rule);
	border-radius: 999px;
	background: var(--surface);
}
.tags a:hover {
	color: var(--ink);
}
.results {
	margin: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	padding-top: 18px;
	border-top: 1px solid var(--rule);
}
.results div {
	display: grid;
	align-content: start;
	gap: 4px;
}
.results dd {
	order: -1;
	margin: 0;
	font-family: var(--display);
	font-size: clamp(34px, 3.4vw, 46px);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.035em;
	font-variant-numeric: tabular-nums;
}
.results div:first-child dd {
	color: var(--red-ink);
}
.results dt {
	font-size: 14px;
	line-height: 1.35;
	color: var(--steel);
	hyphens: auto;
	overflow-wrap: break-word;
}
.results-small dd {
	font-size: 28px;
}
.results-small dt {
	font-size: 13px;
}

.case-feature-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(32px, 4vw, 56px);
}
.case-feature {
	display: grid;
	align-content: start;
	gap: 18px;
}
.case-feature-image img,
.case-card-image img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: var(--radius);
	background: var(--track);
}
.case-feature h3 {
	font-size: clamp(24px, 2.4vw, 30px);
	line-height: 1.12;
}
.case-feature h3 a,
.case-card h2 a,
.case-card h3 a {
	text-decoration: none;
}
.case-feature h3 a:hover,
.case-card h2 a:hover,
.case-card h3 a:hover {
	text-decoration: underline;
	text-decoration-color: var(--red);
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
}
.summary {
	margin: 0;
	display: grid;
	gap: 10px;
}
.summary div {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr);
	gap: 12px;
	font-size: 16px;
}
.summary dt {
	font-weight: 650;
}
.summary dd {
	margin: 0;
	color: var(--steel);
}

.case-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 56px 32px;
}
.case-card {
	display: grid;
	align-content: start;
	gap: 16px;
}
.case-card[hidden] {
	display: none;
}
.case-card h2,
.case-card h3 {
	font-size: 22px;
	line-height: 1.18;
	letter-spacing: -0.015em;
	font-variation-settings: "opsz" 32;
}
.filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}
.filters button {
	font: 550 14px/1 var(--body);
	padding: 10px 16px;
	border: 1px solid var(--rule);
	border-radius: 999px;
	background: var(--surface);
	color: var(--ink);
	cursor: pointer;
}
.filters button:hover {
	border-color: var(--ink);
}
.filters button[aria-pressed="true"] {
	background: var(--ink);
	border-color: var(--ink);
	color: #fff;
}
.filter-count {
	font-size: 14px;
	color: var(--steel);
	margin-bottom: 36px;
	min-height: 1.6em;
}

/* page heads, breadcrumbs, articles */
.page-head {
	padding-block: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 48px);
}
.page-head .wrap {
	display: grid;
	gap: 22px;
	justify-items: start;
}
.page-head h1 {
	font-size: clamp(40px, 5.6vw, 76px);
	max-width: 15em;
}
.case-head h1 {
	font-size: clamp(36px, 4.6vw, 64px);
	line-height: 1.02;
	max-width: 17em;
}
.crumbs ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 14px;
	color: var(--steel);
}
.crumbs li + li::before {
	content: "/";
	margin-right: 6px;
	color: var(--rule);
}
.crumbs a {
	text-decoration: none;
}
.crumbs a:hover {
	color: var(--ink);
	text-decoration: underline;
}
.crumbs [aria-current] {
	max-width: 32ch;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.case-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	grid-template-areas: "prose aside";
	gap: clamp(40px, 7vw, 104px);
	align-items: start;
	padding-bottom: var(--section);
}
.case-aside {
	grid-area: aside;
	position: sticky;
	top: 104px;
	display: grid;
	gap: 22px;
	padding: 26px;
	background: var(--surface);
	border: 1px solid var(--rule);
	border-radius: var(--radius);
}
.aside-title {
	font-size: 22px;
}
.case-aside .results {
	grid-template-columns: 1fr;
	gap: 18px;
}
.case-aside .results dd {
	font-size: 48px;
}
.prose {
	grid-area: prose;
	max-width: 42em;
}
.prose > * + * {
	margin-top: 1.1em;
}
.prose h2 {
	font-size: clamp(28px, 3vw, 38px);
	margin-top: 1.6em;
}
.prose h2:first-child {
	margin-top: 0;
}
.prose p,
.prose li {
	color: #2e323b;
}
.prose ul,
.prose ol {
	padding-left: 1.3em;
	display: grid;
	gap: 0.55em;
}
.prose li::marker {
	color: var(--red-ink);
	font-weight: 650;
}
.prose strong {
	font-weight: 650;
	color: var(--ink);
}
.prose a {
	text-decoration-color: var(--red);
	text-underline-offset: 3px;
}
.prose a:hover {
	color: var(--red-ink);
}
.case-images {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin-block: 2em;
}
.case-images img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: var(--radius-small);
}
.prose-policy {
	padding-bottom: var(--section);
	max-width: 46em;
}
.prose-policy h2 {
	font-size: clamp(22px, 2.2vw, 28px);
	margin-top: 1.8em;
}
.more-cases {
	background: var(--surface);
	border-top: 1px solid var(--rule);
}
.not-found {
	padding-block: clamp(80px, 14vw, 180px);
}


/* questions and answers */
.faq {
	background: var(--surface);
	border-top: 1px solid var(--rule);
}
.faq-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: clamp(32px, 6vw, 96px);
	align-items: start;
}
.faq-grid .section-head {
	position: sticky;
	top: 104px;
	margin-bottom: 0;
}
.faq-list {
	border-top: 1px solid var(--rule);
}
.faq-list details {
	border-bottom: 1px solid var(--rule);
}
.faq-list summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	padding: 22px 0;
	font-family: var(--display);
	font-size: clamp(19px, 1.7vw, 22px);
	font-weight: 650;
	letter-spacing: -0.01em;
	font-variation-settings: "opsz" 32;
	line-height: 1.25;
	cursor: pointer;
	list-style: none;
}
.faq-list summary::-webkit-details-marker {
	display: none;
}
.faq-list summary::after {
	content: "";
	flex: none;
	width: 14px;
	height: 14px;
	background: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
	transition: transform 0.2s;
}
.faq-list details[open] summary::after {
	transform: rotate(45deg);
	color: var(--red-ink);
}
.faq-list summary:hover {
	color: var(--red-ink);
}
.faq-list details p {
	padding: 0 40px 24px 0;
	color: var(--steel);
	max-width: 40em;
}

/* a form being sent: the button shows a spinner */
.button.is-sending::before {
	content: "";
	width: 16px;
	height: 16px;
	border: 2px solid rgb(255 255 255 / 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}
@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}
.cf-turnstile:empty {
	background: linear-gradient(90deg, var(--track), #eef0f3, var(--track)) 0 0 / 200% 100%;
	border-radius: var(--radius-small);
	max-width: 300px;
	animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer {
	to {
		background-position: -200% 0;
	}
}
/* the video window shows a spinner until the player has drawn itself over it */
.video-frame {
	position: relative;
	background: #000;
	border-radius: var(--radius);
}
.video-frame::before {
	content: "";
	position: absolute;
	left: calc(50% - 18px);
	top: calc(50% - 18px);
	width: 36px;
	height: 36px;
	border: 3px solid rgb(255 255 255 / 0.25);
	border-top-color: #fff;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}
.video-frame iframe {
	position: relative;
	z-index: 1;
}

/* ------------------------------------------------------------ contact */
.contact {
	background: var(--night);
	color: #fff;
	padding-block: var(--section);
}
.contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(40px, 7vw, 104px);
	align-items: start;
}
.contact-intro {
	display: grid;
	gap: 24px;
}
.contact-intro p {
	color: var(--night-text);
	font-size: 18px;
	max-width: 30em;
}
.contact-details {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
	display: grid;
	gap: 0;
	border-top: 1px solid #343842;
}
.contact-details li {
	display: grid;
	grid-template-columns: 80px minmax(0, 1fr);
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid #343842;
	font-size: 16px;
}
.contact-details span {
	color: var(--night-text);
}
.contact-details a {
	text-decoration: none;
}
.contact-details a:hover {
	text-decoration: underline;
	text-decoration-color: var(--red);
	text-underline-offset: 4px;
}
.contact-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 16px;
	padding: clamp(22px, 3vw, 36px);
	background: var(--surface);
	color: var(--ink);
	border-radius: 20px;
}
.field {
	display: grid;
	gap: 7px;
}
.field-wide {
	grid-column: 1 / -1;
}
.field label {
	font-size: 14px;
	font-weight: 600;
}
.field label span {
	color: var(--red-ink);
}
.field input,
.field textarea {
	width: 100%;
	font: 400 16px/1.4 var(--body);
	color: var(--ink);
	padding: 13px 14px;
	border: 1px solid #c4c8d0;
	border-radius: var(--radius-small);
	background: #fbfbfc;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea {
	resize: vertical;
	min-height: 132px;
}
.field input:hover,
.field textarea:hover {
	border-color: var(--steel);
}
.field input:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--ink);
	box-shadow: 0 0 0 3px rgb(249 66 58 / 0.25);
	background: #fff;
}
.field input[aria-invalid="true"] {
	border-color: var(--red-ink);
}
.field-trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.form-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}
.form-foot .cf-turnstile {
	flex: 1 1 300px;
	min-height: 65px;
}
.form-status {
	flex-basis: 100%;
	font-size: 15px;
	font-weight: 550;
}
.form-status:empty {
	display: none;
}
.form-status.is-error {
	color: var(--red-ink);
}
.form-status.is-success {
	color: #1d7a46;
}
.form-note {
	font-size: 13px;
	color: var(--steel);
}

/* ------------------------------------------------------------ footer */
.site-footer {
	background: var(--night);
	color: var(--night-text);
	font-size: 15px;
	border-top: 1px solid #2b2e36;
}
.footer-grid {
	display: grid;
	grid-template-columns: 1.3fr 0.8fr 0.8fr 1.3fr;
	gap: 40px;
	padding-block: 64px 48px;
}
.footer-brand {
	display: grid;
	gap: 18px;
	align-content: start;
}
.footer-brand img {
	width: 173px;
	height: auto;
}
.footer-title {
	font-family: var(--body);
	font-size: 15px;
	font-weight: 650;
	letter-spacing: 0;
	color: #fff;
	margin-bottom: 16px;
}
.footer-links,
.social,
.footer-bottom ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.footer-links {
	display: grid;
	gap: 10px;
}
.site-footer a,
.site-footer .link-button {
	text-decoration: none;
	transition: color 0.15s;
}
.site-footer a:hover,
.site-footer .link-button:hover {
	color: #fff;
	text-decoration: underline;
	text-decoration-color: var(--red);
	text-underline-offset: 4px;
}
.footer-contact a {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
}
.footer-contact .icon {
	width: 18px;
	height: 18px;
	margin-top: 3px;
}
.social {
	display: flex;
	gap: 8px;
}
.social a {
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border: 1px solid #3a3e48;
	border-radius: 50%;
	color: #fff;
}
.social a:hover {
	background: var(--red-ink);
	border-color: var(--red-ink);
	text-decoration: none;
}
.social .icon {
	width: 18px;
	height: 18px;
}
.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 32px;
	padding-block: 24px 32px;
	border-top: 1px solid #2b2e36;
	font-size: 14px;
}
.footer-bottom ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
}

/* ------------------------------------------------------------ cookie notice */
.cookie-notice {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 40;
	width: min(400px, calc(100% - 32px));
	display: grid;
	gap: 14px;
	padding: 18px;
	background: var(--surface);
	color: var(--ink);
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	box-shadow: 0 20px 50px -20px rgb(20 22 27 / 0.35);
	font-size: 14px;
	line-height: 1.5;
}
.cookie-notice[hidden],
.cookie-kinds[hidden] {
	display: none;
}
.cookie-notice a {
	text-decoration-color: var(--red);
	text-underline-offset: 3px;
}
.cookie-kinds {
	display: grid;
	gap: 10px;
}
.cookie-kinds label {
	display: grid;
	grid-template-columns: 18px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
	color: var(--steel);
}
.cookie-kinds input {
	margin: 3px 0 0;
	accent-color: var(--ink);
}
.cookie-kinds b {
	color: var(--ink);
	font-weight: 650;
}
.cookie-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	gap: 6px 16px;
}
.cookie-quiet {
	background: none;
	border: 0;
	padding: 8px 2px;
	font: 600 14px/1 var(--body);
	color: var(--steel);
	cursor: pointer;
}
.cookie-quiet:hover {
	color: var(--ink);
	text-decoration: underline;
}
.cookie-actions .button {
	min-height: 38px;
	padding: 0 18px;
	font-size: 14px;
}

/* ------------------------------------------------------------ warehouse page */
.kicker {
	font-size: 14px;
	font-weight: 650;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--red-ink);
}
.page-home .hero h1 {
	font-size: clamp(40px, 4.9vw, 70px);
	line-height: 0.98;
	max-width: 11em;
}
.hero-copy .kicker {
	margin-bottom: -10px;
}

/* the shift leaderboard: units per hour and accuracy */
.board-shift .board-row {
	grid-template-columns: 22px 40px minmax(0, 1fr) 56px 66px;
}
.board-cols {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 56px 66px;
	gap: 12px;
	margin: 18px 0 -8px;
	padding: 0 10px 0 96px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--steel);
}
.board-cols span + span {
	text-align: right;
}
.board-name small {
	display: block;
	margin-top: -5px;
	font-size: 12.5px;
	font-weight: 450;
	color: var(--steel);
}
.board-acc {
	font-size: 14px;
	color: var(--steel);
	text-align: right;
}
.is-leader .board-acc {
	color: var(--ink);
	font-weight: 600;
}
.board-live {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-weight: 600;
	color: var(--ink);
}
.live-dot {
	position: relative;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--red);
}
/* the pulse is a ring that grows and fades: transform and opacity only, so the browser does not repaint */
.live-dot::after {
	content: "";
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	background: rgb(249 66 58 / 0.25);
}
@media (prefers-reduced-motion: no-preference) {
	.live-dot::after {
		animation: pulse 2s ease-out infinite;
	}
}
@keyframes pulse {
	from {
		transform: scale(0.6);
		opacity: 1;
	}
	to {
		transform: scale(1.6);
		opacity: 0;
	}
}
/* a bar past its target: the mark shows where 100% is, the part beyond it is red */
.board-bar-over,
.viz-over {
	position: relative;
	overflow: visible;
}
.board-bar-over > span,
.viz-over > span {
	background: linear-gradient(90deg, var(--ink) 0 var(--m-fill, 83.3%), var(--red) var(--m-fill, 83.3%)) !important;
}
.board-bar-over > i,
.viz-over > i {
	position: absolute;
	left: var(--m);
	top: -4px;
	bottom: -4px;
	width: 2px;
	background: var(--ink);
	border-radius: 1px;
}

/* results: a dark band, four figures each with a small picture of what it means */
.results-band {
	background: var(--night);
	color: #fff;
}
.results-band .section-head p {
	color: var(--night-text);
}
.kpis {
	margin: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	border-top: 1px solid #343842;
}
.kpi {
	display: grid;
	grid-template-rows: auto auto 1fr auto;
	align-content: start;
	gap: 8px;
	padding: 28px 28px 4px 0;
}
.kpi + .kpi {
	padding-left: 28px;
	border-left: 1px solid #343842;
}
.kpi dd {
	margin: 0;
}
.kpi dt {
	order: 2;
	font-family: var(--display);
	font-size: 22px;
	font-weight: 650;
	letter-spacing: -0.01em;
	font-variation-settings: "opsz" 32;
}
.kpi-value {
	order: 1;
	font-family: var(--display);
	font-size: clamp(56px, 6.2vw, 92px);
	font-weight: 700;
	line-height: 0.9;
	letter-spacing: -0.05em;
	font-variant-numeric: tabular-nums;
}
.kpi:first-child .kpi-value {
	color: var(--red);
}
.kpi-note {
	order: 3;
	font-size: 15px;
	line-height: 1.45;
	color: var(--night-text);
}
.kpi-viz {
	order: 4;
	display: grid;
	gap: 8px;
	margin-top: 18px !important;
	font-size: 12px;
	color: var(--night-text);
}
.viz-row {
	display: grid;
	grid-template-columns: 58px minmax(0, 1fr) 56px;
	align-items: center;
	gap: 10px;
}
.viz-track {
	display: block;
	height: 8px;
	border-radius: 4px;
	background: #2c3039;
}
.viz-track > span {
	display: block;
	height: 100%;
	width: var(--w);
	border-radius: inherit;
	background: #6b7180;
	transform-origin: left center;
}
.viz-row.is-now .viz-track > span {
	background: var(--red);
}
.viz-row.is-now .viz-label {
	color: #fff;
	font-weight: 600;
}
.viz-track > .viz-range {
	margin-left: var(--a);
	background: repeating-linear-gradient(135deg, #6b7180 0 4px, #4a4f5b 4px 8px);
}
.viz-over > span {
	--m-fill: 83.3%;
	background: linear-gradient(90deg, #6b7180 0 83.3%, var(--red) 83.3%) !important;
}
.viz-over > i {
	background: #fff;
}
.viz-value {
	white-space: nowrap;
	text-align: right;
	font-variant-numeric: tabular-nums;
}
.viz-row.is-now .viz-value {
	color: #fff;
	font-weight: 600;
}
.viz-scale {
	position: relative;
	display: block;
	height: 14px;
	margin: 0 66px 0 68px;
}
.viz-scale span {
	position: absolute;
	left: var(--m);
	transform: translateX(-50%);
}
@media (prefers-reduced-motion: no-preference) {
	.viz-track > span {
		animation: fill 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
		animation-timeline: view();
		animation-range: entry 10% cover 40%;
	}
	@supports not (animation-timeline: view()) {
		.viz-track > span {
			animation: none;
		}
	}
}

/* the challenge: three numbered problems */
.challenge-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}
.challenge-list li {
	position: relative;
	display: grid;
	align-content: start;
	gap: 12px;
	padding: 28px;
	background: var(--surface);
	border: 1px solid var(--rule);
	border-radius: var(--radius);
}
.challenge-list .icon {
	width: 30px;
	height: 30px;
	color: var(--red-ink);
	margin-bottom: 18px;
}
.challenge-num {
	position: absolute;
	top: 22px;
	right: 26px;
	font-family: var(--display);
	font-size: 15px;
	font-weight: 700;
	color: var(--steel);
	font-variant-numeric: tabular-nums;
}
.challenge-list p {
	color: var(--steel);
	font-size: 16px;
}

/* what is gamification: the text and its four building blocks */
.explainer {
	background: var(--surface);
	border-block: 1px solid var(--rule);
}
.explainer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
	gap: clamp(40px, 7vw, 104px);
	align-items: start;
}
.explainer-copy {
	display: grid;
	gap: 18px;
}
.explainer-copy h2 {
	margin-bottom: 8px;
}
.explainer-copy p {
	color: var(--steel);
	max-width: 38em;
}
.explainer-copy .explainer-lead {
	font-size: clamp(18px, 1.6vw, 21px);
	line-height: 1.5;
	color: var(--ink);
}
.mechanics {
	position: sticky;
	top: 104px;
	padding: 28px;
	background: var(--paper);
	border: 1px solid var(--rule);
	border-radius: 20px;
}
.mechanics-title {
	font-family: var(--display);
	font-size: 22px;
	font-weight: 650;
	letter-spacing: -0.01em;
	margin-bottom: 18px;
}
.mechanics ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}
.mechanics li {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	align-items: center;
	gap: 14px;
	padding: 12px;
	background: var(--surface);
	border: 1px solid var(--rule);
	border-radius: 12px;
	font-size: 15px;
	color: var(--steel);
	line-height: 1.4;
}
.mechanics li .icon {
	width: 44px;
	height: 44px;
	padding: 10px;
	border-radius: 10px;
	background: #fff1f0;
	color: var(--red-ink);
}
.mechanics b {
	display: block;
	color: var(--ink);
	font-weight: 650;
	font-size: 16px;
}
.loop {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px solid var(--rule);
	font-size: 13px;
	font-weight: 600;
}
.loop .icon {
	width: 14px;
	height: 14px;
	color: var(--steel);
}
.loop-end {
	color: var(--red-ink);
}

/* the solution: the product video as a large poster, then the four parts */
.video-poster {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	border-radius: 20px;
	overflow: hidden;
	background: var(--night);
	cursor: pointer;
	text-align: left;
	font: inherit;
	color: #fff;
}
.video-poster img {
	width: 100%;
	aspect-ratio: 21 / 9;
	object-fit: cover;
	object-position: center 40%;
	opacity: 0.55;
	transition: opacity 0.2s, transform 0.4s;
}
.video-poster::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgb(20 22 27 / 0.85), rgb(20 22 27 / 0) 60%);
}
.video-poster:hover img {
	opacity: 0.68;
	transform: scale(1.015);
}
.video-poster-text {
	position: absolute;
	left: clamp(20px, 3vw, 40px);
	bottom: clamp(20px, 3vw, 36px);
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 18px;
}
.video-poster-text > span:last-child {
	display: grid;
	gap: 4px;
}
.video-poster .video-play {
	position: static;
	width: 64px;
	height: 64px;
	flex: none;
	background: var(--red-ink);
	color: #fff;
}
.video-poster .video-play .icon {
	width: 24px;
	height: 24px;
}
.video-poster:hover .video-play {
	background: #fff;
	color: var(--ink);
}
.video-poster .video-kind {
	color: #d4d7de;
}
.video-poster .video-title {
	font-size: clamp(22px, 2.6vw, 32px);
}
.solution-list {
	margin-top: clamp(40px, 5vw, 64px);
}
.screens {
	margin-top: var(--section);
}
.screens-title {
	font-size: clamp(26px, 2.8vw, 34px);
	margin-bottom: 20px;
}

/* business impact and the warehouse case study */
.impact {
	background: var(--surface);
	border-block: 1px solid var(--rule);
}
.impact-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(40px, 7vw, 104px);
	align-items: start;
}
.impact-copy {
	display: grid;
	gap: 18px;
}
.impact-lead {
	font-size: 18px;
	color: var(--steel);
	max-width: 32em;
}
.impact-list {
	list-style: none;
	margin: 22px 0 0;
	padding: 0;
	display: grid;
	border-top: 1px solid var(--rule);
}
.impact-list li {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr);
	gap: 18px;
	padding: 22px 0;
	border-bottom: 1px solid var(--rule);
}
.impact-list .icon {
	width: 28px;
	height: 28px;
	color: var(--red-ink);
}
.impact-list h3 {
	font-size: 20px;
	margin-bottom: 6px;
}
.impact-list p {
	color: var(--steel);
	font-size: 16px;
}
.case-highlight {
	padding: clamp(22px, 3vw, 32px);
	background: var(--paper);
	border: 1px solid var(--rule);
	border-radius: 20px;
	justify-items: start;
}
.case-highlight > * {
	width: 100%;
}
.case-highlight .text-link {
	width: auto;
}
.faq {
	background: var(--paper);
	border-top: 0;
}

@media (max-width: 1080px) {
	.kpis {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.kpi:nth-child(3) {
		padding-left: 0;
		border-left: 0;
	}
	.kpi:nth-child(n + 3) {
		border-top: 1px solid #343842;
		margin-top: 28px;
	}
	.challenge-list {
		grid-template-columns: minmax(0, 1fr);
	}
	.explainer-grid,
	.impact-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.mechanics {
		position: static;
	}
}
@media (max-width: 760px) {
	.nav a[href$="#about"],
	.nav a[href$="#solution"],
	.nav a[href$="#results"] {
		display: none;
	}
	.board-shift .board-row {
		grid-template-columns: 18px 34px minmax(0, 1fr) 44px 58px;
		gap: 8px;
	}
	.board-cols {
		grid-template-columns: minmax(0, 1fr) 44px 58px;
		gap: 8px;
		padding: 0 6px 0 74px;
		font-size: 10.5px;
	}
	.board-acc {
		font-size: 12.5px;
	}
	.kpis {
		grid-template-columns: minmax(0, 1fr);
	}
	.kpi,
	.kpi + .kpi {
		padding: 24px 0 8px;
		border-left: 0;
		margin-top: 0;
	}
	.kpi + .kpi {
		border-top: 1px solid #343842;
	}
	.video-poster img {
		aspect-ratio: 4 / 3;
	}
	.video-poster .video-play {
		width: 52px;
		height: 52px;
	}
}

/* ------------------------------------------------------------ smaller screens */
@media (max-width: 1080px) {
	.hero-grid,
	.solution-grid,
	.contact-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.board {
		max-width: 560px;
	}
	.stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.feature-list,
	.video-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.case-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.faq-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.faq-grid .section-head {
		position: static;
	}
	.case-body {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "aside" "prose";
	}
	.case-aside {
		position: static;
	}
	.case-aside .results {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.case-aside .results dd {
		font-size: 40px;
	}
	.case-aside .button {
		justify-self: start;
	}
	.footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 760px) {
	body {
		font-size: 16px;
	}
	.nav a[href$="#contact"] {
		display: none;
	}
	.brand img {
		width: 118px;
	}
	.nav {
		gap: 14px;
	}
	.nav .button-small {
		min-height: 38px;
		padding: 0 14px;
		font-size: 14px;
	}
	.tab-list {
		display: flex;
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
	}
	.tab-list button {
		flex: 1 0 auto;
		padding: 11px 14px;
		font-size: 14px;
	}
	.header-row {
		min-height: 64px;
	}
	.logos {
		gap: 20px;
		flex-direction: column;
		align-items: flex-start;
	}
	.logos ul {
		width: 100%;
	}
	.logos ul {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		justify-items: center;
		gap: 28px 16px;
	}
	.logos img {
		height: 20px;
	}
	.logos li:nth-child(4) img,
	.logos li:nth-child(5) img {
		height: 28px;
	}
	.stats {
		gap: 28px;
	}
	.stat dd {
		font-size: 72px;
	}
	.stat dt {
		font-size: 16px;
	}
	.feature-list,
	.video-list,
	.case-grid,
	.case-feature-list,
	.case-images {
		grid-template-columns: minmax(0, 1fr);
	}
	.feature-list {
		gap: 32px;
	}
	.board {
		padding: 16px 14px 14px;
	}
	.board-row {
		grid-template-columns: 18px 34px minmax(0, 1fr) auto;
		gap: 10px;
		padding: 8px 6px;
	}
	.board-avatar {
		width: 34px;
		height: 34px;
		font-size: 12px;
	}
	.board-score b {
		font-size: 16px;
	}
	.results dd {
		font-size: 32px;
	}
	.case-aside .results dd {
		font-size: 30px;
	}
	.summary div {
		grid-template-columns: minmax(0, 1fr);
		gap: 2px;
	}
	.contact-form {
		grid-template-columns: minmax(0, 1fr);
	}
	.contact-details li {
		grid-template-columns: minmax(0, 1fr);
		gap: 2px;
	}
	.footer-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}
	.video-close {
		top: -50px;
	}
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	* {
		transition: none !important;
	}
	.cf-turnstile:empty {
		animation: none;
	}
}
