/* Inter and JetBrains Mono (SIL Open Font License), self-hosted: Latin and Latin Extended, variable 400–600 */
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url('/fonts/inter-latin-ext.woff2') format('woff2');
	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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url('/fonts/inter-latin.woff2') format('woff2');
	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: 'JetBrains Mono';
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url('/fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
	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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'JetBrains Mono';
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url('/fonts/jetbrains-mono-latin.woff2') format('woff2');
	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 {
	color-scheme: light dark;

	--grey-1: #fbfbfb;
	--grey-2: #ffffff;
	--grey-3: #f5f5f5;
	--grey-4: #eeeeee;
	--grey-5: #e0e0e0;
	--grey-6: #d2d2d2;
	--grey-7: #707070;
	--grey-8: #6b6b6b;
	--grey-9: #5c5c5c;
	--grey-10: #3a3a3a;
	--grey-11: #161616;

	--bg: var(--grey-1);
	--bg-raised: var(--grey-2);
	--bg-weak: var(--grey-3);
	--border: var(--grey-5);
	--border-strong: var(--grey-6);
	--text: var(--grey-9);
	--text-strong: var(--grey-11);
	--text-muted: var(--grey-8);
	--text-faint: var(--grey-7);
	--button-bg: var(--grey-11);
	--button-text: var(--grey-1);

	--violet: #8c5cf5;
	--pink: #ed4a99;
	--orange: #fa923d;
	--brand: linear-gradient(90deg, var(--violet), var(--pink), var(--orange));

	--font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

	--page-max: 1080px;
	--pad: clamp(16px, 4vw, 40px);
	--radius: 8px;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme='light']) {
		--grey-1: #0c0c0c;
		--grey-2: #161616;
		--grey-3: #1a1a1a;
		--grey-4: #242424;
		--grey-5: #2e2e2e;
		--grey-6: #4b4b4b;
		--grey-7: #868686;
		--grey-8: #8f8f8f;
		--grey-9: #aeaeae;
		--grey-10: #dbdbdb;
		--grey-11: #fafafa;
	}
}

:root[data-theme='dark'] {
	--grey-1: #0c0c0c;
	--grey-2: #161616;
	--grey-3: #1a1a1a;
	--grey-4: #242424;
	--grey-5: #2e2e2e;
	--grey-6: #4b4b4b;
	--grey-7: #868686;
	--grey-8: #8f8f8f;
	--grey-9: #aeaeae;
	--grey-10: #dbdbdb;
	--grey-11: #fafafa;
}

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

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

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

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

a {
	color: var(--text-strong);
	text-decoration-color: var(--border-strong);
	text-underline-offset: 3px;
}

a:hover {
	text-decoration-color: currentColor;
}

h1,
h2,
h3 {
	color: var(--text-strong);
	font-weight: 600;
	letter-spacing: -0.01em;
	margin: 0;
}

p {
	margin: 0;
}

code,
.mono {
	font-family: var(--font-mono);
}

code {
	font-size: 0.88em;
	color: var(--text-strong);
	background: var(--bg-weak);
	border: 1px solid var(--border);
	border-radius: 4px;
	padding: 0.05em 0.35em;
}

/* One key per cap. The system font comes first: its ⌘ ⌥ ⇧ are drawn at the letter's size and
   weight, where a monospace fallback makes them small and thin. */
kbd {
	--kbd-font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, 'Segoe UI Symbol', 'Inter', sans-serif;
	display: inline-block;
	min-width: 1.8em;
	font-family: var(--kbd-font);
	font-size: 0.8em;
	font-weight: 600;
	line-height: 1.6;
	text-align: center;
	color: var(--text-strong);
	background: var(--bg-raised);
	border: 1px solid var(--border-strong);
	border-bottom-width: 2px;
	border-radius: 5px;
	padding: 0 0.4em;
	white-space: nowrap;
}

/* A combination: its keys side by side, never split across lines */
.combo {
	display: inline-flex;
	gap: 0.2em;
	vertical-align: baseline;
	white-space: nowrap;
}

.muted {
	color: var(--text-faint);
}

.small {
	font-size: 13px;
}

.skip {
	position: absolute;
	left: -9999px;
}

.skip:focus {
	left: 16px;
	top: 16px;
	z-index: 10;
	background: var(--bg-raised);
	padding: 8px 12px;
}

:focus-visible {
	outline: 2px solid var(--violet);
	outline-offset: 2px;
}

/* Page frame: hairline rails on both sides, like a printed grid. */
.page {
	max-width: var(--page-max);
	margin: 0 auto;
	border-left: 1px solid var(--border);
	border-right: 1px solid var(--border);
	min-height: 100vh;
}

@media (max-width: 1100px) {
	.page {
		border-left: 0;
		border-right: 0;
	}
}

/* Nav */
.nav {
	position: sticky;
	top: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 14px var(--pad);
	background: color-mix(in srgb, var(--bg) 86%, transparent);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
}

.brand {
	display: flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	font-family: var(--font-mono);
	font-weight: 600;
	font-size: 18px;
	letter-spacing: -0.02em;
}

/* Bol stands in as the logo; nudged down so its feet sit on the text baseline */
.brand img {
	width: 24px;
	height: 26px;
	margin: -4px 0 -2px;
}

.nav-links {
	display: flex;
	gap: 20px;
	margin-left: auto;
	font-size: 14px;
}

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

.nav-links a:hover {
	color: var(--text-strong);
}

/* The GitHub icon and Download sit together at the right */
.nav .icon-button + .button {
	margin-left: -12px;
}

@media (max-width: 640px) {
	.nav-links {
		display: none;
	}
	.nav .icon-button {
		margin-left: auto;
	}
}

/* Buttons */
.button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 16px;
	border-radius: 6px;
	background: var(--button-bg);
	color: var(--button-text);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	transition: opacity 0.15s;
	white-space: nowrap;
}

.button:hover {
	opacity: 0.86;
}

.button-small {
	height: 32px;
	padding: 0 12px;
	font-size: 14px;
}

/* Outline button: the second choice next to a primary one (View on GitHub) */
.button-secondary {
	background: transparent;
	color: var(--text-strong);
	box-shadow: inset 0 0 0 1px var(--border-strong);
}

.button-secondary:hover {
	opacity: 1;
	background: var(--bg-weak);
}

/* Square icon link in the nav (GitHub) */
.icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 6px;
	color: var(--text-muted);
	box-shadow: inset 0 0 0 1px var(--border);
	transition:
		color 0.15s,
		background 0.15s;
}

.icon-button:hover {
	color: var(--text-strong);
	background: var(--bg-weak);
}

.cta-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

/* Hero */
.hero {
	padding: clamp(48px, 9vw, 96px) var(--pad) 0;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--text-muted);
	margin-bottom: 20px;
}

.eyebrow .dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--brand);
}

h1 {
	font-size: clamp(32px, 5vw, 52px);
	line-height: 1.08;
	letter-spacing: -0.03em;
	max-width: 14em;
}

.lead {
	margin-top: 20px;
	font-size: clamp(17px, 1.6vw, 19px);
	max-width: 36em;
}

.lead span:first-child {
	color: var(--text-strong);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin-top: 32px;
}

/* Stage: a slice of desktop with the voice bar on it */
.stage {
	position: relative;
	margin: clamp(40px, 6vw, 64px) calc(var(--pad) * -1) 0;
	height: clamp(340px, 46vw, 480px);
	border-top: 1px solid var(--border);
	overflow: hidden;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 0 16px clamp(24px, 4vw, 48px);
}

.stage-wall {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(60% 80% at 20% 0%, color-mix(in srgb, var(--violet) 55%, transparent), transparent 70%),
		radial-gradient(50% 70% at 85% 20%, color-mix(in srgb, var(--pink) 40%, transparent), transparent 70%),
		radial-gradient(70% 60% at 60% 110%, color-mix(in srgb, var(--orange) 45%, transparent), transparent 70%),
		linear-gradient(180deg, #1d1530, #2a1830 55%, #2c1b22);
}

/* Fine dot grain over the wallpaper */
.stage-wall::after {
	content: '';
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgb(255 255 255 / 0.09) 1px, transparent 1px);
	background-size: 4px 4px;
	mask-image: linear-gradient(180deg, #000, transparent 80%);
}

.stage-hint {
	position: absolute;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: rgb(255 255 255 / 0.6);
}

.stage-hint kbd {
	background: rgb(255 255 255 / 0.08);
	border-color: rgb(255 255 255 / 0.18);
	color: #fff;
}

.stage-hint span {
	margin-left: 4px;
}

.stage-hint.is-pressed kbd {
	background: rgb(255 255 255 / 0.28);
	transform: translateY(1px);
}

/* The voice bar (mirrors the app's HUD) */
.hud {
	--hud-bg: rgb(30 30 32 / 0.9);
	position: relative;
	display: flex;
	gap: 14px;
	width: min(640px, 100%);
	padding: 14px 18px 16px 14px;
	border-radius: 22px;
	background: radial-gradient(120% 140% at 0% 0%, rgb(140 92 245 / 0.18), transparent 50%), var(--hud-bg);
	backdrop-filter: blur(24px) saturate(1.4);
	-webkit-backdrop-filter: blur(24px) saturate(1.4);
	box-shadow:
		0 24px 60px -12px rgb(0 0 0 / 0.55),
		0 2px 8px rgb(0 0 0 / 0.3);
	color: #f2f2f2;
	font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
	transition:
		width 0.35s ease,
		transform 0.35s ease,
		opacity 0.35s ease;
}

.hud.is-hidden {
	opacity: 0;
	transform: translateY(12px) scale(0.98);
}

/* The gradient border: a conic gradient spun with transform (GPU-composited), clipped to a 1.3px ring by the mask */
.hud-ring {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1.3px;
	overflow: hidden;
	-webkit-mask:
		linear-gradient(#000 0 0) content-box,
		linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	opacity: 0.8;
	pointer-events: none;
}

.hud-ring::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	/* A square wider than the bar's diagonal, so the ring is covered at every angle */
	width: 150%;
	aspect-ratio: 1;
	background: conic-gradient(var(--violet), var(--pink), var(--orange), var(--pink), var(--violet));
	transform: translate(-50%, -50%);
	animation: ring-spin 6s linear infinite;
	will-change: transform;
}

.hud[data-phase='listening'] .hud-ring {
	opacity: 1;
}

.hud[data-phase='listening'] .hud-ring::before {
	animation-duration: 2.4s;
}

@keyframes ring-spin {
	to {
		transform: translate(-50%, -50%) rotate(360deg);
	}
}

.hud-orb {
	flex: none;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgb(255 255 255 / 0.07);
	border: 1px solid rgb(255 255 255 / 0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2.5px;
}

.hud-orb span {
	width: 3.5px;
	height: 14px;
	border-radius: 2px;
	background: linear-gradient(0deg, var(--violet), var(--pink));
	transform-origin: center;
}

.hud-orb span:nth-child(1),
.hud-orb span:nth-child(5) {
	height: 8px;
}

.hud-orb span:nth-child(3) {
	height: 18px;
}

.hud[data-phase='listening'] .hud-orb span {
	animation: vu 0.9s ease-in-out infinite alternate;
}

.hud[data-phase='speaking'] .hud-orb span {
	animation: vu 0.6s ease-in-out infinite alternate;
}

.hud[data-phase='thinking'] .hud-orb span,
.hud[data-phase='looking'] .hud-orb span {
	height: 8px;
	animation: wave 1.1s ease-in-out infinite;
}

.hud-orb span:nth-child(2) {
	animation-delay: -0.3s !important;
}
.hud-orb span:nth-child(3) {
	animation-delay: -0.55s !important;
}
.hud-orb span:nth-child(4) {
	animation-delay: -0.15s !important;
}
.hud-orb span:nth-child(5) {
	animation-delay: -0.7s !important;
}

@keyframes vu {
	from {
		transform: scaleY(0.35);
	}
	to {
		transform: scaleY(1.1);
	}
}

@keyframes wave {
	0%,
	100% {
		transform: translateY(0);
		opacity: 0.6;
	}
	50% {
		transform: translateY(-4px);
		opacity: 1;
	}
}

.hud-body {
	min-width: 0;
	flex: 1;
	padding-top: 1px;
}

.hud-top {
	display: flex;
	align-items: baseline;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: rgb(255 255 255 / 0.72);
}

.hud-timer {
	font-weight: 400;
	color: rgb(255 255 255 / 0.62);
	font-variant-numeric: tabular-nums;
}

.hud-esc {
	margin-left: auto;
	font-weight: 400;
	font-size: 13px;
	color: rgb(255 255 255 / 0.62);
}

.hud-esc kbd {
	background: rgb(255 255 255 / 0.08);
	border: 1px solid rgb(255 255 255 / 0.14);
	color: rgb(255 255 255 / 0.7);
	font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
	font-weight: 600;
	font-size: 11px;
	border-radius: 4px;
}

.hud-context {
	margin-top: 4px;
	font-size: 14px;
	color: rgb(255 255 255 / 0.62);
}

.hud-context:empty {
	display: none;
}

.hud-text {
	margin-top: 4px;
	font-size: 16px;
	line-height: 1.45;
	color: #fff;
	min-height: 1.45em;
}

.hud-text .caret {
	display: inline-block;
	width: 2px;
	height: 1.05em;
	margin-left: 2px;
	vertical-align: -0.15em;
	background: var(--pink);
	animation: blink 1s steps(1) infinite;
}

.hud-text .pending {
	color: rgb(255 255 255 / 0.62);
}

@keyframes blink {
	50% {
		opacity: 0;
	}
}

.hud-activity {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 6px;
	font-size: 13.5px;
	color: rgb(255 255 255 / 0.55);
}

.hud-activity[hidden] {
	display: none;
}

.hud-steps {
	color: rgb(255 255 255 / 0.62);
}

/* Spacer: a dithered band between sections */
.spacer {
	height: 48px;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

.dither {
	background-image: radial-gradient(var(--border-strong) 1px, transparent 1.2px);
	background-size: 6px 6px;
	mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}

/* Sections */
.section {
	padding: clamp(48px, 7vw, 80px) var(--pad);
	border-bottom: 1px solid var(--border);
}

.section-head {
	max-width: 40em;
	margin-bottom: 40px;
}

.section-head h2 {
	font-size: clamp(24px, 2.6vw, 30px);
	letter-spacing: -0.02em;
	margin-bottom: 12px;
}

.section-head p {
	font-size: 17px;
}

.section h3 {
	font-size: 17px;
	margin-bottom: 6px;
}

/* Features: a two-column list with bold names, like a spec sheet */
.features {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	border-top: 1px solid var(--border);
}

.features li {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 18px 24px 18px 0;
	border-bottom: 1px solid var(--border);
}

.features li:nth-child(even) {
	padding-left: 24px;
	border-left: 1px solid var(--border);
}

.features strong {
	color: var(--text-strong);
	font-weight: 600;
	font-size: 15px;
}

.features span {
	font-size: 15px;
}

@media (max-width: 720px) {
	.features {
		grid-template-columns: 1fr;
	}
	.features li:nth-child(even) {
		padding-left: 0;
		border-left: 0;
	}
}

/* Cards */
.cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

@media (max-width: 900px) {
	.cards {
		grid-template-columns: 1fr;
	}
}

.card {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--bg-raised);
	display: flex;
	flex-direction: column;
}

.card-media {
	position: relative;
	height: 220px;
	background: #141414;
	border-bottom: 1px solid var(--border);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	color: #eee;
	font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
}

.card-copy {
	padding: 20px;
}

.card-copy p {
	font-size: 15px;
}

.media-talk {
	background:
		radial-gradient(80% 90% at 10% 0%, rgb(140 92 245 / 0.45), transparent 70%),
		radial-gradient(70% 80% at 100% 100%, rgb(250 146 61 / 0.35), transparent 70%), #1b1522;
}

.mini-hud {
	display: flex;
	gap: 10px;
	width: 100%;
	padding: 12px 14px;
	border-radius: 16px;
	background: rgb(30 30 32 / 0.9);
	border: 1px solid rgb(237 74 153 / 0.45);
	box-shadow: 0 16px 40px -10px rgb(0 0 0 / 0.6);
	font-size: 13px;
}

.hud-orb.small {
	width: 30px;
	height: 30px;
	gap: 2px;
}

.hud-orb.small span {
	width: 2.5px;
	height: 6px;
	animation: wave 1.1s ease-in-out infinite;
}

.mini-status {
	font-weight: 600;
	color: rgb(255 255 255 / 0.72);
}

.mini-status .muted {
	color: rgb(255 255 255 / 0.62);
}

.mini-text {
	color: #fff;
	margin-top: 2px;
}

.mini-act {
	color: rgb(255 255 255 / 0.5);
	margin-top: 4px;
	font-size: 12px;
}

.media-dictate {
	flex-direction: column;
	gap: 14px;
	background: #1a1a1a;
}

.fake-field {
	width: 100%;
	border-radius: 10px;
	background: #232323;
	border: 1px solid #333;
	padding: 12px 14px;
	font-size: 13px;
	min-height: 110px;
}

.fake-field-label {
	color: rgb(255 255 255 / 0.62);
	padding-bottom: 8px;
	margin-bottom: 8px;
	border-bottom: 1px solid #333;
}

.fake-field p {
	color: #f2f2f2;
	line-height: 1.5;
}

.fake-field p::after {
	content: '';
	display: inline-block;
	width: 1.5px;
	height: 1em;
	margin-left: 1px;
	vertical-align: -0.15em;
	background: #fff;
	animation: blink 1s steps(1) infinite;
}

.dictate-pill {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgb(30 30 32 / 0.95);
	border: 1px solid rgb(255 255 255 / 0.12);
	font-size: 12px;
	color: rgb(255 255 255 / 0.75);
}

.dictate-pill kbd {
	background: rgb(255 255 255 / 0.08);
	border-color: rgb(255 255 255 / 0.18);
	color: #fff;
}

.rec {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--pink);
	animation: blink 1.2s steps(1) infinite;
}

.media-threads {
	padding: 0;
	align-items: stretch;
	justify-content: stretch;
	background: #1c1c1c;
}

.fake-threads {
	display: flex;
	width: 100%;
	font-size: 11.5px;
}

.fake-threads aside {
	width: 44%;
	padding: 14px 8px;
	background: #171717;
	border-right: 1px solid #2a2a2a;
}

.ft-group {
	color: rgb(255 255 255 / 0.62);
	font-size: 10.5px;
	font-weight: 600;
	padding: 8px 6px 4px;
}

.ft-group:first-child {
	padding-top: 0;
}

.ft-row {
	display: flex;
	justify-content: space-between;
	gap: 6px;
	padding: 4px 6px;
	border-radius: 5px;
	color: rgb(255 255 255 / 0.78);
	white-space: nowrap;
}

.ft-row span {
	overflow: hidden;
	text-overflow: ellipsis;
}

.ft-row em {
	font-style: normal;
	color: rgb(255 255 255 / 0.62);
}

.ft-row.active {
	background: rgb(255 255 255 / 0.08);
}

.ft-main {
	flex: 1;
	padding: 14px 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.ft-user {
	align-self: flex-end;
	background: #2b2b2b;
	padding: 5px 9px;
	border-radius: 10px;
	color: #eee;
	max-width: 95%;
}

.ft-worked {
	color: rgb(255 255 255 / 0.62);
}

.ft-reply {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.ft-reply span {
	height: 6px;
	border-radius: 3px;
	background: rgb(255 255 255 / 0.14);
}

.ft-reply .short {
	width: 60%;
}

.ft-task {
	margin-top: auto;
	border: 1px solid #333;
	border-radius: 8px;
	padding: 7px 9px;
	color: rgb(255 255 255 / 0.75);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ft-task b {
	color: rgb(255 255 255 / 0.62);
	font-weight: 500;
	margin-right: 4px;
}

.ft-task i {
	font-style: normal;
	background: var(--brand);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	margin-left: 4px;
}

/* Pipeline */
.pipeline {
	list-style: none;
	margin: 0 0 56px;
	padding: 0;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg-raised);
	font-size: 14px;
	counter-reset: p;
}

.pipeline li {
	display: grid;
	grid-template-columns: 2.5em 5.5em 1fr;
	gap: 12px;
	align-items: baseline;
	padding: 14px 20px;
	border-bottom: 1px solid var(--border);
	counter-increment: p;
}

.pipeline li:last-child {
	border-bottom: 0;
}

.pipeline li::before {
	content: counter(p, decimal-leading-zero);
	color: var(--text-faint);
}

.pk {
	color: var(--text-strong);
	font-weight: 600;
}

@media (max-width: 560px) {
	.pipeline li {
		grid-template-columns: 2em 1fr;
	}
	.pipeline li > span:last-child {
		grid-column: 2;
	}
}

.split {
	display: grid;
	grid-template-columns: 1fr 1.15fr;
	gap: 48px;
	align-items: start;
}

.split-copy {
	display: flex;
	flex-direction: column;
}

.split-copy p {
	font-size: 15px;
	margin-bottom: 28px;
}

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

@media (max-width: 860px) {
	.split {
		grid-template-columns: 1fr;
	}
}

.shot {
	margin: 0;
	border: 1px solid var(--border);
	border-radius: 12px;
	overflow: hidden;
	background: #1f1f1f;
	box-shadow: 0 20px 50px -20px rgb(0 0 0 / 0.35);
}

.shot-wide {
	margin-top: 56px;
	max-width: 760px;
}

/* Steps */
.steps {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--border);
}

.steps li {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	padding: 28px 0;
	border-bottom: 1px solid var(--border);
}

.step-n {
	color: var(--text-faint);
	font-size: 14px;
	padding-top: 2px;
}

.steps p {
	font-size: 15px;
	margin-bottom: 16px;
}

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

.cmd {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 560px;
	border: 1px solid var(--border);
	border-radius: 6px;
	background: var(--bg-raised);
	padding: 10px 10px 10px 14px;
}

.cmd code {
	flex: 1;
	min-width: 0;
	overflow-x: auto;
	white-space: nowrap;
	background: none;
	border: 0;
	padding: 0;
	font-size: 13.5px;
}

.cmd code::before {
	content: '$ ';
	color: var(--text-faint);
}

.copy {
	flex: none;
	font-size: 12px;
	height: 26px;
	padding: 0 10px;
	border-radius: 4px;
	border: 1px solid var(--border-strong);
	background: transparent;
	color: var(--text-strong);
	cursor: pointer;
}

.copy:hover {
	background: var(--bg-weak);
}

/* Shortcuts */
.keys {
	width: 100%;
	max-width: 720px;
	border-collapse: collapse;
	font-size: 15px;
}

.keys td {
	padding: 12px 0;
	border-bottom: 1px solid var(--border);
	vertical-align: baseline;
}

.keys tr:first-child td {
	border-top: 1px solid var(--border);
}

.keys td:first-child {
	width: 190px;
	font-size: 13px;
	color: var(--text-muted);
	white-space: nowrap;
}

.keys kbd {
	min-width: 28px;
	font-size: 13px;
	line-height: 24px;
	padding: 0 7px;
}

.keys td:last-child {
	text-align: right;
	white-space: nowrap;
}

.keys-gesture {
	margin-left: 6px;
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--text-faint);
}

.keys-tag {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--text-faint);
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 2px 8px;
}

@media (max-width: 560px) {
	.keys td:first-child {
		width: 150px;
	}

	.keys td:last-child {
		display: none;
	}
}

/* FAQ */
.faq {
	max-width: 760px;
	border-top: 1px solid var(--border);
}

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

.faq summary {
	list-style: none;
	cursor: pointer;
	padding: 18px 32px 18px 0;
	position: relative;
	color: var(--text-strong);
	font-weight: 500;
}

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

.faq summary::after {
	content: '+';
	position: absolute;
	right: 4px;
	top: 16px;
	font-family: var(--font-mono);
	color: var(--text-faint);
	font-size: 18px;
}

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

.faq details p {
	padding: 0 32px 20px 0;
	font-size: 15px;
}

/* CTA */
.cta {
	padding: clamp(64px, 9vw, 112px) var(--pad);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 14px;
	border-bottom: 1px solid var(--border);
}

.cta img {
	margin-bottom: 8px;
}

.cta h2 {
	font-size: clamp(26px, 3.4vw, 38px);
	letter-spacing: -0.025em;
}

.cta p {
	font-size: 17px;
	margin-bottom: 12px;
}

/* Footer */
.footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
	padding: 24px var(--pad) 40px;
	font-size: 12.5px;
	color: var(--text-muted);
}

.footer nav {
	display: flex;
	gap: 16px;
}

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

.footer a:hover {
	color: var(--text-strong);
}

.footer .muted {
	margin-left: auto;
}

@media (max-width: 720px) {
	.footer .muted {
		margin-left: 0;
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
	html {
		scroll-behavior: auto;
	}
}

/* Shared pixel-art motion */
@keyframes pixel-hop {
	40% {
		transform: translateY(-10px) scaleY(1.06);
	}
	80% {
		transform: translateY(0) scaleY(0.92);
	}
}

@keyframes pixel-blink {
	0%,
	94%,
	100% {
		transform: scaleY(1);
	}
	97% {
		transform: scaleY(0.15);
	}
}

/* Clawd, Claude Code's mascot, next to "Install Claude Code": pixel art (18 × 10 grid of half-width pixels, like
   the terminal original) */
.clawd-art {
	display: block;
	overflow: visible;
	fill: #d97757;
}

.clawd-eyes rect {
	fill: #141414;
	transform-box: fill-box;
	transform-origin: center;
	animation: pixel-blink 5s infinite;
}

.with-mascot {
	display: flex;
	align-items: center;
	gap: 10px;
}

.clawd-mini {
	flex: none;
	width: 29px;
	height: 16px;
}

.mascot-mini {
	flex: none;
	width: 18px;
	height: 19px;
}

.with-mascot:hover .clawd-mini,
.with-mascot:hover .mascot-mini {
	animation: pixel-hop 0.45s cubic-bezier(0.3, 0.7, 0.4, 1);
}

/* Bol (also the logo): 16 × 17 pixel art at 3px a pixel, perched on the right end of the voice bar.
   Same pixel map as assets/bol.svg and assets/make-icon.swift. */
.mascot {
	position: absolute;
	right: 22px;
	bottom: calc(100% - 2px);
	width: 48px;
	height: 51px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

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

.mascot-art {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
	transform-origin: 60% 100%;
}

.mascot-eye,
.mascot-jaw {
	transform-box: fill-box;
	transform-origin: center;
}

.mascot-eye {
	animation: pixel-blink 4.2s infinite 1.3s;
}

/* Listening: cocks its head at you */
.hud[data-phase='listening'] .mascot:not(.is-hopping) .mascot-art {
	animation: mascot-tilt 1.2s steps(1) infinite;
}

/* Working: looks around */
.hud[data-phase='thinking'] .mascot:not(.is-hopping) .mascot-art,
.hud[data-phase='looking'] .mascot:not(.is-hopping) .mascot-art {
	animation: mascot-peck 2.6s steps(1) infinite;
}

/* Speaking: chatters along */
.hud[data-phase='speaking'] .mascot-jaw {
	animation: mascot-chatter 0.36s steps(1) infinite;
}

.hud[data-phase='speaking'] .mascot:not(.is-hopping) .mascot-art {
	animation: mascot-bob 0.72s steps(1) infinite;
}

.mascot.is-hopping .mascot-art {
	animation: pixel-hop 0.45s cubic-bezier(0.3, 0.7, 0.4, 1) 2;
}

/* What it says when clicked */
.mascot-say {
	position: absolute;
	bottom: calc(100% + 6px);
	left: 50%;
	padding: 3px 8px;
	border-radius: 6px;
	background: #f2f2f2;
	color: #141414;
	font-size: 11px;
	white-space: nowrap;
	opacity: 0;
	transform: translate(-50%, 4px);
	transition:
		opacity 0.2s ease,
		transform 0.2s ease;
	pointer-events: none;
}

.mascot-say::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	border: 4px solid transparent;
	border-top-color: #f2f2f2;
	transform: translateX(-50%);
}

.mascot-say.is-shown {
	opacity: 1;
	transform: translate(-50%, 0);
}

@keyframes mascot-chatter {
	50% {
		transform: translateY(1px);
	}
}

@keyframes mascot-bob {
	50% {
		transform: translateY(-1px);
	}
}

@keyframes mascot-tilt {
	0% {
		transform: rotate(0);
	}
	50% {
		transform: rotate(-7deg);
	}
}

@keyframes mascot-peck {
	0%,
	60% {
		transform: rotate(0);
	}
	70% {
		transform: rotate(8deg);
	}
	80% {
		transform: rotate(0);
	}
	90% {
		transform: rotate(8deg);
	}
}

/* 404 page */
.not-found {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: var(--pad);
	text-align: center;
}

.not-found .lead {
	max-width: 440px;
}

.not-found-mascot {
	image-rendering: pixelated;
	animation: pixel-hop 0.45s cubic-bezier(0.3, 0.7, 0.4, 1) 0.4s 2;
}

/* Privacy and Terms */
.legal {
	max-width: 680px;
	padding: clamp(40px, 7vw, 72px) var(--pad) clamp(56px, 8vw, 96px);
}

.legal h1 {
	margin: 12px 0 18px;
}

.legal h2 {
	margin: 40px 0 10px;
	font-size: 19px;
}

.legal p,
.legal li {
	line-height: 1.65;
}

.legal p + p,
.legal ul + p {
	margin-top: 12px;
}

.legal ul {
	margin: 10px 0 0;
	padding-left: 20px;
	display: grid;
	gap: 8px;
}

.legal a {
	color: var(--text-strong);
	text-decoration: underline;
	text-decoration-color: var(--border-strong);
	text-underline-offset: 3px;
}

.legal a:hover {
	text-decoration-color: currentColor;
}

.legal strong {
	color: var(--text-strong);
	font-weight: 600;
}

.not-found-links {
	display: flex;
	gap: 16px;
	margin-top: 8px;
	font-size: 12.5px;
}

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

.not-found-links a:hover {
	color: var(--text-strong);
}
