/* MCP (/mcp/): scripts/landing/site-pages/mcp.mjs, behaviour in mcp.js.
   Every rule is prefixed mcp- because page CSS is global on this origin.
   The site's world (white paper, ink with a grey second line, citron on what
   starts something) with the offer pages' weight: big two-tone headings, big
   figures, one dark section, a citron end band. */
.mcp-page {
	--mcp-night: #0f0f10;
	--mcp-card: #1b1b1d;
	--mcp-soft: #a9a9b2;
	overflow-x: clip;
}
.mcp-page h2 {
	font-size: clamp(38px, 5.2vw, 76px);
	line-height: 0.98;
	letter-spacing: -0.06em;
	font-weight: 500;
	text-wrap: balance;
}
.mcp-head {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 24px 48px;
	align-items: end;
	margin-bottom: clamp(32px, 5vw, 64px);
}
.mcp-head p {
	font-size: 17px;
	line-height: 1.55;
	color: var(--muted);
	max-width: 46ch;
}
.mcp-page code {
	font-family: "Geist Mono", ui-monospace, monospace;
	font-size: 0.92em;
}

/* Small parts */
.mcp-mark {
	width: 20px;
	height: 20px;
	flex: none;
	object-fit: contain;
}
.mcp-mark-any {
	display: inline-grid;
	place-items: center;
	border-radius: 50%;
	background: var(--ink);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
}
.mcp-copy {
	flex: none;
	min-height: 36px;
	padding: 0 14px;
	border-radius: 8px;
	background: var(--ink);
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	transition: background 0.2s;
}
.mcp-copy:hover {
	background: #333;
}
.mcp-copy.is-copied {
	background: var(--lime);
	color: var(--lime-ink);
}

/* ── 1. The top ─────────────────────────────────────────────────────── */
.mcp-hero {
	padding: clamp(40px, 5vw, 72px) 0 clamp(64px, 8vw, 112px);
}
.mcp-hero-in {
	display: grid;
	grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: start;
	margin-top: clamp(28px, 3.5vw, 48px);
}
.mcp-chip {
	display: inline-block;
	margin-bottom: 22px;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--lime);
	color: var(--lime-ink);
	font-size: 13px;
	font-weight: 600;
}
.mcp-hero h1 {
	font-size: clamp(44px, 7.2vw, 108px);
	line-height: 0.96;
	letter-spacing: -0.065em;
	font-weight: 500;
	text-wrap: balance;
}
.mcp-hero h1 .grey {
	color: var(--faint);
}
.mcp-lede {
	margin-top: 0;
	max-width: 46ch;
	color: var(--muted);
	font-size: 18px;
	line-height: 1.55;
}
.mcp-address {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 28px;
	padding: 8px 8px 8px 16px;
	max-width: 520px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--paper-2);
}
.mcp-address-k {
	flex: none;
	color: var(--muted);
	font-size: 12px;
}
.mcp-address code {
	flex: 1;
	min-width: 0;
	overflow-wrap: anywhere;
	font-size: 15px;
	font-weight: 500;
	color: var(--ink);
}
.mcp-go {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 28px;
	margin-top: 24px;
}
.mcp-text-link {
	font-size: 14px;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 5px;
}
.mcp-works {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
	color: var(--muted);
	font-size: 14px;
}
.mcp-works li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

/* The stage: the loop, the request across its top edge, the tabs. */
.mcp-hero-art {
	min-width: 0;
	padding-top: 22px;
}
.mcp-stage {
	position: relative;
}
.mcp-screen {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	border-radius: var(--radius);
	background: var(--paper);
	box-shadow: 0 30px 80px -40px rgba(15, 15, 16, 0.35);
}
.mcp-loop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 30%;
	opacity: 0;
	transition: opacity 0.4s;
}
.mcp-loop.on {
	opacity: 1;
}
.mcp-ask {
	position: absolute;
	top: 0;
	left: 22px;
	right: 22px;
	transform: translateY(-50%);
	margin: 0;
}
.mcp-ask-row {
	display: none;
	align-items: center;
	gap: 12px;
	padding: 8px 8px 8px 14px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 12px 30px -12px rgba(15, 15, 16, 0.3);
	font-size: 14.5px;
	font-weight: 500;
	width: fit-content;
	max-width: 100%;
}
.mcp-ask-row.on {
	display: flex;
}
.mcp-ask-t {
	min-width: 0;
}
.mcp-state {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 7px;
	padding: 6px 11px;
	border-radius: 999px;
	background: var(--paper);
	color: var(--muted);
	font-size: 12.5px;
	transition: background 0.3s, color 0.3s;
}
.mcp-state i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
	animation: mcp-pulse 1.2s ease-in-out infinite;
}
.mcp-state.is-done {
	background: var(--lime);
	color: var(--lime-ink);
}
.mcp-state.is-done i {
	width: 10px;
	height: 6px;
	border-radius: 0;
	background: none;
	border-left: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(-45deg);
	animation: none;
}
@keyframes mcp-pulse {
	50% {
		opacity: 0.35;
	}
}
.mcp-pause {
	position: absolute;
	right: 14px;
	bottom: 14px;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 6px 18px -8px rgba(15, 15, 16, 0.35);
}
.mcp-pause svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: var(--ink);
	stroke-width: 2.4;
	stroke-linecap: round;
}
.mcp-pause.is-paused svg {
	fill: var(--ink);
	stroke: none;
}
.mcp-tabs {
	display: flex;
	justify-content: center;
	gap: 4px;
	width: fit-content;
	margin: 18px auto 0;
	padding: 4px;
	border-radius: 999px;
	background: var(--paper);
}
.mcp-tabs button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	padding: 0 16px;
	border-radius: 999px;
	background: none;
	color: var(--muted);
	font-size: 13.5px;
	font-weight: 500;
}
.mcp-tabs button[aria-selected="true"] {
	background: #fff;
	color: var(--ink);
	box-shadow: 0 2px 8px -4px rgba(15, 15, 16, 0.3);
}
.mcp-tab-mark {
	width: 16px;
	height: 16px;
}

/* ── 2. The tools: the one dark section ─────────────────────────────── */
.mcp-tools {
	padding: clamp(72px, 9vw, 128px) 0;
	background: var(--mcp-night);
	color: #fff;
}
.mcp-tools .grey,
.mcp-tools .mcp-head p {
	color: var(--mcp-soft);
}
.mcp-counts {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin: 0 0 clamp(40px, 5vw, 64px);
	padding: 0;
	list-style: none;
}
.mcp-counts li {
	display: grid;
	gap: 4px;
	padding-top: 18px;
	border-top: 1px solid #2c2c30;
}
.mcp-counts b {
	color: var(--lime);
	font-size: clamp(44px, 5.4vw, 80px);
	font-weight: 500;
	letter-spacing: -0.05em;
	line-height: 1;
}
.mcp-counts span {
	font-size: 16px;
	font-weight: 500;
}
.mcp-counts small {
	color: var(--mcp-soft);
	font-size: 13px;
}
.mcp-areas {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}
.mcp-area {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 22px;
	border-radius: 18px;
	background: var(--mcp-card);
}
.mcp-area header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}
.mcp-area h3 {
	font-size: 19px;
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.2;
}
.mcp-area header span {
	flex: none;
	color: var(--lime);
	font-size: 13px;
	font-weight: 500;
}
.mcp-area ul {
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: #d2d2d8;
	font-size: 14px;
	line-height: 1.45;
}
.mcp-area li {
	position: relative;
	padding-left: 14px;
}
.mcp-area li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #5a5a60;
}
.mcp-claude {
	margin-top: 28px;
	border-radius: 18px;
	background: var(--mcp-card);
}
.mcp-claude summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 20px 22px;
	cursor: pointer;
	list-style: none;
	color: #d2d2d8;
	font-size: 15px;
	line-height: 1.5;
}
.mcp-claude summary::-webkit-details-marker {
	display: none;
}
.mcp-claude summary b {
	color: #fff;
}
.mcp-claude-more {
	flex: none;
	padding: 6px 12px;
	border-radius: 999px;
	background: #2c2c30;
	color: #fff;
	font-size: 12.5px;
}
.mcp-claude[open] .mcp-claude-more {
	background: var(--lime);
	color: var(--lime-ink);
}
.mcp-claude ul {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0 28px;
	margin: 0;
	padding: 0 22px;
	list-style: none;
}
.mcp-claude li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid #2c2c30;
	font-size: 14px;
}
.mcp-claude li b {
	font-weight: 500;
}
.mcp-tag {
	flex: none;
	padding: 2px 9px;
	border-radius: 999px;
	background: #2c2c30;
	color: #d2d2d8;
	font-size: 11.5px;
}
.mcp-tag.w {
	background: var(--lime);
	color: var(--lime-ink);
}
.mcp-claude > p {
	padding: 18px 22px 22px;
	color: var(--mcp-soft);
	font-size: 14px;
	line-height: 1.55;
}

/* ── 3. The asks ────────────────────────────────────────────────────── */
.mcp-asks {
	padding: clamp(72px, 9vw, 128px) 0 0;
}
.mcp-prompts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.mcp-prompts li {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 24px;
	border-radius: var(--radius);
	background: var(--paper);
}
.mcp-prompts .mcp-mark {
	margin-top: 3px;
}
.mcp-prompts p {
	font-size: 18px;
	line-height: 1.45;
	letter-spacing: -0.015em;
}

/* ── 4. Connect ─────────────────────────────────────────────────────── */
.mcp-connect {
	padding: clamp(72px, 9vw, 128px) 0 0;
	scroll-margin-top: 80px;
}
.mcp-ways {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}
.mcp-way {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
}
.mcp-way header {
	display: flex;
	align-items: center;
	gap: 12px;
}
.mcp-way-mark {
	width: 36px;
	height: 36px;
	padding: 7px;
	border-radius: 10px;
	background: var(--paper);
	object-fit: contain;
}
.mcp-way .mcp-mark-any {
	padding: 0;
	background: var(--ink);
	border-radius: 10px;
	font-size: 18px;
}
.mcp-way h3 {
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.025em;
}
.mcp-way header p {
	color: var(--muted);
	font-size: 13px;
}
.mcp-code {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 8px 8px 12px;
	border-radius: 10px;
	background: var(--paper);
}
.mcp-code code {
	flex: 1;
	min-width: 0;
	overflow-wrap: anywhere;
	font-size: 12.5px;
	line-height: 1.45;
}
.mcp-steps {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: s;
}
.mcp-steps li {
	position: relative;
	padding-left: 32px;
	color: var(--ink-2);
	font-size: 14.5px;
	line-height: 1.55;
	counter-increment: s;
}
.mcp-steps li::before {
	content: counter(s);
	position: absolute;
	left: 0;
	top: 1px;
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--paper);
	color: var(--ink);
	font-size: 12px;
	font-weight: 600;
}
.mcp-pre {
	margin: 0;
	padding: 12px 14px;
	border-radius: 10px;
	background: var(--mcp-night);
	color: #f5f5f7;
	font: 12px/1.6 "Geist Mono", ui-monospace, monospace;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

/* ── 5. Control ─────────────────────────────────────────────────────── */
.mcp-control {
	padding: clamp(72px, 9vw, 128px) 0 0;
}
.mcp-allow {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 34px;
}
.mcp-allow article {
	padding-top: 22px;
	border-top: 1px solid var(--line);
}
.mcp-allow h3 {
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.025em;
}
.mcp-allow p {
	margin-top: 10px;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.6;
}
.mcp-note {
	margin-top: 40px;
	padding: 22px 24px;
	border-radius: 18px;
	background: var(--paper);
	color: var(--ink-2);
	font-size: 15.5px;
	line-height: 1.6;
}
.mcp-note b {
	color: var(--ink);
}
.mcp-page .mp-faq a {
	color: var(--ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ── 7. The end: the citron band ────────────────────────────────────── */
.mcp-end {
	margin-top: clamp(48px, 6vw, 96px);
	padding: clamp(64px, 8vw, 112px) 0;
	background: var(--lime);
	color: var(--lime-ink);
}
.mcp-end-in {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 32px 64px;
	align-items: end;
}
.mcp-end-k {
	margin-bottom: 18px;
	font-size: 14px;
	font-weight: 500;
}
.mcp-end-go {
	display: grid;
	gap: 14px;
	justify-items: start;
}
.mcp-address-dark {
	margin-top: 0;
	border-color: rgba(15, 15, 16, 0.15);
	background: rgba(255, 255, 255, 0.55);
}
.mcp-end .mcp-end-button {
	background: var(--mcp-night);
	color: #fff;
}
.mcp-end .mcp-end-button:hover {
	background: #333;
}

@media (max-width: 1100px) {
	.mcp-areas {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.mcp-claude ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 980px) {
	.mcp-hero-in,
	.mcp-head,
	.mcp-end-in {
		grid-template-columns: 1fr;
	}
	.mcp-counts,
	.mcp-allow {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 640px) {
	.mcp-hero-art {
		padding-top: 40px;
	}
	.mcp-screen {
		aspect-ratio: 1 / 1;
	}
	.mcp-loop[data-mcp-scene="ads"] {
		object-position: 40% 50%;
	}
	.mcp-ask {
		left: 12px;
		right: 12px;
	}
	.mcp-ask-row {
		border-radius: 16px;
		font-size: 14px;
	}
	.mcp-state span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}
	.mcp-state.is-done::after {
		content: "Done";
	}
	.mcp-address {
		flex-wrap: wrap;
	}
	.mcp-address-k {
		width: 100%;
	}
	.mcp-areas,
	.mcp-ways,
	.mcp-prompts,
	.mcp-allow,
	.mcp-claude ul {
		grid-template-columns: 1fr;
	}
	.mcp-counts {
		gap: 18px;
	}
	.mcp-prompts p {
		font-size: 16px;
	}
	.mcp-claude summary {
		flex-direction: column;
		align-items: flex-start;
	}
}
@media (prefers-reduced-motion: reduce) {
	.mcp-state i {
		animation: none;
	}
	.mcp-loop {
		transition: none;
	}
}
