/* COOKIE PRO BANNER - built by js/promo_banner.js, colours from the Cookie PRO creatives. */
:root {
	--lw-promo-h: 44px;
	--lw-promo-green: #3DF5A0;
	--lw-promo-ink: #03140C;
	--lw-promo-bg: #050807;
	/* the strip on the right the chart must not run under: CTA plus the close button */
	--lw-promo-cta-zone: 184px;
}

.lw_promo,
.lw_promo * {
	box-sizing: border-box;
}
/* Sticky by default, so on a regular page (the blog) it simply takes its place above the content.
   z-index stays under the Snapdrop dialogs (10+) so an open dialog still covers it. */
.lw_promo {
	position: sticky;
	top: 0;
	z-index: 9;
	display: flex;
	align-items: center;
	flex-shrink: 0;
	align-self: stretch;
	width: 100%;
	min-height: var(--lw-promo-h);
	margin: 0;
	overflow: hidden;
	isolation: isolate;
	background: var(--lw-promo-bg);
	border-bottom: 1px solid rgba(61, 245, 160, .22);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.3;
	color: #FFFFFF;
	text-align: left;
}

/* layer 0 - neon grid */
.lw_promo_grid {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-image:
		repeating-linear-gradient(90deg, rgba(61, 245, 160, .085) 0 1px, transparent 1px 26px),
		repeating-linear-gradient(0deg, rgba(61, 245, 160, .085) 0 1px, transparent 1px 11px);
	-webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, .65) 36%, #000 66%);
	mask-image: linear-gradient(90deg, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, .65) 36%, #000 66%);
}

/* layer 1 - the candles: fixed aspect ratio, pinned to the zone before the CTA */
.lw_promo_chart {
	position: absolute;
	z-index: 1;
	top: 0;
	bottom: 0;
	right: var(--lw-promo-cta-zone);
	height: 100%;
	width: auto;
	pointer-events: none;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 32%);
	mask-image: linear-gradient(90deg, transparent 0, #000 32%);
}

/* layer 2 - scan lines */
.lw_promo_scan {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	opacity: .5;
	background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .32) 0 1px, transparent 1px 3px);
}

/* layer 3 - the scrim that keeps the copy readable over the chart */
.lw_promo_scrim {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	background: linear-gradient(90deg, rgba(5, 8, 7, .96) 0 17%, rgba(5, 8, 7, .8) 32%, rgba(5, 8, 7, .3) 48%, rgba(5, 8, 7, 0) 64%);
}

.lw_promo_link {
	position: relative;
	z-index: 4;
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 13px;
	align-self: stretch;
	padding: 6px 10px 6px 16px;
	color: inherit;
	text-decoration: none;
	opacity: 0;
	transition: opacity .2s ease;
}
.lw_promo_ready .lw_promo_link {
	opacity: 1;
}
.lw_promo_link:hover,
.lw_promo_link:focus {
	color: inherit;
	text-decoration: none;
}
.lw_promo_brand {
	flex: none;
	padding-right: 13px;
	border-right: 1px solid rgba(255, 255, 255, .12);
	font: 600 9.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #75837C;
}
.lw_promo_live {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font: 600 9.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--lw-promo-green);
}
.lw_promo_live i {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--lw-promo-green);
	box-shadow: 0 0 8px var(--lw-promo-green);
	animation: lw_promo_blink 1.6s infinite;
}
.lw_promo_text {
	min-width: 0;
	font: 600 13px/1.15 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
	letter-spacing: -.015em;
	color: #EAF6F0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-shadow: 0 1px 8px rgba(0, 0, 0, .95);
}
.lw_promo_hi {
	color: var(--lw-promo-green);
	font-weight: 700;
}
.lw_promo_spacer {
	flex: 1;
	min-width: 22px;
}
.lw_promo_cta {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 24px;
	padding: 0 11px 0 13px;
	border-radius: 999px;
	background: var(--lw-promo-green);
	color: var(--lw-promo-ink);
	font: 700 11.5px/1 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
	letter-spacing: -.01em;
	white-space: nowrap;
	box-shadow: 0 0 0 1px rgba(61, 245, 160, .5), 0 0 20px rgba(61, 245, 160, .42);
	transition: transform .18s ease, box-shadow .18s ease;
}
.lw_promo_link:hover .lw_promo_cta {
	transform: translateY(-1px);
	box-shadow: 0 0 0 1px rgba(61, 245, 160, .75), 0 0 28px rgba(61, 245, 160, .7);
}
.lw_promo_arrow {
	transition: transform .18s ease;
}
.lw_promo_link:hover .lw_promo_arrow {
	transform: translateX(3px);
}
.lw_promo_close {
	position: relative;
	z-index: 5;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0 4px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #8D9B94;
	cursor: pointer;
}
.lw_promo_close:hover,
.lw_promo_close:focus-visible {
	color: #FFFFFF;
	background: rgba(255, 255, 255, .08);
}
.lw_promo_close svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

/* The sweep is linear and exactly as long as the candle stagger (n x stagger); anything else and
   the fill runs ahead of the candles and reads as two unrelated animations. */
.lw_promo_reveal {
	transform-origin: 0 0;
	animation: lw_promo_sweep 1.05s linear both;
}
.lw_promo_candle {
	transform-origin: center bottom;
	animation: lw_promo_grow .14s cubic-bezier(.2, .8, .3, 1) both;
}
.lw_promo_spike {
	transform-origin: center bottom;
	animation: lw_promo_shoot .9s cubic-bezier(.16, 1.12, .25, 1) 1.2s both;
}
.lw_promo_cookie {
	transform-box: fill-box;
	transform-origin: 50% 100%;
	animation: lw_promo_pop .5s cubic-bezier(.2, 1.7, .4, 1) 1.85s both,
		lw_promo_bob 3.4s ease-in-out 2.45s infinite;
}
.lw_promo_halo {
	animation: lw_promo_halo 2.6s ease-in-out 1.7s infinite;
}
@keyframes lw_promo_sweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes lw_promo_grow { from { transform: scaleY(.06); opacity: 0; } to { transform: scaleY(1); } }
@keyframes lw_promo_shoot {
	0% { transform: scaleY(.03); opacity: .3; }
	62% { transform: scaleY(1.07); }
	100% { transform: scaleY(1); opacity: 1; }
}
@keyframes lw_promo_pop {
	0% { transform: translateY(8px) scale(.25); opacity: 0; }
	100% { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes lw_promo_bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.5px); } }
@keyframes lw_promo_halo { 0%, 100% { opacity: .4; } 50% { opacity: .9; } }
@keyframes lw_promo_blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

@media (prefers-reduced-motion: reduce) {
	.lw_promo_candle,
	.lw_promo_spike,
	.lw_promo_cookie,
	.lw_promo_halo,
	.lw_promo_live i {
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
	.lw_promo_reveal {
		animation: none !important;
		transform: none !important;
	}
}

/* Snapdrop home on desktop: a non-scrolling viewport with the header absolutely positioned at the
   top, so the banner is pinned instead and the whole body starts below it. A margin rather than
   padding: body already carries its own padding-top (css/style.css, .lw_mgid_on) that keeps the
   upload circle clear of the header, and that has to keep working underneath the banner. */
@media screen and (min-width: 769px) {
	html.lw_promo_on body.lw_promo_fixed {
		margin-top: var(--lw-promo-h);
	}
	body.lw_promo_fixed > .lw_promo {
		position: fixed;
		left: 0;
		right: 0;
		height: var(--lw-promo-h);
	}
	html.lw_promo_on body.lw_promo_fixed > header {
		top: var(--lw-promo-h);
	}
}

@media screen and (max-width: 1100px) {
	.lw_promo_brand,
	.lw_promo_live {
		display: none;
	}
}

/* Phones: the headline and the call to action stacked on the left, the chart behind them. */
@media screen and (max-width: 768px) {
	/* styles.css gives body overflow-x: hidden, which turns it into a scroll container of its own,
	   so the sticky banner stuck to body (which never scrolls) and left with the page. clip cuts
	   the horizontal overflow the same way without creating a scroll container. */
	html.lw_promo_on body {
		overflow-x: clip;
	}
	/* On phones body is a flex column and .main_content (css/style.css) a flex item with
	   z-index: 100, which stacks even without positioning - the upload circle scrolled over the
	   banner. Everything that must cover the banner (#about, .lw_modal) is far above this. */
	.lw_promo {
		z-index: 101;
		min-height: 60px;
		--lw-promo-cta-zone: 56px;
	}
	.lw_promo_chart {
		-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 42%);
		mask-image: linear-gradient(90deg, transparent 0, #000 42%);
	}
	.lw_promo_grid {
		-webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .45) 0%, #000 55%);
		mask-image: linear-gradient(90deg, rgba(0, 0, 0, .45) 0%, #000 55%);
	}
	.lw_promo_scrim {
		background: linear-gradient(90deg, rgba(5, 8, 7, .96) 0 34%, rgba(5, 8, 7, .72) 52%, rgba(5, 8, 7, .1) 76%, transparent 88%);
	}
	.lw_promo_link {
		flex-direction: column;
		align-items: flex-start;
		justify-content: center;
		gap: 4px;
		padding: 7px 34px 7px 13px;
	}
	.lw_promo_text {
		font-size: 13px;
		line-height: 15px;
		white-space: normal;
	}
	.lw_promo_spacer {
		display: none;
	}
	.lw_promo_cta {
		height: 22px;
		font-size: 11px;
	}
	.lw_promo_close {
		position: absolute;
		top: 2px;
		right: 0;
		width: 30px;
		height: 30px;
		margin: 0;
	}
}
/* COOKIE PRO BANNER */

/* Posilej only: body carries its own padding-top (55px) for the header, so a sticky banner starts
   below it and the page background shows above. The banner is pinned to the very top instead and
   body gets the banner's height as a margin, which adds to that padding instead of replacing it. */
html.lw_promo_on body {
	margin-top: var(--lw-promo-h);
}

html.lw_promo_on .lw_promo {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
}

@media screen and (max-width: 768px) {
	html.lw_promo_on body {
		margin-top: 60px;
	}
}
