/* ============================================================
   Global CSS — from Layout.astro
   ============================================================ */

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

:root {
	--bg: #fbfaf6;
	--bg-2: #f4f0e9;
	--ink: #17202a;
	--muted: rgba(23, 32, 42, 0.72);
	--muted-2: rgba(23, 32, 42, 0.56);
	--card: rgba(255, 255, 255, 0.74);
	--card-strong: rgba(255, 255, 255, 0.9);
	--stroke: rgba(23, 32, 42, 0.14);
	--stroke-2: rgba(23, 32, 42, 0.09);
	--shadow: 0 24px 70px rgba(13, 18, 24, 0.11);

	--blue: #2b6a92;
	--blue-2: #3c89b6;
	--coral: #ff6b5b;
	--amber: #ffbf66;

	--radius-lg: 22px;
	--radius-md: 16px;
	--radius-sm: 12px;

	--max: 1120px;
	--pad: clamp(16px, 4vw, 28px);

	--font-body: 'IBM Plex Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-display: 'IBM Plex Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

	color-scheme: light;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-height: 100%;
	background:
		radial-gradient(1200px 680px at 16% 12%, rgba(60, 137, 182, 0.16), transparent 55%),
		radial-gradient(980px 720px at 86% 18%, rgba(255, 107, 91, 0.14), transparent 52%),
		radial-gradient(1000px 820px at 70% 88%, rgba(255, 191, 102, 0.16), transparent 58%),
		linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
	color: var(--ink);
	font-family: var(--font-body);
	letter-spacing: -0.012em;
	overflow-x: hidden;
}

body::before {
	content: '';
	position: fixed;
	inset: 0;
	pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E");
	mix-blend-mode: multiply;
	opacity: 0.55;
}

::selection {
	background: rgba(255, 107, 91, 0.22);
}

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

/* ============================================================
   Page CSS — from index.astro
   ============================================================ */

.page {
	position: relative;
}

.top {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: blur(14px);
	background: linear-gradient(180deg, rgba(251, 250, 246, 0.82), rgba(251, 250, 246, 0.62));
	border-bottom: 1px solid var(--stroke-2);
}

.top-inner {
	max-width: var(--max);
	margin: 0 auto;
	padding: 14px var(--pad);
	display: grid;
	grid-template-columns: 1fr auto auto;
	align-items: center;
	gap: 14px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: inherit;
	min-width: 240px;
}

.brand-mark {
	position: relative;
	width: 42px;
	height: 42px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid var(--stroke-2);
	box-shadow: 0 16px 40px rgba(13, 18, 24, 0.08);
	overflow: hidden;
}

.dot {
	position: absolute;
	border-radius: 999px;
	filter: blur(0.2px);
}

.dot-a {
	width: 22px;
	height: 22px;
	left: 8px;
	top: 10px;
	background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.85), rgba(60, 137, 182, 0.88));
}

.dot-b {
	width: 18px;
	height: 18px;
	right: 6px;
	top: 7px;
	background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.86), rgba(255, 191, 102, 0.95));
	mix-blend-mode: multiply;
}

.dot-c {
	width: 20px;
	height: 20px;
	right: 10px;
	bottom: 8px;
	background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.86), rgba(255, 107, 91, 0.9));
	mix-blend-mode: multiply;
}

.brand-text {
	display: grid;
	gap: 2px;
	line-height: 1.1;
}

.brand-name {
	font-family: var(--font-display);
	letter-spacing: -0.02em;
	font-weight: 700;
	font-size: 18px;
}

.brand-tag {
	font-size: 12px;
	color: var(--muted-2);
}

.nav {
	display: flex;
	gap: 14px;
	align-items: center;
	padding: 10px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.52);
	border: 1px solid var(--stroke-2);
}

.nav a {
	font-size: 13px;
	text-decoration: none;
	color: var(--muted);
	padding: 8px 10px;
	border-radius: 999px;
	transition:
		background 0.15s ease,
		color 0.15s ease,
		transform 0.15s ease;
	white-space: nowrap;
}

.nav a:hover {
	background: rgba(60, 137, 182, 0.12);
	color: var(--ink);
	transform: translateY(-1px);
}

.main {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 var(--pad);
}

.hero {
	padding: clamp(26px, 6vw, 56px) 0 clamp(22px, 4vw, 34px);
}

.hero-grid {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: clamp(18px, 3.6vw, 28px);
	align-items: start;
}

.hero-copy {
	padding: 10px 0;
	animation: rise 0.7s ease both;
}

.eyebrow {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	padding: 10px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.62);
	border: 1px solid var(--stroke-2);
	color: var(--muted);
	font-size: 13px;
}

.h1 {
	margin: 18px 0 10px;
	font-family: var(--font-display);
	font-size: clamp(34px, 4.6vw, 54px);
	line-height: 1.04;
	letter-spacing: -0.03em;
}

.h1-soft {
	display: inline;
	color: rgba(23, 32, 42, 0.76);
}

.lead {
	margin: 0;
	max-width: 60ch;
	color: var(--muted);
	font-size: clamp(16px, 1.6vw, 18px);
	line-height: 1.6;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 18px;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 16px;
	border-radius: 999px;
	border: 1px solid transparent;
	text-decoration: none;
	font-weight: 650;
	letter-spacing: -0.01em;
	cursor: pointer;
	transition:
		transform 0.14s ease,
		box-shadow 0.14s ease,
		background 0.14s ease,
		border-color 0.14s ease,
		color 0.14s ease;
	user-select: none;
}

.btn:focus-visible {
	outline: 3px solid rgba(60, 137, 182, 0.3);
	outline-offset: 3px;
}

.btn-primary {
	color: #10212b;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.72)) padding-box,
		linear-gradient(135deg, rgba(60, 137, 182, 0.62), rgba(255, 107, 91, 0.55), rgba(255, 191, 102, 0.6))
			border-box;
	border: 1px solid transparent;
	box-shadow:
		0 18px 44px rgba(13, 18, 24, 0.12),
		inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.btn-primary:hover {
	transform: translateY(-1px);
	box-shadow:
		0 22px 54px rgba(13, 18, 24, 0.14),
		inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.btn-ghost {
	background: rgba(255, 255, 255, 0.5);
	border-color: var(--stroke-2);
	color: var(--muted);
}

.btn-ghost:hover {
	background: rgba(255, 255, 255, 0.75);
	color: var(--ink);
	transform: translateY(-1px);
}

.hero-card .btn-primary.btn-wide {
	background: linear-gradient(135deg, #3c89b6, #2a6f96);
	color: #fff;
	border-color: transparent;
	box-shadow:
		0 10px 26px rgba(13, 18, 24, 0.18),
		inset 0 1px 0 rgba(255, 255, 255, 0.15);
	font-size: 15px;
}

.hero-card .btn-primary.btn-wide:hover {
	background: linear-gradient(135deg, #4897c8, #3c89b6);
	box-shadow:
		0 14px 32px rgba(13, 18, 24, 0.22),
		inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-icon {
	width: 18px;
	height: 18px;
	display: inline-flex;
}

.btn-small {
	padding: 10px 14px;
	font-size: 13px;
}

.btn-wide {
	width: 100%;
}

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

.badge {
	display: grid;
	grid-template-columns: 26px 1fr;
	gap: 10px;
	padding: 14px 14px;
	border-radius: var(--radius-md);
	background: rgba(255, 255, 255, 0.58);
	border: 1px solid var(--stroke-2);
}

.badge-ico {
	width: 26px;
	height: 26px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: rgba(43, 106, 146, 0.95);
}

.badge-title {
	font-weight: 650;
	letter-spacing: -0.01em;
	margin-bottom: 2px;
}

.badge-sub {
	color: var(--muted-2);
	font-size: 13px;
	line-height: 1.35;
}

.hero-card {
	position: relative;
	border-radius: var(--radius-lg);
	background: rgba(255, 255, 255, 0.62);
	border: 1px solid var(--stroke);
	box-shadow: var(--shadow);
	overflow: hidden;
	animation: rise 0.7s ease both;
	animation-delay: 0.08s;
}

.hero-card::before {
	content: '';
	position: absolute;
	inset: -40% -20% auto -40%;
	height: 240px;
	background:
		radial-gradient(closest-side, rgba(60, 137, 182, 0.24), transparent 70%),
		radial-gradient(closest-side, rgba(255, 191, 102, 0.22), transparent 70%),
		radial-gradient(closest-side, rgba(255, 107, 91, 0.2), transparent 70%);
	transform: rotate(-8deg);
	filter: blur(8px);
	opacity: 0.9;
}

.hero-card-inner {
	position: relative;
	padding: 20px;
}

.hero-card-kicker {
	margin: 0;
	font-weight: 650;
	font-size: 12px;
	color: rgba(43, 106, 146, 0.92);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hero-card-title {
	margin: 10px 0 8px;
	font-family: var(--font-display);
	font-size: 24px;
	letter-spacing: -0.02em;
}

.hero-card-sub {
	margin: 0;
	color: var(--muted);
	line-height: 1.55;
}

.facts {
	list-style: none;
	padding: 0;
	margin: 16px 0 14px;
	display: grid;
	gap: 10px;
}

.facts li {
	display: grid;
	gap: 4px;
	padding: 12px 12px;
	border-radius: var(--radius-md);
	background: rgba(255, 255, 255, 0.62);
	border: 1px solid var(--stroke-2);
}

.fact-key {
	font-size: 12px;
	color: var(--muted-2);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.fact-val {
	color: var(--ink);
	line-height: 1.35;
	font-size: 14px;
}

.fine {
	margin: 10px 0 0;
	color: var(--muted-2);
	font-size: 13px;
	line-height: 1.5;
}

.signup-success {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 12px;
	padding: 32px 24px;
	width: 100%;
}

.signup-success.visible {
	display: flex;
}

.signup-success-icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #dcfce7;
	border: 2px solid #86efac;
	color: #166534;
	font-size: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.section {
	padding: clamp(22px, 5vw, 54px) 0;
}

.section-head {
	display: grid;
	gap: 8px;
	margin-bottom: 16px;
}

.h2 {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(24px, 3vw, 34px);
	letter-spacing: -0.02em;
}

.sub {
	margin: 0;
	color: var(--muted);
	line-height: 1.6;
	max-width: 72ch;
}

.cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.card {
	border-radius: var(--radius-lg);
	background: var(--card);
	border: 1px solid var(--stroke-2);
	box-shadow: 0 18px 48px rgba(13, 18, 24, 0.06);
	padding: 18px 16px;
	transition:
		transform 0.16s ease,
		box-shadow 0.16s ease,
		background 0.16s ease;
}

.card:hover {
	transform: translateY(-2px);
	background: rgba(255, 255, 255, 0.82);
	box-shadow: 0 26px 72px rgba(13, 18, 24, 0.1);
}

.card-ico {
	width: 42px;
	height: 42px;
	border-radius: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: rgba(43, 106, 146, 0.95);
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.62)) padding-box,
		linear-gradient(135deg, rgba(60, 137, 182, 0.55), rgba(255, 107, 91, 0.38), rgba(255, 191, 102, 0.45))
			border-box;
	border: 1px solid transparent;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
	margin-bottom: 10px;
}

.h3 {
	margin: 0 0 6px;
	font-size: 16px;
	letter-spacing: -0.01em;
}

.card p {
	margin: 0;
	color: var(--muted);
	line-height: 1.6;
	font-size: 14px;
}

.section-split .split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-top: 14px;
}

.panel {
	border-radius: var(--radius-lg);
	background: var(--card);
	border: 1px solid var(--stroke-2);
	padding: 18px 16px;
}

.panel-accent {
	background:
		radial-gradient(800px 300px at 10% 0%, rgba(60, 137, 182, 0.16), transparent 60%),
		radial-gradient(800px 320px at 90% 0%, rgba(255, 107, 91, 0.14), transparent 58%),
		radial-gradient(900px 360px at 50% 110%, rgba(255, 191, 102, 0.14), transparent 58%),
		var(--card-strong);
	box-shadow: 0 18px 62px rgba(13, 18, 24, 0.08);
}

.list {
	margin: 10px 0 0;
	padding-left: 18px;
	color: var(--muted);
	line-height: 1.7;
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 12px;
}

.chip {
	font-size: 13px;
	padding: 10px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.62);
	border: 1px solid var(--stroke-2);
	color: var(--muted);
}

.steps {
	list-style: none;
	padding: 0;
	margin: 12px 0 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.step {
	border-radius: var(--radius-lg);
	background: var(--card);
	border: 1px solid var(--stroke-2);
	padding: 16px;
	display: grid;
	grid-template-columns: 38px 1fr;
	gap: 12px;
}

.step-num {
	width: 38px;
	height: 38px;
	border-radius: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	color: rgba(23, 32, 42, 0.92);
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.62)) padding-box,
		linear-gradient(135deg, rgba(60, 137, 182, 0.45), rgba(255, 107, 91, 0.35), rgba(255, 191, 102, 0.42))
			border-box;
	border: 1px solid transparent;
}

.step-body p {
	margin: 0;
	color: var(--muted);
	line-height: 1.6;
	font-size: 14px;
}

.details {
	display: grid;
	grid-template-columns: 1.25fr 0.75fr;
	gap: 14px;
	margin-top: 14px;
}

.details-card,
.details-note {
	border-radius: var(--radius-lg);
	background: var(--card);
	border: 1px solid var(--stroke-2);
	padding: 18px 16px;
}

.dl {
	margin: 0;
	display: grid;
	gap: 12px;
}

.dl-row {
	display: grid;
	grid-template-columns: 160px 1fr;
	gap: 12px;
	padding: 12px;
	border-radius: var(--radius-md);
	background: rgba(255, 255, 255, 0.56);
	border: 1px solid var(--stroke-2);
}

dt {
	font-weight: 650;
	letter-spacing: -0.01em;
}

dd {
	margin: 0;
	color: var(--muted);
	line-height: 1.5;
}

.footer {
	padding: 0 0 46px;
}

.footer-inner {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 var(--pad);
}

.footer-card {
	border-radius: calc(var(--radius-lg) + 6px);
	background:
		radial-gradient(1100px 420px at 20% 0%, rgba(60, 137, 182, 0.16), transparent 60%),
		radial-gradient(900px 380px at 90% 0%, rgba(255, 107, 91, 0.14), transparent 60%),
		radial-gradient(900px 420px at 52% 120%, rgba(255, 191, 102, 0.16), transparent 62%),
		rgba(255, 255, 255, 0.74);
	border: 1px solid var(--stroke);
	box-shadow: var(--shadow);
	padding: clamp(18px, 3vw, 22px);
	display: grid;
	grid-template-columns: 1fr 1.05fr;
	gap: 16px;
	overflow: hidden;
}

.form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	align-content: start;
}

.field {
	display: grid;
	gap: 8px;
}

.field-wide {
	grid-column: 1 / -1;
}

.label {
	font-size: 13px;
	color: var(--muted);
	font-weight: 550;
}

.optional {
	font-weight: 450;
	color: var(--muted-2);
}

input,
textarea {
	font: inherit;
	color: var(--ink);
	padding: 12px 12px;
	border-radius: 14px;
	border: 1px solid rgba(23, 32, 42, 0.14);
	background: rgba(255, 255, 255, 0.7);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
	transition:
		border-color 0.14s ease,
		background 0.14s ease,
		box-shadow 0.14s ease;
}

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

input:focus,
textarea:focus {
	outline: none;
	border-color: rgba(60, 137, 182, 0.5);
	background: rgba(255, 255, 255, 0.9);
	box-shadow:
		0 0 0 4px rgba(60, 137, 182, 0.14),
		inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.form-actions {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 2px;
}

.footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: 14px;
	padding: 0 2px;
}

.link {
	text-decoration: none;
	color: var(--muted);
	border-bottom: 1px solid rgba(23, 32, 42, 0.18);
	padding-bottom: 1px;
}

.link:hover {
	color: var(--ink);
	border-bottom-color: rgba(23, 32, 42, 0.32);
}

@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 980px) {
	.top-inner {
		grid-template-columns: 1fr auto;
	}

	.nav {
		display: none;
	}

	.hero-grid {
		grid-template-columns: 1fr;
	}

	.hero-badges {
		grid-template-columns: 1fr;
	}

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

	.section-split .split {
		grid-template-columns: 1fr;
	}

	.steps {
		grid-template-columns: 1fr;
	}

	.details {
		grid-template-columns: 1fr;
	}

	.footer-card {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 520px) {
	.cards {
		grid-template-columns: 1fr;
	}

	.form {
		grid-template-columns: 1fr;
	}

	.dl-row {
		grid-template-columns: 1fr;
	}

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

@media (prefers-reduced-motion: reduce) {
	.hero-copy,
	.hero-card {
		animation: none;
	}

	.card,
	.btn,
	.nav a {
		transition: none;
	}
}
