/* ============================================================
 * BIOTA · SECTION · App band  (markup: templates/front-page.html)
 * Dark, centered header above real screenshots of the BIOTA app, then
 * App Store / Google Play buttons.
 *
 * The artwork used to be a hand-built CSS phone (~180 lines of .biota-phone__*
 * chrome). It was replaced by the real three-screen render in Aug 2026 — the
 * mockup had drifted from what the app actually looks like, and no amount of
 * CSS was going to keep it honest.
 * Builds on: .biota-section--dark / __header--center, .biota-eyebrow--sky.
 * ============================================================ */

.biota-appband.biota-section {
	background: #080c14 radial-gradient(115% 72% at 50% 4%, #31465f 0%, #1a2534 38%, #080c14 74%);
}
.biota-appband .biota-lead {
	max-width: 500px;
	font-size: var(--wp--preset--font-size--body-lg);
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.82);
}

/* Stage: centers the phone with a blue glow behind and a green glow beneath. */
.biota-appband__stage {
	position: relative;
	display: flex;
	justify-content: center;
	padding-top: 25px;
	/* The phones run off the bottom of the artwork by design. They need real
	   clearance from the store buttons or the crop reads as a collision
	   rather than a bleed. Padding, not margin: the section inner is a block
	   flex container and WordPress zeroes margins on its children, so a margin
	   here is silently dropped. This adds to the layout's own 22px gap. */
	padding-bottom: 22px;
}
/* Glow behind the screens. Wider and flatter than the single-phone version it
   replaced, because the artwork is now a three-phone group, not one device. */
.biota-appband__stage::before {
	content: "";
	position: absolute;
	z-index: 0;
	top: 6%;
	width: 820px;
	max-width: 108%;
	aspect-ratio: 16 / 9;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(88, 140, 214, 0.34) 0%, rgba(88, 140, 214, 0) 72%);
	filter: blur(6px);
	pointer-events: none;
}
.biota-appband__stage::after {
	content: "";
	position: absolute;
	z-index: 0;
	bottom: 4%;
	width: 420px;
	max-width: 74%;
	height: 26px;
	border-radius: 43px;
	background: radial-gradient(circle, rgba(37, 211, 102, 0.2) 0%, rgba(37, 211, 102, 0) 72%);
	filter: blur(4px);
	pointer-events: none;
}

/* --- App screens --- */
/* The artwork is a transparent PNG of three phones, so it sits ON the band's
   gradient rather than in a box — no radius, no shadow, no background here.
   The device frames and their shadows are part of the image. */
.biota-appband__screens {
	position: relative;
	z-index: 1;
	margin: 0;
	width: 100%;
	max-width: 1000px;
}
.biota-appband__screens img {
	display: block;
	width: 100%;
	height: auto;
}

.biota-storebtns {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 11px;
	margin-top: 8px;
}
/* Native wp:button now, so style the link and drop the badge in via ::before
   (background-image keeps the Play badge's multi-colour, unlike a mask). */
.biota-storebtn .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background-color: #ffffff;
	color: #111111;
	text-decoration: none;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 500;
	transition: background 0.2s ease;
}
/* The site-wide button hover in _button.css turns label text white, which is
   right on a filled navy button and wrong on these: they are white pills on a
   dark band, so the text has to stay dark or it disappears on hover. Only the
   background should move. */
.biota-storebtn .wp-block-button__link:hover,
.biota-storebtn .wp-block-button__link:focus {
	background-color: #eef1f5;
	color: #111111;
}
.biota-storebtn .wp-block-button__link::before {
	content: "";
	width: 19px;
	height: 19px;
	display: block;
	flex: none;
	background: var(--biota-store) center / contain no-repeat;
}
.biota-storebtn--ios .wp-block-button__link {
	--biota-store: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23111111'%3E%3Cpath d='M16.4 12.7c0-2.1 1.7-3.1 1.8-3.2-1-1.4-2.5-1.6-3-1.6-1.3-.1-2.5.7-3.1.7s-1.6-.7-2.7-.7c-1.4 0-2.7.8-3.4 2-1.4 2.5-.4 6.2 1 8.2.7 1 1.5 2.1 2.5 2.1 1 0 1.4-.6 2.6-.6s1.5.6 2.6.6 1.8-1 2.5-2c.8-1.1 1.1-2.2 1.1-2.3 0 0-2.1-.8-2.1-3.2zM14.4 6.3c.5-.7.9-1.6.8-2.6-.8 0-1.8.6-2.4 1.3-.5.6-1 1.5-.9 2.5.9.1 1.9-.5 2.5-1.2z'/%3E%3C/svg%3E");
}
.biota-storebtn--play .wp-block-button__link {
	--biota-store: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2300d0ff' d='M3.3 2.5c-.2.2-.3.5-.3.9v17.2c0 .4.1.7.3.9l9.2-9.5z'/%3E%3Cpath fill='%2300e676' d='M3.3 2.5 15.7 9.6l-2.9 2.9-9.5-10z'/%3E%3Cpath fill='%23ff3d47' d='M15.7 14.4 3.3 21.5l9.5-9.9z'/%3E%3Cpath fill='%23ffc107' d='M15.7 9.6l-2.9 2.9 2.9 2.9 3.9-2.3c.9-.5.9-1.5 0-2z'/%3E%3C/svg%3E");
}

/* Mobile: stack the store buttons full-width. */
@media (max-width: 782px) {
	.biota-storebtns {
		flex-direction: column;
		align-items: stretch;
	}
	.biota-storebtn,
	.biota-storebtn .wp-block-button__link {
		width: 100%;
		justify-content: center;
	}
}
