/*
 * Public marketing pages (homepage, AI agents page).
 * Built only on the theme's CSS variables, which the dark theme redefines, so both themes work without overrides.
 */

.mk {
	--mk-accent: var(--primary);
	--mk-radius: 1rem;
	--mk-radius-sm: .6rem;
	--mk-border: 1px solid var(--gray-200);
	--mk-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 12px 32px -12px rgba(16, 24, 40, .18);
	--mk-shadow-lg: 0 2px 4px rgba(16, 24, 40, .06), 0 32px 64px -24px rgba(17, 85, 212, .35);
	color: var(--gray-800);
	overflow-x: hidden;
}

[data-theme-style="dark"] .mk {
	--mk-accent: var(--primary-700);
}

[data-theme-style="dark"] .mk .text-primary {
	color: var(--mk-accent) !important;
}

.mk .text-muted {
	color: var(--gray-700) !important;
}

.mk h1, .mk h2, .mk h3 {
	text-wrap: balance;
	color: var(--gray-900);
	letter-spacing: -.02em;
}

.mk p, .mk li {
	text-wrap: pretty;
}

.mk-tabular {
	font-variant-numeric: tabular-nums;
}

/* Sections */
.mk-section {
	padding: 6rem 0;
}

.mk-section-tight {
	padding: 4rem 0;
}

.mk-section-alt {
	background: var(--gray-50);
	border-top: var(--mk-border);
	border-bottom: var(--mk-border);
}

.mk-section [id], .mk [id] {
	scroll-margin-top: 6rem;
}

.mk-eyebrow {
	display: inline-block;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--mk-accent);
	margin-bottom: .75rem;
}

.mk-heading {
	font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem);
	font-weight: 700;
	line-height: 1.15;
	margin-bottom: 1rem;
}

.mk-lede {
	font-size: 1.15rem;
	line-height: 1.65;
	color: var(--gray-700);
	max-width: 44rem;
}

.mk-section-header {
	max-width: 46rem;
	margin: 0 auto 3.5rem;
	text-align: center;
}

.mk-section-header .mk-lede {
	margin: 0 auto;
}

/* Hero */
.mk-hero {
	position: relative;
	padding: 3rem 0 0;
	isolation: isolate;
}

.mk-hero::before {
	content: '';
	position: absolute;
	inset: -6rem 0 30% 0;
	z-index: -1;
	background-image:
		linear-gradient(var(--gray-200) 1px, transparent 1px),
		linear-gradient(90deg, var(--gray-200) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
	-webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
	opacity: .7;
}

.mk-hero::after {
	content: '';
	position: absolute;
	top: -4rem;
	left: 50%;
	width: min(70rem, 120vw);
	height: 34rem;
	transform: translateX(-50%);
	z-index: -1;
	background: radial-gradient(closest-side, rgba(17, 85, 212, .16), transparent);
	pointer-events: none;
}

.mk-badge {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .35rem .9rem .35rem .4rem;
	border-radius: 999px;
	border: 1px solid var(--primary-200);
	background: var(--primary-100);
	color: var(--primary-800);
	font-size: .9rem;
	font-weight: 600;
	text-decoration: none;
	transition: background-color .2s, border-color .2s;
}

.mk-badge:hover, .mk-badge:focus-visible {
	text-decoration: none;
	color: var(--primary-900);
	border-color: var(--primary-300);
}

.mk-badge-pill {
	padding: .1rem .55rem;
	border-radius: 999px;
	background: var(--primary);
	color: #fff;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .03em;
}

.mk-hero-title {
	font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -.035em;
	margin: 1.5rem auto 1.25rem;
	max-width: 56rem;
}

.mk-gradient-text {
	background: linear-gradient(100deg, var(--primary) 10%, #7c3aed 90%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.mk-hero-lede {
	font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem);
	line-height: 1.6;
	color: var(--gray-700);
	max-width: 44rem;
	margin: 0 auto 2rem;
}

.mk-cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	justify-content: center;
}

.mk .btn-lg {
	padding: .8rem 1.6rem;
	border-radius: .7rem;
	font-weight: 600;
}

.mk .btn {
	transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s;
	touch-action: manipulation;
}

.mk .btn:focus-visible, .mk a:focus-visible, .mk summary:focus-visible, .mk button:focus-visible {
	outline: 3px solid var(--primary-300);
	outline-offset: 2px;
	box-shadow: none;
}

.mk .btn-primary {
	box-shadow: 0 8px 20px -8px rgba(17, 85, 212, .6);
}

.mk .btn-primary:hover {
	transform: translateY(-1px);
}

.mk .btn-mk-secondary {
	background: var(--white);
	border: 1px solid var(--gray-300);
	color: var(--gray-800);
}

.mk .btn-mk-secondary:hover, .mk .btn-mk-secondary:focus-visible {
	border-color: var(--gray-500);
	color: var(--gray-900);
	background: var(--gray-50);
}

.mk-trust {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .5rem 1.5rem;
	margin-top: 1.5rem;
	padding: 0;
	list-style: none;
	font-size: .9rem;
	color: var(--gray-700);
}

.mk-trust li {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
}

.mk-trust .fa-check, .mk-trust svg {
	color: var(--success);
}

/* Product frame */
.mk-product {
	position: relative;
	margin: 4rem auto 0;
	max-width: 68rem;
}

.mk-frame {
	border-radius: var(--mk-radius);
	border: var(--mk-border);
	background: var(--white);
	box-shadow: var(--mk-shadow-lg);
	overflow: hidden;
}

.mk-frame-bar {
	display: flex;
	align-items: center;
	gap: .4rem;
	padding: .65rem 1rem;
	border-bottom: var(--mk-border);
	background: var(--gray-50);
}

.mk-frame-bar span {
	width: .65rem;
	height: .65rem;
	border-radius: 50%;
	background: var(--gray-300);
}

.mk-frame-url {
	margin-left: .75rem;
	padding: .15rem .75rem;
	border-radius: .4rem;
	background: var(--white);
	border: var(--mk-border);
	font-size: .75rem;
	color: var(--gray-700);
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mk-frame img {
	display: block;
	width: 100%;
	height: auto;
}

.mk-product-float {
	position: absolute;
	right: -2.5rem;
	bottom: -3rem;
	width: 44%;
	border-radius: var(--mk-radius-sm);
	border: var(--mk-border);
	background: var(--white);
	box-shadow: var(--mk-shadow-lg);
	overflow: hidden;
}

.mk-product-float img {
	display: block;
	width: 100%;
	height: auto;
}

@media (max-width: 991.98px) {
	.mk-product-float {
		position: static;
		width: 100%;
		margin-top: 1rem;
	}
}

.mk-hero-caption {
	margin-top: 4rem;
}

@media (max-width: 991.98px) {
	.mk-hero-caption {
		margin-top: .75rem;
	}
}

.mk-caption {
	margin-top: .75rem;
	font-size: .8rem;
	color: var(--gray-700);
	text-align: center;
}

/* Signal */
.mk-badge img {
	flex-shrink: 0;
}

.mk-signal {
	position: relative;
	isolation: isolate;
}

.mk-signal::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(ellipse 60% 70% at 85% 50%, rgba(108, 52, 226, .1), transparent 70%);
	pointer-events: none;
}

.mk-signal .mk-feature {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.mk-signal-logo {
	display: flex;
	width: fit-content;
	align-items: center;
	gap: .6rem;
	margin-bottom: 1.25rem;
	color: var(--gray-900);
	text-decoration: none;
}

.mk-signal-logo:hover, .mk-signal-logo:focus-visible {
	color: var(--gray-900);
	text-decoration: none;
}

.mk-signal-logo strong {
	font-size: 1.6rem;
	font-weight: 700;
	letter-spacing: -.02em;
}

@media (max-width: 991.98px) {
	.mk-signal .mk-feature {
		grid-template-columns: minmax(0, 1fr);
	}
}

.mk-signal-logo small {
	margin-left: .25rem;
	font-size: .85rem;
	font-weight: 500;
	color: var(--gray-600);
}

/* Fact strip */
.mk-facts {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1px;
	margin: 0;
	border-radius: var(--mk-radius);
	overflow: hidden;
	background: var(--gray-200);
	border: var(--mk-border);
}

.mk-fact {
	padding: 1.75rem 1.5rem;
	background: var(--white);
	min-width: 0;
}

.mk-fact dt {
	font-weight: 400;
	font-size: .95rem;
	color: var(--gray-700);
}

.mk-fact dd {
	margin: 0 0 .25rem;
	font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -.03em;
	color: var(--gray-900);
	font-variant-numeric: tabular-nums;
}

.mk-fact {
	display: flex;
	flex-direction: column-reverse;
	justify-content: flex-end;
}

@media (max-width: 767.98px) {
	.mk-facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Cards */
.mk-card {
	height: 100%;
	padding: 1.75rem;
	border-radius: var(--mk-radius);
	border: var(--mk-border);
	background: var(--white);
	transition: border-color .2s, box-shadow .2s, transform .2s;
	min-width: 0;
}

.mk-card-interactive:hover {
	border-color: var(--primary-200);
	box-shadow: var(--mk-shadow);
	transform: translateY(-2px);
}

.mk-card h3 {
	font-size: 1.15rem;
	font-weight: 700;
	margin-bottom: .5rem;
}

.mk-card p {
	color: var(--gray-700);
	margin-bottom: 0;
}

.mk-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: .75rem;
	background: var(--primary-100);
	color: var(--mk-accent);
	margin-bottom: 1.25rem;
	font-size: 1.1rem;
}

.mk-icon-violet {
	background: rgba(124, 58, 237, .12);
	color: #7c3aed;
}

.mk-icon-green {
	background: rgba(40, 167, 69, .12);
	color: var(--success);
}

.mk-icon-amber {
	background: rgba(245, 158, 11, .14);
	color: #d97706;
}

.mk-icon-red {
	background: rgba(220, 53, 69, .12);
	color: var(--danger);
}

/* Data cards with sources */
.mk-stat-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 1.75rem;
	border-radius: var(--mk-radius);
	border: var(--mk-border);
	background: var(--white);
}

.mk-stat-value {
	font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.04em;
	color: var(--mk-accent);
	font-variant-numeric: tabular-nums;
	margin-bottom: .75rem;
}

.mk-stat-label {
	font-size: 1rem;
	color: var(--gray-800);
	margin-bottom: 1rem;
	flex-grow: 1;
}

.mk-source {
	font-size: .8rem;
	color: var(--gray-700);
	margin: 0;
}

.mk-source a {
	color: var(--gray-700);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.mk-source a:hover {
	color: var(--mk-accent);
}

/* Purpose rows */
.mk-purpose {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 1rem;
	padding: 1.25rem 0;
	border-bottom: var(--mk-border);
}

.mk-purpose:last-child {
	border-bottom: 0;
}

.mk-purpose h3 {
	font-size: 1.05rem;
	font-weight: 700;
	margin-bottom: .25rem;
}

.mk-purpose p {
	margin: 0;
	color: var(--gray-700);
}

.mk-tag {
	display: inline-block;
	padding: .15rem .6rem;
	border-radius: 999px;
	font-size: .75rem;
	font-weight: 600;
	white-space: nowrap;
	background: var(--gray-200);
	color: var(--gray-800);
}

.mk-tag-search {
	background: rgba(23, 162, 184, .14);
	color: #0b5566;
}

.mk-tag-user {
	background: rgba(40, 167, 69, .14);
	color: #14532d;
}

[data-theme-style="dark"] .mk-tag-search {
	color: #67e8f9;
}

[data-theme-style="dark"] .mk-tag-user {
	color: #86efac;
}

/* Feature rows with screenshots */
.mk-feature {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 4rem;
	align-items: center;
}

.mk-feature + .mk-feature {
	margin-top: 6rem;
}

.mk-feature-reverse .mk-feature-media {
	order: -1;
}

.mk-feature-media {
	min-width: 0;
}

.mk-feature-media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--mk-radius);
	border: var(--mk-border);
	box-shadow: var(--mk-shadow);
}

@media (max-width: 991.98px) {
	.mk-feature {
		grid-template-columns: minmax(0, 1fr);
		gap: 2rem;
	}

	.mk-feature-reverse .mk-feature-media {
		order: 0;
	}

	.mk-feature + .mk-feature {
		margin-top: 4rem;
	}
}

.mk-checklist {
	list-style: none;
	padding: 0;
	margin: 1.5rem 0 0;
}

.mk-checklist li {
	display: grid;
	grid-template-columns: 1.25rem minmax(0, 1fr);
	gap: .75rem;
	margin-bottom: .75rem;
	color: var(--gray-700);
}

.mk-checklist li > svg, .mk-checklist li > i {
	margin-top: .3rem;
	color: var(--mk-accent);
}

/* Steps */
.mk-steps {
	counter-reset: mk-step;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
	padding: 0;
	list-style: none;
}

.mk-step {
	position: relative;
	padding: 1.75rem;
	border-radius: var(--mk-radius);
	border: var(--mk-border);
	background: var(--white);
	min-width: 0;
}

.mk-step::before {
	counter-increment: mk-step;
	content: counter(mk-step);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: var(--primary);
	color: #fff;
	font-weight: 700;
	margin-bottom: 1rem;
	font-variant-numeric: tabular-nums;
}

.mk-step h3 {
	font-size: 1.1rem;
	font-weight: 700;
}

.mk-step p {
	color: var(--gray-700);
	margin-bottom: 1rem;
}

.mk-code {
	margin: 0;
	padding: .9rem 1rem;
	border-radius: var(--mk-radius-sm);
	background: var(--gray-900);
	color: var(--gray-100);
	font-size: .8rem;
	line-height: 1.6;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

[data-theme-style="dark"] .mk-code {
	background: var(--gray-100);
	color: var(--gray-800);
	border: var(--mk-border);
}

@media (max-width: 991.98px) {
	.mk-steps {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Comparison table */
.mk-table-wrap {
	position: relative;
	border-radius: var(--mk-radius);
	border: var(--mk-border);
	background: var(--white);
	overflow-x: auto;
	overscroll-behavior-x: contain;
}

.mk-table {
	width: 100%;
	border-collapse: collapse;
	font-size: .95rem;
}

.mk-table th, .mk-table td {
	padding: 1rem 1.25rem;
	border-bottom: var(--mk-border);
	vertical-align: middle;
}

.mk-table tr:last-child td, .mk-table tr:last-child th {
	border-bottom: 0;
}

.mk-table thead th {
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--gray-700);
	background: var(--gray-50);
}

.mk-table tbody th {
	font-weight: 500;
	color: var(--gray-800);
}

.mk-table .mk-col-us {
	background: rgba(17, 85, 212, .05);
	text-align: center;
}

.mk-table thead .mk-col-us {
	color: var(--mk-accent);
	background: rgba(17, 85, 212, .09);
}

.mk-table .mk-col {
	text-align: center;
}

.mk-yes {
	color: var(--success);
}

.mk-no {
	color: var(--gray-500);
}

.mk-table small {
	display: block;
	color: var(--gray-700);
}

@media (max-width: 575.98px) {
	.mk-table th, .mk-table td {
		padding: .8rem .75rem;
	}

	.mk-table {
		font-size: .875rem;
	}
}

/* Agent registry */
.mk-registry {
	min-width: 40rem;
}

.mk-registry td, .mk-registry th {
	padding: .8rem 1.25rem;
}

.mk-registry code {
	font-size: .85em;
	color: var(--gray-700);
	background: var(--gray-100);
	padding: .1rem .4rem;
	border-radius: .3rem;
}

/* Integrations */
.mk-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .75rem;
	padding: 0;
	margin: 0;
	list-style: none;
}

.mk-chips li {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .6rem 1.1rem;
	border-radius: 999px;
	border: var(--mk-border);
	background: var(--white);
	font-weight: 600;
	color: var(--gray-800);
}

.mk-chips li > svg, .mk-chips li > i {
	color: var(--mk-accent);
}

/* Chat demo for the MCP section */
.mk-chat {
	padding: 1.5rem;
	border-radius: var(--mk-radius);
	border: var(--mk-border);
	background: var(--white);
	box-shadow: var(--mk-shadow);
}

.mk-chat-message {
	max-width: 90%;
	padding: .8rem 1rem;
	border-radius: 1rem;
	margin-bottom: 1rem;
	line-height: 1.55;
	font-size: .95rem;
}

.mk-chat-user {
	margin-left: auto;
	background: var(--primary);
	color: #fff;
	border-bottom-right-radius: .3rem;
}

.mk-chat-assistant {
	background: var(--gray-100);
	color: var(--gray-800);
	border-bottom-left-radius: .3rem;
}

.mk-chat-assistant:last-child {
	margin-bottom: 0;
}

.mk-chat-tool {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	font-size: .75rem;
	font-family: var(--font-family-monospace);
	color: var(--gray-700);
	margin-bottom: .75rem;
}

/* FAQ */
.mk-faq {
	max-width: 50rem;
	margin: 0 auto;
}

.mk-faq details {
	border-bottom: var(--mk-border);
}

.mk-faq summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 1.25rem 0;
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--gray-900);
	cursor: pointer;
	list-style: none;
	border-radius: .3rem;
}

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

.mk-faq summary::after {
	content: '+';
	flex-shrink: 0;
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1;
	color: var(--mk-accent);
	transition: transform .2s;
}

.mk-faq details[open] summary::after {
	transform: rotate(45deg);
}

.mk-faq-answer {
	padding: 0 0 1.25rem;
	color: var(--gray-700);
	line-height: 1.7;
}

/* Closing call to action */
.mk-cta {
	position: relative;
	overflow: hidden;
	padding: 4rem 2rem;
	border-radius: 1.5rem;
	background: linear-gradient(135deg, #0a275c 0%, #1155d4 60%, #6d28d9 130%);
	color: #fff;
	text-align: center;
	isolation: isolate;
}

.mk-cta::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
	background-size: 40px 40px;
}

.mk-cta h2 {
	color: #fff;
	font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem);
	font-weight: 800;
	margin-bottom: 1rem;
}

.mk-cta p {
	color: rgba(255, 255, 255, .85);
	font-size: 1.15rem;
	max-width: 38rem;
	margin: 0 auto 2rem;
}

.mk-cta .btn-light {
	color: #0a275c;
	font-weight: 700;
}

.mk-cta .btn-outline-light:hover {
	color: #0a275c;
}

.mk-cta a:focus-visible {
	outline-color: #fff;
}

@media (prefers-reduced-motion: reduce) {
	.mk *, .mk *::before, .mk *::after {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
	}

	.mk .btn-primary:hover, .mk-card-interactive:hover {
		transform: none;
	}
}

/* Plans, restyled inside marketing pages only (the markup is shared with /plan) */
.mk .pricing-palden {
	gap: 1.5rem;
}

.mk .pricing-palden .pricing-item {
	margin: 0;
	padding: 0 0 2rem;
	border-radius: var(--mk-radius);
	border: var(--mk-border);
	background: var(--white);
	box-shadow: none;
	overflow: hidden;
	transition: border-color .2s, box-shadow .2s;
}

.mk .pricing-palden .pricing-item:hover {
	border-color: var(--primary-200);
	box-shadow: var(--mk-shadow);
}

.mk .pricing-palden .pricing-deco {
	padding: 2rem 2rem 1.25rem;
	background: transparent !important;
	color: var(--gray-900);
	border-bottom: var(--mk-border);
	text-align: left;
}

.mk .pricing-palden .pricing-deco-img {
	display: none;
}

.mk .pricing-palden .pricing-title {
	margin: 0 0 1rem;
	font-size: .85rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--mk-accent);
}

.mk .pricing-palden .pricing-price {
	padding: 0;
	font-size: 2.75rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.03em;
	color: var(--gray-900);
	font-variant-numeric: tabular-nums;
}

.mk .pricing-palden .pricing-currency {
	font-size: 1rem;
	font-weight: 600;
	color: var(--gray-700);
	vertical-align: baseline;
}

.mk .pricing-palden .pricing-sub {
	margin-top: .75rem;
	font-size: .95rem;
	color: var(--gray-700);
}

.mk .pricing-palden .pricing-feature-list {
	padding: 1.5rem 2rem 0;
	margin-bottom: 1.5rem;
	text-align: left;
}

.mk .pricing-palden .pricing-feature {
	color: var(--gray-700);
}

.mk .pricing-palden .pricing-action {
	margin: 0 2rem;
	border-radius: .7rem !important;
}

.mk .custom-breadcrumbs a, .mk .custom-breadcrumbs li {
	color: var(--gray-700);
}

.mk a.mk-card .h3, .mk a.mk-card h2 {
	color: var(--gray-900);
}
