@import url('fonts/fonts.css');

/* ===========================================================================
   overspill.dev
   ---------------------------------------------------------------------------
   The design language is deliberately continuous with the product's dashboard:
   the same two themes (Eclipse / Daybreak), the same token names, the same
   type pairing, the same accent ramp. Someone who clicks through from this page
   into a running instance should not feel a seam.

   Where it departs is rhythm. A dashboard is a dense grid; a page that has to
   make an argument needs air, a reading measure, and a spine you can follow.
   So: numbered editorial sections, hairline rules, monospace chrome, and one
   scroll-linked meter down the left edge — an instrument, not a brochure.

   Amber is money. Mint is money saved. Indigo→violet is the brand. Those three
   meanings are never mixed, because the product's whole claim is that its
   numbers mean something specific.
   =========================================================================== */

/* ---------------------------------------------------------------------------
   Theme · Eclipse (dark) — the default, matching the dashboard
   --------------------------------------------------------------------------- */
:root,
:root[data-theme='eclipse'] {
	color-scheme: dark;

	--bg: #0a0b11;
	--bg-panel: #12141e;
	--bg-panel-2: #171a26;
	--bg-raised: #1c2030;

	--border: #282e40;
	--border-soft: #1c2233;

	--text: #eceef5;
	--text-dim: #9aa3bd;
	--text-faint: #616b85;

	--accent: #7c8cff;
	--accent-2: #3ddca0;
	--amber: #f5b544;
	--purple: #b794fa;
	--danger: #fb7185;

	--on-accent: #0a0b11;

	--grad-accent: linear-gradient(135deg, #7c8cff 0%, #b794fa 100%);
	--grad-accent-2: linear-gradient(135deg, #3ddca0 0%, #38d6ea 100%);
	--glow: rgba(124, 140, 255, 0.35);

	--shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 10px 34px -12px rgba(0, 0, 0, 0.55);
	--shadow-pop: 0 16px 44px -8px rgba(0, 0, 0, 0.6);
	--shadow-shot: 0 40px 90px -30px rgba(0, 0, 0, 0.85), 0 2px 0 rgba(255, 255, 255, 0.05) inset;

	--page-glow-1: rgba(124, 140, 255, 0.13);
	--page-glow-2: rgba(61, 220, 160, 0.07);
	--grid-line: rgba(255, 255, 255, 0.045);

	--code-bg: #0d0f18;
	--rule: var(--border-soft);
}

/* ---------------------------------------------------------------------------
   Theme · Daybreak (light)
   --------------------------------------------------------------------------- */
:root[data-theme='daybreak'] {
	color-scheme: light;

	--bg: #eef1f8;
	--bg-panel: #ffffff;
	--bg-panel-2: #f7f9fd;
	--bg-raised: #f4f6fb;

	--border: #dde3ee;
	--border-soft: #e7ebf4;

	--text: #182338;
	--text-dim: #57617a;
	--text-faint: #8b95ab;

	--accent: #3b6ef6;
	--accent-2: #10b981;
	--amber: #b8770a;
	--purple: #8b5cf6;
	--danger: #ef4444;

	--on-accent: #ffffff;

	--grad-accent: linear-gradient(135deg, #3b6ef6 0%, #8b5cf6 100%);
	--grad-accent-2: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
	--glow: rgba(59, 110, 246, 0.18);

	--shadow-card: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px -8px rgba(16, 24, 40, 0.1);
	--shadow-pop: 0 16px 40px -8px rgba(16, 24, 40, 0.18);
	--shadow-shot: 0 30px 70px -28px rgba(16, 24, 40, 0.35), 0 0 0 1px rgba(16, 24, 40, 0.05);

	--page-glow-1: rgba(59, 110, 246, 0.1);
	--page-glow-2: rgba(16, 185, 129, 0.06);
	--grid-line: rgba(16, 24, 40, 0.05);

	--code-bg: #0e1220;
	--rule: var(--border);
}

/* ---------------------------------------------------------------------------
   Structure
   --------------------------------------------------------------------------- */
:root {
	--radius: 16px;
	--radius-sm: 10px;
	--radius-lg: 22px;
	--maxw: 76rem;
	--measure: 40rem;

	--font-sans: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
	--font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Cascadia Mono', Consolas, monospace;

	--step-1: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
	--step0: clamp(0.95rem, 0.92rem + 0.15vw, 1.02rem);
	--step1: clamp(1.1rem, 1.02rem + 0.4vw, 1.3rem);
	--step2: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem);
	--step3: clamp(1.85rem, 1.4rem + 2vw, 2.9rem);
	--step4: clamp(2.25rem, 1.5rem + 3.4vw, 3.9rem);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	/* Anchors land below the sticky header rather than under it. */
	scroll-padding-top: 5.5rem;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: var(--step0);
	line-height: 1.62;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

/* Atmosphere: two soft glows plus an instrument grid, both fixed so the page
   moves over them rather than dragging them along. */
body::before {
	content: '';
	position: fixed;
	inset: 0;
	z-index: -2;
	pointer-events: none;
	background-image:
		radial-gradient(1100px 620px at 8% -8%, var(--page-glow-1), transparent 60%),
		radial-gradient(900px 520px at 100% 0%, var(--page-glow-2), transparent 55%);
}

body::after {
	content: '';
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image:
		linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
		linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
	background-size: 72px 72px;
	mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 75%);
	-webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 75%);
}

a {
	color: inherit;
	text-decoration: none;
}

::selection {
	background: var(--glow);
	color: var(--text);
}

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

img {
	max-width: 100%;
	height: auto;
	display: block;
}

hr {
	border: 0;
	border-top: 1px solid var(--rule);
	margin: 0;
}

/* ---------------------------------------------------------------------------
   Layout primitives
   --------------------------------------------------------------------------- */
.wrap {
	width: 100%;
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 1.6rem;
}

.section {
	padding: clamp(3.5rem, 8vw, 7rem) 0;
	position: relative;
}

.section + .section {
	border-top: 1px solid var(--rule);
}

.measure {
	max-width: var(--measure);
}

.skip {
	position: absolute;
	left: -9999px;
	top: 0;
}
.skip:focus {
	left: 1rem;
	top: 1rem;
	z-index: 100;
	background: var(--bg-panel);
	border: 1px solid var(--border);
	padding: 0.6rem 1rem;
	border-radius: var(--radius-sm);
}

/* Section label: `01 / WHAT IT DOES` with a hairline running off to the right.
   This is the page's spine — it appears above every major block and nothing
   else in the design uses this treatment. */
.eyebrow {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	font-family: var(--font-mono);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--text-faint);
	margin-bottom: 1.6rem;
}

.eyebrow .num {
	color: var(--accent);
}

.eyebrow::after {
	content: '';
	flex: 1;
	height: 1px;
	background: linear-gradient(to right, var(--rule), transparent);
}

h1,
h2,
h3,
h4 {
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.12;
	margin: 0 0 0.6rem;
	text-wrap: balance;
}

h1 {
	font-size: var(--step4);
	font-weight: 800;
	letter-spacing: -0.04em;
}
h2 {
	font-size: var(--step3);
	font-weight: 700;
}
h3 {
	font-size: var(--step1);
}

p {
	margin: 0 0 1rem;
	text-wrap: pretty;
}

.lede {
	font-size: var(--step1);
	line-height: 1.55;
	color: var(--text-dim);
	font-weight: 400;
}

.dim {
	color: var(--text-dim);
}
.faint {
	color: var(--text-faint);
}
.mono {
	font-family: var(--font-mono);
	font-variant-numeric: tabular-nums;
}
.amber {
	color: var(--amber);
}
.mint {
	color: var(--accent-2);
}

.note {
	font-size: var(--step-1);
	color: var(--text-faint);
	line-height: 1.55;
}

/* ---------------------------------------------------------------------------
   Scroll meter — the signature element.

   A hairline gauge pinned to the left edge that fills amber as you read. The
   product measures a number climbing while nobody watches; the page does the
   same thing to itself. Driven by a scroll-linked animation where supported,
   with no JS fallback needed.
   --------------------------------------------------------------------------- */
.meter {
	position: fixed;
	left: max(0.55rem, env(safe-area-inset-left));
	top: 6.5rem;
	bottom: 3rem;
	width: 2px;
	z-index: 5;
	background: var(--rule);
	border-radius: 2px;
	pointer-events: none;
	overflow: hidden;
}

.meter::before {
	content: '';
	position: absolute;
	inset: 0 0 auto 0;
	height: 100%;
	background: linear-gradient(to bottom, var(--accent), var(--purple) 55%, var(--amber));
	transform-origin: top;
	transform: scaleY(var(--scroll, 0));
}

@supports (animation-timeline: scroll()) {
	.meter::before {
		transform: scaleY(0);
		animation: meter-fill linear both;
		animation-timeline: scroll(root block);
	}
	@keyframes meter-fill {
		to {
			transform: scaleY(1);
		}
	}
}

@media (max-width: 1180px) {
	.meter {
		display: none;
	}
}

/* ---------------------------------------------------------------------------
   Header
   --------------------------------------------------------------------------- */
.topbar {
	position: sticky;
	top: 0;
	z-index: 30;
	border-bottom: 1px solid var(--border-soft);
	background: color-mix(in srgb, var(--bg) 80%, transparent);
	backdrop-filter: saturate(1.6) blur(14px);
	-webkit-backdrop-filter: saturate(1.6) blur(14px);
}

.topbar-inner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0.75rem 1.6rem;
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	flex-shrink: 0;
}

.brand svg {
	filter: drop-shadow(0 4px 10px var(--glow));
}

.brand-word {
	font-family: var(--font-mono);
	font-size: 1.02rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.brand-word .b {
	color: var(--text);
}
.brand-word .s {
	color: var(--text-faint);
	transition: color 0.25s ease;
}
.brand:hover .s {
	color: var(--amber);
}

.nav {
	display: flex;
	gap: 0.15rem;
	margin-left: 0.5rem;
}

.nav a {
	font-size: 0.87rem;
	font-weight: 500;
	color: var(--text-dim);
	padding: 0.4rem 0.8rem;
	border-radius: 999px;
	transition:
		color 0.15s ease,
		background 0.15s ease;
}

.nav a:hover {
	color: var(--text);
	background: var(--bg-raised);
}

.nav a[aria-current='page'] {
	color: var(--text);
	background: var(--bg-raised);
	box-shadow: inset 0 0 0 1px var(--border);
}

.topbar-actions {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 0.7rem;
}

.theme-switch {
	display: inline-flex;
	background: var(--bg-panel);
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 2px;
}

.theme-switch button {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	background: none;
	border: 0;
	cursor: pointer;
	color: var(--text-faint);
	font: inherit;
	font-size: 0.76rem;
	padding: 0.32rem 0.7rem;
	border-radius: 999px;
	transition:
		color 0.15s ease,
		background 0.15s ease;
}

.theme-switch button:hover {
	color: var(--text);
}

.theme-switch button[aria-pressed='true'] {
	background: var(--bg-raised);
	color: var(--text);
	box-shadow: inset 0 0 0 1px var(--border);
}

/* Below 860px the nav drops to its own full-width row and scrolls sideways.
   Hiding it outright is the usual move, but it makes Features, Docs and Privacy
   unreachable from anywhere except the footer — and a hamburger is a lot of
   machinery for four links. */
@media (max-width: 860px) {
	.topbar-inner {
		flex-wrap: wrap;
		gap: 0.75rem;
		padding-bottom: 0;
	}

	.nav {
		order: 3;
		width: 100%;
		margin-left: -1.6rem;
		margin-right: -1.6rem;
		padding: 0 1.6rem 0.55rem;
		overflow-x: auto;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.nav::-webkit-scrollbar {
		display: none;
	}

	.nav a {
		white-space: nowrap;
	}

	.theme-switch .lbl {
		display: none;
	}
}

@media (max-width: 420px) {
	.topbar-actions .btn-ghost {
		display: none;
	}
}

/* ---------------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font: inherit;
	font-size: 0.92rem;
	font-weight: 600;
	padding: 0.72rem 1.3rem;
	border-radius: 999px;
	border: 1px solid transparent;
	cursor: pointer;
	white-space: nowrap;
	transition:
		transform 0.15s ease,
		box-shadow 0.2s ease,
		background 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease;
}

.btn:active {
	transform: translateY(1px);
}

.btn-primary {
	background: var(--grad-accent);
	color: var(--on-accent);
	box-shadow: 0 8px 24px -10px var(--glow);
}

.btn-primary:hover {
	box-shadow: 0 12px 30px -8px var(--glow);
}

.btn-ghost {
	background: var(--bg-panel);
	border-color: var(--border);
	color: var(--text);
}

.btn-ghost:hover {
	background: var(--bg-raised);
	border-color: var(--accent);
}

.btn-quiet {
	background: none;
	color: var(--text-dim);
	padding-inline: 0.4rem;
}
.btn-quiet:hover {
	color: var(--text);
}

.arrow {
	transition: transform 0.2s ease;
}
a:hover > .arrow {
	transform: translateX(3px);
}

/* ---------------------------------------------------------------------------
   Panels & cards
   --------------------------------------------------------------------------- */
.panel {
	background: var(--bg-panel);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius);
	box-shadow: var(--shadow-card);
	padding: 1.5rem;
}

.card {
	background: var(--bg-panel);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius);
	padding: 1.5rem;
	position: relative;
	overflow: hidden;
	transition:
		border-color 0.25s ease,
		transform 0.25s ease,
		box-shadow 0.25s ease;
}

/* A hairline that lights up along the top edge on hover — the only decoration
   these cards get, and it reads as an instrument responding rather than a
   generic lift. */
.card::before {
	content: '';
	position: absolute;
	inset: 0 0 auto 0;
	height: 1px;
	background: var(--grad-accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.35s cubic-bezier(0.16, 0.84, 0.44, 1);
}

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

.card:hover::before {
	transform: scaleX(1);
}

.card h3 {
	margin-bottom: 0.35rem;
}

.card p {
	color: var(--text-dim);
	font-size: 0.92rem;
	margin: 0;
}

.card-ico {
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	border-radius: 10px;
	background: var(--bg-raised);
	border: 1px solid var(--border-soft);
	color: var(--accent);
	margin-bottom: 0.9rem;
}

.grid {
	display: grid;
	gap: 1rem;
}
.g2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.g3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.g4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 940px) {
	.g3,
	.g4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 620px) {
	.g2,
	.g3,
	.g4 {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------------- */
.hero {
	padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem);
	position: relative;
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}

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

.pill {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-dim);
	background: var(--bg-panel);
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 0.35rem 0.85rem;
	margin-bottom: 1.5rem;
}

.pill .dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--amber);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 22%, transparent);
}

.hero h1 .spill {
	background: linear-gradient(120deg, var(--accent) 0%, var(--purple) 45%, var(--amber) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.8rem;
	margin-top: 1.8rem;
}

/* --- the screenshot, in a browser frame ---------------------------------- */
.shot {
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid var(--border);
	background: var(--bg-panel);
	box-shadow: var(--shadow-shot);
}

.shot-bar {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.6rem 0.85rem;
	background: var(--bg-panel-2);
	border-bottom: 1px solid var(--border-soft);
}

.shot-bar i {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--border);
	display: block;
}

.shot-url {
	margin-left: 0.5rem;
	font-family: var(--font-mono);
	font-size: 0.68rem;
	color: var(--text-faint);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.shot img {
	width: 100%;
	display: block;
}

/* The hero screenshot leans out of the column on wide screens — the page should
   feel like it cannot quite contain the product. */
.hero-shot {
	position: relative;
}

@media (min-width: 1280px) {
	.hero-shot {
		margin-right: clamp(-6rem, -4vw, -1rem);
	}
}

figure {
	margin: 0;
}

figcaption {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	color: var(--text-faint);
	margin-top: 0.7rem;
	letter-spacing: 0.02em;
}

/* ---------------------------------------------------------------------------
   Signup form
   --------------------------------------------------------------------------- */
.signup {
	display: flex;
	gap: 0.55rem;
	max-width: 27rem;
	margin-top: 1.6rem;
}

.signup input {
	flex: 1;
	min-width: 0;
	font: inherit;
	font-size: 0.92rem;
	color: var(--text);
	background: var(--bg-panel);
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 0.72rem 1.1rem;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

.signup input::placeholder {
	color: var(--text-faint);
}

.signup input:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.signup-msg {
	font-size: var(--step-1);
	color: var(--text-dim);
	margin-top: 0.7rem;
	min-height: 1.3em;
}

.signup-msg[data-state='ok'] {
	color: var(--accent-2);
}
.signup-msg[data-state='err'] {
	color: var(--danger);
}

@media (max-width: 520px) {
	.signup {
		flex-direction: column;
		border-radius: var(--radius);
	}
	.signup .btn {
		width: 100%;
	}
}

/* ---------------------------------------------------------------------------
   Code blocks
   --------------------------------------------------------------------------- */
.code {
	position: relative;
	background: var(--code-bg);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	overflow: hidden;
}

.code pre {
	margin: 0;
	padding: 1.05rem 3.4rem 1.05rem 1.1rem;
	overflow-x: auto;
	font-family: var(--font-mono);
	font-size: 0.83rem;
	line-height: 1.75;
	color: #d7dcec;
	tab-size: 2;
}

.code .p {
	color: #5c6584;
	user-select: none;
}
.code .c {
	color: #6b7799;
	font-style: italic;
}
.code .k {
	color: #8fa2ff;
}
.code .s {
	color: #3ddca0;
}
.code .f {
	color: #f5b544;
}

.copy {
	position: absolute;
	top: 0.55rem;
	right: 0.55rem;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: #b9c1d8;
	border-radius: 7px;
	padding: 0.3rem 0.55rem;
	font: inherit;
	font-family: var(--font-mono);
	font-size: 0.68rem;
	cursor: pointer;
	opacity: 0;
	transition:
		opacity 0.2s ease,
		background 0.2s ease,
		color 0.2s ease;
}

.code:hover .copy,
.copy:focus-visible {
	opacity: 1;
}

.copy:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.copy[data-copied='true'] {
	opacity: 1;
	color: var(--accent-2);
	border-color: color-mix(in srgb, var(--accent-2) 45%, transparent);
}

code:not(pre code) {
	font-family: var(--font-mono);
	font-size: 0.87em;
	background: var(--bg-raised);
	border: 1px solid var(--border-soft);
	border-radius: 5px;
	padding: 0.1em 0.38em;
	color: var(--text);
	white-space: nowrap;
}

/* ---------------------------------------------------------------------------
   Steps (how it works)
   --------------------------------------------------------------------------- */
.steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	counter-reset: step;
}

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

.step {
	position: relative;
	padding-top: 2.4rem;
	border-top: 1px solid var(--rule);
}

.step::before {
	counter-increment: step;
	content: counter(step, decimal-leading-zero);
	position: absolute;
	top: 0.9rem;
	left: 0;
	font-family: var(--font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.12em;
	color: var(--accent);
}

.step h3 {
	font-size: 1.05rem;
}

.step p {
	color: var(--text-dim);
	font-size: 0.92rem;
}

/* ---------------------------------------------------------------------------
   Tables
   --------------------------------------------------------------------------- */
.table-wrap {
	overflow-x: auto;
	border: 1px solid var(--border-soft);
	border-radius: var(--radius);
	background: var(--bg-panel);
}

table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
	min-width: 34rem;
}

thead th {
	text-align: left;
	font-family: var(--font-mono);
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--text-faint);
	padding: 0.9rem 1.1rem;
	border-bottom: 1px solid var(--border-soft);
	white-space: nowrap;
}

tbody td {
	padding: 0.95rem 1.1rem;
	border-bottom: 1px solid var(--border-soft);
	color: var(--text-dim);
	vertical-align: top;
}

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

tbody th {
	text-align: left;
	padding: 0.95rem 1.1rem;
	border-bottom: 1px solid var(--border-soft);
	font-weight: 600;
	color: var(--text);
	white-space: nowrap;
	vertical-align: top;
}

tbody tr:last-child th {
	border-bottom: 0;
}

.tag {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: 0.68rem;
	letter-spacing: 0.06em;
	padding: 0.15rem 0.5rem;
	border-radius: 999px;
	border: 1px solid var(--border);
	color: var(--text-dim);
	background: var(--bg-raised);
	white-space: nowrap;
}

.tag-good {
	color: var(--accent-2);
	border-color: color-mix(in srgb, var(--accent-2) 40%, transparent);
	background: color-mix(in srgb, var(--accent-2) 10%, transparent);
}
.tag-warn {
	color: var(--amber);
	border-color: color-mix(in srgb, var(--amber) 40%, transparent);
	background: color-mix(in srgb, var(--amber) 10%, transparent);
}
.tag-off {
	color: var(--text-faint);
}

/* ---------------------------------------------------------------------------
   Feature rows (features page)
   --------------------------------------------------------------------------- */
.feature {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: center;
	padding: clamp(2.2rem, 5vw, 3.6rem) 0;
	border-top: 1px solid var(--rule);
}

.feature:nth-child(even) .feature-media {
	order: -1;
}

@media (max-width: 900px) {
	.feature {
		grid-template-columns: minmax(0, 1fr);
	}
	.feature:nth-child(even) .feature-media {
		order: 0;
	}
}

.feature-media img {
	border-radius: var(--radius-sm);
	border: 1px solid var(--border);
	box-shadow: var(--shadow-card);
	background: var(--bg-panel);
}

.feature h3 {
	font-size: var(--step2);
	letter-spacing: -0.03em;
}

.feature p {
	color: var(--text-dim);
}

.kicker {
	font-family: var(--font-mono);
	font-size: 0.68rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 0.6rem;
	display: block;
}

/* ---------------------------------------------------------------------------
   Callouts
   --------------------------------------------------------------------------- */
.callout {
	border: 1px solid var(--border);
	border-left: 3px solid var(--accent);
	background: var(--bg-panel);
	border-radius: var(--radius-sm);
	padding: 1.1rem 1.3rem;
	font-size: 0.92rem;
	color: var(--text-dim);
	margin: 1.4rem 0;
}

.callout strong {
	color: var(--text);
}

.callout-warn {
	border-left-color: var(--amber);
	background: color-mix(in srgb, var(--amber) 7%, var(--bg-panel));
}

.callout-good {
	border-left-color: var(--accent-2);
}

/* ---------------------------------------------------------------------------
   Pricing
   --------------------------------------------------------------------------- */
.tiers {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.1rem;
}

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

.tier {
	background: var(--bg-panel);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius-lg);
	padding: 1.8rem;
	display: flex;
	flex-direction: column;
}

.tier-head {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--text-faint);
	margin-bottom: 0.9rem;
}

.tier-price {
	font-family: var(--font-mono);
	font-size: 2.1rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.1;
}

.tier-price small {
	display: block;
	font-size: 0.76rem;
	font-weight: 400;
	letter-spacing: 0;
	color: var(--text-faint);
	margin-top: 0.35rem;
}

.tier-featured {
	border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent), var(--shadow-card);
	position: relative;
}

.tier ul {
	list-style: none;
	margin: 1.4rem 0 1.6rem;
	padding: 0;
	display: grid;
	gap: 0.6rem;
	font-size: 0.9rem;
	color: var(--text-dim);
	flex: 1;
}

.tier li {
	display: grid;
	grid-template-columns: 1.1rem 1fr;
	gap: 0.6rem;
	align-items: start;
}

.tier li svg {
	margin-top: 0.36rem;
	color: var(--accent-2);
	flex-shrink: 0;
}

.tier li.off {
	color: var(--text-faint);
}
.tier li.off svg {
	color: var(--text-faint);
}

/* ---------------------------------------------------------------------------
   Roadmap
   --------------------------------------------------------------------------- */
.road {
	display: grid;
	gap: 0;
	counter-reset: milestone;
}

.road-item {
	display: grid;
	grid-template-columns: 6.5rem minmax(0, 1fr) auto;
	gap: 1.2rem;
	align-items: baseline;
	padding: 1.2rem 0;
	border-top: 1px solid var(--rule);
}

.road-item:last-child {
	border-bottom: 1px solid var(--rule);
}

.road-m {
	font-family: var(--font-mono);
	font-size: 0.78rem;
	letter-spacing: 0.1em;
	color: var(--text-faint);
}

.road-item h3 {
	font-size: 1rem;
	margin: 0 0 0.2rem;
}

.road-item p {
	margin: 0;
	font-size: 0.9rem;
	color: var(--text-dim);
}

@media (max-width: 700px) {
	.road-item {
		grid-template-columns: minmax(0, 1fr) auto;
	}
	.road-m {
		grid-column: 1 / -1;
	}
}

/* ---------------------------------------------------------------------------
   FAQ
   --------------------------------------------------------------------------- */
details.faq {
	border-top: 1px solid var(--rule);
	padding: 0;
}

details.faq:last-of-type {
	border-bottom: 1px solid var(--rule);
}

details.faq summary {
	cursor: pointer;
	list-style: none;
	padding: 1.15rem 2.5rem 1.15rem 0;
	font-weight: 600;
	position: relative;
	transition: color 0.15s ease;
}

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

details.faq summary:hover {
	color: var(--accent);
}

details.faq summary::after {
	content: '+';
	position: absolute;
	right: 0.4rem;
	top: 50%;
	transform: translateY(-50%);
	font-family: var(--font-mono);
	font-size: 1.15rem;
	color: var(--text-faint);
	transition: transform 0.25s ease;
}

details.faq[open] summary::after {
	transform: translateY(-50%) rotate(45deg);
	color: var(--accent);
}

details.faq .faq-body {
	padding: 0 2.5rem 1.3rem 0;
	color: var(--text-dim);
	font-size: 0.93rem;
	max-width: 52rem;
}

details.faq .faq-body p:last-child {
	margin-bottom: 0;
}

/* ---------------------------------------------------------------------------
   Docs layout
   --------------------------------------------------------------------------- */
.doc-grid {
	display: grid;
	grid-template-columns: 15rem minmax(0, 1fr);
	gap: 3rem;
	align-items: start;
}

@media (max-width: 940px) {
	.doc-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.5rem;
	}
	.toc {
		position: static !important;
	}
}

.toc {
	position: sticky;
	top: 5.5rem;
	font-size: 0.87rem;
	border-left: 1px solid var(--rule);
	padding-left: 1.1rem;
}

.toc ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.5rem;
}

.toc a {
	color: var(--text-faint);
	transition: color 0.15s ease;
}

.toc a:hover {
	color: var(--text);
}

.doc-body h2 {
	font-size: var(--step2);
	margin-top: 3rem;
	scroll-margin-top: 5.5rem;
}

.doc-body h2:first-child {
	margin-top: 0;
}

.doc-body h3 {
	margin-top: 2rem;
	font-size: 1.05rem;
}

.doc-body p,
.doc-body li {
	color: var(--text-dim);
	max-width: 46rem;
}

.doc-body ul,
.doc-body ol {
	padding-left: 1.15rem;
	margin: 0 0 1.1rem;
}

.doc-body li {
	margin-bottom: 0.4rem;
}

.doc-body .code {
	margin: 1.1rem 0 1.4rem;
	max-width: 46rem;
}

.doc-body .table-wrap {
	margin: 1.1rem 0 1.6rem;
	max-width: 46rem;
}

/* ---------------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------------- */
.footer {
	border-top: 1px solid var(--rule);
	padding: 3rem 0 2.5rem;
	font-size: 0.88rem;
	color: var(--text-faint);
}

.footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
	gap: 2rem;
	margin-bottom: 2.5rem;
}

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

.footer h4 {
	font-family: var(--font-mono);
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--text-faint);
	margin-bottom: 0.9rem;
}

.footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.5rem;
}

.footer ul a {
	color: var(--text-dim);
	transition: color 0.15s ease;
}

.footer ul a:hover {
	color: var(--text);
}

.footer-base {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: space-between;
	align-items: center;
	padding-top: 1.5rem;
	border-top: 1px solid var(--rule);
	font-family: var(--font-mono);
	font-size: 0.74rem;
}

/* ---------------------------------------------------------------------------
   Reveal on load / scroll
   --------------------------------------------------------------------------- */
.reveal {
	opacity: 0;
	transform: translateY(14px);
	transition:
		opacity 0.6s cubic-bezier(0.16, 0.84, 0.44, 1),
		transform 0.6s cubic-bezier(0.16, 0.84, 0.44, 1);
	transition-delay: calc(var(--d, 0) * 70ms);
}

.reveal.in {
	opacity: 1;
	transform: none;
}

/* Without JS nothing would ever get `.in`, so the content must be visible by
   default and only hidden once the observer is known to be running. */
html:not(.js) .reveal {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	.reveal {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
	.meter::before {
		animation: none !important;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}
}

/* ---------------------------------------------------------------------------
   Print — the privacy page is the one people forward to a security reviewer.
   --------------------------------------------------------------------------- */
@media print {
	.topbar,
	.meter,
	.footer,
	.signup,
	.copy {
		display: none !important;
	}
	body {
		background: #fff;
		color: #000;
	}
	body::before,
	body::after {
		display: none;
	}
	.panel,
	.card,
	.table-wrap {
		break-inside: avoid;
	}
}

/* ---------------------------------------------------------------------------
   Theme-paired screenshots.

   The dashboard has two themes and so does this page, so every screenshot ships
   twice and the pair is swapped on `data-theme`. A `<picture>` with a
   `prefers-color-scheme` media query would be wrong here: the site's theme is an
   explicit choice stored in localStorage, so a visitor on Eclipse with a light OS
   would get a light screenshot inside a dark page.
   --------------------------------------------------------------------------- */
.shot-pair {
	position: relative;
}

.only-dark,
.only-light {
	display: block;
}

:root[data-theme='eclipse'] .only-light,
:root[data-theme='daybreak'] .only-dark {
	display: none;
}
