/* Robmatic AB – site styles */

:root {
	--brand: #3a4c9a;
	--brand-strong: #2a3878;
	--brand-soft: #eef1fb;
	--accent: #c8102e;
	--logo-blue: #373abe;
	--logo-yellow: #f5f10f;
	--logo-red: #f51e30;
	--bg: #f6f7fb;
	--surface: #ffffff;
	--text: #1d2333;
	--muted: #5a6274;
	--border: #e1e5ee;
	--shadow: 0 1px 2px rgba(20, 30, 60, .05), 0 6px 20px rgba(20, 30, 60, .06);
	--radius: 14px;
	--max: 1100px;
	color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
	:root {
		--brand: #9aa9ff;
		--brand-strong: #c4ccff;
		--brand-soft: #1d2440;
		--accent: #ff6b7d;
		--bg: #0e121b;
		--surface: #161b27;
		--text: #e7e9f0;
		--muted: #a4abbd;
		--border: #283044;
		--shadow: none;
	}
}

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

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

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

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

a {
	color: var(--brand);
	text-underline-offset: .2em;
}

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

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

h1, h2, h3, h4 {
	line-height: 1.2;
	letter-spacing: -.01em;
	color: var(--text);
}

h1 {
	font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem);
	margin: 0 0 .5em;
	letter-spacing: -.02em;
}

h2 {
	font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem);
	margin: 0 0 .6em;
}

h3,
.h3 {
	font-size: 1.15rem;
	margin: 0 0 .4em;
}

p {
	margin: 0 0 1em;
}

.container {
	width: min(100% - 2rem, var(--max));
	margin-inline: auto;
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -3rem;
	z-index: 100;
	padding: .5rem 1rem;
	background: var(--surface);
	border-radius: 8px;
}

.skip-link:focus {
	top: 1rem;
}

/* Header */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--surface) 88%, transparent);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--border);
}

.site-header::before {
	content: "";
	display: block;
	height: 4px;
	background: linear-gradient(90deg, var(--logo-blue) 0 60%, var(--logo-yellow) 60% 70%, var(--logo-red) 70%);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem 1.5rem;
	flex-wrap: wrap;
	padding-block: .75rem;
}

.brand {
	display: flex;
	align-items: center;
	gap: .65rem;
	text-decoration: none;
	color: var(--text);
}

.brand-logo {
	width: 22px;
	height: auto;
}

.brand-name {
	display: block;
	font-weight: 700;
	font-size: 1.2rem;
	line-height: 1.1;
}

.brand-tagline {
	display: block;
	font-size: .8rem;
	color: var(--muted);
}

.site-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a {
	display: block;
	padding: .45rem .85rem;
	border-radius: 999px;
	color: var(--muted);
	font-weight: 500;
	text-decoration: none;
	transition: background-color .15s, color .15s;
}

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

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

@media (prefers-color-scheme: dark) {
	.site-nav a[aria-current="page"] {
		color: #0e121b;
	}
}

/* Language switch: globe + EN/SV, the current language highlighted */
.site-nav {
	margin-left: auto;
}

.lang-switch {
	display: inline-flex;
	align-items: center;
	gap: .2rem;
	padding: .2rem .25rem .2rem .55rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	color: var(--muted);
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .03em;
	text-decoration: none;
	transition: border-color .15s, color .15s;
}

.lang-switch svg {
	margin-right: .2rem;
}

.lang-switch:hover {
	border-color: var(--brand);
	color: var(--brand-strong);
}

.lang-opt {
	padding: .2rem .45rem;
	border-radius: 999px;
}

.lang-opt.is-current {
	background: var(--brand);
	color: #fff;
}

@media (prefers-color-scheme: dark) {
	.lang-opt.is-current {
		color: #0e121b;
	}
}

[id] {
	scroll-margin-top: 6rem;
}

@media (max-width: 640px) {
	.site-header {
		position: static;
	}

	[id] {
		scroll-margin-top: 1rem;
	}

	/* Logo and language switch share the first row, the menu gets the second */
	.header-inner {
		justify-content: space-between;
		row-gap: .5rem;
	}

	.site-nav {
		order: 3;
		flex-basis: 100%;
		margin-left: 0;
	}

	.brand-tagline {
		display: none;
	}

	.site-nav ul {
		justify-content: center;
	}

	.site-nav ul {
		gap: 0;
	}

	.site-nav a {
		padding: .4rem .5rem;
		font-size: .875rem;
	}
}

@media (max-width: 370px) {
	.site-nav a {
		padding-inline: .4rem;
	}
}

/* Sections */

main {
	display: block;
}

.section {
	padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}

.section + .section {
	padding-top: 0;
}

.section-head {
	max-width: 46rem;
	margin-bottom: 2rem;
}

.section-head p {
	color: var(--muted);
}

.eyebrow {
	display: inline-block;
	margin-bottom: .9rem;
	padding: .25rem .75rem;
	border-radius: 999px;
	background: var(--brand-soft);
	color: var(--brand-strong);
	font-size: .82rem;
	font-weight: 600;
	letter-spacing: .02em;
}

.lead {
	font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem);
	color: var(--muted);
	max-width: 42rem;
}

/* Hero */

.hero {
	padding-block: clamp(2.5rem, 2rem + 4vw, 4.5rem) clamp(2.5rem, 2rem + 3vw, 4rem);
	background:
		radial-gradient(60rem 30rem at 85% -10%, color-mix(in srgb, var(--logo-blue) 14%, transparent), transparent 70%),
		radial-gradient(40rem 24rem at 0% 110%, color-mix(in srgb, var(--logo-red) 8%, transparent), transparent 70%);
}

.hero h1 {
	max-width: 18ch;
}

.page-hero {
	padding-block: clamp(2.5rem, 2rem + 4vw, 4.5rem) 1rem;
}

.page-hero h1 {
	max-width: 24ch;
}

/* Buttons */

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	margin-top: 1.75rem;
}

.button {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .75rem 1.3rem;
	border-radius: 999px;
	border: 1px solid transparent;
	background: var(--brand);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	transition: transform .15s, background-color .15s;
}

.button:hover {
	background: var(--brand-strong);
	color: #fff;
	transform: translateY(-1px);
}

.button.secondary {
	background: transparent;
	border-color: var(--border);
	color: var(--text);
}

.button.secondary:hover {
	background: var(--surface);
	color: var(--text);
}

@media (prefers-color-scheme: dark) {
	.button,
	.button:hover {
		color: #0e121b;
	}
}

/* Cards */

.grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.grid-3 {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

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

.card p:last-child,
.card ul:last-child {
	margin-bottom: 0;
}

.card .icon {
	display: grid;
	place-items: center;
	width: 2.6rem;
	height: 2.6rem;
	margin-bottom: 1rem;
	border-radius: 10px;
	background: var(--brand-soft);
	color: var(--brand-strong);
}

.card .icon svg {
	width: 1.35rem;
	height: 1.35rem;
}

.card p {
	color: var(--muted);
}

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}

.tags li {
	padding: .15rem .6rem;
	border-radius: 6px;
	background: var(--bg);
	border: 1px solid var(--border);
	font-size: .8rem;
	color: var(--muted);
}

/* Feature split */

.split {
	display: grid;
	gap: 2rem;
	align-items: center;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

.split.align-top {
	align-items: start;
}

.check-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.check-list li {
	position: relative;
	padding-left: 1.8rem;
	margin-bottom: .6rem;
}

.check-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .35em;
	width: 1.1rem;
	height: 1.1rem;
	border-radius: 50%;
	background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%233a4c9a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}

figure {
	margin: 0;
}

.screenshot img {
	display: block;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	box-shadow: var(--shadow);
}

figcaption {
	margin-top: .6rem;
	font-size: .85rem;
	color: var(--muted);
}

.note {
	font-size: .9rem;
	color: var(--muted);
}

.hero-shot {
	margin-top: 2.5rem;
}

.hero-shot img,
.screenshot img {
	display: block;
	width: 100%;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	box-shadow: var(--shadow);
}

.section-head + .screenshot,
.split .screenshot {
	margin-block: 1rem;
}

.phone-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.25rem;
	max-width: 62rem;
}

.phone-row img {
	display: block;
	width: 100%;
	border-radius: 22px;
	border: 6px solid #1d2333;
	box-shadow: var(--shadow);
}

@media (max-width: 760px) {
	.phone-row {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* News */

.news-card {
	display: grid;
	gap: .25rem 1.5rem;
	grid-template-columns: auto 1fr;
	align-items: start;
}

.news-card time {
	font-weight: 600;
	color: var(--brand);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

@media (max-width: 560px) {
	.news-card {
		grid-template-columns: 1fr;
	}
}

/* Customers */

.logo-row {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.logo-row li {
	padding: .6rem 1.1rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface);
	font-weight: 600;
	color: var(--muted);
}

/* Timeline (release history) */

.timeline {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
}

.timeline::before {
	content: "";
	position: absolute;
	left: 5px;
	top: .5rem;
	bottom: .5rem;
	width: 2px;
	background: var(--border);
}

.timeline > li {
	position: relative;
	padding: 0 0 1.75rem 2rem;
}

.timeline > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .4rem;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--surface);
	border: 2px solid var(--brand);
}

.timeline > li:first-child::before {
	background: var(--brand);
}

.timeline time {
	display: block;
	font-weight: 700;
	color: var(--brand);
	font-variant-numeric: tabular-nums;
}

.timeline h3 {
	margin: .35rem 0 .15rem;
	font-size: 1rem;
}

.timeline ul {
	margin: 0 0 .4rem;
	padding-left: 1.2rem;
	color: var(--muted);
}

details.older {
	margin-top: .5rem;
}

details.older > summary {
	display: inline-block;
	cursor: pointer;
	margin-bottom: 1.5rem;
	padding: .55rem 1.1rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface);
	font-weight: 600;
	color: var(--brand);
	list-style: none;
}

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

details.older[open] > summary {
	display: none;
}

/* FAQ */

.faq {
	display: grid;
	gap: .75rem;
	max-width: 50rem;
}

.faq details {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.faq summary {
	cursor: pointer;
	padding: 1rem 1.25rem;
	font-weight: 600;
}

.faq details p {
	margin: 0;
	padding: 0 1.25rem 1.1rem;
	color: var(--muted);
}

/* Contact / CTA */

.cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: clamp(1.75rem, 1.5rem + 2vw, 2.75rem);
	border-radius: calc(var(--radius) + 4px);
	background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
	color: #fff;
}

.cta h2,
.cta p {
	color: inherit;
	margin: 0;
}

.cta p {
	opacity: .85;
	margin-top: .35rem;
}

.cta .button {
	background: #fff;
	color: var(--brand-strong);
}

.cta .button:hover {
	background: #f0f2fa;
}

@media (prefers-color-scheme: dark) {
	.cta {
		background: linear-gradient(135deg, #2a3878 0%, #1d2550 100%);
	}

	.cta .button,
	.cta .button:hover {
		color: #1d2550;
	}
}

.email-link img {
	vertical-align: middle;
}

/* Footer */

.site-footer {
	margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem);
	padding-block: 2rem;
	border-top: 1px solid var(--border);
	background: var(--surface);
	font-size: .9rem;
	color: var(--muted);
}

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

.footer-inner p {
	margin: 0;
}

.footer-inner ul {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-inner a {
	color: var(--muted);
	text-decoration: none;
}

.footer-inner a:hover {
	color: var(--brand);
	text-decoration: underline;
}

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

	* {
		transition: none !important;
	}
}

/* Enlarged screenshots */

a.zoom {
	display: block;
	cursor: zoom-in;
}

.lightbox {
	max-width: 100vw;
	max-height: 100vh;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 1rem;
	border: 0;
	background: transparent;
	cursor: zoom-out;
}

.lightbox[open] {
	display: flex;
	align-items: center;
	justify-content: center;
}

.lightbox::backdrop {
	background: rgba(10, 14, 24, .85);
}

.lightbox img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}

.lightbox-close {
	position: fixed;
	top: .75rem;
	right: .75rem;
	width: 2.75rem;
	height: 2.75rem;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .15);
	color: #fff;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

.lightbox-close:hover {
	background: rgba(255, 255, 255, .3);
}
