.ninja-platform {
	display: flex;
	flex-direction: column;
	padding: var(--space-s);
	border: solid 1px var(--c-light-4);
	border-radius: 12px;
	gap: 20px;
}

@media only screen and (max-width: 767px) {
	.ninja-platform {
		padding: 0;
		border: none;
	}	
}

.platform-top {
	display: flex;
	justify-content: center;
	gap: 24px;
}

.platform-top-block {
	display: flex;
	position: relative;
	width: 33%;
	background: #E1F3F4;
	border-radius: 8px;
	border: solid 1px #E1F3F4;
	line-height: 1.4;
	align-items: center;
	justify-content: center;
	padding: 43px 30px 50px 30px;
	text-decoration: none;
	transition: all .35s;
  flex-direction: column;  /* stack vertically */
  flex-wrap: nowrap;	
}

.platform-top-block:hover {
	border: solid 1px var(--c-blue-1);
}

.platform-top-block h3 {
	font-size: var(--step-1);
	color: var(--c-blue-2);
	font-weight: 480;
	line-height: 1;
	padding: 0 16px 16px 16px;
	margin-bottom: 16px;
	border-bottom: solid 2px var(--c-light-4);
}

@media only screen and (max-width: 767px) {
	.platform-top {
		flex-wrap: wrap;
		gap: 20px;		
	}
	.platform-top-block {
		width: 100%;
	}
	.platform-top-block {
		padding: 19px 20px 27px 20px;		
	}
	.platform-top-block h3 {
		border:  none;
		margin-bottom: 0;
		padding-bottom: 4px;
	}
}

.platform-top-block > span {
	font-size: var(--step--1);
	color: var(--c-blue-4);
	font-weight: 320;
	text-align: center;		
}

html[lang="en-US"] .platform-top-block > span > span {
	white-space: nowrap;	
}

.platform-top-block:hover {
	color: #0D3D5B;
	background: transparent;
}

.platform-top svg {
	width: 121px;
	height: 121px;
}

.platform-middle {
	position: relative;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;		
	border-radius: 8px;
	padding: 16px 32px;
	background: #DFF7EA;
	border: solid 1px #DFF7EA;
	align-items: center;
}

.platform-middle:hover {
	background: transparent;
	border: solid 1px var(--c-green-dark);
}

.os-icons {
	display: flex;
	justify-content: center;		
	flex-direction: row;
	gap: 12px;
	margin-right: 16px;	
}

.os-icon {
	background: #fff;
	width: 52px;
	height: 52px;
	display: flex;
	border-radius: 4px;
	align-items: center;
	justify-content: center;
}

.device-types {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;	
}

.device-types span {
	padding: 0 14px;
	line-height: 1;
	text-transform: uppercase;
	font-size: var(--step--2);
	color: var(--c-blue-4);
	font-weight: 320;
	letter-spacing: .1em;
	border-right: solid 1px var(--c-light-4);
}

@media only screen and (max-width: 1543px) {
	.device-types {
		margin-top: var(--space-xs);
	}
	.device-types span {
		margin: var(--space-3xs) 0;
	}	
}

.device-types span:last-child {
	border: none;
}

.platform-line {
	position: absolute;
	border-left: dotted 2px var(--c-blue-1) !important;
	bottom: -20px;
	height: 20px;
	width: 0;
	left: 50%;
}

.platform-features {
	background: var(--c-blue-2);
	border-radius: 8px;
	padding: var(--space-l);
	display: flex;
	flex-direction: column;
}

.platform-features .platform-features-header {
	margin-bottom: var(--space-m);
}

.platform-features h3 {
	font-size: var(--step-2);
	color: #fff;
	margin: 0;
	font-weight: 480;
	line-height: 1.2;
	letter-spacing: -.02em;
}

.platform-features-blocks {
	display: flex;
	gap: 20px;
	margin-bottom: var(--space-m);
}

.platform-features .platform-block {
	display: flex;
	position: relative;
	text-align: center;
	align-items: center;
	justify-content: center;
	border: solid 1px #DFF7EA;
	border-radius: 8px;
	color: #fff;
	padding: 24px;
	text-decoration: none;
	transition: all .35s;
	width: 25%;
	font-size: var(--step--1);
	font-weight: 320;
}

@media only screen and (max-width: 767px) {
	.platform-features-blocks {
		flex-direction: column;	
	}
	.platform-features .platform-block {
		width: 100%;	
	}
}

.platform-features .platform-block:hover {
	color: var(--c-blue-2);
	background: #DFF7EA;
}

.platform-tooltip {
	position: absolute;
	z-index: 10;
	left: calc(50% - 170px);
	bottom: 100%;
	width: 340px;
	max-width: calc(100vw - 30px);
	background: var(--c-light-2);
	box-shadow: 2px 2px 8px 0px rgba(0,0,0,.2);
	padding: 21px;
	text-align: center;
	border-radius: 8px;
	opacity: 0;
	pointer-events: none;
	transition: all .25s;
	text-transform: none;
}

.platform-tooltip.tooltip-bottom {
	bottom: auto;
	top: 100%;
}

@media only screen and (min-width: 768px) {
	.platform-block:hover .platform-tooltip, .platform-top-block:hover .platform-tooltip, .ai-link:hover .platform-tooltip {
		bottom: calc(100% + 16px);
		opacity: 1;
		pointer-events: all;
	}
}

@media only screen and (min-width: 768px) {
	.ai-link:hover .platform-tooltip {
		top: calc(100% + 16px);
		bottom: auto;
	}
}

.platform-tooltip p {
	font-size: var(--step--2);
	font-weight: 320;
	color: var(--c-blue-4);
	margin: 0;
}

.platform-tooltip::after{
  content:"";
  position:absolute;
  width:20px;
  height:20px;
  bottom: -18px;
  left: calc(50% - 12px);
  box-shadow: 8px 8px 10px 0px rgba(0,0,0,.1);
  transform: translate(50%, -50%) rotate(45deg);
  background: var(--c-light-2);
}

.platform-tooltip.tooltip-bottom::after{
	bottom: auto;
	top: 0;
	box-shadow: none;
}

/** a.platform-block:last-child .platform-tooltip {
	right: 0;
	left: auto;
}

a.platform-block:last-child .platform-tooltip::after {
	right: 135px;
	left: auto;	
} **/

.platform-tooltip:before {
	content:"";
	position: absolute;
	bottom: -30px;
	height:30px;
	width: 100%;
	left: 0;
}

.ai-link {
	position: relative;
	width: 100%;
	text-align: center;
}

.ai-link span {
	font-size: var(--step--1);
	letter-spacing: .12em;
	text-transform: uppercase;	
	color: #fff;	
}

.ai-link:hover span {
	color: var(--c-vivid-green-0);
}

.ai-link span {
	background: var(--c-blue-2);
	padding: 0 24px;
	position: relative;
	z-index: 2;
}

.ai-link:before {
	content: '';
	position: absolute;
	z-index: 1;
	left: 0;
	width: 100%;
	top: 50%;
	height: 1px;
	border-top: dotted 1px var(--c-blue-1);
}