/* ============================================================
   SONYA — mode landing pages (narezka-video.html, trailer.html,
   gen-1.html) and the about block under streamer-mode.html.

   Static, crawlable content around the real apps: same monochrome
   glass and nebula backdrop as the App Library, Unbounded for
   display type, Onest for text. Cool neutrals only — no warm
   (dune/gold/sand) tones. Every class is prefixed .sl- so the block
   can sit inside an app page without touching its styles.
   ============================================================ */

.sl-page,
.sl-about {
	--sl-bg: #07080C;
	--sl-text: #F1F2F7;
	--sl-muted: rgba(226, 228, 240, 0.66);
	--sl-dim: rgba(226, 228, 240, 0.42);
	--sl-line: rgba(255, 255, 255, 0.10);
	--sl-line-hot: rgba(255, 255, 255, 0.22);
	--sl-glass: linear-gradient(165deg, rgba(255, 255, 255, 0.075) 0%, rgba(255, 255, 255, 0.03) 55%, rgba(10, 11, 18, 0.35) 100%);
	--sl-glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 24px 60px -24px rgba(0, 0, 0, 0.7);
	--sl-cta-bg: #F1F2F7;
	--sl-cta-text: #0B0C12;
	--sl-backdrop: url('/assets/apps/library-bg-dark.jpg');
	--sl-veil: linear-gradient(180deg, rgba(7, 8, 12, 0.55) 0%, rgba(7, 8, 12, 0.82) 45%, rgba(7, 8, 12, 0.96) 100%);
	--sl-display: 'Unbounded', system-ui, sans-serif;
	--sl-body: 'Onest', 'Inter', system-ui, -apple-system, sans-serif;
}

[data-theme="light"] .sl-page,
[data-theme="light"] .sl-about {
	--sl-bg: #F3F4F8;
	--sl-text: #12131A;
	--sl-muted: rgba(18, 19, 26, 0.68);
	--sl-dim: rgba(18, 19, 26, 0.46);
	--sl-line: rgba(18, 19, 26, 0.10);
	--sl-line-hot: rgba(18, 19, 26, 0.22);
	--sl-glass: linear-gradient(165deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.56) 100%);
	--sl-glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 20px 50px -26px rgba(30, 34, 56, 0.28);
	--sl-cta-bg: #12131A;
	--sl-cta-text: #F3F4F8;
	--sl-backdrop: url('/assets/apps/library-bg-light.jpg');
	--sl-veil: linear-gradient(180deg, rgba(243, 244, 248, 0.5) 0%, rgba(243, 244, 248, 0.84) 45%, rgba(243, 244, 248, 0.97) 100%);
}

/* ── Page shell ─────────────────────────────────────────────── */
html:has(.sl-page) { background: var(--sl-bg, #07080C); }
.sl-page {
	margin: 0;
	min-height: 100vh;
	background: var(--sl-bg);
	color: var(--sl-text);
	font-family: var(--sl-body);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
.sl-page *, .sl-page *::before, .sl-page *::after,
.sl-about *, .sl-about *::before, .sl-about *::after { box-sizing: border-box; }

.sl-backdrop {
	position: fixed;
	inset: 0;
	z-index: 0;
	background: var(--sl-veil), var(--sl-backdrop) center top / cover no-repeat;
	pointer-events: none;
}
.sl-wrap {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ── Header ─────────────────────────────────────────────────── */
.sl-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 0;
}
.sl-logo {
	font-family: var(--sl-display);
	font-weight: 300;
	font-size: 15px;
	letter-spacing: 0.32em;
	color: var(--sl-text);
	text-decoration: none;
}
.sl-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	justify-content: flex-end;
}
.sl-nav a {
	padding: 8px 14px;
	border-radius: 999px;
	color: var(--sl-muted);
	font-size: 13.5px;
	text-decoration: none;
	transition: color 0.2s, background 0.2s;
}
.sl-nav a:hover { color: var(--sl-text); background: rgba(127, 127, 140, 0.12); }
.sl-nav a[aria-current="page"] { color: var(--sl-text); box-shadow: inset 0 0 0 1px var(--sl-line-hot); }

/* ── Hero ───────────────────────────────────────────────────── */
.sl-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 220px;
	gap: 48px;
	align-items: center;
	padding: 64px 0 56px;
}
.sl-eyebrow {
	display: inline-block;
	margin-bottom: 18px;
	font-family: var(--sl-display);
	font-weight: 300;
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--sl-dim);
}
.sl-h1 {
	margin: 0 0 22px;
	font-family: var(--sl-display);
	font-weight: 300;
	font-size: clamp(30px, 5vw, 52px);
	line-height: 1.12;
	letter-spacing: -0.01em;
	text-wrap: balance;
}
.sl-lead {
	margin: 0 0 32px;
	max-width: 620px;
	font-size: 18px;
	color: var(--sl-muted);
}
.sl-hero-icon {
	width: 220px;
	height: 220px;
	border-radius: 48px;
	box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}
.sl-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.sl-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 15px 26px;
	border-radius: 999px;
	font-family: var(--sl-body);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	transition: transform 0.16s ease-out, background 0.2s, box-shadow 0.2s;
}
.sl-btn:active { transform: scale(0.97); }
.sl-btn--primary { background: var(--sl-cta-bg); color: var(--sl-cta-text); }
.sl-btn--primary:hover { box-shadow: 0 10px 30px -10px rgba(127, 127, 150, 0.6); }
.sl-btn--ghost { color: var(--sl-text); box-shadow: inset 0 0 0 1px var(--sl-line-hot); }
.sl-btn--ghost:hover { background: rgba(127, 127, 140, 0.12); }

/* ── Sections ───────────────────────────────────────────────── */
.sl-section { padding: 40px 0; }
.sl-h2 {
	margin: 0 0 14px;
	font-family: var(--sl-display);
	font-weight: 300;
	font-size: clamp(22px, 3vw, 30px);
	line-height: 1.25;
}
.sl-section > p,
.sl-text p { max-width: 760px; margin: 0 0 14px; color: var(--sl-muted); }
.sl-text strong { color: var(--sl-text); font-weight: 500; }
.sl-text a:not(.sl-card):not(.sl-btn) {
	color: var(--sl-text);
	text-decoration: underline;
	text-decoration-color: var(--sl-line-hot);
	text-underline-offset: 3px;
}
.sl-text a:not(.sl-card):not(.sl-btn):hover { text-decoration-color: currentColor; }

.sl-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 14px;
	margin-top: 24px;
}
.sl-card {
	padding: 22px 22px 20px;
	border-radius: 22px;
	background: var(--sl-glass);
	box-shadow: var(--sl-glass-shadow);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}
.sl-card h3 {
	margin: 0 0 8px;
	font-family: var(--sl-body);
	font-size: 16.5px;
	font-weight: 600;
	color: var(--sl-text);
}
.sl-card p { margin: 0; font-size: 14.5px; color: var(--sl-muted); }
.sl-num {
	display: block;
	margin-bottom: 14px;
	font-family: var(--sl-display);
	font-weight: 300;
	font-size: 13px;
	letter-spacing: 0.12em;
	color: var(--sl-dim);
}

.sl-list { margin: 18px 0 0; padding: 0; list-style: none; max-width: 760px; }
.sl-list li {
	position: relative;
	padding: 12px 0 12px 22px;
	border-top: 1px solid var(--sl-line);
	color: var(--sl-muted);
}
.sl-list li::before {
	content: '';
	position: absolute;
	left: 2px;
	top: 23px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--sl-dim);
}
.sl-list strong { color: var(--sl-text); font-weight: 500; }

/* ── FAQ ────────────────────────────────────────────────────── */
.sl-faq { max-width: 820px; margin-top: 18px; }
.sl-faq details { border-top: 1px solid var(--sl-line); }
.sl-faq details:last-child { border-bottom: 1px solid var(--sl-line); }
.sl-faq summary {
	cursor: pointer;
	list-style: none;
	padding: 18px 32px 18px 0;
	position: relative;
	font-weight: 500;
	color: var(--sl-text);
}
.sl-faq summary::-webkit-details-marker { display: none; }
.sl-faq summary::after {
	content: '+';
	position: absolute;
	right: 4px;
	top: 14px;
	font-size: 22px;
	font-weight: 300;
	color: var(--sl-dim);
	transition: transform 0.2s ease-out;
}
.sl-faq details[open] summary::after { transform: rotate(45deg); }
.sl-faq details p { margin: 0 0 18px; color: var(--sl-muted); max-width: 720px; }

/* ── Related modes ──────────────────────────────────────────── */
.sl-related a.sl-card {
	display: flex;
	gap: 16px;
	align-items: center;
	color: inherit;
	text-decoration: none;
	transition: transform 0.2s ease-out, box-shadow 0.2s;
}
.sl-related a.sl-card:hover { transform: translateY(-2px); box-shadow: var(--sl-glass-shadow), inset 0 0 0 1px var(--sl-line-hot); }
.sl-related img { width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0; }

/* ── CTA band + footer ──────────────────────────────────────── */
.sl-band {
	margin: 40px 0 24px;
	padding: 40px 32px;
	border-radius: 28px;
	background: var(--sl-glass);
	box-shadow: var(--sl-glass-shadow);
	text-align: center;
}
.sl-band .sl-h2 { margin-bottom: 10px; }
.sl-band p { margin: 0 auto 24px; max-width: 560px; color: var(--sl-muted); }
.sl-band .sl-actions { justify-content: center; }

.sl-footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 24px;
	padding: 28px 0 40px;
	border-top: 1px solid var(--sl-line);
	font-size: 13px;
	color: var(--sl-dim);
}
.sl-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.sl-footer a { color: var(--sl-dim); text-decoration: none; }
.sl-footer a:hover { color: var(--sl-text); }

/* ── About block inside an app page (streamer-mode.html) ────── */
.sl-about {
	position: relative;
	z-index: 1;
	max-width: 900px;
	margin: 0 auto;
	padding: 8px 24px 96px;
	color: var(--sl-text);
	font-family: var(--sl-body);
	line-height: 1.65;
}
.sl-about .sl-h1 { font-size: clamp(26px, 4vw, 40px); }
.sl-about .sl-section { padding: 28px 0; }

@media (max-width: 760px) {
	.sl-wrap { padding: 0 16px; }
	.sl-header { flex-direction: column; align-items: flex-start; padding: 18px 0 8px; }
	.sl-nav { justify-content: flex-start; margin-left: -14px; }
	.sl-hero { grid-template-columns: 1fr; gap: 28px; padding: 32px 0 36px; }
	.sl-hero > picture { order: -1; line-height: 0; }
	.sl-hero-icon { width: 88px; height: 88px; border-radius: 22px; }
	.sl-lead { font-size: 16.5px; }
	.sl-btn { flex: 1 1 auto; justify-content: center; }
	.sl-band { padding: 30px 18px; }
	.sl-about { padding: 0 16px 80px; }
}

@media (prefers-reduced-motion: reduce) {
	.sl-btn, .sl-related a.sl-card, .sl-faq summary::after { transition: none; }
}
