/* Colours come from tokens.css only: a colour literal here fails check:site-tokens. */

@font-face {
	font-family: "Bricolage Grotesque Variable";
	font-style: normal;
	font-display: swap;
	font-weight: 200 800;
	src: url(/fonts/bricolage-grotesque-latin-ext-wght-normal.woff2)
		format("woff2-variations");
	unicode-range:
		U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Bricolage Grotesque Variable";
	font-style: normal;
	font-display: swap;
	font-weight: 200 800;
	src: url(/fonts/bricolage-grotesque-latin-wght-normal.woff2)
		format("woff2-variations");
	unicode-range:
		U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Newsreader Variable";
	font-style: normal;
	font-display: swap;
	font-weight: 200 800;
	src: url(/fonts/newsreader-latin-ext-wght-normal.woff2)
		format("woff2-variations");
	unicode-range:
		U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Newsreader Variable";
	font-style: normal;
	font-display: swap;
	font-weight: 200 800;
	src: url(/fonts/newsreader-latin-wght-normal.woff2) format("woff2-variations");
	unicode-range:
		U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--sans: "Bricolage Grotesque Variable", system-ui, sans-serif;
	--serif: "Newsreader Variable", ui-serif, Georgia, serif;
}

* {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	background: var(--desk);
	color: var(--ink);
	font: 1rem / 1.5 var(--sans);
	overflow-wrap: anywhere;
}

.wrap {
	max-width: 70rem;
	margin: 0 auto;
	padding: 0 1.25rem;
}

.narrow {
	max-width: 42rem;
}

p {
	margin: 0 0 0.75rem;
}

a {
	color: var(--ink);
	text-underline-offset: 3px;
}

:is(a, input, button, [tabindex]):focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
}

button:focus-visible {
	outline-width: 3px;
}

.skip {
	position: absolute;
	left: 0.75rem;
	top: -20rem;
	background: var(--button);
	color: var(--button-text);
	padding: 0.75rem 1rem;
	border-radius: var(--r-stadium);
	z-index: 3;
}

.skip:focus {
	top: 0.75rem;
}

/* A link that stands alone is a target of at least 44 px. */
.target {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 0.5rem;
}

header .bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.75rem;
	padding-top: 0.25rem;
	padding-bottom: 0.25rem;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	min-height: 44px;
	padding-left: 0;
	font-weight: 800;
	font-size: 1.375rem;
	letter-spacing: -0.02em;
	text-decoration: none;
}

.mark {
	width: 28px;
	height: 28px;
	flex: none;
}

.mark .tile {
	fill: var(--paper);
	stroke: var(--rule);
	stroke-width: 1;
}

.mark .base {
	fill: var(--rule);
}

.mark .main {
	fill: var(--ink);
}

.mark .lifted {
	fill: var(--outcome-1);
}

.chip {
	background: var(--paper);
	border: 1.5px solid var(--rule);
	border-radius: var(--r-stadium);
	padding: 0.125rem 0.75rem;
	font-size: 0.9375rem;
	font-weight: 600;
}

.lang {
	margin-left: auto;
}

h1 {
	font-size: clamp(1.875rem, 8.2vw, 3.125rem);
	line-height: 1.08;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0 0 0.75rem;
	text-wrap: balance;
}

h2 {
	font-size: clamp(1.5rem, 5.6vw, 2.125rem);
	line-height: 1.15;
	font-weight: 700;
	margin: 0 0 0.5rem;
	text-wrap: balance;
}

h3 {
	font-size: 1.1875rem;
	line-height: 1.3;
	font-weight: 700;
	margin: 0.5rem 0 0.25rem;
}

.hero {
	padding: 0.5rem 0 1.5rem;
}

.hero .wrap {
	display: grid;
	gap: 1rem;
}

.lead {
	font-family: var(--serif);
	font-size: 1.125rem;
	line-height: 1.4;
	color: var(--ink-2);
	max-width: 36rem;
	margin-bottom: 0.75rem;
}

/* The form */
label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.25rem;
}

input[type="email"] {
	width: 100%;
	min-height: 52px;
	padding: 0 1rem;
	border: 1.5px solid var(--rule);
	border-radius: var(--r-stadium);
	background: var(--paper);
	color: var(--ink);
	font: inherit;
}

button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 0 1.75rem;
	border: 1.5px solid var(--button);
	border-radius: var(--r-stadium);
	background: var(--button);
	color: var(--button-text);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

button.quiet {
	min-height: 44px;
	padding: 0 1.25rem;
	background: transparent;
	color: var(--ink);
	border-color: color-mix(in srgb, var(--rule) 85%, var(--ink));
}

button[disabled] {
	opacity: 0.7;
	cursor: default;
}

.sub button {
	width: 100%;
	margin-top: 0.75rem;
}

.promise {
	margin: 0.75rem 0 0;
	font-weight: 600;
}

.consent {
	margin: 0.5rem 0 0;
	font-size: 0.9375rem;
	color: var(--ink-2);
}

.msg {
	margin: 0 0 0.75rem;
	padding: 0.625rem 1rem;
	border-radius: var(--r-inset);
	background: var(--paper);
	border: 1.5px solid var(--rule);
	font-weight: 600;
}

/* Phone views */
.still {
	margin: 0;
}

.frame {
	position: relative;
	overflow: hidden;
	width: min(16.25rem, 100%);
	border: 1px solid var(--rule);
	border-radius: var(--r-large);
	background: var(--paper);
}

.frame img {
	display: block;
	width: 100%;
	height: auto;
}

.dp {
	position: absolute;
	right: 0.5rem;
	top: 0.5rem;
	background: var(--paper);
	color: var(--ink);
	border: 1px solid var(--rule);
	border-radius: var(--r-stadium);
	padding: 0.0625rem 0.625rem;
	font-size: 0.9375rem;
	font-weight: 600;
}

.still figcaption {
	margin-top: 0.5rem;
	max-width: 30rem;
	font-size: 0.9375rem;
	color: var(--ink-2);
}

.soon .frame {
	border-style: dashed;
	border-width: 2px;
}

.soon .frame img {
	filter: grayscale(0.75) opacity(0.55);
}

.flag {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%) rotate(-6deg);
	width: max-content;
	max-width: 90%;
	padding: 0.5rem 0.75rem;
	border: 2px dashed var(--rule);
	border-radius: var(--r-inset);
	background: var(--paper);
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
}

@media (prefers-color-scheme: dark) {
	.frame img {
		filter: brightness(0.82);
	}

	.soon .frame img {
		filter: grayscale(0.75) opacity(0.55) brightness(0.82);
	}
}

/* Sections */
.sec {
	padding: 1.5rem 0;
}

.sec.alt {
	background: var(--paper);
	border-block: 1px solid var(--rule-soft);
}

.intro {
	max-width: 40rem;
	color: var(--ink-2);
}

.jump {
	display: flex;
	flex-wrap: wrap;
	gap: 0 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.jump a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 0.625rem;
	font-weight: 600;
}

.strip {
	display: flex;
	gap: 0.75rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 0 1.25rem 0.5rem;
	scroll-padding: 0 1.25rem;
	overscroll-behavior-x: contain;
}

.strip:focus-visible {
	outline-offset: -3px;
}

@media (prefers-reduced-motion: no-preference) {
	html,
	.strip {
		scroll-behavior: smooth;
	}
}

.slide,
.lane {
	flex: 0 0 min(15.75rem, 85%);
	min-width: 0;
	scroll-snap-align: start;
	border-top: 2px solid var(--ink);
	padding-top: 1rem;
}

.lane {
	flex-basis: min(86%, 24rem);
	padding-bottom: 0.375rem;
}

.slide.soon,
.lane.soon {
	border-top-style: dashed;
}

.slide .frame {
	width: 100%;
	max-width: 19rem;
}

.rows {
	list-style: none;
	margin: 0.75rem 0 0;
	padding: 0;
}

.rows li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.125rem 0.5rem;
	min-height: 44px;
	padding: 0.375rem 0;
	border-top: 1px solid var(--rule-soft);
}

.rows li:last-child {
	border-bottom: 1px solid var(--rule-soft);
}

.words {
	margin-left: auto;
	color: var(--ink-2);
	font-size: 0.9375rem;
}

.pw {
	font-weight: 700;
	margin: 0;
}

.by {
	color: var(--ink-2);
	margin: 0.75rem 0 0;
}

/* The four steps */
.flow {
	list-style: none;
	margin: 0.75rem 0;
	padding: 0;
	counter-reset: step;
	display: grid;
}

.flow li {
	counter-increment: step;
	position: relative;
	margin-left: 0.75rem;
	padding: 0 0 0.75rem 1.75rem;
	border-left: 3px solid var(--rule);
	font-weight: 700;
}

.flow li:last-child {
	border-left-color: transparent;
	padding-bottom: 0;
}

.flow li::before {
	content: counter(step);
	position: absolute;
	left: -0.8125rem;
	top: 0;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: var(--r-stadium);
	background: var(--ink);
	color: var(--desk);
	font-size: 0.875rem;
	text-align: center;
	line-height: 1.5rem;
}

.note {
	max-width: 40rem;
	color: var(--ink-2);
}

.legend {
	margin: 0 0 0.5rem;
	padding: 0;
	list-style: none;
	color: var(--ink-2);
}

.sw {
	display: inline-block;
	width: 1.75rem;
	border-top: 3px solid var(--ink);
	vertical-align: middle;
	margin-right: 0.5rem;
}

.sw.later {
	border-top-style: dashed;
}

.next {
	list-style: none;
	margin: 0 0 0.75rem;
	padding: 0;
	display: grid;
	gap: 0.75rem;
}

.next li {
	border-left: 6px solid var(--outcome-1);
	padding: 0.125rem 0 0.125rem 1rem;
	font-size: 1.125rem;
}

.goal {
	font-weight: 600;
	margin: 1rem 0 0;
}

/* Footer and the analytics bar */
.foot {
	padding: 1rem 0 1.5rem;
	font-size: 0.9375rem;
	color: var(--ink-2);
}

.foot ul {
	list-style: none;
	margin: 0 0 0.5rem;
	padding: 0;
}

.foot p {
	margin: 0 0 0.25rem;
}

.foot a {
	color: var(--ink);
}

button.link {
	color: var(--ink);
	min-height: 44px;
	padding: 0 0.5rem;
	border: 0;
	background: transparent;
	text-decoration: underline;
	text-underline-offset: 3px;
	font-weight: 400;
}

.analytics {
	background: var(--paper);
	border-top: 1.5px solid var(--rule);
	padding: 0.5rem 0;
	font-size: 0.9375rem;
}

.analytics p {
	margin: 0 0 0.25rem;
}

.analytics .choices {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.analytics button {
	min-height: 44px;
	padding: 0 1.25rem;
}

/* Legal and manual pages */
.doc {
	padding: 0.75rem 0 2rem;
}

.doc h1 {
	font-size: clamp(1.75rem, 7vw, 2.5rem);
}

.doc h2 {
	font-size: 1.375rem;
	margin: 1.5rem 0 0.375rem;
}

.doc ul,
.doc ol {
	margin: 0 0 0.75rem;
	padding-left: 1.25rem;
}

.doc li {
	margin-bottom: 0.25rem;
}

.doc pre {
	overflow-x: auto;
	background: var(--paper);
	border: 1px solid var(--rule);
	border-radius: var(--r-inset);
	padding: 0.75rem;
	font-size: 0.9375rem;
	line-height: 1.45;
}

.doc code {
	font-size: 0.9375em;
	background: var(--rule-soft);
	border-radius: 4px;
	padding: 0 0.25rem;
}

.doc pre code {
	background: none;
	padding: 0;
}

.open {
	font-weight: 600;
}

@media (forced-colors: active) {
	button,
	.chip,
	.dp,
	.flag,
	.frame {
		border: 2px solid ButtonText;
	}
}

@media (min-width: 760px) {
	.wrap {
		padding: 0 2rem;
	}

	.hero {
		padding: 2rem 0 2.5rem;
	}

	.hero .wrap {
		grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
		align-items: center;
		gap: 2rem;
	}

	.hero .still {
		justify-self: center;
	}

	.sec {
		padding: 3rem 0;
	}

	.flow {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.flow li {
		margin: 0;
		padding: 1rem 0.75rem 0 0;
		border-left: 0;
		border-top: 3px solid var(--rule);
	}

	.flow li:last-child {
		border-top-color: var(--rule);
	}

	.flow li::before {
		left: 0;
		top: -0.8125rem;
	}

	.next {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.75rem;
	}

	.sub {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		column-gap: 0.75rem;
		align-items: end;
	}

	.sub > * {
		grid-column: 1 / -1;
	}

	.sub > input {
		grid-column: 1;
	}

	.sub button {
		width: auto;
		margin-top: 0;
		grid-column: 2;
	}
}

@media (min-width: 62rem) {
	.strip {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 2rem 2.5rem;
		overflow: visible;
		padding: 0 2rem;
		max-width: 70rem;
		margin: 0 auto;
	}

	.slide,
	.lane {
		flex: none;
	}

	.jump {
		display: none;
	}
}

/* Last, so a rule that sets display above does not show a hidden element. */
[hidden] {
	display: none;
}
