:root {
	--bg: #edf1f3;
	--surface: #ffffff;
	--surface-strong: #17202a;
	--text: #17202a;
	--muted: #5d6873;
	--line: #d8e0e6;
	--accent: #ef3b32;
	--accent-strong: #b91c1c;
	--accent-soft: #fee2e0;
	--secondary: #2f855a;
	--secondary-soft: #e6f4ee;
	--blue-soft: #e8f0fb;
	--shadow: 0 22px 60px rgba(23, 32, 42, 0.14);
	--radius: 8px;
	--wrap: min(1120px, calc(100vw - 40px));
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--text);
	background: var(--bg);
}

.theme-radio {
	--accent: #2f855a;
	--accent-strong: #1f5f40;
	--accent-soft: #e6f4ee;
	--secondary: #ef3b32;
}

.theme-civic {
	--accent: #2b6cb0;
	--accent-strong: #1f4e7c;
	--accent-soft: #e8f0fb;
	--secondary: #ef3b32;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background:
		radial-gradient(circle at 12% 0%, rgba(239, 59, 50, 0.14), transparent 28rem),
		linear-gradient(180deg, #f8fafb 0%, var(--bg) 48%, #e4ebef 100%);
	color: var(--text);
	line-height: 1.5;
}

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

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

.skip-link {
	position: absolute;
	left: 12px;
	top: -80px;
	z-index: 20;
	padding: 10px 14px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.skip-link:focus {
	top: 12px;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	background: rgba(248, 250, 251, 0.9);
	border-bottom: 1px solid var(--line);
	backdrop-filter: blur(16px);
}

.topline,
.topbar,
.hero,
.section,
.content-shell,
.inspiration-rail,
.showcase-grid,
.tutorial-page,
.privacy-page,
.module-band,
.site-footer {
	width: var(--wrap);
	margin-inline: auto;
}

.topline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 72px;
	gap: 24px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-weight: 850;
	font-size: 1.08rem;
}

.brand img {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	box-shadow: 0 8px 20px rgba(23, 32, 42, 0.22);
}

.site-navigation {
	display: flex;
	align-items: center;
	gap: 8px;
}

.site-navigation a,
.site-navigation .mod-menu a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 12px;
	border-radius: 6px;
	color: var(--muted);
	font-weight: 750;
}

.site-navigation a:hover,
.site-navigation a:focus-visible {
	color: var(--text);
	background: var(--accent-soft);
	outline: none;
}

.site-navigation .mod-menu {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--surface);
}

.nav-toggle span {
	display: block;
	width: 20px;
	height: 2px;
	margin: 5px auto;
	background: var(--text);
}

.topbar {
	padding: 0 0 14px;
	color: var(--muted);
}

.hero {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(320px, 520px);
	align-items: center;
	gap: clamp(36px, 5vw, 72px);
	min-height: calc(100vh - 120px);
	padding: clamp(56px, 8vw, 104px) 0 28px;
}

.hero-copy {
	max-width: 760px;
}

.hero h1 {
	margin: 0;
	font-size: clamp(4rem, 9vw, 8rem);
	line-height: 0.9;
	letter-spacing: 0;
	text-wrap: balance;
}

.hero-visual {
	padding: 18px;
	border: 1px solid rgba(23, 32, 42, 0.1);
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.75);
	box-shadow: var(--shadow);
}

.eyebrow {
	margin: 0 0 12px;
	color: var(--accent-strong);
	font-weight: 900;
	text-transform: uppercase;
	font-size: 0.78rem;
	letter-spacing: 0.08em;
}

.lede {
	max-width: 710px;
	margin: 24px 0 0;
	color: #313941;
	font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 32px;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 18px;
	border-radius: 7px;
	font-weight: 850;
	border: 1px solid transparent;
}

.button.primary {
	background: var(--accent);
	color: #fff;
	box-shadow: 0 10px 24px rgba(239, 59, 50, 0.24);
}

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

.inspiration-rail {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding: 0 0 clamp(44px, 7vw, 78px);
	scrollbar-width: thin;
}

.inspiration-rail span {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 0 15px;
	border: 1px solid #cbd5dd;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.72);
	color: #313941;
	font-weight: 850;
	box-shadow: 0 8px 20px rgba(23, 32, 42, 0.05);
}

.section,
.content-shell,
.privacy-page,
.tutorial-page,
.module-band {
	padding: clamp(44px, 7vw, 82px) 0;
}

.section-heading {
	max-width: 780px;
	margin-bottom: 28px;
}

.section h2,
.tutorial-page h1,
.privacy-page h1 {
	margin: 0;
	line-height: 0.96;
	letter-spacing: 0;
	text-wrap: balance;
}

.section h2 {
	font-size: clamp(2rem, 5vw, 4.2rem);
}

.tutorial-page h1,
.privacy-page h1 {
	font-size: clamp(3rem, 9vw, 7rem);
}

.section-heading p:last-child {
	color: var(--muted);
	font-size: 1.08rem;
}

.product-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.75fr);
	gap: 14px;
}

.subpage-band {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 34px 0;
}

.subpage-band a {
	display: grid;
	gap: 8px;
	min-height: 118px;
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: 0 12px 28px rgba(23, 32, 42, 0.06);
}

.subpage-band a:hover,
.subpage-band a:focus-visible {
	border-color: var(--accent);
	outline: none;
}

.subpage-band span {
	color: var(--accent-strong);
	font-size: 0.78rem;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.subpage-band strong {
	font-size: 1.2rem;
	line-height: 1.15;
}

.product-card {
	display: grid;
	align-content: start;
	gap: 16px;
	min-height: 360px;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background:
		linear-gradient(145deg, rgba(47, 133, 90, 0.08), transparent 38%),
		var(--surface);
	box-shadow: 0 14px 30px rgba(23, 32, 42, 0.06);
}

.product-card.primary-card {
	grid-template-columns: minmax(0, 0.86fr) minmax(260px, 1fr);
	align-items: center;
}

.product-card h3 {
	margin: 0;
	font-size: clamp(1.7rem, 3vw, 2.8rem);
	line-height: 1;
	letter-spacing: 0;
}

.product-card p {
	margin: 0;
	color: var(--muted);
}

.product-card .button {
	justify-self: start;
}

.mumradio-icon {
	width: 96px;
	height: 96px;
	border-radius: 20px;
	box-shadow: 0 14px 30px rgba(23, 32, 42, 0.18);
}

.showcase-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-auto-rows: minmax(330px, 1fr);
	gap: 14px;
	padding: 0 0 clamp(44px, 7vw, 82px);
}

.showcase-card {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 260px;
	padding: 24px;
	border: 1px solid rgba(23, 32, 42, 0.12);
	border-radius: var(--radius);
	background:
		linear-gradient(135deg, rgba(47, 133, 90, 0.12), transparent 45%),
		#fff;
	box-shadow: 0 16px 38px rgba(23, 32, 42, 0.08);
}

.showcase-card.signal {
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.18), transparent 42%),
		var(--accent);
	color: #fff;
}

.showcase-card.dark {
	background:
		linear-gradient(135deg, rgba(239, 59, 50, 0.2), transparent 45%),
		var(--surface-strong);
	color: #fff;
}

.showcase-card strong {
	display: block;
	max-width: 560px;
	font-size: clamp(1.55rem, 3vw, 2.7rem);
	line-height: 1;
	letter-spacing: 0;
	text-wrap: balance;
}

.showcase-card p {
	max-width: 480px;
	margin: 14px 0 0;
	color: var(--muted);
}

.showcase-card.signal p,
.showcase-card.dark p {
	color: rgba(255, 255, 255, 0.78);
}

.showcase-card.signal a {
	margin-top: 16px;
	color: #fff;
	font-weight: 900;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.card-label {
	display: inline-flex;
	align-self: flex-start;
	margin-bottom: 10px;
	padding: 7px 10px;
	border-radius: 999px;
	background: rgba(23, 32, 42, 0.08);
	font-weight: 900;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.signal .card-label,
.dark .card-label {
	background: rgba(255, 255, 255, 0.16);
}

.doc-shell {
	display: grid;
	grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
	align-items: start;
	gap: 22px;
	margin-top: 34px;
}

.doc-toc {
	position: sticky;
	top: 96px;
	max-height: calc(100vh - 120px);
	overflow: auto;
	margin: 0;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: 0 14px 30px rgba(23, 32, 42, 0.06);
}

.doc-toc h2 {
	margin: 0 0 16px;
	font-size: 1.35rem;
}

.doc-toc ul {
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.doc-toc li {
	position: relative;
	padding-left: 20px;
}

.doc-toc li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.72em;
	width: 12px;
	border-top: 1px solid #acb7c0;
}

.doc-toc a {
	display: inline-flex;
	padding: 3px 0;
	color: var(--accent-strong);
	font-weight: 800;
}

.doc-toc a:hover,
.doc-toc a:focus-visible {
	color: var(--text);
	outline: none;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.doc-layout {
	display: grid;
	gap: 18px;
	min-width: 0;
}

.doc-section {
	scroll-margin-top: 92px;
	padding: 26px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background:
		linear-gradient(145deg, rgba(47, 133, 90, 0.08), transparent 38%),
		var(--surface);
	box-shadow: 0 14px 30px rgba(23, 32, 42, 0.06);
}

.doc-section h2 {
	margin: 0 0 14px;
	font-size: clamp(1.8rem, 4vw, 3rem);
	line-height: 1;
	letter-spacing: 0;
}

.doc-section p {
	margin: 0 0 14px;
	color: var(--muted);
}

.doc-card-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 18px;
}

.doc-card-grid > div {
	min-height: 150px;
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.72);
}

.doc-card-grid h3 {
	margin: 0 0 10px;
	font-size: 1.15rem;
}

.settings-table {
	width: 100%;
	border-collapse: collapse;
	overflow-wrap: anywhere;
}

.settings-table th,
.settings-table td {
	padding: 14px;
	border-top: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.settings-table th {
	width: 32%;
	color: var(--text);
	font-size: 0.98rem;
}

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

.timeline {
	display: grid;
	gap: 12px;
}

.timeline div {
	padding: 20px;
	border-left: 5px solid var(--accent);
	border-radius: 0 var(--radius) var(--radius) 0;
	background: var(--surface);
	box-shadow: 0 12px 28px rgba(23, 32, 42, 0.06);
}

.timeline span {
	display: block;
	margin-bottom: 8px;
	font-weight: 900;
	color: var(--accent-strong);
}

.timeline p {
	margin: 0;
	color: var(--muted);
}

.policy-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin-top: 34px;
}

.policy-grid article {
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background:
		linear-gradient(145deg, rgba(239, 59, 50, 0.08), transparent 38%),
		var(--surface);
	box-shadow: 0 14px 30px rgba(23, 32, 42, 0.06);
}

.policy-grid h2 {
	margin: 0 0 12px;
	font-size: 1.35rem;
}

.policy-grid p {
	margin: 0 0 12px;
	color: var(--muted);
}

.policy-grid p:last-child {
	margin-bottom: 0;
}

.content-shell {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 28px;
}

.content-shell.has-sidebar {
	grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
}

.content-main,
.sidebar,
.module-band > .moduletable {
	min-width: 0;
}

.content-main:empty,
.sidebar:empty {
	display: none;
}

.site-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 34px 0 44px;
	border-top: 1px solid var(--line);
	color: var(--muted);
}

.site-footer strong {
	display: block;
	color: var(--text);
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	font-weight: 750;
}

.footer-links a:hover,
.footer-links a:focus-visible {
	color: var(--accent-strong);
	outline: none;
}

@media (max-width: 860px) {
	:root {
		--wrap: min(100vw - 28px, 720px);
	}

	.nav-toggle {
		display: block;
	}

	.site-navigation {
		position: absolute;
		left: 14px;
		right: 14px;
		top: 72px;
		display: none;
		flex-direction: column;
		align-items: stretch;
		padding: 10px;
		border: 1px solid var(--line);
		border-radius: var(--radius);
		background: var(--surface);
		box-shadow: var(--shadow);
	}

	.site-navigation.is-open {
		display: flex;
	}

	.site-navigation .mod-menu {
		flex-direction: column;
		align-items: stretch;
	}

	.site-navigation a,
	.site-navigation .mod-menu a {
		width: 100%;
	}

	.hero,
	.product-grid,
	.product-card.primary-card,
	.showcase-grid,
	.content-shell {
		grid-template-columns: 1fr;
	}

	.hero {
		min-height: auto;
		padding-top: 44px;
	}

	.hero h1 {
		font-size: clamp(4rem, 21vw, 6.4rem);
	}

	.doc-shell {
		grid-template-columns: 1fr;
	}

	.doc-toc {
		position: static;
		max-height: none;
		overflow: visible;
	}

	.doc-card-grid,
	.subpage-band,
	.policy-grid {
		grid-template-columns: 1fr;
	}

	.site-footer {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (max-width: 480px) {
	.brand span {
		font-size: 0.98rem;
	}

	.hero-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.button {
		width: 100%;
	}

	.doc-section {
		padding: 20px;
	}

	.settings-table,
	.settings-table tbody,
	.settings-table tr,
	.settings-table th,
	.settings-table td {
		display: block;
		width: 100%;
	}

	.settings-table th {
		padding-bottom: 4px;
		border-top: 1px solid var(--line);
	}

	.settings-table td {
		padding-top: 0;
		border-top: 0;
	}
}
