/* Colours come from the product theme (apps/web-lab/src/styles/tokens.css). */
@font-face {
	font-family: "Plex";
	font-weight: 100 700;
	font-display: swap;
	src: url("assets/ibm-plex-sans-latin-wght-normal.woff2") format("woff2");
	unicode-range:
		U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2190-2193;
}
@font-face {
	font-family: "Plex";
	font-weight: 100 700;
	font-display: swap;
	src: url("assets/ibm-plex-sans-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+1E00-1E9F;
}

:root {
	--paper: #ffffff;
	--tint: #f3f3fa;
	--ink: #17183c;
	--muted: #55536e;
	--on-ink-muted: #c3c3e0;
	--line: #e1e0ec;
	--brand: #393bb9;
	--brand-strong: #292b91;
	--accent: #c9e265;
	--frame: #1d212a;
	--night: #14171d;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
body {
	background: var(--paper);
	color: var(--ink);
	font:
		17px / 1.6 "Plex",
		system-ui,
		sans-serif;
}
img {
	display: block;
	max-width: 100%;
	height: auto;
}
a {
	color: var(--brand);
}
a:focus-visible {
	outline: 3px solid var(--brand);
	outline-offset: 3px;
}
.wrap {
	width: min(1120px, 100% - 2.5rem);
	margin-inline: auto;
}

/* The opening: dark, so the schedule reads as the product itself. */
.top {
	margin-bottom: 1rem;
	background: linear-gradient(
		var(--ink) calc(100% - 11rem),
		var(--paper) calc(100% - 11rem)
	);
	color: #fff;
}
.top a {
	color: #fff;
}
.top a:focus-visible,
.contact a:focus-visible {
	outline-color: var(--accent);
}
header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.5rem;
	padding-block: 1.5rem;
}
.logo {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin-right: auto;
	font-size: 1.2rem;
	font-weight: 700;
}
.logo img {
	width: 34px;
	height: 34px;
}
nav {
	display: flex;
	gap: 1.75rem;
	font-size: 0.95rem;
}
nav a {
	font-weight: 500;
	text-decoration: none;
}
nav a:hover {
	text-decoration: underline;
}
.hero {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 3.5rem;
	align-items: end;
	padding-block: 3.5rem 3rem;
}
h1 {
	font-size: clamp(2.4rem, 5.2vw, 3.9rem);
	font-weight: 600;
	line-height: 1.06;
	letter-spacing: -0.028em;
	text-wrap: balance;
}
.lead {
	font-size: 1.15rem;
	color: var(--on-ink-muted);
}
.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.75rem;
}
.button {
	display: inline-block;
	padding: 0.7rem 1.4rem;
	border: 1.5px solid var(--accent);
	border-radius: 6px;
	background: var(--accent);
	font-weight: 600;
	text-decoration: none;
}
.top .actions .button,
.contact .button {
	color: var(--ink);
}
.top .actions .ghost {
	border-color: rgb(255 255 255 / 40%);
	background: transparent;
	color: #fff;
}
.button:hover {
	filter: brightness(1.08);
}

.frame {
	display: block;
	padding: 8px;
	border: 1px solid rgb(255 255 255 / 10%);
	border-radius: 12px;
	background: var(--frame);
	box-shadow: 0 30px 60px -30px rgb(23 24 60 / 50%);
}
.frame img {
	width: 100%;
	border-radius: 6px;
}
figcaption {
	margin-top: 0.75rem;
	font-size: 0.85rem;
	color: var(--muted);
}

section {
	padding-block: 4rem;
}
h2 {
	font-size: clamp(1.6rem, 3vw, 2.15rem);
	font-weight: 600;
	line-height: 1.18;
	letter-spacing: -0.018em;
	text-wrap: balance;
}
h3 {
	margin-bottom: 0.4rem;
	font-size: 1.08rem;
	font-weight: 600;
}

.how h2,
.everything h2 {
	margin-bottom: 2.25rem;
}
.steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2.5rem;
	list-style: none;
	counter-reset: step;
}
.steps li {
	counter-increment: step;
	padding-top: 1.25rem;
	border-top: 2px solid var(--ink);
}
.steps li::before {
	content: counter(step);
	display: block;
	margin-bottom: 0.35rem;
	color: var(--brand);
	font-size: 2rem;
	font-weight: 600;
	line-height: 1;
}
.steps p {
	color: var(--muted);
	font-size: 0.98rem;
}

/* The screens are dark, so the band around them is too: their panels read as part of the page. */
.tour {
	padding-block: 2rem;
	background: var(--night);
	color: #fff;
}
.tour-rest {
	display: contents;
}
.screen {
	display: block;
}
.shot {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr);
	gap: 3.5rem;
	align-items: center;
	padding-block: 3.5rem;
}
.shot:nth-child(even) {
	grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
}
/* The first of the rest is the second of all, so it starts the swapped side. */
.tour-rest .shot:nth-child(odd) {
	grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
}
.tour-rest .shot:nth-child(even) {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr);
}
.tour-rest .shot:nth-child(odd) .screen {
	order: -1;
}
.shot .text p {
	margin-top: 1rem;
	color: var(--on-ink-muted);
}
.screen img {
	width: 100%;
	border-radius: 10px;
}
.screen:focus-visible {
	outline-color: var(--accent);
}

.features {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 2.5rem 2rem;
}
.features > div {
	padding-top: 1.1rem;
	border-top: 2px solid var(--brand);
}
.features h3 {
	margin-bottom: 0.75rem;
}
.features ul {
	list-style: none;
}
.features li {
	padding-block: 0.6rem;
	color: var(--muted);
	font-size: 0.92rem;
	line-height: 1.5;
}
.features strong {
	display: block;
	color: var(--ink);
	font-weight: 600;
}

.band {
	background: var(--tint);
}
.facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
	gap: 3.5rem;
}
.facts h2 {
	margin-bottom: 1.25rem;
	font-size: 1.5rem;
}
.facts ul {
	list-style: none;
}
.facts li {
	padding-block: 0.65rem;
	border-bottom: 1px solid var(--line);
}

.contact {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) auto;
	gap: 1rem 3rem;
	align-items: center;
	margin-block: 4rem;
	padding: 3rem;
	border-radius: 14px;
	background: var(--ink);
	color: #fff;
}
.contact h2,
.contact p:not(.address) {
	grid-column: 1;
}
.contact p:not(.address) {
	color: var(--on-ink-muted);
}
.contact .button {
	grid-column: 2;
	grid-row: 1;
	justify-self: start;
}
.contact .address {
	grid-column: 2;
	grid-row: 2;
	font-size: 0.95rem;
}
.contact .address a {
	color: #fff;
}

footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem;
	padding-bottom: 2rem;
	font-size: 0.85rem;
	color: var(--muted);
}

@media (max-width: 980px) {
	.features {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 760px) {
	.hero,
	.contact {
		grid-template-columns: minmax(0, 1fr);
	}
	.hero {
		gap: 1.5rem;
		padding-block: 2rem;
	}
	.top {
		background: linear-gradient(
			var(--ink) calc(100% - 6rem),
			var(--paper) calc(100% - 6rem)
		);
	}
	section {
		padding-block: 2.75rem;
	}
	.contact {
		padding: 2rem;
	}
	.shot,
	.tour-rest .shot:nth-child(n) {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.5rem;
		padding-block: 2.25rem;
	}
	.tour-rest .shot:nth-child(odd) .screen {
		order: 0;
	}
	.contact .button,
	.contact .address {
		grid-column: 1;
		grid-row: auto;
	}
}
@media (max-width: 520px) {
	.features {
		grid-template-columns: minmax(0, 1fr);
	}
	header {
		gap: 1rem;
	}
	nav {
		gap: 1.25rem;
	}
}
