/*
 * The marketing skin. Everything here is scoped under body.marketing, because the dashboard loads
 * this sheet too and must render exactly as theme.css :root paints it. A section takes a tone with a
 * class; the tone re-points the tokens, so every component and inline SVG inside it follows.
 * scripts/audit-fundamentals.ts reads these tone blocks and fails any text tier under 4.5:1.
 */

body.marketing,
body.marketing .tone-black {
	color-scheme: dark;
	--bg: #000;
	--bg-raised: #101012;
	--panel: #161617;
	--panel-hover: #1f1f21;
	--surface: none;
	--line: rgba(255, 255, 255, 0.12);
	--line-strong: rgba(255, 255, 255, 0.2);
	--hairline: rgba(255, 255, 255, 0.1);
	--tile-line: rgba(255, 255, 255, 0.08);
	--text: #f5f5f7;
	--text-dim: #c7c7cc;
	--text-tail: #a1a1a6;
	--text-faint: #86868b;
	--eyebrow: var(--text-tail);
	--accent: #38bdf8;
	--accent-strong: #0ea5e9;
	--accent-hover: #7dd3fc;
	--accent-soft: rgba(56, 189, 248, 0.14);
	--accent-glow: rgba(56, 189, 248, 0.3);
	--accent-ink: #000;
	--good: #34c77b;
	--warn: #f0b232;
	--bad: #f47370;
	--bad-strong: #c62828;
	--premium: #ffc038;
	--premium-ramp: linear-gradient(90deg, #ffc038, #ff9500);
	--shadow: none;
	--shadow-hover: 0 0 0 1px rgba(255, 255, 255, 0.16);
	--shadow-lg: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 100px -40px rgba(56, 189, 248, 0.28);
}

body.marketing .tone-light,
body.marketing .tone-white {
	color-scheme: light;
	--bg: #f5f5f7;
	--bg-raised: #f5f5f7;
	--panel: #fff;
	--panel-hover: #fafafc;
	--line: rgba(0, 0, 0, 0.1);
	--line-strong: rgba(0, 0, 0, 0.18);
	--hairline: rgba(0, 0, 0, 0.08);
	--tile-line: transparent;
	--text: #1d1d1f;
	--text-dim: #424245;
	--text-tail: #6e6e73;
	--text-faint: #6e6e73;
	--eyebrow: var(--text-tail);
	--accent: #0369a1;
	--accent-strong: #075985;
	--accent-hover: #075985;
	--accent-soft: rgba(3, 105, 161, 0.1);
	--accent-glow: rgba(3, 105, 161, 0.25);
	--accent-ink: #fff;
	--good: #117a3b;
	--warn: #9a5b00;
	--bad: #c62828;
	--bad-strong: #b71c1c;
	--premium: #8a5a00;
	--premium-ramp: linear-gradient(90deg, #8a5a00, #a14a00);
	--shadow-hover: 0 14px 40px -16px rgba(0, 0, 0, 0.22);
	--shadow-lg: 0 1px 2px rgba(0, 0, 0, 0.06), 0 24px 60px -24px rgba(0, 0, 0, 0.3);
}

body.marketing .tone-white {
	--bg: #fff;
	--bg-raised: #f5f5f7;
	--panel: #f5f5f7;
	--panel-hover: #fafafc;
}

/* The dashboard's own slate, for a page whose pictures are the dashboard: a screenshot sits on the
   colour it was taken on. The homepage carries it on body, so the header and footer wear it too. */
body.marketing.tone-slate,
body.marketing .tone-slate {
	color-scheme: dark;
	--bg: #171e29;
	--bg-raised: #1c2432;
	--panel: #1b2230;
	--panel-hover: #212a3a;
	--surface: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
	--line: rgba(255, 255, 255, 0.09);
	--line-strong: rgba(255, 255, 255, 0.16);
	--hairline: rgba(255, 255, 255, 0.06);
	--tile-line: rgba(255, 255, 255, 0.09);
	--text: #f2f5f9;
	--text-dim: rgba(255, 255, 255, 0.68);
	--text-tail: rgba(255, 255, 255, 0.6);
	--text-faint: rgba(255, 255, 255, 0.52);
	--eyebrow: var(--text-tail);
	--accent-ink: #08090d;
	--header-bg: rgba(23, 30, 41, 0.86);
	--shadow-lg: 0 18px 44px rgba(0, 0, 0, 0.4);
	--radius-sm: 10px;
	--radius: 12px;
	--radius-lg: 16px;
}

body.marketing,
body.marketing :is(.tone-black, .tone-light, .tone-white) {
	background-color: var(--bg);
	color: var(--text);
}

body.marketing {
	--header-height: 52px;
	--header-bg: rgba(0, 0, 0, 0.86);
	--radius-sm: 12px;
	--radius: 18px;
	--radius-lg: 26px;
	/* --type-display-font is resolved at computed-value time wherever it is declared, and theme.css
	   only declares it at :root, so it locks in Montserrat there before this override ever runs.
	   Redeclare it here so the substitution happens on body.marketing itself, with the local --font. */
	--font-display: var(--font);
	--type-display-font: var(--font);
	--type-display-weight: 600;
	--type-display-line-height: 1.06;
	--type-display-tracking: -0.035em;
	--type-statement-weight: 600;
	--type-statement-line-height: 1.1;
	--type-statement-tracking: -0.03em;
	--type-body-size: 17px;
	--type-body-line-height: 1.5;
	--type-eyebrow-size: clamp(17px, 1.4vw, 19px);
	--type-eyebrow-weight: 600;
	--type-eyebrow-line-height: 1.3;
	--type-eyebrow-tracking: normal;
}

body.marketing .wrap { max-width: 1180px; }

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

:where(body.marketing) h1 { font-size: clamp(40px, 6vw, 80px); }
:where(body.marketing) h2 { font-size: clamp(34px, 4.8vw, 64px); }
:where(body.marketing) h3 { letter-spacing: -0.015em; }
:where(body.marketing) :is(h1, h2) { text-wrap: balance; }

body.marketing .display-xl {
	font-size: clamp(48px, 7.5vw, 104px);
	font-weight: 700;
	line-height: 1.03;
	letter-spacing: -0.045em;
}

:where(body.marketing) .statement {
	max-width: 24ch;
	font-size: clamp(28px, 3.8vw, 52px);
	font-weight: var(--type-statement-weight);
}

:where(body.marketing) .eyebrow { text-transform: none; }

:where(body.marketing) .lead {
	max-width: 52ch;
	font-size: clamp(19px, 1.7vw, 21px);
	line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Shell: a black glass header over every tone, a black sheet for the phone
   menu, and a quiet light footer
   -------------------------------------------------------------------------- */

body.marketing .site-header { background-color: transparent; }

body.marketing .site-header::before {
	background-color: var(--header-bg);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
	box-shadow: 0 1px 0 var(--hairline);
}

body.marketing .brand { font-size: 15px; font-weight: 600; }
body.marketing .site-header .brand-mark { inline-size: 24px; block-size: 24px; }

body.marketing .nav a:not(.btn) {
	padding-block: 8px;
	padding-inline: 10px;
	border-radius: 0;
	color: var(--text-dim);
	font-size: 13px;
	font-weight: 400;
}

body.marketing .nav a:not(.btn):hover,
body.marketing .nav a[aria-current="page"] {
	color: var(--text);
	background-color: transparent;
}

body.marketing .header-cta { position: relative; }

/* The pill stays compact, and this invisible box makes the tap target 44px tall. */
body.marketing .header-cta::after {
	content: "";
	position: absolute;
	inset-block: -7px;
	inset-inline: -2px;
}

@media (max-width: 819.98px) {
	.js body.marketing .site-nav {
		block-size: calc(100dvh - var(--header-height));
		padding-block: 20px 48px;
		padding-inline: 32px;
		gap: 0;
		overflow-y: auto;
		background-color: var(--bg);
		border: 0;
		box-shadow: none;
	}

	.js body.marketing .site-nav a:not(.btn) {
		padding-block: 12px;
		padding-inline: 0;
		border-block-end: 1px solid var(--hairline);
		color: var(--text);
		font-size: 24px;
		font-weight: 600;
		letter-spacing: -0.02em;
	}
}

body.marketing .site-footer {
	margin-block-start: 0;
	padding-block: 44px 28px;
	border-block-start: 0;
	color: var(--text-tail);
	font-size: 12px;
	line-height: 1.5;
}

body.marketing .footer-grid { gap: 28px 24px; }
body.marketing .site-footer .brand { font-size: 14px; }
body.marketing .footer-tagline { margin-block-start: 10px; color: var(--text-tail); }

body.marketing .footer-grid h2 {
	margin-block-end: 10px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: normal;
	text-transform: none;
	color: var(--text);
}

body.marketing .footer-grid ul { gap: 8px; }
body.marketing .footer-grid a { color: var(--text-dim); }

body.marketing .footer-grid a:hover {
	color: var(--text);
	text-decoration: underline;
	text-underline-offset: 2px;
}

body.marketing .footer-base {
	margin-block-start: 32px;
	padding-block-start: 16px;
	border-block-start-color: var(--line);
	color: var(--text-tail);
	font-size: 12px;
}

body.marketing .footer-base .tail { color: var(--text-tail); }

@media (max-width: 619.98px) {
	body.marketing .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body.marketing .footer-brand { grid-column: 1 / -1; }
	/* Clears the Connections chat bubble (56px, fixed 20px from the edge), which otherwise sits on
	   the footer's last line, the only content it cannot scroll away from. */
	body.marketing .site-footer { padding-block-end: calc(56px + 20px + 16px); }
}

/* --------------------------------------------------------------------------
   Controls: pill buttons and the chevron link
   -------------------------------------------------------------------------- */

body.marketing .btn {
	min-block-size: 44px;
	padding-inline: 22px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 500;
}

body.marketing .btn-lg { min-block-size: 50px; padding-inline: 28px; font-size: 17px; }
body.marketing .btn-sm { min-block-size: 30px; padding-block: 5px; padding-inline: 14px; font-size: 13px; }

body.marketing .btn:not(.btn-quiet, .btn-ghost, .btn-danger, .btn-discord, .btn-premium) {
	--btn-bg-hover: var(--accent-hover);
}

body.marketing :is(.btn-quiet, .btn-ghost) {
	--btn-bg: transparent;
	--btn-bg-hover: var(--accent);
	--btn-ink: var(--accent);
	--btn-line: var(--accent);
	--btn-line-hover: var(--accent);
	--btn-glow: transparent;
}

body.marketing .btn-premium {
	--btn-bg: var(--premium);
	--btn-bg-hover: var(--premium);
	--btn-ink: var(--bg);
	--btn-glow: transparent;
}

body.marketing .btn:not(:disabled, [aria-disabled="true"]):hover {
	box-shadow: none;
	transform: none;
}

body.marketing :is(.btn-quiet, .btn-ghost):not(:disabled, [aria-disabled="true"]):hover { color: var(--accent-ink); }

body.marketing .link-more {
	display: inline-flex;
	align-items: baseline;
	gap: 0.25em;
	color: var(--accent);
	font-size: 17px;
	font-weight: 400;
	text-decoration: none;
}

body.marketing .chip { font-size: 13px; }

body.marketing .link-more::after { content: "\203A"; font-size: 1.15em; line-height: 1; }

body.marketing .link-more:hover {
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

/* --------------------------------------------------------------------------
   Tiles and frames: flat, with depth from the tone and a shadow on hover
   -------------------------------------------------------------------------- */

body.marketing .surface-card {
	padding: clamp(28px, 3vw, 40px);
	border-color: var(--tile-line);
}

body.marketing :is(.card, .table-frame, .endpoint, .code-block) { border-color: var(--tile-line); }

body.marketing .card > h3 + p { margin-block-start: 8px; }

body.marketing a.surface-card {
	transition: box-shadow var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}

body.marketing a.surface-card:hover {
	border-color: var(--tile-line);
	box-shadow: var(--shadow-hover);
	transform: none;
}

body.marketing .shot {
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
}

/* --------------------------------------------------------------------------
   Plan cards, shared by the homepage and the pricing page
   -------------------------------------------------------------------------- */

body.marketing .tiers { display: grid; gap: 20px; align-items: start; }

@media (min-width: 820px) {
	body.marketing .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

body.marketing .tier {
	position: relative;
	display: flex;
	flex-direction: column;
}

body.marketing .tier > * { margin: 0; }

body.marketing .tier-name {
	font-size: 28px;
	font-weight: 600;
	letter-spacing: -0.02em;
}

body.marketing .tier.tone-black .tier-name { color: var(--premium); }

body.marketing .tier-tag {
	margin-block-start: 6px;
	font-size: 17px;
	color: var(--text-tail);
}

body.marketing .tier-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
	margin-block-start: 32px;
}

body.marketing .tier-amount {
	font-size: clamp(52px, 5.4vw, 68px);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.045em;
	color: var(--text);
}

body.marketing .tier-cadence { font-size: 17px; color: var(--text-tail); }

body.marketing .tier-note {
	min-block-size: 3em;
	margin-block-start: 12px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--text-tail);
}

body.marketing .tier-cta { margin-block: 24px 32px; }

body.marketing .tier-list {
	display: grid;
	gap: 14px;
	padding: 28px 0 0;
	border-block-start: 1px solid var(--hairline);
	list-style: none;
	font-size: 16px;
}

body.marketing .tier-list li {
	display: grid;
	grid-template-columns: 12px minmax(0, 1fr);
	column-gap: 12px;
	color: var(--text-dim);
}

body.marketing .tier-list li > * { grid-column: 2; }

body.marketing .tier-list li::before {
	content: "";
	block-size: 6px;
	margin-block-start: 0.45em;
	border-inline-start: 2px solid var(--good);
	border-block-end: 2px solid var(--good);
	rotate: -45deg;
}

body.marketing .tone-black .tier-list li::before { border-color: var(--premium); }

body.marketing .tier-detail { margin-block-start: 2px; font-size: 15px; color: var(--text-tail); }

body.marketing .tier-ribbon {
	position: absolute;
	inset-block-start: clamp(28px, 3vw, 40px);
	inset-inline-end: clamp(28px, 3vw, 40px);
}

body.marketing .tier-foot {
	margin-block-start: auto;
	padding-block-start: 24px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--text-tail);
}

/* --------------------------------------------------------------------------
   Rhythm
   -------------------------------------------------------------------------- */

body.marketing .section { padding-block: clamp(88px, 11vw, 168px); }
body.marketing .section-tight { padding-block: clamp(48px, 6vw, 88px); }
body.marketing .under-header { padding-block: calc(var(--header-height) + clamp(64px, 8vw, 120px)) clamp(64px, 8vw, 112px); }

/* --------------------------------------------------------------------------
   Hero product mockup
   -------------------------------------------------------------------------- */

.hero-mock-frame {
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
}

.hero-mock-frame svg {
	display: block;
	width: 100%;
	height: auto;
}

/* --------------------------------------------------------------------------
   Page furniture shared by features, docs, api and 404
   -------------------------------------------------------------------------- */

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.center .actions { justify-content: center; }

.chapter { display: grid; gap: 24px; }

.chapter .statement { max-width: 22ch; }

@media (min-width: 900px) {
	.chapter {
		grid-template-columns: minmax(0, 1fr) minmax(320px, 46%);
		gap: 48px;
		align-items: center;
	}

	.chapter .statement { max-width: none; }
}

.chapter-text { display: grid; gap: 18px; align-content: start; }

.chapter-head { display: grid; gap: 18px; }

body.marketing .chapter-head + .grid { margin-block-start: clamp(16px, 3vw, 40px); }

.chapter-head p a {
	color: var(--accent);
	text-decoration: underline;
	text-decoration-color: var(--accent-glow);
	text-underline-offset: 3px;
}

.chapter-head p a:hover { text-decoration-color: var(--accent); }

/* --------------------------------------------------------------------------
   Icon cards
   -------------------------------------------------------------------------- */

/* Three across and no wider, so a chapter with five cards reads as 3 + 2
   rather than auto-fitting to a different column count per chapter. */
.grid-trio { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

@media (min-width: 900px) {
	.grid-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.icon-card {
	display: grid;
	gap: 14px;
	align-content: start;
	padding: 24px;
}

.icon-tile {
	inline-size: 44px;
	block-size: 44px;
	border-radius: var(--radius-sm);
	display: grid;
	place-items: center;
	background-color: var(--accent-soft);
	box-shadow: inset 0 0 0 1px var(--accent-glow);
	color: var(--accent);
}

.icon-tile svg {
	inline-size: 21px;
	block-size: 21px;
	display: block;
}

.icon-card h3 {
	font-size: 19px;
	font-weight: 600;
	color: var(--text);
}

.icon-card p {
	margin: 0;
	font-size: 17px;
	line-height: 1.5;
	color: var(--text-dim);
}

.card-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* --------------------------------------------------------------------------
   Comparison table
   -------------------------------------------------------------------------- */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.table-frame {
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background-color: var(--panel);
	background-image: var(--surface);
	box-shadow: var(--shadow);
	overflow: clip; /* hidden would pin the sticky head to the frame */
}

.table-frame .table-scroll { overflow: visible; }

table.matrix {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	min-width: 560px;
}

table.matrix th,
table.matrix td {
	padding: 12px 16px;
	text-align: start;
	border-bottom: 1px solid var(--hairline);
	vertical-align: top;
}

table.matrix thead th {
	background-color: var(--bg-raised);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--text-faint);
	font-weight: 620;
	border-bottom-color: var(--line-strong);
}

table.matrix tbody tr:hover { background-color: var(--panel-hover); }
table.matrix td.center-cell { text-align: center; }
table.matrix tbody tr:last-child td { border-bottom: 0; }

.matrix-compare thead { position: sticky; inset-block-start: var(--header-height); z-index: 1; background-color: var(--bg-raised); }
.matrix-compare th:first-child { inline-size: 42%; }

@media (max-width: 640px) {
	table.matrix { min-width: 0; font-size: 13px; }
	table.matrix th,
	table.matrix td { padding: 10px; }
	table.matrix code { font-size: 1em; }

	/* The notes carry the caveats behind the ticks, so on a phone each drops under its capability. */
	.matrix-compare,
	.matrix-compare :is(thead, tbody, .matrix-group, .matrix-group td) { display: block; }
	.matrix-compare tr:not(.matrix-group) {
		display: grid;
		grid-template-columns: 1fr 64px 76px;
		border-block-end: 1px solid var(--hairline);
	}
	table.matrix-compare :is(th, td) { border-block-end: 0; }
	.matrix-compare th:last-child { display: none; }
	.matrix-compare td:last-child:not([colspan]) { grid-column: 1; padding-block-start: 0; }
}

.matrix-group td {
	background-color: var(--bg-raised);
	color: var(--text);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	border-block: 1px solid var(--hairline);
}

.matrix-group:hover td { background-color: var(--bg-raised); }

.yes { color: var(--good); font-weight: 700; }
.no { color: var(--text-faint); }

/* --------------------------------------------------------------------------
   Documentation
   -------------------------------------------------------------------------- */

.docs-layout { display: grid; gap: 32px; align-items: start; }

@media (min-width: 980px) {
	.docs-layout {
		grid-template-columns: 210px minmax(0, 1fr);
		gap: 64px;
	}
}

.docs-nav { min-width: 0; }

.docs-nav-title {
	display: block;
	margin-block-end: 12px;
}

.docs-nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.docs-nav-list a {
	display: block;
	white-space: nowrap;
	padding-block: 5px;
	padding-inline: 12px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background-color: var(--bg-raised);
	color: var(--text-dim);
	font-size: 13px;
	font-weight: 600;
	transition: color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}

.docs-nav-list a:hover {
	color: var(--text);
	border-color: var(--accent-glow);
}

@media (min-width: 980px) {
	.docs-nav {
		position: sticky;
		top: calc(var(--header-height) + 28px);
	}

	.docs-nav-list {
		display: grid;
		gap: 0;
		overflow: visible;
		border-inline-start: 1px solid var(--hairline);
	}

	.docs-nav-list a {
		border: 0;
		border-inline-start: 2px solid transparent;
		border-radius: 0;
		background: none;
		margin-inline-start: -1px;
		padding-block: 7px;
		padding-inline: 14px 0;
		font-size: 13.5px;
		font-weight: 500;
		color: var(--text-faint);
	}

	.docs-nav-list a:hover {
		color: var(--text);
		border-inline-start-color: var(--line-strong);
	}
}

/* A grid item defaults to min-width: auto, which lets the widest table inside
   push the whole column past the viewport on a phone. */
.docs-body { min-width: 0; max-width: 74ch; }

.doc-section { padding-block-end: 64px; }
.doc-section:last-child { padding-block-end: 0; }

.doc-section > h2 {
	font-size: clamp(1.4rem, 2.2vw, 1.8rem);
	margin-block-end: 24px;
	padding-block-end: 14px;
	border-block-end: 1px solid var(--hairline);
}

.doc-section > h3 {
	font-size: 1.05rem;
	margin-block-start: 34px;
}

.doc-section > p { margin-block: 14px; color: var(--text-dim); }

.docs-body .table-scroll {
	margin-block: 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background-color: var(--panel);
	background-image: var(--surface);
}

@media (min-width: 641px) {
	.docs-body table.matrix { min-width: 420px; }
}

.docs-body .stack { margin-block: 18px; }

.code-block {
	margin-block: 16px;
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background-color: var(--panel);
	background-image: var(--surface);
	font-size: 13px;
	line-height: 1.65;
	color: var(--text);
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.code-block code {
	background: none;
	border: 0;
	padding: 0;
	font-size: inherit;
}

.step-list {
	list-style: none;
	counter-reset: step;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 14px;
}

.step-list > li {
	counter-increment: step;
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr);
	gap: 16px;
	align-items: start;
}

.step-list > li::before {
	content: counter(step);
	inline-size: 32px;
	block-size: 32px;
	border-radius: 999px;
	display: grid;
	place-items: center;
	background-color: var(--accent-soft);
	box-shadow: inset 0 0 0 1px var(--accent-glow);
	color: var(--accent);
	font-size: 13px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.step-list h3 { font-size: 19px; font-weight: 600; }
.step-list p { margin: 6px 0 0; }

/* --------------------------------------------------------------------------
   API catalogue
   -------------------------------------------------------------------------- */

.api-filters { flex-wrap: wrap; gap: 8px; }
.api-groups { gap: 30px; }

.endpoint {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background-color: var(--panel);
	background-image: var(--surface);
	overflow: hidden;
}

.endpoint + .endpoint { margin-block-start: 8px; }

.endpoint-head {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding-block: 12px;
	padding-inline: 16px;
	background: none;
	border: 0;
	cursor: pointer;
	color: inherit;
	font: inherit;
	text-align: start;
	transition: background-color var(--dur) var(--ease-out);
}

.endpoint-head:hover { background-color: var(--panel-hover); }

.verb {
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	padding-block: 3px;
	padding-inline: 8px;
	border-radius: 999px;
	border: 1px solid transparent;
	flex: none;
	min-width: 62px;
	text-align: center;
}

.verb-GET {
	border-color: color-mix(in srgb, var(--good) 35%, transparent);
	background-color: color-mix(in srgb, var(--good) 14%, transparent);
	color: color-mix(in srgb, var(--good) 60%, var(--text));
}

.verb-POST {
	border-color: color-mix(in srgb, var(--accent) 30%, transparent);
	background-color: var(--accent-soft);
	color: color-mix(in srgb, var(--accent) 55%, var(--text));
}

.verb-PATCH,
.verb-PUT {
	border-color: color-mix(in srgb, var(--warn) 35%, transparent);
	background-color: color-mix(in srgb, var(--warn) 14%, transparent);
	color: color-mix(in srgb, var(--warn) 60%, var(--text));
}

.verb-DELETE {
	border-color: color-mix(in srgb, var(--bad) 35%, transparent);
	background-color: color-mix(in srgb, var(--bad) 14%, transparent);
	color: color-mix(in srgb, var(--bad) 60%, var(--text));
}

.endpoint-path {
	font-family: var(--mono);
	font-size: 13.5px;
	flex: 1;
	min-width: 0;
	overflow-wrap: anywhere;
}

.endpoint-body {
	padding: 16px;
	border-block-start: 1px solid var(--hairline);
	display: none;
}

.endpoint.open .endpoint-body { display: block; }

.param-row {
	display: grid;
	grid-template-columns: 150px 1fr;
	gap: 12px;
	padding-block: 7px;
	border-block-start: 1px solid var(--hairline);
}

@media (max-width: 620px) {
	.param-row { grid-template-columns: 1fr; gap: 2px; }
}

/* --------------------------------------------------------------------------
   Not found
   -------------------------------------------------------------------------- */

.notfound { padding-block: 40px 8px; }

.notfound-code {
	font-family: var(--font-display);
	font-size: clamp(76px, 16vw, 148px);
	font-weight: 700;
	line-height: 0.9;
	letter-spacing: -0.04em;
	background-image: linear-gradient(180deg, var(--text), var(--text-tail));
	background-clip: text;
	-webkit-background-clip: text;
	color: transparent;
	margin-block-end: 8px;
}

.notfound-links {
	display: grid;
	gap: 0;
	margin-block-start: 44px;
	text-align: start;
}

@media (min-width: 720px) {
	.notfound-links { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}

.notfound-link {
	display: block;
	padding-block: 18px;
	border-block-start: 1px solid var(--hairline);
	transition: border-color var(--dur) var(--ease-out);
}

.notfound-link:hover { border-block-start-color: var(--accent-glow); }

.notfound-link strong { display: block; font-size: 19px; font-weight: 600; color: var(--text); }
.notfound-link span { display: block; margin-block: 4px 10px; font-size: 15px; color: var(--text-dim); }
.notfound-link em { font-style: normal; }
.doc-shot {
	display: block;
	inline-size: 100%;
	block-size: auto;
	margin-block-start: 12px;
	border: 1px solid var(--line);
	border-radius: 12px;
}
