﻿/**
 * Marketing page styles (Phase 5B.1).
 *
 * A focused landing layout for `/marketing/<slug>/` that reuses the theme's
 * colours and tokens but does not touch the app-page stylesheet. Reduced-motion
 * visitors get discrete steps instead of a sliding progress fill.
 *
 * @package APKMobile
 */

.marketing {
	padding: var(--space-lg, 3rem) 0 clamp(2rem, 6vw, 4rem);
}

.marketing__card {
	max-width: 820px;
	margin-inline: auto;
	background: var(--c-card);
	border: 1px solid var(--c-border-strong);
	border-radius: 16px;
	overflow: hidden;
}

.marketing__card > .container {
	padding-block: clamp(1.5rem, 4vw, 3rem);
}

.marketing__head {
	display: flex;
	gap: 1.25rem;
	align-items: flex-start;
	margin-bottom: 2rem;
}

.marketing__icon {
	flex: 0 0 auto;
	width: 96px;
	height: 96px;
	border-radius: 20px;
	overflow: hidden;
	background: var(--c-surface);
	display: flex;
	align-items: center;
	justify-content: center;
}

.marketing__icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.marketing__initials {
	font-size: 2rem;
	font-weight: 700;
	color: var(--c-text-muted);
}

.marketing__head-body {
	min-width: 0;
}

.marketing__title {
	margin: 0 0 0.35rem;
	font-size: clamp(1.5rem, 4vw, 2rem);
	line-height: 1.15;
}

.marketing__tagline {
	margin: 0 0 0.75rem;
	color: var(--c-text-muted);
}

.marketing__block {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--c-border);
}

.marketing__h2 {
	margin: 0 0 1rem;
	font-size: 1.2rem;
}


/* Long-form editorial article rendered from _apkmz_marketing_article. */
.marketing__article p {
	margin: 0 0 1rem;
}

.marketing__article h3 {
	margin: 1.5rem 0 0.5rem;
	font-size: 1.05rem;
}

.marketing__article ul,
.marketing__article ol {
	margin: 0 0 1rem;
	padding-left: 1.4rem;
}

.marketing__article li {
	margin: 0.25rem 0;
}

.marketing__article p:last-child {
	margin-bottom: 0;
}











.marketing__start-panel {
	margin-top: 2rem;
	padding: clamp(1.5rem, 4vw, 2.25rem);
	border: 1px solid rgba(34, 197, 94, 0.45);
	border-radius: 18px;
	background: linear-gradient(180deg, #0d1620 0%, #111c2a 100%);
	color: #e8edf4;
	text-align: center;
	position: relative;
	box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.12), 0 18px 44px rgba(4, 9, 16, 0.35);
}

.marketing__system-state {
	margin: 0 0 0.75rem;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.35rem 0.9rem;
	border: 1px solid rgba(34, 197, 94, 0.35);
	border-radius: 999px;
	background: rgba(34, 197, 94, 0.1);
	color: #7fe0a8;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.marketing__pulse {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #22c55e;
	box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
	animation: apkmobile-pulse 2s infinite;
}

@keyframes apkmobile-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
	}
	70% {
		box-shadow: 0 0 0 9px rgba(34, 197, 94, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
	}
}

.marketing__start-title,
.marketing__download-title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.15rem, 3vw, 1.4rem);
	line-height: 1.2;
}

.marketing__start-title {
	color: #ffffff;
}

.marketing__start-note {
	margin: 0 0 1.25rem;
	color: #9babbd;
	max-width: 34rem;
	margin-inline: auto;
}

.marketing__facts-grid {
	list-style: none;
	margin: 1.5rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.65rem;
}

.marketing__facts-grid li {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 0.8rem 0.6rem;
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.03);
}

.marketing__fact-label {
	color: #7f90a5;
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.marketing__fact-value {
	color: #e8edf4;
	font-size: 0.95rem;
	font-weight: 700;
}

.marketing__download {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--c-border);
	text-align: center;
}

.marketing__start,
.marketing__final {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	font: inherit;
	font-weight: 700;
	border: 0;
	border-radius: 999px;
	padding: 0.95rem 2.4rem;
	cursor: pointer;
	text-decoration: none;
	color: #fff;
	background: linear-gradient(135deg, #16a34a, #15803d);
	box-shadow: 0 12px 28px rgba(22, 163, 74, 0.28);
}

.marketing__start:hover {
	background: linear-gradient(135deg, #15803d, #166534);
	box-shadow: 0 14px 30px rgba(22, 163, 74, 0.34);
	transform: translateY(-1px);
}

.marketing__start:active {
	transform: translateY(0);
	box-shadow: 0 8px 20px rgba(22, 163, 74, 0.24);
}

.marketing__start:focus-visible,
.marketing__final:focus-visible {
	outline: 3px solid rgba(22, 163, 74, 0.5);
	outline-offset: 2px;
}

.marketing__final-lock,
.marketing__final-go {
	display: inline-flex;
}

.marketing__start,
.marketing__final {
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.marketing__progress {
	max-width: 360px;
	margin-inline: auto;
}

.marketing__progressbar {
	height: 10px;
	border-radius: 999px;
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	overflow: hidden;
}

.marketing__progressfill {
	display: block;
	height: 100%;
	width: 100%;
	background: linear-gradient(90deg, #22c55e, #16a34a);
	transform-origin: left center;
	transform: scaleX(1);
	transition: transform 0.25s linear;
}

.marketing__seconds {
	margin: 0.75rem 0 0;
	color: var(--c-text-muted);
	font-variant-numeric: tabular-nums;
}

.marketing__ready {
	margin: 1.25rem 0 0;
	font-weight: 700;
	color: #15803d;
	display: inline-flex;
	align-items: flex-start;
	gap: 0.5rem;
	text-align: left;
}

.marketing__ready-check {
	display: inline-flex;
	flex: 0 0 auto;
	margin-top: 0.1rem;
	color: #15803d;
}

.marketing__ready[hidden] {
	display: none;
}

.marketing__final {
	border-radius: 999px;
}

.marketing__not-found {
	padding-block: 4rem;
}

.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 640px) {
	.marketing__head {
		flex-direction: column;
		gap: 0.75rem;
	}

	/* Two-by-two facts grid once four columns no longer fit. */
	.marketing__facts-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.marketing__progressfill {
		transition: none;
	}

	.marketing__pulse {
		animation: none;
	}
}