@charset "utf-8";

/* ==========================================================================
   Code Obsession — site styles (Bootstrap 5.3.8 + custom design tokens)
   1. Tokens & color modes
   2. Base
   3. Navbar & footer
   4. Buttons
   5. Hero
   6. Sections, sub-navigation & typography helpers
   7. Screenshots, cards, lists & tables
   8. Content pages (support, release notes, privacy, demo, ...)
   9. News (generated by bin/gennews.py)
   ========================================================================== */

/* 1. Tokens & color modes ------------------------------------------------ */

:root {
	--font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Avenir Next", "Segoe UI", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
	--font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

	--bg: #f6f7fc;
	--bg-alt: #eceff8;
	--surface: #ffffff;
	--surface-2: #f1f3fa;
	--border: rgba(20, 30, 70, .12);
	--text: #141a2e;
	--muted: #56627f;
	--shadow: 0 1px 2px rgba(20, 30, 70, .06), 0 12px 32px rgba(20, 30, 70, .10);

	--accent: #2f5fd0;
	--accent-2: #6d4fe0;
	--accent-soft: rgba(47, 95, 208, .10);
	--accent-contrast: #ffffff;

	--radius: 16px;
	--nav-height: 64px;
	--subnav-height: 52px;

	--bs-body-font-family: var(--font-sans);
	--bs-body-bg: var(--bg);
	--bs-body-color: var(--text);
	--bs-secondary-color: var(--muted);
	--bs-border-color: var(--border);
	--bs-link-color: var(--accent);
	--bs-link-hover-color: var(--accent-2);
	--bs-link-color-rgb: 47, 95, 208;
	--bs-link-hover-color-rgb: 109, 79, 224;
}

:root[data-bs-theme="dark"] {
	--bg: #070b16;
	--bg-alt: #0b1120;
	--surface: #0f1729;
	--surface-2: #141d34;
	--border: rgba(150, 165, 210, .16);
	--text: #e8edf8;
	--muted: #9aa8c6;
	--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 20px 48px rgba(0, 0, 0, .45);

	--accent: #79aaff;
	--accent-2: #a58bff;
	--accent-soft: rgba(121, 170, 255, .12);
	--accent-contrast: #061024;

	--bs-link-color-rgb: 121, 170, 255;
	--bs-link-hover-color-rgb: 165, 139, 255;
}

/* FITSit gets its own warm accent */
body.app-fitsit {
	--accent: #b45f06;
	--accent-2: #d1471f;
	--accent-soft: rgba(180, 95, 6, .10);
	--accent-contrast: #ffffff;
	--bs-link-color-rgb: 180, 95, 6;
	--bs-link-hover-color-rgb: 209, 71, 31;
}

:root[data-bs-theme="dark"] body.app-fitsit {
	--accent: #ffbf5e;
	--accent-2: #ff8a5b;
	--accent-soft: rgba(255, 191, 94, .12);
	--accent-contrast: #24130a;
	--bs-link-color-rgb: 255, 191, 94;
	--bs-link-hover-color-rgb: 255, 138, 91;
}

/* SolFITS gets a teal accent */
body.app-solfits {
	--accent: #0b7a75;
	--accent-2: #1d8f5e;
	--accent-soft: rgba(11, 122, 117, .10);
	--accent-contrast: #ffffff;
	--bs-link-color-rgb: 11, 122, 117;
	--bs-link-hover-color-rgb: 29, 143, 94;
}

:root[data-bs-theme="dark"] body.app-solfits {
	--accent: #5eead4;
	--accent-2: #7ee7a8;
	--accent-soft: rgba(94, 234, 212, .12);
	--accent-contrast: #04201c;
	--bs-link-color-rgb: 94, 234, 212;
	--bs-link-hover-color-rgb: 126, 231, 168;
}

/* AstroJournal gets a magenta accent */
body.app-astrojournal {
	--accent: #a3286f;
	--accent-2: #6d4fe0;
	--accent-soft: rgba(163, 40, 111, .10);
	--accent-contrast: #ffffff;
	--bs-link-color-rgb: 163, 40, 111;
	--bs-link-hover-color-rgb: 109, 79, 224;
}

:root[data-bs-theme="dark"] body.app-astrojournal {
	--accent: #ff8fcf;
	--accent-2: #b79bff;
	--accent-soft: rgba(255, 143, 207, .12);
	--accent-contrast: #2a0a1c;
	--bs-link-color-rgb: 255, 143, 207;
	--bs-link-hover-color-rgb: 183, 155, 255;
}

/* 2. Base ------------------------------------------------------------------ */

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
	color: var(--text);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

a {
	color: var(--accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	color: var(--accent-2);
}

code {
	font-family: var(--font-mono);
	font-size: .88em;
	color: var(--accent);
	background: var(--accent-soft);
	padding: .12em .4em;
	border-radius: 6px;
}

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

.icon {
	width: 1.5rem;
	height: 1.5rem;
	flex: none;
	vertical-align: -0.3em;
}

[id] { scroll-margin-top: calc(var(--nav-height) + var(--subnav-height) + 16px); }

/* Reveal on scroll (only hidden when JavaScript is running) */
[data-reveal] {
	transition: opacity .7s ease, transform .7s ease;
}

.reveal-ready [data-reveal]:not(.is-visible) {
	opacity: 0;
	transform: translateY(24px);
}

/* 3. Navbar & footer -------------------------------------------------------- */

.site-header .navbar {
	min-height: var(--nav-height);
	padding-block: .35rem;
	background: transparent;
	border-bottom: 1px solid transparent;
	transition: background-color .25s ease, border-color .25s ease, backdrop-filter .25s ease;
	--bs-navbar-color: var(--muted);
	--bs-navbar-hover-color: var(--text);
	--bs-navbar-active-color: var(--text);
	--bs-navbar-brand-color: var(--text);
	--bs-navbar-brand-hover-color: var(--text);
	--bs-navbar-toggler-border-color: var(--border);
}

.site-header .navbar.scrolled,
.site-header .navbar:has(.navbar-collapse.show) {
	background: color-mix(in srgb, var(--bg) 78%, transparent);
	-webkit-backdrop-filter: saturate(180%) blur(18px);
	backdrop-filter: saturate(180%) blur(18px);
	border-bottom-color: var(--border);
}

.navbar-brand {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	font-weight: 650;
	letter-spacing: -0.01em;
}

.navbar-brand .brand-logo {
	border-radius: 8px;
}

.navbar .nav-link {
	font-size: .95rem;
	font-weight: 500;
	padding-inline: .85rem;
	border-radius: 999px;
}

.navbar .nav-link.active {
	color: var(--text);
	background: var(--accent-soft);
}

.navbar .dropdown-menu {
	--bs-dropdown-bg: var(--surface);
	--bs-dropdown-border-color: var(--border);
	--bs-dropdown-link-color: var(--text);
	--bs-dropdown-link-hover-bg: var(--accent-soft);
	--bs-dropdown-link-active-bg: var(--accent-soft);
	--bs-dropdown-link-active-color: var(--accent);
	border-radius: 12px;
	box-shadow: var(--shadow);
	padding: .4rem;
}

.navbar .dropdown-item {
	border-radius: 8px;
	font-size: .93rem;
}

.navbar-toggler {
	border-radius: 10px;
}

.navbar-toggler:focus { box-shadow: 0 0 0 3px var(--accent-soft); }

.theme-toggle {
	border: 1px solid var(--border);
	border-radius: 999px;
	color: var(--muted);
	width: 2.2rem;
	height: 2.2rem;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.theme-toggle:hover { color: var(--text); background: var(--accent-soft); }

.theme-icon {
	display: block;
	width: 1.1rem;
	height: 1.1rem;
	background: currentColor;
	-webkit-mask: var(--theme-icon) center / contain no-repeat;
	mask: var(--theme-icon) center / contain no-repeat;
	--theme-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 4a8 8 0 0 1 0 16z' fill='black'/%3E%3C/svg%3E");
}

[data-theme-mode="light"] .theme-icon {
	--theme-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M2 12h2M20 12h2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E");
}

[data-theme-mode="dark"] .theme-icon {
	--theme-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 14.5A8.5 8.5 0 1 1 9.5 4a7 7 0 0 0 10.5 10.5z'/%3E%3C/svg%3E");
}

/* Footer */

.site-footer {
	margin-top: 6rem;
	padding: 3.5rem 0 2rem;
	background: var(--bg-alt);
	border-top: 1px solid var(--border);
	font-size: .92rem;
}

.footer-brand {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	font-weight: 650;
	color: var(--text);
	text-decoration: none;
}

.footer-brand:hover { color: var(--text); }
.footer-brand img { border-radius: 7px; }

.footer-tagline {
	margin: .8rem 0 0;
	max-width: 22rem;
	color: var(--muted);
}

.footer-heading {
	margin: 0 0 .8rem;
	font-size: .78rem;
	font-weight: 650;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
}

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

.footer-links li { margin-bottom: .45rem; }

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

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

.footer-copyright {
	margin: 2.5rem 0 0;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border);
	color: var(--muted);
	font-size: .82rem;
}

/* 4. Buttons ---------------------------------------------------------------- */

.btn {
	--bs-btn-border-radius: 999px;
	--bs-btn-font-weight: 600;
	--bs-btn-padding-x: 1.4rem;
	transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}

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

.btn-lg {
	--bs-btn-padding-y: .75rem;
	--bs-btn-padding-x: 1.75rem;
	--bs-btn-font-size: 1.02rem;
}

.btn-primary {
	--bs-btn-color: var(--accent-contrast);
	--bs-btn-hover-color: var(--accent-contrast);
	--bs-btn-active-color: var(--accent-contrast);
	--bs-btn-border-color: transparent;
	--bs-btn-hover-border-color: transparent;
	--bs-btn-active-border-color: transparent;
	--bs-btn-focus-shadow-rgb: 121, 170, 255;
	background-image: linear-gradient(135deg, var(--accent), var(--accent-2));
	--bs-btn-bg: transparent;
	--bs-btn-hover-bg: transparent;
	--bs-btn-active-bg: transparent;
	box-shadow: 0 8px 24px -8px var(--accent);
}

.btn-primary:hover {
	filter: brightness(1.08);
	box-shadow: 0 12px 30px -8px var(--accent);
}

.btn-ghost {
	--bs-btn-color: var(--text);
	--bs-btn-hover-color: var(--text);
	--bs-btn-active-color: var(--text);
	--bs-btn-bg: transparent;
	--bs-btn-hover-bg: var(--accent-soft);
	--bs-btn-active-bg: var(--accent-soft);
	--bs-btn-border-color: var(--border);
	--bs-btn-hover-border-color: var(--accent);
	--bs-btn-active-border-color: var(--accent);
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	font-weight: 600;
	text-decoration: none;
}

.link-arrow .icon { width: 1.05rem; height: 1.05rem; transition: transform .2s ease; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* 5. Hero ------------------------------------------------------------------- */

.hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: calc(var(--nav-height) + 4.5rem) 0 4rem;
	text-align: center;
	background:
		radial-gradient(60rem 28rem at 50% -8rem, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%),
		radial-gradient(40rem 24rem at 90% 10%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 70%),
		var(--bg);
}

/* Star field (tiled, pure CSS). Only visible in the dark theme. */
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	opacity: 0;
	transition: opacity .4s ease;
	background-image:
		radial-gradient(1.2px 1.2px at 12% 18%, #fff, transparent),
		radial-gradient(1px 1px at 27% 62%, #fff, transparent),
		radial-gradient(1.6px 1.6px at 41% 12%, #cfe0ff, transparent),
		radial-gradient(1px 1px at 55% 80%, #fff, transparent),
		radial-gradient(1.4px 1.4px at 68% 36%, #ffe8c9, transparent),
		radial-gradient(1px 1px at 79% 70%, #fff, transparent),
		radial-gradient(1.2px 1.2px at 90% 22%, #fff, transparent),
		radial-gradient(.9px .9px at 6% 84%, #fff, transparent),
		radial-gradient(1.3px 1.3px at 34% 92%, #cfe0ff, transparent),
		radial-gradient(.9px .9px at 62% 48%, #fff, transparent),
		radial-gradient(1.1px 1.1px at 95% 88%, #fff, transparent),
		radial-gradient(.9px .9px at 20% 40%, #fff, transparent);
	background-size: 520px 420px;
	-webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
	mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
}

:root[data-bs-theme="dark"] .hero::before { opacity: .85; }

.eyebrow {
	display: inline-block;
	margin-bottom: 1rem;
	font-size: .8rem;
	font-weight: 650;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--accent);
}

.hero h1 {
	margin: 0 auto;
	max-width: 16ch;
	font-size: clamp(2.6rem, 6.2vw, 4.75rem);
	font-weight: 750;
	letter-spacing: -0.035em;
	background: linear-gradient(135deg, var(--text) 30%, var(--accent) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	text-wrap: balance;
}

.hero .lead {
	margin: 1.5rem auto 0;
	max-width: 44rem;
	font-size: clamp(1.05rem, 1.6vw, 1.25rem);
	color: var(--muted);
}

.hero .tagline {
	margin: 1.25rem auto 0;
	max-width: 40rem;
	font-size: clamp(1.15rem, 2vw, 1.5rem);
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--text);
	text-wrap: balance;
}

.hero-actions {
	margin-top: 2rem;
	display: flex;
	flex-wrap: wrap;
	gap: .85rem;
	justify-content: center;
}

.hero-shot {
	margin: 3.5rem auto 0;
	max-width: 62rem;
}

.app-icon {
	width: 112px;
	height: 112px;
	margin: 0 auto 1.5rem;
	display: block;
	filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .35));
}

.hero-meta {
	margin-top: 1.25rem;
	font-size: .88rem;
	color: var(--muted);
}

/* 6. Sections, sub-navigation & typography helpers ----------------------------- */

.section {
	padding: 5.5rem 0;
}

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

.section-head {
	max-width: 46rem;
	margin: 0 auto 3rem;
	text-align: center;
}

.section-head h2,
.split h2 {
	margin: 0;
	font-size: clamp(1.9rem, 3.6vw, 2.9rem);
	font-weight: 720;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

.split h2 { margin-bottom: 1rem; }

.section-head p {
	margin: 1rem 0 0;
	font-size: 1.12rem;
	color: var(--muted);
}

.split h3 {
	margin: 0 0 1rem;
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--accent);
	letter-spacing: 0;
}

.split p { color: var(--muted); }
.split p strong { color: var(--text); }

.split .copy > :last-child { margin-bottom: 0; }

.badge-new,
.badge-tag {
	display: inline-flex;
	align-items: center;
	padding: .18rem .65rem;
	border-radius: 999px;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	vertical-align: middle;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	color: var(--accent-contrast);
}

.badge-tag {
	background: var(--accent-soft);
	color: var(--accent);
	border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}

.price {
	font-size: 1.05rem;
	font-weight: 650;
	color: var(--text);
}

.price small {
	font-weight: 500;
	color: var(--muted);
}

/* In-page sub-navigation (product pages) */
.subnav {
	position: sticky;
	top: var(--nav-height);
	z-index: 1020;
	height: var(--subnav-height);
	background: color-mix(in srgb, var(--bg) 80%, transparent);
	-webkit-backdrop-filter: saturate(180%) blur(16px);
	backdrop-filter: saturate(180%) blur(16px);
	border-block: 1px solid var(--border);
}

.subnav .container {
	height: 100%;
}

.subnav .nav {
	flex-wrap: nowrap;
	height: 100%;
	align-items: center;
	overflow-x: auto;
	scrollbar-width: none;
	white-space: nowrap;
	gap: .15rem;
}

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

.subnav .nav-link {
	padding: .35rem .85rem;
	font-size: .88rem;
	font-weight: 550;
	color: var(--muted);
	border-radius: 999px;
}

.subnav .nav-link:hover { color: var(--text); }

.subnav .nav-link.active {
	color: var(--text);
	background: var(--accent-soft);
}

.subnav .subnav-cta {
	margin-left: auto;
	padding-left: 1rem;
}

.subnav .subnav-cta .btn {
	--bs-btn-padding-y: .25rem;
	--bs-btn-padding-x: 1rem;
	--bs-btn-font-size: .85rem;
}

/* CTA band */
.cta-band {
	position: relative;
	overflow: hidden;
	padding: 4rem 1.5rem;
	border: 1px solid var(--border);
	border-radius: 28px;
	text-align: center;
	background:
		radial-gradient(40rem 16rem at 50% 0, color-mix(in srgb, var(--accent) 24%, transparent), transparent 70%),
		var(--surface);
	box-shadow: var(--shadow);
}

.cta-band h2 {
	margin: 0 0 .75rem;
	font-size: clamp(1.8rem, 3.4vw, 2.6rem);
	letter-spacing: -0.03em;
}

.cta-band p { color: var(--muted); margin-inline: auto; max-width: 38rem; }

/* 7. Screenshots, cards, lists & tables ------------------------------------------ */

.shot {
	position: relative;
	margin: 0;
	border-radius: 14px;
	border: 1px solid var(--border);
	background: var(--surface);
	box-shadow: var(--shadow);
	overflow: hidden;
}

.shot a { display: block; }

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

.shot-glow {
	position: relative;
	isolation: isolate;
}

.shot-glow::before {
	content: "";
	position: absolute;
	inset: 10% 6% -6%;
	z-index: -1;
	border-radius: 40px;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	filter: blur(70px);
	opacity: .28;
}

.shot figcaption {
	padding: .7rem 1rem;
	font-size: .85rem;
	color: var(--muted);
	border-top: 1px solid var(--border);
	background: var(--surface);
}

.card-soft {
	height: 100%;
	padding: 1.6rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.card-soft:hover {
	transform: translateY(-3px);
	border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
	box-shadow: var(--shadow);
}

.card-soft h3 {
	margin: 1rem 0 .5rem;
	font-size: 1.15rem;
	letter-spacing: -0.01em;
}

.card-soft p {
	margin: 0;
	color: var(--muted);
	font-size: .96rem;
}

.card-soft p + p { margin-top: .6rem; }

.icon-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.9rem;
	height: 2.9rem;
	border-radius: 14px;
	color: var(--accent);
	background: var(--accent-soft);
	border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}

.icon-chip .icon { width: 1.5rem; height: 1.5rem; }

/* Product cards on the landing page */
.product-card {
	position: relative;
	height: 100%;
	display: flex;
	flex-direction: column;
	padding: 2rem;
	border: 1px solid var(--border);
	border-radius: 24px;
	background:
		radial-gradient(28rem 14rem at 0 0, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
		var(--surface);
	box-shadow: var(--shadow);
}

.product-card .product-head { color: inherit; text-decoration: none; }
.product-card .product-head:hover h3 { color: var(--accent); }
.product-card .product-shot { margin: 1.5rem 0; }
.product-card h3 { margin: 0; font-size: 1.9rem; letter-spacing: -0.03em; }
.product-card .product-sub { margin: .25rem 0 0; font-weight: 600; color: var(--accent); }
.product-card p { color: var(--muted); }
.product-card .product-foot { margin-top: auto; padding-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }

.product-card.fits {
	--accent: #b45f06;
	--accent-2: #d1471f;
	--accent-soft: rgba(180, 95, 6, .10);
	--accent-contrast: #ffffff;
}

:root[data-bs-theme="dark"] .product-card.fits {
	--accent: #ffbf5e;
	--accent-2: #ff8a5b;
	--accent-soft: rgba(255, 191, 94, .12);
	--accent-contrast: #24130a;
}

.product-card.astro {
	--accent: #a3286f;
	--accent-2: #6d4fe0;
	--accent-soft: rgba(163, 40, 111, .10);
	--accent-contrast: #ffffff;
}

:root[data-bs-theme="dark"] .product-card.astro {
	--accent: #ff8fcf;
	--accent-2: #b79bff;
	--accent-soft: rgba(255, 143, 207, .12);
	--accent-contrast: #2a0a1c;
}

.product-card.sol {
	--accent: #0b7a75;
	--accent-2: #1d8f5e;
	--accent-soft: rgba(11, 122, 117, .10);
	--accent-contrast: #ffffff;
}

:root[data-bs-theme="dark"] .product-card.sol {
	--accent: #5eead4;
	--accent-2: #7ee7a8;
	--accent-soft: rgba(94, 234, 212, .12);
	--accent-contrast: #04201c;
}

/* Check lists */
.checklist {
	list-style: none;
	margin: 1rem 0;
	padding: 0;
}

.checklist li {
	position: relative;
	margin: .55rem 0;
	padding-left: 1.9rem;
	color: var(--muted);
}

.checklist li strong { color: var(--text); font-weight: 650; }

.checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .32em;
	width: 1.15rem;
	height: 1.15rem;
	background: var(--accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10' stroke-width='1.6'/%3E%3Cpath d='m7.5 12.5 3 3 6-6.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10' stroke-width='1.6'/%3E%3Cpath d='m7.5 12.5 3 3 6-6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Question cards ("The problem") */
.question-card {
	height: 100%;
	padding: 1.4rem 1.5rem;
	border: 1px solid var(--border);
	border-left: 3px solid var(--accent);
	border-radius: 14px;
	background: var(--surface);
}

.question-card h3 {
	margin: 0 0 .4rem;
	font-size: 1.05rem;
	letter-spacing: -0.01em;
}

.question-card p { margin: 0; color: var(--muted); font-size: .95rem; }

.question-card.answer {
	border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
	border-left-color: var(--accent-2);
	background:
		radial-gradient(22rem 10rem at 0 0, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
		var(--surface);
}

/* Big-number tiles */
.stat {
	height: 100%;
	padding: 1.1rem 1.2rem;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: var(--surface);
}

.stat-value {
	display: block;
	font-size: 2rem;
	font-weight: 750;
	letter-spacing: -0.03em;
	line-height: 1.1;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.stat-label {
	display: block;
	margin-top: .3rem;
	font-size: .85rem;
	color: var(--muted);
}

.cta-band.text-start .checklist { margin-bottom: 1.5rem; }
.cta-band.text-start p { margin-inline: 0; }

/* Archive / tag pills */
.pill-list {
	display: flex;
	flex-wrap: wrap;
	gap: .55rem;
	margin: 1.5rem 0;
	padding: 0;
	list-style: none;
}

.pill-list li {
	padding: .35rem .95rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface);
	font-size: .9rem;
	font-weight: 600;
	color: var(--text);
}

.pill-list.centered { justify-content: center; }

/* Comparison table */
.compare {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--surface);
	--bs-table-bg: transparent;
	--bs-table-color: var(--text);
}

.compare th,
.compare td {
	padding: 1.05rem 1.25rem;
	border-bottom: 1px solid var(--border);
	vertical-align: top;
}

.compare tr:last-child > * { border-bottom: 0; }

.compare thead th {
	font-size: .8rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
	background: var(--surface-2);
}

.compare tbody th {
	width: 10rem;
	font-size: .9rem;
	font-weight: 600;
	color: var(--muted);
}

/* Reference table (Inspect Images columns) */
.spec-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--surface);
	font-size: .96rem;
}

.spec-table th,
.spec-table td {
	padding: .8rem 1.1rem;
	border-bottom: 1px solid var(--border);
	vertical-align: top;
}

.spec-table tr:last-child > * { border-bottom: 0; }

.spec-table thead th {
	font-size: .78rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
	background: var(--surface-2);
}

.spec-table tbody th {
	width: 11rem;
	white-space: nowrap;
	font-weight: 650;
	color: var(--text);
}

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

/* Workflow */
.workflow {
	display: flex;
	align-items: stretch;
	justify-content: center;
	gap: 1rem;
	margin-bottom: 2.5rem;
}

.workflow .step {
	flex: 1 1 0;
	max-width: 22rem;
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
}

.workflow .step h3 { margin: 0; font-size: 1.15rem; }
.workflow .step p { margin: .35rem 0 0; font-size: .92rem; color: var(--muted); }
.workflow .step.astro { --accent: #a3286f; }
:root[data-bs-theme="dark"] .workflow .step.astro { --accent: #ff8fcf; }
.workflow .step.fits { --accent: #b45f06; }
:root[data-bs-theme="dark"] .workflow .step.fits { --accent: #ffbf5e; }
.workflow .step.sol { --accent: #0b7a75; }
:root[data-bs-theme="dark"] .workflow .step.sol { --accent: #5eead4; }
.workflow .step .step-label { display: block; margin-bottom: .35rem; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }

.workflow .arrow {
	align-self: center;
	color: var(--muted);
}

.workflow .arrow .icon { width: 2rem; height: 2rem; }

@media (max-width: 767.98px) {
	.workflow { flex-direction: column; align-items: stretch; }
	.workflow .step { max-width: none; }
	.workflow .arrow { transform: rotate(90deg); align-self: center; }
}

/* Code block for the rename template */
.code-block {
	margin: 1.25rem 0;
	padding: 1rem 1.25rem;
	overflow-x: auto;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--surface-2);
	font-family: var(--font-mono);
	font-size: .92rem;
	line-height: 1.6;
	color: var(--text);
}

.code-block code {
	padding: 0;
	background: none;
	color: inherit;
	font-size: inherit;
}

/* Quick facts (requirements, purchases) */
.fact-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fact-list li {
	padding: .85rem 0;
	border-bottom: 1px solid var(--border);
	color: var(--muted);
}

.fact-list li:last-child { border-bottom: 0; }
.fact-list li strong { color: var(--text); }

/* 8. Content pages (support, release notes, privacy, demo, ...) --------------------- */

body.observatory > section:first-of-type {
	padding-top: calc(var(--nav-height) + 3rem);
	margin: 0;
}

body.observatory > section {
	margin: 0 0 1.75rem;
	padding: 0;
}

body.observatory > section .container {
	max-width: 52rem;
	text-align: left;
}

body.observatory > section > header h2 {
	margin: 0 0 1rem;
	font-size: clamp(2rem, 4.5vw, 3rem);
	font-weight: 750;
	letter-spacing: -0.03em;
}

body.observatory h2 { margin-top: 2rem; font-size: 1.75rem; }
body.observatory h3 { margin-top: 1.75rem; font-size: 1.3rem; }
body.observatory h4 { margin-top: 1.5rem; font-size: 1.1rem; }

body.observatory p,
body.observatory li {
	color: var(--muted);
}

body.observatory p strong,
body.observatory li strong { color: var(--text); }

body.observatory li { margin: .3rem 0; }

body.observatory > section.buy { text-align: center; }
body.observatory > section.buy .container { text-align: center; }

body.observatory table {
	width: 100%;
	margin: 1.25rem 0;
	border-collapse: collapse;
}

body.observatory th,
body.observatory td {
	padding: .6rem .9rem;
	border: 1px solid var(--border);
	color: var(--muted);
}

body.observatory th {
	color: var(--text);
	background: var(--surface-2);
}

body.observatory img { border-radius: 8px; }

body.observatory video { max-width: 100%; height: auto; border-radius: 12px; }

body.observatory figure { margin: 1.5rem 0; }

body.observatory blockquote {
	margin: 1.25rem 0;
	padding: .25rem 1.25rem;
	border-left: 3px solid var(--accent);
	color: var(--muted);
}

body.observatory hr {
	border-color: var(--border);
	opacity: 1;
}

/* 9. News (generated by bin/gennews.py) -------------------------------------------- */

body.news .news-main {
	padding: calc(var(--nav-height) + 3rem) 0 4rem;
}

.news-head { margin-bottom: 2.5rem; }

.news-head h1 {
	margin: 0 0 .5rem;
	font-size: clamp(2rem, 4.5vw, 3rem);
	font-weight: 750;
	letter-spacing: -0.03em;
}

.news-head .lead { margin: 0; color: var(--muted); }

.news-rss {
	margin-left: .35em;
	font-size: .6em;
	text-decoration: none;
}

.news-rss-icon { vertical-align: -0.1em; }

.news-post {
	margin: 0 0 2.5rem;
	padding: 1.75rem 2rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.news-post header h1,
.news-post header h2 {
	margin: 0 0 .35rem;
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 720;
	letter-spacing: -0.02em;
}

.news-post header h2 a { color: var(--text); text-decoration: none; }
.news-post header h2 a:hover { color: var(--accent); }

.news-meta {
	margin-bottom: 1.25rem;
	font-size: .9rem;
	color: var(--muted);
}

.news-meta a { color: inherit; text-decoration: none; }
.news-meta a:hover { color: var(--accent); }

.news-entry { overflow-wrap: break-word; }
.news-entry h3, .news-entry h4 { margin: 1.75rem 0 .75rem; font-size: 1.2rem; }
.news-entry img { display: block; margin: 1.25rem auto; max-width: 100%; height: auto; border-radius: 8px; }
.news-entry p > img:only-child { margin-left: auto; margin-right: auto; }
.news-entry video { display: block; max-width: 100%; height: auto; margin: 1.25rem auto; border-radius: 12px; }
.news-entry del { color: var(--muted); }
.news-entry figure { margin: 1.25rem 0; text-align: center; }
.news-entry figure img { margin-bottom: .5rem; }
.news-entry figcaption { font-size: .9rem; color: var(--muted); }
.news-entry > :last-child { margin-bottom: 0; }
.news-entry blockquote {
	margin: 1.25rem 0;
	padding: .25rem 1.25rem;
	border-left: 3px solid var(--accent);
	color: var(--muted);
}

/* Pagination */
.news-pagination { margin: 0 0 2rem; }

.news-pagination .pagination {
	--bs-pagination-color: var(--accent);
	--bs-pagination-bg: var(--surface);
	--bs-pagination-border-color: var(--border);
	--bs-pagination-hover-color: var(--accent-2);
	--bs-pagination-hover-bg: var(--surface-2);
	--bs-pagination-hover-border-color: var(--border);
	--bs-pagination-focus-color: var(--accent-2);
	--bs-pagination-focus-bg: var(--surface-2);
	--bs-pagination-active-color: var(--accent-contrast);
	--bs-pagination-active-bg: var(--accent);
	--bs-pagination-active-border-color: var(--accent);
	--bs-pagination-disabled-color: var(--muted);
	--bs-pagination-disabled-bg: var(--surface);
	--bs-pagination-disabled-border-color: var(--border);
	flex-wrap: wrap;
}

/* Older / newer article navigation */
.article-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin: 0 0 2rem;
}

.article-nav-link {
	display: flex;
	flex-direction: column;
	gap: .15rem;
	padding: .9rem 1.1rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 12px;
	text-decoration: none;
	color: var(--text);
	min-width: 0;
}

.article-nav-link:hover { border-color: var(--accent); color: var(--text); }
.article-nav-link.newer { grid-column: 2; text-align: right; }
.article-nav-label { font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.article-nav-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-nav-empty { display: none; }

/* Sidebar */
.news-module { margin: 0 0 2rem; }

.news-module h2 {
	margin: 0 0 .75rem;
	font-size: .85rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
}

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

.news-recents li { padding: .35rem 0; border-bottom: 1px solid var(--border); }
.news-recents li:last-child { border-bottom: 0; }
.news-recents a { text-decoration: none; }
.news-recents a:hover { text-decoration: underline; }

.accordion.news-archives {
	--bs-accordion-bg: var(--surface);
	--bs-accordion-color: var(--text);
	--bs-accordion-border-color: var(--border);
	--bs-accordion-border-radius: 12px;
	--bs-accordion-inner-border-radius: 11px;
	--bs-accordion-btn-color: var(--text);
	--bs-accordion-btn-bg: var(--surface);
	--bs-accordion-active-color: var(--text);
	--bs-accordion-active-bg: var(--surface-2);
	--bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem var(--accent-soft);
	--bs-accordion-btn-padding-y: .6rem;
	--bs-accordion-body-padding-y: .5rem;
	--bs-accordion-body-padding-x: 1rem;
}

.news-archives .accordion-button { font-weight: 650; }

.news-archive-count {
	margin-left: .75rem;
	color: var(--muted);
	font-size: .85rem;
	font-weight: 500;
}

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

.news-archive-list li { padding: .25rem 0; font-size: .92rem; line-height: 1.35; }
.news-archive-list a { text-decoration: none; }
.news-archive-list a:hover { text-decoration: underline; }
.news-archive-list a.active { font-weight: 700; color: var(--text); }
.news-archive-date { margin-left: .25rem; font-size: .8rem; color: var(--muted); white-space: nowrap; }

@media (max-width: 575.98px) {
	.news-post { padding: 1.25rem 1.1rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
	}
}

body.observatory a:has(> h2) { text-decoration: none; }
