/* airaw storefront
   background, #1d1d1f text, #6e6e73 secondary, one blue accent
   (#0066CC links, #0071e3 buttons), dark blurred global navigation,
   980px content column, 18px tiles, pill buttons, SF Pro Display for
   headlines and SF Pro Text for copy. JetBrains Mono stays for code. */

@font-face {
	font-family: "SF Pro Text";
	src: url("/static/fonts/sf-pro-text_regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "SF Pro Text";
	src: url("/static/fonts/sf-pro-text_medium.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "SF Pro Text";
	src: url("/static/fonts/sf-pro-text_semibold.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "SF Pro Text";
	src: url("/static/fonts/sf-pro-text_bold.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "SF Pro Display";
	src: url("/static/fonts/sf-pro-display_regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "SF Pro Display";
	src: url("/static/fonts/sf-pro-display_medium.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "SF Pro Display";
	src: url("/static/fonts/sf-pro-display_semibold.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "SF Pro Display";
	src: url("/static/fonts/sf-pro-display_bold.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "JetBrains Mono";
	src: url("/static/fonts/JetBrainsMono-Variable.woff2")
		format("woff2-variations");
	font-weight: 100 800;
	font-style: normal;
	font-display: swap;
}

:root {
	--accent: #0066cc;
	--accent-button: #0071e3;
	--accent-button-hover: #0077ed;
	--text: #1d1d1f;
	--muted: #6e6e73;
	--line: #d2d2d7;
	--panel: #f5f5f7;
	--tile: #ffffff;
	--nav-bg: rgba(0, 0, 0, 0.8);
	--nav-text: #f5f5f7;
	--width: 980px;
	--tile-radius: 18px;
	--pill-radius: 980px;
	--transition: 0.3s;
}

* {
	box-sizing: border-box;
}

[hidden] {
	display: none !important;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-height: 100vh;
	background:
		radial-gradient(
			ellipse 52% 42% at 12% 0%,
			rgba(38, 104, 172, 0.22),
			transparent 74%
		),
		radial-gradient(
			ellipse 46% 36% at 92% 16%,
			rgba(98, 65, 154, 0.16),
			transparent 72%
		),
		linear-gradient(180deg, #0b0d12 0%, #101319 46%, #15171c 100%);
	background-color: #15171c;
	background-repeat: no-repeat;
	color: #f5f5f7;
	font-family:
		"SF Pro Text", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
		Helvetica, Arial, sans-serif;
	font-optical-sizing: auto;
	font-size: 17px;
	line-height: 1.47059;
	letter-spacing: -0.012em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

code,
pre,
kbd,
.mono {
	font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

a {
	color: var(--accent);
	text-decoration: none;
	transition:
		color var(--transition),
		text-decoration var(--transition);
}

a:hover {
	text-decoration: underline;
}

a:active {
	opacity: 0.85;
}

:focus-visible {
	outline: 3px solid var(--accent-button);
	outline-offset: 2px;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: #ffffff;
	color: var(--accent);
	padding: 8px 16px;
	border-radius: var(--pill-radius);
	z-index: 100;
}

.skip-link:focus {
	left: 8px;
	top: 8px;
}

/* Global navigation: dark translucent blurred bar, 44px tall,
   12px links — the apple.com globalnav. */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	display: flex;
	flex-wrap: wrap;
	gap: 0 24px;
	align-items: center;
	justify-content: space-between;
	padding: 0 max(22px, calc((100vw - 1024px) / 2));
	min-height: 44px;
	background: var(--nav-bg);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
	font-size: 12px;
}

.brand {
	color: var(--nav-text);
	text-decoration: none;
	font-family:
		"SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont,
		sans-serif;
	font-weight: 600;
	font-size: 16px;
	letter-spacing: -0.01em;
	line-height: 44px;
	transition: opacity var(--transition);
}

.brand:hover {
	text-decoration: none;
	opacity: 0.7;
}

.site-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	align-items: center;
	font-size: 12px;
	line-height: 44px;
}

.site-nav > a {
	color: rgba(245, 245, 247, 0.8);
	text-decoration: none;
	padding: 0 10px;
	transition: color var(--transition);
}

.site-nav > a:hover,
.site-nav > a[aria-current="page"] {
	color: var(--nav-text);
	text-decoration: none;
}

.site-nav > a:hover {
	opacity: 1;
}

.site-nav > a[aria-current="page"] {
	color: #ffffff;
}

.docs-menu {
	position: relative;
}

.docs-menu summary {
	cursor: pointer;
	list-style: none;
	color: rgba(245, 245, 247, 0.8);
	padding: 0 10px;
	transition: color var(--transition);
}

.docs-menu summary::-webkit-details-marker {
	display: none;
}

.docs-menu summary::after {
	content: " ▾";
	opacity: 0.6;
}

.docs-menu summary:hover {
	color: var(--nav-text);
}

.docs-menu[open] summary {
	color: var(--nav-text);
}

.docs-links {
	position: absolute;
	top: calc(100% + 2px);
	right: 0;
	z-index: 20;
	display: flex;
	flex-direction: column;
	gap: 0;
	min-width: 220px;
	padding: 10px 0;
	background: rgba(22, 22, 23, 0.92);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
	border-radius: 12px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

.docs-links a {
	padding: 6px 22px;
	text-decoration: none;
	color: rgba(245, 245, 247, 0.8);
	font-size: 12px;
	line-height: 1.5;
	transition:
		color var(--transition),
		background var(--transition);
}

.docs-links a:hover {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.08);
	text-decoration: none;
}

/* Storefront: dark backdrop, four separate model cards and a
   consistent section rhythm. */

.hero {
	position: relative;
	max-width: var(--width);
	margin: 0 auto;
	padding: 104px 24px 96px;
	text-align: center;
}

.storefront-stage {
	position: relative;
	isolation: isolate;
	overflow-x: clip;
}

.terminal-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: -1;
	width: min(100%, 1200px);
	margin-inline: auto;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	pointer-events: none;
	--video-side-fade: clamp(60px, 12vw, 220px);
	--video-bottom-fade: 86%;
	-webkit-mask-image:
		linear-gradient(
			to right,
			transparent 0,
			#000 var(--video-side-fade),
			#000 calc(100% - var(--video-side-fade)),
			transparent 100%
		),
		linear-gradient(
			to bottom,
			#000 0%,
			#000 var(--video-bottom-fade),
			transparent 100%
		);
	-webkit-mask-composite: source-in;
	mask-image:
		linear-gradient(
			to right,
			transparent 0,
			#000 var(--video-side-fade),
			#000 calc(100% - var(--video-side-fade)),
			transparent 100%
		),
		linear-gradient(
			to bottom,
			#000 0%,
			#000 var(--video-bottom-fade),
			transparent 100%
		);
	mask-composite: intersect;
}

.terminal-video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center top;
	opacity: 0.12;
	filter: blur(2.4px) brightness(0.8) saturate(0.8);
}

.storefront .model-grid {
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	max-width: 760px;
	margin: 0 auto 40px;
	text-align: left;
}

.storefront .model-card {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 20px;
	min-width: 0;
	padding: 22px;
	background: #181b22;
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 16px;
}

.storefront .model-heading {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 56px;
}

.storefront .model-logo {
	display: block;
	width: 36px;
	height: 36px;
	flex: 0 0 36px;
	object-fit: contain;
}

.storefront .model-title {
	margin: 0;
	color: #f5f5f7;
	font-family:
		"SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont,
		sans-serif;
	font-size: 24px;
	line-height: 1.2;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.storefront .model-id code {
	margin: 0;
	color: #8fbfff;
	font-size: 12px;
	line-height: 1.33337;
	letter-spacing: 0;
	overflow-wrap: anywhere;
}

.storefront .model-id {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.model-copy {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	padding: 7px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	background: #20252e;
	color: #aab4c3;
	cursor: pointer;
	transition:
		background-color 160ms,
		color 160ms,
		border-color 160ms;
}

.model-copy:hover {
	background: #2b3340;
	color: #f5f5f7;
}

.model-copy:disabled {
	cursor: wait;
}

.model-copy svg {
	width: 16px;
	height: 16px;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.model-copy .copy-check {
	display: none;
}

.model-copy[data-copy-state="copied"] {
	color: #9fdbb1;
	border-color: #526d5c;
}

.model-copy[data-copy-state="copied"] .copy-glyph {
	display: none;
}

.model-copy[data-copy-state="copied"] .copy-check {
	display: inline;
}

.model-copy[data-copy-state="error"] {
	color: #efadb0;
	border-color: #87575c;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.clipboard-buffer {
	position: fixed;
	top: 0;
	left: 0;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.storefront .hero h2 {
	font-family:
		"SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont,
		sans-serif;
	font-size: 24px;
	line-height: 1.2;
	font-weight: 600;
	letter-spacing: -0.015em;
	color: #f5f5f7;
	margin: 64px 0 24px;
}

.storefront .hero-actions {
	display: flex;
	gap: 20px;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	margin-bottom: 0;
}

.button {
	display: inline-block;
	padding: 12px 25px;
	border: 1px solid transparent;
	border-radius: var(--pill-radius);
	color: var(--text);
	background: #e8e8ed;
	text-decoration: none;
	font-family: inherit;
	font-size: 17px;
	line-height: 1.17651;
	font-weight: 400;
	letter-spacing: -0.012em;
	cursor: pointer;
	transition:
		background var(--transition),
		color var(--transition),
		border-color var(--transition);
}

.button:hover {
	background: #dcdce1;
	color: var(--text);
	text-decoration: none;
}

.button-primary {
	background: var(--accent-button);
	border-color: var(--accent-button);
	color: #ffffff;
}

.button-primary:hover {
	background: var(--accent-button-hover);
	border-color: var(--accent-button-hover);
	color: #ffffff;
}

.button[disabled] {
	opacity: 0.56;
	cursor: default;
}

/* In the hero the secondary action is a link, not a gray pill —
   the apple.com "Узнать подробнее" pair. */

.hero-actions .button:not(.button-primary) {
	background: none;
	border: none;
	color: var(--accent-button);
	padding: 12px 4px;
}

.hero-actions .button:not(.button-primary):hover {
	color: var(--accent-button-hover);
	text-decoration: underline;
}

/* Generic page content */

.page {
	max-width: var(--width);
	margin: 0 auto;
	padding: 64px 24px 88px;
}

.page h1 {
	font-family:
		"SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont,
		sans-serif;
	font-size: clamp(36px, 5.2vw, 48px);
	line-height: 1.08349;
	letter-spacing: -0.003em;
	font-weight: 600;
	margin: 0 0 12px;
}

.page h2 {
	font-family:
		"SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont,
		sans-serif;
	font-size: 32px;
	line-height: 1.125;
	letter-spacing: 0.004em;
	font-weight: 600;
	margin: 48px 0 12px;
}

.page h3 {
	font-family:
		"SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont,
		sans-serif;
	font-size: 21px;
	line-height: 1.19048;
	font-weight: 600;
	letter-spacing: 0.011em;
	margin: 32px 0 8px;
}

.lede {
	max-width: 680px;
	color: var(--muted);
	font-size: 19px;
	line-height: 1.4211;
	letter-spacing: 0.011em;
	margin-top: 6px;
}

label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.42859;
	letter-spacing: -0.01em;
	margin-bottom: 8px;
}

input[type="text"],
input[type="password"] {
	width: 100%;
	max-width: 480px;
	padding: 12px 16px;
	font: inherit;
	color: var(--text);
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: 12px;
	transition:
		border-color var(--transition),
		box-shadow var(--transition);
}

input[type="text"]:focus,
input[type="password"]:focus {
	outline: none;
	border-color: var(--accent-button);
	box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.16);
}

.form-hint {
	font-size: 12px;
	line-height: 1.33337;
	letter-spacing: -0.01em;
	color: var(--muted);
	margin: 6px 0 20px;
	max-width: 480px;
}

.form-row {
	margin-bottom: 12px;
}

.form-error {
	color: #d70015;
	font-weight: 600;
}

.form-status {
	color: var(--muted);
}

.result-key {
	display: block;
	font-size: 15px;
	line-height: 1.26668;
	letter-spacing: normal;
	padding: 16px 18px;
	margin: 12px 0 24px;
	border: none;
	border-radius: 12px;
	background: var(--panel);
	word-break: break-all;
}

/* Dashboard: white tiles with 18px corners on the white page —
   flip the tone: tiles become #f5f5f7 panels, like apple.com
   compare cards. */

.stat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin: 24px 0;
}

.stat {
	background: var(--panel);
	border: none;
	border-radius: var(--tile-radius);
	padding: 24px;
}

.stat h2 {
	margin: 0 0 6px;
	font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 12px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: -0.01em;
	color: var(--muted);
}

.stat p {
	margin: 0;
	font-family:
		"SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont,
		sans-serif;
	font-size: 40px;
	line-height: 1.1;
	font-weight: 600;
	letter-spacing: 0;
}

table {
	border-collapse: collapse;
	width: 100%;
	font-size: 14px;
	line-height: 1.42859;
	letter-spacing: -0.01em;
	margin: 16px 0;
}

th,
td {
	text-align: left;
	padding: 12px 12px;
	border-bottom: 1px solid var(--line);
	vertical-align: top;
}

th {
	font-weight: 600;
	color: var(--muted);
	white-space: nowrap;
}

.muted {
	color: var(--muted);
}

.empty-state {
	border: none;
	background: var(--panel);
	border-radius: var(--tile-radius);
	padding: 32px;
	text-align: center;
	color: var(--muted);
}

/* Pricing */

/* Two pricing sections (tokens / unlimited) with their own rhythm. */

.pricing-section {
	min-width: 0;
	margin-top: 32px;
}

.pricing-section:first-child {
	margin-top: 0;
}

.account-page .pricing-section h2 {
	margin: 0 0 10px;
	font-size: 24px;
	line-height: 1.25;
	letter-spacing: -0.015em;
}

.pricing-section-note {
	margin: 0 0 16px;
	max-width: 720px;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.6;
}

/* Documentation hub pages: the same dark guide look with a sticky
   section sidebar and the terminal backdrop behind the content. */

.docs-stage {
	min-height: 100vh;
}

.docs-layout {
	position: relative;
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	align-items: start;
	gap: 52px;
	max-width: 1120px;
	margin: 0 auto;
	padding: 64px 24px 96px;
}

.docs-sidebar {
	position: sticky;
	top: 76px;
	min-width: 0;
}

.docs-nav-label {
	margin: 0 0 12px;
	color: #8895a8;
	font-size: 12px;
	font-weight: 600;
}

.docs-sidebar .docs-nav + .docs-nav-label {
	margin-top: 22px;
}

.docs-nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.docs-nav a {
	padding: 9px 12px;
	border-radius: 8px;
	color: #b0b8c5;
	font-size: 14px;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.docs-nav a:hover,
.docs-nav a[aria-current="page"] {
	background: #1c2533;
	color: #e8f0ff;
	text-decoration: none;
}

.docs-content {
	min-width: 0;
	color: #d4d9e1;
	font-size: 16px;
	line-height: 1.65;
}

.docs-content h1 {
	margin: 0 0 8px;
	color: #f5f5f7;
	font-size: clamp(32px, 4vw, 42px);
	line-height: 1.1;
	letter-spacing: -0.01em;
}

.docs-content h2 {
	margin: 40px 0 12px;
	color: #eff2f7;
	font-size: 24px;
	line-height: 1.25;
	letter-spacing: -0.015em;
	scroll-margin-top: 80px;
}

.docs-content h3 {
	margin: 26px 0 8px;
	color: #eff2f7;
	font-size: 18px;
	letter-spacing: 0;
}

.docs-content .lede {
	color: #aeb8c7;
	font-size: 17px;
	line-height: 1.55;
	letter-spacing: 0;
}

.docs-content a {
	color: #8fbfff;
}

.docs-content p,
.docs-content li {
	overflow-wrap: anywhere;
}

.docs-content code {
	color: #c1d7fb;
	overflow-wrap: anywhere;
}

.docs-kicker {
	margin: 0 0 6px;
	color: #8895a8;
	font-size: 13px;
	letter-spacing: 0.02em;
}

.docs-kicker a {
	color: #8fbfff;
}

.docs-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 14px;
	margin: 20px 0 8px;
}

.docs-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px 22px;
	border: 1px solid #30384a;
	border-radius: 14px;
	background: rgba(24, 27, 34, 0.92);
	color: #f5f5f7;
	transition:
		background var(--transition),
		border-color var(--transition),
		transform var(--transition);
}

.docs-card:hover {
	background: #20252e;
	border-color: rgba(143, 191, 255, 0.4);
	text-decoration: none;
	transform: translateY(-2px);
}

.docs-card .docs-card-title {
	font-family:
		"SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont,
		sans-serif;
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.docs-card .docs-card-desc {
	color: #b0b7c3;
	font-size: 13px;
	line-height: 1.5;
}

.docs-card .docs-card-more {
	margin-top: 6px;
	color: #8fbfff;
	font-size: 13px;
}

.docs-header {
	margin-bottom: 32px;
}

/* Docs pages are dark like the guides: code blocks, notes and tables
   keep the dark surfaces instead of the light global defaults. */

.docs-content pre {
	max-width: 100%;
	margin: 16px 0;
	padding: 18px 20px;
	border: 1px solid #303846;
	border-radius: 12px;
	background: #121720;
	color: #dce5f3;
	font-size: 13px;
	line-height: 1.6;
	white-space: pre;
	overflow-wrap: normal;
}

.docs-content pre code {
	color: inherit;
	overflow-wrap: normal;
}

.docs-content .code-block pre {
	margin: 0;
	border: 0;
	border-radius: 0;
}

.docs-content .doc-note,
.docs-content .doc-warn {
	padding: 16px 18px;
	border: 1px solid #354255;
	border-radius: 10px;
	background: #192130;
	color: #c9d5e8;
	font-weight: 400;
}

.docs-content table {
	table-layout: fixed;
}

.docs-content th,
.docs-content td {
	padding: 12px 10px;
	border-color: #303846;
	overflow-wrap: anywhere;
}

.docs-content th {
	color: #a6b3c6;
	white-space: normal;
}
@media (max-width: 800px) {
	.docs-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
		padding: 36px 16px 64px;
	}

	.docs-sidebar {
		position: static;
	}

	.docs-nav {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.docs-nav a {
		padding: 7px 9px;
		font-size: 13px;
	}

	.docs-content {
		font-size: 15px;
	}
}

/* Docs */

/* The long command lines scroll horizontally, but the OS-white native
   scrollbar under the code must stay invisible: only the pre rule,
   page and table scrolling stay untouched. */
pre {
	background: var(--panel);
	border: none;
	border-radius: var(--tile-radius);
	padding: 20px;
	overflow-x: auto;
	font-size: 13px;
	line-height: 1.5;
	letter-spacing: normal;
	scrollbar-width: none;
}

pre::-webkit-scrollbar {
	display: none;
}

.doc-note,
.doc-warn {
	border: none;
	border-radius: var(--tile-radius);
	background: var(--panel);
	padding: 20px 24px;
	margin: 24px 0;
	font-size: 15px;
	line-height: 1.46653;
}

.doc-warn {
	background: rgba(215, 0, 21, 0.06);
	font-weight: 500;
}

.doc-list {
	padding-left: 20px;
}

.doc-list li {
	margin: 10px 0;
}

.page.guide.guide-enhanced {
	display: grid;
	grid-template-columns: 180px minmax(0, 1fr);
	align-items: start;
	gap: 56px;
	max-width: 1120px;
	color: #d4d9e1;
}

.guide-sidebar {
	position: sticky;
	top: 76px;
	min-width: 0;
}

.guide-nav-label {
	margin: 0 0 12px;
	color: #8895a8;
	font-size: 12px;
	font-weight: 600;
}

.guide-nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.guide-nav a {
	padding: 9px 12px;
	border-radius: 8px;
	color: #b0b8c5;
	font-size: 14px;
	line-height: 1.4;
}

.guide-nav a:hover,
.guide-nav a[aria-current="page"] {
	background: #1c2533;
	color: #e8f0ff;
	text-decoration: none;
}

.guide-content {
	min-width: 0;
	font-size: 16px;
	line-height: 1.65;
}

.guide-header {
	margin-bottom: 32px;
}

.guide h1 {
	color: #f5f5f7;
	font-size: clamp(32px, 4vw, 42px);
}

.guide .lede {
	color: #aeb8c7;
	font-size: 17px;
	line-height: 1.55;
	letter-spacing: 0;
}

.guide h2 {
	margin: 36px 0 12px;
	color: #eff2f7;
	font-size: 24px;
	line-height: 1.25;
	letter-spacing: -0.015em;
	scroll-margin-top: 80px;
}

.guide h3 {
	margin: 24px 0 8px;
	font-size: 18px;
	letter-spacing: 0;
}

.guide a {
	color: #8fbfff;
}

.guide p,
.guide li {
	overflow-wrap: anywhere;
}

.guide code {
	color: #c1d7fb;
	overflow-wrap: anywhere;
}

.guide pre {
	max-width: 100%;
	margin: 16px 0;
	padding: 18px 20px;
	border: 1px solid #303846;
	border-radius: 12px;
	background: #121720;
	color: #dce5f3;
	font-size: 13px;
	line-height: 1.6;
	white-space: pre;
	overflow-wrap: normal;
}

.guide pre code {
	color: inherit;
	overflow-wrap: normal;
}

.code-block {
	max-width: 100%;
	margin: 18px 0;
	overflow: hidden;
	border: 1px solid #303846;
	border-radius: 12px;
	background: #121720;
}

.code-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 12px 8px 18px;
	border-bottom: 1px solid #303846;
	background: #1a212c;
	color: #9dacbf;
	font-size: 12px;
}

.code-toolbar > span {
	min-width: 0;
	overflow-wrap: anywhere;
}

.guide .code-block pre {
	margin: 0;
	border: 0;
	border-radius: 0;
}

.code-copy {
	flex-shrink: 0;
	padding: 6px 10px;
	border: 1px solid #3b485d;
	border-radius: 7px;
	background: #202b3b;
	color: #d6e5ff;
	font: inherit;
	cursor: pointer;
}

.code-copy:hover {
	background: #2b3b52;
}

.code-copy[data-copy-state="copied"] {
	color: #9fdbb1;
}

.code-copy[data-copy-state="error"] {
	color: #efadb0;
}

.guide-details {
	margin-top: 22px;
	padding: 16px 0;
	border-top: 1px solid #303846;
}

.guide-details summary {
	color: #dbe3ef;
	font-weight: 500;
	cursor: pointer;
}

.guide-details[open] summary {
	margin-bottom: 14px;
}

.guide table {
	table-layout: fixed;
}

.guide th,
.guide td {
	padding: 12px 10px;
	border-color: #303846;
	overflow-wrap: anywhere;
}

.guide th {
	color: #a6b3c6;
	white-space: normal;
}

.guide .doc-note,
.guide .doc-warn {
	padding: 16px 18px;
	border: 1px solid #354255;
	border-radius: 10px;
	background: #192130;
	color: #c9d5e8;
	font-weight: 400;
}

.guide-source {
	margin-top: 32px;
	font-size: 13px;
	color: #8d9aaf;
}

@media (max-width: 800px) {
	.page.guide.guide-enhanced {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
		padding: 32px 16px 64px;
	}

	.guide-sidebar {
		position: static;
	}

	.guide-nav {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.guide-nav a {
		padding: 7px 9px;
		font-size: 13px;
	}

	.guide-content {
		font-size: 15px;
	}
}

.hero .doc-list {
	display: inline-block;
	text-align: left;
}

.storefront .quick-start {
	max-width: 760px;
	margin: 56px auto 0;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.storefront .hero .quick-start h2 {
	margin: 0 0 22px;
	color: #c5cad3;
	font-size: 22px;
	font-weight: 500;
	text-align: left;
}

.storefront .steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	list-style: none;
	padding: 0;
}

.storefront .steps li {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: 12px;
	row-gap: 6px;
	align-content: start;
	background: none;
	border: 0;
	border-radius: 0;
	padding: 0;
	text-align: left;
}

.storefront .step-number {
	grid-row: 1 / span 2;
	margin: 0;
	color: #8d9eb5;
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 12px;
	line-height: 1.8;
}

.storefront .steps strong {
	margin: 0;
	color: #f5f5f7;
	font-family:
		"SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont,
		sans-serif;
	font-size: 18px;
	line-height: 1.2;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.storefront .steps li > span:last-child {
	grid-column: 2;
	color: #b0b7c3;
	font-size: 13px;
	line-height: 1.5;
	letter-spacing: -0.01em;
}

/* Client picker: tappable tiles instead of a plain link list. */

.storefront .client-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	text-align: left;
}

.storefront .client-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	background: #181b22;
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 16px;
	padding: 24px;
	color: #f5f5f7;
	transition:
		background var(--transition),
		border-color var(--transition),
		transform var(--transition);
}

.storefront .client-card:hover {
	background: #20252e;
	border-color: rgba(143, 191, 255, 0.4);
	text-decoration: none;
	transform: translateY(-2px);
}

.storefront .client-name {
	font-family:
		"SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont,
		sans-serif;
	font-size: 21px;
	line-height: 1.19048;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.storefront .client-desc {
	color: #b0b7c3;
	font-size: 14px;
	line-height: 1.42859;
}

.storefront .client-more {
	margin-top: 24px;
	color: #8fbfff;
	font-size: 14px;
	line-height: 1.42859;
}

.hero .client-card:hover .client-more {
	text-decoration: none;
}

/* Responsive stack */

@media (max-width: 720px) {
	.site-header {
		padding: 8px 10px;
		gap: 0 12px;
	}

	.site-nav > a,
	.docs-menu summary {
		padding: 0 7px;
	}

	.brand {
		line-height: 1.2;
	}

	.hero {
		padding: 64px 16px 64px;
	}

	.storefront .model-grid,
	.storefront .steps,
	.storefront .client-grid {
		grid-template-columns: 1fr;
	}

	.storefront .model-card {
		padding: 18px;
	}

	.storefront .hero h2 {
		margin-top: 48px;
		font-size: 22px;
	}

	.page {
		padding: 40px 16px 64px;
	}

	.docs-links {
		left: auto;
		right: 0;
	}
}

/* Motion-sensitive visitors get no animations or transitions. */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

.account-page {
	--text: #edf1f7;
	--muted: #a5b0c1;
	--line: #303b4b;
	--panel: #181b22;
	--tile: #181b22;
	--accent: #8fbfff;
}

.account-shell {
	max-width: 1060px;
}

.account-shell.activation-page {
	max-width: 700px;
}

.account-page .page-heading {
	max-width: 720px;
	margin-bottom: 32px;
}

.account-page .page-heading h1 {
	font-size: clamp(32px, 4vw, 42px);
	line-height: 1.15;
}

.account-page .lede {
	margin: 10px 0 0;
	color: var(--muted);
	font-size: 17px;
	line-height: 1.6;
	letter-spacing: 0;
}

.account-panel {
	min-width: 0;
	padding: 28px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--panel);
}

.account-form {
	display: grid;
	gap: 20px;
}

.account-form .form-row {
	margin-bottom: 0;
}

.account-page label {
	font-size: 14px;
	font-weight: 500;
}

.account-page input[type="text"],
.account-page input[type="password"] {
	max-width: none;
	min-height: 48px;
	border: 1px solid #3a4659;
	border-radius: 10px;
	background: #10151d;
	color: var(--text);
	font-size: 16px;
}

.account-page input::placeholder {
	color: #8896aa;
	opacity: 1;
}

.account-page input[aria-invalid="true"] {
	border-color: #e6929b;
}

.account-page .form-hint {
	max-width: 640px;
	margin: 8px 0 0;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.55;
}

.account-form > .button {
	justify-self: start;
}

.activation-page .account-form > .button {
	width: 100%;
}

.account-page .button:not(.button-primary) {
	border-color: #39475b;
	background: #242e3c;
	color: #dce6f5;
}

.account-page .button:not(.button-primary):hover {
	background: #303e52;
}

.account-actions,
.key-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 20px;
}

.account-page .form-error,
.account-page .form-status {
	margin: 0;
	padding: 12px 14px;
	border: 1px solid #344257;
	border-radius: 9px;
	background: #1c293b;
	color: #b7cdeb;
	font-size: 14px;
	line-height: 1.5;
	font-weight: 400;
	overflow-wrap: anywhere;
}

.account-page .form-error {
	border-color: #724953;
	background: #2b2028;
	color: #f1b4bc;
}

.account-details {
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 14px;
	line-height: 1.6;
}

.account-form .account-details {
	margin: 0;
}

.account-details summary {
	color: #cbd6e6;
	font-weight: 500;
	cursor: pointer;
}

.account-details[open] summary {
	margin-bottom: 16px;
}

.account-page .result-panel {
	margin-top: 24px;
	border-color: #3b5d50;
}

.account-page .result-key {
	padding: 16px;
	border: 1px solid #38465b;
	border-radius: 10px;
	background: #10151d;
	color: #c7e0ff;
	line-height: 1.6;
}

.account-section {
	min-width: 0;
	margin-top: 28px;
}

.account-page h2 {
	margin: 0 0 16px;
	font-size: 22px;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.account-page .stat-grid {
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
	margin: 24px 0 16px;
}

.account-page .stat {
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--panel);
}

.account-page .stat h2 {
	margin-bottom: 12px;
	color: #a5b0c1;
	font-size: 13px;
	font-weight: 500;
}

.account-page .stat p {
	font-size: clamp(28px, 3.5vw, 40px);
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
}

.account-page .stat p code {
	font-family: inherit;
}

.table-scroll {
	max-width: 100%;
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #141a23;
	overscroll-behavior-x: contain;
}

.account-page table {
	min-width: 640px;
	margin: 0;
}

.account-page th,
.account-page td {
	padding: 14px 16px;
	border-color: #2b3544;
}

.account-page th {
	background: #1a222e;
	color: #a8b6ca;
	font-size: 12px;
	font-weight: 500;
}

.account-page td {
	color: #d7e0ed;
	font-size: 13px;
	line-height: 1.5;
}

.account-page tbody tr:last-child td {
	border-bottom: 0;
}

.account-page #models-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.account-page #models-list li {
	max-width: 100%;
	margin: 0;
	padding: 7px 10px;
	border: 1px solid #35445a;
	border-radius: 8px;
	background: #1b283b;
	color: #b9d3f8;
	font-size: 13px;
	overflow-wrap: anywhere;
}

.account-page .empty-state {
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--panel);
	color: var(--muted);
	font-size: 15px;
	line-height: 1.6;
}

@media (max-width: 720px) {
	.account-shell {
		padding: 36px 16px 64px;
	}

	.account-panel {
		padding: 20px;
	}

	.account-page .stat-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.account-page .page-heading {
		margin-bottom: 24px;
	}
}

.result-key-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	margin: 18px 0;
}

.result-key-row .result-key {
	min-width: 0;
	margin: 0;
}

.pricing-error-row {
	display: flex;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 12px;
}

.pricing-error-row .form-error {
	flex: 1 1 240px;
}

@media (max-width: 720px) {
	.result-key-row {
		grid-template-columns: minmax(0, 1fr);
	}

	.result-key-row .button {
		justify-self: start;
	}
}

/* Pricing v2: tab switcher, rate lines and the unlimited matrix. */

.pricing-tabs {
	display: flex;
	gap: 8px;
	margin: 0 0 8px;
}

.pricing-tab {
	appearance: none;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--panel);
	color: var(--fg);
	font: inherit;
	font-size: 15px;
	padding: 10px 18px;
	cursor: pointer;
	transition:
		border-color 0.15s ease,
		background 0.15s ease;
}

.pricing-tab:hover {
	border-color: #35445a;
}

.pricing-tab[aria-selected="true"] {
	background: #1b283b;
	border-color: #35445a;
	color: #b9d3f8;
	font-weight: 600;
}

.unlim-wrap {
	margin-top: 12px;
}

.unlim-scroll {
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--panel);
	padding: 8px;
}

.unlim-table {
	border-collapse: separate;
	border-spacing: 0;
	width: 100%;
	min-width: 640px;
}

.unlim-table th,
.unlim-table td {
	padding: 14px 18px;
	text-align: left;
	border-bottom: 1px solid var(--line);
	vertical-align: top;
}

.unlim-table thead th {
	border-bottom: 1px solid #35445a;
	min-width: 180px;
}

.unlim-table tbody tr:last-child th,
.unlim-table tbody tr:last-child td {
	border-bottom: none;
}

.unlim-table tbody th {
	white-space: nowrap;
	font-weight: 600;
	color: var(--muted);
}

.unlim-name {
	display: block;
	font-family:
		"SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont,
		sans-serif;
	font-size: 19px;
	font-weight: 600;
	letter-spacing: 0.011em;
}

.unlim-feats {
	display: block;
	margin-top: 6px;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.5;
}

.unlim-price {
	font-family:
		"SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont,
		sans-serif;
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -0.015em;
}

.pricing-buy-note {
	margin: 12px 4px 0;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.5;
}

.pricing-buy-note a {
	color: #b9d3f8;
}

@media (max-width: 720px) {
	.pricing-tabs {
		gap: 6px;
	}

	.pricing-tab {
		padding: 9px 14px;
		font-size: 14px;
	}

	.unlim-scroll {
		padding: 4px;
	}

	.unlim-table th,
	.unlim-table td {
		padding: 10px 12px;
	}
}

/* Pricing page compaction: the tokens tab must fit one screen
   (~1014x857) without vertical scrolling. Scoped to .pricing-page so
   the shared account rhythm (dashboard, activation) stays intact. */

.pricing-page .page {
	padding: 20px 24px 16px;
}

.pricing-page .page-heading {
	margin-bottom: 12px;
}

.pricing-page .page-heading h1 {
	font-size: clamp(24px, 2.6vw, 30px);
}

.pricing-page .lede {
	font-size: 15px;
	line-height: 1.5;
}

.pricing-page .account-section,
.pricing-page .pricing-section {
	margin-top: 12px;
}

.pricing-page .pricing-section h2 {
	font-size: 18px;
	margin: 0 0 8px;
}

.pricing-page .pricing-section-note {
	margin: 0 0 10px;
	font-size: 13px;
	line-height: 1.45;
}

.pricing-page .unlim-scroll {
	margin-top: 12px;
}

.pricing-page .tok-price {
	font-family:
		"SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont,
		sans-serif;
	font-size: 17px;
	font-weight: 600;
	white-space: nowrap;
}

.pricing-page .tok-rate {
	color: var(--muted);
	font-size: 13px;
	white-space: nowrap;
}

.pricing-page .tok-limits {
	font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 11px;
	line-height: 1.4;
}

.pricing-page .tok-table th,
.pricing-page .tok-table td {
	padding: 10px 14px;
}

.pricing-page .pricing-buy-note {
	margin: 8px 4px 0;
	font-size: 13px;
}

.pricing-page .account-panel {
	padding: 10px 16px;
}

.pricing-page .account-panel h2 {
	font-size: 16px;
	margin: 0 0 6px;
}

.pricing-page .doc-list li {
	margin: 4px 0;
	font-size: 13px;
	line-height: 1.5;
}

.pricing-page .unlim-name {
	font-size: 16px;
}

.pricing-page .unlim-table th,
.pricing-page .unlim-table td {
	padding: 10px 14px;
}
