:root {
	--bg: #f6f8fb;
	--surface: #ffffff;
	--surface-strong: #f9fafb;
	--ink: #111827;
	--muted: #5f6b7a;
	--subtle: #d9e0e8;
	--line: #d7dee8;
	--line-strong: #b8c2cf;
	--navy: #0f172a;
	--teal: #0f766e;
	--amber: #b45309;
	--red: #b91c1c;
	--shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
	--radius: 8px;
}

* { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	background:
		linear-gradient(180deg, #ffffff 0%, var(--bg) 48%, #eef3f8 100%);
	color: var(--ink);
	font-size: 16px;
	line-height: 1.5;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
	background-size: 40px 40px;
	mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 72%);
}

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

.container {
	width: min(1160px, calc(100% - 32px));
	margin-inline: auto;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: 12px;
	z-index: 20;
	transform: translateY(-140%);
	background: var(--navy);
	color: #ffffff;
	border-radius: var(--radius);
	padding: 10px 12px;
	transition: transform 160ms ease;
}

.skip-link:focus {
	transform: translateY(0);
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	background: rgba(255, 255, 255, 0.88);
	border-bottom: 1px solid rgba(215, 222, 232, 0.86);
	backdrop-filter: blur(14px);
}

.header-inner,
.footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 16px 0;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 800;
	color: var(--navy);
}

.brand-mark {
	display: grid;
	grid-template-columns: repeat(2, 10px);
	grid-template-rows: repeat(2, 10px);
	gap: 4px;
	width: 32px;
	height: 32px;
	align-content: center;
	justify-content: center;
	background: var(--navy);
	border-radius: var(--radius);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.brand-mark span {
	display: block;
	border-radius: 3px;
	background: #ffffff;
}

.brand-mark span:nth-child(2) {
	background: var(--teal);
}

.brand-mark span:nth-child(3) {
	background: var(--amber);
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--muted);
	font-size: 14px;
	font-weight: 700;
}

.site-nav a {
	border-radius: var(--radius);
	padding: 8px 10px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
	background: #edf3f7;
	color: var(--navy);
	outline: none;
}

.hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 28px;
	align-items: end;
	padding: 42px 0 24px;
}

.eyebrow,
.section-kicker {
	margin: 0 0 8px;
	color: var(--teal);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: uppercase;
}

h1,
h2,
h3,
p {
	margin-top: 0;
}

h1 {
	max-width: 760px;
	margin-bottom: 14px;
	color: var(--navy);
	font-size: clamp(34px, 4.8vw, 56px);
	line-height: 1.05;
	letter-spacing: 0;
}

h2 {
	color: var(--navy);
	font-size: 24px;
	line-height: 1.18;
	letter-spacing: 0;
}

h3 {
	color: var(--navy);
	font-size: 17px;
}

.lead {
	max-width: 740px;
	margin-bottom: 0;
	color: var(--muted);
	font-size: 18px;
}

.trust-list {
	display: grid;
	gap: 10px;
	min-width: 260px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.trust-list li {
	position: relative;
	padding: 10px 12px 10px 34px;
	background: rgba(255, 255, 255, 0.76);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--navy);
	font-weight: 700;
	box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
}

.trust-list li::before {
	content: "";
	position: absolute;
	left: 12px;
	top: 50%;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--teal);
	transform: translateY(-50%);
}

.ad-section {
	padding: 0 0 22px;
}

.ad-slot {
	display: grid;
	place-items: center;
	min-height: 96px;
	border: 1px dashed var(--line-strong);
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.74);
	color: #64748b;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	box-shadow: 0 10px 34px rgba(15, 23, 42, 0.05);
}

.app-shell {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
	gap: 18px;
	align-items: start;
	padding: 12px 0 36px;
}

.panel {
	background: rgba(255, 255, 255, 0.94);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.controls-panel {
	padding: 22px;
}

.preview-panel {
	position: sticky;
	top: 84px;
	padding: 20px;
}

.section-heading,
.preview-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.section-heading h2,
.preview-top h2 {
	margin-bottom: 0;
}

.appearance-heading {
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

.status-pill {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 4px 9px;
	border: 1px solid #c5d6d4;
	border-radius: 999px;
	background: #edf8f6;
	color: #0f5f59;
	font-size: 12px;
	font-weight: 800;
	white-space: nowrap;
}

.row,
.row-2,
.row-3,
.row-4 {
	display: grid;
	gap: 12px;
	margin: 14px 0;
}

.row {
	grid-template-columns: 168px minmax(0, 1fr);
	align-items: center;
}

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

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

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

.fieldset {
	margin: 14px 0;
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface-strong);
}

label span {
	display: block;
	margin-bottom: 6px;
	color: #475569;
	font-size: 12px;
	font-weight: 800;
}

input,
select,
textarea,
button {
	width: 100%;
	min-height: 44px;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	font: inherit;
	font-size: 14px;
	color: var(--ink);
	background: #ffffff;
	outline: none;
}

input,
select,
textarea {
	padding: 10px 12px;
}

textarea {
	min-height: 92px;
	resize: vertical;
}

input[type="color"] {
	height: 44px;
	padding: 4px;
	cursor: pointer;
}

input[type="file"] {
	padding: 9px 12px;
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--teal);
	box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.16);
}

button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-width: 150px;
	padding: 10px 16px;
	border: 1px solid transparent;
	font-weight: 800;
	cursor: pointer;
	transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

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

button:focus-visible {
	outline: 3px solid rgba(15, 118, 110, 0.24);
	outline-offset: 2px;
}

.button-primary {
	background: var(--navy);
	color: #ffffff;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.button-primary:hover {
	background: #1f2937;
}

.button-secondary {
	background: #ffffff;
	border-color: var(--line-strong);
	color: var(--navy);
}

.button-secondary:hover {
	background: #f8fafc;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-top: 18px;
}

.actions .inline {
	display: inline;
}

.preview-box {
	display: grid;
	place-items: center;
	min-height: 420px;
	margin-top: 18px;
	background:
		linear-gradient(135deg, #f8fafc, #ffffff);
	border: 1px dashed var(--line-strong);
	border-radius: var(--radius);
	overflow: hidden;
}

.preview-box canvas,
.preview-box svg {
	display: block;
	max-width: min(100%, 420px);
	height: auto;
	padding: 14px;
}

.empty-preview {
	display: grid;
	place-items: center;
	gap: 12px;
	padding: 24px;
	text-align: center;
	color: var(--muted);
}

.empty-mark {
	width: 132px;
	aspect-ratio: 1;
	border-radius: var(--radius);
	background:
		linear-gradient(90deg, var(--navy) 18px, transparent 18px) 0 0 / 44px 44px,
		linear-gradient(var(--navy) 18px, transparent 18px) 0 0 / 44px 44px,
		linear-gradient(90deg, var(--teal) 18px, transparent 18px) 22px 22px / 44px 44px,
		#ffffff;
	border: 10px solid #ffffff;
	box-shadow: 0 0 0 1px var(--line), 0 20px 45px rgba(15, 23, 42, 0.1);
}

.empty-preview p,
.preview-note {
	margin: 0;
}

.preview-note {
	margin-top: 14px;
	color: var(--muted);
	font-size: 13px;
}

.content-section,
.guide-section,
.faq-section {
	padding: 34px 0;
	border-top: 1px solid rgba(215, 222, 232, 0.86);
}

.content-section {
	display: grid;
	grid-template-columns: 0.9fr 1.3fr;
	gap: 36px;
	align-items: start;
}

.feature-grid,
.guide-grid,
.faq-grid {
	display: grid;
	gap: 14px;
}

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

.feature-grid article,
.guide-grid article,
.faq-grid details {
	background: rgba(255, 255, 255, 0.78);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 18px;
}

.feature-grid h3,
.feature-grid p,
.guide-grid h3,
.guide-grid p,
.faq-grid p {
	margin-bottom: 0;
}

.feature-grid p,
.content-section > div > p,
.guide-intro p,
.guide-grid p,
.faq-grid p {
	color: var(--muted);
}

.guide-intro {
	max-width: 760px;
	margin-bottom: 20px;
}

.faq-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 18px;
}

summary {
	color: var(--navy);
	font-weight: 800;
	cursor: pointer;
}

details p {
	margin-top: 12px;
}

.site-footer {
	border-top: 1px solid var(--line);
	background: #ffffff;
	color: var(--muted);
}

.footer-inner p {
	margin: 0;
}

.footer-inner a {
	color: var(--navy);
	font-weight: 800;
}

[class*="type-"] {
	display: none;
}

@media (max-width: 980px) {
	.hero,
	.app-shell,
	.content-section,
	.feature-grid,
	.guide-grid,
	.faq-grid {
		grid-template-columns: 1fr;
	}

	.preview-panel {
		position: static;
	}

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

@media (max-width: 720px) {
	.container {
		width: min(100% - 24px, 1160px);
	}

	.header-inner {
		align-items: flex-start;
		flex-direction: column;
		gap: 12px;
	}

	.site-nav {
		width: 100%;
		overflow-x: auto;
		padding-bottom: 2px;
	}

	.hero {
		padding-top: 30px;
	}

	h1 {
		font-size: 34px;
	}

	.lead {
		font-size: 16px;
	}

	.controls-panel,
	.preview-panel {
		padding: 16px;
	}

	.row,
	.row-2,
	.row-3,
	.row-4,
	.trust-list {
		grid-template-columns: 1fr;
	}

	.section-heading,
	.preview-top {
		display: block;
	}

	.status-pill {
		margin-top: 10px;
	}

	button {
		width: 100%;
	}

	.preview-box {
		min-height: 320px;
	}
}
