/* =============================================
   Stripe-Inspired Theme
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
	--stripe-purple: #635BFF;
	--stripe-purple-light: #7A73FF;
	--stripe-deep-blue: #0a2540;
	--stripe-cyan: #00d4ff;
	--stripe-grey-50: #f6f9fc;
	--stripe-grey-100: #e6ebf1;
	--stripe-grey-200: #cfd7df;
	--stripe-grey-600: #516f90;
	--stripe-grey-900: #1a1f36;
	--font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color-scheme: light dark;
}

html, body {
	margin: 0;
	padding: 0;
	height: 100%;
	background: #fff;
	color: var(--stripe-grey-900);
	font-family: var(--font-family);
	font-synthesis-weight: none;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

@media (prefers-color-scheme: dark) {
	html, body {
		background: var(--stripe-deep-blue);
		color: #fff;
	}
}

/* Header */
header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--stripe-deep-blue);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 24px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	letter-spacing: -0.2px;
}

.brand-icon {
	width: 120px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.brand-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.brand-icon svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: #fff;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.brand small {
	color: var(--stripe-grey-200);
	font-weight: 400;
	margin-left: 2px;
}

header nav {
	display: flex;
	align-items: center;
	gap: 8px;
}

header nav a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 500;
	color: var(--stripe-grey-200);
	text-decoration: none;
	transition: all 0.15s ease;
}

header nav a:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

header nav a.nav-cta {
	background: var(--stripe-purple);
	color: #fff;
}

header nav a.nav-cta:hover {
	background: var(--stripe-purple-light);
}

main {
	min-height: calc(100vh - 60px);
}

.footer-note {
	position: fixed;
	right: 16px;
	bottom: 16px;
	padding: 6px 12px;
	background: var(--stripe-deep-blue);
	border-radius: 20px;
	font-size: 11px;
	font-weight: 500;
	color: var(--stripe-grey-200);
	letter-spacing: 0.3px;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

a {
	color: var(--stripe-purple);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

/* Content layout */
.content {
	max-width: 1100px;
	margin: 0 auto;
	padding: 24px 20px 64px;
	font: 14px/1.5 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}
.page {
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px 20px 64px;
	font: 14px/1.5 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}
.content h1, .content h2, .content h3 {
	margin: 0 0 10px;
	font-weight: 650;
}
.content p {
	margin: 0 0 10px;
}
.page h1, .page h2, .page h3 { margin: 0 0 10px; font-weight: 650; }
.page p { margin: 0 0 10px; }
.muted { opacity: .7; }

/* Page hero - Stripe inspired */
.page-hero {
	position: relative;
	padding: 48px 24px 40px;
	background: linear-gradient(135deg, var(--stripe-deep-blue) 0%, #0d3356 50%, #0f4066 100%);
	overflow: hidden;
}

.page-hero::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -20%;
	width: 80%;
	height: 200%;
	background: radial-gradient(ellipse at center, rgba(99, 91, 255, 0.15) 0%, transparent 60%);
	pointer-events: none;
}

.page-hero::after {
	content: '';
	position: absolute;
	bottom: -30%;
	left: -10%;
	width: 50%;
	height: 100%;
	background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
	pointer-events: none;
}

.page-hero .title {
	position: relative;
	font-size: 32px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 12px;
	letter-spacing: -0.5px;
}

.page-hero .subtitle {
	position: relative;
	font-size: 16px;
	line-height: 1.6;
	color: var(--stripe-grey-200);
	max-width: 560px;
	margin: 0;
}

.btn-row {
	position: relative;
	display: flex;
	gap: 12px;
	margin-top: 24px;
	flex-wrap: wrap;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	border-radius: 8px;
	border: none;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s ease;
}

.btn:hover {
	transform: translateY(-2px);
	text-decoration: none;
}

.btn-primary {
	background: var(--stripe-purple);
	color: #fff;
	box-shadow: 0 4px 14px rgba(99, 91, 255, 0.4);
}

.btn-primary:hover {
	background: var(--stripe-purple-light);
	box-shadow: 0 6px 20px rgba(99, 91, 255, 0.5);
}

.btn-ghost {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-ghost:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.25);
}

/* Toolbar */
.toolbar {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	margin: 16px 0 20px;
	flex-wrap: wrap;
}
.search {
	flex: 1;
	min-width: 220px;
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1px solid color-mix(in oklab, CanvasText 15%, transparent);
	background: color-mix(in oklab, Canvas 96%, transparent);
	border-radius: 10px;
	padding: 10px 12px;
	transition: border-color .15s ease;
}
.search:focus-within {
	border-color: AccentColor;
}
.search input {
	border: 0;
	outline: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	width: 100%;
}
.tagline {
	opacity: .7;
	font-size: 13px;
}

/* Cards grid */
.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 16px;
}
.card {
	border: 1px solid color-mix(in oklab, CanvasText 15%, transparent);
	background: color-mix(in oklab, Canvas 96%, transparent);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 0 color-mix(in oklab, CanvasText 8%, transparent);
	display: flex;
	flex-direction: column;
}
.card-header {
	padding: 14px 14px 8px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}
.card-title {
	font-weight: 650;
	font-size: 15px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.badge {
	font: 11px/1.8 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
	border-radius: 999px;
	padding: 2px 8px;
	border: 1px solid transparent;
	letter-spacing: .3px;
	text-transform: uppercase;
	white-space: nowrap;
}
.method-get { background: #e6f6ef; color: #0a7a48; border-color: #9ad9be; }
.method-post { background: #e6eefc; color: #1b54d6; border-color: #9bb5f5; }
.method-put { background: #fff4e5; color: #a15a05; border-color: #f7c58b; }
.method-delete { background: #fdecec; color: #b02a2a; border-color: #f2a4a4; }

.card-body {
	padding: 0 14px 14px;
	display: grid;
	gap: 8px;
}
.path {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	font-size: 12px;
	background: color-mix(in oklab, Canvas 92%, transparent);
	border: 1px dashed color-mix(in oklab, CanvasText 20%, transparent);
	border-radius: 8px;
	padding: 6px 8px;
	overflow: auto;
}
.desc {
	font-size: 13px;
}
.schema details {
	border-top: 1px solid color-mix(in oklab, CanvasText 10%, transparent);
	padding-top: 8px;
}
.schema summary {
	cursor: pointer;
	font-weight: 600;
}
.schema pre {
	margin: 8px 0 0;
	background: color-mix(in oklab, Canvas 92%, transparent);
	border: 1px solid color-mix(in oklab, CanvasText 10%, transparent);
	border-radius: 8px;
	padding: 10px;
	max-height: 300px;
	overflow: auto;
	font-size: 12px;
}

/* FILTER CHIPS AND CONTROLS */
.filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border-radius: 999px;
	border: 1px solid color-mix(in oklab, CanvasText 15%, transparent);
	background: color-mix(in oklab, Canvas 98%, transparent);
	cursor: pointer;
	user-select: none;
	font: 12px/1 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
	transition: background-color .15s ease, border-color .15s ease, transform .06s ease;
}
.chip:hover { transform: translateY(-1px); }
.chip.is-active {
	border-color: AccentColor;
	background: color-mix(in oklab, AccentColor 14%, Canvas);
}
.controls {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}
.select {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid color-mix(in oklab, CanvasText 15%, transparent);
	background: color-mix(in oklab, Canvas 98%, transparent);
	border-radius: 10px;
	padding: 8px 10px;
}
.select select {
	border: 0;
	outline: 0;
	background: transparent;
	color: inherit;
	font: inherit;
}
.btn-small {
	padding: 6px 10px;
	border-radius: 8px;
	border: 1px solid color-mix(in oklab, CanvasText 18%, transparent);
	background: color-mix(in oklab, Canvas 98%, transparent);
	font: 12px/1 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
	cursor: pointer;
}
.btn-small:hover { transform: translateY(-1px); }

/* Card polish */
.card {
	transition: box-shadow .15s ease, transform .06s ease, border-color .15s ease;
}
.card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px color-mix(in oklab, CanvasText 14%, transparent);
}
.card.method-get { border-left: 3px solid #25a56a; }
.card.method-post { border-left: 3px solid #3a6af2; }
.card.method-put { border-left: 3px solid #d58a1a; }
.card.method-delete { border-left: 3px solid #cc3c3c; }
.meta-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}
.schema-actions {
	display: flex;
	gap: 6px;
	justify-content: flex-end;
}

/* Scalar wrapper */
.scalar-wrap {
	background: #fff;
}

@media (prefers-color-scheme: dark) {
	.scalar-wrap {
		background: var(--stripe-deep-blue);
	}
}

/* Remove page padding for scalar section */
.page.scalar-section {
	padding: 0;
	max-width: none;
}


