/**
 * Social Tap Elements: CSS product mocks and the studio plinth.
 *
 * Port of the design's "mock cards", "portrait + real-design mocks" and
 * ".plinth" rules. Everything inside a mock scales with the mock's width
 * through container query units (cqw). The colours depict physical products
 * and stay literal on purpose.
 *
 * @package Socialtap_Elements
 */

/* Widgets without intrinsic width must not collapse in row containers. */
.e-con .elementor-widget-socialtap-card-mock,
.e-con .elementor-widget-socialtap-tap-demo {
	width: 100%;
}

/* ---------- mock root ---------- */

.st-mock {
	width: 100%;
	color: #15171b;
	font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 17px;
	font-stretch: 100%;
	font-weight: 400;
	line-height: 1.6;
	letter-spacing: normal;
	text-align: start;
	text-transform: none;
	-webkit-font-smoothing: antialiased;
	container-type: inline-size;
}

.st-mock,
.st-mock *,
.st-mock *::before,
.st-mock *::after {
	box-sizing: border-box;
}

/* ---------- finishes ---------- */

.st-f-black {
	--st-cardbg: #121417;
	background: radial-gradient(120% 95% at 18% 0%, #2c2f35 0%, #16181c 46%, #0a0b0d 100%);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.12);
	color: #e9ebee;
}

.st-f-white {
	--st-cardbg: #f1f2f4;
	background: linear-gradient(140deg, #fdfdfe 0%, #e4e6ea 100%);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
	color: #15171b;
}

.st-f-silver {
	--st-cardbg: #dcdfe3;
	background:
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 3px),
		linear-gradient(130deg, #eef0f2 0%, #a9aeb7 48%, #e3e5e9 72%, #9ca2ab 100%);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
	color: #121417;
}

/* ---------- landscape card ---------- */

.st-mcard {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	aspect-ratio: 1.586;
	padding: 7cqw 7.5cqw;
	overflow: hidden;
	border-radius: 5.2cqw;
	isolation: isolate;
}

.st-mcard::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(112deg, transparent 30%, rgba(255, 255, 255, 0.09) 46%, transparent 60%);
	pointer-events: none;
}

.st-mcard .st-nfc {
	width: 10cqw;
	height: auto;
	opacity: 0.75;
}

.st-mcard__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
}

.st-mcard__who {
	font-size: 6.6cqw;
	font-stretch: 112%;
	font-weight: 650;
	line-height: 1.1;
	letter-spacing: -0.01em;
}

.st-mcard__role {
	margin-block-start: 1.4cqw;
	font-size: 3.9cqw;
	opacity: 0.62;
}

.st-mcard__ecross {
	display: grid;
	place-items: center;
	width: 11cqw;
	height: 11cqw;
	border-radius: 2.6cqw;
	background: #e5484d;
}

.st-mcard__ecross svg {
	width: 6.6cqw;
	height: 6.6cqw;
	fill: #fff;
}

.st-mcard__ebar {
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	height: 2.6cqw;
	background: #e5484d;
}

/* business card */

.st-mcard--biz {
	justify-content: center;
}

.st-mcard__script {
	margin-inline-start: 10cqw;
	font-family: "Great Vibes", cursive;
	font-size: 17cqw;
	font-weight: 400;
	line-height: 0.85;
	transform: rotate(-7deg);
}

.st-mcard__script span {
	display: block;
	padding-inline-start: 24cqw;
	font-size: 12cqw;
}

.st-mcard__nfc-br {
	position: absolute;
	inset-inline-end: 7cqw;
	inset-block-end: 7cqw;
}

/* ---------- portrait card ---------- */

.st-mcard--tall {
	align-items: center;
	justify-content: space-between;
	aspect-ratio: 0.63;
	padding: 10cqw 8cqw 8cqw;
	border-radius: 7cqw;
	text-align: center;
}

.st-mcard__fu {
	font-size: 12cqw;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.01em;
}

.st-mcard__bignfc {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3cqw;
	font-size: 7cqw;
	font-weight: 600;
	opacity: 0.8;
}

.st-mcard .st-mcard__bignfc .st-nfc {
	width: 30cqw;
	opacity: 1;
}

.st-mcard__hd {
	font-size: 8cqw;
	font-weight: 600;
}

.st-mcard__cr {
	font-size: 6.6cqw;
	font-weight: 600;
	opacity: 0.7;
}

.st-mcard .st-mcard__nfcrow .st-nfc {
	width: 13cqw;
	opacity: 0.7;
}

/* ---------- stars ---------- */

.st-stars {
	display: flex;
}

.st-mcard .st-stars {
	gap: 1.4cqw;
}

.st-mcard .st-stars svg {
	width: 8.4cqw;
	height: 8.4cqw;
	fill: currentColor;
}

.st-mstand .st-stars {
	gap: 2cqw;
	margin-block-start: 6cqw;
}

.st-mstand .st-stars svg {
	width: 8cqw;
	height: 8cqw;
	fill: currentColor;
}

.st-mock .st-stars.st-stars--gold svg {
	fill: #f2a900;
}

/* ---------- Google ring ---------- */

.st-gring {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1cqw;
	width: 68cqw;
	aspect-ratio: 1;
	border-radius: 50%;
	background: conic-gradient(from -45deg, #ea4335 0 25%, #4285f4 0 50%, #34a853 0 75%, #fbbc05 0);
}

.st-gring::before {
	content: "";
	position: absolute;
	inset: 3.4cqw;
	border-radius: 50%;
	background: var(--st-cardbg);
}

.st-gring > * {
	position: relative;
}

.st-gring__gw {
	font-size: 13cqw;
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.02em;
}

.st-gring__ro,
.st-gring__tap {
	display: flex;
	align-items: center;
	gap: 1.4cqw;
	font-size: 6.4cqw;
	opacity: 0.75;
}

.st-gring__tap .st-nfc {
	width: 7cqw;
	height: auto;
}

/* ---------- review stand ---------- */

.st-mstand {
	position: relative;
	width: 100%;
	padding-block-end: 9cqw;
}

.st-mstand__plate {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	aspect-ratio: 0.72;
	padding: 10cqw 9cqw;
	overflow: hidden;
	border-radius: 7cqw 7cqw 3cqw 3cqw;
	text-align: center;
	isolation: isolate;
}

.st-mstand__plate::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(112deg, transparent 30%, rgba(255, 255, 255, 0.08) 46%, transparent 60%);
}

.st-mstand__q {
	font-size: 10cqw;
	font-stretch: 118%;
	font-weight: 650;
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.st-mstand .st-gring {
	width: 72cqw;
	margin-block-start: 7cqw;
}

.st-mstand__gbar {
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	height: 3.4cqw;
	background: linear-gradient(90deg, #ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0);
}

.st-mstand__base {
	position: absolute;
	inset-inline: -6%;
	inset-block-end: 0;
	height: 11cqw;
	border-radius: 3cqw;
	background: linear-gradient(180deg, #2a2d33, #0c0d10);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 24px 40px -14px rgba(0, 0, 0, 0.9);
}

.st-mstand__base--light {
	background: linear-gradient(180deg, #f3f4f6, #c9cdd3);
}

/* ---------- Card Mock widget + plinth ---------- */

.st-card-mock > .st-mock {
	margin-inline: auto;
}

.st-plinth {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 4 / 3;
	min-height: 300px;
	padding: 44px 40px;
	background:
		radial-gradient(60% 70% at 50% 40%, rgba(255, 255, 255, 0.18), transparent 72%),
		linear-gradient(180deg, #5d636b, #3a3e44);
}

.st-plinth::after {
	content: "";
	position: absolute;
	inset-inline: 18%;
	inset-block-end: 30px;
	height: 20px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.6);
	filter: blur(14px);
}

.st-plinth .st-mock {
	position: relative;
	z-index: 1;
	max-width: 330px;
	transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.st-plinth .st-mock--stand,
.st-plinth .st-mock--tall {
	max-width: 170px;
}

.st-card-mock--lift:hover .st-plinth .st-mock,
.st-lift-parent:hover .st-card-mock--lift .st-plinth .st-mock {
	transform: translateY(-6px) rotate(-1.5deg);
}

@media (prefers-reduced-motion: reduce) {

	.st-plinth .st-mock {
		transition: none;
	}
}
