/* Sonic Supernova -- marketing site. Sections follow the page top to bottom. */

/* ── fonts ────────────────────────────────────────────────────────────────
 * Self-hosted, so a visitor's browser contacts nothing but this origin.
 *
 * The two faces used above the fold are preloaded and set to `block` rather
 * than `swap`, so text is never painted in the wrong metrics.
 *
 * Measure caps are in `em`, never `ch`. A `ch` is the width of the active
 * font's zero -- 0.951em in Michroma, 0.648em in Atkinson, far less in a
 * system fallback -- so a `ch` cap shrinks its own box whenever the webfont
 * is missing or still loading, and the headline rewraps. The `em` values
 * here are the design's `ch` values converted at those ratios: identical
 * when the fonts load, stable when they do not.
 */
@font-face {
	font-family: 'Atkinson Hyperlegible Next';
	font-style: normal;
	font-weight: 400 800;
	font-display: block;
	src: url('fonts/atkinson-hyperlegible-next-var-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: 'Atkinson Hyperlegible Next';
	font-style: normal;
	font-weight: 400 800;
	font-display: block;
	src: url('fonts/atkinson-hyperlegible-next-var-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-20C0, U+2113, U+2C60-2C7F,
		U+A720-A7FF;
}
@font-face {
	font-family: 'IBM Plex Mono';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('fonts/ibm-plex-mono-400-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'IBM Plex Mono';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('fonts/ibm-plex-mono-400-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-20C0, U+2113, U+2C60-2C7F,
		U+A720-A7FF;
}
@font-face {
	font-family: 'IBM Plex Mono';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('fonts/ibm-plex-mono-600-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'IBM Plex Mono';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('fonts/ibm-plex-mono-600-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-20C0, U+2113, U+2C60-2C7F,
		U+A720-A7FF;
}
@font-face {
	font-family: 'Michroma';
	font-style: normal;
	font-weight: 400;
	font-display: block;
	src: url('fonts/michroma-400-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Michroma';
	font-style: normal;
	font-weight: 400;
	font-display: block;
	src: url('fonts/michroma-400-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-20C0, U+2113, U+2C60-2C7F,
		U+A720-A7FF;
}

:root,
[data-theme="dark"] {
	--bg:#0c0b14;
	--bg2:#110f1a;
	--bg3:#07060d;
	--panel:#13111d;
	--panel2:#1a1726;
	--chip:#231f32;
	--seg:#1a1726;
	--line:#231f33;
	--line2:#2d2840;
	--text:#ece9f5;
	--soft:#c9c4da;
	--mute:#a7a1bd;
	--dim:#968fae;
	--faint:#5f587a;
	--btn:#ece9f5;
	--btn-fg:#0c0b14;
	--btn-h:#ffffff;
	--link:oklch(0.82 0.14 220);
	--hdr:rgba(12,11,20,0.82);
	--disc:#0c0b14;
	--shadow:0 60px 120px -40px rgba(0,0,0,0.8);
	--on-acc:#0c0b14;
	--err:oklch(0.76 0.18 20);
	--com:#8b85a5;
	--api:oklch(0.82 0.1 195);
	--found:oklch(0.84 0.015 280);
	--gain:oklch(0.86 0.13 80);
	--pan:oklch(0.8 0.13 220);
	--trem:oklch(0.82 0.13 165);
	--crush:oklch(0.76 0.15 30);
	--dist:oklch(0.72 0.22 345);
	--delay:oklch(0.72 0.19 295);
	--filter:oklch(0.84 0.14 110);
	--scope:oklch(0.84 0.13 60);
	--spec:oklch(0.82 0.11 190);
	--comp:oklch(0.72 0.18 15);
	--cpp:oklch(0.76 0.15 262);
	--ship:oklch(0.82 0.15 145);
	--brand-grad:linear-gradient(90deg, oklch(0.72 0.24 345), oklch(0.68 0.22 295) 45%, oklch(0.82 0.14 220));
	--nebula:radial-gradient(70% 55% at 50% 62%, oklch(0.38 0.15 295 / .32), transparent 72%);
	--nebula2:radial-gradient(55% 70% at 50% 100%, oklch(0.42 0.16 295 / .32), transparent 70%);
	--i-bg:#1e1f22;
	--i-panel:#2b2d30;
	--i-side:#27282b;
	--i-deep:#191a1c;
	--i-line:#393b40;
	--i-line2:#43454a;
	--i-input:#4e5157;
	--i-text:#dfe1e5;
	--i-soft:#b4b8bf;
	--i-mute:#9da0a8;
	--i-faint:#6f737a;
	--i-sel:#2e436e;
	--i-selcard:#2e3a52;
	--i-run:#25324a;
	--i-accent:#548af7;
	--i-ok:#5fb865;
	--i-err:oklch(0.78 0.15 22);
	--i-code:#bcbec4;
	--i-com:#7a7e85;
	--i-shadow:0 24px 60px rgba(0,0,0,0.5);
	color-scheme:dark;
	--conic:conic-gradient(from 20deg, oklch(0.68 0.26 345), oklch(0.58 0.25 295), oklch(0.8 0.15 220), oklch(0.88 0.15 80), oklch(0.68 0.26 345));
	--i-icon:#CED0D6;
}

[data-theme="light"] {
	--bg:#f4f3f8;
	--bg2:#ffffff;
	--bg3:#eceaf2;
	--panel:#ffffff;
	--panel2:#efedf5;
	--chip:#e6e3ee;
	--seg:#e6e3ee;
	--line:#dcd8e6;
	--line2:#cfcbdb;
	--text:#16131f;
	--soft:#2e2a3d;
	--mute:#454057;
	--dim:#5e5872;
	--faint:#8f88a3;
	--btn:#16131f;
	--btn-fg:#ffffff;
	--btn-h:#2e2a3d;
	--link:oklch(0.48 0.2 295);
	--hdr:rgba(244,243,248,0.84);
	--disc:#16131f;
	--shadow:0 50px 100px -40px rgba(22,19,31,0.35);
	--on-acc:#ffffff;
	--err:oklch(0.52 0.19 20);
	--com:#6c6680;
	--api:oklch(0.46 0.1 195);
	--found:oklch(0.38 0.02 280);
	--gain:oklch(0.5 0.12 70);
	--pan:oklch(0.47 0.12 235);
	--trem:oklch(0.47 0.1 165);
	--crush:oklch(0.5 0.15 35);
	--dist:oklch(0.5 0.21 350);
	--delay:oklch(0.5 0.2 295);
	--filter:oklch(0.5 0.12 115);
	--scope:oklch(0.52 0.12 60);
	--spec:oklch(0.48 0.09 195);
	--comp:oklch(0.52 0.18 20);
	--cpp:oklch(0.48 0.17 265);
	--ship:oklch(0.48 0.12 150);
	--brand-grad:linear-gradient(90deg, oklch(0.55 0.25 345), oklch(0.48 0.24 295) 50%, oklch(0.52 0.15 235));
	--nebula:radial-gradient(70% 55% at 50% 62%, oklch(0.82 0.08 295 / .45), transparent 72%);
	--nebula2:radial-gradient(55% 70% at 50% 100%, oklch(0.82 0.08 295 / .5), transparent 70%);
	--i-bg:#ffffff;
	--i-panel:#f7f8fa;
	--i-side:#f2f3f5;
	--i-deep:#f2f3f5;
	--i-line:#ebecf0;
	--i-line2:#dfe1e5;
	--i-input:#c9ccd6;
	--i-text:#1e1f22;
	--i-soft:#494b57;
	--i-mute:#6c707e;
	--i-faint:#a8adbd;
	--i-sel:#d4e2ff;
	--i-selcard:#edf3ff;
	--i-run:#edf3ff;
	--i-accent:#3574f0;
	--i-ok:#208a3c;
	--i-err:oklch(0.5 0.19 22);
	--i-code:#080808;
	--i-com:#8c8c8c;
	--i-shadow:0 24px 60px rgba(22,19,31,0.18);
	color-scheme:light;
	--i-icon:#6C707E;
}

/* ── base ─────────────────────────────────────────────────────────────── */
html,
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: 'Atkinson Hyperlegible Next', sans-serif;
	-webkit-font-smoothing: antialiased;
	scroll-behavior: smooth;
	transition: background-color 0.3s;
}
* {
	box-sizing: border-box;
}
a {
	color: var(--link);
	text-decoration: none;
}
a:hover {
	color: var(--text);
}
::selection {
	background: oklch(0.58 0.25 295);
	color: #fff;
}
button {
	font: inherit;
}
img,
svg {
	display: block;
}
@media (prefers-reduced-motion: reduce) {
	html,
	body {
		scroll-behavior: auto;
	}
}
:focus-visible {
	outline: 2px solid var(--link);
	outline-offset: 3px;
	border-radius: 2px;
}
/* Off screen until it takes focus, then a real button under the header. */
.skip-link {
	position: absolute;
	left: 50%;
	top: 0;
	z-index: 30;
	transform: translate(-50%, -140%);
	padding: 10px 18px;
	border-radius: 0 0 10px 10px;
	background: var(--btn);
	color: var(--btn-fg);
	font-weight: 700;
	font-size: 14px;
}
.skip-link:focus-visible {
	transform: translate(-50%, 0);
	color: var(--btn-fg);
}

.page {
	min-height: 100vh;
	background: var(--bg);
	color: var(--text);
}

/* Jumping to a section from the nav puts its top edge at the viewport top,
 * where the 56px sticky header covers it. 28px of scroll margin drops the
 * section far enough that its 65px of padding clears the header with 37px
 * to spare, which is half the gap the design's 130px padding left. */
main > section[id] {
	scroll-margin-top: 28px;
}

.shell {
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 28px;
}

.mono {
	font-family: 'IBM Plex Mono', monospace;
}
.hl {
	color: var(--text);
}
.spacer {
	flex: 1;
}

/* The supernova disc: a conic gradient ring with a dark core. Four sizes. */
.disc {
	position: relative;
	display: block;
	flex: none;
}
.disc__glow,
.disc__ring,
.disc__core {
	position: absolute;
	border-radius: 50%;
}
.disc__glow,
.disc__ring {
	background: var(--conic);
}

/* ── header ───────────────────────────────────────────────────────────── */
.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: var(--hdr);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid rgba(95, 88, 122, 0.25);
}
.site-header .shell {
	height: 56px;
	display: flex;
	align-items: center;
	gap: 28px;
}
.brand {
	display: flex;
	align-items: center;
	gap: 11px;
	flex: none;
}
.brand .disc {
	width: 22px;
	height: 22px;
}
.brand .disc__glow {
	inset: -1px;
	filter: blur(3px);
}
.brand .disc__core {
	inset: 3px;
	background: var(--disc);
}
.wordmark {
	display: flex;
	gap: 0.6em;
	font-family: 'Michroma', sans-serif;
	font-size: 11.5px;
	letter-spacing: 0.08em;
	color: var(--text);
}
.wordmark__nova {
	background: var(--brand-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.site-nav {
	display: flex;
	gap: clamp(14px, 2vw, 26px);
	flex: 1;
	min-width: 0;
	justify-content: center;
	flex-wrap: nowrap;
	overflow-x: auto;
	white-space: nowrap;
	scrollbar-width: none;
	font-size: 14px;
}
.site-nav::-webkit-scrollbar {
	display: none;
}
.site-nav a {
	color: var(--soft);
}
.site-nav a:hover {
	color: var(--text);
}
.theme-toggle {
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 999px;
	border: 1px solid var(--line2);
	background: transparent;
	color: var(--text);
	cursor: pointer;
	display: grid;
	place-items: center;
}
.theme-toggle:hover {
	border-color: var(--text);
}
.theme-toggle__dial {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 1.5px solid currentColor;
	background: linear-gradient(90deg, currentColor 50%, transparent 50%);
	display: block;
}
.btn {
	display: inline-block;
	border-radius: 999px;
	background: var(--btn);
	color: var(--btn-fg);
	font-weight: 700;
}
.btn:hover {
	background: var(--btn-h);
	color: var(--btn-fg);
}
.btn--sm {
	flex: none;
	padding: 7px 14px;
	font-size: 13.5px;
}
.btn--md {
	padding: 13px 24px;
	font-size: 16px;
}
.btn--lg {
	padding: 14px 26px;
	font-size: 16.5px;
}
.btn-text {
	padding: 13px 8px;
	color: var(--link);
	font-weight: 600;
	font-size: 16px;
}
.btn-text:hover {
	color: var(--text);
}

/* ── hero ─────────────────────────────────────────────────────────────── */
.hero {
	position: relative;
	overflow: hidden;
	background: var(--nebula);
}
/* 65px and 440px are the values at a 1000px-tall viewport and the maximum
 * anywhere; on a shorter window the hero compresses so the animation is
 * still on screen when the page opens. The lead-in is the design's 112px,
 * tightened so the whole hero clears the fold on a laptop. */
.hero .shell {
	padding: clamp(32px, 6.5vh, 65px) 28px 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	text-align: center;
}
.hero__eyebrow {
	margin: 0;
	font-size: 17px;
	color: var(--soft);
}
.hero__title {
	margin: 0;
	max-width: 16.2em;
	font-family: 'Michroma', sans-serif;
	font-weight: 400;
	font-size: clamp(34px, 5.6vw, 70px);
	line-height: 1.1;
	letter-spacing: -0.005em;
	text-wrap: balance;
}
.hero__lede {
	margin: 0;
	max-width: 35.0em;
	font-size: 19px;
	line-height: 1.55;
	color: var(--mute);
	text-wrap: pretty;
}
.hero__actions {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	justify-content: center;
	margin-top: 6px;
}
.hero__stage {
	position: relative;
	width: 100%;
	max-width: 1400px;
	/* The visible gap below the buttons is this margin plus the canvas's own
	 * headroom -- 96.8px of the 440px canvas, since the waveform is centred at
	 * 0.46 of the height with an amplitude of 0.24. The margin is spent: the
	 * gap is down from the design's 133px to that 96.8px, and anything
	 * further has to come out of the canvas. */
	margin: 0 auto;
	height: clamp(300px, 44vh, 440px);
}
.hero__canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
}
.hero__star {
	position: absolute;
	left: 50%;
	top: 46%;
	width: 168px;
	height: 168px;
	margin: -84px 0 0 -84px;
	pointer-events: none;
}
.hero__star .disc__glow {
	inset: 2px;
	filter: blur(22px);
	opacity: 0.85;
}
.hero__star .disc__ring {
	inset: 18px;
}
.hero__star .disc__core {
	inset: 23px;
	background: radial-gradient(circle at 42% 58%, #191528 0%, #0c0b14 70%);
}
.hero__star .disc__spark {
	position: absolute;
	right: 31px;
	top: 23px;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: #fff;
	box-shadow:
		0 0 10px 3px #fff,
		0 0 30px 10px oklch(0.88 0.15 80);
}

/* ── introduction ─────────────────────────────────────────────────────── */
.intro {
	background: var(--bg);
}
.intro .shell {
	max-width: 1000px;
	padding: 60px 28px 70px;
}
.intro p {
	margin: 0;
	font-size: clamp(24px, 3.1vw, 38px);
	line-height: 1.35;
	font-weight: 700;
	letter-spacing: -0.015em;
	color: var(--faint);
	text-wrap: pretty;
}

/* ── shared section furniture ─────────────────────────────────────────── */
.section-head {
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.section-head--center {
	align-items: center;
	text-align: center;
}
.h2 {
	margin: 0;
	font-family: 'Michroma', sans-serif;
	font-weight: 400;
	font-size: clamp(28px, 3.8vw, 48px);
	line-height: 1.15;
	text-wrap: balance;
}
.section-head p {
	margin: 0;
	font-size: 18px;
	line-height: 1.55;
	color: var(--mute);
	text-wrap: pretty;
}

/* ── route ────────────────────────────────────────────────────────────── */
.route {
	background: var(--bg);
	border-top: 1px solid var(--panel2);
}
.route .shell {
	padding: 60px 28px;
	display: flex;
	flex-direction: column;
	gap: 56px;
}
.route__head {
	max-width: 37.6em;
}
.route__key {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
	justify-content: center;
	font-size: 14px;
	color: var(--mute);
}
.route__key > span {
	display: flex;
	align-items: center;
	gap: 8px;
}
.key-dot--juce {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: 2px solid var(--text);
}
.key-dot--cpp {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--cpp);
}
.key-dot--ship,
.ship-dot {
	width: 9px;
	height: 9px;
	transform: rotate(45deg);
	border: 2px solid var(--ship);
}
.stages {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--panel);
	overflow: hidden;
}
.stage {
	display: flex;
	flex-direction: column;
	border-right: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	min-width: 0;
}
.stage__head {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 22px 18px 14px;
}
.stage__n {
	font-size: 13px;
	color: var(--dim);
}
.stage__title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
}
.stage__desc {
	font-size: 14px;
	color: var(--mute);
	line-height: 1.45;
	text-wrap: pretty;
}
.stage__stations {
	display: flex;
	flex-direction: column;
	padding: 4px 8px 12px;
}
.station {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr) auto;
	align-items: center;
	gap: 0 8px;
	padding: 6px 8px;
	min-height: 32px;
}
.station__mark {
	display: grid;
	place-items: center;
}
.station__dot {
	border-radius: 50%;
	background: transparent;
}
.station--juce .station__dot {
	width: 12px;
	height: 12px;
	border: 2px solid var(--station);
}
.station--cpp .station__dot {
	width: 7px;
	height: 7px;
	background: var(--cpp);
	border: 0;
}
.station__label {
	display: flex;
	align-items: baseline;
	gap: 8px;
	min-width: 0;
}
.station__n {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	font-weight: 600;
	min-width: 24px;
}
.station--juce .station__n {
	color: var(--station);
}
.station--cpp .station__n {
	color: var(--cpp);
}
.station__name {
	line-height: 1.3;
}
.station--juce .station__name {
	font-size: 15px;
	font-weight: 700;
	color: var(--text);
}
.station--cpp .station__name {
	font-size: 13.5px;
	font-weight: 400;
	color: var(--mute);
}
.stage__ships {
	margin-top: auto;
	display: flex;
	flex-direction: column;
	padding: 10px 8px 14px;
	border-top: 1px dashed var(--line2);
}
.stage__ships-title {
	font-size: 12.5px;
	color: var(--ship);
	padding: 0 8px 6px;
}
.ship-row {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr);
	align-items: center;
	gap: 0 8px;
	padding: 5px 8px;
}
.ship-row__mark {
	display: grid;
	place-items: center;
}
.ship-row__label {
	display: flex;
	align-items: baseline;
	gap: 8px;
	min-width: 0;
}
.ship-row__n {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	font-weight: 600;
	color: var(--ship);
	min-width: 24px;
}
.ship-row__name {
	font-size: 14px;
	line-height: 1.3;
	color: var(--text);
}

/* ── method ───────────────────────────────────────────────────────────── */
.method {
	background: var(--bg2);
	color: var(--text);
}
.method .shell {
	padding: 65px 28px;
	display: flex;
	flex-direction: column;
	gap: 72px;
}
.method__head {
	max-width: 760px;
}
.method__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 56px 64px;
}
.method__item {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-top: 22px;
	border-top: 1px solid var(--line2);
}
.method__item h3 {
	margin: 0;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.015em;
}
.method__item p {
	margin: 0;
	font-size: 17px;
	line-height: 1.6;
	color: var(--mute);
	text-wrap: pretty;
}

/* ── lessons ──────────────────────────────────────────────────────────── */
.lessons {
	background: var(--bg);
}
.lessons .shell {
	padding: 65px 28px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 40px;
}
.lessons__head {
	max-width: 36.3em;
}
.segmented {
	display: flex;
	gap: 4px;
	padding: 4px;
	border-radius: 999px;
	background: var(--panel2);
	border: 1px solid var(--line2);
}
.segmented__tab {
	padding: 9px 20px;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 700;
	background: transparent;
	color: var(--soft);
}
.segmented__tab[aria-selected='true'] {
	background: var(--btn);
	color: var(--btn-fg);
}
.figure {
	margin: 0;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 22px;
}
.figure figcaption {
	max-width: 40.2em;
	align-self: center;
	text-align: center;
	font-size: 16px;
	line-height: 1.55;
	color: var(--mute);
	text-wrap: pretty;
}
.mock {
	width: 100%;
	border: 1px solid var(--line2);
	border-radius: 14px;
	background: var(--panel);
	overflow: hidden;
	box-shadow: var(--shadow);
}
.mock__bar {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 0 16px;
	height: 48px;
	border-bottom: 1px solid var(--line);
}
.mock__bar .disc {
	width: 18px;
	height: 18px;
}
.mock__bar .disc__glow {
	inset: -1px;
	filter: blur(2px);
}
.mock__bar .disc__core {
	inset: 3px;
	background: var(--panel);
}
.mock__num {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--mod-accent);
}
.mock__name {
	font-size: 14.5px;
	font-weight: 700;
}
.mock__chips {
	display: flex;
	gap: 3px;
	padding: 3px;
	border: 1px solid var(--line);
	border-radius: 5px;
	background: var(--bg);
	font-size: 12.5px;
}
.mock__chip {
	padding: 4px 11px;
	border-radius: 3px;
	color: var(--dim);
}
.mock__chip--on {
	background: var(--chip);
	color: var(--text);
}
/* Below their design width the mock panels scroll rather than squeeze, so
 * the page itself never scrolls sideways. */
.mock__scroll {
	overflow-x: auto;
}

/* inset "screen": the dark visualisation surfaces, fixed in both themes */
.screen {
	position: relative;
	border-radius: 8px;
	background: #07060d;
	border: 1px solid #1f1c30;
	overflow: hidden;
}
.screen svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.screen__tag {
	position: absolute;
	font-family: 'IBM Plex Mono', monospace;
	color: #8f89aa;
}

/* theory */
.theory {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
	min-width: 640px;
}
.theory__main {
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	border-right: 1px solid var(--line);
	min-width: 0;
}
.theory__scene {
	height: 300px;
}
.theory__formula {
	position: absolute;
	left: 14px;
	top: 12px;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 13px;
	color: var(--soft);
}
.theory__settings {
	right: 14px;
	bottom: 12px;
	font-size: 12px;
}
.theory__progress {
	display: grid;
	grid-template-columns: 2fr 3fr 2fr 2fr;
	gap: 4px;
}
.theory__progress span {
	height: 4px;
	border-radius: 2px;
	background: var(--line);
}
.theory__progress span:first-child {
	background: var(--trem);
}
.theory__progress span:nth-child(2) {
	background: linear-gradient(90deg, var(--trem) 55%, var(--line) 55%);
}
.theory__chapter {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.theory__chapter-name {
	font-size: 14px;
	font-weight: 700;
}
.depth {
	display: flex;
	gap: 2px;
	font-size: 12.5px;
	border: 1px solid var(--line);
	border-radius: 4px;
	padding: 2px;
}
.depth span {
	padding: 3px 9px;
	color: var(--dim);
}
.depth span.is-on {
	background: var(--chip);
	border-radius: 3px;
	color: inherit;
}
.theory__text {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--soft);
}
.theory__side {
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}
.side-label {
	font-size: 13px;
	font-weight: 700;
	color: var(--soft);
}
.warmup {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 14px;
	border-radius: 8px;
	background: var(--panel2);
}
.warmup__q {
	font-size: 14.5px;
	line-height: 1.45;
}
.warmup__opts {
	display: flex;
	flex-direction: column;
	gap: 5px;
	font-size: 13.5px;
}
.warmup__opt {
	padding: 7px 10px;
	border-radius: 5px;
	border: 1px solid var(--line2);
	color: var(--mute);
}
.warmup__opt--right {
	border: 1px solid var(--trem);
	background: oklch(0.82 0.13 165 / 0.1);
	color: inherit;
}
.prereqs {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.prereqs__list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13.5px;
	line-height: 1.45;
	color: var(--mute);
}
.prereqs__list b {
	color: var(--text);
	font-weight: 700;
}
.mathbox {
	margin-top: auto;
	padding: 12px;
	border-radius: 8px;
	background: #07060d;
	border: 1px solid #1f1c30;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12.5px;
	line-height: 1.7;
	color: var(--soft);
}
.mathbox__label {
	color: #8f89aa;
}
.mathbox__code {
	color: var(--trem);
}

/* practice */
.practice__steps {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	padding: 10px 16px;
	border-bottom: 1px solid var(--line);
	font-size: 13px;
}
.step-chip {
	padding: 5px 11px;
	border-radius: 4px;
	border: 1px solid var(--line2);
	color: var(--mute);
}
.step-chip--on {
	border: 0;
	background: var(--trem);
	color: var(--on-acc);
	font-weight: 700;
}
.step-chip--todo {
	border: 1px dashed var(--line2);
	color: var(--dim);
}
.practice__run {
	padding: 6px 14px;
	border-radius: 4px;
	background: var(--btn);
	color: var(--btn-fg);
	font-weight: 700;
}
.practice {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(250px, 1fr);
	min-width: 640px;
}
.practice__code {
	padding: 14px 0;
	background: var(--bg);
	font-family: 'IBM Plex Mono', monospace;
	font-size: 13.5px;
	line-height: 1.8;
	border-right: 1px solid var(--line);
	overflow: hidden;
	min-width: 0;
}
.code-line {
	display: flex;
	gap: 14px;
	padding: 0 16px;
	white-space: pre;
}
.code-line--bad {
	background: oklch(0.7 0.2 20 / 0.14);
	box-shadow: inset 2px 0 0 var(--err);
}
.code-line__n {
	color: var(--faint);
	width: 18px;
	text-align: right;
	flex: none;
}
.code-com {
	color: var(--com);
}
.practice__note {
	margin: 14px 16px 0;
	padding: 10px 12px;
	border-radius: 6px;
	background: var(--panel2);
	color: var(--soft);
	font-size: 12.5px;
	line-height: 1.55;
	white-space: normal;
}
.practice__note b {
	color: var(--err);
	font-weight: inherit;
}
.practice__side {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}
.checks {
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 13.5px;
	line-height: 1.4;
}
.checks > span {
	display: flex;
	gap: 9px;
}
.tick {
	color: var(--trem);
}
.cross {
	color: var(--err);
}
.practice__scope {
	height: 120px;
	margin-top: auto;
	border-radius: 6px;
}
.practice__scope .screen__tag {
	left: 10px;
	top: 8px;
	font-size: 11.5px;
}

/* visualizers */
.viz {
	padding: 18px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 220px;
	gap: 16px;
	min-width: 640px;
}
.viz__main {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}
.viz__scene {
	height: 250px;
}
.viz__scene .screen__tag {
	left: 12px;
	top: 10px;
	font-size: 12px;
}
.viz__steps {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.viz__steps-label {
	font-size: 13px;
	color: var(--mute);
}
.viz__samples {
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	gap: 4px;
}
.sample {
	height: 36px;
	border-radius: 4px;
	background: var(--panel2);
	border: 1px solid var(--line);
	display: grid;
	place-items: center;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	color: var(--dim);
}
.sample--on {
	border-color: var(--pan);
	color: var(--text);
}
.viz__side {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.meter {
	display: flex;
	flex-direction: column;
	gap: 7px;
}
.meter__row {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
}
.meter__row span:first-child {
	color: var(--mute);
}
.meter__track {
	height: 4px;
	border-radius: 2px;
	background: var(--line);
	position: relative;
	display: block;
}
.meter__fill {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	background: var(--pan);
	border-radius: 2px;
}
.ear {
	margin-top: auto;
	padding: 14px;
	border-radius: 8px;
	background: var(--panel2);
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.ear__q {
	font-size: 14.5px;
	line-height: 1.4;
}
.ear__opts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	font-size: 13.5px;
}
.ear__opts span {
	padding: 7px;
	text-align: center;
	border-radius: 5px;
	border: 1px solid var(--line2);
	color: var(--mute);
}

/* ── C++ ──────────────────────────────────────────────────────────────── */
.cpp {
	background: var(--bg3);
	border-top: 1px solid var(--panel2);
}
.cpp .shell {
	padding: 65px 28px;
	display: flex;
	flex-direction: column;
	gap: 64px;
}
.cpp__head {
	max-width: 780px;
}
.cpp__head p {
	line-height: 1.6;
}
.cpp__head code {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 16px;
	color: var(--text);
}
.cpp__cols {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr);
	gap: 40px;
	align-items: start;
}
.cpp__file {
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--bg);
	overflow: hidden;
}
.cpp__file-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--panel2);
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12.5px;
	color: var(--dim);
}
.cpp__code {
	padding: 16px 0;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 13.5px;
	line-height: 1.8;
	overflow-x: auto;
}
.cpp__line {
	display: flex;
	gap: 12px;
	padding: 0 16px 0 10px;
	white-space: pre;
	min-width: max-content;
}
.cpp__gutter {
	width: 20px;
	flex: none;
	display: grid;
	place-items: center;
}
.cpp__mark {
	width: 19px;
	height: 19px;
	border-radius: 50%;
	background: oklch(0.58 0.25 295);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	display: grid;
	place-items: center;
	line-height: 1;
}
.code-api {
	color: var(--api);
}
.cpp__notes {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 26px;
}
.cpp__notes li {
	display: grid;
	grid-template-columns: 26px minmax(0, 1fr);
	gap: 14px;
}
.cpp-note__i {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: oklch(0.58 0.25 295);
	color: #fff;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	font-weight: 600;
	display: grid;
	place-items: center;
}
.cpp-note__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.cpp-note__t {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--text);
}
.cpp-note__d {
	font-size: 16px;
	line-height: 1.55;
	color: var(--mute);
	text-wrap: pretty;
}
.cpp__track {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding-top: 48px;
	border-top: 1px solid var(--panel2);
}
.cpp__track-head {
	display: flex;
	align-items: baseline;
	gap: 16px;
	flex-wrap: wrap;
}
.cpp__track-head h3 {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.01em;
}
.cpp__track-head span {
	font-size: 15.5px;
	color: var(--mute);
}
.cpp__mods {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 4px 40px;
}
.cpp-mod {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	gap: 10px;
	padding: 12px 0;
	border-bottom: 1px solid var(--panel2);
}
.cpp-mod__n {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 13px;
	font-weight: 600;
	color: var(--cpp);
}
.cpp-mod__body {
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.cpp-mod__name {
	font-size: 15.5px;
	font-weight: 700;
}
.cpp-mod__topics {
	font-size: 13.5px;
	line-height: 1.45;
	color: var(--dim);
}

/* ── CLion ────────────────────────────────────────────────────────────── */
.clion {
	background: var(--bg2);
	color: var(--text);
}
.clion .shell {
	padding: 65px 28px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 40px;
}
.clion__head p {
	max-width: 38.9em;
}
.clion__head .icon-plugin {
	width: 56px;
	height: 56px;
}
.segmented--ide {
	flex-wrap: wrap;
	justify-content: center;
	background: var(--seg);
	border: 0;
}
.segmented--ide .segmented__tab {
	padding: 9px 18px;
	font-size: 14.5px;
}
.clion .figure {
	gap: 24px;
}
.clion .figure figcaption {
	max-width: 41.5em;
	font-size: 16.5px;
}

/* why CLion */
.why {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding: clamp(24px, 4vw, 44px);
	border-radius: 16px;
	background: var(--bg);
	border: 1px solid var(--line);
}
.why__lede {
	margin: 0;
	max-width: 50.5em;
	font-size: 16.5px;
	line-height: 1.6;
	color: var(--mute);
	text-align: left;
	text-wrap: pretty;
}
.why__table {
	display: flex;
	flex-direction: column;
	border-top: 1px solid var(--line2);
	overflow-x: auto;
}
.why__row {
	display: grid;
	grid-template-columns: minmax(150px, 0.9fr) repeat(3, minmax(170px, 1fr));
	min-width: 720px;
}
.why__row + .why__row {
	border-top: 1px solid var(--line);
}
.why__th {
	padding: 18px 16px;
	font-size: 17px;
	font-weight: 800;
}
.why__th:first-child {
	padding: 18px 16px 18px 0;
}
.why__th--ours {
	background: var(--panel);
	border-radius: 12px 12px 0 0;
	display: flex;
	align-items: center;
	gap: 10px;
}
.why__th--ours .icon-plugin {
	width: 20px;
	height: 20px;
}
.why__rh {
	padding: 16px 16px 16px 0;
	font-size: 15px;
	font-weight: 700;
}
.why__cell {
	padding: 16px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--mute);
}
.why__cell--ours {
	color: var(--text);
	background: var(--panel);
}
.why__row:last-child .why__cell--ours {
	border-radius: 0 0 12px 12px;
}
.why__points {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 32px 56px;
}
.why__point {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.why__point h3 {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.01em;
}
.why__point p {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: var(--mute);
	text-wrap: pretty;
}

/* ── the IDE mock ─────────────────────────────────────────────────────── */
.ide {
	width: 100%;
	border-radius: 12px;
	overflow: hidden;
	background: var(--i-bg);
	border: 1px solid var(--i-line);
	box-shadow: var(--shadow);
	color: var(--i-text);
	font-family: 'Atkinson Hyperlegible Next', sans-serif;
}
.ide__titlebar {
	height: 40px;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 0 14px;
	background: var(--i-panel);
	border-bottom: 1px solid var(--i-bg);
	font-size: 13px;
}
.ide__lights {
	display: flex;
	gap: 7px;
}
.ide__lights span {
	width: 12px;
	height: 12px;
	border-radius: 50%;
}
.ide__project {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: 8px;
}
.ide__badge {
	width: 20px;
	height: 20px;
	border-radius: 4px;
	background: oklch(0.5 0.12 165);
	color: #fff;
	font-size: 10.5px;
	font-weight: 700;
	display: grid;
	place-items: center;
}
.ide__project b {
	font-weight: 700;
}
.ide__caret {
	color: var(--i-faint);
}
.ide__dim {
	color: var(--i-mute);
}
.ide__play {
	width: 24px;
	height: 24px;
	border-radius: 4px;
	display: grid;
	place-items: center;
	color: var(--i-ok);
}
.ide__body {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	min-height: 560px;
}
.ide__rail {
	background: var(--i-panel);
	border-right: 1px solid var(--i-bg);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 14px 0;
}
.ide__rail .icon {
	opacity: 0.85;
}
.ide__rail .icon.is-on {
	opacity: 1;
}
.ide__pane {
	min-width: 0;
	display: flex;
	flex-direction: column;
}
.ide__pane-inner {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.ide__tabs {
	height: 34px;
	display: flex;
	align-items: end;
	gap: 2px;
	padding: 0 10px;
	background: var(--i-bg);
	border-bottom: 1px solid var(--i-line);
	font-size: 12.5px;
}
.ide__tab {
	padding: 7px 12px;
	color: var(--i-mute);
}
.ide__tab--on {
	color: var(--i-text);
	border-bottom: 2px solid #3574f0;
	display: flex;
	gap: 7px;
	align-items: center;
}
.ide__content {
	flex: 1;
	padding: 36px 32px;
	display: flex;
	justify-content: center;
}
.btn-ide {
	border-radius: 4px;
	border: 1px solid var(--i-input);
	padding: 5px 14px;
	white-space: nowrap;
}
.btn-ide--xs {
	padding: 4px 12px;
}
.btn-ide--sm {
	padding: 5px 12px;
	font-size: 12.5px;
}
.btn-ide--md {
	padding: 6px 14px;
	font-size: 13px;
}
.btn-ide--lg {
	padding: 7px 16px;
	font-size: 13.5px;
}
.btn-ide--primary {
	background: #3574f0;
	color: #fff;
	font-weight: 700;
	border: 0;
}

/* new-project wizard */
.wiz-wrap {
	flex: 1;
	display: grid;
	place-items: center;
	padding: 28px;
	background: var(--i-deep);
}
.wiz {
	width: 100%;
	max-width: 860px;
	border-radius: 10px;
	background: var(--i-panel);
	border: 1px solid var(--i-line2);
	box-shadow: var(--i-shadow);
	display: grid;
	grid-template-columns: 200px minmax(0, 1fr);
	overflow: hidden;
}
.wiz__side {
	background: var(--i-side);
	border-right: 1px solid var(--i-line);
	padding: 14px 8px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 13px;
}
.wiz__side-title {
	padding: 4px 10px 10px;
	font-weight: 700;
}
.wiz__item {
	padding: 6px 10px;
	color: var(--i-mute);
	display: flex;
	gap: 8px;
	align-items: center;
}
.wiz__item--on {
	border-radius: 5px;
	background: var(--i-sel);
	color: var(--i-text);
}
.wiz__main {
	padding: 18px 22px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	font-size: 13px;
	min-width: 0;
}
.wiz__fields {
	display: grid;
	grid-template-columns: 80px minmax(0, 1fr);
	gap: 8px 12px;
	align-items: center;
}
.wiz__fields > span:nth-child(odd) {
	color: var(--i-mute);
}
.wiz__input {
	padding: 5px 9px;
	border-radius: 4px;
	border: 1px solid var(--i-input);
	background: var(--i-bg);
}
.wiz__input--path {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
}
.wiz__group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.wiz__group > b {
	font-weight: 700;
}
.wiz__cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 8px;
}
.wiz__cards--wide {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.wiz-card {
	padding: 10px;
	border-radius: 6px;
	border: 1px solid var(--i-line2);
	display: flex;
	gap: 9px;
}
.wiz-card--on {
	border: 2px solid var(--i-accent);
	background: var(--i-selcard);
}
.wiz-card .icon {
	flex: none;
}
.wiz__cards:not(.wiz__cards--wide) .wiz-card .icon {
	margin-top: 1px;
}
.wiz-card__body {
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.wiz-card__t {
	font-weight: 700;
}
.wiz-card__d {
	color: var(--i-mute);
	font-size: 12px;
	line-height: 1.4;
}
/* Only the interface cards brighten their description when selected. */
.wiz__cards--wide .wiz-card--on .wiz-card__d {
	color: var(--i-soft);
}
.wiz__teach {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}
.wiz__toggle {
	display: flex;
	border: 1px solid var(--i-input);
	border-radius: 5px;
	overflow: hidden;
}
.wiz__toggle span {
	padding: 5px 12px;
	color: var(--i-soft);
}
.wiz__toggle span.is-on {
	background: #3574f0;
	color: #fff;
}
.wiz__footer {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	padding-top: 12px;
	border-top: 1px solid var(--i-line);
}
.wiz__summary {
	color: var(--i-mute);
	font-size: 12px;
}
.wiz__summary b {
	color: var(--i-text);
	font-weight: inherit;
}

/* first build */
.run {
	width: 100%;
	max-width: 680px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.run__meta {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	letter-spacing: 0.08em;
	color: var(--i-mute);
}
.run__head {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.ide-title {
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -0.01em;
}
.run__once {
	font-size: 15px;
	font-weight: 700;
	color: var(--trem);
}
.run__desc {
	font-size: 14px;
	line-height: 1.55;
	color: var(--i-soft);
}
.phases {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--i-line);
	border-radius: 8px;
	overflow: hidden;
}
.phase {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr) auto;
	gap: 10px;
	align-items: start;
	padding: 12px 14px;
	border-bottom: 1px solid var(--i-line);
}
.phase--on {
	background: var(--i-run);
}
.phase__icon {
	font-size: 14px;
}
.phase__icon--ok {
	color: var(--i-ok);
}
.phase__icon--now {
	color: var(--i-accent);
}
.phase__icon--todo {
	color: var(--i-faint);
}
.phase__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.phase__t {
	font-size: 14px;
}
.phase--on .phase__t {
	font-weight: 700;
}
.phase__note {
	font-size: 12.5px;
	color: var(--i-mute);
	line-height: 1.45;
}
.phase__time {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	color: var(--i-mute);
}
.run__log {
	padding: 10px 12px;
	border-radius: 6px;
	background: var(--i-deep);
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	color: var(--i-mute);
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}
.run__log span:first-child {
	color: var(--i-faint);
}
.run__actions,
.fail__actions,
.chk__actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

/* build errors */
.fail {
	width: 100%;
	max-width: 700px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.fail__pill {
	align-self: flex-start;
	padding: 3px 10px;
	border-radius: 999px;
	background: oklch(0.62 0.2 22 / 0.16);
	color: var(--i-err);
	font-size: 12px;
	font-weight: 700;
}
.fail__title {
	font-size: 24px;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -0.01em;
	text-wrap: balance;
}
.fail__sub {
	font-size: 15px;
	line-height: 1.55;
	color: var(--i-soft);
}
.fail__sub code {
	font-family: 'IBM Plex Mono', monospace;
	color: var(--i-text);
}
.fail__code {
	border-radius: 8px;
	background: var(--i-deep);
	border: 1px solid var(--i-line);
	padding: 10px 0;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 13px;
	line-height: 1.8;
}
.ide-line {
	display: flex;
	gap: 14px;
	padding: 0 14px;
	white-space: pre;
	color: var(--i-mute);
}
.ide-line--bad {
	background: oklch(0.62 0.2 22 / 0.12);
	color: var(--i-text);
}
.ide-line__n {
	width: 18px;
	text-align: right;
	color: var(--i-faint);
	flex: none;
}
.squiggle {
	text-decoration: underline wavy oklch(0.7 0.2 22);
	text-underline-offset: 4px;
}
.fail__more {
	padding-top: 14px;
	border-top: 1px solid var(--i-line);
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 13.5px;
	color: var(--i-mute);
}
.fail__more b {
	font-weight: 700;
	color: var(--i-soft);
}

/* toolchain doctor */
.doc {
	width: 100%;
	max-width: 720px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.doc__head {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	flex-wrap: wrap;
}
.doc__head-text {
	flex: 1;
	min-width: 240px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.doc__sub {
	font-size: 14px;
	color: var(--i-soft);
}
.doc__rows {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--i-line);
	border-radius: 8px;
	overflow: hidden;
}
.doc-row {
	display: grid;
	grid-template-columns: 86px minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
	padding: 13px 14px;
	border-bottom: 1px solid var(--i-line);
}
.doc-row__pill {
	justify-self: start;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 700;
}
.doc-row__pill--err {
	background: oklch(0.62 0.2 22 / 0.18);
	color: oklch(0.8 0.13 22);
}
.doc-row__pill--warn {
	background: oklch(0.64 0.13 70 / 0.2);
	color: oklch(0.85 0.12 75);
}
.doc-row__pill--ok {
	background: oklch(0.62 0.14 155 / 0.18);
	color: oklch(0.8 0.13 155);
}
.doc-row__pill--info {
	background: oklch(0.62 0.13 245 / 0.18);
	color: oklch(0.8 0.1 245);
}
[data-theme='light'] .doc-row__pill--err {
	color: oklch(0.48 0.19 22);
}
[data-theme='light'] .doc-row__pill--warn {
	color: oklch(0.45 0.11 70);
}
[data-theme='light'] .doc-row__pill--ok {
	color: oklch(0.44 0.12 155);
}
[data-theme='light'] .doc-row__pill--info {
	color: oklch(0.45 0.13 245);
}
.doc-row__body {
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.doc-row__t {
	font-size: 14px;
	font-weight: 700;
}
.doc-row__d {
	font-size: 13px;
	color: var(--i-mute);
	line-height: 1.45;
}

/* lesson checks */
.chk {
	flex: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
}
.chk__editor {
	display: flex;
	flex-direction: column;
	min-width: 0;
	border-right: 1px solid var(--i-line);
}
.chk__code {
	padding: 14px 0;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 13px;
	line-height: 1.85;
	overflow: hidden;
}
.chk__code .ide-line {
	gap: 16px;
	padding: 0 16px;
	color: var(--i-code);
}
.chk__code .ide-line--bad {
	background: rgba(207, 92, 92, 0.16);
}
.chk__code .ide-line__n {
	width: 20px;
}
.chk__code .code-com {
	color: var(--i-com);
}
.chk__panel {
	background: var(--i-panel);
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.chk__panel-bar {
	height: 34px;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 12px;
	border-bottom: 1px solid var(--i-bg);
	font-size: 12.5px;
	font-weight: 700;
}
.chk__body {
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	font-size: 13px;
}
.chk__project {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-left: 10px;
	border-left: 3px solid var(--trem);
}
.chk__project-name {
	font-weight: 700;
	font-size: 14px;
}
.chk__project-actions {
	display: flex;
	gap: 6px;
	margin-top: 4px;
}
.chk__lesson {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.micro {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 11.5px;
	letter-spacing: 0.1em;
	color: var(--i-mute);
}
.chk__lesson-name {
	font-weight: 700;
	font-size: 14px;
}
.chk__checks {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.chk__checks-head {
	display: flex;
	justify-content: space-between;
}
.chk__checks-head span:last-child {
	color: var(--i-soft);
}
.chk__check {
	display: flex;
	gap: 8px;
}
.chk__fail {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 10px;
	border-radius: 6px;
	background: var(--i-bg);
}
.chk__fail-title {
	display: flex;
	gap: 8px;
	font-weight: 700;
}
.chk__fail p {
	margin: 0;
	color: var(--i-soft);
	line-height: 1.45;
}
.chk__ref {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	color: var(--i-accent);
}
.i-ok {
	color: var(--i-ok);
}
.i-err {
	color: var(--i-err);
}

/* ── shipping ─────────────────────────────────────────────────────────── */
.ship {
	background: var(--bg);
}
.ship .shell {
	padding: 65px 28px;
	display: flex;
	flex-direction: column;
	gap: 72px;
}
.ship__head .h2 {
	max-width: 19.0em;
}
.ship__head p {
	max-width: 38.9em;
}
.ship__groups {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 40px;
}
.ship-group {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.ship-group h3 {
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 700;
	color: var(--ship);
}
.ship-item {
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr);
	gap: 10px;
	padding: 14px 0;
	border-top: 1px solid var(--line);
}
.ship-item__n {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 13px;
	font-weight: 600;
	color: var(--ship);
}
.ship-item__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.ship-item__name {
	font-size: 16.5px;
	font-weight: 700;
}
.ship-item__desc {
	font-size: 14.5px;
	line-height: 1.5;
	color: var(--mute);
}
.keygen {
	border-radius: 20px;
	background: var(--panel);
	border: 1px solid var(--line);
	padding: clamp(28px, 5vw, 64px);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 56px;
	align-items: center;
}
.keygen__text {
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.keygen__tag {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 13px;
	color: var(--ship);
}
.keygen__text h3 {
	margin: 0;
	font-size: clamp(26px, 2.6vw, 34px);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
}
.keygen__text p {
	margin: 0;
	font-size: 16.5px;
	line-height: 1.6;
	color: var(--mute);
	text-wrap: pretty;
}
.keygen__figure {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.keygen__figure figcaption {
	font-size: 13.5px;
	color: var(--dim);
}
.flow {
	display: flex;
	flex-direction: column;
}
.flow__step {
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr);
	gap: 14px;
}
.flow__rail {
	display: flex;
	flex-direction: column;
	align-items: center;
}
.flow__n {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1.5px solid var(--ship);
	display: grid;
	place-items: center;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12.5px;
	color: var(--ship);
	background: var(--bg);
}
.flow__line {
	flex: 1;
	width: 1.5px;
	min-height: 16px;
	background: linear-gradient(var(--ship), var(--line2));
}
.flow__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 5px 0 18px;
}
.flow__head {
	display: flex;
	gap: 10px;
	align-items: baseline;
	flex-wrap: wrap;
}
.flow__t {
	font-size: 16px;
	font-weight: 700;
}
.flow__where {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	color: var(--dim);
}
.flow__d {
	font-size: 14.5px;
	line-height: 1.5;
	color: var(--mute);
}

/* ── questions ────────────────────────────────────────────────────────── */
.faq {
	background: var(--bg2);
	color: var(--text);
}
.faq .shell {
	max-width: 860px;
	padding: 65px 28px 70px;
	display: flex;
	flex-direction: column;
	gap: 28px;
}
.faq .h2 {
	font-size: clamp(26px, 3.2vw, 40px);
	line-height: 1.2;
}
.faq__list {
	display: flex;
	flex-direction: column;
	border-top: 1px solid var(--line2);
}
.faq__item {
	border-bottom: 1px solid var(--line2);
}
.faq__q {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 22px 0;
	cursor: pointer;
	list-style: none;
}
.faq__q::-webkit-details-marker {
	display: none;
}
.faq__q h3 {
	margin: 0;
	flex: 1;
	font-size: 18px;
	font-weight: 700;
}
.faq__mark {
	font-size: 22px;
	font-weight: 400;
	color: var(--dim);
	width: 20px;
	text-align: center;
}
.faq__mark::before {
	content: '+';
}
.faq__item[open] .faq__mark::before {
	content: '−';
}
.faq__a {
	margin: 0;
	padding: 0 48px 24px 0;
	font-size: 16.5px;
	line-height: 1.6;
	color: var(--mute);
	text-wrap: pretty;
}

/* ── start ────────────────────────────────────────────────────────────── */
.start {
	position: relative;
	overflow: hidden;
	background: var(--nebula2), var(--bg);
}
.start .shell {
	padding: 75px 28px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	text-align: center;
}
.start .disc {
	width: 84px;
	height: 84px;
}
.start .disc__glow {
	inset: 2px;
	filter: blur(11px);
	opacity: 0.9;
}
.start .disc__ring {
	inset: 9px;
}
.start .disc__core {
	inset: 12px;
	background: var(--disc);
}
.start .h2 {
	max-width: 17.1em;
	font-size: clamp(30px, 4.2vw, 54px);
}
.start p {
	margin: 0;
	max-width: 32.4em;
	font-size: 18px;
	line-height: 1.6;
	color: var(--mute);
}

/* ── footer ───────────────────────────────────────────────────────────── */
.site-footer {
	border-top: 1px solid var(--panel2);
	background: var(--bg);
}
.site-footer .shell {
	padding: 40px 28px 48px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 32px;
	font-size: 14px;
	color: var(--dim);
}
.site-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.site-footer__col {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.site-footer__col b {
	color: var(--text);
	font-weight: 700;
}
.site-footer a {
	color: var(--mute);
}
.site-footer a:hover {
	color: var(--text);
}
.site-footer__legal {
	border-top: 1px solid var(--panel2);
}
.site-footer__legal .shell {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	justify-content: space-between;
	padding: 20px 28px 28px;
	font-size: 13.5px;
	color: var(--faint);
}

/* ── privacy and terms ───────────────────────────────────────────────── */
.legal {
	background: var(--bg);
}
.legal .shell {
	max-width: 760px;
	padding: 88px 28px 120px;
}
.crumbs {
	display: flex;
	gap: 8px;
	font-size: 14px;
	color: var(--dim);
}
.crumbs a {
	color: var(--mute);
}
.crumbs a:hover {
	color: var(--text);
}
.legal__title {
	margin: 22px 0 0;
	font-family: 'Michroma', sans-serif;
	font-weight: 400;
	font-size: clamp(26px, 3.2vw, 40px);
	line-height: 1.2;
}
.legal__meta {
	margin: 14px 0 0;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12.5px;
	letter-spacing: 0.08em;
	color: var(--dim);
}
.legal__body {
	margin-top: 40px;
	padding-top: 32px;
	border-top: 1px solid var(--line2);
}
.legal__lede {
	font-size: 19px;
	line-height: 1.55;
	color: var(--text);
	text-wrap: pretty;
}
.legal__body h2 {
	margin: 44px 0 0;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.01em;
}
.legal__body p,
.legal__body li {
	font-size: 16.5px;
	line-height: 1.65;
	color: var(--mute);
	text-wrap: pretty;
}
.legal__body p {
	margin: 14px 0 0;
}
.legal__body ul {
	margin: 14px 0 0;
	padding-left: 22px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.legal__body li::marker {
	color: var(--faint);
}
.legal__back {
	margin: 56px 0 0;
	padding-top: 28px;
	border-top: 1px solid var(--line2);
	font-size: 15px;
}

/* ── icons ────────────────────────────────────────────────────────────── */
.icon {
	width: 16px;
	height: 16px;
	flex: none;
	color: var(--i-icon);
}
.icon--14 {
	width: 14px;
	height: 14px;
}
/* display:none stops <use> resolving in some engines. */
.icon-sprite {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

/* ── tab panels ───────────────────────────────────────────────────────── */
[hidden] {
	display: none !important;
}
