:root {
	--bg: #17233b;
	--panel: #22314f;
	--muted: #94a3b8;
	--text: #e2e8f0;
	--accent: #38bdf8;
	--accent-strong: #0ea5e9;
	--ring: rgba(56, 189, 248, 0.45);
}

* {
	box-sizing: border-box;
}

/* Ensure images scale down on small screens */
img {
	max-width: 100%;
	height: auto;
}

html,
body {
	height: 100%;
}

body {
	margin: 0;
	font-family:
		ui-sans-serif,
		system-ui,
		-apple-system,
		Segoe UI,
		Roboto,
		Ubuntu,
		Cantarell,
		"Helvetica Neue",
		Arial,
		"Apple Color Emoji",
		"Segoe UI Emoji";
	color: var(--muted);
	background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), transparent 100%), var(--bg);
	background-repeat: no-repeat;
	background-attachment: fixed;
}

.wordmark-bar {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 20px;
}

.wordmark-bar img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--accent);
	text-decoration: none;
}

a:hover {
	color: var(--accent-strong);
	text-decoration: underline;
}

.container {
	max-width: 1140px;
	margin-inline: auto;
	padding: 24px;
}

.nav {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 16px;
}

.hero {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 36px;
	align-items: center;
	padding: 40px 0;
}

.headline {
	font-size: clamp(28px, 3vw, 44px);
	line-height: 1.1;
	margin: 0 0 12px 0;
	color: var(--text);
}

.sub {
	color: var(--muted);
	font-size: 1.1rem;
	margin: 0 0 20px 0;
}

.pill {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	border: 1px solid rgba(148, 163, 184, 0.2);
	padding: 6px 10px;
	border-radius: 999px;
	color: var(--muted);
	font-size: 0.9rem;
}

.cta {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 18px;
	justify-content: center;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 16px;
	border-radius: 12px;
	background: #1b2438; /* slightly lighter default button */
	border: 1px solid rgba(148, 163, 184, 0.2);
	color: var(--text);
	text-decoration: none;
	font-weight: 600;
	text-align: center;
}

.btn:hover {
	border-color: var(--accent);
	box-shadow: 0 0 0 6px var(--ring);
}

.btn.primary {
	background: linear-gradient(180deg, #22d3ee 0%, #0ea5e9 100%);
	color: #001018;
	border: none;
}

.btn.primary:hover {
	filter: saturate(105%);
}

.downloads {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-top: 10px;
}

.downloads .btn {
	justify-content: center;
}

.card {
	background: var(--panel);
	border: 1px solid rgba(148, 163, 184, 0.16);
	border-radius: 16px;
	padding: 20px;
}

video {
	width: 100%;
	border-radius: 16px;
	border: 1px solid rgba(148, 163, 184, 0.2);
	background: #000;
	box-shadow: 0 10px 30px rgba(2, 6, 23, 0.5);
}

.section {
	padding: 36px 0;
}

.features {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.feature h3 {
	margin: 0.2rem 0 0.4rem 0;
	font-size: 1.1rem;
}

.feature p {
	margin: 0;
	color: var(--muted);
	font-size: 0.98rem;
}

.list {
	margin: 0;
	padding-left: 1.2rem;
}

.list li {
	margin-bottom: 12px;
}

footer {
	opacity: 0.8;
	color: var(--muted);
	padding: 36px 0 16px;
	text-align: center;
}

@media (max-width: 980px) {
	.hero {
		grid-template-columns: 1fr;
	}

	.features {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 640px) {
	.features,
	.downloads {
		grid-template-columns: 1fr;
	}

	/* Stack purchase form inputs on small screens */
	.form-grid {
		grid-template-columns: 1fr;
	}
}

/* Purchase form styles */

main.container .card {
	max-width: 800px;
	margin: 0 auto;
}

main .section:first-child {
	padding-top: 12px;
}

main .section:last-of-type {
	padding-bottom: 0;
}

.title {
	margin-top: 0;
	text-align: center;
	font-size: clamp(32px, 4vw, 48px);
}

h1,
h2,
h3,
strong {
	margin-top: 0;
	color: var(--text);
}

h1,
h2 {
	font-size: clamp(20px, 2vw, 28px);
}

.card h1 {
	font-size: clamp(28px, 3vw, 44px);
}

.card h2 {
	font-size: clamp(20px, 2vw, 28px);
}

.sub-tight {
	margin-top: 6px;
}

.price-inline {
	color: var(--text);
	font-weight: 600;
}

.license-explanation {
	text-align: left;
	color: var(--muted);
	font-size: 1rem;
	margin: 0 0 24px 0;
	line-height: 1.5;
}

.form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 20px;
}

.form-input {
	padding: 12px 16px;
	border-radius: 8px;
	border: 1px solid rgba(148, 163, 184, 0.2);
	background: var(--bg);
	color: var(--text);
	font-family: inherit;
}

.form-input.full-width {
	grid-column: 1 / -1;
}

.error-card {
	background: var(--panel);
	color: #ef4444;
	text-align: center;
	margin-top: 20px;
	font-weight: 600;
}

.receipt-title {
	margin-top: 0;
	text-align: center;
	font-size: clamp(32px, 4vw, 48px);
}

.receipt-grid {
	display: grid;
	gap: 12px;
}

.receipt-row {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.receipt-label {
	color: var(--muted);
}

.receipt-highlight {
	display: flex;
	justify-content: space-between;
	padding: 16px 0 8px 0;
	font-weight: 600;
	background: rgba(56, 189, 248, 0.1);
	margin: 12px -20px -8px -20px;
	padding-left: 20px;
	padding-right: 20px;
	border-radius: 8px;
}

.receipt-accent {
	color: var(--accent);
}

.footer-container {
	margin-top: 0;
}

.seal-container {
	text-align: center;
	margin: 16px 0;
	width: 100%;
}

.seal-in-form {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	padding: 8px;
	background: white;
	border-radius: 8px;
}

#divTotal {
	text-align: center;
	font-size: 1.2em;
	margin: 16px 0;
	color: var(--text);
	font-weight: 600;
}

/* Re-assert small-screen stacking after form styles to prevent overrides */
@media (max-width: 640px) {
	.form-grid {
		grid-template-columns: 1fr;
	}
}
