/* Skald - platform home page. Moved from the inline style block of home.php, rules unchanged. */
:root {
	--accent:      #2a6ebb;
	--accent-dark: #1f539a;
	--text:        #1a1a1a;
	--muted:       #555;
	--border:      #dde1e7;
	--bg:          #ffffff;
	--bg-alt:      #f4f5f7;
	--font:        system-ui, -apple-system, sans-serif;
}

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

body {
	font-family: var(--font);
	color: var(--text);
	background: var(--bg);
	line-height: 1.6;
}

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

.wrap {
	max-width: 900px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* ── Site nav ── */
.site-nav {
	border-bottom: 1px solid var(--border);
	padding: 1rem 0;
}

.site-nav .wrap {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.site-nav .logo {
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--accent);
	letter-spacing: -0.02em;
}

.site-nav .nav-links a {
	margin-left: 1.25rem;
	color: var(--muted);
	font-size: 0.95rem;
}

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

.site-nav .nav-links .btn-signin {
	display: inline-block;
	padding: 0.4rem 1rem;
	border: 1px solid var(--border);
	border-radius: 4px;
	color: var(--text);
	font-size: 0.9rem;
}

.site-nav .nav-links .btn-signin:hover {
	border-color: var(--accent);
	color: var(--accent);
}

/* ── Hero ── */
.hero {
	padding: 5rem 0 4rem;
	text-align: center;
}

.hero h1 {
	font-size: clamp(2rem, 5vw, 3.2rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.15;
	color: var(--text);
}

.hero h1 span { color: var(--accent); }

.hero p {
	margin-top: 1.25rem;
	font-size: 1.15rem;
	color: var(--muted);
	max-width: 520px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.7;
}

.hero-cta {
	margin-top: 2.25rem;
	display: flex;
	gap: 0.75rem;
	justify-content: center;
	flex-wrap: wrap;
}

.btn {
	display: inline-block;
	padding: 0.65rem 1.5rem;
	border-radius: 5px;
	font-size: 0.95rem;
	font-weight: 500;
	cursor: pointer;
	transition: opacity 0.15s;
}

.btn-primary {
	background: var(--accent);
	color: #fff;
	border: 1px solid var(--accent);
}

.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.btn-secondary {
	background: var(--bg);
	color: var(--text);
	border: 1px solid var(--border);
}

.btn-secondary:hover { border-color: #aaa; }

/* ── How it works ── */
.steps {
	background: var(--bg-alt);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	padding: 3.5rem 0;
}

.steps h2 {
	text-align: center;
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin-bottom: 2.5rem;
}

.steps-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

.step {
	text-align: center;
}

.step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	background: var(--accent);
	color: #fff;
	border-radius: 50%;
	font-size: 0.9rem;
	font-weight: 700;
	margin-bottom: 0.75rem;
}

.step h3 {
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 0.4rem;
}

.step p {
	font-size: 0.9rem;
	color: var(--muted);
	line-height: 1.6;
}

/* ── Features ── */
.features {
	padding: 4rem 0;
}

.features h2 {
	text-align: center;
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin-bottom: 2.5rem;
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.feature {
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 1.5rem;
}

.feature-icon {
	font-size: 1.5rem;
	margin-bottom: 0.75rem;
	display: block;
}

.feature h3 {
	font-size: 0.95rem;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.feature p {
	font-size: 0.875rem;
	color: var(--muted);
	line-height: 1.6;
}

/* ── Bottom CTA ── */
.bottom-cta {
	background: var(--accent);
	color: #fff;
	text-align: center;
	padding: 3.5rem 1.5rem;
}

.bottom-cta h2 {
	font-size: 1.75rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin-bottom: 0.75rem;
}

.bottom-cta p {
	font-size: 1rem;
	opacity: 0.85;
	margin-bottom: 1.75rem;
}

.bottom-cta .btn-white {
	background: #fff;
	color: var(--accent);
	border: 1px solid #fff;
	font-weight: 600;
}

.bottom-cta .btn-white:hover { opacity: 0.9; }

/* ── Footer ── */
.site-footer {
	border-top: 1px solid var(--border);
	padding: 1.5rem 0;
	text-align: center;
	font-size: 0.85rem;
	color: var(--muted);
}

.site-footer .footer-link { color: inherit; text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 640px) {
	.steps-grid,
	.features-grid {
		grid-template-columns: 1fr;
	}

	.hero { padding: 3rem 0 2.5rem; }
}
