/* SwatchKit site — DESIGN.md §2. Swatches themselves use the plugin's own
   stylesheet (swatchkit.css); this file never restyles .swk-* beyond
   variables. System fonts only. */

/* Rules follow the page's sections, top to bottom, so specificity does not
   ascend through the file. */
/* stylelint-disable no-descending-specificity */

:root {
	--brand: #5b4bff;
	--brand-hover: #4938e8;
	--brand-2: #8b5cf6;

	/* Filled brand surfaces with white text keep the AA-safe indigo in both
	   themes; --brand lightens in dark mode for links and rings only. */
	--btn: #5b4bff;
	--btn-hover: #4938e8;
	--brand-soft: rgba(91, 75, 255, 0.08);
	--night-900: #17123f;
	--night-700: #2a1f86;
	--night-500: #4b3be0;
	--teal: #2dd4bf;
	--amber: #ffc53d;
	--coral: #ff5a6e;
	--success: #16a34a;
	--warning: #b45309;
	--surface: #fff;
	--canvas: #f6f7f9;
	--border: #e2e4e9;
	--text: #1e1e26;
	--muted: #6b7280;
	--code-bg: #f3f4f8;
	--header-bg: rgba(255, 255, 255, 0.88);
	--shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
	--shadow-lg: 0 8px 24px rgba(16, 24, 40, 0.08);
	--shadow-mock: 0 40px 80px rgba(6, 3, 38, 0.18);
	--night: linear-gradient(120deg, #17123f 0%, #2a1f86 55%, #4b3be0 100%);
	--ease: cubic-bezier(0.4, 0, 0.2, 1);
	--font: -apple-system, blinkmacsystemfont, "Segoe UI", inter, roboto, sans-serif;
	--mono: ui-monospace, sfmono-regular, menlo, consolas, monospace;
	--swk-selected-color: var(--brand);
	--swk-focus-color: var(--brand);
	--swk-border-color: var(--border);
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {

	:root:not([data-theme="light"]) {
		--canvas: #121218;
		--surface: #1b1b24;
		--border: #2c2c38;
		--text: #ececf1;
		--muted: #a3a6b3;
		--brand: #8b80ff;
		--brand-hover: #a39aff;
		--brand-soft: rgba(139, 128, 255, 0.12);
		--code-bg: #23232e;
		--header-bg: rgba(18, 18, 24, 0.86);
		--warning: #f59e0b;
		--success: #22c55e;
		color-scheme: dark;
		--swk-border-color: #4a4b5c;
	}
}

:root[data-theme="dark"] {
	--canvas: #121218;
	--surface: #1b1b24;
	--border: #2c2c38;
	--text: #ececf1;
	--muted: #a3a6b3;
	--brand: #8b80ff;
	--brand-hover: #a39aff;
	--brand-soft: rgba(139, 128, 255, 0.12);
	--code-bg: #23232e;
	--header-bg: rgba(18, 18, 24, 0.86);
	--warning: #f59e0b;
	--success: #22c55e;
	color-scheme: dark;
	--swk-border-color: #4a4b5c;
}

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

html {
	scroll-padding-top: 80px;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--canvas);
	color: var(--text);
	font: 400 16px/1.65 var(--font);
	-webkit-font-smoothing: antialiased;
}

img,
svg {
	max-width: 100%;
}

a {
	color: var(--brand);
	text-underline-offset: 3px;
}

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

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

h1,
h2,
h3 {
	margin: 0 0 16px;
	color: var(--text);
	text-wrap: balance;
}

h1 {
	font-size: clamp(40px, 6vw, 64px);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.035em;
}

h2 {
	font-size: clamp(30px, 4vw, 40px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

h3 {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.01em;
}

p {
	margin: 0 0 16px;
}

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

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

.skip {
	position: absolute;
	top: -100px;
	left: 16px;
	z-index: 100;
	padding: 8px 12px;
	border-radius: 6px;
	background: var(--btn);
	color: #fff;
}

.skip:focus {
	top: 12px;
}

.container {
	width: 100%;
	max-width: 1248px;
	margin: 0 auto;
	padding: 0 24px;
}

.section {
	padding: 96px 0;
}

.section--surface {
	background: var(--surface);
	border-block: 1px solid var(--border);
}

.eyebrow {
	display: inline-block;
	margin-bottom: 14px;
	color: var(--brand);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-transform: uppercase;
}

.lead {
	color: var(--muted);
	font-size: 20px;
	line-height: 1.55;
}

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

.small {
	font-size: 14px;
	line-height: 1.5;
}

.center {
	text-align: center;
}

.section-head {
	max-width: 720px;
	margin: 0 auto 48px;
	text-align: center;
}

/* --- Header ------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid var(--border);
	background: var(--header-bg);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	backdrop-filter: saturate(1.4) blur(12px);
}

.site-header .container {
	display: flex;
	gap: 24px;
	align-items: center;
	height: 64px;
}

.brand {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	color: var(--text);
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.035em;
	text-decoration: none;
}

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

.brand svg {
	width: 32px;
	height: 32px;
	border-radius: 8px;
}

.nav {
	display: flex;
	gap: 4px;
	margin-left: auto;
}

.nav a {
	padding: 8px 12px;
	border-radius: 6px;
	color: var(--text);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
	background: var(--brand-soft);
	color: var(--brand);
}

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

.icon-btn {
	display: inline-grid;
	width: 40px;
	height: 40px;
	place-items: center;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--surface);
	color: var(--text);
	cursor: pointer;
}

.icon-btn svg {
	width: 20px;
	height: 20px;
}

.menu-btn {
	display: none;
}

@media (max-width: 960px) {

	.nav {
		position: fixed;
		inset: 64px 0 0;
		display: none;
		flex-direction: column;
		gap: 0;
		padding: 16px 24px;
		background: var(--surface);
	}

	.nav.is-open {
		display: flex;
	}

	.nav a {
		padding: 14px 0;
		border-bottom: 1px solid var(--border);
		border-radius: 0;
		font-size: 18px;
	}

	.nav a:hover {
		background: none;
	}

	.menu-btn {
		display: inline-grid;
	}

	.header-actions {
		margin-left: auto;
	}
}

/* --- Buttons, chips, badges --------------------------------------------- */

.btn {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 20px;
	border: 1px solid transparent;
	border-radius: 6px;
	font: 600 16px/1.2 var(--font);
	text-decoration: none;
	cursor: pointer;
	transition: transform 150ms var(--ease), opacity 150ms var(--ease);
}

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

.btn--primary {
	background: var(--btn);
	color: #fff;
}

.btn--primary:hover {
	background: var(--btn-hover);
	color: #fff;
}

.btn--secondary {
	border-color: var(--border);
	background: var(--surface);
	color: var(--text);
}

.btn--secondary:hover {
	color: var(--text);
	border-color: var(--brand);
}

.btn--ghost {
	border-color: rgba(255, 255, 255, 0.28);
	background: transparent;
	color: #fff;
}

.btn--ghost:hover {
	color: #fff;
	border-color: #fff;
}

.btn--sm {
	min-height: 36px;
	padding: 6px 14px;
	font-size: 14px;
}

.btn[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.chip {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	padding: 4px 12px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--brand-soft);
	font-size: 14px;
	font-weight: 500;
}

.chip::before {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--dot, var(--teal));
	content: "";
}

.badge {
	display: inline-block;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.4;
	text-transform: uppercase;
	vertical-align: middle;
}

.badge--pro {
	background: linear-gradient(135deg, var(--btn), var(--brand-2));
	color: #fff;
}

.badge--free {
	background: var(--success);
	color: #fff;
}

.badge--soon {
	border: 1px solid var(--warning);
	color: var(--warning);
}

.badge--new {
	border: 1px solid var(--brand);
	color: var(--brand);
}

/* --- Cards -------------------------------------------------------------- */

.card {
	padding: 24px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--surface);
	box-shadow: var(--shadow);
}

.grid {
	display: grid;
	gap: 24px;
}

.grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 960px) {

	.grid--2,
	.grid--3 {
		grid-template-columns: minmax(0, 1fr);
	}
}

.tile {
	position: relative;
	padding: 24px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: color-mix(in srgb, var(--tint, var(--teal)) 11%, var(--surface));
}

.tile h3 {
	margin-bottom: 8px;
	font-size: 18px;
}

.tile p {
	margin: 0;
	color: var(--muted);
	font-size: 15px;
}

.tile .swk-swatches {
	margin-bottom: 16px;
	pointer-events: none;
}

/* --- Hero --------------------------------------------------------------- */

.hero {
	padding: 72px 0 96px;
}

.hero .container {
	display: grid;
	grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
	gap: 56px;
	align-items: center;
}

.hero .lead {
	max-width: 560px;
	margin-bottom: 28px;
}

.trust {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin-top: 24px;
	padding: 0;
	color: var(--muted);
	font-size: 14px;
	list-style: none;
}

.trust li::before {
	margin-right: 6px;
	color: var(--success);
	content: "✓";
}

@media (max-width: 960px) {

	.hero .container {
		grid-template-columns: minmax(0, 1fr);
	}

	.section {
		padding: 64px 0;
	}
}

/* --- Product card (hero, demo) ------------------------------------------ */

.product-card {
	border: 1px solid var(--border);
	border-radius: 16px;
	background: var(--surface);
	box-shadow: var(--shadow-mock);
	overflow: hidden;
}

.product-card__media {
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 10;
	background: var(--canvas);
}

.product-card__media svg {
	width: 78%;
	height: auto;
}

.product-card__body {
	padding: 20px 24px 24px;
}

.product-card__title {
	display: flex;
	gap: 12px;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 12px;
}

.product-card__title h3 {
	margin: 0;
}

.price {
	font-size: 20px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.stock-line {
	display: flex;
	gap: 8px;
	align-items: center;
	margin-top: 14px;
	font-size: 14px;
	font-weight: 600;
}

.stock-line::before {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentcolor;
	content: "";
}

.stock-line.is-in {
	color: var(--success);
}

.stock-line.is-out {
	color: var(--muted);
}

.caption {
	margin-top: 14px;
	color: var(--muted);
	font-size: 13px;
	text-align: center;
}

/* Attribute rows inside a demo picker. */
.sk-attr + .sk-attr {
	margin-top: 14px;
}

.sk-attr__label {
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 600;
}

.sk-demo .swk-selected-name {
	margin-left: 0;
	color: var(--muted);
	font-weight: 400;
}

.sk-demo .swk-swatch {
	color: var(--text);
}

.sk-demo .swk-swatch--label {
	background: var(--swk-label-bg, var(--surface));
}

/* --- The 30-variation problem ------------------------------------------ */

.compare {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.compare .card h3 {
	display: flex;
	gap: 8px;
	align-items: center;
	font-size: 16px;
}

.compare-note {
	min-height: 3em;
	margin: 16px 0 0;
	color: var(--muted);
	font-size: 14px;
}

@media (max-width: 800px) {

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

.proof {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin-top: 48px;
}

.proof div {
	padding: 24px;
	border-left: 3px solid var(--brand);
}

.proof strong {
	display: block;
	margin-bottom: 6px;
	font-size: clamp(40px, 5vw, 56px);
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.03em;
	line-height: 1;
}

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

@media (max-width: 800px) {

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

/* --- Lists, checklists --------------------------------------------------- */

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

.checks li {
	position: relative;
	padding: 6px 0 6px 28px;
}

.checks li::before {
	position: absolute;
	top: 6px;
	left: 0;
	color: var(--success);
	font-weight: 700;
	content: "✓";
}

.checks li.no::before {
	color: var(--muted);
	content: "–";
}

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

/* --- Settings screenshot ------------------------------------------------ */

.shot {
	position: relative;
	margin: 0;
}

.shot img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--border);
	border-radius: 16px;
	box-shadow: var(--shadow-mock);
}

.callouts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: c;
}

.callouts li {
	position: relative;
	padding: 16px 16px 16px 52px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--surface);
	font-weight: 600;
	counter-increment: c;
}

.callouts li::before {
	position: absolute;
	top: 14px;
	left: 14px;
	display: grid;
	width: 26px;
	height: 26px;
	place-items: center;
	border-radius: 50%;
	background: var(--btn);
	color: #fff;
	font-size: 13px;
	content: counter(c);
}

@media (max-width: 800px) {

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

/* --- Core vs SwatchKit --------------------------------------------------- */

.versus {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: 16px;
	background: var(--surface);
}

.versus > div {
	padding: 32px;
}

.versus > div + div {
	border-left: 1px solid var(--border);
	background: var(--brand-soft);
}

.versus h3 {
	font-size: 18px;
}

@media (max-width: 800px) {

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

	.versus > div + div {
		border-top: 1px solid var(--border);
		border-left: 0;
	}
}

/* --- Performance / a11y panels ----------------------------------------- */

.bar {
	height: 14px;
	margin: 12px 0 6px;
	overflow: hidden;
	border-radius: 999px;
	background: var(--canvas);
	border: 1px solid var(--border);
}

.bar span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--teal), var(--brand));
}

.keys {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0 16px;
}

kbd {
	display: inline-block;
	min-width: 30px;
	padding: 4px 8px;
	border: 1px solid var(--border);
	border-bottom-width: 3px;
	border-radius: 6px;
	background: var(--surface);
	font: 600 13px/1.2 var(--mono);
	text-align: center;
}

.bubble {
	display: inline-block;
	padding: 10px 14px;
	border-radius: 14px 14px 14px 4px;
	background: var(--text);
	color: var(--canvas);
	font-size: 14px;
}

/* --- Night band (one per page) ----------------------------------------- */

.night {
	background: var(--night);
	color: #fff;
}

.night h2,
.night h3 {
	color: #fff;
}

.night p,
.night .muted {
	color: rgba(255, 255, 255, 0.78);
}

.night a {
	color: #c9c3ff;
}

.text-gradient {
	background: linear-gradient(90deg, #ffd166, #ff8fa3 55%, #7cf0dc);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.dev {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 48px;
	align-items: center;
}

@media (max-width: 960px) {

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

.tabs {
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 16px;
	background: rgba(8, 6, 32, 0.55);
}

.tabs [role="tablist"] {
	display: flex;
	gap: 4px;
	padding: 8px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.tabs [role="tab"] {
	padding: 8px 14px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: rgba(255, 255, 255, 0.78);
	font: 600 14px/1.2 var(--font);
	cursor: pointer;
}

.tabs [role="tab"][aria-selected="true"] {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.tabs pre {
	margin: 0;
	padding: 24px;
	overflow-x: auto;
	color: #e7e5ff;
	font-size: 14px;
	line-height: 1.7;
	white-space: pre;
}

/* --- Code blocks on light --------------------------------------------- */

.code {
	position: relative;
	margin: 0 0 16px;
	padding: 16px 20px;
	overflow-x: auto;
	border-radius: 10px;
	background: var(--code-bg);
}

/* --- Stepper ------------------------------------------------------------ */

.steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: s;
}

.steps li {
	position: relative;
	padding: 56px 20px 20px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--surface);
	font-weight: 600;
	counter-increment: s;
}

.steps li::before {
	position: absolute;
	top: 18px;
	left: 20px;
	display: grid;
	width: 28px;
	height: 28px;
	place-items: center;
	border-radius: 6px;
	background: var(--brand-soft);
	color: var(--brand);
	content: counter(s);
}

.steps li span {
	display: block;
	margin-top: 6px;
	color: var(--muted);
	font-size: 14px;
	font-weight: 400;
}

@media (max-width: 800px) {

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

/* --- FAQ ----------------------------------------------------------------- */

.faq {
	max-width: 800px;
	margin: 0 auto;
}

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

.faq summary {
	display: flex;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	padding: 20px 0;
	font-size: 18px;
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}

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

.faq summary::after {
	flex: none;
	color: var(--brand);
	font-size: 24px;
	font-weight: 400;
	line-height: 1;
	content: "+";
	transition: transform 150ms var(--ease);
}

.faq details[open] summary::after {
	transform: rotate(45deg);
}

.faq details p {
	margin: 0 0 20px;
	color: var(--muted);
}

/* --- Final CTA ---------------------------------------------------------- */

.final {
	text-align: center;
}

.final .swk-swatches {
	justify-content: center;
	margin-bottom: 28px;
	pointer-events: none;
}

.final .actions {
	justify-content: center;
}

/* --- Pricing ------------------------------------------------------------ */

.segmented {
	display: inline-flex;
	padding: 4px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--surface);
}

.segmented button {
	min-height: 36px;
	padding: 6px 18px;
	border: 0;
	border-radius: 7px;
	background: transparent;
	color: var(--muted);
	font: 600 15px/1.2 var(--font);
	cursor: pointer;
}

.segmented button[aria-pressed="true"] {
	background: var(--btn);
	color: #fff;
}

.plans {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	align-items: start;
	margin-top: 40px;
}

@media (max-width: 1100px) {

	.plans {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {

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

.plan {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 28px 24px;
	border: 1px solid var(--border);
	border-radius: 16px;
	background: var(--surface);
	box-shadow: var(--shadow);
}

.plan--featured {
	border: 2px solid var(--brand);
	box-shadow: 0 12px 40px rgba(91, 75, 255, 0.18);
	transform: translateY(-8px);
}

.plan__pill {
	position: absolute;
	top: -13px;
	left: 50%;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--btn);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	transform: translateX(-50%);
	white-space: nowrap;
}

.plan h3 {
	display: flex;
	gap: 8px;
	align-items: center;
	margin-bottom: 4px;
	font-size: 20px;
}

.plan__for {
	margin-bottom: 18px;
	color: var(--muted);
	font-size: 14px;
}

.plan__price {
	font-size: 44px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.03em;
	line-height: 1;
}

.plan__price small {
	color: var(--muted);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0;
}

.plan__term {
	min-height: 22px;
	margin: 8px 0 20px;
	color: var(--muted);
	font-size: 13px;
}

.plan .checks {
	margin-top: 20px;
	font-size: 15px;
}

.plan form {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.plan input[type="email"] {
	min-height: 44px;
	padding: 8px 12px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--surface);
	color: var(--text);
	font: 15px var(--font);
}

.guarantee {
	display: flex;
	gap: 6px;
	align-items: center;
	margin-top: 10px;
	color: var(--success);
	font-size: 13px;
	font-weight: 600;
}

.note-bar {
	margin-top: 32px;
	padding: 14px 20px;
	border-radius: 10px;
	background: var(--brand-soft);
	color: var(--muted);
	font-size: 14px;
	text-align: center;
}

.table-wrap {
	overflow-x: auto;
	border: 1px solid var(--border);
	border-radius: 16px;
	background: var(--surface);
}

.table {
	width: 100%;
	min-width: 560px;
	border-collapse: collapse;
	font-size: 15px;
}

.table th,
.table td {
	padding: 12px 18px;
	border-bottom: 1px solid var(--border);
	text-align: left;
}

.table thead th {
	position: sticky;
	top: 64px;
	background: var(--surface);
	font-size: 14px;
}

.table td:not(:first-child),
.table th:not(:first-child) {
	width: 22%;
	text-align: center;
}

.table .ours {
	background: var(--brand-soft);
}

.table thead .ours {
	border-top: 2px solid var(--brand);
}

.table .group th {
	padding-top: 22px;
	color: var(--muted);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.table .yes {
	color: var(--success);
	font-weight: 700;
}

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

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

/* --- Demo page ----------------------------------------------------------- */

.demo-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 32px;
	align-items: start;
}

.demo-product {
	display: grid;
	grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
	gap: 32px;
	padding: 32px;
	border: 1px solid var(--border);
	border-radius: 16px;
	background: var(--surface);
	font-family: var(--page-font, var(--font));
}

.demo-product[data-page="dark"] {
	--surface: #1b1b24;
	--text: #ececf1;
	--muted: #a3a6b3;
	--border: #2c2c38;
	--canvas: #121218;
	background: #1b1b24;
	color: #ececf1;
}

.demo-product[data-page="boutique"] {
	--page-font: georgia, "Times New Roman", serif;
	background: #fbf8f3;
	color: #2b2420;
}

.demo-product[data-page="boutique"] h1,
.demo-product[data-page="dark"] h1 {
	color: inherit;
}

.demo-gallery {
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	border-radius: 12px;
	background: var(--canvas);
}

.demo-gallery svg {
	width: 86%;
}

.demo-summary h1 {
	margin-bottom: 8px;
	font-size: 30px;
	letter-spacing: -0.02em;
}

.demo-summary .price {
	display: block;
	margin-bottom: 20px;
	font-size: 24px;
}

.demo-cart {
	display: flex;
	gap: 10px;
	margin-top: 20px;
}

.demo-cart input {
	width: 64px;
	min-height: 44px;
	padding: 8px;
	border: 1px solid var(--border);
	border-radius: 6px;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: center;
}

.readouts {
	margin-top: 20px;
	padding: 16px;
	border: 1px dashed var(--border);
	border-radius: 10px;
	font-size: 14px;
}

.readouts p {
	margin: 0 0 6px;
}

.readouts strong {
	font-variant-numeric: tabular-nums;
}

.log {
	max-height: 132px;
	margin: 10px 0 0;
	padding: 10px 12px;
	overflow-y: auto;
	border-radius: 8px;
	background: var(--code-bg);
	font: 12px/1.6 var(--mono);
	list-style: none;
}

.panel {
	position: sticky;
	top: 88px;
	max-height: calc(100vh - 110px);
	overflow-y: auto;
	border: 1px solid var(--border);
	border-radius: 16px;
	background: var(--surface);
	box-shadow: var(--shadow-lg);
}

.panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid var(--border);
}

.panel__head h2 {
	margin: 0;
	font-size: 17px;
	letter-spacing: 0;
}

.panel fieldset {
	margin: 0;
	padding: 16px 20px;
	border: 0;
	border-bottom: 1px solid var(--border);
}

.panel legend {
	float: left;
	width: 100%;
	margin-bottom: 12px;
	padding: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}

.panel legend + * {
	clear: both;
}

.ctl {
	margin-bottom: 14px;
}

.ctl:last-child {
	margin-bottom: 0;
}

.ctl > label,
.ctl > span {
	display: flex;
	justify-content: space-between;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
}

.ctl output {
	color: var(--muted);
	font-variant-numeric: tabular-nums;
	font-weight: 500;
}

.ctl input[type="range"] {
	width: 100%;
	accent-color: var(--brand);
}

.options {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.options button {
	padding: 6px 10px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--surface);
	color: var(--text);
	font: 500 13px/1.2 var(--font);
	cursor: pointer;
}

.options button[aria-pressed="true"] {
	border-color: var(--brand);
	background: var(--brand-soft);
	color: var(--brand);
	font-weight: 600;
}

.switch {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 14px;
	font-weight: 600;
}

.switch input {
	width: 40px;
	height: 22px;
	accent-color: var(--brand);
}

.panel__foot {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	padding: 16px 20px;
}

.customize-pill {
	display: none;
}

@media (max-width: 1100px) {

	.demo-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.panel {
		position: fixed;
		inset: auto 0 0;
		z-index: 60;
		max-height: 72vh;
		border-radius: 16px 16px 0 0;
		transform: translateY(105%);
		transition: transform 200ms var(--ease);
	}

	.panel.is-open {
		transform: none;
	}

	.customize-pill {
		position: fixed;
		right: 16px;
		bottom: 16px;
		z-index: 65;
		display: inline-flex;
		box-shadow: var(--shadow-lg);
	}
}

@media (max-width: 700px) {

	.demo-product {
		grid-template-columns: minmax(0, 1fr);
		padding: 20px;
	}
}

.scenario {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

/* --- Footer ------------------------------------------------------------- */

.site-footer {
	padding: 64px 0 32px;
	background: var(--night);
	color: rgba(255, 255, 255, 0.78);
	font-size: 15px;
}

.site-footer .brand {
	color: #fff;
}

.footer-grid {
	display: grid;
	grid-template-columns: 2fr repeat(4, 1fr);
	gap: 32px;
}

.site-footer h2 {
	margin-bottom: 12px;
	color: #fff;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.site-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer li {
	margin-bottom: 8px;
}

.site-footer a {
	color: rgba(255, 255, 255, 0.78);
	text-decoration: none;
}

.site-footer a:hover {
	color: #fff;
	text-decoration: underline;
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	justify-content: space-between;
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	font-size: 13px;
}

@media (max-width: 960px) {

	.footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.footer-grid > :first-child {
		grid-column: 1 / -1;
	}
}

@media (max-width: 600px) {

	.container {
		padding: 0 16px;
	}

	.lead {
		font-size: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {

	*,
	*::before,
	*::after {
		transition-duration: 0s !important;
		animation-duration: 0s !important;
		scroll-behavior: auto !important;
	}

	.btn:hover,
	.plan--featured {
		transform: none;
	}
}

/* Demo: hover zoom off. */
.sk-nozoom .swk-swatch--image:hover .swk-swatch__image {
	transform: none;
}

@media (max-width: 480px) {

	.site-header .container {
		gap: 10px;
	}

	.header-actions {
		gap: 6px;
	}

	.header-actions .btn--sm {
		padding: 6px 10px;
		font-size: 14px;
		white-space: nowrap;
	}

	.brand {
		font-size: 18px;
	}

	/* Room for the logo; the theme still follows the system setting. */
	[data-theme-toggle] {
		display: none;
	}

	.segmented {
		display: flex;
		flex-wrap: wrap;
	}

	.segmented button {
		flex: 1 1 auto;
	}
}
