/*
Nexuvoice screen drawn inside the black LCD of voip-hosting.jpg.
The plate is the painted photograph. The screen sits in that plate,
on the glass. Navy field, gold marks, white type. No second phone
and no entrance: the hero picture must not glide in after this
screen has been measured.
*/

body.home .tp-hero-bg,
body.home .swiper-slide .tp-hero-bg {
	transition: none !important;
	animation: none !important;
}

.nv-phone-screen-plate {
	position: absolute;
	z-index: 2;
	margin: 0;
	padding: 0;
	overflow: visible;
	pointer-events: none;
	background: none;
	border: 0;
	transform: none;
	transition: none !important;
	animation: none !important;
}

.nv-phone-screen-plate.is-off {
	display: none !important;
}

.nv-phone-screen {
	position: absolute;
	left: 0;
	top: 0;
	z-index: 2;
	transition: none !important;
	box-sizing: border-box;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	gap: 0.12em;
	margin: 0;
	padding: 0.28em 0.38em 0.26em;
	overflow: hidden;
	color: #f4f7fb;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 26%),
		#07122f;
	box-shadow: inset 0 0 0 1px rgba(229, 193, 12, 0.28);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 7px;
	font-weight: 700;
	font-style: normal;
	line-height: 1;
	letter-spacing: 0;
	text-align: left;
	text-transform: none;
	pointer-events: none;
	user-select: none;
	transform-origin: 0 0;
}

.nv-phone-screen.is-off {
	display: none !important;
}

.nv-phone-screen,
.nv-phone-screen * {
	box-sizing: border-box;
	font-family: Arial, Helvetica, sans-serif !important;
	font-style: normal;
	font-variant-ligatures: none;
	letter-spacing: 0;
	text-transform: none;
	line-height: 1;
}

.nv-phone-screen__top {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	min-width: 0;
	min-height: 0.9em;
}

.nv-phone-screen__clock {
	color: #e5c10c;
	font-size: 0.92em;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.nv-phone-screen__body {
	display: grid;
	grid-template-columns: minmax(0, 0.92fr) minmax(0, 0.62fr) minmax(0, 1.2fr);
	align-items: stretch;
	gap: 0.28em;
	min-width: 0;
	min-height: 0;
}

.nv-phone-screen__keys {
	display: flex;
	flex-direction: column;
	justify-content: space-evenly;
	gap: 0.22em;
	margin: 0;
	padding: 0;
	min-width: 0;
	min-height: 0;
	list-style: none;
}

.nv-phone-screen__keys li {
	display: flex;
	align-items: center;
	gap: 0.28em;
	min-width: 0;
	max-width: 100%;
	height: 1.28em;
	margin: 0;
	padding: 0 0.34em;
	overflow: hidden;
	color: #ffffff;
	background: rgba(229, 193, 12, 0.14);
	border: 1px solid rgba(229, 193, 12, 0.82);
	border-radius: 0.28em;
	font-size: 0.86em;
	font-weight: 700;
	white-space: nowrap;
}

.nv-phone-screen__keys li::before {
	content: "";
	flex: 0 0 auto;
	width: 0.42em;
	height: 0.42em;
	border-radius: 50%;
	background: currentColor;
}

.nv-phone-screen__keys li.is-live {
	color: #020626;
	background: #e5c10c;
	border-color: #f3dc6a;
	animation: nv-phone-screen-live 4.8s ease-in-out infinite;
}

.nv-phone-screen.is-tight .is-extra {
	display: none;
}

.nv-phone-screen__center {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 0;
	border-radius: 0.4em;
	background: radial-gradient(circle at 50% 45%, #16306a 0%, rgba(7, 18, 47, 0) 72%);
}

.nv-phone-screen__signal {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 0.16em;
	width: 1.7em;
	height: 1.55em;
}

.nv-phone-screen__signal span {
	display: block;
	width: 0.26em;
	border-radius: 0.06em;
	background: #e5c10c;
}

.nv-phone-screen__signal span:nth-child(1) {
	height: 38%;
}

.nv-phone-screen__signal span:nth-child(2) {
	height: 58%;
}

.nv-phone-screen__signal span:nth-child(3) {
	height: 78%;
}

.nv-phone-screen__signal span:nth-child(4) {
	height: 100%;
	opacity: 0.45;
}

.nv-phone-screen__dock {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.2em;
	margin: 0;
	padding: 0.08em 0 0;
	min-width: 0;
	list-style: none;
}

.nv-phone-screen__dock li {
	display: flex;
	flex: 0 1 auto;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	gap: 0.1em;
	min-width: 0;
	margin: 0;
	color: #f7f4ea;
	font-size: 1em;
	font-weight: 700;
	text-align: center;
}

.nv-phone-screen__dock svg {
	display: block;
	width: 1.05em;
	height: 1.05em;
	max-width: none;
	flex: 0 0 auto;
}

.nv-phone-screen__dock span {
	display: block;
	max-width: 100%;
	overflow: hidden;
	font-size: 0.72em;
	font-weight: 700;
	white-space: nowrap;
	text-overflow: clip;
}

@keyframes nv-phone-screen-live {
	0%,
	100% {
		box-shadow: 0 0 0 0 rgba(229, 193, 12, 0.15);
	}

	50% {
		box-shadow: 0 0 0.4em 0 rgba(229, 193, 12, 0.55);
	}
}

@media (prefers-reduced-motion: reduce) {
	.nv-phone-screen,
	.nv-phone-screen * {
		animation: none !important;
		transition: none !important;
	}
}
