/* Landing pages. Tokens mirror apps/web/src/index.css; no web fonts, no framework. */
:root {
	--primary: #0f766e;
	--primary-hover: #115e59;
	--secondary: #0d9488;
	--accent: #f59e0b;
	--accent-ink: #b45309;
	--canvas: #f0fdfa;
	--surface: #fff;
	--ink: #1b2a2e;
	--ink-soft: #5d6f72;
	--muted: #e8f1f4;
	--line: #cbe7e3;
	--radius: 0.875rem;
	--shadow: 0 1px 2px rgb(19 78 74 / 0.06), 0 8px 24px -12px rgb(19 78 74 / 0.18);
	--shadow-lift: 0 2px 4px rgb(19 78 74 / 0.08), 0 18px 40px -18px rgb(19 78 74 / 0.28);
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--canvas);
	color: var(--ink);
	font:
		1rem / 1.6 ui-sans-serif,
		system-ui,
		-apple-system,
		"Segoe UI",
		Roboto,
		"Helvetica Neue",
		Arial,
		sans-serif;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
	margin: 0;
	line-height: 1.2;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

p {
	margin: 0;
}

a {
	color: var(--primary);
}

a:focus-visible,
summary:focus-visible,
video:focus-visible {
	outline: 3px solid var(--secondary);
	outline-offset: 2px;
	border-radius: 6px;
}

.wrap {
	width: 100%;
	max-width: 72rem;
	margin: 0 auto;
	padding: 0 1.25rem;
}

/* Header */
.top {
	position: sticky;
	top: 0;
	z-index: 10;
	background: rgb(255 255 255 / 0.95);
	border-bottom: 1px solid var(--line);
	backdrop-filter: blur(8px);
}

.top .wrap {
	display: flex;
	align-items: center;
	gap: 1rem;
	height: 4rem;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--ink);
	font-weight: 650;
	font-size: 1.25rem;
	text-decoration: none;
}

.mark {
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border-radius: 0.75rem;
	background: var(--primary);
	color: #fff;
	flex-shrink: 0;
}

.mark svg {
	width: 1.25rem;
	height: 1.25rem;
}

.top nav {
	margin-left: auto;
}

.langs {
	display: flex;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.langs a {
	display: block;
	padding: 0.5rem 0.625rem;
	border-radius: 0.5rem;
	color: var(--ink-soft);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	text-transform: uppercase;
}

.langs a:hover {
	background: var(--muted);
	color: var(--ink);
}

.langs a[aria-current="page"] {
	background: var(--canvas);
	color: var(--primary);
	box-shadow: inset 0 0 0 1px var(--line);
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 3rem;
	padding: 0.75rem 1.375rem;
	border-radius: 0.625rem;
	font-weight: 650;
	text-decoration: none;
	transition:
		background-color 0.15s,
		box-shadow 0.15s;
}

.btn-primary {
	background: var(--primary);
	color: #fff;
	box-shadow: var(--shadow);
}

.btn-primary:hover {
	background: var(--primary-hover);
}

.btn-ghost {
	background: var(--surface);
	color: var(--ink);
	box-shadow: inset 0 0 0 1px var(--line);
}

.btn-ghost:hover {
	background: var(--muted);
}

.top .btn {
	min-height: 2.5rem;
	padding: 0.5rem 1rem;
	font-size: 0.9375rem;
}

/* Hero */
.hero {
	padding: 3.5rem 0 4rem;
	background: linear-gradient(180deg, var(--surface) 0%, var(--canvas) 100%);
}

.hero .wrap {
	display: grid;
	gap: 2.5rem;
	align-items: center;
}

.eyebrow {
	display: inline-block;
	margin-bottom: 1rem;
	padding: 0.25rem 0.75rem;
	border-radius: 999px;
	background: #fef3c7;
	color: var(--accent-ink);
	font-size: 0.8125rem;
	font-weight: 650;
}

.hero h1 {
	font-size: clamp(2rem, 5vw, 3.25rem);
	font-weight: 750;
}

.hero .sub {
	margin-top: 1.25rem;
	max-width: 36rem;
	color: var(--ink-soft);
	font-size: 1.125rem;
}

.ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 2rem;
}

.note {
	margin-top: 1rem;
	color: var(--ink-soft);
	font-size: 0.875rem;
}

.video {
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--ink);
	box-shadow: var(--shadow-lift);
	aspect-ratio: 16 / 9;
}

.video video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Sections */
section {
	padding: 4rem 0;
}

section h2 {
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 700;
}

.lead {
	margin-top: 0.75rem;
	max-width: 42rem;
	color: var(--ink-soft);
	font-size: 1.0625rem;
}

.grid {
	display: grid;
	gap: 1rem;
	margin-top: 2rem;
	padding: 0;
	list-style: none;
}

.card {
	padding: 1.5rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
}

.card h3 {
	font-size: 1.125rem;
	font-weight: 650;
}

.card p {
	margin-top: 0.5rem;
	color: var(--ink-soft);
}

.num {
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	margin-bottom: 1rem;
	border-radius: 999px;
	background: var(--canvas);
	color: var(--primary);
	font-weight: 750;
	box-shadow: inset 0 0 0 1px var(--line);
}

.alt {
	background: var(--surface);
	border-block: 1px solid var(--line);
}

.kinds {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
	margin-top: 1.75rem;
	padding: 0;
	list-style: none;
}

.kinds li {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.625rem 1rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--canvas);
	font-weight: 600;
}

.kinds li::before {
	content: "";
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 999px;
	background: var(--secondary);
}

.feature h3 {
	display: flex;
	align-items: center;
	gap: 0.625rem;
}

.feature h3 svg {
	width: 1.5rem;
	height: 1.5rem;
	flex-shrink: 0;
	color: var(--primary);
}

.quote {
	margin-top: 1rem;
	padding: 0.75rem 1rem;
	border-left: 3px solid var(--accent);
	border-radius: 0 0.5rem 0.5rem 0;
	background: #fffbeb;
	color: var(--ink);
	font-style: italic;
}

/* FAQ */
.faq {
	max-width: 48rem;
	margin-top: 2rem;
}

.faq details {
	border-bottom: 1px solid var(--line);
}

.faq summary {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.125rem 0;
	cursor: pointer;
	font-weight: 650;
	font-size: 1.0625rem;
	list-style: none;
}

.faq summary::-webkit-details-marker {
	display: none;
}

.faq summary::after {
	content: "+";
	color: var(--primary);
	font-size: 1.5rem;
	line-height: 1;
}

.faq details[open] summary::after {
	content: "\2212";
}

.faq details p {
	padding-bottom: 1.25rem;
	color: var(--ink-soft);
}

/* Closing call */
.final {
	text-align: center;
}

.final .lead {
	margin-inline: auto;
}

.final .ctas {
	justify-content: center;
}

footer {
	padding: 2rem 0;
	border-top: 1px solid var(--line);
	color: var(--ink-soft);
	font-size: 0.875rem;
}

footer .wrap {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
}

/* Suggests the visitor's own language; never redirects. */
.lang-hint {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem 1rem;
	padding: 0.625rem 1.25rem;
	background: var(--primary);
	color: #fff;
	font-size: 0.9375rem;
}

.lang-hint a {
	color: #fff;
	font-weight: 700;
}

.lang-hint button {
	padding: 0.25rem 0.5rem;
	border: 0;
	background: none;
	color: #fff;
	font: inherit;
	cursor: pointer;
	opacity: 0.85;
}

@media (min-width: 48rem) {
	.grid-3 {
		grid-template-columns: repeat(3, 1fr);
	}

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

@media (min-width: 64rem) {
	.hero {
		padding: 5rem 0 3.5rem;
	}

	.hero .wrap {
		grid-template-columns: 1.05fr 1fr;
		gap: 3.5rem;
	}

	section {
		padding: 5rem 0;
	}
}

/* Phones: the switcher stays, the header button gives way to the hero's. */
@media (max-width: 40rem) {
	.top .btn {
		display: none;
	}

	.langs a {
		padding: 0.5rem;
	}

	.ctas .btn {
		flex: 1 1 100%;
	}
}

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

	.btn {
		transition: none;
	}
}

/* Subject page links */
.subjects {
	display: grid;
	gap: 0.75rem;
	margin-top: 1.75rem;
	padding: 0;
	list-style: none;
}

.subjects a {
	display: block;
	padding: 1rem 1.25rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	color: var(--ink);
	font-weight: 650;
	text-decoration: none;
	box-shadow: var(--shadow);
}

.subjects a::after {
	content: " \2192";
	color: var(--primary);
}

.subjects a:hover {
	box-shadow: var(--shadow-lift);
}

@media (min-width: 40rem) {
	.subjects {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 64rem) {
	.subjects {
		grid-template-columns: repeat(3, 1fr);
	}
}
