/* leetos.gg – styles from the LeetOS brand book (Obsidian, Marmor, Ichor, Bronze). */

@font-face {
	font-family: Anybody;
	src: url('/assets/fonts/anybody.woff2') format('woff2');
	font-weight: 100 900;
	font-stretch: 50% 150%;
	font-display: swap;
}
@font-face {
	font-family: Anybody;
	src: url('/assets/fonts/anybody-italic.woff2') format('woff2');
	font-weight: 100 900;
	font-stretch: 50% 150%;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: 'Schibsted Grotesk';
	src: url('/assets/fonts/schibsted.woff2') format('woff2');
	font-weight: 400 900;
	font-display: swap;
}
@font-face {
	font-family: 'Spline Sans Mono';
	src: url('/assets/fonts/spline-mono.woff2') format('woff2');
	font-weight: 300 700;
	font-display: swap;
}

:root {
	--bg: #0b0b0e;
	--surface: #141418;
	--surface-2: #1d1d23;
	--line: #2a2a31;
	--ink: #f2efe9;
	--muted: #9a968e;
	--ichor: #ff2e63;
	--on-ichor: #0b0b0e;
	--bronze: #c8963e;
	--display: Anybody, 'Arial Narrow', system-ui, sans-serif;
	--sans: 'Schibsted Grotesk', 'Segoe UI', system-ui, sans-serif;
	--mono: 'Spline Sans Mono', ui-monospace, Consolas, monospace;
	--radius: 4px;
	--chamfer: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
	color-scheme: dark;
}

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

html {
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	scroll-behavior: smooth;
	scroll-padding-top: 5rem;
}
body {
	margin: 0;
}
img {
	display: block;
	max-width: 100%;
	height: auto;
}
a {
	color: inherit;
}
h1,
h2,
h3,
p {
	margin: 0;
}
::selection {
	background: var(--ichor);
	color: var(--on-ichor);
}
:focus-visible {
	outline: 2px solid var(--ichor);
	outline-offset: 3px;
}

.skip {
	position: absolute;
	left: -999px;
	top: 0.5rem;
	background: var(--ichor);
	color: var(--on-ichor);
	padding: 0.5rem 1rem;
	z-index: 100;
}
.skip:focus {
	left: 0.5rem;
}

.wrap {
	max-width: 76rem;
	margin: 0 auto;
	padding: 0 1.5rem;
}
.narrow-wrap {
	max-width: 48rem;
}
.muted {
	color: var(--muted);
}
.ichor-text {
	color: var(--ichor);
}

/* ── Type ─────────────────────────────────────────── */

.kicker {
	font-family: var(--mono);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}
.kicker-bar {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--ink);
}
.kicker-bar::before {
	content: '';
	width: 2rem;
	height: 2px;
	background: var(--ichor);
}
.display {
	font-family: var(--display);
	font-weight: 900;
	font-stretch: 62%;
	text-transform: uppercase;
	line-height: 0.86;
	font-size: clamp(3.5rem, 11vw, 8.5rem);
	letter-spacing: -0.01em;
}
.display span {
	display: block;
}
.title {
	font-family: var(--display);
	font-weight: 800;
	font-stretch: 85%;
	text-transform: uppercase;
	line-height: 1.05;
	font-size: clamp(2rem, 4.5vw, 2.75rem);
	border-left: 3px solid var(--ichor);
	padding-left: 1rem;
	margin-bottom: 1.25rem;
}
.title-sm {
	font-family: var(--display);
	font-weight: 800;
	font-stretch: 85%;
	text-transform: uppercase;
	font-size: 1.75rem;
	line-height: 1.1;
	margin: 0.75rem 0;
}
.score {
	font-family: var(--display);
	font-weight: 900;
	font-style: italic;
	font-stretch: 135%;
	line-height: 0.95;
}
.lead {
	font-size: 1.15rem;
	color: var(--muted);
	max-width: 38rem;
}
.lead.narrow {
	margin-bottom: 2.5rem;
}
h3 {
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 0.35rem 0 0.5rem;
}
.note {
	margin-top: 1.5rem;
	font-size: 0.875rem;
}

/* ── Buttons ──────────────────────────────────────── */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.7rem 1.25rem;
	background: var(--ichor);
	color: var(--on-ichor);
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none;
	border: 1px solid var(--ichor);
	border-radius: var(--radius);
	transition:
		transform 0.15s,
		background 0.15s;
}
.btn:hover {
	transform: translateY(-1px);
	background: color-mix(in oklab, var(--ichor) 88%, white);
}
.btn-lg {
	padding: 0.95rem 1.6rem;
	font-size: 1.05rem;
	clip-path: var(--chamfer);
}
.btn-sm {
	padding: 0.45rem 0.9rem;
	font-size: 0.875rem;
}
.btn-ghost {
	background: transparent;
	color: var(--ink);
	border-color: var(--line);
}
.btn-ghost:hover {
	background: var(--surface-2);
	border-color: var(--muted);
}

/* ── Header ───────────────────────────────────────── */

.top {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in oklab, var(--bg) 82%, transparent);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--line);
}
.top-in {
	display: flex;
	align-items: center;
	gap: 2rem;
	height: 4rem;
}
.logo {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--ink);
	text-decoration: none;
}
.logo svg {
	transition: transform 0.2s;
}
.logo:hover svg {
	transform: rotate(-6deg);
}
.top nav {
	display: flex;
	gap: 1.5rem;
	margin-left: auto;
}
.top nav a,
.lang {
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--muted);
}
.top nav a:hover,
.lang:hover {
	color: var(--ink);
}
.lang {
	font-family: var(--mono);
	letter-spacing: 0.1em;
}
@media (max-width: 52rem) {
	.top nav {
		display: none;
	}
	.lang {
		margin-left: auto;
	}
}

/* ── Hero (stage light over a hall with a grid floor) ─ */

.stage {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}
.stage::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -2;
	background:
		radial-gradient(
			38rem 30rem at 18% -6rem,
			color-mix(in oklab, var(--ichor) 22%, transparent),
			transparent 70%
		),
		radial-gradient(
			34rem 26rem at 88% 4rem,
			color-mix(in oklab, var(--ichor) 14%, transparent),
			transparent 70%
		);
}
.stage::after {
	content: '';
	position: absolute;
	left: -20%;
	right: -20%;
	bottom: 0;
	height: 55%;
	z-index: -1;
	background:
		linear-gradient(var(--bg), transparent 40%),
		repeating-linear-gradient(
			90deg,
			color-mix(in oklab, var(--ichor) 16%, transparent) 0 1px,
			transparent 1px 64px
		),
		repeating-linear-gradient(
			0deg,
			color-mix(in oklab, var(--ichor) 12%, transparent) 0 1px,
			transparent 1px 64px
		);
	transform: perspective(600px) rotateX(58deg);
	transform-origin: bottom;
	mask-image: linear-gradient(transparent, black 50%);
}
.hero {
	padding: 5rem 0 3rem;
}
.hero-in {
	display: grid;
	gap: 3rem;
	align-items: center;
	grid-template-columns: 1fr;
}
@media (min-width: 64rem) {
	.hero-in {
		grid-template-columns: 1.05fr 1fr;
	}
}
.hero-copy .kicker {
	margin-bottom: 1.5rem;
}
.hero-copy .lead {
	margin: 1.75rem 0 2rem;
}
.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}
.frame {
	margin: 0;
	border: 1px solid var(--line);
	background: var(--surface);
	border-radius: var(--radius);
	overflow: hidden;
}
.hero-shot {
	transform: perspective(1400px) rotateY(-8deg) rotateX(2deg);
	box-shadow: 0 2rem 6rem -2rem color-mix(in oklab, var(--ichor) 35%, transparent);
	clip-path: var(--chamfer);
}
.facts {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1px;
	margin-top: 4rem;
	background: var(--line);
	border: 1px solid var(--line);
}
@media (min-width: 48rem) {
	.facts {
		grid-template-columns: repeat(4, 1fr);
	}
}
.facts div {
	background: var(--bg);
	padding: 1.25rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}
.facts .score {
	font-size: 2rem;
	color: var(--ink);
}

/* ── Sections ─────────────────────────────────────── */

.section {
	padding: 5.5rem 0;
}
.band {
	background: var(--surface);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}
.grid3 {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
}
.card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.5rem;
	transition: border-color 0.2s;
}
.band .card {
	background: var(--bg);
}
.card:hover {
	border-color: color-mix(in oklab, var(--ichor) 45%, var(--line));
}
.card-lg {
	padding: 2rem;
}

.steps {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 2rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}
.steps .score {
	font-size: 3.5rem;
}

.shots {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}
.shots figcaption {
	padding: 0.75rem 1rem;
	border-top: 1px solid var(--line);
}

.split {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
	align-items: start;
}
.checks {
	list-style: none;
	padding: 0;
	margin: 1.25rem 0 0;
	display: grid;
	gap: 0.6rem;
}
.checks li {
	position: relative;
	padding-left: 1.6rem;
}
.checks li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.45em;
	width: 0.7rem;
	height: 0.4rem;
	border-left: 2px solid var(--ichor);
	border-bottom: 2px solid var(--ichor);
	transform: rotate(-45deg);
}
.pay-methods {
	margin-top: 1.5rem;
	color: var(--ink);
}

/* ── Pricing ──────────────────────────────────────── */

.plans {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
	max-width: 52rem;
}
.plan {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding: 2rem;
}
.plan .price {
	font-size: 2.75rem;
	margin-top: 0.5rem;
}
.plan .checks {
	margin-bottom: 1.75rem;
	flex: 1;
}
.plan-featured {
	border-color: var(--ichor);
	clip-path: var(--chamfer);
	background:
		radial-gradient(
			28rem 14rem at 100% 0,
			color-mix(in oklab, var(--ichor) 12%, transparent),
			transparent 70%
		),
		var(--bg);
}

/* ── Install ──────────────────────────────────────── */

.code {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.25rem;
}
.code pre {
	margin: 0.5rem 0 1.25rem;
	padding: 1rem;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow-x: auto;
	font-family: var(--mono);
	font-size: 0.85rem;
	line-height: 1.6;
}
.code pre:last-child {
	margin-bottom: 0;
}
#install .muted {
	margin-bottom: 0.75rem;
}
.guides-label {
	margin-top: 1.75rem;
}
.guides {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.75rem;
}
.guides a {
	padding: 0.4rem 0.8rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-size: 0.9rem;
	text-decoration: none;
}
.guides a:hover {
	border-color: var(--ichor);
}

/* ── FAQ ──────────────────────────────────────────── */

.faq {
	border-bottom: 1px solid var(--line);
}
.faq summary {
	cursor: pointer;
	list-style: none;
	padding: 1.25rem 2rem 1.25rem 0;
	font-weight: 700;
	font-size: 1.1rem;
	position: relative;
}
.faq summary::-webkit-details-marker {
	display: none;
}
.faq summary::after {
	content: '+';
	position: absolute;
	right: 0.25rem;
	top: 1rem;
	font-family: var(--mono);
	font-size: 1.4rem;
	color: var(--ichor);
}
.faq[open] summary::after {
	content: '–';
}
.faq p {
	padding-bottom: 1.25rem;
}

/* ── Legal pages ──────────────────────────────────── */

.legal h2 {
	font-size: 1.2rem;
	margin: 2rem 0 0.5rem;
}
.legal p {
	color: var(--muted);
	margin-bottom: 0.75rem;
}
.legal mark {
	background: color-mix(in oklab, var(--bronze) 25%, transparent);
	color: var(--ink);
	padding: 0 0.2em;
}
.draft {
	color: var(--bronze);
	border: 1px solid color-mix(in oklab, var(--bronze) 50%, transparent);
	padding: 0.75rem 1rem;
	margin-bottom: 2rem;
}

/* ── Footer with meander band ─────────────────────── */

.foot {
	border-top: 1px solid var(--line);
	padding-bottom: 2rem;
}
.meander {
	height: 20px;
	background: url('/assets/brand/meander-band-ichor.svg') repeat-x left center / auto 20px;
	opacity: 0.55;
}
.foot-in {
	display: grid;
	gap: 2rem;
	grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
	padding-top: 3rem;
	padding-bottom: 2.5rem;
}
.foot-in > div {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	align-items: flex-start;
}
.foot-in a:not(.logo) {
	color: var(--muted);
	text-decoration: none;
	font-size: 0.95rem;
}
.foot-in a:not(.logo):hover {
	color: var(--ink);
}
.foot-base {
	border-top: 1px solid var(--line);
	padding-top: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	* {
		transition: none !important;
	}
	.hero-shot {
		transform: none;
	}
}

/* Fixes: accent kicker, odd last screenshot spans the row */
.kicker.ichor-text {
	color: var(--ichor);
}
.shots figure:last-child:nth-child(odd) {
	grid-column: 1 / -1;
}
@media (min-width: 72rem) {
	.shots {
		grid-template-columns: repeat(3, 1fr);
	}
	.shots figure:last-child:nth-child(odd) {
		grid-column: auto;
	}
}
.logo svg,
.logo img {
	flex-shrink: 0;
}
.facts .score {
	font-size: clamp(1.4rem, 6vw, 2rem);
	white-space: nowrap;
}
@media (max-width: 30rem) {
	.top-in {
		gap: 1rem;
	}
	.logo img {
		width: 100px;
		height: auto;
	}
	.hero {
		padding-top: 3rem;
	}
}
.split > *,
.hero-in > * {
	min-width: 0;
}
.plan .price {
	font-size: clamp(1.9rem, 9vw, 2.75rem);
}
.plans > * {
	min-width: 0;
}

/* ── Account area (PHP backend: /konto, /en/account, /download) ───────────── */
.acct {
	max-width: 46rem;
	margin: 0 auto;
	padding: 4rem 1.25rem 5rem;
}
.acct-narrow {
	max-width: 28rem;
}
.acct h1 {
	font-family: var(--display);
	font-weight: 900;
	font-size: clamp(2.2rem, 6vw, 3.4rem);
	line-height: 1;
	text-transform: uppercase;
	margin: 0 0 0.75rem;
}
.acct h2 {
	font-family: var(--display);
	font-weight: 800;
	text-transform: uppercase;
	font-size: 1.15rem;
	margin: 0 0 0.75rem;
}
.box {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.25rem;
	margin-top: 1.25rem;
}
.form {
	display: grid;
	gap: 1rem;
}
.field {
	display: grid;
	gap: 0.35rem;
	font-size: 0.9rem;
	font-weight: 600;
}
.field small {
	font-weight: 400;
	color: var(--muted);
}
.input {
	width: 100%;
	padding: 0.7rem 0.85rem;
	background: var(--surface-2);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--ink);
	font: inherit;
	font-weight: 400;
}
.input:focus {
	outline: 2px solid var(--ichor);
	outline-offset: 1px;
}
.check {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
	font-size: 0.9rem;
}
.check input {
	margin-top: 0.2rem;
	accent-color: var(--ichor);
}
.alert {
	padding: 0.8rem 1rem;
	border-radius: var(--radius);
	border: 1px solid var(--line);
	background: var(--surface-2);
	font-size: 0.92rem;
}
.alert-ok {
	border-color: #2fbf71;
}
.alert-err {
	border-color: var(--ichor);
	color: color-mix(in oklab, var(--ichor) 70%, var(--ink));
}
.row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
}
.list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.5rem;
	font-size: 0.92rem;
}
.keybox {
	width: 100%;
	font-family: var(--mono);
	font-size: 0.75rem;
	word-break: break-all;
	min-height: 4.5rem;
}
.inline-form {
	display: inline;
}
.mt {
	margin-top: 1rem;
}
