/*
 * YeffoHealth landing page (templates/yeffohealth.html) at /health/,
 * where health.yeffodesign.com and yeffohealth.com land
 * (yeffoprint-core includes/health/class-health-domains.php).
 * Page-scoped, loaded only on that template — see functions.php.
 */

.yp-health {
	padding-block: 3rem 4rem;
}

:where(.yp-health h1, .yp-health p, .yp-health ul) {
	margin: 0;
}

.yp-health__hero {
	text-align: center;
	padding-bottom: 2.25rem;
}

.yp-health__hero h1 {
	margin-top: 0.5rem;
	font-size: clamp(2.25rem, 1.4rem + 3.5vw, 3.5rem);
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.yp-health__lede {
	max-width: 52ch;
	margin: 0.9rem auto 0;
	font-size: 1.1rem;
	color: var(--wp--preset--color--charcoal);
}

.yp-health__apps {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
}

.yp-health__app {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
	padding: 1.75rem;
	background: #fff;
	border: 1px solid var(--wp--preset--color--light-gray);
	border-radius: 1.25rem;
	color: inherit;
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.yp-health__app:hover,
.yp-health__app:focus-visible {
	border-color: var(--wp--preset--color--near-black);
	box-shadow: 0 10px 28px rgba(20, 20, 20, 0.08);
	transform: translateY(-2px);
}

.yp-health__icon {
	width: 4.5rem;
	height: 4.5rem;
	border-radius: 1.1rem;
	background: center / contain no-repeat;
	box-shadow: 0 1px 3px rgba(20, 20, 20, 0.12);
}

.yp-health__app--tracker .yp-health__icon {
	background-image: url(../images/health-tracker.png);
}

.yp-health__app--calculator .yp-health__icon {
	background-image: url(../images/health-calculator.png);
}

.yp-health__app-text {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	flex: 1;
}

.yp-health__app-text b {
	font-size: 1.35rem;
	letter-spacing: -0.01em;
}

.yp-health__app-text > span:not(.yp-health__cta) {
	color: var(--wp--preset--color--charcoal);
}

.yp-health__app-text ul {
	padding-left: 1.1rem;
	font-size: 0.95rem;
	color: var(--wp--preset--color--charcoal);
}

.yp-health__app-text li + li {
	margin-top: 0.2rem;
}

.yp-health__cta {
	margin-top: auto;
	padding-top: 0.6rem;
	font-weight: 600;
	color: var(--wp--preset--color--magenta-deep);
}

.yp-health__note {
	max-width: 62ch;
	margin: 2rem auto 0;
	text-align: center;
	font-size: 0.85rem;
	color: var(--wp--preset--color--charcoal);
}

/* Google Play: a card for everyone, plus a dismissible banner for Android browsers (assets/js/yeffohealth.js). */
.yp-health__android {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	margin-top: 1.25rem;
	padding: 1.25rem 1.75rem;
	background: #fff;
	border: 1px solid var(--wp--preset--color--light-gray);
	border-radius: 1.25rem;
}

.yp-health__android div {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.yp-health__android b {
	font-size: 1.1rem;
}

.yp-health__android span {
	color: var(--wp--preset--color--charcoal);
	font-size: 0.95rem;
}

.yp-health__play {
	flex: none;
	width: 181px;
	height: 70px;
	margin: -10px -12px;
	background: url(../images/google-play-badge.png) center / contain no-repeat;
}

.yp-health__play-banner {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
	padding: 0.75rem 0.9rem;
	background: #fff;
	border: 1px solid var(--wp--preset--color--light-gray);
	border-radius: 1rem;
	box-shadow: 0 4px 16px rgba(20, 20, 20, 0.06);
}

.yp-health__play-banner[hidden] {
	display: none;
}

.yp-health__play-banner-icon {
	flex: none;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 0.65rem;
	background: url(../images/health-tracker.png) center / contain no-repeat;
}

.yp-health__play-banner-text {
	flex: 1;
	font-size: 0.9rem;
	line-height: 1.35;
	color: var(--wp--preset--color--charcoal);
}

.yp-health__play-banner-text b {
	display: block;
	color: var(--wp--preset--color--near-black);
}

.yp-health__play-banner-get {
	flex: none;
	padding: 0.45rem 1rem;
	border-radius: 999px;
	background: var(--wp--preset--color--near-black);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}

.yp-health__play-banner-close {
	flex: none;
	padding: 0.25rem 0.4rem;
	border: 0;
	background: none;
	font-size: 1.3rem;
	line-height: 1;
	color: var(--wp--preset--color--charcoal);
	cursor: pointer;
}

@media (max-width: 720px) {
	.yp-health__android {
		flex-direction: column;
		align-items: flex-start;
		padding: 1.4rem;
	}

	.yp-health {
		padding-block: 2rem 3rem;
	}

	.yp-health__apps {
		grid-template-columns: 1fr;
	}

	.yp-health__app {
		padding: 1.4rem;
	}
}
