:root {
	color-scheme: light;
	--ink: #172033;
	--muted: #59687d;
	--accent: #5558db;
	--line: #e2e8f0;
	--paper: #f8fafc;
	--mono: ui-monospace,SFMono-Regular,Consolas,monospace;
}
* {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
	scroll-padding-top: 100px;
}
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
	font-size: 16px;
	line-height: 1.65;
}
a {
	color: inherit;
	text-decoration: none;
}
button {
	font: inherit;
	cursor: pointer;
}
a,button {
	touch-action: manipulation;
}
a:focus-visible,button:focus-visible {
	outline: 3px solid #6366f1;
	outline-offset: 5px;
}
p {
	color: var(--muted);
}
h1,h2,h3 {
	line-height: 1.15;
	letter-spacing: -.045em;
}
h1 {
	font-size: clamp(44px,5vw,68px);
	font-weight: 650;
	margin: 23px 0;
}
h2 {
	font-size: 36px;
	font-weight: 600;
}
h3 {
	font-size: 21px;
	font-weight: 600;
}
em {
	font-style: normal;
	color: var(--accent);
}
code {
	font-family: var(--mono);
	font-size: .85em;
}
p code {
	background: #eeeffc;
	color: #474aba;
	border-radius: 4px;
	padding: 2px 5px;
}
.wrap {
	max-width: 1216px;
	margin: auto;
	padding-inline: 36px;
}
.header {
	height: 84px;
	background: #ffffffed;
	border-bottom: 1px solid var(--line);
	position: sticky;
	top: 0;
	z-index: 10;
	backdrop-filter: blur(14px);
}
.header-inner {
	max-width: 1280px;
	padding: 0 36px;
	height: 100%;
	margin: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.brand {
	font-size: 24px;
	letter-spacing: -1px;
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
}
.brand-mark {
	background: #6366f1;
	color: white;
	width: 35px;
	height: 35px;
	border-radius: 10px;
	text-align: center;
	font: 700 25px/35px var(--mono);
	letter-spacing: -5px;
	padding-right: 5px;
}
.brand-label {
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0;
	color: var(--muted);
	margin-left: 7px;
}
.header nav {
	display: flex;
	align-items: center;
	gap: 32px;
	font-size: 14px;
	font-weight: 500;
}
.header nav a:hover,.text-link:hover {
	color: var(--accent);
}
.github {
	border: 1px solid var(--line);
	border-radius: 7px;
	padding: 7px 13px;
}
.skip {
	position: fixed;
	top: -100px;
	background: white;
	z-index: 20;
	padding: 12px;
}
.skip:focus {
	top: 8px;
}
.hero {
	display: grid;
	grid-template-columns: 1.12fr 1fr;
	gap: 65px;
	padding-top: 76px;
	padding-bottom: 72px;
}
.hero-copy {
	padding-top: 13px;
}
.eyebrow,.side-label {
	font-size: 10px;
	letter-spacing: 1.9px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--muted);
}
.dot {
	display: inline-block;
	width: 6px;
	height: 6px;
	background: #059669;
	border-radius: 50%;
	box-shadow: 0 0 0 4px #05966910;
}
.hero-lead {
	font-size: 23px;
	line-height: 1.5;
	letter-spacing: -.5px;
	color: #334155;
	margin-top: 26px;
	margin-bottom: 18px;
}
.hero-detail {
	font-size: 15px;
	max-width: 430px;
	line-height: 1.85;
}
.actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 24px;
	margin-top: 30px;
}
.button {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 25px;
	border-radius: 7px;
	padding: 13px 18px;
	font-size: 13px;
	font-weight: 600;
}
.primary {
	background: var(--accent);
	color: white;
	box-shadow: 0 5px 12px #5558db20;
}
.primary:hover {
	background: #4446bd;
}
.text-link {
	font-size: 13px;
	font-weight: 600;
}
.install {
	margin-top: 26px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: white;
	border: 1px solid var(--line);
	padding: 10px 14px;
	border-radius: 7px;
	max-width: 325px;
}
.install code {
	font-size: 12px;
}
.copy {
	font-size: 11px;
	border: 1px solid #ffffff25;
	border-radius: 4px;
	padding: 3px 9px;
	background: transparent;
	color: #b8c5dc;
	min-height: 28px;
}
.install .copy {
	color: #64748b;
	border-color: var(--line);
}
.hero-caption {
	font-size: 11px;
	color: var(--muted);
	margin-top: 12px;
}
.hero-demo {
	position: relative;
	padding-top: 8px;
}
.hero-demo:before {
	content: "";
	position: absolute;
	background: radial-gradient(ellipse,#dfe1ff99,transparent 70%);
	inset: -65px -65px;
	z-index: -1;
}
.demo-heading {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
}
.tiny-index {
	font: 10px var(--mono);
	color: #64748b;
	letter-spacing: 1px;
}
.live-badge {
	font-size: 10px;
	color: var(--accent);
	background: #ebecff;
	padding: 3px 8px;
	border: 1px solid #dcdffd;
	border-radius: 4px;
}
.codebox {
	background: #0f172a;
	color: #dde7f9;
	border: 1px solid #28344c;
	border-radius: 10px;
	overflow: hidden;
	min-width: 0;
	margin: 20px 0;
	box-shadow: 0 8px 22px #0f172a08;
}
#persistence > p {
	margin-bottom: 8px;
}
.persistence-examples {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin: 20px 0;
}
.persistence-examples .codebox {
	margin: 0;
}
.hero-demo .codebox {
	margin: 0;
}
.codebar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 17px;
	border-bottom: 1px solid #ffffff12;
	color: #b8c5dc;
	font: 11px var(--mono);
}
pre {
	margin: 0;
	padding: 21px;
	overflow-x: auto;
	tab-size: 2;
	line-height: 1.8;
	font-size: 13px;
}
pre code {
	font-size: inherit;
	white-space: pre;
	color: #bccfff;
}
.flow-connector {
	font: 10px var(--mono);
	color: #66788e;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 9px;
}
.flow-connector span {
	color: var(--accent);
	font-size: 19px;
}
.browser {
	margin-top: 20px;
	background: white;
	border: 1px solid #d9dfe9;
	border-radius: 11px;
	box-shadow: 0 18px 40px #23306b0b;
	overflow: hidden;
}
.browser-bar {
	background: #f8fafc;
	border-bottom: 1px solid var(--line);
	padding: 9px 13px;
	display: flex;
	justify-content: space-between;
	color: #7a8799;
	font: 9px var(--mono);
}
.traffic {
	letter-spacing: 2px;
	color: #c5cbd7;
}
.browser-content {
	padding: 27px 29px;
}
.browser-content .eyebrow {
	font-size: 8px;
}
.browser h2 {
	font-size: 38px;
	margin: 18px 0 6px;
	letter-spacing: -1.7px;
}
.browser h2 span {
	color: #6366f1;
}
.browser p {
	font-size: 12px;
	margin: 0;
}
.success {
	display: inline-block;
	background: #edfaf4;
	color: #087751;
	border-radius: 4px;
	padding: 4px 8px;
	font-size: 9px;
	margin-top: 22px;
}
.demo-foot {
	display: flex;
	justify-content: center;
	gap: 18px;
	color: #66788e;
	font: 9px var(--mono);
	margin-top: 16px;
}
.principles {
	display: grid;
	grid-template-columns: repeat(3,1fr);
	gap: 40px;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	padding-block: 32px;
}
.principles>div {
	position: relative;
}
.principles>div>span {
	font: 10px var(--mono);
	color: #8187b8;
}
.principles h3 {
	margin: 13px 0;
	font-size: 19px;
	letter-spacing: -.5px;
}
.principles p {
	font-size: 13px;
	line-height: 1.8;
	margin-bottom: 0;
}
.learning {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px 65px;
	padding-block: 65px;
}
.learning>div:first-child {
	grid-row: span 2;
}
.learning h2 {
	margin: 20px 0;
}
.learning p {
	font-size: 14px;
}
.lesson {
	display: flex;
	align-items: center;
	gap: 22px;
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 25px;
	background: white;
}
.lesson:hover {
	border-color: #a5a7eb;
}
.lesson-num {
	font: 13px var(--mono);
	color: #6366f1;
	background: #f0f0ff;
	padding: 8px;
	border-radius: 6px;
}
.lesson h3 {
	font-size: 16px;
	margin: 0 0 6px;
	letter-spacing: -.3px;
}
.lesson p {
	font-size: 12px;
	margin: 0;
}
.lesson>span:last-child {
	margin-left: auto;
	color: #6366f1;
}
.store-preview {
	border-top: 1px solid var(--line);
	padding-block: 55px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
}
.store-preview h2 {
	font-size: 32px;
}
.store-preview p {
	font-size: 14px;
}
.counter-pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	align-items: center;
}
.counter-card {
	background: white;
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 22px;
	text-align: center;
}
.counter-card .side-label {
	justify-content: center;
	font-size: 8px;
}
.counter-card small {
	font-size: 10px;
	color: var(--muted);
}
.counter-controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 20px 0;
}
.counter-controls output {
	font: 600 36px var(--mono);
	color: var(--accent);
}
.counter-controls button {
	width: 32px;
	height: 32px;
	border: 1px solid #dddffc;
	border-radius: 7px;
	background: #f4f4ff;
	color: var(--accent);
	font-size: 20px;
}
.counter-controls button:hover {
	background: #e6e7ff;
}
.footer {
	max-width: 1216px;
	margin: auto;
	border-top: 1px solid var(--line);
	padding: 29px 36px 40px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 25px;
}
.footer .brand {
	font-size: 17px;
}
.footer .brand-label {
	font-size: 10px;
}
.footer small {
	display: block;
	font-size: 10px;
	color: var(--muted);
	margin-top: 10px;
}
.footer small a {
	text-decoration: underline;
	text-underline-offset: 3px;
}
.footer>a {
	font-size: 12px;
	color: var(--muted);
}
.docs-layout {
	max-width: 1200px;
	margin: auto;
	display: grid;
	grid-template-columns: 230px minmax(0,760px);
	gap: 55px;
	padding: 45px 36px 80px;
}
.sidebar {
	position: sticky;
	top: 124px;
	align-self: start;
}
.sidebar nav {
	display: grid;
	margin-top: 20px;
	gap: 7px;
}
.sidebar nav a {
	font: 10px var(--mono);
	display: flex;
	gap: 16px;
	padding: 11px;
	border-radius: 6px;
	color: #64748b;
}
.sidebar nav a span {
	font: 13px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.sidebar a[aria-current],.sidebar a:hover {
	background: #eceeff;
	color: #494cc8;
}
.side-note {
	margin-top: 40px;
	border-top: 1px solid var(--line);
	padding-top: 22px;
	font-size: 11px;
	color: #46536a;
}
.side-note .dot {
	margin-right: 10px;
}
.side-note p {
	font-size: 12px;
	line-height: 1.8;
}
.doc-content {
	min-width: 0;
}
.doc-content h1 {
	font-size: 52px;
}
.intro {
	font-size: 18px;
	line-height: 1.8;
	max-width: 640px;
}
.pathway {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 26px 0 45px;
	color: #9ca3b8;
	font-size: 12px;
}
.pathway span {
	background: white;
	border: 1px solid var(--line);
	padding: 6px 15px;
	border-radius: 20px;
	color: #64748b;
}
.step {
	padding: 28px 0;
	border-top: 1px solid var(--line);
	scroll-margin-top: 105px;
}
.step-title {
	display: flex;
	align-items: center;
	gap: 17px;
}
.step-title>span {
	font: 12px var(--mono);
	color: var(--accent);
	background: #eeefff;
	padding: 8px;
	border-radius: 7px;
}
.step h2 {
	font-size: 27px;
	margin: 0;
	letter-spacing: -.7px;
}
.step>p {
	font-size: 15px;
	line-height: 1.8;
}
.result {
	border: 1px solid #cfe8dd;
	border-left: 3px solid #059669;
	background: white;
	border-radius: 7px;
	padding: 23px;
	margin: 20px 0;
}
.result h3 {
	font-size: 31px;
	margin: 16px 0;
}
.result p {
	font-size: 13px;
}
.callout {
	padding: 20px 22px;
	background: #eeefff;
	border: 1px solid #dcdef8;
	border-radius: 8px;
	font-size: 14px;
	color: #444879;
}
.callout p {
	font-size: 14px;
	margin-bottom: 0;
}
.next-page {
	margin-top: 30px;
	padding: 23px;
	border: 1px solid var(--line);
	border-radius: 9px;
	display: flex;
	justify-content: space-between;
	font-size: 14px;
	color: var(--accent);
	background: white;
}
.caption {
	font-size: 12px;
	text-align: center;
}
.doc-content .counter-pair {
	margin-top: 30px;
}
@media(min-width:1500px) {
	.hero {
		padding-top: 105px;
		padding-bottom: 90px;
	}
}
@media(max-width:950px) {
	.hero {
		gap: 30px;
		padding-top: 45px;
	}
	.hero h1 {
		font-size: 46px;
	}
	.hero-lead {
		font-size: 20px;
	}
	.header nav {
		gap: 16px;
	}
	.actions {
		gap: 15px;
	}
	.docs-layout {
		gap: 28px;
		grid-template-columns: 175px minmax(0,1fr);
	}
	.counter-card {
		padding: 15px;
	}
	.learning,.store-preview {
		gap: 30px;
	}
	.brand-label {
		display: none;
	}
}
@media(max-width:680px) {
	.persistence-examples {
		grid-template-columns: 1fr;
		gap: 14px;
	}
	.wrap {
		padding-inline: 22px;
	}
	.header {
		height: 70px;
	}
	.header-inner {
		padding: 0 20px;
		gap: 10px;
	}
	.brand {
		font-size: 20px;
	}
	.brand-mark {
		width: 30px;
		height: 30px;
		font-size: 21px;
		line-height: 30px;
	}
	.header nav {
		gap: 13px;
		font-size: 12px;
	}
	.github {
		padding: 0;
		border: 0;
	}
	.header nav a: nth-child(2) {
		display: none;
	}
	.hero {
		grid-template-columns: 1fr;
		gap: 40px;
		padding-top: 30px;
		padding-bottom: 40px;
	}
	.hero h1 {
		font-size: 48px;
		letter-spacing: -2px;
	}
	.hero-detail {
		max-width: none;
	}
	.hero-demo: before {
		inset: 0;
	}
	.hero-copy {
		padding-top: 0;
	}
	.principles {
		grid-template-columns: 1fr;
		gap: 25px;
		padding-block: 28px;
	}
	.principles p {
		max-width: 420px;
	}
	.principles h3 {
		margin-top: 7px;
	}
	.learning,.store-preview {
		grid-template-columns: 1fr;
		padding-block: 36px;
	}
	.learning>div: first-child {
		grid-row: auto;
	}
	.lesson {
		padding: 20px;
	}
	.counter-card {
		padding: 18px 12px;
	}
	.footer {
		padding: 25px 22px;
		display: block;
	}
	.footer>a {
		display: block;
		margin-top: 18px;
	}
	.footer .brand-label {
		display: block;
	}
	.docs-layout {
		display: block;
		padding: 24px 22px 45px;
	}
	.sidebar {
		position: static;
		margin-bottom: 30px;
	}
	.sidebar .side-note,.sidebar>.side-label {
		display: none;
	}
	.sidebar nav {
		display: flex;
		gap: 4px;
		margin: 0;
		overflow-x: auto;
	}
	.sidebar nav a {
		gap: 5px;
		white-space: nowrap;
		padding: 9px 7px;
	}
	.sidebar nav a span {
		font-size: 11px;
	}
	.doc-content h1 {
		font-size: 42px;
	}
	.intro {
		font-size: 16px;
	}
	.step h2 {
		font-size: 24px;
	}
	.step-title {
		gap: 12px;
	}
	.codebar {
		padding: 9px 13px;
		font-size: 10px;
	}
	pre {
		font-size: 11px;
		padding: 16px;
	}
	.eyebrow {
		font-size: 9px;
		letter-spacing: 1.4px;
	}
}
@media(prefers-reduced-motion:reduce) {
	html {
		scroll-behavior: auto;
	}
}
img.brand-mark {
	padding: 0;
	flex-shrink: 0;
}
/* Centered introduction; the sections below the hero retain their layout. */ .hero {
	grid-template-columns: minmax(0,1fr);
	gap: 48px;
	padding-top: 58px;
	padding-bottom: 64px;
}
.hero-copy {
	text-align: center;
	padding-top: 0;
	max-width: 780px;
	margin-inline: auto;
}
.hero-copy>.eyebrow {
	justify-content: center;
}
.hero h1 {
	font-size: clamp(44px,5vw,68px);
}
.hero-lead {
	margin-top: 20px;
}
.hero-lead br {
	display: none;
}
.hero-detail {
	max-width: 550px;
	margin-inline: auto;
}
.hero .actions {
	justify-content: center;
	margin-top: 25px;
}
.hero .install {
	margin: 22px auto 0;
	width: 100%;
}
.hero-demo {
	width: 100%;
	max-width: 620px;
	margin-inline: auto;
	padding-top: 0;
}
@media(max-width:680px) {
	.hero {
		padding-top: 34px;
		padding-bottom: 40px;
		gap: 34px;
	}
	.hero h1 {
		font-size: 42px;
		letter-spacing: -1.7px;
	}
	.hero-copy>.eyebrow {
		font-size: 8px;
		letter-spacing: 1.1px;
	}
	.hero-lead {
		font-size: 19px;
	}
	.hero .actions {
		gap: 17px;
	}
}
/* Make editorial calls to action clearly recognizable as links. */ .text-link {
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-thickness: 1px;
}
.text-link:hover {
	color: #4446bd;
	text-decoration-thickness: 2px;
}
