/* Kiko landing page. Plain CSS, light and dark through prefers-color-scheme. */

:root {
	--bg: #f7f7f5;
	--surface: #ffffff;
	--text: #18181b;
	--muted: #52525b;
	--faint: #71717a;
	--line: #e4e4e7;
	--accent: #3f46c9;
	--accent-hover: #343ab0;
	--accent-text: #ffffff;
	--accent-soft: #ebecfb;
	--focus: #3f46c9;
	--ok: #13723f;
	--err: #b42318;
	--shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 12px 40px -12px rgb(24 24 27 / 0.25);

	/* Each agent's mark, in its colour (as in the Kiko window), readable on the page. */
	--claude: #b4541c;
	--codex: #1f6fd1;
	--opencode: #a85a2c;
	--t3: #4f46e5;

	/* The terminal mock is dark in both themes, like most terminals. */
	--term-bg: #15161a;
	--term-bar: #1d1e23;
	--term-line: #2a2b31;
	--term-text: #e6e6e9;
	--term-faint: #8b8c94;
	--term-accent: #8fa2ff;
	--term-green: #5fd38d;
	--term-amber: #f0b45a;
	--term-red: #ff7b72;
	--term-claude: #f08a4b;
	--term-codex: #6aa8ff;
	--term-opencode: #f5b48a;
	--term-t3: #a5a8ff;

	--radius: 14px;
	--sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

	color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0d0e10;
		--surface: #15161a;
		--text: #ececef;
		--muted: #a8a8b3;
		--faint: #8b8b96;
		--line: #26272d;
		--accent: #9aa8ff;
		--accent-hover: #b4bfff;
		--accent-text: #0d0e10;
		--accent-soft: #1c1f3a;
		--focus: #9aa8ff;
		--ok: #6ad69a;
		--err: #ff8a80;
		--shadow: 0 0 0 1px #24252b, 0 20px 60px -20px rgb(0 0 0 / 0.8);
		--claude: #f08a4b;
		--codex: #6aa8ff;
		--opencode: #f5b48a;
		--t3: #a5a8ff;
	}
}

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

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

h1,
h2,
h3,
p {
	margin: 0;
}

[hidden] {
	display: none;
}

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

a {
	color: var(--accent);
}

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

.wrap {
	width: 100%;
	max-width: 1040px;
	margin-inline: auto;
	padding-inline: 16px;
}

@media (min-width: 720px) {
	.wrap {
		padding-inline: 32px;
	}
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 10;
	padding: 8px 14px;
	border-radius: 8px;
	background: var(--surface);
	color: var(--text);
	box-shadow: var(--shadow);
}

.skip:focus {
	top: 12px;
}

/* Header */

.top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-block: 20px;
}

/* The logo is the name and a dot: "Kiko." The dot is a small rounded square in the accent colour, on the baseline. */
.brand {
	display: inline-flex;
	align-items: baseline;
	color: var(--text);
	font-weight: 800;
	font-size: 1.375rem;
	letter-spacing: -0.035em;
	line-height: 1;
	text-decoration: none;
}

.brand-dot {
	display: inline-block;
	width: 0.22em;
	height: 0.22em;
	margin-left: 0.06em;
	border-radius: 0.045em;
	background: var(--accent);
}

.top-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding-inline: 4px;
	color: var(--muted);
	font-size: 0.9375rem;
	font-weight: 550;
	text-decoration: none;
}

.top-link:hover {
	color: var(--text);
}
.top-nav {
	display: flex;
	align-items: center;
	gap: 16px;
}
.top-gh {
	gap: 6px;
}
.gh-mark {
	flex: none;
}

/* Hero */

.hero {
	padding-top: 32px;
	padding-bottom: 40px;
	text-align: center;
}

.eyebrow {
	display: inline-block;
	margin-bottom: 18px;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--accent);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.hero h1 {
	font-size: clamp(2.25rem, 6.5vw, 3.75rem);
	line-height: 1.08;
	letter-spacing: -0.03em;
	font-weight: 700;
	text-wrap: balance;
}

.subline {
	max-width: 38rem;
	margin: 18px auto 28px;
	color: var(--muted);
	font-size: clamp(1.0625rem, 2.4vw, 1.25rem);
	line-height: 1.55;
	text-wrap: pretty;
}

.install:focus {
	outline: none;
}

/* The install command: one line of mono with a copy button inside the box. The box hugs
   the command and the button and sits centred; on a phone it fills the width and the
   command wraps. */

.install {
	max-width: 560px;
	margin-inline: auto;
	scroll-margin-top: 120px;
}

.cmd {
	display: flex;
	align-items: center;
	gap: 20px;
	width: fit-content;
	max-width: 100%;
	margin-inline: auto;
	padding: 6px 6px 6px 14px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--surface);
	text-align: left;
}

.cmd-text {
	flex: 0 1 auto;
	min-width: 0;
	overflow-x: auto;
	padding-block: 6px;
	color: var(--text);
	font-family: var(--mono);
	font-size: clamp(0.75rem, 2.9vw, 0.875rem);
	white-space: nowrap;
	scrollbar-width: thin;
}

@media (max-width: 480px) {
	/* Phones: the whole command, wrapped like a terminal wraps it. */
	.cmd-text {
		overflow-x: visible;
		white-space: normal;
		word-break: break-all;
		line-height: 1.5;
	}
}

/* A prompt sign that isn't part of the copied or selected text. */
.cmd-text::before {
	content: "$ ";
	color: var(--faint);
	user-select: none;
}

.cmd-copy {
	flex: none;
	min-width: 72px;
	min-height: 36px;
	padding: 6px 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--bg);
	color: var(--text);
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 120ms ease;
}

.cmd-copy:hover {
	background: var(--accent-soft);
}

.cmd-copy[hidden] {
	display: none;
}

/* "Install" in the header was clicked: a soft accent glow that fades out. */
.cmd.highlight {
	animation: field-highlight 1.6s ease-out;
}

@media (prefers-reduced-motion: reduce) {
	.cmd.highlight {
		animation-timing-function: steps(1, end);
	}
}

.install-note {
	margin-top: 10px;
	color: var(--muted);
	font-size: 0.875rem;
	text-wrap: balance;
}

.install-note a {
	white-space: nowrap;
}

/* The optional email under the install command: a small label over the field. */
.signup-label {
	margin-bottom: 10px;
	color: var(--muted);
	font-size: 0.9375rem;
	font-weight: 600;
}

@media (min-width: 720px) {
	.hero {
		padding-top: 64px;
		padding-bottom: 56px;
	}
}

/* Buttons */

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 20px;
	border: 0;
	border-radius: 10px;
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 120ms ease;
}

.button-primary {
	background: var(--accent);
	color: var(--accent-text);
}

.button-primary:hover {
	background: var(--accent-hover);
}

.button[disabled] {
	opacity: 0.65;
	cursor: progress;
}

/* The demo slot: the video's 16:9 preview with a play button; the player takes its place (app.js). */

.demo {
	padding-bottom: 48px;
}

@media (min-width: 720px) {
	.demo {
		padding-bottom: 72px;
	}
}

.demo-frame {
	margin: 0;
}

.demo-stage,
.window-stage {
	position: relative;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

/* The preview and the player are both 16:9 at every width, so nothing moves when it starts. */
.demo-poster,
.demo-player {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: var(--radius);
	background: #0d0e10;
	object-fit: cover;
}

.shot-img {
	width: 100%;
	border-radius: var(--radius);
}

/* A big play button over the preview. */
.demo-play {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 0;
	border: 0;
	border-radius: var(--radius);
	background: rgb(13 14 16 / 0.5);
	color: #ffffff;
	font: inherit;
	font-size: clamp(1rem, 2.6vw, 1.25rem);
	font-weight: 650;
	text-shadow: 0 1px 10px rgb(0 0 0 / 0.7);
	cursor: pointer;
	transition: background-color 120ms ease;
}

.demo-play[hidden] {
	display: none;
}

.demo-play:hover {
	background: rgb(13 14 16 / 0.28);
}

.demo-play:focus-visible {
	outline-offset: 4px;
}

.demo-play-icon {
	position: relative;
	width: clamp(56px, 9vw, 76px);
	height: clamp(56px, 9vw, 76px);
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 8px 30px rgb(0 0 0 / 0.35);
	transition: transform 120ms ease;
}

.demo-play:hover .demo-play-icon {
	transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
	.demo-play-icon {
		transition: none;
	}
	.demo-play:hover .demo-play-icon {
		transform: none;
	}
}

.demo-play-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 12px 0 12px 20px;
	border-color: transparent transparent transparent #15161a;
}

.demo-play-note {
	font-size: 0.8125rem;
	font-weight: 500;
	opacity: 0.9;
}

@media (max-width: 480px) {
	/* The 16:9 frame is short on a phone: just the button and its label. */
	.demo-play {
		gap: 6px;
	}
	.demo-play-note {
		display: none;
	}
}

/* Without JavaScript: a plain link to the file, over the preview. */
.demo-noscript {
	position: absolute;
	left: 50%;
	bottom: 16px;
	transform: translateX(-50%);
	padding: 6px 14px;
	border-radius: 999px;
	background: #ffffff;
	color: #15161a;
	font-weight: 600;
	text-decoration: none;
}

/* How it works: the illustration of the window, under the steps. */
.window-figure {
	margin: 28px 0 0;
}

.window-caption {
	margin-top: 14px;
	color: var(--faint);
	font-size: 0.8125rem;
	text-align: center;
	text-wrap: balance;
}

/* The stand-in: an HTML/CSS mock of the Kiko terminal window. */

.term {
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--term-bg);
	color: var(--term-text);
	font-family: var(--mono);
	font-size: clamp(0.625rem, 1.9vw, 0.875rem);
	line-height: 1.7;
}

.term-bar {
	position: relative;
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 10px 14px;
	background: var(--term-bar);
	border-bottom: 1px solid var(--term-line);
}

.dot {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	flex: none;
}

.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }

.term-title {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	color: var(--term-faint);
	font-size: 0.95em;
}

.term-body {
	display: grid;
	grid-template-columns: minmax(0, 36%) minmax(0, 1fr);
	min-height: clamp(150px, 25vw, 260px);
}

.term-list {
	padding: 12px 0;
	border-right: 1px solid var(--term-line);
}

.row,
.rule,
.pane-head {
	overflow: hidden;
	white-space: pre;
	text-overflow: ellipsis;
}

.row {
	display: flex;
	gap: 0.6em;
	padding: 0 12px;
}

.row .name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.row .num {
	color: var(--term-faint);
}

.row .mark {
	width: 1ch;
	color: var(--term-accent);
}

.row-on {
	background: rgb(143 162 255 / 0.12);
}

.row-on .name {
	color: #ffffff;
	font-weight: 600;
}

.row-dim {
	color: var(--term-faint);
}

.rule {
	padding: 4px 12px;
	color: var(--term-faint);
}

.state {
	flex: none;
}

.state-working { color: var(--term-amber); }
.state-idle { color: var(--term-faint); }
.state-needs { color: var(--term-red); }

.term .h-claude { color: var(--term-claude); }
.term .h-codex { color: var(--term-codex); }
.term .h-opencode { color: var(--term-opencode); }
.term .h-t3 { color: var(--term-t3); }

/* The permission card at the bottom of the list. */
.card {
	margin: 12px 10px 0;
	padding: 8px 10px;
	border: 1px solid rgb(255 123 114 / 0.45);
	border-radius: 8px;
	background: rgb(255 123 114 / 0.07);
	line-height: 1.55;
}

.card-head,
.card-cmd,
.card-keys {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.warn {
	color: var(--term-red);
}

.card-cmd {
	color: #ffffff;
	font-weight: 600;
}

.card-keys {
	margin-top: 2px;
	color: var(--term-faint);
}

.key {
	color: var(--term-accent);
	font-weight: 600;
}

.term-pane {
	padding: 12px 16px;
	min-width: 0;
}

.pane-head {
	margin-bottom: 8px;
	color: var(--term-accent);
	font-weight: 600;
}

.pane-head .faint {
	font-weight: 400;
}

/* Kiko's page: the time, who spoke, what was said (wrapping under itself). */
.entry {
	display: grid;
	grid-template-columns: 5ch 7ch minmax(0, 1fr);
	column-gap: 1ch;
	margin-bottom: 4px;
}

.entry-note {
	margin-top: -4px;
}

.when {
	color: var(--term-faint);
}

.who-you {
	color: var(--term-accent);
	font-weight: 600;
}

.who-cb {
	color: var(--term-green);
	font-weight: 600;
}

.faint,
.term .faint {
	color: var(--term-faint);
}

.term-status {
	display: flex;
	flex-wrap: wrap;
	gap: 0 0.6em;
	padding: 8px 14px;
	border-top: 1px solid var(--term-line);
	background: var(--term-bar);
}

.ready {
	color: var(--term-green);
}

.needs {
	color: var(--term-red);
}

@media (max-width: 640px) {
	/* Narrow: Kiko's page above the list, so its words can wrap at a readable width. */
	.term-body {
		grid-template-columns: minmax(0, 1fr);
	}
	.term-pane {
		order: -1;
		padding: 10px 12px;
		border-bottom: 1px solid var(--term-line);
	}
	.term-list {
		border-right: 0;
		padding: 8px 0 12px;
	}
	.entry {
		grid-template-columns: 7ch minmax(0, 1fr);
	}
	.entry .when {
		display: none;
	}
	.card {
		margin-inline: 8px;
	}
	.row { padding: 0 10px; gap: 0.45em; }
	.rule { padding: 4px 10px; }
	.dot { width: 9px; height: 9px; }
	.term {
		font-size: 0.75rem;
	}
}

/* Works with */

.agents {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 10px;
	margin-top: 28px;
}

.agents-label {
	margin-right: 4px;
	color: var(--faint);
	font-size: 0.875rem;
}

.agent {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--surface);
	font-size: 0.9375rem;
	font-weight: 600;
}

.h-claude { color: var(--claude); }
.h-codex { color: var(--codex); }
.h-opencode { color: var(--opencode); }
.h-t3 { color: var(--t3); }

/* Section titles */

.section-title {
	margin-bottom: 20px;
	font-size: clamp(1.25rem, 3.4vw, 1.5rem);
	line-height: 1.25;
	letter-spacing: -0.015em;
	text-align: center;
}

/* How it works: three numbered steps. */

.how {
	padding-bottom: 48px;
}

.steps {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

@media (min-width: 820px) {
	.steps {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.steps li {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px 22px;
	border-radius: 12px;
	background: var(--surface);
	counter-increment: step;
}

.steps h3 {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1rem;
	font-weight: 650;
	letter-spacing: -0.005em;
}

.steps h3::before {
	content: counter(step);
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--accent-soft);
	color: var(--accent);
	font-size: 0.8125rem;
	font-weight: 700;
}

.steps p {
	color: var(--muted);
	font-size: 0.9375rem;
}

/* An example of what's said, pinned to the bottom of each step. */
.steps .said-line {
	margin-top: auto;
	padding-top: 8px;
	color: var(--text);
	font-family: var(--mono);
	font-size: 0.8125rem;
	line-height: 1.5;
}

.steps .said-line-faint {
	color: var(--faint);
}

/* What the install does: the same numbered cards as "How it works". */

.next {
	padding-bottom: 48px;
	scroll-margin-top: 24px;
}

.next-steps code {
	font-family: var(--mono);
	font-size: 0.85em;
	overflow-wrap: anywhere;
}

.next-note {
	margin-top: 16px;
	color: var(--muted);
	font-size: 0.9375rem;
	text-align: center;
	text-wrap: balance;
}

/* Features */

.about {
	padding-bottom: 48px;
}

@media (min-width: 720px) {
	.about {
		padding-bottom: 72px;
	}
}

.features {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Four cards: 2 + 2 from tablets up. */
@media (min-width: 720px) {
	.features {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* No border: a soft panel on the page background, so the page reads less boxed. */
.features li {
	padding: 20px 22px;
	border-radius: 12px;
	background: var(--surface);
}

.features h3 {
	margin-bottom: 4px;
	font-size: 1rem;
	font-weight: 650;
	letter-spacing: -0.005em;
}

.features p {
	color: var(--muted);
	font-size: 0.9375rem;
}

/* FAQ: plain disclosure rows, no script. */

.faq {
	padding-bottom: 48px;
}

@media (min-width: 720px) {
	.faq {
		padding-bottom: 72px;
	}
}

.faq-list {
	max-width: 720px;
	margin-inline: auto;
	border-top: 1px solid var(--line);
}

.faq details {
	border-bottom: 1px solid var(--line);
}

.faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 44px;
	padding: 14px 4px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.faq summary::-webkit-details-marker {
	display: none;
}

.faq summary::after {
	content: "+";
	flex: none;
	color: var(--faint);
	font-size: 1.25rem;
	font-weight: 400;
	line-height: 1;
}

.faq details[open] summary::after {
	content: "−";
}

.faq details p {
	padding: 0 4px 18px;
	color: var(--muted);
	font-size: 0.9375rem;
}

/* Signup at the end: an open section on the page background, no card. */

.signup-end {
	padding-top: 8px;
	padding-bottom: 56px;
	scroll-margin-top: 24px;
}

@media (min-width: 720px) {
	.signup-end {
		padding-top: 16px;
		padding-bottom: 80px;
	}
}

.signup-inner {
	max-width: 520px;
	margin-inline: auto;
	text-align: center;
}

.signup-end h2 {
	font-size: clamp(1.25rem, 3.4vw, 1.5rem);
	line-height: 1.25;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

.signup-note {
	margin-top: 8px;
	color: var(--muted);
}

.signup-end .install {
	margin-top: 20px;
}

.signup-end .signup-label-end {
	margin-top: 32px;
}

/* The signup: one narrow field with the button inside it. */
.signup-form {
	max-width: 400px;
	margin-inline: auto;
}

.field-row {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 4px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--surface);
}

.field-row:focus-within {
	outline: 2px solid var(--focus);
	outline-offset: 1px;
}

@keyframes field-highlight {
	0%,
	25% {
		box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 35%, transparent);
	}
	100% {
		box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 0%, transparent);
	}
}

.field-row:has(input[aria-invalid="true"]) {
	border-color: var(--err);
}

.field-row input {
	flex: 1;
	min-width: 0;
	min-height: 36px;
	padding: 6px 10px;
	border: 0;
	background: transparent;
	color: var(--text);
	font: inherit;
	/* 16px or more stops iOS Safari from zooming into the field. */
	font-size: 1rem;
}

.field-row input:focus {
	outline: none;
}

.field-row .button {
	min-height: 36px;
	padding: 6px 14px;
	border-radius: 8px;
	font-size: 0.9375rem;
	white-space: nowrap;
}

@media (min-width: 480px) {
	/* Phones keep 16px in the field so iOS Safari doesn't zoom. */
	.field-row input {
		font-size: 0.9375rem;
	}
}

.field-row input::placeholder {
	color: var(--faint);
}

/* Honeypot: out of sight and out of the tab order. */
.hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.status {
	min-height: 1.6em;
	margin-top: 10px;
	font-size: 0.9375rem;
	font-weight: 550;
}

.status[data-kind="ok"] {
	color: var(--ok);
}

.status[data-kind="error"] {
	color: var(--err);
}

/* No message yet: no gap between the field and the privacy line. */
.status:empty {
	min-height: 0;
	margin-top: 0;
}

.privacy {
	margin-top: 10px;
	text-wrap: balance;
	color: var(--faint);
	font-size: 0.8125rem;
}

/* Footer */

.foot {
	padding-top: 24px;
	padding-bottom: 32px;
	border-top: 1px solid var(--line);
	color: var(--faint);
	font-size: 0.8125rem;
	text-align: center;
	text-wrap: balance;
}

.foot-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 18px;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.foot-links a {
	color: var(--muted);
	text-decoration: none;
}

.foot-links a:hover {
	color: var(--text);
	text-decoration: underline;
}

/* The maker line, on its own below the links. */

.foot-legal {
	margin-top: 12px;
	font-size: 0.75rem;
}

/* The privacy policy and the terms: one readable column of prose. */

.legal {
	max-width: 46rem;
	padding-top: 24px;
	padding-bottom: 72px;
}

.legal h1 {
	font-size: clamp(2.125rem, 5.5vw, 2.875rem);
	line-height: 1.1;
	letter-spacing: -0.03em;
	font-weight: 700;
}

.legal-meta {
	margin-top: 12px;
	color: var(--faint);
	font-size: 0.9375rem;
}

.legal-lead {
	margin-top: 20px;
	color: var(--muted);
	font-size: 1.125rem;
	line-height: 1.6;
	text-wrap: pretty;
}

.legal h2 {
	margin-top: 52px;
	font-size: 1.4375rem;
	line-height: 1.25;
	letter-spacing: -0.02em;
	font-weight: 700;
	scroll-margin-top: 24px;
}

.legal h3 {
	margin-top: 30px;
	font-size: 1.0625rem;
	line-height: 1.35;
	font-weight: 650;
	scroll-margin-top: 24px;
}

.legal p,
.legal ul,
.legal ol,
.legal .table-scroll {
	margin-top: 12px;
}

.legal ul,
.legal ol {
	padding-left: 1.3rem;
}

.legal li + li {
	margin-top: 6px;
}

.legal li::marker {
	color: var(--faint);
}

.legal code {
	padding: 0.1em 0.35em;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--surface);
	font-family: var(--mono);
	font-size: 0.85em;
	overflow-wrap: anywhere;
}

.legal strong {
	font-weight: 650;
}

/* "On this page" */
.toc {
	margin-top: 28px;
	padding: 16px 20px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	font-size: 0.9375rem;
}

.toc-title {
	color: var(--faint);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.legal .toc ol {
	margin-top: 8px;
	columns: 2 14rem;
	column-gap: 24px;
}

.legal .toc li + li {
	margin-top: 2px;
}

.toc a {
	text-decoration: none;
}

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

/* A box for what matters most: the short version, the disclaimers. */
.callout {
	margin-top: 20px;
	padding: 18px 22px;
	border: 1px solid var(--line);
	border-left: 4px solid var(--accent);
	border-radius: 10px;
	background: var(--surface);
}

.callout > :first-child {
	margin-top: 0;
}

.callout-title {
	font-weight: 700;
}

.legal-caps {
	font-size: 0.875rem;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: var(--muted);
}

.table-scroll {
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--surface);
}

.legal table {
	width: 100%;
	min-width: 34rem;
	border-collapse: collapse;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.legal th,
.legal td {
	padding: 10px 14px;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.legal tr:last-child td {
	border-bottom: 0;
}

.legal th {
	color: var(--faint);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

/* Something still to fill in before launch (the governing law's state). Hard to miss on purpose. */
.placeholder {
	padding: 0.05em 0.35em;
	border: 1px dashed var(--err);
	border-radius: 4px;
	background: color-mix(in srgb, var(--err) 12%, transparent);
	color: var(--err);
	font-weight: 650;
}
