/* Pylkje — info site. Same dark "darts pub" palette as the app (app.pylkje.com). */

:root {
	color-scheme: dark;
	--bg: #0d1511;
	--bg-glow: #15241b;
	--surface: #16211b;
	--surface-2: #1d2b23;
	--line: #2b3c32;
	--text: #efe7d4;
	--muted: #9aa89f;
	--accent: #e0b24f;
	--accent-ink: #1b1406;
	--red: #c8262c;
	--green: #1f7a4d;
	--cream: #efe2c2;
	--win: #4fbf7f;

	--radius: 18px;
	--max: 1160px;
	--font: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	--font-display: 'Avenir Next Condensed', 'Arial Narrow', 'Roboto Condensed', var(--font);
}

* {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 18px/1.6 var(--font);
	overflow-x: hidden;
}

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

a {
	color: inherit;
	text-underline-offset: 3px;
	text-decoration-color: color-mix(in oklab, currentColor 40%, transparent);
}

a:hover {
	color: var(--accent);
}

h1,
h2,
h3 {
	font-family: var(--font-display);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.01em;
	margin: 0 0 0.5em;
	text-wrap: balance;
}

h1 {
	font-size: clamp(2.6rem, 6.5vw, 4.6rem);
}

h2 {
	font-size: clamp(2rem, 4.5vw, 3rem);
}

h3 {
	font-size: 1.4rem;
}

p {
	margin: 0 0 1em;
	text-wrap: pretty;
}

.wrap {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 24px;
}

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

.eyebrow {
	display: inline-block;
	color: var(--accent);
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin-bottom: 14px;
}

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

.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	background: color-mix(in oklab, var(--bg) 82%, transparent);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid color-mix(in oklab, var(--line) 60%, transparent);
}

.site-header .wrap {
	display: flex;
	align-items: center;
	gap: 20px;
	height: 68px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.6rem;
}

.brand img {
	width: 32px;
	height: 32px;
}

.site-nav {
	display: flex;
	gap: 22px;
	margin-left: auto;
	align-items: center;
	font-size: 0.95rem;
}

.site-nav a {
	text-decoration: none;
	color: var(--muted);
}

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

.site-nav .lang {
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 4px 12px;
	font-weight: 600;
}

@media (max-width: 760px) {
	.site-nav .hide-sm {
		display: none;
	}
}

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 10px 22px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--surface-2);
	color: var(--text);
	font-weight: 700;
	font-size: 1rem;
	text-decoration: none;
	transition: transform 0.15s, background 0.15s, border-color 0.15s;
}

.btn:hover {
	color: var(--text);
	border-color: var(--muted);
	transform: translateY(-1px);
}

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

.btn.primary:hover {
	background: #ecc265;
	color: var(--accent-ink);
}

.btn.small {
	min-height: 38px;
	padding: 6px 16px;
	font-size: 0.9rem;
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* ---------- Hero ---------- */

.hero {
	position: relative;
	padding: 72px 0 96px;
	background:
		radial-gradient(900px 500px at 85% 10%, color-mix(in oklab, var(--green) 30%, transparent), transparent 70%),
		radial-gradient(700px 400px at 10% 0%, color-mix(in oklab, var(--accent) 12%, transparent), transparent 70%),
		linear-gradient(var(--bg-glow), var(--bg));
	overflow: hidden;
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
	gap: 48px;
	align-items: center;
}

.hero h1 em {
	font-style: normal;
	color: var(--accent);
}

.hero .lead {
	font-size: 1.2rem;
	color: color-mix(in oklab, var(--text) 85%, var(--muted));
	max-width: 34em;
}

.hero .note {
	margin-top: 16px;
	font-size: 0.9rem;
	color: var(--muted);
}

.hero-visual {
	position: relative;
}

.hero-visual .tablet {
	transform: perspective(1600px) rotateY(-8deg) rotateX(3deg);
	transform-origin: left center;
}

.hero-visual .phone {
	position: absolute;
	width: 26%;
	right: -3%;
	bottom: -16%;
}

@media (max-width: 900px) {
	.hero {
		padding-top: 48px;
	}

	.hero-grid {
		grid-template-columns: 1fr;
	}

	.hero-visual .tablet {
		transform: none;
	}

	.hero-visual .phone {
		display: none;
	}
}

/* ---------- Device frames ---------- */

.tablet,
.phone,
.browser,
.tv {
	background: #050806;
	border: 1px solid #2a332d;
	box-shadow:
		0 30px 80px -20px rgb(0 0 0 / 0.75),
		0 0 0 1px rgb(255 255 255 / 0.03) inset;
	overflow: hidden;
}

.tablet {
	border-radius: 26px;
	padding: 14px;
}

.tablet img,
.phone img {
	border-radius: 14px;
}

.phone {
	border-radius: 34px;
	padding: 10px;
}

.phone img {
	border-radius: 26px;
}

.browser {
	border-radius: 14px;
}

.browser::before {
	content: '';
	display: block;
	height: 30px;
	background:
		radial-gradient(circle at 18px 15px, #e0605a 5px, transparent 6px),
		radial-gradient(circle at 38px 15px, #e0b24f 5px, transparent 6px),
		radial-gradient(circle at 58px 15px, #4fbf7f 5px, transparent 6px),
		#121a15;
	border-bottom: 1px solid #222b25;
}

.tv {
	border-radius: 10px;
	padding: 10px 10px 26px;
	position: relative;
}

.tv::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: 9px;
	width: 8px;
	height: 8px;
	margin-left: -4px;
	border-radius: 50%;
	background: #e0605a;
	opacity: 0.6;
}

/* ---------- Sections ---------- */

section {
	padding: 96px 0;
}

.section-head {
	max-width: 720px;
	margin-bottom: 48px;
}

.section-head.center {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.section-head p {
	font-size: 1.15rem;
	color: var(--muted);
}

.alt {
	background: linear-gradient(var(--surface), var(--bg));
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

/* ---------- Proof strip ---------- */

.strip {
	padding: 28px 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	background: var(--surface);
}

.strip ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px 40px;
	font-weight: 600;
	color: var(--muted);
}

.strip li::before {
	content: '◎';
	color: var(--accent);
	margin-right: 10px;
}

/* ---------- Features ---------- */

.features {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 18px;
}

.feature {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 26px;
}

.feature .icon {
	width: 46px;
	height: 46px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	background: var(--surface-2);
	border: 1px solid var(--line);
	font-size: 1.4rem;
	margin-bottom: 16px;
}

.feature p {
	color: var(--muted);
	margin: 0;
	font-size: 1rem;
}

/* ---------- Showcase rows ---------- */

.show {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
	gap: 56px;
	align-items: center;
}

.show + .show {
	margin-top: 110px;
}

.show.flip > :first-child {
	order: 2;
}

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

.show li {
	position: relative;
	padding-left: 30px;
	margin-bottom: 10px;
	color: color-mix(in oklab, var(--text) 85%, var(--muted));
}

.show li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.5em;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: radial-gradient(circle, var(--red) 0 30%, var(--cream) 31% 55%, var(--green) 56%);
}

.duo {
	display: grid;
	grid-template-columns: 2.6fr 1fr;
	gap: 20px;
	align-items: end;
}

@media (max-width: 900px) {
	.show,
	.show.flip {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.show.flip > :first-child {
		order: 0;
	}

	.duo {
		grid-template-columns: 1fr;
	}

	.duo .phone {
		display: none;
	}
}

/* ---------- Steps ---------- */

.steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	counter-reset: step;
}

.step {
	position: relative;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 30px 26px 26px;
}

.step::before {
	counter-increment: step;
	content: counter(step);
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--accent);
	color: var(--accent-ink);
	font: 800 1.3rem var(--font-display);
	margin-bottom: 18px;
}

.step p {
	color: var(--muted);
	margin: 0;
	font-size: 1rem;
}

@media (max-width: 800px) {
	.steps {
		grid-template-columns: 1fr;
	}
}

/* ---------- Rules ---------- */

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

.rule {
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 18px 20px;
	background: color-mix(in oklab, var(--surface) 70%, transparent);
}

.rule strong {
	display: block;
	font: 800 1.9rem var(--font-display);
	color: var(--accent);
	line-height: 1.1;
}

.rule span {
	color: var(--muted);
	font-size: 0.95rem;
}

@media (max-width: 700px) {
	.rules {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ---------- FAQ ---------- */

.faq {
	max-width: 820px;
	margin: 0 auto;
}

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

.faq summary {
	cursor: pointer;
	list-style: none;
	padding: 18px 40px 18px 0;
	font-weight: 700;
	font-size: 1.1rem;
	position: relative;
}

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

.faq summary::after {
	content: '+';
	position: absolute;
	right: 4px;
	top: 12px;
	font-size: 1.6rem;
	color: var(--accent);
	transition: transform 0.2s;
}

.faq details[open] summary::after {
	transform: rotate(45deg);
}

.faq details p {
	color: var(--muted);
	padding-right: 40px;
}

/* ---------- CTA ---------- */

.cta {
	text-align: center;
	background:
		radial-gradient(600px 300px at 50% 100%, color-mix(in oklab, var(--green) 35%, transparent), transparent 70%),
		var(--bg);
}

.cta .actions {
	justify-content: center;
}

.target {
	width: 84px;
	height: 84px;
	margin: 0 auto 24px;
}

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

.site-footer {
	border-top: 1px solid var(--line);
	padding: 36px 0 48px;
	color: var(--muted);
	font-size: 0.95rem;
}

.site-footer .wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 32px;
	align-items: center;
	justify-content: space-between;
}

.site-footer nav {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.site-footer em {
	color: var(--text);
	font-style: normal;
	font-weight: 600;
}

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

	.btn {
		transition: none;
	}
}
