/* App Store / Google Play badges and QR codes (fragments/app-download.html) */

.app-stores {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem 1.5rem;
}

.app-store {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .65rem;
}

.app-qr {
	width: var(--app-qr-size, 120px);
	height: var(--app-qr-size, 120px);
	padding: 6px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
}

/* Nobody scans the screen they are holding */
@media (max-width: 767.98px) {
	.app-qr { display: none; }
}

.app-badge {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	width: 172px;
	height: 48px;
	padding: 0 .9rem 0 .75rem;
	background: #000;
	color: #fff;
	border: 1px solid #a6a6a6;
	border-radius: 9px;
	text-decoration: none;
	line-height: 1;
	transition: transform .15s ease, box-shadow .15s ease;
}

.app-badge:hover,
.app-badge:focus-visible {
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6);
}

.app-badge-logo {
	flex: none;
	width: 26px;
	font-size: 28px;
	text-align: center;
}

.app-badge-play {
	width: 24px;
	height: 25px;
}

.app-badge-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	white-space: nowrap;
}

.app-badge-text small {
	font-size: 10px;
	font-weight: 500;
	letter-spacing: .02em;
}

.app-badge-text strong {
	font-size: 19px;
	font-weight: 600;
	letter-spacing: -.01em;
}

@media print {
	.app-badge { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.app-qr { display: block; }
}

/* Three screenshots, the middle one raised and in front */
.app-screens {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	align-items: center;
	max-width: 520px;
	margin: 0 auto;
}

.app-screen {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 18px;
	box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .45);
}

.app-screen:nth-child(1) { transform: translateX(12%) scale(.9) rotate(-4deg); }
.app-screen:nth-child(2) { position: relative; z-index: 1; }
.app-screen:nth-child(3) { transform: translateX(-12%) scale(.9) rotate(4deg); }
