/* Open Sans (SIL Open Font License, see fonts/open-sans/OFL.txt), self-hosted
   so no visitor data goes to Google. Variable font: one file covers weights 300-700. */
@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("fonts/open-sans/OpenSans-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("fonts/open-sans/OpenSans-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--brand: #0088cc;
	--brand-dark: #006699;
	--brand-tint: #e8f4fb;
	--text: #1f2a33;
	--muted: #5b6b78;
	--line: #dde5eb;
	--bg: #ffffff;
	--bg-soft: #f5f8fa;
	--radius: 10px;
	--max: 1000px;
	--gutter: 20px;
	--header-h: 68px;
	--font: "Open Sans", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
}

main {
	flex: 1;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

h1, h2, h3 {
	font-weight: 300;
	line-height: 1.2;
	color: var(--brand);
	margin: 0 0 .5em;
}

h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h3 { font-size: 1.35rem; font-weight: 400; }

p { margin: 0 0 1em; }

ul {
	margin: 0 0 1em;
	padding-left: 1.25em;
}

li { margin-bottom: .25em; }

a {
	color: var(--brand);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

a:hover { color: var(--brand-dark); }

:focus-visible {
	outline: 3px solid var(--brand);
	outline-offset: 2px;
	border-radius: 4px;
}

.container {
	width: 100%;
	max-width: calc(var(--max) + 2 * var(--gutter));
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--brand);
	color: #fff;
	padding: 8px 14px;
	z-index: 100;
}

.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header / navigation ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, .95);
	backdrop-filter: saturate(180%) blur(8px);
	-webkit-backdrop-filter: saturate(180%) blur(8px);
	border-bottom: 1px solid var(--line);
}

.site-header .container {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: var(--header-h);
}

.logo {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	margin-right: auto;
}

.logo img {
	width: clamp(320px, 36vw, 400px);
}

.logo span {
	font-size: .75rem;
	letter-spacing: .04em;
	color: var(--muted);
	margin-top: 2px;
}

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #fff;
	color: var(--text);
	cursor: pointer;
}

.nav-toggle svg { width: 22px; height: 22px; }

.site-nav {
	display: flex;
	align-items: center;
	gap: 8px;
}

.site-nav ul {
	display: flex;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav li { margin: 0; }

.site-nav a {
	display: block;
	padding: 8px 14px;
	border-radius: 8px;
	color: var(--text);
	text-decoration: none;
	font-size: 1rem;
}

.site-nav a:hover { background: var(--bg-soft); color: var(--brand); }

.site-nav a[aria-current="page"] {
	background: var(--brand);
	color: #fff;
}

.lang-switch {
	display: flex;
	border: 1px solid var(--line);
	border-radius: 8px;
	overflow: hidden;
	margin-left: 8px;
}

.lang-switch button {
	font: inherit;
	font-size: .875rem;
	padding: 6px 10px;
	min-width: 40px;
	border: 0;
	background: #fff;
	color: var(--muted);
	cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
	background: var(--brand-tint);
	color: var(--brand-dark);
	font-weight: 600;
}

/* Collapse the menu earlier than the content grid, so the bigger logo and the menu never collide */
@media (max-width: 980px) {
	:root { --header-h: 64px; }

	/* Leave room for the menu button, down to 320px wide screens */
	.logo img { width: clamp(200px, 64vw, 320px); }

	.nav-toggle { display: inline-flex; }

	.site-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding: 12px var(--gutter) 20px;
		background: #fff;
		border-bottom: 1px solid var(--line);
		box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
	}

	.site-nav.open { display: flex; }

	.site-nav ul { flex-direction: column; }

	.site-nav a {
		padding: 12px 14px;
		font-size: 1.0625rem;
	}

	.lang-switch {
		margin-left: 0;
		align-self: flex-start;
	}

	.lang-switch button { padding: 10px 16px; }
}

/* ---------- Hero image / carousel ---------- */

.hero {
	position: relative;
	margin-top: 24px;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--bg-soft);
}

.hero img {
	width: 100%;
	aspect-ratio: 940 / 350;
	object-fit: cover;
}

.slide {
	display: none;
}

.slide.active {
	display: block;
	animation: fade .8s ease;
}

@keyframes fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

.slide-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 16px 20px 18px;
	color: #fff;
	background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, .45) 70%, transparent);
}

.slide-caption h2 {
	color: #fff;
	font-size: 1.3rem;
	font-weight: 400;
	margin: 0 0 4px;
}

.slide-caption p {
	margin: 0;
	font-size: 1.05rem;
}

.carousel-dots {
	position: absolute;
	right: 16px;
	top: 14px;
	display: flex;
	gap: 6px;
}

.carousel-dots button {
	width: 12px;
	height: 12px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	box-shadow: 0 0 4px rgba(0, 0, 0, .4);
}

.carousel-dots button[aria-current="true"] { background: #fff; }

@media (max-width: 760px) {
	.hero { margin-top: 16px; }

	.hero img { aspect-ratio: 16 / 9; }

	/* On phones the caption sits under the photo instead of covering it */
	.slide-caption {
		position: static;
		background: var(--brand);
		padding: 12px 16px 14px;
	}

	.slide-caption h2 { font-size: 1.15rem; }
	.slide-caption p { font-size: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
	.slide.active { animation: none; }
}

/* ---------- Content ---------- */

.section {
	padding: 36px 0 8px;
}

.lead {
	font-size: 1.2rem;
	color: var(--muted);
	max-width: 46em;
}

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

@media (max-width: 760px) {
	.grid-2 { grid-template-columns: 1fr; gap: 16px; }
	.section { padding-top: 28px; }
}

.card {
	display: flex;
	flex-direction: column;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
}

.card > :last-child { margin-bottom: 0; }

.card.soft {
	background: var(--bg-soft);
	border-color: transparent;
}

.card h3 { margin-bottom: .4em; }

.card .label {
	display: block;
	font-weight: 600;
	margin-bottom: .5em;
}

.card .actions {
	margin-top: auto;
	padding-top: 8px;
}

.btn {
	display: inline-block;
	padding: 10px 20px;
	border-radius: 8px;
	background: var(--brand);
	color: #fff;
	text-decoration: none;
	font-weight: 600;
}

.btn:hover { background: var(--brand-dark); color: #fff; }

.prose { max-width: 50em; }

/* Product screenshots */
.figure {
	margin: 40px 0 0;
	text-align: center;
}

.figure figcaption {
	font-weight: 600;
	margin-bottom: 16px;
}

.figure img {
	margin: 0 auto;
	width: 900px;
}

.product + .product {
	margin-top: 48px;
	padding-top: 40px;
	border-top: 1px solid var(--line);
}

/* Contact */
.contact-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 12px;
}

.contact-list a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 20px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	text-decoration: none;
	color: var(--text);
	font-size: 1.15rem;
}

.contact-list a:hover {
	border-color: var(--brand);
	background: var(--brand-tint);
}

.contact-list svg {
	flex: none;
	width: 24px;
	height: 24px;
	color: var(--brand);
}

@media (min-width: 761px) {
	.contact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Footer ---------- */

.site-footer {
	margin-top: 56px;
	padding: 24px 0;
	border-top: 1px solid var(--line);
	background: var(--bg-soft);
	color: var(--muted);
	font-size: .9rem;
	text-align: center;
}

.site-footer p { margin: 0; }
