/* ─── tokens (from offsend.io landing) ─────────────────────────────────── */
:root {
	--bg: oklch(99% 0.004 250);
	--bg-1: oklch(97.5% 0.006 250);
	--bg-2: oklch(95% 0.008 250);
	--bg-3: oklch(91% 0.01 250);
	--border: oklch(0% 0 0 / 0.08);
	--border-2: oklch(0% 0 0 / 0.14);

	--text: oklch(22% 0.02 250);
	--text-sub: oklch(42% 0.015 250);
	--text-mut: oklch(58% 0.012 250);
	--text-dim: oklch(72% 0.01 250);

	--brand-blue: #2c56cc;
	--brand-sand: #e5d2a4;
	--brand-gradient: linear-gradient(145deg, #2c56cc 0%, #6a84d4 42%, #c9bfa8 78%, #e5d2a4 100%);
	--brand-gradient-soft: linear-gradient(145deg, #2c56cc12 0%, #e5d2a428 100%);

	--blue: var(--brand-blue);
	--blue-dim: #2c56cc18;
	--blue-text: #2448a8;

	--amber: oklch(68% 0.17 75);
	--amber-dim: oklch(68% 0.17 75 / 0.12);
	--amber-text: oklch(48% 0.14 75);

	--red: oklch(55% 0.22 20);
	--red-dim: oklch(55% 0.22 20 / 0.1);
	--red-text: oklch(48% 0.18 20);

	--green: oklch(52% 0.18 155);
	--green-dim: oklch(52% 0.18 155 / 0.1);
	--green-text: oklch(42% 0.14 155);

	--r-sm: 8px;
	--r: 12px;
	--r-lg: 18px;

	--container: 1180px;
	--gutter: 32px;
	--topnav-inset: clamp(12px, 2.5vw, 20px);

	--glass-bg: oklch(99% 0.004 250 / 0.62);
	--glass-bg-scrolled: oklch(99% 0.004 250 / 0.78);
	--glass-bg-solid: oklch(97.5% 0.006 250);
	--glass-border: oklch(0% 0 0 / 0.06);
	--glass-border-scrolled: oklch(0% 0 0 / 0.08);
	--glass-highlight: 0 1px 0 oklch(100% 0 0 / 0.5) inset;
	--glass-highlight-scrolled: 0 1px 0 oklch(100% 0 0 / 0.55) inset;
	--glass-shadow: 0 4px 24px oklch(0% 0 0 / 0.05);
	--glass-shadow-scrolled: 0 8px 32px oklch(0% 0 0 / 0.07);

	--sans: 'DM Sans', system-ui, sans-serif;
	--heading: 'Darker Grotesque', system-ui, sans-serif;
	--mono: 'DM Mono', ui-monospace, monospace;

	/* aliases for radar components */
	--bg-elevated: var(--bg-1);
	--bg-muted: var(--bg-2);
	--text-muted: var(--text-mut);
	--accent: var(--blue);
	--accent-soft: var(--blue-dim);
	--success: var(--green-text);
	--warning: var(--amber-text);
	--danger: var(--red-text);
	--radius: var(--r);
}

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

html,
body {
	background: var(--bg);
	color: var(--text);
}

body {
	font-family: var(--sans);
	font-size: 15px;
	line-height: 1.45;
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.headline {
	font-family: var(--heading);
	font-weight: 600;
}

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

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

a.link {
	color: var(--blue-text);
}

a.link:hover {
	text-decoration: underline;
}

:focus-visible {
	outline: 2px solid var(--blue);
	outline-offset: 2px;
}

button:focus:not(:focus-visible) {
	outline: none;
}

code,
.mono {
	font-family: var(--mono);
	font-size: 0.9em;
}

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

/* ─── ambient brand gradient backdrop ──────────────────────────────────── */
.gridfx {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background:
		radial-gradient(ellipse 90% 55% at 50% -5%, #2c56cc16 0%, transparent 58%),
		radial-gradient(ellipse 65% 42% at 88% 12%, #e5d2a414 0%, transparent 52%),
		linear-gradient(145deg, #2c56cc0c 0%, #6a84d408 38%, #e5d2a410 78%, transparent 100%);
}

main {
	position: relative;
	z-index: 1;
	padding: 2rem 0 4rem;
}

/* ─── nav ──────────────────────────────────────────────────────────────── */
nav.top {
	position: sticky;
	top: 0;
	z-index: 50;
	padding: var(--topnav-inset);
	background: transparent;
}

nav.top .topnav-shell {
	position: relative;
	z-index: 1;
	max-width: var(--container);
	margin: 0 auto;
	border-radius: var(--r-lg);
	background: var(--glass-bg);
	-webkit-backdrop-filter: blur(20px) saturate(160%);
	backdrop-filter: blur(20px) saturate(160%);
	border: 1px solid var(--glass-border);
	box-shadow: var(--glass-highlight), var(--glass-shadow);
	transition:
		background 0.28s ease,
		border-color 0.28s ease,
		box-shadow 0.28s ease;
}

nav.top.is-menu-open .topnav-shell {
	z-index: 46;
}

nav.top.scrolled .topnav-shell {
	background: var(--glass-bg-scrolled);
	border-color: var(--glass-border-scrolled);
	box-shadow: var(--glass-highlight-scrolled), var(--glass-shadow-scrolled);
}

nav.top .row {
	min-height: 64px;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 0 16px;
}

@media (min-width: 769px) {
	nav.top .topnav-shell {
		display: flex;
		align-items: center;
		gap: 22px;
		padding: 0 16px;
		height: 64px;
		min-height: 64px;
	}

	nav.top .row {
		flex: 0 0 auto;
		height: auto;
		min-height: 0;
		padding: 0;
	}

	nav.top .topnav-menu {
		margin-left: auto;
	}

	nav.top .topnav-end {
		flex-shrink: 0;
		margin-left: 0;
	}
}

nav.top .brand {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-weight: 600;
	font-size: 15px;
	letter-spacing: -0.01em;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

nav.top .brand:hover {
	opacity: 0.85;
}

nav.top .brand img {
	height: 26px;
	width: auto;
	display: block;
}

nav.top .platform-variants {
	display: inline-flex;
	align-items: flex-start;
	gap: 10px;
}

nav.top .platform-variant {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

nav.top .platform-variant-label {
	font-family: var(--mono);
	font-size: 9px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--text-dim);
}

nav.top .platform-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

nav.top .platform {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--mono);
	font-size: 14px;
	font-weight: 500;
	color: var(--text);
	padding: 5px 12px;
	border-radius: var(--r);
	background: var(--bg-2);
	border: 1px solid var(--border);
}

nav.top .platform-icon {
	flex-shrink: 0;
	display: block;
	color: var(--text-sub);
}

/* Variant 1: icon — static radar glyph */
nav.top .platform-wrap--icon .platform {
	background: var(--brand-gradient-soft);
	border-color: oklch(0% 0 0 / 0.06);
}

/* Variant 2: scan line */
nav.top .platform-wrap--scan {
	overflow: hidden;
	border-radius: var(--r);
}

nav.top .platform-scan-line {
	position: absolute;
	inset: 0;
	z-index: 2;
	width: 55%;
	background: linear-gradient(
		90deg,
		transparent 0%,
		oklch(44% 0.14 264 / 0.08) 35%,
		oklch(44% 0.14 264 / 0.28) 50%,
		oklch(44% 0.14 264 / 0.08) 65%,
		transparent 100%
	);
	pointer-events: none;
	animation: platform-scan 2.6s ease-in-out infinite;
}

@keyframes platform-scan {
	0% {
		transform: translateX(-120%);
		opacity: 0;
	}
	8% {
		opacity: 1;
	}
	92% {
		opacity: 1;
	}
	100% {
		transform: translateX(220%);
		opacity: 0;
	}
}

/* Variant 3: rotating sweep arc */
nav.top .platform-wrap--sweep {
	overflow: hidden;
	border-radius: var(--r);
}

nav.top .platform-sweep {
	position: absolute;
	inset: -60%;
	z-index: 0;
	background: conic-gradient(
		from 0deg,
		transparent 0deg,
		transparent 300deg,
		oklch(44% 0.14 264 / 0.45) 328deg,
		oklch(72% 0.08 85 / 0.35) 342deg,
		transparent 360deg
	);
	pointer-events: none;
	animation: platform-sweep-spin 4s linear infinite;
}

@keyframes platform-sweep-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	nav.top .platform-scan-line,
	nav.top .platform-sweep {
		animation: none;
		display: none;
	}
}

nav.top .topnav-end {
	display: flex;
	align-items: center;
	gap: 22px;
}

nav.top .topnav-menu {
	display: flex;
	align-items: center;
	gap: 22px;
}

nav.top .topnav-menu a {
	font-size: 13px;
	font-weight: 500;
	color: var(--text-sub);
	cursor: pointer;
	padding: 5px 10px;
	margin: -5px -10px;
	border-radius: var(--r-sm);
	transition:
		color 0.2s ease,
		background 0.2s ease;
}

nav.top .topnav-menu a:hover {
	color: var(--text);
	background: oklch(0% 0 0 / 0.05);
}

nav.top .topnav-menu a.active {
	color: var(--text);
	background: var(--bg-2);
}

nav.top .topnav-menu a.topnav-github {
	display: inline-flex;
	align-items: center;
	color: var(--text-sub);
	cursor: pointer;
	padding: 5px 10px;
	margin: -5px -10px;
	border-radius: var(--r-sm);
	transition:
		color 0.2s ease,
		background 0.2s ease;
}

nav.top .topnav-menu a.topnav-github:hover {
	color: var(--text);
	background: oklch(0% 0 0 / 0.05);
}

nav.top .topnav-menu a.topnav-github svg {
	display: block;
}

nav.top .topnav-menu a.topnav-github .topnav-github-label {
	display: none;
}

nav.top .topnav-burger {
	display: none;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: none;
	border-radius: 999px;
	background: transparent;
	color: var(--text-sub);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition:
		color 0.15s,
		background 0.15s;
}

nav.top .topnav-burger:hover {
	color: var(--text);
	background: oklch(0% 0 0 / 0.06);
}

nav.top .topnav-burger:focus-visible {
	outline: 2px solid var(--blue);
	outline-offset: 2px;
}

nav.top .topnav-burger-lines {
	position: relative;
	display: block;
	width: 18px;
	height: 2px;
	border-radius: 1px;
	background: currentColor;
	box-shadow:
		0 -6px 0 currentColor,
		0 6px 0 currentColor;
	transition:
		transform 0.2s,
		box-shadow 0.2s,
		background 0.2s;
}

nav.top .topnav-burger.is-open .topnav-burger-lines {
	background: transparent;
	box-shadow: none;
}

nav.top .topnav-burger.is-open .topnav-burger-lines::before,
nav.top .topnav-burger.is-open .topnav-burger-lines::after {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	width: 18px;
	height: 2px;
	margin-top: -1px;
	border-radius: 1px;
	background: currentColor;
}

nav.top .topnav-burger.is-open .topnav-burger-lines::before {
	transform: rotate(45deg);
}

nav.top .topnav-burger.is-open .topnav-burger-lines::after {
	transform: rotate(-45deg);
}

.topnav-backdrop {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 45;
	border: 0;
	padding: 0;
	margin: 0;
	width: 100%;
	height: 100%;
	min-height: 100dvh;
	cursor: default;
	background: oklch(0% 0 0 / 0.45);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
}

.topnav-backdrop:not([hidden]) {
	display: block;
}

body.is-menu-open {
	overflow: hidden;
}

@media (max-width: 768px) {
	:root {
		--gutter: 16px;
	}

	nav.top .topnav-shell {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-rows: 64px 0fr;
		align-items: center;
	}

	nav.top.is-menu-open .topnav-shell {
		grid-template-rows: 64px auto;
	}

	.container {
		padding: 0 var(--gutter);
		width: 100%;
		max-width: 100%;
	}

	main {
		padding: 1.25rem 0 3rem;
	}

	.grid-2,
	.grid-3 {
		grid-template-columns: 1fr;
	}

	.bar-row {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			'label pct'
			'track track';
		gap: 0.35rem 0.75rem;
	}

	.bar-label {
		grid-area: label;
	}

	.bar-track {
		grid-area: track;
	}

	.bar-pct {
		grid-area: pct;
	}

	footer {
		padding: 24px 0 36px;
	}

	footer .row {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}

	footer .links {
		margin-left: 0;
		flex-wrap: wrap;
		gap: 0.75rem 1.25rem;
	}

	.page-header-row {
		align-items: flex-start;
	}

	nav.top .row {
		grid-column: 1;
		grid-row: 1;
		display: flex;
		align-items: center;
		gap: 12px;
		height: 64px;
		min-height: 64px;
		padding: 0 16px;
	}

	nav.top .platform-variants {
		display: none;
	}

	nav.top .topnav-end {
		grid-column: 2;
		grid-row: 1;
		display: flex;
		gap: 10px;
		padding: 0 16px 0 0;
		height: 64px;
		align-items: center;
	}

	nav.top .topnav-burger {
		display: inline-grid;
		flex-shrink: 0;
	}

	nav.top .topnav-menu {
		grid-column: 1 / -1;
		grid-row: 2;
		min-height: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		max-height: 0;
		overflow: hidden;
		opacity: 0;
		padding: 0 16px;
		border-top: 1px solid transparent;
		pointer-events: none;
		transition:
			max-height 0.24s ease,
			opacity 0.18s ease,
			padding 0.24s ease,
			border-color 0.18s ease;
	}

	nav.top .topnav-menu.is-open {
		max-height: 320px;
		opacity: 1;
		padding: 12px 16px 16px;
		border-top-color: var(--border);
		pointer-events: auto;
	}

	nav.top .topnav-menu a {
		padding: 12px 10px;
		margin: 0;
		font-size: 15px;
		border-bottom: 1px solid var(--border);
		border-radius: var(--r-sm);
	}

	nav.top .topnav-menu a.active {
		background: var(--bg-2);
	}

	nav.top .topnav-menu a:last-child {
		border-bottom: none;
	}

	nav.top .topnav-menu a.topnav-github {
		display: flex;
		align-items: center;
		width: 100%;
		padding: 12px 10px;
		margin: 0;
		font-size: 15px;
		font-weight: 500;
	}

	nav.top .topnav-menu a.topnav-github .topnav-github-label {
		display: inline;
	}

	nav.top .topnav-menu a.topnav-github svg {
		display: none;
	}
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	nav.top .topnav-shell {
		background: var(--glass-bg-solid);
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
	}
}

@media (prefers-reduced-transparency: reduce) {
	nav.top .topnav-shell {
		background: var(--bg);
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
	}
}

/* ─── footer ───────────────────────────────────────────────────────────── */
footer {
	position: relative;
	z-index: 1;
	padding: 28px 0 48px;
}

footer .row {
	display: flex;
	align-items: center;
	gap: 22px;
	flex-wrap: wrap;
}

footer .copyright {
	font-size: 12px;
	color: var(--text-mut);
}

footer .links {
	display: flex;
	align-items: center;
	gap: 22px;
	margin-left: auto;
	font-size: 12px;
}

footer .links a {
	color: var(--text-sub);
	cursor: pointer;
	transition: color 0.2s ease;
}

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

/* ─── page content ─────────────────────────────────────────────────────── */
.page-header {
	margin-bottom: 2rem;
}

.page-header-row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-bottom: 0.35rem;
}

.page-header-row h1,
.page-header-row h2 {
	margin: 0;
}

.page-header h1,
.page-header h2 {
	margin: 0 0 0.35rem;
	font-size: clamp(1.75rem, 4vw, 2.35rem);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.15;
}

.page-header p {
	margin: 0;
	color: var(--text-mut);
	font-size: 0.95rem;
}

.grid {
	display: grid;
	gap: 1rem;
}

.grid-2 {
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid-3 {
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.card {
	background: oklch(100% 0 0 / 0.72);
	border: 1px solid var(--border);
	border-radius: var(--r);
	padding: 1.25rem;
	box-shadow:
		0 1px 2px oklch(0% 0 0 / 0.04),
		inset 0 1px 0 oklch(100% 0 0 / 0.85);
}

.card-featured {
	background: oklch(100% 0 0 / 0.85);
	border-color: oklch(44% 0.14 264 / 0.18);
	border-left: 3px solid var(--brand-blue);
	box-shadow:
		0 2px 8px oklch(44% 0.14 264 / 0.06),
		inset 0 1px 0 oklch(100% 0 0 / 0.9);
}

.card-cta {
	background: var(--brand-gradient-soft);
	border-color: oklch(44% 0.14 264 / 0.14);
}

.kpi-card {
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

.kpi-card:hover {
	border-color: var(--border-2);
	box-shadow:
		0 4px 12px oklch(0% 0 0 / 0.06),
		inset 0 1px 0 oklch(100% 0 0 / 0.85);
}

.card h2,
.card h3 {
	margin: 0 0 1rem;
	font-size: 0.85rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--text-mut);
}

.stat-value {
	font-family: var(--heading);
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.1;
	color: var(--text);
}

.stat-label {
	margin-top: 0.25rem;
	font-size: 0.85rem;
	color: var(--text-mut);
}

.badge {
	display: inline-block;
	padding: 0.15rem 0.5rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
}

.badge-required {
	background: var(--red-dim);
	color: var(--red-text);
}

.badge-secret {
	background: var(--amber-dim);
	color: var(--amber-text);
}

.badge-positive {
	background: var(--green-dim);
	color: var(--green-text);
}

.table-wrap {
	overflow-x: auto;
}

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

th,
td {
	padding: 0.65rem 0.75rem;
	text-align: left;
	border-bottom: 1px solid var(--border);
}

th {
	color: var(--text-mut);
	font-weight: 600;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

tr:last-child td {
	border-bottom: none;
}

tbody tr {
	transition: background 0.15s ease;
}

tbody tr:hover {
	background: oklch(44% 0.14 264 / 0.04);
}

td a {
	color: var(--blue-text);
	font-weight: 500;
	cursor: pointer;
	transition: color 0.15s ease;
}

td a:hover {
	color: var(--brand-blue);
}

td a.mono {
	color: var(--blue-text);
	font-weight: 500;
}

td a.mono:hover {
	text-decoration: underline;
}

.report-week-id {
	display: block;
	margin-top: 0.15rem;
	font-size: 0.75rem;
	color: var(--text-mut);
}

.bar-row {
	display: grid;
	grid-template-columns: minmax(0, 140px) minmax(0, 1fr) 52px;
	gap: 0.75rem;
	align-items: center;
	padding: 0.35rem 0;
}

.bar-label {
	font-size: 0.85rem;
	color: var(--text-mut);
}

.bar-track {
	height: 8px;
	background: var(--bg-2);
	border-radius: 999px;
	overflow: hidden;
}

.bar-fill {
	height: 100%;
	background: var(--brand-gradient);
	border-radius: 999px;
	min-width: 2px;
	transition: width 0.5s ease;
}

@media (prefers-reduced-motion: reduce) {
	.bar-fill {
		transition: none;
	}
}

.bar-pct {
	font-size: 0.8rem;
	color: var(--text-mut);
	text-align: right;
}

.trend-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.trend-list li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 0.55rem 0.35rem;
	margin: 0 -0.35rem;
	border-bottom: 1px solid var(--border);
	border-radius: var(--r-sm);
	transition: background 0.15s ease;
}

.trend-list li:last-child {
	border-bottom: none;
}

.trend-list li:hover {
	background: oklch(44% 0.14 264 / 0.04);
}

.trend-list a {
	font-weight: 500;
	color: var(--text);
	cursor: pointer;
	transition: color 0.15s ease;
}

.trend-list a:hover {
	color: var(--blue-text);
}

.trend-list li > span {
	font-size: 0.85rem;
	color: var(--text-mut);
	text-align: right;
}

.empty-state {
	padding: 2rem;
	text-align: center;
	color: var(--text-mut);
}

/* ─── guides (programmatic SEO pages) ──────────────────────────────────── */
.guide-breadcrumb {
	margin-bottom: 1rem;
	font-size: 0.8rem;
	color: var(--text-mut);
}

.guide-breadcrumb a {
	color: var(--blue-text);
	font-weight: 500;
}

.guide-breadcrumb a:hover {
	text-decoration: underline;
}

.guide-breadcrumb span[aria-hidden] {
	margin: 0 0.4rem;
	color: var(--text-dim);
}

.guide-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.85rem;
}

.guide-chip {
	display: inline-flex;
	align-items: center;
	padding: 0.15rem 0.55rem;
	font-family: var(--mono);
	font-size: 0.78rem;
	color: var(--text-sub);
	background: var(--bg-2);
	border: 1px solid var(--border);
	border-radius: 999px;
}

.guide-lead {
	margin: 0;
	max-width: 65ch;
	font-size: 1.1rem;
	line-height: 1.55;
	color: var(--text-sub);
}

.guide-body {
	display: grid;
	gap: 1rem;
	margin-top: 1.5rem;
}

.guide-body h2 {
	margin: 0 0 0.75rem;
	font-family: var(--heading);
	font-size: 1.15rem;
	font-weight: 700;
	text-transform: none;
	letter-spacing: -0.01em;
	color: var(--text);
}

.guide-body p,
.guide-body li {
	margin: 0;
	font-size: 0.97rem;
	color: var(--text-sub);
	line-height: 1.6;
}

.guide-body p + p,
.guide-body ul,
.guide-body ol {
	margin-top: 0.75rem;
}

.guide-body ul,
.guide-body ol {
	padding-left: 1.15rem;
}

.guide-body li + li {
	margin-top: 0.4rem;
}

.guide-body :not(pre) > code {
	font-family: var(--mono);
	font-size: 0.88em;
	background: var(--bg-2);
	padding: 0.1em 0.35em;
	border-radius: 4px;
}

.guide-live {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.5rem 0.85rem;
	padding: 0.85rem 1.1rem;
	background: var(--brand-gradient-soft);
	border: 1px solid oklch(44% 0.14 264 / 0.16);
	border-radius: var(--r-sm);
	font-size: 0.95rem;
	color: var(--text-sub);
}

.guide-live strong {
	color: var(--text);
	font-weight: 600;
}

.guide-live a {
	color: var(--blue-text);
	font-weight: 500;
}

.guide-live a:hover {
	text-decoration: underline;
}

.guide-faq dt {
	font-weight: 600;
	color: var(--text);
	font-size: 0.97rem;
}

.guide-faq dd {
	margin: 0.35rem 0 0;
	font-size: 0.95rem;
	color: var(--text-sub);
	line-height: 1.6;
}

.guide-faq dd + dt {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--border);
}

.guide-related {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.guide-related a {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.7rem;
	font-family: var(--mono);
	font-size: 0.82rem;
	color: var(--blue-text);
	background: oklch(100% 0 0 / 0.6);
	border: 1px solid var(--border);
	border-radius: var(--r-sm);
	transition:
		border-color 0.15s ease,
		background 0.15s ease;
}

.guide-related a:hover {
	border-color: var(--brand-blue);
	background: oklch(100% 0 0 / 0.9);
}

.guide-hub-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1rem;
}

.guide-hub-card {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding: 1.1rem 1.25rem;
	height: 100%;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease,
		transform 0.2s ease;
}

a.guide-hub-card:hover {
	border-color: var(--border-2);
	box-shadow:
		0 4px 12px oklch(0% 0 0 / 0.06),
		inset 0 1px 0 oklch(100% 0 0 / 0.85);
	transform: translateY(-1px);
}

.guide-hub-card-title {
	font-family: var(--heading);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--text);
}

.guide-hub-card-file {
	font-family: var(--mono);
	font-size: 0.8rem;
	color: var(--text-mut);
}

.guide-hub-card-desc {
	font-size: 0.9rem;
	color: var(--text-sub);
	line-height: 1.5;
}

@media (max-width: 768px) {
	.guide-hub-grid {
		grid-template-columns: 1fr;
	}
}

.card,
.hero,
.table-wrap,
.guide-hub-grid {
	min-width: 0;
}

/* ─── hero (offsend.io landing) ─────────────────────────────────────────── */
section.hero {
	position: relative;
	padding: 48px 0 56px;
	overflow: clip;
}

section.hero.hero--scan {
	overflow: visible;
}

section.hero .container {
	position: relative;
	z-index: 1;
}

.hero-orb {
	position: absolute;
	top: -180px;
	left: 50%;
	transform: translateX(-50%);
	width: min(720px, 90vw);
	height: 420px;
	border-radius: 50%;
	background: radial-gradient(ellipse at center, #2c56cc18 0%, transparent 70%);
	pointer-events: none;
	z-index: 0;
}

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 10px 4px 6px;
	border-radius: 6px;
	background: var(--blue-dim);
	font-size: 12px;
	font-weight: 500;
	color: var(--text-sub);
	margin-bottom: 28px;
}

.hero-badge--accent {
	padding: 5px 14px 5px 8px;
	border: 1px solid #2c56cc30;
	background: var(--brand-gradient-soft);
	box-shadow: 0 1px 2px #2c56cc14, inset 0 1px 0 #ffffffb0;
	color: var(--text);
	font-weight: 600;
	letter-spacing: -0.01em;
}

h1.headline {
	font-size: clamp(2.5rem, 6vw, 4.5rem);
	line-height: 0.92;
	letter-spacing: -0.04em;
	font-weight: 600;
	color: var(--text);
	max-width: 16ch;
	text-wrap: balance;
	margin: 0;
}

.hero .lede {
	margin-top: 20px;
	font-size: clamp(15px, 1.3vw, 17px);
	color: var(--text-sub);
	max-width: 52ch;
	line-height: 1.5;
}

.hero-proof {
	margin-top: 32px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 22px;
}

.hero-proof-badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 14px;
	font-weight: 500;
	color: var(--text-sub);
}

/* ─── buttons & forms ───────────────────────────────────────────────────── */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 10px 16px;
	border-radius: var(--r-sm);
	border: 1px solid transparent;
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition:
		background 0.14s,
		border-color 0.14s,
		transform 0.08s,
		color 0.14s,
		box-shadow 0.14s;
	white-space: nowrap;
	background: transparent;
	color: var(--text);
}

.btn:active {
	transform: scale(0.98);
}

.btn-primary {
	background: var(--brand-blue);
	color: #fff;
	border-color: var(--brand-blue);
	box-shadow:
		0 1px 2px #2c56cc28,
		inset 0 1px 0 oklch(100% 0 0 / 0.22);
}

.btn-primary:hover {
	background: #2448a8;
	border-color: #2448a8;
	box-shadow:
		0 4px 20px #2c56cc40,
		inset 0 1px 0 oklch(100% 0 0 / 0.18);
}

.btn-primary:disabled {
	background: var(--bg-2);
	color: var(--text-dim);
	border-color: var(--border);
	box-shadow: none;
	cursor: not-allowed;
	opacity: 1;
}

.btn-primary:disabled:active {
	transform: none;
}

.btn-sm {
	padding: 5px 9px;
	font-size: 11.5px;
	gap: 4px;
}

/* Square, quiet icon-only button (e.g. print). */
.btn-icon {
	padding: 7px;
	border-color: var(--border);
	color: var(--text-dim);
}

.btn-icon:hover {
	color: var(--text);
	border-color: var(--text-dim);
}

.btn-icon svg {
	display: block;
}

/* ─── landing & polling pages ─────────────────────────────────────────────── */
body.page-landing,
body.page-polling {
	display: flex;
	flex-direction: column;
}

body.page-landing main,
body.page-polling main {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0;
	min-height: 0;
}

body.page-landing section.hero,
body.page-polling section.hero {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: clamp(32px, 6vh, 56px) 0;
}

body.page-landing section.hero .container,
body.page-polling section.hero .container {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

body.page-landing h1.headline,
body.page-polling h1.headline {
	max-width: 24ch;
	text-align: center;
}

body.page-landing .hero .lede,
body.page-polling .hero .lede {
	max-width: 54ch;
	margin-inline: auto;
	text-align: center;
}

.hero-trust {
	margin-top: 16px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 10px 20px;
	list-style: none;
	padding: 0;
}

.hero-trust-item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	font-weight: 500;
	color: var(--text-mut);
}

.hero-trust-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: currentColor;
}

.hero-trust-icon svg {
	display: block;
}

.hero-repo-link {
	margin-top: 24px;
	font-size: 14px;
	color: var(--text-sub);
}

.scan-form {
	margin-top: 28px;
	width: min(100%, 560px);
}

.scan-form-combo {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 4px;
	border: 1px solid var(--border-2);
	border-radius: var(--r-lg);
	background: oklch(100% 0 0 / 0.9);
	transition:
		border-color 0.15s ease,
		box-shadow 0.15s ease;
}

.scan-form-combo:focus-within {
	border-color: var(--brand-blue);
	box-shadow: 0 0 0 3px var(--blue-dim);
}

.scan-form input[type='url'],
.scan-form input[type='text'] {
	flex: 1;
	min-width: 0;
	box-sizing: border-box;
	padding: 10px 12px;
	border: none;
	border-radius: 0;
	background: transparent;
	color: var(--text);
	font: inherit;
}

.scan-form input:focus {
	outline: none;
	box-shadow: none;
}

.scan-form input::placeholder {
	color: var(--text-dim);
}

.scan-form .btn {
	flex-shrink: 0;
	border-radius: calc(var(--r-lg) - 4px);
	padding: 10px 18px;
}

.status-text {
	margin-top: 16px;
	font-size: 14px;
	color: var(--text-mut);
	min-height: 1.4em;
}

body.page-landing .status-text,
body.page-polling .status-text {
	text-align: center;
}

@media (max-width: 560px) {
	.scan-form-combo {
		flex-direction: column;
		align-items: stretch;
		padding: 6px;
	}

	.scan-form .btn {
		width: 100%;
	}
}

/* ─── report page ─────────────────────────────────────────────────────────── */
.score {
	font-family: var(--heading);
	font-size: 3rem;
	font-weight: 700;
	line-height: 1;
	margin: 12px 0 4px;
	color: var(--text);
}

.ok {
	color: var(--green-text);
}

.bad {
	color: var(--red-text);
}

.warn {
	color: var(--amber-text);
}

.info {
	color: var(--text-mut);
}

.badge-bad {
	background: var(--red-dim);
	color: var(--red-text);
}

.badge-warn {
	background: var(--amber-dim);
	color: var(--amber-text);
}

.badge-info {
	background: var(--bg-2);
	color: var(--text-mut);
}

.fix-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.fix-item {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.85rem;
	background: var(--bg-1);
	border: 1px solid var(--border);
	border-radius: var(--r-sm);
}

.fix-item .badge {
	flex-shrink: 0;
	margin-top: 0.1rem;
}

.fix-item-body {
	min-width: 0;
}

.fix-item-title {
	font-weight: 600;
	color: var(--text);
}

.fix-item-detail {
	margin-top: 0.25rem;
	color: var(--text-sub);
	font-size: 0.88rem;
}

code {
	font-family: var(--mono);
	font-size: 0.88em;
	background: var(--bg-2);
	padding: 0.1em 0.35em;
	border-radius: 4px;
}

.card h2 {
	margin: 0 0 1rem;
	font-family: var(--heading);
	font-size: 1.05rem;
	font-weight: 700;
	text-transform: none;
	letter-spacing: -0.01em;
	color: var(--text);
}

.card .muted {
	color: var(--text-mut);
	font-size: 0.9rem;
}

/* ─── report layout rhythm ─────────────────────────────────────────────── */
body.page-report main > .container {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

body.page-report .page-header {
	margin-bottom: 0;
}

body.page-report .page-header-actions {
	margin-left: auto;
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.card-header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	flex-wrap: nowrap;
	margin-bottom: 0.75rem;
}

.card-header-row h2 {
	margin: 0;
}

.fix-open {
	flex-shrink: 0;
}

/* ─── fix-it modal ─────────────────────────────────────────────────────── */
.fix-modal {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--gutter);
}

.fix-modal[hidden] {
	display: none;
}

.fix-modal-backdrop {
	position: absolute;
	inset: 0;
	border: 0;
	padding: 0;
	margin: 0;
	width: 100%;
	height: 100%;
	cursor: default;
	background: oklch(22% 0.02 250 / 0.42);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
}

.fix-modal-dialog {
	position: relative;
	z-index: 1;
	width: min(680px, 100%);
	max-height: min(84vh, 720px);
	overflow-y: auto;
	padding: 1.5rem;
	background: var(--bg-1);
	border: 1px solid var(--border-2);
	border-radius: var(--r-lg);
	box-shadow: 0 24px 60px oklch(0% 0 0 / 0.24);
}

.fix-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.5rem;
}

.fix-modal-head h2 {
	margin: 0;
	font-family: var(--heading);
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--text);
}

.fix-modal-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid var(--border);
	border-radius: var(--r-sm);
	background: transparent;
	color: var(--text-mut);
	cursor: pointer;
	transition:
		color 0.15s ease,
		border-color 0.15s ease,
		background 0.15s ease;
}

.fix-modal-close:hover {
	color: var(--text);
	border-color: var(--text-dim);
	background: oklch(0% 0 0 / 0.04);
}

.fix-modal-lead {
	margin: 0 0 1rem;
	color: var(--text-sub);
	font-size: 0.92rem;
	line-height: 1.5;
}

.fix-platforms {
	display: inline-flex;
	gap: 4px;
	padding: 4px;
	margin-bottom: 1rem;
	background: var(--bg-2);
	border: 1px solid var(--border);
	border-radius: var(--r);
}

.fix-platform {
	padding: 6px 16px;
	border: none;
	border-radius: var(--r-sm);
	background: transparent;
	color: var(--text-mut);
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition:
		background 0.15s ease,
		color 0.15s ease,
		box-shadow 0.15s ease;
}

.fix-platform:hover {
	color: var(--text);
}

.fix-platform.is-active {
	background: oklch(100% 0 0 / 0.9);
	color: var(--text);
	box-shadow: 0 1px 2px oklch(0% 0 0 / 0.08);
}

.fix-command-wrap {
	position: relative;
}

.fix-command {
	margin: 0;
	padding: 1rem 1rem 1rem 1rem;
	max-height: 340px;
	overflow: auto;
	background: oklch(22% 0.02 250);
	color: oklch(92% 0.01 250);
	border-radius: var(--r-sm);
	font-family: var(--mono);
	font-size: 0.82rem;
	line-height: 1.55;
	tab-size: 2;
}

.fix-command code {
	background: transparent;
	padding: 0;
	border-radius: 0;
	color: inherit;
	font-size: inherit;
	white-space: pre;
}

.fix-copy {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	z-index: 1;
	border-color: oklch(100% 0 0 / 0.16);
	background: oklch(100% 0 0 / 0.1);
	color: oklch(96% 0.01 250);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.fix-copy:hover {
	background: oklch(100% 0 0 / 0.18);
	border-color: oklch(100% 0 0 / 0.28);
}

.fix-copy svg {
	display: block;
}

.fix-modal-hint {
	margin: 0.75rem 0 0;
	color: var(--text-mut);
	font-size: 0.82rem;
}

@media (max-width: 560px) {
	.fix-platforms {
		display: flex;
		width: 100%;
	}

	.fix-platform {
		flex: 1;
	}
}

@media print {
	@page {
		margin: 10mm;
		size: A4;
	}

	nav.top,
	footer,
	.gridfx,
	.page-header-actions,
	.fix-open,
	.fix-modal,
	.report-expiry,
	.print-hide {
		display: none !important;
	}

	html,
	body {
		background: #fff;
		font-size: 9.5pt;
		line-height: 1.35;
		/* Keep severity badges and the score meter colored in the PDF. */
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}

	main {
		padding: 0;
	}

	body.page-report main > .container {
		gap: 0.4rem;
		max-width: 100%;
		padding: 0;
	}

	body.page-report .page-header {
		margin-bottom: 0.15rem;
		padding-bottom: 0.35rem;
		border-bottom: 1px solid var(--border-2);
	}

	body.page-report .page-header h1 {
		font-size: 1.15rem;
		margin-bottom: 0.15rem;
	}

	body.page-report .page-header p {
		font-size: 0.72rem;
		line-height: 1.3;
	}

	body.page-report .card,
	body.page-report .card-featured {
		box-shadow: none;
		border-color: var(--border-2);
		border-radius: 4px;
		padding: 0.45rem 0.55rem;
		break-inside: auto;
	}

	body.page-report .score-card {
		break-inside: avoid;
		padding: 0.4rem 0.55rem;
	}

	body.page-report .score-card > .muted:first-child {
		font-size: 0.65rem;
		margin-bottom: 0.1rem;
	}

	body.page-report .score {
		font-size: 1.65rem;
		margin: 0.1rem 0;
	}

	body.page-report .score-meter {
		max-width: 180px;
		height: 5px;
		margin: 0.15rem 0 0.35rem;
	}

	body.page-report .score-card p {
		margin-top: 0.15rem;
		font-size: 0.72rem;
		line-height: 1.3;
	}

	body.page-report .card h2 {
		font-size: 0.78rem;
		margin-bottom: 0.35rem;
	}

	body.page-report .card-header-row {
		margin-bottom: 0.3rem;
	}

	body.page-report .card .muted {
		font-size: 0.72rem;
		margin-bottom: 0.25rem;
	}

	body.page-report .fix-list {
		gap: 0.3rem;
	}

	body.page-report .fix-item {
		gap: 0.35rem;
		padding: 0.3rem 0.4rem;
		border-radius: 3px;
		break-inside: auto;
	}

	body.page-report .fix-item-title {
		font-size: 0.78rem;
		line-height: 1.25;
	}

	body.page-report .fix-item-detail {
		margin-top: 0.1rem;
		font-size: 0.7rem;
		line-height: 1.3;
	}

	body.page-report .badge {
		padding: 0.05rem 0.3rem;
		font-size: 0.58rem;
	}

	body.page-report table {
		font-size: 0.72rem;
		break-inside: auto;
	}

	body.page-report th,
	body.page-report td {
		padding: 0.2rem 0.35rem;
	}

	body.page-report th {
		font-size: 0.62rem;
		padding-top: 0.25rem;
		padding-bottom: 0.25rem;
	}

	body.page-report code {
		font-size: 0.82em;
		padding: 0.02em 0.2em;
	}

	body.page-report .table-wrap {
		margin-top: 0;
	}

	body.page-report ul {
		padding-left: 1rem;
	}

	body.page-report ul li {
		font-size: 0.72rem;
		line-height: 1.3;
		margin-bottom: 0.15rem;
	}

	body.page-report .ok,
	body.page-report .warn,
	body.page-report .bad {
		font-size: 0.72rem;
	}
}

/* ─── report availability countdown ────────────────────────────────────── */
.report-expiry {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.7rem 1rem;
	border-radius: var(--r-sm);
	background: var(--brand-gradient-soft);
	border: 1px solid oklch(44% 0.14 264 / 0.16);
	font-size: 0.9rem;
	color: var(--text-sub);
}

.report-expiry[hidden] {
	display: none;
}

.report-expiry-icon {
	display: inline-flex;
	flex-shrink: 0;
	color: var(--blue-text);
}

.report-expiry strong {
	color: var(--text);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.report-expiry.is-expired {
	background: var(--red-dim);
	border-color: oklch(55% 0.22 20 / 0.22);
	color: var(--red-text);
}

.report-expiry.is-expired .report-expiry-icon {
	color: var(--red-text);
}

/* ─── score meter + tone ───────────────────────────────────────────────── */
.score {
	font-variant-numeric: tabular-nums;
}

.score.is-good {
	color: var(--green-text);
}

.score.is-mid {
	color: var(--amber-text);
}

.score.is-bad {
	color: var(--red-text);
}

.score-meter {
	max-width: 320px;
	height: 10px;
	margin: 0.35rem 0 0.85rem;
	background: var(--bg-2);
	border-radius: 999px;
	overflow: hidden;
}

.score-meter-fill {
	width: 0;
	height: 100%;
	border-radius: 999px;
	background: var(--brand-gradient);
	transition: width 1.1s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.score-meter-fill.is-good {
	background: var(--green);
}

.score-meter-fill.is-mid {
	background: var(--amber);
}

.score-meter-fill.is-bad {
	background: var(--red);
}

@media (prefers-reduced-motion: reduce) {
	.score-meter-fill {
		transition: none;
	}
}

/* ─── polling spinner ─────────────────────────────────────────────────────── */
.scan-progress {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin-top: 28px;
}

body.page-polling .scan-progress .status-text {
	margin-top: 0;
}

.spinner {
	width: 24px;
	height: 24px;
	border: 2px solid var(--border);
	border-top-color: var(--brand-blue);
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

.spinner[hidden] {
	display: none;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.spinner {
		animation: none;
		border-top-color: var(--brand-blue);
	}
}

nav.top .topnav-menu a.topnav-external {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

nav.top .topnav-external-icon {
	flex-shrink: 0;
	opacity: 0.55;
}

@media (max-width: 768px) {
	h1.headline {
		font-size: clamp(2rem, 9vw, 2.75rem);
	}
}
